/*
 * Элементы, используемые только в мобильной шапке,
 * на десктопе скрыты.
 */
.top-menu__mobile-top {
    display: none;
}


.top-menu {
    display: flex;
    width: 100%;
    max-width: 886px;
    align-items: center;
    justify-content: flex-start;
    gap: 98px;
}

.top-menu > .top-menu__list {
    display: flex;
    flex: 0 0 436px;
    width: 436px;
    max-width: 436px;
    height: 19px;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 23px;
    list-style: none;
}

.top-menu__link {
    position: relative;
    display: flex;
    height: 19px;
    align-items: center;
    color: #ffffff;
    font-family: 'Manrope', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.top-menu__mobile-back,
.top-menu__mobile-submenu,
.top-menu__mobile-title,
.top-menu__mobile-list {
    display: none;
}

/* =========================================================
   Десктопное меню
   ========================================================= */

@media (min-width: 1280px) {
    .top-menu {
        /*display: flex;
        align-items: center;
        justify-content: center;*/
    }

    .top-menu > .top-menu__list {
        /*display: flex;
        align-items: center;
        gap: 20px;

        margin: 0;
        padding: 0;

        list-style: none;*/
    }

    .top-menu__item {
        position: relative;
    }

    .top-menu__item:hover {
        opacity: 1;
    }

    .top-menu__link {
        /*position: relative;

        display: flex;
        min-height: 40px;
        align-items: center;

        color: #ffffff;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;

        transition: color 0.2s ease;*/
    }

    .top-menu__link::after {
        content: "";

        position: absolute;
        right: 0;
        bottom: -8px;
        left: 0;

        height: 3px;
        border-radius: 3px;
        background-color: #cae652;

        opacity: 0;
        transform: scaleX(0.6);
        transform-origin: center;

        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    .top-menu__item:hover > .top-menu__link::after,
    .top-menu__item:focus-within > .top-menu__link::after,
    .top-menu__link.is-active::after {
        opacity: 1;
        transform: scaleX(1);
    }

    .top-menu__item:hover > .top-menu__link,
    .top-menu__item:focus-within > .top-menu__link,
    .top-menu__link.is-active {
        color: #ffffff;
        text-decoration: none;
    }

    .top-menu__link {
        padding-bottom: 8px;
    }

    .top-menu__link--parent {
        user-select: none;
    }

    .top-menu__submenu {
        position: absolute;
        z-index: 1000;
        top: calc(100% + 12px);
        left: 0;

        display: block;
        min-width: 250px;
        min-height: 128px;
        margin: 0;
        padding: 0;

        list-style: none;
        background: #3f3558;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(6px);

        transition:
            opacity 0.18s ease,
            visibility 0.18s ease,
            transform 0.18s ease;
    }

    /*
     * Невидимая область между пунктом верхнего уровня
     * и выпадающим подменю.
     */
    .top-menu__submenu::before {
        content: "";

        position: absolute;
        right: 0;
        bottom: 100%;
        left: 0;

        height: 12px;
    }

    .top-menu__item--has-submenu:hover > .top-menu__submenu,
    .top-menu__item--has-submenu:focus-within > .top-menu__submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .top-menu__submenu-item {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /*
     * Первый дочерний пункт на десктопе всегда скрыт.
     */
    .top-menu__submenu-item--section-link {
        display: none;
    }

    .top-menu__submenu-link {
        box-sizing: border-box;

        display: block;
        width: 100%;
        padding: 12px 16px;

        color: #ffffff;
        font-family: "Rubik", sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
        text-decoration: none;
        white-space: nowrap;

        transition:
            background-color 0.2s ease,
            color 0.2s ease;
    }

    .top-menu__submenu-link:hover,
    .top-menu__submenu-link:focus-visible,
    .top-menu__submenu-link.is-active {
        color: #ffffff;
        text-decoration: none;
        background-color: rgba(217, 217, 217, 0.2);
    }

    .top-menu__submenu-item--section-link
    + .top-menu__submenu-item
    .top-menu__submenu-link {
        border-radius: 12px 12px 0 0;
    }

    .top-menu__submenu-item:last-child
    .top-menu__submenu-link {
        border-radius: 0 0 12px 12px;
    }
}

/* =========================================================
   Мобильное меню
   ========================================================= */

@media (max-width: 1279px) {

    .header.header--active .burger-icon {
        position: relative;
        z-index: 2147483647;

        display: block !important;
        visibility: visible;
        opacity: 1;
    }

    .header.header--active .burger-icon__line {
        display: block;
        background-color: #000;
    }
    
    .top-menu__item--has-submenu > .top-menu__submenu {
        display:none;
    }

    /*.top-menu {
        box-sizing: border-box;

        position: fixed;
        z-index: 2147483646;
        inset: auto;

        top: calc(var(--mobile-header-height) + var(--mobile-header-top-space));
        left: calc(var(--top-menu-viewport-left, 0px) + 0px);

        display: none;

        width: calc(
            var(--top-menu-viewport-width, 100vw) - 0px
        );

        height: calc(
            100dvh
            - var(--mobile-header-height)
            - var(--mobile-header-top-space)
        );

        max-width: none;
        max-height: none;

        flex-direction: column;

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;

        background: rgba(202, 229, 84, 0.9);
        color: #000000;
        gap: 0;
    }

    .top-menu.is-open {
        display: flex;
    }*/

    .top-menu__mobile-top {
        position: sticky;
        z-index: 2;
        top: 0;

        display: flex;
        flex: 0 0 auto;
        width: 100%;
        min-height: 54px;
        padding: 10px 10px 4px;

        box-sizing: border-box;
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: row-reverse

        /*background: rgba(202, 229, 84, 0.9);*/
    }

    .top-menu__mobile-logo {
        width: 120px;
        max-width: 46%;
        opacity: 0.35;
    }

    .top-menu__mobile-logo img,
    .top-menu__mobile-logo svg {
        display: block;
        width: 100%;
        height: auto;
    }

    .close-top-menu-btn {
        box-sizing: border-box;

        display: flex;
        width: 40px;
        height: 28px;
        margin: 0;
        padding: 2px;

        align-items: center;
        justify-content: center;

        border: 0;
        background: transparent;
        color: #000000;
        cursor: pointer;
    }

    .close-top-menu-btn svg {
        display: block;
        width: 22px;
        height: 22px;
    }

    .close-top-menu-btn path {
        fill: #000000;
    }

    .top-menu__list {
        flex-direction: column;
    }

    .top-menu > .top-menu__list {
        box-sizing: border-box;

        display: flex;

        flex: none;

        width: 100%;
        max-width: none;
        height: auto;

        margin: 14px 0 24px;
        padding: 0 8px;

        flex-direction: column;
        align-items: stretch;

        gap: 19px;

        list-style: none;
    }

    .top-menu__item--menu {
        position: relative;

        display: block;
        width: 100%;
        margin: 0;
        padding: 0;

        text-align: center;
    }

    .top-menu .top-menu__link {
        box-sizing: border-box;

        display: flex;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 8px 12px;

        align-items: center;
        justify-content: center;

        color: #000000;
        font-family: "Rubik", sans-serif;
        font-size: 40px;
        font-weight: 400;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
        white-space: normal;

        cursor: pointer;
    }

    .top-menu .top-menu__link:hover,
    .top-menu .top-menu__link:focus,
    .top-menu .top-menu__link.is-active {
        /*color: #000000;*/
        text-decoration: none;
        opacity: 1;
    }

    /*
     * Десктопная зелёная линия на мобильном не нужна.
     */
    .top-menu__link::after {
        display: none;
    }

    .top-menu__submenu::before {
        display: none;
    }

    .top-menu__submenu-item {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /*
     * Первый дочерний пункт показывается на мобильном:
     * «Услуги» и «Блог».
     */
    .top-menu__submenu-item--section-link {
        display: block;
    }

    /*
     * Но для NO_CLICK-родителя «Решения»
     * первый дочерний пункт скрывается.
     */
    .top-menu__item--no-click >
    .top-menu__submenu >
    .top-menu__submenu-item--section-link {
        display: none;
    }

    .top-menu .top-menu__submenu-link {

        display:block;

        width:100%;

        padding:16px 0;

        color:#ffffff;

        font-family:"Rubik",sans-serif;

        font-size:20px;

        font-weight:400;

        line-height:28px;

        text-decoration:none;

        /*border-bottom:1px solid rgba(255,255,255,.15);*/
    }

    .top-menu .top-menu__submenu-link:hover,
    .top-menu .top-menu__submenu-link:focus,
    .top-menu .top-menu__submenu-link.is-active {
        color: #000000;
        text-decoration: none;
        background: transparent;
    }

    .top-menu {
        overflow: hidden;
    }

    .top-menu > .top-menu__list {
        transition: transform .25s ease;
    }

    /* Кнопка возврата в дочернем меню */
    .top-menu__submenu-back {
        display:flex;

        height:64px;

        align-items:center;

        margin:0;
    }

    .top-menu__submenu-back button {

        position:relative;

        display:block;

        width:32px;
        height:32px;

        margin:0px;

        border:0;

        background:none;

        padding:0;

        cursor:pointer;
    }


    .top-menu__submenu-back button::before {

        content:'';

        position:absolute;

        top:50%;
        left:8px;

        width:12px;
        height:12px;

        border-left:3px solid #cae652;
        border-bottom:3px solid #cae652;

        transform:
            translateY(-50%)
            rotate(45deg);
    }

    .top-menu__item--contacts {
        display: none;
    }

    .top-menu__item--contacts,
    .top-menu__item--callback {
        display: none;
    }
}

@media (max-width: 380px) {
    .top-menu .top-menu__link {
        font-size: 26px;
    }

    .top-menu .top-menu__submenu-link {
        font-size: 13px;
    }
}

@media (max-width: 1279px) {

    .top-menu__mobile-title {
        display:block;
    }

    .top-menu__mobile-submenu {
        display:block;
    }

    .top-menu__mobile-back {
        display:block;
    }

    /*.top-menu {
        box-sizing: border-box;

        position: fixed;
        z-index: 20;

        top: var(--mobile-header-height);
        right: 0;
        bottom: 0;
        left: 0;

        display: flex;

        width: 100vw;
        max-width: none;
        height: calc(100dvh - var(--mobile-header-height));

        margin: 0;
        padding: 20px 85px 24px;

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        overflow-x: hidden;
        overflow-y: auto;

        background: transparent;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-12px);

        transition:
            opacity .22s ease .08s,
            transform .35s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear .35s;
    }

    .top-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);

        transition:
            opacity .3s ease .08s,
            transform .4s cubic-bezier(.22, 1, .36, 1),
            visibility 0s;
    }*/

    .top-menu {
        box-sizing: border-box;

        position: fixed;
        z-index: 2147483646;

        top: var(--mobile-header-height);
        right: 0;
        bottom: 0;
        left: 0;

        display: flex;

        width: 100%;
        max-width: none;
        height: auto;

        margin: 0;
        padding: 20px 85px 24px;

        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;

        background: transparent;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-12px);

        transition:
            opacity .22s ease .08s,
            transform .35s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear .35s;
    }

    .top-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);

        transition:
            opacity .3s ease .08s,
            transform .4s cubic-bezier(.22, 1, .36, 1),
            visibility 0s;
    }

    .top-menu.has-submenu-open {
        overflow: hidden;
    }

    .top-menu__mobile-top {
        position: relative;

        min-height: 72px;
        padding: 20px 0;

        align-items: center;
        flex-direction: row;
    }

    .close-top-menu-btn {
        position: absolute;

        top: 30px;
        right: -3px;

        margin: 0;
    }

    .top-menu__mobile-logo {
        width: 140px;
        opacity: 1;
    }

    .close-top-menu-btn path {
        fill: #ffffff;
    }

    .top-menu > .top-menu__list {
        box-sizing: border-box;

        display: flex;
        flex: none;

        width: 100%;
        max-width: none;
        height: auto;

        margin: 0;
        padding: 0;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        list-style: none;

        transform: translateX(0);
    }

    .top-menu__item--menu {
        /*border-bottom: 1px solid rgba(255,255,255,.4);*/
        text-align: left;
    }

    .top-menu .top-menu__link,
    .top-menu .top-menu__link--parent {
        justify-content: space-between;

        min-height: 64px;
        padding: 0;

        color: #000000;
        font-size: 24px;
        line-height: 32px;
        text-align: left;
        font-family: 'Manrope';
        font-weight: 700;
    }

    .top-menu:not(.has-submenu-open) 
    .top-menu__item--has-submenu > .top-menu__link::after,

    .top-menu:not(.has-submenu-open)
    .top-menu__item--has-submenu > .top-menu__link--parent::after {
        content: "";

        display: block;
        flex: 0 0 auto;

        width: 10px;
        height: 10px;

        margin-right: 4px;

        border-top: 3px solid #000;
        border-right: 3px solid #000;

        transform: rotate(45deg);
    }

    .top-menu__mobile-submenu {
        position: absolute;
        z-index: 20;

        inset: 0;

        box-sizing: border-box;

        display: flex;
        flex-direction: column;

        /*
        * Снизу оставляем место:
        * 54px кнопка
        * + 24px отступ снизу
        * + 16px воздух над кнопкой
        */
        padding: 20px 20px 94px;

        overflow: hidden;

        transform: translateX(100%);

        transition: transform .25s ease;
    }


    .top-menu.has-submenu-open 
    .top-menu__mobile-submenu {
        transform: translateX(0);
    }

    .top-menu.has-submenu-open 
    .top-menu__list {
        transform:translateX(-100%);
    }

    .top-menu__mobile-back {
        position: relative;

        display: flex;
        flex: 0 0 24px;

        width: 24px;
        height: 32px;

        padding: 0;
        margin: 0;

        align-items: center;
        justify-content: center;

        border: 0;
        background: none;
    }


    .top-menu__mobile-back::before {
        content: "";

        display: block;

        width: 10px;
        height: 10px;

        border-left: 3px solid #000;
        border-bottom: 3px solid #000;

        transform: rotate(45deg);
    }


    .top-menu__mobile-title {

        color:#fff;

        font-size:24px;

        font-weight:500;

        margin-bottom:25px;

    }



    .top-menu__mobile-list {
        box-sizing: border-box;

        display: flex;
        flex: 1 1 auto;

        width: 100%;
        min-height: 0;

        margin: 0;
        padding: 0 0 0 41px;

        flex-direction: column;

        overflow-x: hidden;
        overflow-y: auto;

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        list-style: none;

        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, .35) transparent;
    }

    .top-menu__mobile-list::-webkit-scrollbar {
        width: 4px;
    }

    .top-menu__mobile-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .top-menu__mobile-list::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgba(0, 0, 0, .35);
    }



    .top-menu__mobile-list li {

        /*border-bottom:1px solid rgba(255,255,255,.15);*/

    }



    .top-menu__mobile-list a {

        display:block;

        padding:0px 0;

        color:#000000;

        font-size:20px;

        text-decoration:none;

    }

    .top-menu__mobile-header {
        display: flex;
        flex: 0 0 64px;

        width: 100%;
        height: 64px;

        align-items: center;

        gap: 16px;

        cursor: pointer;
    }
    .top-menu__mobile-header .top-menu__mobile-title {
        margin: 0;
        color: #000000;
        font-size: 24px;
        line-height: 32px;
        font-weight: 700;
        font-family: 'Manrope';
    }

    .top-menu__mobile-title {

        color:#000000;

        font-size:24px;

        line-height:32px;

        font-weight:500;

    }



    :root {
        --mobile-header-height: 74px;
        --mobile-header-top-space: 20px;
    }

    .header {
        transition:
            height .45s cubic-bezier(.22, 1, .36, 1),
            background-color .25s ease,
            box-shadow .25s ease;

        overflow: visible;
    }

    .header.header--active {
        box-sizing: border-box;

        position: fixed;
        z-index: 2147483645;

        inset: 0;

        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;

        margin: 0;

        overflow: hidden;

        background: #CAE652;

        -webkit-backdrop-filter: none;
        backdrop-filter: none;

        box-shadow: none;
    }

    .header .header-content {
        position: relative;
        z-index: 30;

        min-height: var(--mobile-header-height);
    }

    .header .header-left {
        position: relative;
        z-index: 31;
    }

    .header .burger-icon {
        position: relative;
        z-index: 31;
    }

    /* =========================================================
    МОБИЛЬНОЕ МЕНЮ: контакты + кнопка закреплены снизу
    ========================================================= */

    .top-menu .header-actions {
        position: absolute;
        z-index: 30;

        right: 20px;
        bottom: 24px;
        left: 20px;

        display: flex;

        width: auto;
        height: auto;

        margin: 0;
        padding: 0 75px 0;

        flex-direction: column;
        align-items: stretch;

        gap: 20px;
    }


    /* В подменю прячем только телефон и email */

    .top-menu.has-submenu-open .header-actions__contacts {
        display: none;
    }


    /* Кнопка всегда занимает одинаковое место */

    .top-menu .header-actions__callback {
        width: 100%;
        height: 54px;
    }

    .top-menu .header-actions__callback .callback-wrapper {
        width: 100%;
        height: 54px;
    }

    .top-menu .header-actions__callback .btn-green,
    .top-menu .header-actions__callback .callback-btn {
        width: 100%;
        min-width: 0;
        max-width: none;

        height: 54px;
        min-height: 54px;

        margin: 0;
    }
}

