.navigation-catalog { gap: 22px; }
.navigation-catalog .brand { flex-shrink: 0; }
.navigation-catalog .desktop-nav { gap: 24px; flex-shrink: 0; }
.navigation-catalog .desktop-nav > a { white-space: nowrap; }
.nav-categories { position: relative; display: flex; align-items: center; height: 100%; }
.nav-category-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 10px 0; background: transparent; color: #596375; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-category-toggle:hover, .nav-category-toggle[aria-expanded="true"] { color: var(--blue); }
.nav-category-toggle span { font-size: 17px; line-height: 1; }
.category-dropdown { position: absolute; top: calc(100% - 9px); left: -18px; z-index: 40; width: 280px; max-height: min(420px, 65vh); overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 15px 35px #14213720; }
.category-dropdown a { display: block; padding: 11px 12px; border-radius: 5px; color: #53657e; font-size: 12px; line-height: 1.5; }
.category-dropdown a:hover, .category-dropdown a:focus-visible { color: var(--blue); background: #edf3ff; }
.nav-search { display: flex; align-items: center; width: 220px; min-width: 150px; max-width: 280px; height: 40px; flex: 1; border: 1px solid #d9e2ed; border-radius: 6px; background: #f8fafc; }
.nav-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px #215cf31a; }
.nav-search input { width: 100%; min-width: 0; height: 100%; border: 0; padding: 0 11px; background: transparent; color: var(--ink); font-size: 12px; outline-offset: 0; }
.nav-search button { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 100%; border-left: 1px solid #e0e7ef; border-radius: 0 6px 6px 0; background: transparent; color: var(--blue); }
.nav-search button:hover { background: #eaf1ff; }
.nav-search svg { width: 17px; height: 17px; }
.navigation-catalog .nav-actions { flex-shrink: 0; gap: 13px; }
.navigation-catalog .quote-cart-link { position: relative; display: grid; place-items: center; width: 38px; height: 40px; }
.navigation-catalog .quote-cart-link svg { width: 23px; height: 23px; }
.navigation-catalog .studio-cart-count { position: absolute; top: 0; right: -2px; min-width: 16px; padding: 1px 4px; border-radius: 10px; color: #fff; background: var(--blue); font-size: 9px; text-align: center; }
.navigation-catalog .menu-toggle { display: none; }
@media (max-width: 1199px) {
    .navigation-catalog { gap: 15px; }
    .navigation-catalog .desktop-nav { gap: 18px; }
    .navigation-catalog .nav-quote { display: none; }
}
@media (max-width: 959px) and (min-width: 700px) {
    .navigation-catalog { display: grid; grid-template-columns: auto 1fr auto; height: auto; min-height: 118px; padding-block: 14px; row-gap: 10px; }
    .navigation-catalog .desktop-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; height: 28px; }
    .navigation-catalog .nav-search { justify-self: end; width: 100%; }
    .navigation-catalog .nav-actions { grid-column: 3; grid-row: 1; }
    .navigation-catalog .desktop-nav > a[aria-current]::after { bottom: -6px; }
    .category-dropdown { top: calc(100% + 9px); }
}
@media (max-width: 699px) {
    html { scroll-padding-top: 140px; }
    .navigation-catalog { display: grid; grid-template-columns: 1fr auto; gap: 12px; height: auto; min-height: 122px; padding-block: 13px; }
    .navigation-catalog .brand { grid-column: 1; grid-row: 1; }
    .navigation-catalog .nav-actions { grid-column: 2; grid-row: 1; gap: 12px; }
    .navigation-catalog .nav-search { display: flex; grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; height: 38px; }
    .nav-search input { font-size: 16px; }
    .navigation-catalog .nav-quote { display: none; }
    .js-enabled .navigation-catalog .menu-toggle { display: block; }
    .navigation-catalog .desktop-nav { top: 100%; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; max-height: calc(100dvh - 150px); overflow-y: auto; padding: 12px 18px; border-bottom: 1px solid var(--line); }
    .navigation-catalog .desktop-nav > a { padding: 12px; }
    .navigation-catalog .desktop-nav > a[aria-current]::after { display: none; }
    .nav-categories { height: auto; flex-direction: column; align-items: stretch; }
    .nav-category-toggle { justify-content: space-between; width: 100%; padding: 12px; }
    .category-dropdown { position: static; width: auto; max-height: none; margin: 0 12px 8px; box-shadow: none; background: #f7f9fd; }
    body:not(.js-enabled) .navigation-catalog .desktop-nav { position: static; grid-column: 1 / -1; grid-row: 3; box-shadow: none; max-height: none; }
    body:not(.js-enabled) main { padding-top: 0; }
    body:not(.js-enabled) .hero { margin-top: 0; }
}
