/* ==========================================================================
   #NEW DESIGN: PIXEL PERFECT HEADER & BASE STYLES
   ========================================================================== */

:root {
    --bg-page: #F6F1ED;
    --header-bg: #FFFFFF;
    --header-border: #F4F4F4;
    --color-orange: #F36849;
    --color-black: #000000;
    --color-dark: #1B1815;
    --color-gray-divider: #BEBEBE;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-page);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Hide old topbar completely */
.topbar {
    display: none !important;
}

/* ==========================================================================
   #SITE HEADER
   ========================================================================== */
.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
}

.site-header__container {
    width: calc(100% - 120px);
    max-width: 1800px;
    height: 80px;
    margin: 30px auto 0;
    padding: 0 31px 0 22px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid #F4F4F4;
    border-radius: 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.site-header__logo img,
.site-header__logo svg {
    display: block;
    width: 158px;
    height: 48px;
    object-fit: contain;
}

/* Navigation */
.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    margin: 0 30px;
}

.site-header__nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.site-header__nav-item {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.site-header__nav-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 18px;
    line-height: 24.3px;
    color: #000000;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.site-header__nav-link:hover {
    color: var(--color-orange);
}

.site-header__nav-chevron {
    margin-left: 8px;
    width: 12px;
    height: 7px;
    flex-shrink: 0;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.site-header__nav-item:hover .site-header__nav-chevron {
    transform: rotate(180deg);
}

.site-header__nav-item:hover .site-header__nav-chevron path {
    stroke: var(--color-orange);
}

/* Hover bridge */
.site-header__nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;
}

/* Dropdowns */
.site-header__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: #FFFFFF;
    border: 1px solid #F0EAE4;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    z-index: 1050;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header__nav-item:hover > .site-header__dropdown {
    display: block;
    animation: headerFadeIn 0.2s ease forwards;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header__dropdown.cols-2 {
    min-width: 480px;
}

.site-header__dropdown.cols-2 .site-header__subnav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.site-header__subnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-header__subnav-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__subnav-item a {
    display: block;
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 20px;
    color: #222222;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.site-header__subnav-item a:hover {
    color: var(--color-orange);
    transform: translateX(3px);
}

/* Mega Menu for Другие ВНЖ */
.site-header__megamenu {
    left: -120px;
    min-width: 680px;
    padding: 24px 28px;
}

.site-header__nav-item:hover > .site-header__megamenu {
    display: block;
}

.site-header__megamenu-cols {
    display: flex;
    gap: 36px;
}

.site-header__megamenu-col {
    flex: 1;
    min-width: 180px;
}

.site-header__megamenu-col-title {
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9E958C;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #F0ECE7;
}

/* Right Section Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__messengers {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-header__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__social:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.site-header__social img,
.site-header__social svg {
    display: block;
    width: 28px;
    height: 28px;
}

.site-header__phone {
    margin-left: 21px;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 20px;
    line-height: 27px;
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-header__phone:hover {
    color: var(--color-orange);
}

.site-header__divider {
    width: 1px;
    height: 20px;
    background-color: var(--color-gray-divider);
    margin: 0 24px;
}

/* Language Switcher */
.site-header__lang {
    position: relative;
}

.site-header__lang-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 18px;
    line-height: 24.3px;
    color: #000000;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.site-header__lang-btn:hover {
    color: var(--color-orange);
}

.site-header__lang-chevron {
    margin-left: 7px;
    width: 12px;
    height: 7px;
    transition: transform 0.2s ease;
}

.site-header__lang:hover .site-header__lang-chevron {
    transform: rotate(180deg);
}

.site-header__lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #FFFFFF;
    border: 1px solid #F0EAE4;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 16px;
    min-width: 60px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 1050;
}

.site-header__lang:hover .site-header__lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__lang-link {
    display: block;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s ease;
}

.site-header__lang-link:hover {
    color: var(--color-orange);
}

