/* =========================================================
   NVK ENGINEERING — PILL HEADER / PREMIUM MEGA MENU
   Full-fluid width; no max-width page cap.
   ========================================================= */

.nvk-header,
.nvk-header * { box-sizing: border-box; }
.nvk-header {
    position: sticky;
    top: 10px;
    z-index: 1000;
    width: calc(100% - var(--nvk-page-gutter) * 2);
    margin: 10px auto 0;
    color: var(--nvk-color-text);
    background: var(--nvk-color-header);
    border: 1px solid color-mix(in srgb, var(--nvk-color-border) 82%, transparent);
    border-radius: var(--nvk-radius-pill);
    box-shadow: var(--nvk-shadow-sm);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    isolation: isolate;
    transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.nvk-header.nvk-header--scrolled { box-shadow: var(--nvk-shadow-md); }
.nvk-header button,
.nvk-header a { -webkit-tap-highlight-color: transparent; }
.nvk-header button { margin: 0; color: inherit; font: inherit; }
.nvk-header a { color: inherit; text-decoration: none; }
.nvk-header :where(button, a, input):focus-visible { outline: 2px solid var(--nvk-color-focus); outline-offset: 3px; }
.nvk-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.2vw, 34px);
    width: 100%;
    min-height: var(--nvk-header-height);
    padding: 10px clamp(12px, 1.5vw, 24px);
}

/* Brand */
.nvk-header__brand { display: inline-flex; flex: 0 0 auto; align-items: center; min-width: 0; }
.nvk-header__logo { display: block; width: clamp(124px, 12vw, 176px); height: auto; max-height: 46px; object-fit: contain; object-position: left center; }

/* One shared control style for every navigation entry — Catalog included. */
.nvk-header__nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-width: 0; }
.nvk-header__nav-list { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 4px; margin: 0; border: 1px solid var(--nvk-color-border); border-radius: var(--nvk-radius-pill); background: var(--nvk-color-surface-raised); list-style: none; }
.nvk-header__nav-item { position: static; display: flex; align-items: center; }
.nvk-header__nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px clamp(11px, 1.15vw, 18px);
    border: 1px solid transparent;
    border-radius: var(--nvk-radius-pill);
    background: transparent;
    color: var(--nvk-color-text-muted);
    font-family: var(--nvk-font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.nvk-header__nav-link:hover,
.nvk-header__nav-link:focus-visible,
.nvk-header__nav-link[aria-current="page"],
.nvk-header__nav-link--current,
.nvk-header__catalog-trigger[aria-expanded="true"] {
    color: var(--nvk-color-text);
    background: var(--nvk-color-primary-soft);
    border-color: color-mix(in srgb, var(--nvk-color-primary) 32%, var(--nvk-color-border));
    outline-offset: 1px;
}
.nvk-header__chevron { width: 14px; height: 14px; flex: 0 0 auto; stroke-width: 1.8; transition: transform 220ms ease; }
.nvk-header__catalog-trigger[aria-expanded="true"] .nvk-header__chevron { transform: rotate(180deg); }

/* Header actions */
.nvk-header__actions { display: flex; flex: 0 0 auto; align-items: center; gap: clamp(5px, .6vw, 10px); }
.nvk-header__theme-toggle,
.nvk-header__cart,
.nvk-header__burger {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--nvk-color-text);
    cursor: pointer;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}
.nvk-header__cart:hover,
.nvk-header__burger:hover { background: var(--nvk-color-primary-soft); border-color: var(--nvk-color-border); }
.nvk-header__cart:active,
.nvk-header__burger:active { transform: scale(.96); }
.nvk-header__cart > svg { width: 21px; height: 21px; stroke-width: 1.7; }
.nvk-header__cart-count {
    position: absolute;
    top: 1px;
    right: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid var(--nvk-color-header-solid);
    border-radius: 999px;
    background: var(--nvk-color-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: transform 180ms ease;
}
.nvk-header__cart:hover .nvk-header__cart-count { transform: translateY(-2px); }

/* Theme control — matched to the presentation toggle (56 × 32px). */
.nvk-header__theme-toggle {
    width: 56px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    transition: transform 250ms ease;
}

.nvk-header__theme-toggle:hover {
    background: transparent;
}

.nvk-header__theme-toggle:active {
    transform: scale(.94);
}

.nvk-header__theme-toggle:focus-visible {
    outline: 1px solid var(--nvk-color-primary);
    outline-offset: 4px;
}

.nvk-header__theme-toggle:hover .nvk-header__theme-track {
    border-color: rgba(0, 141, 213, .45);
}

.nvk-header__theme-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 56px;
    height: 32px;
    padding: 0 6px;
    overflow: hidden;
    border: 1px solid rgba(17, 21, 26, .13);
    border-radius: 999px;
    background: rgba(17, 21, 26, .055);
    color: rgba(17, 21, 26, .68);
    transition:
        background-color 450ms ease,
        border-color 450ms ease,
        color 450ms ease;
}

