/* в теме нет глобального border-box, задаём его внутри меню */
.mmenu,
.mmenu *,
.mmenu *::before,
.mmenu *::after {
    box-sizing: border-box;
}

/* верхняя плашка Google Translate мешает на телефоне */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
body > .skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

html {
    margin-top: 0 !important;
}

body {
    top: 0 !important;
    position: static !important;
}

body.body-overlay::before,
body.body-overlay::after {
    display: none !important;
}

/* ================= mobile menu ================= */

.mmenu {
    --red: #a0102f;
    --red-dark: #8d0b2c;
    --navy: #13213f;
    --muted: #5d6679;
    --line: #ececee;
    --soft: #fdf0f3;

    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    transition: visibility 0s linear .4s;
}

.mmenu--open {
    visibility: visible;
    transition-delay: 0s;
}

.mmenu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 20, .5);
    opacity: 0;
    transition: opacity .4s ease;
}

.mmenu--open .mmenu__overlay {
    opacity: 1;
}

.mmenu__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 88%);
    height: 100%;
    border-radius: 18px 0 0 18px;
    background: #fff;
    box-shadow: -18px 0 50px rgba(10, 12, 20, .22);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
    overflow: hidden;
}

.mmenu--open .mmenu__panel {
    transform: translateX(0);
}

.mmenu__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 14px;
}

.mmenu__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    text-decoration: none;
}

.mmenu__logo-img {
    max-width: 150px;
    height: auto;
    display: block;
}

.mmenu__lang {
    display: flex;
    padding: 3px;
    border-radius: 999px;
    background: #f2f2f4;
}

.mmenu__lang-btn {
    padding: 6px 11px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.mmenu__lang-btn--active {
    background: var(--red);
    color: #fff;
}

.mmenu__lang-widget {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mmenu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #565655;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.mmenu__close:hover {
    background: #f2f2f4;
    transform: rotate(90deg);
}

.mmenu__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.mmenu__phone {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 20px 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(120deg, #a0102f 0%, #8d0b2c 100%);
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease;
}

.mmenu__phone:active {
    transform: scale(.985);
}

.mmenu__phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--red);
}

.mmenu__phone-icon svg {
    width: 20px;
    height: 20px;
}

.mmenu__phone-label {
    display: block;
    font-size: 13px;
    opacity: .85;
}

.mmenu__phone-value {
    display: block;
    margin-top: 2px;
    font-size: 19px;
    font-weight: 500;
}

.mmenu__phone-arrow {
    width: 9px;
    height: 15px;
    margin-left: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mmenu__body {
    position: relative;
    flex: 1;
    min-height: 0;
}

.mmenu__screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .38s, opacity .38s ease;
}

.mmenu__screen--active {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s, 0s, 0s;
}

.mmenu__screen--behind {
    transform: translateX(-22%);
    visibility: visible;
    opacity: .35;
    transition-delay: 0s, 0s, 0s;
}

.mmenu__subhead {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 20px 14px;
    background: #fff;
}

.mmenu__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--red);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.mmenu__back:hover {
    background: var(--red);
    color: #fff;
}

.mmenu__back svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mmenu__subtitle {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

.mmenu__list {
    margin: 0;
    padding: 0 20px 24px;
    list-style: none;
}

.mmenu__item + .mmenu__item {
    margin-top: 2px;
}

.mmenu__link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 14px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--navy);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.mmenu__link:hover {
    background: #f7f7f8;
}

.mmenu__link:active {
    background: var(--soft);
}

.mmenu__link--active {
    background: var(--soft);
    color: var(--red);
}

.mmenu__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--red);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mmenu__chevron {
    width: 8px;
    height: 13px;
    margin-left: auto;
    flex-shrink: 0;
    color: #b9bcc4;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease, color .2s ease;
}

.mmenu__link:hover .mmenu__chevron {
    color: var(--red);
    transform: translateX(3px);
}

.mmenu__list--sub {
    margin: 0 20px 24px;
    padding: 4px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(19, 33, 63, .05);
}

.mmenu__list--sub .mmenu__link {
    gap: 12px;
    padding: 15px 14px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
}

.mmenu__list--sub .mmenu__item + .mmenu__item {
    margin-top: 0;
    border-top: 1px solid var(--line);
}

.mmenu__list--sub .mmenu__link--active {
    color: var(--red);
    background: none;
}

.mmenu__dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--red);
}

.mmenu__footer {
    padding: 14px 20px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.mmenu__contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f5f5f6;
    color: var(--navy);
    text-decoration: none;
    transition: background-color .2s ease;
}

.mmenu__contact:hover {
    background: var(--soft);
}

.mmenu__contact-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--red);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mmenu__contact-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
}

.mmenu__contact-text {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--muted);
}

.mmenu__contact-arrow {
    width: 8px;
    height: 13px;
    margin-left: auto;
    flex-shrink: 0;
    color: #b9bcc4;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.is-menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .mmenu__panel {
        width: min(400px, 92%);
    }
}

@media (max-width: 576px) {
    .mmenu__panel {
        width: 92%;
    }

    .mmenu__head {
        padding: 16px 16px 12px;
    }

    .mmenu__phone {
        margin: 4px 16px 14px;
    }

    .mmenu__list {
        padding: 0 16px 20px;
    }

    .mmenu__list--sub {
        margin: 0 16px 20px;
    }

    .mmenu__subhead {
        padding: 4px 16px 12px;
    }

    .mmenu__link {
        font-size: 16px;
        padding: 12px;
    }

    .mmenu__footer {
        padding: 12px 16px 16px;
    }
}

@media (min-width: 1025px) {
    .mmenu {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mmenu__panel,
    .mmenu__screen,
    .mmenu__overlay {
        transition-duration: .01ms;
    }
}