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

*, *::before, *::after { box-sizing: border-box; }

img, video, iframe, canvas, svg { max-width: 100%; }

.mmenu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100040;
    background: rgba(17, 17, 26, .5);
    opacity: 0;
    transition: opacity .22s ease;
}

.mmenu-backdrop[hidden] { display: none; }
.mmenu-backdrop.is-open { opacity: 1; }

.mmenu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86vw;
    max-width: 340px;
    z-index: 100050;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .26s cubic-bezier(.22, .61, .36, 1);
    box-shadow: 0 0 40px rgba(0, 0, 0, .18);
    overscroll-behavior: contain;
}

.mmenu[hidden] { display: none; }
.mmenu.is-open { transform: translateX(0); }

.mmenu-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eef0f3;
}

.mmenu-logo img { height: 30px; width: auto; display: block; }

.mmenu-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f4f5f7;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.mmenu .mmenu-close,
.mmenu .mmenu-close i { color: #14161c; }

.mmenu-actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.mmenu-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 13px 4px;
    background: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}

.mmenu .mmenu-action { color: #14161c; }
.mmenu .mmenu-action i { color: #ef5526; font-size: 1.6rem; }

.mmenu-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 0 8px;
}

.mmenu .mmenu-title {
    display: block;
    padding: 0 16px 8px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9aa0ae;
}

.mmenu-list { list-style: none; margin: 0; padding: 0; }

.mmenu-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f2f3f6;
}

.mmenu-link {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
}

.mmenu .mmenu-link { color: #14161c; }

.mmenu-toggle {
    flex: 0 0 auto;
    width: 52px;
    border: 0;
    border-left: 1px solid #f2f3f6;
    background: #fff;
    cursor: pointer;
    transition: transform .2s ease;
}

.mmenu .mmenu-toggle i { color: #9aa0ae; font-size: 1.3rem; transition: transform .2s ease; }
.mmenu-item.is-open .mmenu-toggle i { transform: rotate(180deg); }

.mmenu-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: #fafbfc;
    transition: max-height .26s ease;
}

.mmenu-item.is-open .mmenu-sub { max-height: 1400px; }

.mmenu-sub a {
    display: block;
    padding: 12px 16px 12px 30px;
    font-size: 1.3rem;
    text-decoration: none;
    border-bottom: 1px solid #f2f3f6;
}

.mmenu .mmenu-sub a { color: #5b6272; }

.mmenu-foot {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #eef0f3;
}

.mmenu-foot a {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 8px;
    border: 1px solid #e4e5ec;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.mmenu .mmenu-foot a { color: #14161c; }
.mmenu .mmenu-foot a i { color: #ef5526; }

body.mmenu-open { overflow: hidden; }

@media (min-width: 992px) {
    .mmenu, .mmenu-backdrop { display: none !important; }
}