.nvk-header__theme-symbol {
    position: relative;
    z-index: 2;
    display: block;
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    stroke-width: 1.7;
    transition:
        transform 550ms ease,
        opacity 450ms ease,
        color 450ms ease;
}

/* Light mode: the dark thumb sits on the right; the sun stays visible. */
.nvk-header__theme-symbol--sun {
    color: rgba(17, 21, 26, .72);
    opacity: 1;
    transform: rotate(0) scale(1);
}

.nvk-header__theme-symbol--moon {
    /* Same tone as the thumb, so the icon does not show through it. */
    color: #11151a;
    opacity: .38;
    transform: rotate(18deg) scale(.88);
}

.nvk-header__theme-thumb {
    position: absolute;
    z-index: 1;
    top: 3px;
    left: calc(100% - 27px);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #11151a;
    box-shadow:
        0 3px 14px rgba(0, 0, 0, .14),
        0 0 0 1px rgba(17, 21, 26, .04);
    transition:
        left 450ms cubic-bezier(.22, 1, .36, 1),
        background-color 450ms ease,
        box-shadow 450ms ease,
        transform 350ms ease;
}

/* Dark mode: the light thumb sits on the left; the moon stays visible. */
html[data-theme="dark"] .nvk-header__theme-track {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .72);
}

html[data-theme="dark"] .nvk-header__theme-thumb {
    left: 3px;
    background: #f4f6f8;
    box-shadow:
        0 3px 14px rgba(0, 0, 0, .24),
        0 0 0 1px rgba(255, 255, 255, .04);
}

html[data-theme="dark"] .nvk-header__theme-symbol--sun {
    color: #f4f6f8;
    opacity: .38;
    transform: rotate(-18deg) scale(.88);
}