/* =========================================================
   БУРГЕР: 3 линии → крест
   mobile / tablet / compact desktop
   ========================================================= */

@media (max-width: 1279px) {

    .burger-icon {
        position: relative;

        padding: 0;
        border: 0;
        background: transparent;

        cursor: pointer;
    }


    /*
     * Все три полоски располагаются относительно
     * центра одной и той же кнопки.
     *
     * Благодаря этому размер и положение самого burger-icon
     * при открытии меню вообще не меняются.
     */
    .burger-icon__line {
        position: absolute;

        top: 50%;
        left: 0;

        display: block;

        width: 100%;
        height: 3px;

        margin-top: -1.5px;

        border-radius: 3px;

        background: #ffffff;

        transform-origin: center center;

        transition:
            transform .3s cubic-bezier(.22, 1, .36, 1),
            opacity .18s ease,
            background-color .2s ease;
    }


    /* верхняя */
    .burger-icon__line:nth-child(1) {
        transform: translateY(-6px);
    }


    /* средняя */
    .burger-icon__line:nth-child(2) {
        transform: translateY(0);
    }


    /* нижняя */
    .burger-icon__line:nth-child(3) {
        transform: translateY(6px);
    }


    /* =====================================================
       Открытое меню
       ===================================================== */

    .header.header--active .burger-icon__line {
        display: block !important;
        background: #000000;
    }


    /*
     * Верхняя полоска идёт в первую диагональ.
     */
    .header.header--active
    .burger-icon__line:nth-child(1) {
        transform: translateY(0) rotate(45deg);
    }


    /*
     * Средняя схлопывается и исчезает.
     */
    .header.header--active
    .burger-icon__line:nth-child(2) {
        opacity: 0;

        transform:
            translateY(0)
            scaleX(.25);
    }


    /*
     * Нижняя идёт во вторую диагональ.
     */
    .header.header--active
    .burger-icon__line:nth-child(3) {
        transform: translateY(0) rotate(-45deg);
    }
}


