/* 
 * Header Styles
 * Стили для шапки сайта
 */

/* Контейнер для шапки - только базовые общие стили */
.header-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Левый контейнер (логотип и текст) - только базовые общие стили */
.header-left-container {
    display: flex;
    align-items: center;
}

/* Правый контейнер (навигация) - только базовые общие стили */
.header-right-container {
    display: flex;
    align-items: center;
}

/* Базовые стили для логотипа */
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    /* Анимация происходит через смену кадров в JavaScript */
}

/* Бургер-меню - только базовые общие стили */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    transition: transform 0.3s ease;
}


/* Анимация бургера управляется в медиа-запросах */

/* Десктопы (1025px+) */
@media (min-width: 1025px) {
    .header-container {
        max-width: 1124px;
        padding: 0;
    }

    .header {
        background: transparent;
        height: 62px;
        margin-top: 48px;
        margin-bottom: 124px;
        display: flex;
        align-items: center;
    }

    .header-left-container {
        gap: 8px;
    }

    .header-right-container {
        gap: 16px;
    }

    /* Скрываем бургер на десктопе */
    .burger-btn {
        display: none;
    }


    /* Left side - Logo */
    .header-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 6px 0;
        gap: 8px;
        width: auto;
        max-width: 223px;
        height: 62px;
        border-radius: 32px;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

    .header-left:hover {
        opacity: 0.8;
    }

    .header-left:hover .logo-image {
        opacity: 1;
    }

    .logo {
        width: 50px;
        height: 50px;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-text {
        width: 165px;
        height: 38px;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 900;
        font-size: 16px;
        line-height: 19px;
        color: #3056D3;
        flex: none;
    }

    /* Right side - Navigation */
    .nav-btn {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 18px;
        gap: 10px;
        height: 43px;
        border-radius: 32px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 16px;
        line-height: 19px;
        transition: all 0.3s ease;
    }

    .nav-btn-about {
        width: auto;
        color: #2B2B2B;
        white-space: nowrap;
    }

    .nav-btn-language {
        width: auto;
        color: #2B2B2B;
        background: #FFF9F2;
        border: 1px solid #ddd7d0;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .nav-btn-language::after {
        content: '';
        width: 19px;
        height: 19px;
        background-image: url('../img/arrow.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .language-dropdown .nav-btn-language.active::after {
        transform: rotate(180deg);
    }

    /* Language Dropdown */
    .language-dropdown {
        position: relative;
        display: inline-block;
    }

    .language-dropdown-content {
        display: none;
        flex-direction: column;
        gap: 4px;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: rgba(255, 249, 242, 0.08);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        min-width: 250px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        border-radius: 32px;
        z-index: 1001;
        padding: 8px 0;
        border: 1px solid rgba(241, 234, 226, 0.3);
    }

    .language-dropdown-content.show {
        display: flex;
    }

    .language-option {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 16px;
        line-height: 19px;
        color: #2B2B2B;
        transition: background 0.2s ease;
        cursor: pointer;
        white-space: nowrap;
    }

    .language-option:hover {
        background: #F1EAE2;
    }

    .language-option.active {
        background: #F1EAE2;
        color: #2B2B2B;
        font-weight: 600;
    }

    .language-option:first-child {
        border-radius: 16px 16px 0 0;
    }

    .language-option:last-child {
        border-radius: 0 0 16px 16px;
    }

    .nav-btn-support {
        width: 141px;
        background: #3056D3;
        color: #F1EAE2;
    }

    .nav-btn:hover {
        opacity: 0.8;
        transform: translateY(-2px);
    }

    .nav-btn-about:hover {
        background: rgba(43, 43, 43, 0.1);
    }

    .nav-btn-language:hover {
        background: rgba(43, 43, 43, 0.1);
    }

    .nav-btn-support:hover {
        background: #2545c2;
    }

    /* Скролл меню */
    .menu-scroll {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .menu-scroll.show {
        opacity: 1;
        visibility: visible;
    }

    .menu-scroll-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
        gap: 10px;
        width: 1124px;
        height: 78px;
        background: #FFF9F2;
        border-radius: 56px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(241, 234, 226, 0.3);
    }

    .menu-scroll-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 6px 0px;
        gap: 8px;
        width: 223px;
        height: 62px;
        border-radius: 32px;
        flex: none;
        transition: transform 0.3s ease;
        background: transparent;
    }

    .menu-scroll-logo {
        width: 50px;
        height: 50px;
        flex: none;
    }

    .menu-scroll-logo-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .menu-scroll-text {
        width: 165px;
        height: 38px;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 900;
        font-size: 16px;
        line-height: 19px;
        color: #3056D3;
        flex: none;
        margin: 0;
    }

    .menu-scroll-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0px;
        gap: 16px;
        width: auto;
        height: 43px;
        flex: none;
        background: transparent;
    }

    .menu-scroll-btn {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 18px;
        gap: 10px;
        border-radius: 32px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 16px;
        line-height: 19px;
        transition: all 0.3s ease;
        flex: none;
    }

    .menu-scroll-about,
    .menu-scroll-language {
        width: auto;
        height: 43px;
        color: #2B2B2B;
        background: transparent;
        white-space: nowrap;
    }

    .menu-scroll-language {
        width: auto;
        border: 1px solid #ddd7d0;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .menu-scroll-language::after {
        content: '';
        width: 19px;
        height: 19px;
        background-image: url('../img/arrow.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .language-dropdown .menu-scroll-language.active::after {
        transform: rotate(180deg);
    }

    .menu-scroll-support {
        width: 141px;
        height: 43px;
        background: #3056D3;
        color: #F1EAE2;
    }

    .menu-scroll-btn:hover {
        opacity: 0.8;
        transform: translateY(-2px);
    }

    .menu-scroll-about:hover {
        background: rgba(43, 43, 43, 0.1);
    }

    .menu-scroll-language:hover {
        background: rgba(43, 43, 43, 0.1);
    }

    .menu-scroll-support:hover {
        background: #2545c2;
    }

    .menu-scroll-left:hover {
        transform: scale(1.02);
    }

    .menu-scroll-left:hover .menu-scroll-logo-image {
        animation: tea-kettle-animation 0.8s ease-in-out infinite;
    }

    .menu-scroll-logo-image.animate {
        animation: tea-kettle-animation 0.8s ease-in-out infinite;
        opacity: 1;
    }

    .menu-scroll-left:hover .menu-scroll-logo-image {
        opacity: 1;
    }
}

/* iPad (все ориентации) */
@media screen and (min-width: 431px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
    .header-container {
        max-width: 1200px;
        padding: 0 24px 0 24px;
        padding-right: 48px;
    }

    .header {
        height: 58px !important;
        margin-top: 32px !important;
        margin-bottom: 80px !important;
    }

    .header-left-container {
        gap: 6px;
    }

    .header-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 4px 0;
        gap: 6px;
        width: auto;
        max-width: 200px;
        height: 58px;
        border-radius: 28px;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

    .logo {
        width: 45px;
        height: 45px;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-text {
        width: 145px;
        height: 30px;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 900;
        font-size: 15px;
        line-height: 18px;
        color: #3056D3;
        flex: none;
    }

    /* Стили навигации для iPad */
    .nav-btn {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 14px 18px;
        gap: 8px;
        height: 48px;
        width: 100%;
        border-radius: 24px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 16px;
        line-height: 20px;
        transition: all 0.3s ease;
    }

    .nav-btn-about {
        color: #2B2B2B;
        white-space: nowrap;
    }

    .nav-btn-language {
        color: #2B2B2B;
        background: #FFF9F2;
        border: 1px solid #ddd7d0;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .nav-btn-language::after {
        content: '';
        width: 16px;
        height: 16px;
        background-image: url('../img/arrow.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .nav-btn-support {
        width: 100%;
        background: #3056D3;
        color: #F1EAE2;
        justify-content: center;
    }

    /* Показываем бургер на iPad */
    .burger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        border-radius: 50%;
        transition: background-color 0.2s ease;
        position: relative;
        z-index: 1003;
        -webkit-tap-highlight-color: transparent;
    }

    .burger-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .burger-btn:hover {
        background: #F1EAE2;
    }

    /* Скрываем навигацию по умолчанию */
    .header-right-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(255, 249, 242, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 100px 24px 24px;
        gap: 16px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .header-right-container.active {
        right: 0;
    }

    .nav-btn {
        padding: 14px 18px;
        height: 48px;
        font-size: 16px;
        line-height: 20px;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-btn-support {
        width: 100%;
        justify-content: center;
    }

    .language-dropdown {
        width: 100%;
    }

    .language-dropdown-content {
        position: static;
        width: 100%;
        margin-top: 8px;
        background: rgba(255, 249, 242, 0.5);
        border-radius: 24px;
        padding: 8px 0;
    }

    .language-dropdown-content.show {
        display: flex;
    }

    .language-option {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 15px;
        line-height: 18px;
        color: #2B2B2B;
        transition: background 0.2s ease;
        cursor: pointer;
        white-space: nowrap;
    }

    .language-option:hover {
        background: #F1EAE2;
    }

    .language-option.active {
        background: #F1EAE2;
        color: #2B2B2B;
        font-weight: 600;
    }

    .language-dropdown .nav-btn-language.active::after {
        transform: rotate(180deg);
    }

    /* Скрываем скролл-меню на iPad */
    .menu-scroll {
        display: none;
    }

    /* Переопределяем навигацию для модального меню */
    .header-right-container {
        display: none !important;
    }

    /* Переопределяем стили мобильного меню для iPad */
    .mobile-menu-header {
        padding: 24px !important;
    }

    /* Дополнительные стили для корректной работы на iPad */
    .burger-btn {
        pointer-events: auto !important;
        touch-action: manipulation;
    }

    .header-right-container {
        pointer-events: auto !important;
        will-change: right;
    }
}

/* Планшеты (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-container {
        max-width: 1200px;
        padding: 0 24px;
    }

    .header {
        height: 58px;
        margin-top: 32px;
        margin-bottom: 80px;
    }

    .header-left-container {
        gap: 6px;
    }

    .header-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 4px 0;
        gap: 6px;
        width: auto;
        max-width: 200px;
        height: 58px;
        border-radius: 28px;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

    .logo {
        width: 45px;
        height: 45px;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-text {
        width: 145px;
        height: 30px;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 900;
        font-size: 15px;
        line-height: 18px;
        color: #3056D3;
        flex: none;
    }

    /* Показываем бургер на планшетах */
    .burger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }

    .burger-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .burger-btn:hover {
        background: #F1EAE2;
    }

    /* Скрываем навигацию по умолчанию */
    .header-right-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(255, 249, 242, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 100px 24px 24px;
        gap: 16px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .header-right-container.active {
        right: 0;
    }

    .nav-btn {
        padding: 14px 18px;
        height: 48px;
        font-size: 16px;
        line-height: 20px;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-btn-support {
        width: 100%;
        justify-content: center;
    }

    .language-dropdown {
        width: 100%;
    }

    .language-dropdown-content {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    /* Дополнительные стили для планшетов */
    .nav-btn {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        transition: all 0.3s ease;
    }

    .nav-btn-about {
        color: #2B2B2B;
        white-space: nowrap;
    }

    .nav-btn-language {
        color: #2B2B2B;
        background: #FFF9F2;
        border: 1px solid #ddd7d0;
        cursor: pointer;
        position: relative;
        gap: 4px;
    }

    .nav-btn-language::after {
        content: '';
        width: 16px;
        height: 16px;
        background-image: url('../img/arrow.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .language-dropdown-content {
        background: rgba(255, 249, 242, 0.5);
        border-radius: 24px;
        padding: 8px 0;
    }

    .language-dropdown-content.show {
        display: flex;
    }

    .language-option {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 15px;
        line-height: 18px;
        color: #2B2B2B;
        transition: background 0.2s ease;
        cursor: pointer;
        white-space: nowrap;
    }

    .language-option:hover {
        background: #F1EAE2;
    }

    .language-option.active {
        background: #F1EAE2;
        color: #2B2B2B;
        font-weight: 600;
    }

    .language-dropdown .nav-btn-language.active::after {
        transform: rotate(180deg);
    }

    /* Скрываем скролл-меню на планшетах */
    .menu-scroll {
        display: none;
    }

    /* Переопределяем навигацию для модального меню */
    .header-right-container {
        display: none !important;
    }
}

/* Модальное меню для планшетов и мобильных */
.mobile-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

.mobile-menu-modal.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: #FFF9F2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 0;
    border-radius: 20px;
}

/* Адаптивное меню для мобильных */
@media (max-width: 767px) {
    .mobile-menu-modal {
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }
    
    .mobile-menu-content {
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        padding: 0;
        margin: 0;
        overflow: hidden;
        box-sizing: border-box;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 0;
    }
}

/* Меню для узких мобильных экранов (до 360px) */
@media (max-width: 360px) {
    .mobile-menu-content {
        width: 100vw;
        height: 100vh;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
}

/* Меню для средних мобильных экранов (361px - 480px) */
@media (min-width: 361px) and (max-width: 480px) {
    .mobile-menu-content {
        width: 100vw;
        height: 100vh;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
}

/* Меню для широких мобильных экранов (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .mobile-menu-content {
        width: 100vw;
        height: 100vh;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
}

.mobile-menu-modal.active .mobile-menu-content {
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 0 16px;
    height: 56px;
    background: transparent;
}

/* Улучшенный заголовок для мобильных */
@media (max-width: 767px) {
    .mobile-menu-header {
        background: transparent;
        height: 56px;
        margin-top: 8px;
        margin-bottom: 32px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        flex-shrink: 0;
        box-sizing: border-box;
    }
}

/* Адаптивные отступы для заголовка */
@media (max-width: 360px) {
    .mobile-menu-header {
        padding: 0 16px;
        height: 56px;
        margin-top: 8px;
        margin-bottom: 32px;
    }
}

@media (min-width: 361px) and (max-width: 480px) {
    .mobile-menu-header {
        padding: 0 16px;
        height: 56px;
        margin-top: 8px;
        margin-bottom: 16px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .mobile-menu-header {
        padding: 0 16px;
        height: 56px;
        margin-top: 8px;
        margin-bottom: 32px;
    }
}

.mobile-menu-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 0;
    gap: 6px;
    width: auto;
    max-width: 180px;
    height: 56px;
    border-radius: 28px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-logo-image {
    width: 40px;
    height: 40px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-logo-text {
    width: 130px;
    height: 30px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: 14px;
    line-height: 17px;
    color: #3056D3;
    flex: none;
}

/* Улучшенный логотип для мобильных */
@media (max-width: 767px) {
    .mobile-menu-logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 4px 0;
        gap: 6px;
        width: auto;
        max-width: 180px;
        height: 56px;
        border-radius: 28px;
    }
    
    .mobile-menu-logo-image {
        width: 40px;
        height: 40px;
        flex: none;
    }
    
    .mobile-menu-logo-text {
        width: 130px;
        height: 30px;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 900;
        font-size: 14px;
        line-height: 17px;
        color: #3056D3;
        flex: none;
    }
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 1002;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover {
    background: #F1EAE2;
}

.mobile-menu-close-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Улучшенная кнопка закрытия для мобильных */
@media (max-width: 767px) {
    .mobile-menu-close {
        display: flex;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }
    
    .mobile-menu-close-icon {
        width: 20px;
        height: 20px;
    }
    
    .mobile-menu-close:hover {
        background: #F1EAE2;
    }
}

.mobile-menu-nav {
    flex: 1;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

/* Улучшенная навигация для мобильных */
@media (max-width: 767px) {
    .mobile-menu-nav {
        height: 100%;
        padding: 24px;
        gap: 16px;
        background: #FFF9F2;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        box-sizing: border-box;
        justify-content: space-between;
    }
}

/* Адаптивные отступы для навигации */
@media (max-width: 360px) {
    .mobile-menu-nav {
        padding: 20px;
        gap: 14px;
    }
}

@media (min-width: 361px) and (max-width: 480px) {
    .mobile-menu-nav {
        padding: 16px;
        gap: 16px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .mobile-menu-nav {
        padding: 28px;
        gap: 18px;
    }
}

.mobile-menu-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #2B2B2B;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.mobile-menu-link:hover {
    background: #F1EAE2;
}

/* Улучшенные ссылки для мобильных */
@media (max-width: 767px) {
    .mobile-menu-link {
        padding: 14px 18px;
        font-size: 16px;
        line-height: 20px;
        border-radius: 12px;
        background: transparent;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-link:hover {
        background: #F1EAE2;
    }
}

.mobile-menu-language {
    position: relative;
}

.mobile-menu-language-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: #FFF9F2;
    border: 1px solid #ddd7d0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #2B2B2B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-language-btn:hover {
    background: #F1EAE2;
}

/* Улучшенная кнопка языка для мобильных */
@media (max-width: 767px) {
    .mobile-menu-language-btn {
        padding: 14px 18px;
        font-size: 16px;
        line-height: 20px;
        border-radius: 12px;
        background: #FFF9F2;
        border: 1px solid #ddd7d0;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-language-btn:hover {
        background: #F1EAE2;
    }
}

.mobile-menu-language-btn.active svg {
    transform: rotate(180deg);
}

.mobile-menu-language-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #FFF9F2;
    border: 1px solid #ddd7d0;
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 10;
}

.mobile-menu-language-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Улучшенное выпадающее меню для мобильных */
@media (max-width: 767px) {
    .mobile-menu-language-content {
        background: rgba(255, 249, 242, 0.5);
        border-radius: 12px;
        padding: 8px 0;
    }
    
    .mobile-menu-language-option {
        padding: 10px 16px;
        font-size: 15px;
        line-height: 18px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-language-option:hover {
        background: #F1EAE2;
    }
    
    .mobile-menu-language-option.active {
        background: #F1EAE2;
        color: #2B2B2B;
        font-weight: 600;
    }
}

.mobile-menu-language-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 18px;
    color: #2B2B2B;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.mobile-menu-language-option:hover {
    background: #F1EAE2;
}

.mobile-menu-language-option.active {
    background: #F1EAE2;
    color: #2B2B2B;
    font-weight: 700;
}

.mobile-menu-support {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: #3056D3;
    color: #F1EAE2;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    margin-top: auto;
}

.mobile-menu-support:hover {
    background: #2541B8;
}

/* Улучшенная кнопка поддержки для мобильных */
@media (max-width: 767px) {
    .mobile-menu-support {
        padding: 12px 18px;
        font-size: 16px;
        line-height: 20px;
        border-radius: 32px;
        background: #3056D3;
        color: #F1EAE2;
        transition: background-color 0.2s ease;
        margin-top: auto;
        align-self: stretch;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    
    .mobile-menu-support:hover {
        background: #2541B8;
    }
}

/* Адаптивные отступы для кнопки поддержки */
@media (max-width: 360px) {
    .mobile-menu-support {
        padding: 10px 16px;
        font-size: 15px;
    }
}

@media (min-width: 361px) and (max-width: 480px) {
    .mobile-menu-support {
        padding: 12px 18px;
        font-size: 16px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .mobile-menu-support {
        padding: 14px 20px;
        font-size: 17px;
    }
}

/* Переопределение мобильных стилей для iPad */
@media screen and (min-width: 431px) and (max-width: 1024px) {
    .header {
        height: 58px !important;
        margin-top: 32px !important;
        margin-bottom: 80px !important;
    }
    
    .mobile-menu-header {
        padding: 24px !important;
    }
}

/* Скрываем модальное меню на десктопе */
@media (min-width: 1025px) {
    .mobile-menu-modal {
        display: none;
    }
    
    .header {
        background: #FFF9F2;
    }
}

/* Мобильные стили (до 430px) */
@media (max-width: 430px) {
    .header-container {
        max-width: 1200px;
        padding: 0 16px;
    }

    .header {
        background: transparent;
        height: 56px;
        margin-top: 8px;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
    }

    .header-left-container {
        gap: 6px;
    }

    /* Логотип для мобильных */
    .header-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 4px 0;
        gap: 6px;
        width: auto;
        max-width: 180px;
        height: 56px;
        border-radius: 28px;
        text-decoration: none;
        transition: opacity 0.3s ease;
    }

    .logo {
        width: 40px;
        height: 40px;
        flex: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-text {
        width: 130px;
        height: 30px;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 900;
        font-size: 14px;
        line-height: 17px;
        color: #3056D3;
        flex: none;
    }

    /* Показываем бургер на мобильных */
    .burger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }

    .burger-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .burger-btn:hover {
        background: #F1EAE2;
    }

    /* Скрываем навигацию по умолчанию */
    .header-right-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 249, 242, 0.98);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 20px;
        gap: 12px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
    }

    .header-right-container.active {
        right: 0;
    }

    .nav-btn {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 12px 16px;
        gap: 8px;
        height: 44px;
        width: 100%;
        border-radius: 24px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 15px;
        line-height: 18px;
        transition: all 0.3s ease;
    }

    .nav-btn-about {
        color: #2B2B2B;
        white-space: nowrap;
    }

    .nav-btn-language {
        color: #2B2B2B;
        background: #FFF9F2;
        border: 1px solid #ddd7d0;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .nav-btn-language::after {
        content: '';
        width: 16px;
        height: 16px;
        background-image: url('../img/arrow.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    .nav-btn-support {
        width: 100%;
        background: #3056D3;
        color: #F1EAE2;
        justify-content: center;
    }

    .language-dropdown {
        width: 100%;
    }

    .language-dropdown-content {
        position: static;
        width: 100%;
        margin-top: 8px;
        background: rgba(255, 249, 242, 0.5);
        border-radius: 24px;
        padding: 8px 0;
    }

    .language-dropdown-content.show {
        display: flex;
    }

    .language-option {
        display: flex;
        align-items: center;
        padding: 10px 16px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 15px;
        line-height: 18px;
        color: #2B2B2B;
        transition: background 0.2s ease;
        cursor: pointer;
        white-space: nowrap;
    }

    .language-option:hover {
        background: #F1EAE2;
    }

    .language-option.active {
        background: #F1EAE2;
        color: #2B2B2B;
        font-weight: 600;
    }

    .language-dropdown .nav-btn-language.active::after {
        transform: rotate(180deg);
    }

    /* Скрываем скролл-меню на мобильных */
    .menu-scroll {
        display: none;
    }

    /* Переопределяем навигацию для модального меню */
    .header-right-container {
        display: none !important;
    }
}