html[data-theme="dark"] .nvk-header__theme-symbol--moon {
    color: rgba(255, 255, 255, .82);
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* CTA */
.nvk-header__contact {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 clamp(13px, 1.35vw, 20px);
    border: 1px solid var(--nvk-color-border);
    border-radius: 999px;
    background: var(--nvk-color-surface);
    color: var(--nvk-color-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.nvk-header__contact > svg { width: 14px; height: 14px; stroke-width: 1.8; transition: transform 180ms ease; }
.nvk-header__contact:hover { color: var(--nvk-color-primary); border-color: var(--nvk-color-primary); background: var(--nvk-color-primary-soft); box-shadow: var(--nvk-shadow-sm); }
.nvk-header__contact:hover > svg { transform: translate(2px, -2px); }
.nvk-header__contact:active { transform: translateY(1px); }
.nvk-header__burger { display: inline-flex; }
.nvk-header__burger { flex-direction: column; gap: 5px; }
.nvk-header__burger-line { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 180ms ease, width 180ms ease; }
.nvk-header__burger[aria-expanded="true"] .nvk-header__burger-line:first-child { transform: translateY(3.25px) rotate(45deg); }
.nvk-header__burger[aria-expanded="true"] .nvk-header__burger-line:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Premium mega menu */
.nvk-header__megamenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 1010;
    padding: clamp(20px, 2vw, 30px);
    border: 1px solid var(--nvk-color-border);
    border-radius: 28px;
    background: var(--nvk-color-header-solid);
    color: var(--nvk-color-text);
    box-shadow: var(--nvk-shadow-lg);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
    backdrop-filter: blur(28px) saturate(145%);
    animation: nvk-menu-in 180ms ease both;
}
.nvk-header__megamenu[hidden] { display: none; }
@keyframes nvk-menu-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.nvk-header__megamenu-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 0 clamp(20px, 2vw, 28px); border-bottom: 1px solid var(--nvk-color-border); }
.nvk-header__mega-heading { margin: 8px 0 0; font-family: var(--nvk-font-body); font-size: clamp(20px, 2vw, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; }
.nvk-header__mega-heading span { color: var(--nvk-color-primary); }
.nvk-header__mega-all { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--nvk-color-text); font-size: 12px; font-weight: 800; transition: color 180ms ease; }
.nvk-header__mega-all:hover { color: var(--nvk-color-primary); }
.nvk-header__mega-all svg { width: 16px; height: 16px; }
.nvk-header__mega-grid { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(340px, 1.25fr) minmax(220px, .8fr); gap: clamp(18px, 2vw, 32px); padding-top: clamp(20px, 2vw, 28px); }
.nvk-header__mega-side,
.nvk-header__mega-products,
.nvk-header__mega-feature { min-width: 0; }
.nvk-header__mega-side > .nvk-eyebrow,
.nvk-header__products-head > .nvk-eyebrow { margin-bottom: 12px; }
.nvk-header__category-link { display: grid; grid-template-columns: 38px minmax(0,1fr) 14px; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid transparent; border-radius: 14px; transition: background-color 180ms ease, border-color 180ms ease; }
.nvk-header__category-link:hover { background: var(--nvk-color-primary-soft); border-color: var(--nvk-color-border); }
.nvk-header__category-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--nvk-color-border); border-radius: 12px; color: var(--nvk-color-primary); background: var(--nvk-color-surface); }
.nvk-header__category-icon svg { width: 17px; height: 17px; stroke-width: 1.7; }
.nvk-header__category-link strong { display: block; font-size: 12px; line-height: 1.4; font-weight: 800; }
.nvk-header__category-link small { display: block; margin-top: 3px; color: var(--nvk-color-text-muted); font-size: 10px; line-height: 1.45; }
.nvk-header__small-arrow { width: 14px; height: 14px; color: var(--nvk-color-text-soft); }
.nvk-header__mega-note { display: flex; align-items: flex-start; gap: 9px; margin: 16px 8px 0; padding-top: 16px; border-top: 1px solid var(--nvk-color-border); color: var(--nvk-color-text-muted); font-size: 11px; line-height: 1.65; }
.nvk-header__mega-note-mark { flex: 0 0 auto; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--nvk-color-primary); box-shadow: 0 0 0 4px var(--nvk-color-primary-soft); }
.nvk-header__products-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nvk-header__products-head > .nvk-eyebrow { margin-bottom: 0; }
.nvk-header__search { display: flex; align-items: center; gap: 7px; min-width: 150px; width: min(60%, 245px); height: 36px; padding: 0 10px; border: 1px solid var(--nvk-color-border); border-radius: 999px; background: var(--nvk-color-bg); color: var(--nvk-color-text-muted); }
.nvk-header__search:focus-within { border-color: var(--nvk-color-primary); box-shadow: 0 0 0 3px var(--nvk-color-primary-soft); }
.nvk-header__search > svg { flex: 0 0 auto; width: 14px; height: 14px; }
.nvk-header__search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--nvk-color-text); font-size: 11px; }
.nvk-header__search input::placeholder { color: var(--nvk-color-text-soft); }
.nvk-header__search kbd { color: var(--nvk-color-text-soft); font-size: 10px; }
.nvk-header__product-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-content: start; gap: 2px 8px; max-height: min(52vh, 440px); min-height: 220px; padding: 2px 6px 2px 0; overflow: auto; overscroll-behavior: contain; scrollbar-color: var(--nvk-color-border-strong) transparent; scrollbar-width: thin; }
.nvk-header__product-link { display: grid; grid-template-columns: 25px minmax(0,1fr) 13px; align-items: center; gap: 8px; min-width: 0; padding: 10px 8px; border: 1px solid transparent; border-radius: 11px; transition: background-color 160ms ease, border-color 160ms ease; }
.nvk-header__product-link:hover { background: var(--nvk-color-primary-soft); border-color: color-mix(in srgb, var(--nvk-color-primary) 25%, var(--nvk-color-border)); }
.nvk-header__product-link[hidden] { display: none; }
.nvk-header__product-index { color: var(--nvk-color-text-soft); font-size: 9px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nvk-header__product-copy { min-width: 0; }
.nvk-header__product-copy strong { display: block; overflow: hidden; color: var(--nvk-color-text); font-size: 10px; font-weight: 800; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.nvk-header__product-copy small { display: block; overflow: hidden; margin-top: 2px; color: var(--nvk-color-text-muted); font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.nvk-header__product-link > svg { width: 13px; height: 13px; color: var(--nvk-color-text-soft); }
.nvk-header__product-link:hover > svg { color: var(--nvk-color-primary); }
.nvk-header__product-empty { grid-column: 1 / -1; padding: 18px 12px; color: var(--nvk-color-text-muted); font-size: 12px; }
.nvk-header__products-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--nvk-color-border); color: var(--nvk-color-text-soft); font-size: 10px; }
.nvk-header__mega-feature { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; padding: 18px; overflow: hidden; border: 1px solid var(--nvk-color-border); border-radius: 20px; background: linear-gradient(145deg, var(--nvk-color-surface) 0%, var(--nvk-color-surface-muted) 100%); }
.nvk-header__feature-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nvk-header__feature-top > svg { width: 16px; height: 16px; color: var(--nvk-color-primary); }
.nvk-header__feature-art {
    position: absolute;
    top: 24px;
    left: 12px;
    right: 12px;
    height: 290px;
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
}

.nvk-header__feature-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Плавно растворяем нижний край изображения */
.nvk-header__feature-art::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(238, 242, 246, 0.96)
    );
}
.nvk-header__feature-ring { position: absolute; top: 50%; left: 50%; display: block; border: 1px solid color-mix(in srgb, var(--nvk-color-primary) 44%, transparent); border-radius: 50%; transform: translate(-50%,-50%); }
.nvk-header__feature-ring--one { width: 116px; height: 116px; box-shadow: 0 0 0 13px var(--nvk-color-primary-soft), 0 0 0 26px color-mix(in srgb, var(--nvk-color-primary) 5%, transparent); }
.nvk-header__feature-ring--two { width: 70px; height: 70px; border-color: var(--nvk-color-primary); }
.nvk-header__feature-cross { position: absolute; top: 50%; left: 50%; width: 180px; height: 1px; background: color-mix(in srgb, var(--nvk-color-primary) 55%, transparent); transform: translate(-50%,-50%) rotate(-38deg); }
.nvk-header__feature-copy { position: relative; z-index: 1; margin-top: 130px; }
.nvk-header__feature-copy h3 { max-width: 280px; margin: 0 0 9px; font-family: var(--nvk-font-body); font-size: clamp(17px, 1.3vw, 21px); font-weight: 800; line-height: 1.25; letter-spacing: -.04em; }
.nvk-header__feature-copy p { margin: 0 0 17px; color: var(--nvk-color-text-muted); font-size: 11px; line-height: 1.7; }
.nvk-header__feature-copy a { display: inline-flex; align-items: center; gap: 7px; color: var(--nvk-color-primary); font-size: 11px; font-weight: 800; }
.nvk-header__feature-copy a svg { width: 14px; height: 14px; transition: transform 180ms ease; }
.nvk-header__feature-copy a:hover svg { transform: translateX(3px); }

