:root {
    --blue: #293A5D;
    --blue-light: #687896;
    --blue-soft: #AAB6C9;
    --text: #263247;
    --muted: #778196;
    --light: #F1F3F6;
    --line: #DCE1E8;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Montserrat, Arial, sans-serif;
    color: var(--text);
    background: #fff;
}

a {
    text-decoration: none;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    height: 92px;

    background: #fff;
    border-bottom: 1px solid #E5E8ED;
    box-shadow: 0 4px 20px rgba(25, 38, 60, 0.05);
}

.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
}

.logo {
    width: 145px;
    flex-shrink: 0;
}

.logo img,
.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}


/* =========================
   DESKTOP MENU
========================= */

.menu {
    display: flex;
    align-items: center;
    gap: 32px;

    margin-left: auto;
}

.menu a {
    position: relative;

    color: var(--blue);

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    padding: 8px 0;

    transition: color 0.25s ease;
}


/* Полоса */

.menu a::after {
    content: '';

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 100%;
    height: 2px;

    background: var(--blue);

    transform: translateX(-50%) scaleX(0);
    transform-origin: center;

    transition: transform 0.3s ease;
}


/* Наведение */

.menu a:hover {
    color: var(--blue-light);
}

.menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}


/* Активный пункт */

.menu a.active {
    color: var(--blue);
}

.menu a.active::after {
    transform: translateX(-50%) scaleX(1);
}


.header-right {
    margin-left: 40px;

    display: flex;
    align-items: center;

    gap: 22px;

    flex-shrink: 0;
}

.phone-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 3px;
}

.phone {
    color: var(--blue);

    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;

    white-space: nowrap;
}


/* =========================
   LANGUAGE SWITCHER
========================= */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 9px;

    padding-left: 22px;

    border-left: 1px solid #DCE1E8;

    flex-shrink: 0;
}

.language {
    display: flex;
    align-items: center;
    gap: 5px;

    color: var(--blue-light);

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.language.active {
    color: var(--blue);
}

.flag {
    width: 19px;
    height: 13px;

    display: block;

    object-fit: cover;

    border-radius: 1px;

    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    background: transparent !important;

    color: var(--blue);

    align-items: center;
    justify-content: center;

    font-size: 27px;

    flex-shrink: 0;
}


/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    width: 310px !important;
    max-width: 85vw;

    background: var(--blue);
    color: #fff;
}

