/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background: linear-gradient(135deg, #fdfefe 0%, #f8fbff 100%);
    background-attachment: fixed;
}


html {
    scroll-padding-top: 4.2rem; /* Высота меню */
    scroll-behavior: smooth;
}

/* Навигация - фиксированная, по центру */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 253, 254, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 248, 255, 0.5);
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Меню по центру */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: #2c4a6e;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0369a1;
}

/* Блок пользователя справа */
.user-info {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-profile-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: opacity 0.2s;
}

.user-profile-link:hover .user-profile {
    opacity: 0.8;
}

.user-name {
    font-weight: 500;
    color: #1e293b;
    transition: color 0.2s;
}

.user-profile-link:hover .user-name {
    color: #0369a1;
    text-decoration: underline;
}

/* Контент - начинается сразу под меню */
.main-content {
    margin-top: 4.2rem;
    width: 100%;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #475569;
    font-size: 1.1rem;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(240, 248, 255, 0.6);
}

/* Стили для главного контента */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 0.1rem 0 6rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 0.1rem;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(169, 222, 246, 0.1), rgba(240, 242, 245, 0.05));
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0c4a6e;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #475569;
    margin-bottom: 2rem;
    font-weight: 500;
}

.description-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 2.5rem;
    text-align: left;
}

/* Стили для иерархического списка */
.hierarchy-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hierarchy-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hierarchy-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(14, 165, 233, 0.8));
    opacity: 0.8;
}

.hierarchy-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.hierarchy-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0c4a6e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hierarchy-content {
    margin-left: 0;
}

.hierarchy-content p {
    margin-bottom: 1rem;
    color: #475569;
}

.hierarchy-sublist {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.hierarchy-sublist li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #334155;
    transition: color 0.2s ease;
}

.hierarchy-sublist li:hover {
    color: #0c4a6e;
}

.hierarchy-sublist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    border-radius: 50%;
    opacity: 0.8;
}

.hierarchy-sublist li strong {
    color: #0c4a6e;
    font-weight: 700;
}

/* Адаптивность для иерархического списка */
@media (max-width: 768px) {
    .hierarchy-list {
        gap: 1.5rem;
    }
    
    .hierarchy-item {
        padding: 1.25rem;
        margin: 0 0.5rem;
    }
    
    .hierarchy-title {
        font-size: 1.2rem;
    }
    
    .hierarchy-content {
        margin-left: 0.5rem;
    }
    
    .hierarchy-sublist li {
        padding-left: 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hierarchy-item {
        padding: 1rem;
    }
    
    .hierarchy-title {
        font-size: 1.1rem;
    }
    
    .hierarchy-sublist li {
        padding-left: 1rem;
        font-size: 0.9rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tech-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tech-icon {
    background: rgba(14, 165, 233, 0.1);
    color: #0c4a6e;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.date-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .description-text {
        font-size: 1.1rem;
    }
    
    .hero-card {
        padding: 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
}
/* Добавить в CSS */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.user-name-link {
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.user-name-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.login-link {
    color: #2c4a6e;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.login-link:hover {
    background: rgba(14, 165, 233, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
	html {
        scroll-padding-top: 4rem;
    }
	
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
        position: static;
        transform: none;
        margin: 0 auto;
    }
    
    .main-nav {
        height: 3rem;
    }
    
    .main-content {
        margin-top: 4.2rem;
    }
    
    .user-info {
        position: absolute;
        right: 1rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
	
	.login-link {
    color: #2c4a6e;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.login-link:hover {
    background: rgba(14, 165, 233, 0.1);
}
}

@media (max-width: 480px) {
    .user-name {
        display: none;
    }
	
	.user-name-link {
        display: none;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
}