/* Laptops: let the product list breathe; hide promo tile before cutting nav. */
@media (max-width: 1280px) and (min-width: 993px) {
    .nvk-header__inner { gap: 12px; padding-inline: 12px; }
    .nvk-header__logo { width: clamp(118px, 11vw, 150px); }
    .nvk-header__nav-link { padding-inline: 11px; font-size: 11px; }
    .nvk-header__mega-grid { grid-template-columns: minmax(190px,.7fr) minmax(360px,1.3fr); }
    .nvk-header__mega-feature { display: none; }
}

/* Mobile/tablet navigation */
@media (max-width: 992px) {
    .nvk-header { top: 8px; margin-top: 8px; border-radius: 24px; }
    .nvk-header__inner { min-height: var(--nvk-header-height); gap: 12px; padding: 8px 12px; }
    .nvk-header__logo { width: clamp(118px, 21vw, 155px); max-height: 42px; }
    .nvk-header__actions { margin-left: auto; }
    .nvk-header__burger { display: inline-flex; }
    .nvk-header__nav { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: none; align-items: stretch; justify-content: flex-start; max-height: calc(100dvh - 100px); padding: 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--nvk-color-border); border-radius: 22px; background: var(--nvk-color-header-solid); box-shadow: var(--nvk-shadow-lg); }
    .nvk-header__nav.nvk-header__nav--open { display: flex; }
    .nvk-header__nav-list { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 3px; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; }
    .nvk-header__nav-item { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
    .nvk-header__nav-link { justify-content: space-between; width: 100%; min-height: 46px; padding: 12px 14px; border-radius: 13px; font-size: 13px; text-align: left; }
    .nvk-header__megamenu { position: static; width: 100%; margin-top: 8px; padding: 17px; border-radius: 18px; box-shadow: none; animation: none; }
    .nvk-header__megamenu-topline { align-items: flex-start; gap: 14px; }
    .nvk-header__mega-heading { font-size: clamp(18px, 4vw, 24px); }
    .nvk-header__mega-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .nvk-header__mega-side { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
    .nvk-header__mega-side > .nvk-eyebrow, .nvk-header__mega-note { grid-column: 1 / -1; }
    .nvk-header__category-link { padding: 9px 7px; grid-template-columns: 32px minmax(0,1fr); }
    .nvk-header__category-icon { width: 30px; height: 30px; border-radius: 10px; }
    .nvk-header__category-link .nvk-header__small-arrow { display: none; }
    .nvk-header__mega-note { margin-top: 8px; }
    .nvk-header__product-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: min(42vh, 360px); min-height: 160px; }
    .nvk-header__mega-feature { display: none; }
}