.mobile-menu .offcanvas-header {
    min-height: 75px;

    padding: 18px 25px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-language-switcher {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-right: auto;
}

.mobile-language {
    display: flex;
    align-items: center;
    gap: 5px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 11px;
    font-weight: 700;
}

.mobile-language.active {
    color: #fff;
}

.mobile-menu .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

.mobile-menu-links {
    padding: 15px 25px;
}

.mobile-menu-links a {
    position: relative;

    display: block;

    padding: 18px 0 18px 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    color: #fff;

    font-size: 17px;
    font-weight: 600;

    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}


/* Активный пункт */

.mobile-menu-links a.active {
    color: #fff;

    padding-left: 26px;
}


/* Полоса слева */

.mobile-menu-links a.active::before {
    content: '';

    position: absolute;

    left: 0;
    top: 50%;

    width: 3px;
    height: 0;

    background: #fff;

    transform: translateY(-50%);

    border-radius: 2px;

    animation: mobileMenuActive 0.3s ease forwards;
}


@keyframes mobileMenuActive {

    from {
        height: 0;
    }

    to {
        height: 28px;
    }

}

.mobile-menu-contacts {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 25px;

    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-contact-item {
    margin-bottom: 18px;
}

.mobile-contact-label,
.footer-title {
    display: block;

    margin-bottom: 7px;

    color: var(--blue-light);

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mobile-contact-label {
    color: var(--blue-soft);
}

.mobile-contact-value {
    color: #fff;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;

    min-height: 790px;

    padding-top: 92px;

    overflow: hidden;

    background: #fff;
}

.hero-photo {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 72%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #fff 0%,
            rgba(255, 255, 255, 0.96) 8%,
            rgba(255, 255, 255, 0.72) 22%,
            rgba(255, 255, 255, 0.18) 48%,
            rgba(255, 255, 255, 0) 75%
        ),
        url('/images/banner_index.webp')
        center / cover no-repeat;
}

.hero-content {
    position: relative;

    z-index: 2;

    padding-top: 133px;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 15px;

    color: var(--blue-light);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-kicker::before {
    content: '';

    width: 42px;
    height: 1px;

    background: var(--blue-light);

    flex-shrink: 0;
}

.hero-title {
    margin-top: 28px;

    color: var(--blue);

    font-size: clamp(55px, 7vw, 105px);
    line-height: 0.9;

    letter-spacing: -6px;

    font-weight: 800;
}

.hero-title span {
    color: var(--blue-light);
}

.hero-description {
    max-width: 430px;

    margin-top: 35px;

    color: #667187;

    font-size: 14px;
    line-height: 1.8;
}


/* =========================
   HERO META
========================= */

.hero-bottom {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 5;

    background: #fff;
}

.hero-meta {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    background: #fff;
}

.hero-meta-item {
    min-height: 100px;

    padding: 20px 38px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: var(--blue);
    background: #fff;

    border-top: 1px solid rgba(41, 58, 93, 0.08);
    border-right: 1px solid rgba(41, 58, 93, 0.11);
}

.hero-meta-item:nth-child(4),
.hero-meta-item:nth-child(8) {
    border-right: 0;
}

.hero-meta-item:nth-child(n + 5) {
    border-top: 1px solid rgba(41, 58, 93, 0.11);
}

.hero-meta-number {
    display: block;

    margin-bottom: 8px;

    color: var(--blue-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-meta-item strong {
    color: var(--blue);

    font-size: 14px;
    line-height: 1.35;
}


/* =========================
   DIRECTIONS
========================= */

.directions {
    padding: 145px 0;

    background: var(--light);
}

.directions-heading {
    margin-bottom: 70px;
}

.directions-kicker {
    margin-bottom: 22px;

    color: var(--blue-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.directions-title {
    margin: 0;

    color: var(--blue);

    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.92;

    letter-spacing: -5px;

    font-weight: 800;
}

.directions-intro {
    max-width: 420px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.8;
}


/* =========================
   DIRECTION LIST
========================= */

.direction-list {
    border-top: 1px solid var(--line);
}

.direction-item {
    position: relative;

    min-height: 150px;

    padding: 0 38px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-bottom: 1px solid var(--line);

    color: var(--blue);

    transition: color 0.35s;
}

.direction-item::before {
    content: '';

    position: absolute;

    inset: 0;

    z-index: 0;

    background-size: cover;
    background-position: center;

    opacity: 0;

    transition: opacity 0.45s;
}

.direction-item::after {
    content: '';

    position: absolute;

    inset: 0;

    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(21, 32, 52, 0.95),
        rgba(21, 32, 52, 0.72),
        rgba(21, 32, 52, 0.42)
    );

    opacity: 0;

    transition: opacity 0.35s;
}

.direction-item:hover {
    color: #fff;
}

.direction-item:hover::before,
.direction-item:hover::after {
    opacity: 1;
}

.direction-name {
    position: relative;

    z-index: 2;

    flex-grow: 1;

    font-size: clamp(35px, 4vw, 60px);
    line-height: 1;

    letter-spacing: -3px;

    font-weight: 700;
}

.direction-description {
    position: relative;

    z-index: 2;

    width: 300px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.6;
}

.direction-item:hover .direction-description {
    color: rgba(255, 255, 255, 0.68);
}

.direction-arrow {
    position: relative;

    z-index: 3;

    width: 80px;

    flex-shrink: 0;

    text-align: right;

    font-size: 22px;

    transition: transform 0.35s;
}

.direction-item:hover .direction-arrow {
    transform: translateX(8px);
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 55px 0 25px;

    background: #fff;
}

.footer-logo {
    width: 125px;
}

.footer-text {
    max-width: 360px;

    color: #748094;

    font-size: 12px;
    line-height: 1.7;
}

.footer-link,
.footer-address-link {
    display: block;

    margin-bottom: 8px;

    color: #748094;

    font-size: 12px;
}

.copyright {
    margin-top: 50px;
    padding-top: 20px;

    border-top: 1px solid var(--line);

    color: #A0A8B5;

    font-size: 10px;
}


/* =========================
   COOKIE NOTICE
========================= */

.cookie-notice {
    position: fixed;

    left: 24px;
    right: 24px;
    bottom: 24px;

    z-index: 2000;

    display: none;

    background: #fff;

    border: 1px solid #DCE1E8;

    box-shadow: 0 12px 40px rgba(25, 38, 60, 0.15);
}

.cookie-notice.show {
    display: block;
}

.cookie-content {
    padding: 18px 22px;

    display: flex;
    align-items: center;

    gap: 25px;
}

.cookie-content strong {
    color: var(--blue);

    font-size: 13px;
}

.cookie-content p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 11px;
}

.cookie-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.cookie-button {
    padding: 11px 22px;

    border: 0;

    background: var(--blue);
    color: #fff;

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;
}

.cookie-button-secondary {
    background: transparent;

    color: var(--blue);

    border: 1px solid var(--line);
}

.cookie-button:hover {
    opacity: 0.9;
}


/* =========================================================
   TABLET
   768px — 991px
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {

    /* =========================
       HEADER
    ========================== */

    .header {
        height: 82px;
    }

    .header-inner {
        justify-content: space-between;
    }

    .logo {
        width: 135px;
    }

    .menu,
    .language-switcher {
        display: none;
    }

    .header-right {
        margin-left: auto;

        display: flex;
        align-items: center;

        gap: 18px;

        flex-shrink: 0;
    }

    .phone-list {
        display: flex;
        flex-direction: column;
        align-items: flex-end;

        gap: 3px;
    }

    .phone {
        display: block;

        font-size: 11px;
        line-height: 1.3;
    }

    .mobile-menu-button {
        display: flex;

        width: 42px;
        height: 42px;

        flex-shrink: 0;
    }


    /* =========================
       HERO
    ========================== */

    .hero {
        min-height: 0;

        padding-top: 82px;

        overflow: hidden;

        display: flex;
        flex-direction: column;
    }


    /* =========================
       HERO IMAGE
    ========================== */

    .hero-photo {
        position: absolute;

        top: 82px;
        right: 0;

        width: 58%;
        height: 560px;

        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 0.96) 10%,
                rgba(255, 255, 255, 0.75) 25%,
                rgba(255, 255, 255, 0.30) 55%,
                rgba(255, 255, 255, 0) 100%
            ),
            url('/images/banner_index.webp')
            center center / cover no-repeat;
    }


    /* =========================
       HERO CONTENT
    ========================== */

    .hero-content {
        position: relative;
        z-index: 2;

        width: 100%;
        max-width: 600px;

        padding-top: 105px;
        padding-bottom: 90px;
    }

    .hero-kicker {
        font-size: 10px;
    }

    .hero-title {
        max-width: 560px;

        margin-top: 25px;

        font-size: 72px;
        line-height: 0.92;

        letter-spacing: -5px;
    }

    .hero-description {
        max-width: 380px;

        margin-top: 30px;

        font-size: 13px;
        line-height: 1.75;
    }


    /* =========================
       HERO META
       
       ВАЖНО:
       больше НЕ absolute
    ========================== */

    .hero-bottom {
        position: relative;

        left: auto;
        right: auto;
        bottom: auto;

        width: 100%;

        z-index: 5;

        background: #fff;
    }

    .hero-meta {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        width: 100%;

        background: #fff;
    }

    .hero-meta-item {
        min-height: 88px;

        padding: 16px 25px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        border-top: 1px solid rgba(41, 58, 93, 0.10);
        border-right: 1px solid rgba(41, 58, 93, 0.11);
    }

    .hero-meta-item:nth-child(even) {
        border-right: 0;
    }

    .hero-meta-item:nth-child(-n + 2) {
        border-top: 1px solid rgba(41, 58, 93, 0.08);
    }

    .hero-meta-number {
        margin-bottom: 6px;

        font-size: 9px;
    }

    .hero-meta-item strong {
        font-size: 12px;
        line-height: 1.4;
    }


    /* =========================
       DIRECTIONS
    ========================== */

    .directions {
        padding: 110px 0;
    }

    .direction-description {
        display: none;
    }

    .direction-name {
        font-size: clamp(38px, 5vw, 52px);
    }

    .direction-arrow {
        width: 60px;
    }
}


/* =========================================================
   MOBILE
   до 767px
========================================================= */

@media (max-width: 767px) {

    /* =========================
       HEADER
    ========================== */

    .header {
        height: 76px;
    }

    .header-inner {
        justify-content: space-between;
    }

    .logo {
        width: 120px;
    }

    .menu,
    .language-switcher {
        display: none;
    }

    .header-right {
        margin-left: auto;

        display: flex;
        align-items: center;

        gap: 8px;

        flex-shrink: 0;
    }

    .phone {
        display: none;
    }

    .mobile-menu-button {
        display: flex;

        width: 42px;
        height: 42px;

        flex-shrink: 0;
    }


    /* =========================
       HERO
    ========================== */

    .hero {
        min-height: 0;

        padding-top: 76px;

        overflow: hidden;

        display: flex;
        flex-direction: column;
    }


    /* =========================
       HERO IMAGE
    ========================== */

    .hero-photo {
        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        width: 100%;
        height: 480px;

        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.99) 0%,
                rgba(255, 255, 255, 0.94) 25%,
                rgba(255, 255, 255, 0.70) 50%,
                rgba(255, 255, 255, 0.30) 75%,
                rgba(255, 255, 255, 0) 100%
            ),
            url('/images/banner_index.webp')
            center center / cover no-repeat;
    }


    /* =========================
       HERO CONTENT
    ========================== */

    .hero-content {
        position: relative;

        z-index: 2;

        width: 100%;

        padding-top: 65px;
        padding-bottom: 55px;
    }

    .hero-kicker {
        display: flex;
        align-items: center;
        gap: 10px;

        font-size: 9px;

        letter-spacing: 1.7px;
    }

    .hero-kicker::before {
        width: 30px;
    }

    .hero-title {
        max-width: 330px;

        margin-top: 22px;

        font-size: 50px;
        line-height: 0.92;

        letter-spacing: -3px;
    }

    .hero-description {
        max-width: 300px;

        margin-top: 25px;

        font-size: 12px;
        line-height: 1.75;
    }


    /* =========================
       HERO META
       
       ВАЖНО:
       теперь НЕ absolute
    ========================== */

    .hero-bottom {
        position: relative;

        left: auto;
        right: auto;
        bottom: auto;

        width: 100%;

        z-index: 5;

        background: #fff;
    }

    .hero-meta {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        width: 100%;

        background: #fff;
    }

    .hero-meta-item {
        min-height: 70px;

        padding: 10px 16px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        border-top: 1px solid rgba(41, 58, 93, 0.10);
        border-right: 1px solid rgba(41, 58, 93, 0.11);
    }

    .hero-meta-item:nth-child(even) {
        border-right: 0;
    }

    .hero-meta-item:nth-child(-n + 2) {
        border-top: 1px solid rgba(41, 58, 93, 0.08);
    }

    .hero-meta-number {
        margin-bottom: 4px;

        font-size: 7px;

        letter-spacing: 1.2px;
    }

    .hero-meta-item strong {
        font-size: 10px;
        line-height: 1.35;
    }


    /* =========================
       DIRECTIONS
    ========================== */

    .directions {
        padding: 80px 0;
    }

    .directions-heading {
        margin-bottom: 45px;
    }

    .directions-title {
        font-size: 45px;
        line-height: 0.95;

        letter-spacing: -3px;
    }

    .directions-intro {
        max-width: 300px;

        font-size: 12px;
    }


    /* =========================
       DIRECTION ITEMS
    ========================== */

    .direction-item {
        min-height: 105px;

        padding: 0 25px;
    }

    .direction-name {
        font-size: 31px;

        letter-spacing: -2px;
    }

    .direction-description {
        display: none;
    }

    .direction-arrow {
        width: 40px;

        font-size: 19px;
    }

    .direction-item::before,
    .direction-item::after {
        display: none;
    }


    /* =========================
       COOKIE
    ========================== */

    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-content {
        padding: 16px;

        align-items: flex-start;
        flex-direction: column;

        gap: 15px;
    }

    .cookie-content p {
        line-height: 1.5;
    }

    .cookie-actions {
        width: 100%;

        display: flex;

        gap: 8px;
    }

    .cookie-button {
        flex: 1;

        padding: 11px 12px;
    }
}


