/* Public header: primary links above catalogue dropdowns. */
.as-header {
    height:138px
}
.as-header-inner {
    height:84px
}
.as-nav-primary {
    display:flex;
    align-items:center;
    gap:26px
}
.as-category-bar {
    position:absolute;
    top:84px;
    left:0;
    right:0;
    height:54px;
    background:#0c1115;
    border-top:1px solid var(--as-line);
    border-bottom:1px solid var(--as-line)
}
.as-category-list {
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    height:100%;
    gap:8px
}
.as-category-menu>summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:52px;
    padding:12px 8px;
    color:#d5d7d7;
    font-size:12px;
    cursor:pointer;
    list-style:none;
    white-space:nowrap
}
.as-category-menu>summary::-webkit-details-marker {
    display:none
}
.as-category-label {
    display:inline-flex;
    align-items:center;
    gap:8px
}
.as-category-label>.as-icon {
    width:22px;
    height:22px;
    flex-shrink:0;
    color:var(--as-gold)
}
.as-category-menu>summary:hover,
.as-category-menu[open]>summary,
.as-category-menu.is-active>summary {
    color:var(--as-gold)
}
.as-category-menu[open]>summary {
    box-shadow:inset 0 -2px var(--as-gold)
}
.as-category-chevron {
    width:6px;
    height:6px;
    border-right:1px solid currentColor;
    border-bottom:1px solid currentColor;
    transform:rotate(45deg);
    flex-shrink:0;
    transition:transform .2s
}
.as-category-menu[open] .as-category-chevron {
    transform:rotate(225deg)
}
.as-category-dropdown {
    position:absolute;
    top:100%;
    left:0;
    right:0;
    max-height:min(65vh,520px);
    overflow-y:auto;
    overscroll-behavior:contain;
    background:#0c1217;
    border-bottom:1px solid #716140;
    box-shadow:0 20px 35px #0008
}
.as-category-dropdown-inner {
    padding-block:24px 28px
}
.as-nav .as-category-overview {
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:0 0 18px;
    color:var(--as-gold);
    font-size:15px;
    font-weight:500;
    white-space:normal
}
.as-category-overview .as-icon {
    width:18px;
    height:18px
}
.as-category-links {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px 28px;
    margin:0;
    padding:16px 0 0;
    border-top:1px solid var(--as-line);
    list-style:none
}
.as-nav .as-category-links a {
    display:block;
    padding:11px 12px;
    border-radius:4px;
    font-size:13px;
    line-height:1.5;
    white-space:normal;
    overflow-wrap:anywhere
}
.as-nav .as-category-links a:hover,
.as-nav .as-category-links a.is-active {
    color:var(--as-gold);
    background:#e6c5800d
}
.as-nav .as-category-dropdown a:after {
    display:none
}
@media (min-width:1051px) and (max-width:1270px) {
    .as-nav-primary { gap:20px }
    .as-category-menu>summary { gap:6px; padding:7px 4px; font-size:11px }
    .as-category-label { flex-direction:column; gap:3px; line-height:1.2 }
    .as-category-label>.as-icon { width:18px; height:18px }
}
@media (max-width:1050px) {
    .as-header { height:72px }
    .as-header-inner { height:100%; gap:18px }
    .as-header-book { display:none }
    .as-header-phone { margin-left:auto }
    .as-menu-toggle {
        display:flex;
        flex-direction:column;
        justify-content:center;
        gap:7px;
        background:none;
        border:1px solid #6f654c;
        border-radius:50%;
        width:40px;
        height:40px;
        padding:10px;
        flex-shrink:0
    }
    .as-menu-toggle>span {
        height:1px;
        background:var(--as-gold);
        width:18px;
        transition:transform .2s
    }
    .as-menu-toggle[aria-expanded=true]>span:first-child { transform:translateY(4px) rotate(45deg) }
    .as-menu-toggle[aria-expanded=true]>span:last-child { transform:translateY(-4px) rotate(-45deg) }
    .as-nav {
        position:absolute;
        top:100%;
        left:0;
        right:0;
        display:none;
        max-height:calc(100vh - 72px);
        max-height:calc(100dvh - 72px);
        overflow-y:auto;
        overscroll-behavior:contain;
        background:#0c1217;
        border-bottom:1px solid #716140;
        margin:0;
        padding:12px 20px 24px;
        box-shadow:0 15px 25px #0007
    }
    .as-nav.is-open { display:block }
    .as-nav-primary {
        display:flex;
        flex-wrap:wrap;
        gap:0 22px;
        padding-bottom:12px;
        border-bottom:1px solid var(--as-line)
    }
    .as-nav-primary a { padding:12px 0; font-size:13px }
    .as-nav-primary a:after { display:none }
    .as-category-bar {
        position:static;
        height:auto;
        margin-top:8px;
        background:none;
        border:0
    }
    .as-category-list {
        display:block;
        width:100%;
        height:auto
    }
    .as-category-menu { border-bottom:1px solid var(--as-line) }
    .as-category-menu:last-child { border-bottom:0 }
    .as-category-menu>summary { min-height:48px; padding:13px 4px; font-size:14px }
    .as-category-label { gap:12px }
    .as-category-menu[open]>summary { box-shadow:none }
    .as-category-dropdown {
        position:static;
        max-height:none;
        overflow:visible;
        border:0;
        box-shadow:none;
        background:none
    }
    .as-category-dropdown-inner { width:100%; padding:0 0 14px }
    .as-nav .as-category-overview { padding:10px 4px 14px; font-size:12px }
    .as-category-links { grid-template-columns:1fr; gap:0; padding:4px 0 0 }
    .as-nav .as-category-links a { min-height:44px; padding:12px; font-size:13px }
}
@media (max-width:560px) {
    .as-header { height:70px }
    .as-header-inner { gap:12px }
    .as-menu-toggle { width:35px; height:35px; padding:8px }
    .as-nav { padding-inline:18px; max-height:calc(100vh - 70px); max-height:calc(100dvh - 70px) }
}
