/* Основные стили */
.header {
    display: flex;
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* Контейнер с ограничением ширины */
.header__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}

/* Логотип */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.header__logo-icon {
    transition: transform 0.3s, opacity 0.3s;
}

.header__logo:hover .header__logo-icon {
    transform: scale(1.1);
    opacity: 0.8;
}

.header__logo-text {
    font-family: 'Expletus Sans', sans-serif;
    color: #e2e8f0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Центральное навигационное меню */
.header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.header__menu {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.header__menu-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    white-space: nowrap;
}

.header__menu-item a:hover {
    color: #00f5d4;
}

/* Кнопки авторизации */
.header__auth {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.header__auth-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.header__auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Бургер-меню */
.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    padding: 0;
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #00f5d4;
    transition: all 0.3s;
}

/* Контейнер для мобильного меню */
.header__mobile-menu {
    display: none;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    padding: 20px 0;
    border-top: 1px solid rgba(0, 245, 212, 0.2);
}

/* Мобильная адаптация */
@media (max-width: 1024px) {
    .header__container {
        max-width: 100%;
        padding: 0 15px;
        gap: 15px;
    }
    
    .header__menu {
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .header__menu {
        gap: 10px;
    }
    
    .header__menu-item a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header__nav,
    .header__auth {
        display: none;
    }

    .header__burger {
        display: flex;
    }
    
    /* Стили для открытого меню */
    .header--mobile-open .header__mobile-menu {
        display: flex;
    }
    
    /* Навигация в мобильном меню */
    .header--mobile-open .header__mobile-menu .header__nav {
        display: block;
        padding: 0 20px;
    }

    .header--mobile-open .header__mobile-menu .header__menu {
        flex-direction: column;
        gap: 0;
    }
    
    .header--mobile-open .header__mobile-menu .header__menu-item {
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .header--mobile-open .header__mobile-menu .header__menu-item:last-child {
        border-bottom: none;
    }
    
    /* Кнопки авторизации в мобильном меню */
    .header--mobile-open .header__mobile-menu .header__auth {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        margin-top: 10px;
    }
    
    .header--mobile-open .header__mobile-menu .header__auth-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header__logo-text {
        font-size: 1.2rem;
    }
    
    /* Улучшение для очень маленьких экранов */
    .header--mobile-open .header__mobile-menu .header__menu-item a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
    }
}