/* =========================================================
   Sticky header
   ========================================================= */

/*.header {
    box-sizing: border-box;

    position: sticky;
    z-index: 1000;
    top: 0;

    margin-top: 0;
    padding-top: 40px;

    background: transparent;
}


.header > .inner-width {
    box-sizing: border-box;
    position: relative;
    isolation: isolate;

    padding: 10px 0;

    background: transparent;
}

.header > .inner-width::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: 0;
    right: -16px;
    bottom: 0;
    left: -16px;

    background: rgba(14, 12, 32, .96);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    border-radius: 10px;
}*/
@media (min-width: 1280px) {

    .header {
        box-sizing: border-box;

        position: sticky;
        z-index: 1000;

        top: 0;

        width: 100%;

        margin-top: 0;
        padding-top: 0;

        background: transparent;
    }


    .header > .inner-width {
        box-sizing: border-box;
        position: relative;
        isolation: isolate;

        padding-top:
            clamp(30px, 1.1vw, 22px);
        padding-bottom:
            clamp(20px, 1.1vw, 22px);

        background: transparent;

        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }


    .header > .inner-width::before {
        content: "";

        position: absolute;
        z-index: -1;

        top: 0;
        bottom: 0;

        left: 50%;
        width: 100vw;

        transform: translateX(-50%);

       background:
            linear-gradient(
                180deg,
                rgba(14, 14, 32, 1) 45%,
                rgba(14, 14, 32, .62) 80%,
                rgba(14, 14, 32, .35) 100%
            );
            /*linear-gradient(
                180deg,
                #0E0E20 61%,
                #967CBD 88%,
                #B08FDC 100%
            );*/
            
       
           /* linear-gradient(прозрачность
                180deg,
                rgba(14, 14, 32, 1) 45%,
                rgba(14, 14, 32, .82) 75%,
                rgba(14, 14, 32, .55) 100%
            );*/

            /*linear-gradient(
                180deg,
                rgba(7, 6, 17, .995) 0%,
                rgba(15, 12, 31, .99) 42%,
                rgba(30, 23, 49, .985) 72%,
                rgba(48, 38, 70, .98) 100%
            )*/

        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);

        border-radius: 0x;

        box-shadow:
            0 10px 30px rgba(0, 0, 0, .16);
    }
}

