/* Catalog drawer menu, reference-style vertical categories. */

.catalog-drawer {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: none;
}

.catalog-drawer.is-open {
    display: block;
}

.catalog-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 21, .46);
    backdrop-filter: blur(5px);
}

.catalog-drawer__panel {
    position: absolute;
    top: 12px;
    left: max(12px, calc((100vw - var(--ip-container, 1320px)) / 2 + 10px));
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(8, 13, 21, .28);
    border: 1px solid rgba(17, 26, 54, .08);
}

.catalog-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.catalog-drawer__head .logo {
    color: #111a36;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -.06em;
    text-decoration: none;
}

.catalog-drawer__head .logo span {
    color: #ff7a00;
}

.catalog-drawer__close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 13px;
    background: #f2f4f8;
    color: #111a36;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.catalog-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: linear-gradient(135deg, #3448ff, #6842ff);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(52, 72, 255, .28);
}

.catalog-drawer__cta span {
    font-size: 18px;
}

.catalog-drawer__nav h2 {
    margin: 0 0 8px;
    color: #6a758d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalog-drawer__nav a,
.catalog-drawer__group > summary {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    min-height: 38px;
    padding: 5px 4px;
    border-radius: 11px;
    color: #222a3d;
    text-decoration: none;
}

.catalog-drawer__group > summary {
    cursor: pointer;
    list-style: none;
}

.catalog-drawer__group > summary::-webkit-details-marker,
.catalog-drawer__series > summary::-webkit-details-marker {
    display: none;
}

.catalog-drawer__nav a:hover,
.catalog-drawer__group > summary:hover {
    background: #f4f6fb;
}

.catalog-drawer__nav a span,
.catalog-drawer__group > summary span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #6f7788;
    font-size: 17px;
    filter: grayscale(.35);
}

.catalog-drawer__nav a b,
.catalog-drawer__group > summary b {
    overflow: hidden;
    color: #2b3347;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-drawer__nav a em,
.catalog-drawer__group > summary em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a8498;
    font-size: 25px;
    font-style: normal;
    line-height: 1;
    transition: transform .18s ease;
}

.catalog-drawer__group[open] > summary em,
.catalog-drawer__series[open] > summary img {
    transform: rotate(90deg);
}

.catalog-drawer__subnav {
    display: grid;
    gap: 4px;
    padding: 4px 0 8px 38px;
}

.catalog-drawer__all-link,
.catalog-drawer__series > summary,
.catalog-drawer__series a {
    min-height: 32px !important;
    border-radius: 10px !important;
    color: #3b4357 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
}

.catalog-drawer__all-link {
    display: flex !important;
    align-items: center !important;
    padding: 6px 10px !important;
    background: rgba(35, 88, 246, .07) !important;
    color: #2358f6 !important;
}

.catalog-drawer__series > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    list-style: none;
}

.catalog-drawer__series > summary img {
    width: 14px;
    height: 14px;
    opacity: .7;
    transition: transform .18s ease;
}

.catalog-drawer__series > div {
    display: grid;
    gap: 2px;
    padding: 2px 0 7px 10px;
}

.catalog-drawer__series a {
    display: flex !important;
    align-items: center !important;
    padding: 5px 8px !important;
    min-height: 28px !important;
    color: #5f6b84 !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
}

.catalog-drawer__socials,
.mobile-menu__socials,
.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-drawer__socials {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(17, 26, 54, .07);
}

.catalog-drawer__socials a,
.mobile-menu__socials a,
.site-footer__socials a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(35, 88, 246, .07);
    color: #2358f6;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.catalog-drawer__socials img,
.mobile-menu__socials img,
.site-footer__socials img {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

body.catalog-drawer-open {
    overflow: hidden;
}

.header-catalog-button,
.mobile-catalog-button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.mobile-catalog-button {
    display: none;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.header-social-link img {
    width: 17px;
    height: 17px;
}

@media (max-width: 767px) {
    .header-social-link {
        display: none;
    }

    .mobile-catalog-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: calc(100% - 32px);
        min-height: 46px;
        margin: 12px auto 10px;
        border-radius: 13px;
        background: linear-gradient(135deg, #3448ff, #6842ff);
        color: #fff;
        font-size: 15px;
        font-weight: 800;
        box-shadow: 0 12px 26px rgba(52, 72, 255, .28);
    }

    .mobile-catalog-button span {
        font-size: 18px;
    }

    .catalog-drawer__backdrop {
        background: rgba(255, 255, 255, .28);
        backdrop-filter: blur(2px);
    }

    .catalog-drawer__panel {
        top: 0;
        left: 0;
        width: min(360px, 92vw);
        height: 100dvh;
        max-height: 100dvh;
        padding: 18px 16px 24px;
        border-radius: 0 20px 20px 0;
        border: 0;
        box-shadow: 18px 0 42px rgba(8, 13, 21, .22);
    }

    .catalog-drawer__head {
        justify-content: center;
        position: relative;
        min-height: 42px;
        margin-bottom: 16px;
    }

    .catalog-drawer__head .logo {
        font-size: 30px;
        line-height: 1;
    }

    .catalog-drawer__close {
        position: absolute;
        top: 0;
        right: 0;
        width: 36px;
        height: 36px;
        background: #f4f5f8;
        font-size: 22px;
    }

    .catalog-drawer__cta {
        min-height: 48px;
        margin-bottom: 17px;
        border-radius: 13px;
        font-size: 15px;
        font-weight: 800;
    }

    .catalog-drawer__nav h2 {
        display: none;
    }

    .catalog-drawer__nav a,
    .catalog-drawer__group > summary {
        grid-template-columns: 26px minmax(0, 1fr) 16px;
        gap: 9px;
        min-height: 30px;
        padding: 4px 0;
        border-radius: 8px;
    }

    .catalog-drawer__nav a span,
    .catalog-drawer__group > summary span {
        width: 26px;
        height: 26px;
        font-size: 17px;
        color: #6b7280;
        filter: grayscale(.5);
    }

    .catalog-drawer__nav a b,
    .catalog-drawer__group > summary b {
        color: #3b3f49;
        font-size: 13.5px;
        font-weight: 650;
        letter-spacing: -.01em;
    }

    .catalog-drawer__nav a em,
    .catalog-drawer__group > summary em {
        color: #6d7480;
        font-size: 24px;
    }

    .catalog-drawer__subnav {
        padding-left: 35px;
    }

    .mobile-menu__socials {
        margin-top: 12px;
    }
}
