:root {
        --header-height: 68px;
    }

/* --- Стили для Header --- */
.header-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    top: 0; left: 0; right: 0;
    z-index: 1001;
    transition: background 0.3s ease;
    color: var(--neutral-7);
}

.header-new .header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    z-index: 999;
}

.header-new .header-center img {
    transition: opacity 0.3s ease;
    max-width: 10em;
}

@media (min-width: 940px) {
    .header-new .header-center img {
        max-width: 20em;
    }
}

.header-new .nav {
    justify-content: flex-start;
}

.header-new .link._active, .header-new .path-node .nav a._active {
    color: var(--neutral-7);
}

.btn-header-cta {
    white-space: nowrap;
    padding: 6px;
    border-radius: 55px;
    background: #fff;
    color: #000;
    display: flex;
}
.btn-header-cta:hover {
    background: #000;
    color: #fff;
}

.btn-header-cta__text {
    display: none;
}

.btn-header-cta__icon {
    width: 22px;
    height: 22px;
}

@media (min-width: 940px) {

    .btn-header-cta {
        white-space: nowrap;
        padding: 6px 20px;
        border-radius: 55px;
        background: #fff;
        color: #000;
    }

    .btn-header-cta__icon {
        display: none;
    }
    .btn-header-cta__text {
        display: inline-block;
    }
}

/* --- Анимация лого --- */
.home_main .hm-hero-logo-anim {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    width: 60vw;
    max-width: 600px;
    z-index: 10000;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, top, left, opacity;
}

body.path-frontpage.logo-scrolled .hm-hero-logo-anim {
    top: 40px;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.12);
    opacity: 0;
    visibility: hidden;
}

body.path-frontpage:not(.logo-scrolled) .header-new .header-center img {
    opacity: 0 !important;
    visibility: hidden;
}

body.path-frontpage.logo-scrolled .header-new .header-center img {
    opacity: 1 !important;
    visibility: visible;
    transition: opacity 0.4s ease 0.4s;
}

body.path-frontpage.logo-scrolled-instant .hm-hero-logo-anim { transition: none !important; }
body.path-frontpage.logo-scrolled-instant .header-new .header-center img { transition: none !important; }

/* --- Табы --- */
.home_main .tab-pane { display: none; }
.home_main .tab-pane.active {
    display: block;
    animation: fadeInTabs 0.5s ease-out forwards;
}
@keyframes fadeInTabs {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Навигация и Гамбургер --- */
.header-left, .header-right { display: flex; align-items: center; }
.header-left { flex: 1; justify-content: flex-start; }
.header-right { flex: 1; justify-content: flex-end; gap: 15px; }

/* Сброс стилей для кнопки (вместо label) */
.hamburger { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
    margin-right: 15px; 
    background: transparent;
    border: none;
    padding: 0;
}
.hamburger span { 
    display: block; 
    width: 25px; 
    height: 3px; 
    background: #fff; 
    transition: 0.3s;
}

.nav { display: flex; gap: 20px; }

.socials { display: flex; gap: 10px; align-items: center; margin: 0;}
.messenger img { width: 20px; height: 20px; }

/* --- Логика мобильного полноэкранного меню --- */
@media (max-width: 1024px) {
    /* Гамбургер поднимаем выше меню, чтобы его можно было нажать для закрытия */
    .hamburger { 
        display: flex; 
        position: relative;
        z-index: 2001; 
    }

    /* Полноэкранное меню (скрыто за левым краем экрана) */
    .mobile-nav {
        position: fixed !important; 
        top: 0; 
        left: 0; 
        width: 100%;
        height: 100vh; /* На весь экран */
        background: var(--neutral-2, #1a1a1a); /* Темный фон как в оригинале */
        padding: 100px 20px 40px; /* Отступ сверху, чтобы не перекрывать шапку */
        z-index: 2000;
        
        flex-direction: column;
        align-items: center;
        gap: 20px;

        /* Подготовка к анимации выезда слева */
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
        
        /* Важно: мы не используем display: none, иначе не будет плавной анимации */
        display: flex !important; 
    }

    /* Ссылки в полноэкранном меню делаем белыми и крупнее */
    .mobile-nav .link {
        color: #fff !important;
        font-size: 18px;
        text-transform: uppercase;
        line-height: 2.5;
    }

    /* Состояние открытого меню (добавляется через JS) */
    .mobile-nav.is-open { 
        opacity: 1;
        visibility: visible;
        transform: translateX(0); /* Меню выезжает на место */
    }

    /* (Опционально) Анимация превращения гамбургера в крестик, если JS добавляет класс .is-active */
    .hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #fff; }
    .hamburger.is-active span:nth-child(2) { opacity: 0; }
    .hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #fff; }
}

/* Возврат отображения для десктопа */
@media (min-width: 1025px) {
    .mobile-nav {
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        flex-direction: row;
    }
}

/* --- Стили для переключателя стран и языков --- */
.region-language {
    position: relative;
}

/* Кнопка с глобусом */
.js-region-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Запрет переноса текста */
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
}

.language .globe-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.language .rl-current-text {
    text-transform: uppercase;
}

.language .rl-current-text, .language .arrow-icon {
    display: none;
}

@media (min-width: 840px) {
    .language .rl-current-text, .language .arrow-icon {
        display: block;
    }
}

/* Переворот стрелочки при открытии */
.js-region-dropdown-wrapper.is-open .arrow-icon {
    transform: rotate(180deg);
}

/* Выпадающий список (базовое состояние: скрыт) */
.language.region-language .region-lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: auto;
    min-width: 130px;
    background-color: var(--neutral-2, #1a1a1a);
    padding: 15px;
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    border-radius: 4px;
    
    /* Подготовка к плавной анимации */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 2000;
}

/* Выпадающий список (состояние: открыт) */
.js-region-dropdown-wrapper.is-open .region-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Внутренняя структура списка */
.rl-region {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.rl-label {
    color: var(--neutral-5, #606060);
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rl-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rl-links a {
    text-transform: uppercase;
}

.rl-links a:hover {
    color: #fff;
}

.rl-sep {
    color: var(--neutral-5, #606060);
    font-size: 10px;
}