/* Burger button (hidden on desktop) */
.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.site-header__burger-line {
    display: block;
    height: 2px;
    background-color: var(--color-orange);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.site-header__burger-line--top {
    width: 25px;
}

.site-header__burger-line--bottom {
    width: 16px;
}

.site-header__burger.is-active .site-header__burger-line--top {
    width: 22px;
    transform: translateY(4px) rotate(45deg);
}

.site-header__burger.is-active .site-header__burger-line--bottom {
    width: 22px;
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Drawer */
.site-header__mobile-drawer {
    display: none;
}

/* ==========================================================================
   #RESPONSIVE DESIGN (Pixel Perfect Breakpoints)
   ========================================================================== */

@media (max-width: 1599px) {
    .site-header__container {
        width: calc(100% - 60px);
        margin: 20px auto 0;
        padding: 0 24px 0 20px;
    }
    .site-header__nav {
        margin: 0 16px;
    }
    .site-header__nav-list {
        gap: 16px;
    }
    .site-header__nav-link {
        font-size: 16px;
    }
    .site-header__phone {
        font-size: 18px;
        margin-left: 16px;
    }
    .site-header__divider {
        margin: 0 16px;
    }
}

@media (max-width: 1240px) {
    .site-header__nav {
        margin: 0 10px;
    }
    .site-header__nav-list {
        gap: 12px;
    }
    .site-header__nav-link {
        font-size: 15px;
    }
    .site-header__phone {
        font-size: 16px;
        margin-left: 10px;
    }
    .site-header__divider {
        margin: 0 10px;
    }
}

/* Switch to Mobile Header at <= 1024px */
@media (max-width: 1024px) {
    .site-header__container {
        width: calc(100% - 30px);
        height: 50px;
        margin: 15px auto 0;
        padding: 0 16px 0 15px;
        border-radius: 10px;
    }

    .site-header__logo img,
    .site-header__logo svg {
        width: 110px;
        height: 32px;
    }

    .site-header__nav,
    .site-header__actions {
        display: none !important;
    }

    .site-header__burger {
        display: flex;
    }

    /* Mobile Drawer */
    .site-header__mobile-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: #FFFFFF;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1080;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 24px 30px;
        box-sizing: border-box;
        overflow-y: auto;
    }

    .site-header__mobile-drawer.is-open {
        right: 0;
    }

    .site-header__mobile-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1070;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .site-header__mobile-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .site-header__mobile-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .site-header__mobile-menu-item {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .site-header__mobile-menu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: var(--font-main);
        font-size: 18px;
        font-weight: 500;
        color: #000000;
        text-decoration: none;
        padding: 8px 0;
        cursor: pointer;
    }

    .site-header__mobile-menu-link:hover {
        color: var(--color-orange);
    }

    .site-header__mobile-submenu {
        display: none;
        list-style: none;
        margin: 8px 0 0 16px;
        padding: 0 0 0 12px;
        border-left: 2px solid #F0ECE7;
        flex-direction: column;
        gap: 10px;
    }

    .site-header__mobile-menu-item.is-expanded .site-header__mobile-submenu {
        display: flex;
    }

    .site-header__mobile-submenu a {
        font-family: var(--font-main);
        font-size: 15px;
        color: #444444;
        text-decoration: none;
        display: block;
        padding: 4px 0;
    }

    .site-header__mobile-contacts {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #F0ECE7;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .site-header__mobile-phone {
        font-family: var(--font-main);
        font-size: 18px;
        font-weight: 600;
        color: #000000;
        text-decoration: none;
    }

    .site-header__mobile-messengers {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .site-header__mobile-langs {
        margin-top: 10px;
        display: flex;
        gap: 12px;
    }

    .site-header__mobile-langs a {
        font-family: var(--font-main);
        font-size: 16px;
        font-weight: 500;
        color: #000000;
        text-decoration: none;
        padding: 6px 14px;
        border-radius: 8px;
        background: #F6F1ED;
    }

    .site-header__mobile-langs a.active {
        background: var(--color-orange);
        color: #FFFFFF;
    }
}

/* ==========================================================================
   #NEW DESIGN: HERO SECTION (PIXEL PERFECT FIGMA FRAME 76:618 & 83:2954)
   ========================================================================== */

:root {
    --font-heading: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
}

.new-hero {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 60px;
}

.new-hero__container {
    width: calc(100% - 120px);
    max-width: 1800px;
    margin: 30px auto 0;
    position: relative;
    display: grid;
    grid-template-columns: 728px 1fr;
    min-height: 895px;
    box-sizing: border-box;
}

/* --- Left Column: Content --- */
.new-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 35px;
    z-index: 5;
}

.new-hero__title {
    font-family: var(--font-heading);
    font-size: 77px;
    font-weight: 700;
    line-height: 1.15;
    color: #2C2C2C;
    text-transform: uppercase;
    margin: 0 0 28px 0;
    letter-spacing: -0.01em;
}

.new-hero__subtitle {
    font-family: var(--font-main);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.4;
    color: #2C2C2C;
    max-width: 626px;
    margin: 0 0 45px 0;
}

.new-hero__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
}

.new-hero__btn {
    height: 70px;
    padding: 0 42px;
    background: #F36849;
    border-radius: 100px;
    color: #FFFFFF;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(243, 104, 73, 0.2);
}

.new-hero__btn:hover {
    background: #E55839;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(243, 104, 73, 0.35);
}

.new-hero__btn-arrow {
    width: 70px;
    height: 70px;
    background: #F36849;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(243, 104, 73, 0.2);
}

.new-hero__btn-arrow:hover {
    background: #E55839;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(243, 104, 73, 0.35);
}

