.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #EFF8FF;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo img {
    height: 65px;
}

.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    margin-right: 30px;
}

.nav ul li {
    margin: 0 20px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: #007bff;
}

.language-selector select {
    display: flex;
    justify-content: center;
    position: relative;

    padding: 10px 15px;
    border: 2px solid #025595;
    background-color: #EFF8FF;
    font-size: 14px;
    color: #025595;
    cursor: pointer;
}

.language-selector select:hover {
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.language-selector select:focus {
    outline: none;
    border-color: #0056b3;
}


/* Бургер-кнопка */
.burger-btn {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #025595;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #EFF8FF;
    z-index: 1000;
    transition: transform 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list a {
    color: #025595;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.mobile-language {
    margin-top: 30px;
}

.mobile-language select {
    padding: 10px 15px;
    border: 2px solid #025595;
    background: #EFF8FF;
    color: #025595;
    font-size: 16px;
}

/* Анимация бургера в "крестик" */
.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Стили для мобильного блока по умолчанию */
.header-mobile-right {
    display: none;
    align-items: center;
    gap: 12px;
}

/* Мобильные устройства до 991px */
@media (max-width: 991px) {
    .mobile-menu {
        width: 250px;
    }

    .header-right .nav {
        display: none;
    }

    .header-mobile-right {
        display: flex;
        margin-left: auto;
    }

    .burger-btn {
        display: block;
        order: 1;
    }

    .header-right {
        display: flex;
        align-items: center;
    }

    .language-selector {
        margin: -2px 0 0 0;
    }

    .header-right .language-selector {
        display: none;
    }

    /* Стили для компактного селектора */
    .mobile-language select {
        padding: 8px 12px;
        font-size: 14px;
        border: 1px solid #025595;
    }
}

/* Планшеты: от 769px до 991px */
@media (min-width: 769px) and (max-width: 991px) {
    .mobile-menu {
        width: 320px;
        padding-top: 90px;
    }

    .mobile-nav-list a {
        font-size: 16px;
        padding: 8px 0;
    }
}

/* Очень маленькие экраны до 480px */
@media (max-width: 480px) {
    .header-mobile-right {
        gap: 8px;
    }

    .mobile-language select {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Десктоп ≥ 992px */
@media (min-width: 992px) {
    .mobile-menu {
        display: none;
    }

    .header-mobile-right {
        display: none;
    }

    .header-right .language-selector {
        display: block;
    }
}
