.cm-mobile-menu {
    display: none;
}

@media (max-width: 998px) {
    .header-base {
        position: relative;
        z-index: 1200;
        background: #fff;
        border-bottom: 1px solid #ececec;
    }

    .header-base > .container {
        min-height: 64px;
        padding: 8px 16px;
        gap: 8px;
    }

    .header-base .logo {
        flex: 0 0 auto;
        margin-right: auto;
    }

    .header-base .logo-link--header,
    .header-base .logo-link--header svg {
        display: block;
        width: 132px;
        height: 40px;
    }

    .header-base .menu,
    .header-base .header-buttons,
    .header-base .header-contacts,
    .header > .submenu {
        display: none;
    }

    .header-base .burger {
        display: flex;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: #f4f4f4;
    }

    .header-base .burger-line {
        width: 20px;
        transition: background .2s ease;
    }

    .header-base .burger[aria-expanded="true"] .burger-line {
        background: transparent;
    }

    .header-base .burger[aria-expanded="true"] .burger-line::before,
    .header-base .burger[aria-expanded="true"] .burger-line::after {
        top: 0;
    }

    .header-base .burger[aria-expanded="true"] .burger-line::before {
        transform: rotate(45deg);
    }

    .header-base .burger[aria-expanded="true"] .burger-line::after {
        transform: rotate(-45deg);
    }

    .mobile.cm-mobile-menu {
        position: fixed;
        inset: 64px 0 0;
        z-index: 1150;
        display: flex;
        width: 100%;
        height: calc(100dvh - 64px);
        padding: 0 0 env(safe-area-inset-bottom);
        overflow-y: auto;
        overscroll-behavior: contain;
        align-items: stretch;
        gap: 0;
        background: #fff;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform .25s ease, opacity .2s ease, visibility .25s;
    }

    .mobile.cm-mobile-menu.fade {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .cm-mobile-menu__socials {
        display: flex;
        margin-top: 8px;
        gap: 8px;
    }

    .cm-mobile-menu__socials a {
        display: flex;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: #fff;
    }

    .cm-mobile-menu__socials img {
        width: 18px;
        height: 18px;
        filter: brightness(0);
        object-fit: contain;
    }

    html.scroll .header-base .logo-link--header,
    html.scroll .header-base .logo-link--header svg {
        width: 132px;
        height: 40px;
    }

    .cm-mobile-menu__primary,
    .cm-mobile-menu__types {
        display: grid;
        padding: 12px 16px;
    }

    .cm-mobile-menu__primary {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 8px 16px;
        min-height: 73px;
        padding-top: 24px;
        padding-bottom: 16px;
        background: #f4f4f4;
    }

    .cm-mobile-menu__primary a,
    .cm-mobile-menu__types a {
        display: flex;
        align-items: center;
        color: #161616;
        font: 400 15px/18px "Inter", "Overpass", sans-serif;
    }

    .cm-mobile-menu__primary a {
        min-height: 18px;
    }

    .cm-mobile-menu__types {
        gap: 12px;
        padding-top: 24px;
        padding-bottom: 0;
    }

    .cm-mobile-menu__types a {
        min-height: 18px;
        font-size: 15px;
    }

    .cm-mobile-menu__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: auto;
        padding: 24px 16px;
        background: #fff;
    }

    .cm-mobile-menu__action {
        display: flex;
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        border: 1px solid #ff4000;
        border-radius: 12px;
        color: #ff4000;
        text-align: center;
        font: 400 15px/18px "Inter", "Overpass", sans-serif;
    }

    .cm-mobile-menu__action--primary {
        grid-column: 1 / -1;
        height: 47px;
        background: #ff4000;
        color: #fff;
    }

    html.scroll,
    html.scroll body {
        overflow: hidden;
    }
}

@media (max-width: 430px) {
    .header-base > .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .header-base .logo-link--header,
    .header-base .logo-link--header svg {
        width: 112px;
        height: 34px;
    }

}

@media (max-width: 576px) {
    .body_ad {
        display: none !important;
    }
}

@media (max-width: 359px) {
    .cm-mobile-menu__socials a:first-child {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile.cm-mobile-menu {
        transition: none;
    }
}