/* =========================================================
   Sticky header — mobile
   ========================================================= */

@media (max-width: 767px) {

    .header {
        box-sizing: border-box;

        position: fixed;
        z-index: 1000;

        top: 0;
        right: 0;
        left: 0;

        width: 100%;
        height: 90px;

        margin: 0;
        padding: 0 20px;

        background: transparent;
    }


    .header > .inner-width {
        box-sizing: border-box;
        position: relative;
        isolation: isolate;

        width: 100%;
        max-width: none;
        height: 90px;

        margin: 0;
        padding: 0;

        background: transparent;

        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }


    /*
     * Такая же подложка, как на desktop:
     * растягиваем только фон на всю ширину viewport.
     */
    .header > .inner-width::before {
        content: "";

        position: absolute;
        z-index: -1;

        top: 0;
        bottom: 0;

        left: 50%;
        width: 100vw;

        transform: translateX(-50%);

        background:
            linear-gradient(
                180deg,
                rgba(14, 14, 32, 1) 45%,
                rgba(14, 14, 32, .62) 80%,
                rgba(14, 14, 32, .35) 100%
            );

        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);

        border-radius: 0;

        box-shadow:
            0 10px 30px rgba(0, 0, 0, .16);
    }


    /*
     * Поднимаем одновременно логотип и бургер.
     * Их горизонтальные координаты не меняются.
     */
    .header .header-content {
        height: 90px;
        min-height: 10px;

        /*transform: translateY(-6px);*/
    }


    .header-left .logo {
        margin: 0;
    }


    .header .burger-icon {
        margin-left: auto;
    }


    /*
     * При открытии зелёного мобильного меню
     * тёмную sticky-подложку убираем.
     */
    .header.header--active > .inner-width::before {
        content: none;
        display: none;
    }

    .header.header--active .header-content {
        transform: none;
    }
}