/* =========================================================
   SMALL MOBILE
   до 480px
========================================================= */

@media (max-width: 480px) {

    .hero-photo {
        height: 450px;

        background:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.99) 0%,
                rgba(255, 255, 255, 0.94) 30%,
                rgba(255, 255, 255, 0.65) 60%,
                rgba(255, 255, 255, 0.20) 85%,
                rgba(255, 255, 255, 0) 100%
            ),
            url('/images/banner_index.webp')
            center center / cover no-repeat;
    }

    .hero-content {
        padding-top: 58px;
        padding-bottom: 45px;
    }

    .hero-title {
        max-width: 290px;

        font-size: 44px;

        letter-spacing: -2.5px;
    }

    .hero-description {
        max-width: 270px;

        margin-top: 22px;

        font-size: 11px;
        line-height: 1.7;
    }

    .hero-meta-item {
        min-height: 64px;

        padding: 9px 13px;
    }

    .hero-meta-item strong {
        font-size: 9px;
    }

    .hero-meta-number {
        font-size: 6.5px;
    }

    .direction-item {
        padding: 0 20px;
    }

    .direction-name {
        font-size: 28px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   до 380px
========================================================= */

@media (max-width: 380px) {

    .logo {
        width: 110px;
    }

    .mobile-menu-button {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: 40px;

        letter-spacing: -2px;
    }

    .hero-description {
        max-width: 250px;
    }

    .hero-meta-item {
        padding: 8px 10px;
    }

    .hero-meta-item strong {
        font-size: 8px;
    }

    .hero-meta-number {
        font-size: 6px;
    }
}

/* =========================================================
   SERVICE ANCHOR BUTTONS
   Фиксированная высота на планшете и мобильных
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {

    .bg-light .btn.btn-outline-dark {
        min-height: 64px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 14px 16px;

        line-height: 1.3;
    }
}


@media (max-width: 767px) {

    .bg-light .btn.btn-outline-dark {
        min-height: 68px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 15px 12px;

        line-height: 1.3;

        text-align: center;
    }
}


@media (max-width: 480px) {

    .bg-light .btn.btn-outline-dark {
        min-height: 72px;

        padding: 16px 10px;

        line-height: 1.25;
    }
}


@media (max-width: 380px) {

    .bg-light .btn.btn-outline-dark {
        min-height: 74px;

        padding: 16px 8px;
    }
}

@media (max-width: 991px) {
    .cat-logo {
        display: none !important;
    }
}