/* Stats (Desktop) */
.new-hero__stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.new-hero__stat-card {
    width: 370px;
    height: 96px;
    background: #FFFFFF;
    border-radius: 16px;
    box-sizing: border-box;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.new-hero__stat-num {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
    color: #2C2C2C;
    min-width: 105px;
    letter-spacing: -0.02em;
}

.new-hero__stat-label {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: #2C2C2C;
}

/* Mobile Stats hidden by default on desktop */
.new-hero__mobile-stats {
    display: none;
}

/* --- Right Column: Visual & Slider --- */
.new-hero__visual-wrap {
    position: relative;
    width: 100%;
    height: 895px;
}

.new-hero__visual {
    width: 100%;
    max-width: 1072px;
    height: 895px;
    margin-left: auto;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.new-hero__visual-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right top;
    display: block;
}

/* Slider Docking at the cutout bottom-left */
.new-hero__slider-dock {
    position: absolute;
    bottom: 0;
    left: -335px;
    width: 692px;
    z-index: 10;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 18px 18px 20px 18px;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.new-hero__slider-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.new-hero__slider-nav {
    width: 92px;
    height: 42px;
    background: #F6F1ED;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.new-hero__slider-arrow {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.new-hero__slider-arrow:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

.new-hero__slider-divider {
    width: 1px;
    height: 20px;
    background: #D8D2CB;
}

.new-hero__slider-track-wrap {
    overflow: hidden;
    width: 656px;
    border-radius: 12px;
}

.new-hero__slider-track {
    display: flex;
    gap: 13px;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.new-hero__card {
    width: 210px;
    min-width: 210px;
    height: 260px;
    background: #FFFFFF;
    border: 1px solid #F0ECE7;
    border-radius: 12px;
    padding: 8px 8px 12px 8px;
    box-sizing: border-box;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.new-hero__card:hover {
    transform: translateY(-4px);
    border-color: #E2DBD4;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.new-hero__card-img-wrap {
    width: 194px;
    height: 179px;
    border-radius: 8px;
    overflow: hidden;
    background: #F0ECE7;
}

.new-hero__card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.new-hero__card-divider {
    width: 100%;
    height: 1px;
    background: #EEEEEE;
    margin: 8px 0;
}

.new-hero__card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-hero__card-flag {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}

.new-hero__card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.new-hero__card-title {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
}

.new-hero__card-terms {
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 400;
    color: #777777;
    white-space: nowrap;
    line-height: 1.2;
}

/* ==========================================================================
   #HERO RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Medium Desktops & Laptops (1200px - 1500px) */
@media (max-width: 1500px) {
    .new-hero__container {
        grid-template-columns: 580px 1fr;
        min-height: auto;
    }

    .new-hero__title {
        font-size: 60px;
    }

    .new-hero__subtitle {
        font-size: 22px;
    }

    .new-hero__visual-wrap {
        height: 720px;
    }

    .new-hero__visual {
        height: 720px;
    }

    .new-hero__slider-dock {
        left: -200px;
    }
}

/* Tablets & Small Desktops (992px - 1199px) */
@media (max-width: 1199px) {
    .new-hero__container {
        display: flex;
        flex-direction: column;
        width: calc(100% - 60px);
        margin: 20px auto 0;
    }

    .new-hero__title {
        font-size: 52px;
    }

    .new-hero__subtitle {
        font-size: 20px;
        max-width: 100%;
    }

    .new-hero__visual-wrap {
        height: auto;
        min-height: auto;
        margin-top: 30px;
    }

    .new-hero__visual {
        max-width: 100%;
        height: auto;
    }

    .new-hero__slider-dock {
        position: static;
        width: 100%;
        margin-top: 25px;
    }

    .new-hero__slider-track-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }

    .new-hero__stats {
        flex-direction: row;
        width: 100%;
    }

    .new-hero__stat-card {
        flex: 1;
        width: auto;
    }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767px) {
    .new-hero {
        margin-bottom: 40px;
    }

    .new-hero__container {
        width: calc(100% - 30px);
        margin: 15px auto 0;
    }

    .new-hero__content {
        padding-top: 10px;
    }

    .new-hero__title {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 16px;
    }

    .new-hero__subtitle {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 24px;
    }

    .new-hero__cta {
        margin-bottom: 24px;
        gap: 8px;
    }

    .new-hero__btn {
        height: 50px;
        padding: 0 26px;
        font-size: 16px;
    }

    .new-hero__btn-arrow {
        width: 50px;
        height: 50px;
    }

    .new-hero__btn-arrow svg {
        width: 16px;
        height: 16px;
    }

    /* Hide desktop stats, show mobile stats below visual */
    .new-hero__stats {
        display: none;
    }

    .new-hero__visual-wrap {
        height: auto;
        margin-top: 0;
    }

    .new-hero__visual {
        border-radius: 16px;
    }

    .new-hero__visual-img {
        border-radius: 16px;
    }

    .new-hero__slider-dock {
        display: none;
    }

    .new-hero__mobile-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 16px;
        width: 100%;
    }

    .new-hero__mobile-stats .new-hero__stat-card {
        width: 100%;
        height: 78px;
        padding: 10px 14px;
        border-radius: 12px;
        gap: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }

    .new-hero__mobile-stats .new-hero__stat-num {
        font-size: 30px;
        min-width: auto;
    }

    .new-hero__mobile-stats .new-hero__stat-label {
        font-size: 13px;
        line-height: 1.2;
    }
}