/* =========================================================
   COMPACT HEADER / MENU — 1024–1278
   ========================================================= */

@media (min-width: 1024px) and (max-width: 1278px) {

    :root {
        --mobile-header-height: 90px;
        --mobile-header-top-space: 0px;
    }


    /* =====================================================
       HEADER ACTIVE

       Шапка НЕ превращается в fixed fullscreen.
       Она остаётся sticky и поэтому страница не прыгает.
       ===================================================== */

    .header.header--active {
        box-sizing: border-box;

        position: sticky;
        z-index: 1000;

        inset: auto;
        top: 0;

        width: 100%;
        height: 90px;
        min-height: 90px;

        margin: 0;

        overflow: visible;

        background: transparent;;

        -webkit-backdrop-filter: none;
        backdrop-filter: none;

        box-shadow: none;
    }


    /*
     * Не удаляем псевдоэлемент через display:none,
     * а плавно гасим.
     */
    .header.header--active > .inner-width::before {
        content: "";

        display: block;

        top: 0;
        bottom: 0;

        left: calc(-1 * var(--header-side));

        right: calc(
            -1 * var(--header-side)
            - var(--menu-scrollbar-width, 0px)
        );

        width: 100vw;

        opacity: 1;

        background: #CAE652;

        -webkit-backdrop-filter: none;
        backdrop-filter: none;

        box-shadow: none;

        transform: none;
    }


    .header.header--active .header-content {
        height: 90px;
        min-height: 90px;

        transform: none;
    }


    /* =====================================================
       ПОЛНОЭКРАННОЕ МЕНЮ

       Header занимает первые 90px.
       Menu — всё пространство от 90px до низа viewport.
       ===================================================== */

    .top-menu {
        box-sizing: border-box;

        position: fixed;
        z-index: 999;

        top: calc(var(--mobile-header-height) - 1px);
        right: 0;
        bottom: 0;
        left: 0;

        width: 100vw;
        max-width: none;
        height: auto;

        margin: 0;
        padding: 20px 85px 24px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        overflow-x: hidden;
        overflow-y: auto;

        overscroll-behavior: contain;

        background: #CAE652;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-8px);

        transition:
            opacity .20s ease,
            transform .28s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear .28s;
    }


    .top-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);

        transition:
            opacity .20s ease,
            transform .28s cubic-bezier(.22, 1, .36, 1),
            visibility 0s;
    }


    /* =====================================================
       ОСНОВНОЙ СПИСОК
       ===================================================== */

    .top-menu > .top-menu__list {
        box-sizing: border-box;

        display: flex;
        flex: 0 0 auto;

        width: 100%;
        max-width: none;
        height: auto;

        margin: 0;
        padding: 0;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        background: transparent;
        border-radius: 0;

        transform: translateX(0);
    }


    .top-menu .top-menu__link,
    .top-menu .top-menu__link--parent {
        box-sizing: border-box;

        display: flex;

        width: 100%;
        min-height: 64px;

        padding: 0;

        align-items: center;
        justify-content: space-between;

        font-family: 'Manrope', Arial, sans-serif;
        font-size: 24px;
        font-weight: 700;
        line-height: 32px;

        color: #000;
        text-align: left;
    }


    /* =====================================================
       КОНТАКТЫ + КНОПКА СНИЗУ
       ===================================================== */

    .top-menu .header-actions {
        position: absolute;

        right: 85px;
        bottom: 24px;
        left: 85px;

        width: auto;
        height: auto;

        margin: 0;
        padding: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 20px;
    }


    /* =====================================================
       БУРГЕР

       Одна кнопка 32 × 32.
       И закрытый бургер, и открытый крест имеют один центр.
       ===================================================== */

    .header .burger-icon {
        box-sizing: border-box;

        position: relative;
        z-index: 31;

        display: block;
        flex: 0 0 32px;

        width: 32px;
        height: 32px;

        margin: 0 0 0 auto;
        padding: 0;

        border: 0;

        background: transparent;

        transform: none;
    }


    .header .burger-icon__line {
        position: absolute;

        top: 50%;
        left: 2px;

        display: block;

        width: 28px;
        height: 3px;

        margin-top: -1.5px;

        border-radius: 3px;

        background: #fff;

        transform-origin: 50% 50%;

        transition:
            transform .28s cubic-bezier(.22, 1, .36, 1),
            opacity .16s ease,
            background-color .20s ease;
    }


    /* закрытый бургер */

    .header .burger-icon__line:nth-child(1) {
        transform: translateY(-7px);
    }

    .header .burger-icon__line:nth-child(2) {
        transform: translateY(0);
    }

    .header .burger-icon__line:nth-child(3) {
        transform: translateY(7px);
    }


    /* открытый крест */

    .header.header--active .burger-icon__line {
        background: #000;
    }

    .header.header--active
    .burger-icon__line:nth-child(1) {
        transform: translateY(0) rotate(45deg);
    }

    .header.header--active
    .burger-icon__line:nth-child(2) {
        opacity: 0;

        transform:
            translateY(0)
            scaleX(0);
    }

    .header.header--active
    .burger-icon__line:nth-child(3) {
        transform: translateY(0) rotate(-45deg);
    }
}