header {
    background-color: #333333;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px; /* Уменьшенная высота */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin: 0 auto;
}

/* Navigation container */
.nav-container {
    max-width: 1600px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px; /* Уменьшенные боковые отступы */
}

.logo {
    font-size: 26px; /* Было 30px */
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
}
.logo a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: 30px; /* Было 50px */
    font-size: 20px; /* Было 22px */
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FFD700;
}

/* Divider line - теперь внутри header */
.nav-line {
    width: 80%;
    height: 1px;
    margin: 6px auto 0; /* Немного уменьшен верхний отступ */
    background: white;
    opacity: 0.5;
}

/* Стили гамбургера (оставляем как есть) */
.hamburger {
    display: none;
    padding: 10px;
    cursor: pointer;
    background: transparent;
    border: 0;
    margin-left: auto;
    z-index: 1000;
}

.hamburger__box {
    width: 30px;
    height: 22px;
    display: inline-block;
    position: relative;
}

.hamburger__inner {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.hamburger__inner::before,
.hamburger__inner::after {
    content: "";
    position: absolute;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger__inner::before {
    top: -8px;
}

.hamburger__inner::after {
    top: 8px;
}



/* Навигация для десктопа */
.nav-links__text {
    display: flex;
    gap: 30px;
    font-size: 20px;
}

.nav-links__text a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Мобильная адаптация */
/* Десктоп: скрываем гамбургер */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    .nav-links {
        display: flex !important; /* Всегда показываем текст на десктопе */
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Всегда виден */
        margin-left: auto; /* Сдвигаем вправо */
    }

    .logo {
        display: block !important; /* Логотип всегда виден */
    }

    /* Мобильное меню - скрыто по умолчанию, выпадает прикольненько потом поменяю мб */
.nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background-color: #333;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* Показать меню */
.nav-links--active {
    max-height: 300px; /* Достаточно для 3-5 пунктов */
    opacity: 1;
}

}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
}

.lang-btn {
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 4px;
}

.lang-btn:hover {
    text-decoration: none;
}
