:root{
    --menu-height:60px;
    --menu-width:320px;
    --menu-bar-bg:#ed5e30;
    --menu-text:#111111;
    --menu-muted:#6b7280;
    --menu-border:#e5e7eb;
    --menu-link-hover:#f9fafb;
    --menu-link-active:#fff0ea;
    --menu-link-active-text:#ed5e30;
    --menu-overlay:rgba(0,0,0,.45);
    --menu-z-overlay:9997;
    --menu-z-body:9998;
    --menu-z-bar:9999;
}

body.menu__open{
    overflow:hidden;
}

.menu__bar{
    position:fixed;
    top:0;
    right:0;
    left:0;
    height:var(--menu-height);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    background:var(--menu-bar-bg);
    z-index:var(--menu-z-bar);
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.menu__brand{
    display:flex;
    align-items:center;
    height:var(--menu-height);
    text-decoration:none;
    min-width:0;
}

.menu__brand:hover{
    color:#fff;
}

.menu__title{
    display:flex;
    align-items:center;
    height:36px;
    color:#fff;
    font-size:22px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
}

.menu__button{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding:0;
    margin:0;
    background:transparent;
    border:0;
    color:#fff;
    cursor:pointer;
    flex:0 0 36px;
}

.menu__button_toggle{
    margin-left:auto;
}

.menu__button_toggle svg{
    width:25px;
    height:21px;
    display:block;
    flex:0 0 25px;
}

.menu__button_toggle svg path{
    transform-origin:right center;
}

.menu__overlay{
    position:fixed;
    inset:0;
    background:var(--menu-overlay);
    opacity:0;
    visibility:hidden;
    transition:opacity .2s ease, visibility .2s ease;
    z-index:var(--menu-z-overlay);
}

.menu__overlay_active{
    opacity:1;
    visibility:visible;
}

.menu__body{
    position:fixed;
    top:var(--menu-height);
    left:0;
    width:var(--menu-width);
    max-width:100vw;
    height:calc(100vh - var(--menu-height));
    background:#fff;
    transform:translateX(-100%);
    transition:transform .2s ease, box-shadow .2s ease;
    z-index:var(--menu-z-body);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    box-shadow:none;
}

.menu__body_active{
    transform:translateX(0);
    box-shadow:10px 0 30px rgba(0,0,0,.14);
}

.menu__body_inner{
    padding:0;
}

.menu__group{
    display:block;
    width:100%;
    border-bottom:1px solid var(--menu-border);
}

.menu__group_title{
    display:block;
    padding:14px 20px 8px;
    font-size:12px;
    font-weight:700;
    line-height:1.3;
    color:var(--menu-muted);
    text-transform:uppercase;
    letter-spacing:.03em;
}

.menu__links{
    display:flex;
    flex-direction:column;
}

.menu__link{
    display:block;
    padding:15px 20px;
    border-top:1px solid var(--menu-border);
    text-decoration:none;
    color:var(--menu-text);
    transition:background .15s ease, color .15s ease;
}

.menu__link:hover,
.menu__link:focus{
    background:var(--menu-link-hover);
    color:var(--menu-text);
}

.menu__link_active{
    background:var(--menu-link-active);
    color:var(--menu-link-active-text);
}

.menu__link_active:hover,
.menu__link_active:focus{
    background:var(--menu-link-active);
    color:var(--menu-link-active-text);
}

.menu__link_title{
    display:block;
    font-size:16px;
    font-weight:700;
    line-height:1.4;
}

.menu__link_desc{
    display:block;
    margin-top:4px;
    font-size:12px;
    font-weight:400;
    line-height:1.4;
    color:var(--menu-muted);
}

@media (max-width:980px){
    .menu__bar{
        padding:0 15px;
    }

    .menu__title{
        font-size:21px;
    }

    .menu__body{
        width:300px;
    }
}

@media (max-width:480px){
    .menu__bar{
        padding:0 14px;
    }

    .menu__title{
        font-size:20px;
    }

    .menu__button{
        width:34px;
        height:34px;
        flex-basis:34px;
    }

    .menu__button_toggle svg{
        width:24px;
        height:20px;
        flex-basis:24px;
    }

    .menu__body{
        width:290px;
    }
}

@media (prefers-reduced-motion:reduce){
    .menu__overlay,
    .menu__body,
    .menu__link{
        transition:none;
    }
}