@media (max-width: 576px) {
    .nvk-header { width: calc(100% - 16px); }
    .nvk-header__inner { min-height: 60px; padding: 7px 8px; gap: 4px; }
    .nvk-header__logo { width: 116px; max-height: 36px; }
    .nvk-header__actions { gap: 1px; }
    .nvk-header__cart, .nvk-header__burger { width: 37px; height: 37px; }
    .nvk-header__cart > svg { width: 19px; height: 19px; }
    .nvk-header__contact { display: none; }
    .nvk-header__nav { padding: 9px; }
    .nvk-header__megamenu { padding: 13px; }
    .nvk-header__megamenu-topline { flex-direction: column; }
    .nvk-header__mega-all { align-self: flex-start; }
    .nvk-header__mega-grid { padding-top: 16px; }
    .nvk-header__mega-side { grid-template-columns: minmax(0,1fr); }
    .nvk-header__category-link { grid-template-columns: 34px minmax(0,1fr) 13px; }
    .nvk-header__category-link .nvk-header__small-arrow { display: block; }
    .nvk-header__product-list { grid-template-columns: minmax(0,1fr); max-height: 36vh; }
    .nvk-header__products-head { align-items: flex-start; flex-direction: column; }
    .nvk-header__search { width: 100%; }
    .nvk-header__products-foot { font-size: 9px; }
}

@media (max-width: 360px) {
    .nvk-header__logo { width: 102px; }
    .nvk-header__actions { gap: 0; }
}

/* =========================================================
   CONTACTS + PROJECTS MENU
   Brand marks use the Simple Icons CDN through CSS masks so
   they follow currentColor in both light and dark themes.
   ========================================================= */
.nvk-header__phone-mobile {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--nvk-color-text);
    background: transparent;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.nvk-header__phone-mobile:hover {
    background: var(--nvk-color-primary-soft);
    border-color: var(--nvk-color-border);
}
.nvk-header__phone-mobile:active { transform: scale(.96); }
.nvk-header__phone-mobile > svg { width: 19px; height: 19px; stroke-width: 1.8; }

