:root {
    --bg0: #2c2c2c;
    --bg1: #3a3f44;
    /* тёмный градиент как на скрине */
    --bg2: #5a6a78;
    --accent: #4b6290;
    /* подсветка активного пункта */
    --phone: #d61f1f;
    /* красный телефон */
    --text: #ffffff;
    --muted: #c9d1d9;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.site-header {
    position: relative;
    /* background: rgba(36, 58, 71, 0.40); */
}

.site-header.scrolled {
    background: rgba(36, 58, 71, 0.40);
    backdrop-filter: blur(8.800000190734863px);
}

.site-header__bar .main-menu-container {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.site-header__logo img {
    display: block;
    height: auto;
}

.main-nav {
    /* desktop menu */
    border-radius: 8px;
    overflow: hidden;
    background: rgba(36, 58, 71, 0.40);
}

.main-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.main-nav .menu>li {
    position: relative;
}

.main-nav .menu>li>a {
    display: block;
    padding: 24px 20px;
    color: #FFF;
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    text-decoration: none;
}

.main-nav .menu>li>a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .06);
}

/* Телефон справа */
.site-header__phone {
    display: flex;
    padding: 18px 32px;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    background: #D9231D;
    color: #FFF;
    font-family: Roboto;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    white-space: nowrap;
    text-decoration: none;
}

.site-header__phone .phone-ic {
    width: 22px;
    height: 22px;
    fill: var(--muted);
}

.site-header__phone:hover {
    transform: translateY(-1px);
}

/* Бургер (desktop hidden) */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    background: rgba(0, 0, 0, .22);
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    margin: 6px 9px;
    background: #fff
}

.burger:focus {
    outline: 2px solid rgba(255, 255, 255, .5);
    outline-offset: 2px
}

/* ---------- Мобилка ---------- */
@media (max-width: 992px) {
    .site-header__bar .main-menu-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin: 0;
        width: 100%;
    }

    .site-header.scrolled {
        background: linear-gradient(180deg, #222 0%, #333 100%);
        backdrop-filter: none;
    }

    .main-nav {
        display: none;
    }

    .site-header__phone {
        display: none;
    }

    .burger {
        display: block;
        margin-left: auto;
    }
}

/* Drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.drawer[hidden] {
    display: none;
}

.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.drawer__panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(86vw, 360px);
    max-width: 420px;
    background: linear-gradient(180deg, #222 0%, #333 100%);
    color: #fff;
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 9999;
}

.drawer.is-open .drawer__panel {
    transform: translateX(0);
}

.drawer.is-open .drawer__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer__close {
    font-size: 38px;
    line-height: 1;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.drawer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drawer__menu>li>a {
    display: block;
    padding: 14px 12px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, .06);
}

.drawer__menu>li.current-menu-item>a {
    background: var(--accent);
}

.drawer__phone {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.drawer__phone .phone-ic {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* Небольшие улучшения ретина */
@media (min-resolution: 2dppx) {
    .main-nav .menu>li>a {
        -webkit-font-smoothing: antialiased;
    }
}