.nvk-header__menu-extras { display: none; }
.nvk-header__menu-card {
    min-width: 0;
    padding: clamp(16px, 1.6vw, 22px);
    border: 1px solid var(--nvk-color-border);
    border-radius: 19px;
    background: var(--nvk-color-surface);
}
.nvk-header__menu-card--contact {
    background: linear-gradient(145deg, var(--nvk-color-surface) 0%, var(--nvk-color-surface-muted) 100%);
}
.nvk-header__menu-heading {
    margin: 8px 0 0;
    color: var(--nvk-color-text);
    font-family: var(--nvk-font-body);
    font-size: clamp(17px, 1.4vw, 21px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.035em;
}
.nvk-header__menu-description {
    margin: 7px 0 16px;
    color: var(--nvk-color-text-muted);
    font-size: 11px;
    line-height: 1.6;
}
.nvk-header__menu-links { display: grid; gap: 5px; }
.nvk-header__menu-link {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 8px;
    border: 1px solid transparent;
    border-radius: 13px;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.nvk-header__menu-link:hover {
    background: var(--nvk-color-primary-soft);
    border-color: var(--nvk-color-border);
}
.nvk-header__menu-link:active { transform: translateY(1px); }
.nvk-header__menu-link-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--nvk-color-border);
    border-radius: 11px;
    background: var(--nvk-color-surface-raised);
    color: var(--nvk-color-primary);
}
.nvk-header__menu-link-icon > svg { width: 16px; height: 16px; stroke-width: 1.8; }
.nvk-header__menu-link-copy { min-width: 0; }
.nvk-header__menu-link-copy strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--nvk-color-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
}
.nvk-header__menu-link-copy small {
    display: block;
    margin-top: 3px;
    color: var(--nvk-color-text-muted);
    font-size: 10px;
    line-height: 1.45;
}
.nvk-header__menu-link-arrow { width: 14px; height: 14px; color: var(--nvk-color-text-soft); }
.nvk-header__menu-link:hover .nvk-header__menu-link-arrow { color: var(--nvk-color-primary); }

.nvk-header__menu-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--nvk-color-border);
}
.nvk-header__social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--nvk-color-border);
    border-radius: 999px;
    color: var(--nvk-color-text-muted);
    background: var(--nvk-color-surface-raised);
    font-size: 10px;
    font-weight: 800;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.nvk-header__social-link:hover {
    color: var(--nvk-color-primary);
    background: var(--nvk-color-primary-soft);
    border-color: color-mix(in srgb, var(--nvk-color-primary) 35%, var(--nvk-color-border));
}
.nvk-header__social-mark {
    display: block;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.nvk-header__social-mark--whatsapp {
    -webkit-mask-image: url("https://cdn.simpleicons.org/whatsapp");
    mask-image: url("https://cdn.simpleicons.org/whatsapp");
}
.nvk-header__social-mark--large { width: 18px; height: 18px; }
.nvk-header__social-mark--instagram {
    -webkit-mask-image: url("https://cdn.simpleicons.org/instagram");
    mask-image: url("https://cdn.simpleicons.org/instagram");
}
.nvk-header__social-mark--youtube {
    -webkit-mask-image: url("https://cdn.simpleicons.org/youtube");
    mask-image: url("https://cdn.simpleicons.org/youtube");
}

/* Desktop: keep the primary nav in place; the burger opens a compact utility panel. */
/* =========================================================
   CONTACTS + PROJECTS MENU — RESPONSIVE
   ========================================================= */

/* Desktop: floating utility panel under the header */
@media (min-width: 993px) {
    .nvk-header__nav.nvk-header__nav--open .nvk-header__menu-extras {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 1010;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 12px;

        width: min(760px, calc(100vw - 32px));
        max-height: min(78dvh, 720px);
        padding: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;

        border: 1px solid var(--nvk-color-border);
        border-radius: 24px;
        background: var(--nvk-color-header-solid);
        box-shadow: var(--nvk-shadow-lg);

        -webkit-backdrop-filter: blur(28px) saturate(145%);
        backdrop-filter: blur(28px) saturate(145%);

        animation: nvk-menu-in 180ms ease both;
    }
}

/* Tablet and mobile: stack navigation and utility cards vertically */
@media (max-width: 992px) {
    .nvk-header__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nvk-header__nav-list {
        width: 100%;
    }

    /* Hide extras until the burger menu is opened */
    .nvk-header__nav .nvk-header__menu-extras {
        display: none;
    }

    .nvk-header__nav.nvk-header__nav--open
    .nvk-header__menu-extras {
        display: grid;
        position: static;

        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 10px;

        width: 100%;
        min-width: 0;
        margin-top: 12px;
        padding: 12px 0 0;

        border-top: 1px solid var(--nvk-color-border);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;

        animation: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .nvk-header__menu-card {
        min-width: 0;
        padding: 16px;
        border-radius: 16px;
    }

    .nvk-header__menu-heading {
        font-size: 18px;
    }

    .nvk-header__menu-description {
        margin-bottom: 10px;
    }
}

/* Small phones */
@media (max-width: 576px) {
    .nvk-header__phone-mobile {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 37px;
        height: 37px;
    }

    .nvk-header__phone-mobile > svg {
        width: 18px;
        height: 18px;
    }

    .nvk-header__menu-extras {
        gap: 9px;
    }

    .nvk-header__menu-card {
        padding: 13px;
    }

    .nvk-header__menu-link {
        grid-template-columns: 32px minmax(0, 1fr) 13px;
        gap: 8px;
        padding: 8px 6px;
    }

    .nvk-header__menu-link-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .nvk-header__menu-link-copy strong {
        font-size: 10px;
    }

    .nvk-header__menu-link-copy small {
        font-size: 9px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .nvk-header__phone-mobile,
    .nvk-header__menu-link,
    .nvk-header__social-link {
        transition: none;
    }

    .nvk-header__megamenu,
    .nvk-header__menu-extras {
        animation: none;
    }
}

/* =========================================================
   PREMIUM GLASS SURFACES — ALL VIEWPORTS
   Burger panel, catalog dropdown and page backdrop.
   ========================================================= */

/* Use the translucent theme surface so backdrop-filter is visible. */
.nvk-header__megamenu {
    /* More opaque glass keeps the catalog readable over the Bento hero. */
    background: var(--nvk-color-header-solid);
    background: color-mix(in srgb, var(--nvk-color-header-solid) 96%, transparent);
    border-color: var(--nvk-color-border);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
    backdrop-filter: blur(28px) saturate(145%);
}

/* A soft veil behind any open header menu. Header stays above it. */
.nvk-header__backdrop {
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(25, 35, 48, 0.10);
    -webkit-backdrop-filter: blur(5px) saturate(118%);
    backdrop-filter: blur(5px) saturate(118%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 200ms ease,
        visibility 200ms ease;
}

.nvk-header__backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html[data-theme="dark"] .nvk-header__backdrop {
    background: rgba(0, 0, 0, 0.24);
}

/* Desktop burger utility panel: translucent glass, not an opaque slab. */
@media (min-width: 993px) {
    .nvk-header__nav.nvk-header__nav--open .nvk-header__menu-extras {
        background: var(--nvk-color-header);
        background: color-mix(in srgb, var(--nvk-color-header) 88%, transparent);
        border-color: color-mix(in srgb, var(--nvk-color-border) 82%, transparent);
        -webkit-backdrop-filter: blur(30px) saturate(160%);
        backdrop-filter: blur(30px) saturate(160%);
    }
}

/* Tablet and mobile burger dropdown: glass panel and nested catalog dropdown. */
@media (max-width: 992px) {
    .nvk-header__nav {
        background: var(--nvk-color-header);
        background: color-mix(in srgb, var(--nvk-color-header) 88%, transparent);
        border-color: color-mix(in srgb, var(--nvk-color-border) 82%, transparent);
        -webkit-backdrop-filter: blur(30px) saturate(155%);
        backdrop-filter: blur(30px) saturate(155%);
    }

    .nvk-header__nav.nvk-header__nav--open {
        background: var(--nvk-color-header);
        background: color-mix(in srgb, var(--nvk-color-header) 88%, transparent);
    }

    .nvk-header__nav .nvk-header__megamenu {
        /* Same readable glass treatment for the nested mobile catalog. */
        background: var(--nvk-color-header-solid);
        background: color-mix(in srgb, var(--nvk-color-header-solid) 96%, transparent);
        border-color: var(--nvk-color-border);
        -webkit-backdrop-filter: blur(24px) saturate(140%);
        backdrop-filter: blur(24px) saturate(140%);
    }

    .nvk-header__nav.nvk-header__nav--open .nvk-header__menu-extras {
        background: transparent;
    }
}

/* Keep the opening/closing polish accessible. */
@media (prefers-reduced-motion: reduce) {
    .nvk-header__backdrop {
        transition: none;
    }
}

/* Browsers without backdrop-filter still receive a readable menu surface. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nvk-header__megamenu,
    .nvk-header__nav,
    .nvk-header__nav.nvk-header__nav--open .nvk-header__menu-extras {
        background: var(--nvk-color-header-solid);
    }
    .nvk-header__backdrop {
        background: rgba(25, 35, 48, 0.28);
    }
    html[data-theme="dark"] .nvk-header__backdrop {
        background: rgba(0, 0, 0, 0.48);
    }
}
