:root {
    --nsgm-accent: #c98784;
    --nsgm-dark: #211c1a;
    --nsgm-muted: #756b67;
    --nsgm-paper: #fbf8f6;
    --nsgm-white: #ffffff;
    --nsgm-line: rgba(33, 28, 26, 0.10);
    --nsgm-shadow: 0 20px 60px rgba(57, 38, 32, 0.13);
    --nsgm-admin-offset: 0px;
    --nsgm-header-height: 78px;
}

body.admin-bar { --nsgm-admin-offset: 32px; }

/* Ukrycie nagłówków motywu/buildera bez modyfikowania ich plików. */
body.nsgm-enabled #masthead,
body.nsgm-enabled header.site-header,
body.nsgm-enabled .site-header:not(.nsgm-header),
body.nsgm-enabled .ast-desktop-header-content,
body.nsgm-enabled .ast-mobile-header-wrap,
body.nsgm-enabled .elementor-location-header,
body.nsgm-enabled .elementor-element[data-elementor-type="header"] {
    display: none !important;
}

body.nsgm-menu-open { overflow: hidden; }

.nsgm-header,
.nsgm-header * { box-sizing: border-box; }

.nsgm-header {
    position: fixed;
    z-index: 999998;
    top: var(--nsgm-admin-offset);
    right: 0;
    left: 0;
    height: 92px;
    padding: 12px 0;
    color: var(--nsgm-dark);
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: height 280ms ease, background-color 280ms ease, box-shadow 280ms ease, backdrop-filter 280ms ease;
}

.nsgm-header.is-scrolled {
    height: 72px;
    padding-block: 8px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 10px 32px rgba(57,38,32,.10);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.nsgm-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto auto;
    align-items: center;
    gap: 20px;
    width: min(1280px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: auto;
    transition: none;
}

.nsgm-header.is-scrolled .nsgm-shell {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Menu jest warstwą nad sekcją hero — nie rezerwuje osobnego pasa. */
.nsgm-spacer {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.nsgm-enabled,
body.nsgm-enabled #page,
body.nsgm-enabled .site,
body.nsgm-enabled .site-content,
body.nsgm-enabled #content,
body.nsgm-enabled main {
    margin-top: 0 !important;
}

.nsgm-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 100%;
    color: var(--nsgm-dark) !important;
    text-decoration: none !important;
}

.nsgm-brand-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--nsgm-accent) 24%, transparent);
    border-radius: 15px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--nsgm-accent) 18%, white), color-mix(in srgb, var(--nsgm-accent) 44%, white));
    color: color-mix(in srgb, var(--nsgm-accent) 78%, var(--nsgm-dark));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -.08em;
}

.nsgm-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1;
}

.nsgm-brand-name {
    overflow: hidden;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: .12em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsgm-brand-subtitle {
    margin-top: 7px;
    overflow: hidden;
    color: var(--nsgm-muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .16em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.nsgm-navigation { justify-self: center; }

.nsgm-menu,
.nsgm-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nsgm-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nsgm-menu > li { position: relative; }

.nsgm-menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 12px;
    color: #4d4541 !important;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nsgm-menu > li > a:hover,
.nsgm-menu > li > a:focus-visible {
    color: var(--nsgm-dark) !important;
    background: color-mix(in srgb, var(--nsgm-accent) 11%, transparent);
    outline: none;
}

.nsgm-menu > li.current-menu-item:not(.nsgm-cta-item) > a::after,
.nsgm-menu > li.current-menu-ancestor:not(.nsgm-cta-item) > a::after,
.nsgm-menu > li.nsgm-active-section:not(.nsgm-cta-item) > a::after {
    position: absolute;
    right: 13px;
    bottom: 5px;
    left: 13px;
    height: 2px;
    border-radius: 999px;
    background: var(--nsgm-accent);
    content: "";
}

.nsgm-menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: grid;
    min-width: 210px;
    padding: 9px;
    border: 1px solid var(--nsgm-line);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 45px rgba(57,38,32,.14);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.nsgm-menu li:hover > .sub-menu,
.nsgm-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nsgm-menu .sub-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--nsgm-dark) !important;
    font-size: 13px;
    text-decoration: none !important;
}

.nsgm-menu .sub-menu a:hover,
.nsgm-menu .sub-menu a:focus-visible {
    background: color-mix(in srgb, var(--nsgm-accent) 10%, transparent);
    outline: none;
}

.nsgm-menu > li.nsgm-cta-item { margin-left: 7px; }

.nsgm-menu > li.nsgm-cta-item > a {
    min-height: 46px;
    padding: 0 20px;
    gap: 10px;
    border-radius: 14px;
    background: var(--nsgm-dark);
    color: #fff !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--nsgm-dark) 20%, transparent);
    font-size: 13px;
    font-weight: 750;
}

.nsgm-menu > li.nsgm-cta-item > a::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--nsgm-accent) 72%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--nsgm-accent) 18%, transparent);
    content: "";
}

.nsgm-menu > li.nsgm-cta-item > a:hover,
.nsgm-menu > li.nsgm-cta-item > a:focus-visible {
    background: color-mix(in srgb, var(--nsgm-dark) 88%, white);
    color: #fff !important;
    transform: translateY(-2px);
}

.nsgm-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.nsgm-phone {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border: 1px solid var(--nsgm-line);
    border-radius: 14px;
    background: rgba(255,255,255,.68);
    color: var(--nsgm-dark) !important;
    text-decoration: none !important;
    transition: background-color 180ms ease, transform 180ms ease;
}

.nsgm-phone:hover,
.nsgm-phone:focus-visible {
    background: #fff;
    outline: none;
    transform: translateY(-1px);
}

.nsgm-toggle {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--nsgm-dark);
    color: #fff;
    cursor: pointer;
}

.nsgm-toggle span,
.nsgm-toggle::before,
.nsgm-toggle::after {
    position: absolute;
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: opacity 220ms ease, transform 220ms ease;
}

.nsgm-toggle::before { transform: translateY(-6px); }
.nsgm-toggle::after { transform: translateY(6px); }
.nsgm-toggle[aria-expanded="true"] span { opacity: 0; }
.nsgm-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nsgm-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }

.nsgm-mobile-meta { display: none; }

@media (max-width: 1180px) {
    .nsgm-shell { gap: 12px; }
    .nsgm-menu > li > a { padding-inline: 10px; font-size: 13px; }
    .nsgm-menu > li.nsgm-cta-item > a { padding-inline: 16px; }
    .nsgm-brand-subtitle { display: none; }
}

@media (max-width: 1040px) {
    .nsgm-shell { grid-template-columns: minmax(0, 1fr) auto; }
    .nsgm-navigation {
        position: fixed;
        z-index: -1;
        top: var(--nsgm-admin-offset);
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-rows: 1fr auto;
        align-content: stretch;
        width: 100%;
        padding: 112px 22px 24px;
        overflow-y: auto;
        background: rgba(250,247,245,.985);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        transition: opacity 240ms ease, visibility 240ms ease, transform 240ms ease;
    }

    body.nsgm-menu-open .nsgm-navigation {
        z-index: 1;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nsgm-menu {
        display: grid;
        align-content: start;
        width: min(760px, 100%);
        margin: 0 auto;
        gap: 0;
    }

    .nsgm-menu > li { border-bottom: 1px solid var(--nsgm-line); }

    .nsgm-menu > li > a {
        display: flex;
        justify-content: space-between;
        width: 100%;
        min-height: 0;
        padding: 17px 2px;
        border-radius: 0;
        color: var(--nsgm-dark) !important;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(25px, 7vw, 38px);
        font-weight: 400;
        line-height: 1.1;
    }

    .nsgm-menu > li:not(.nsgm-cta-item) > a::before {
        order: 2;
        color: var(--nsgm-accent);
        content: "↗";
        font-family: Arial, sans-serif;
        font-size: 16px;
    }

    .nsgm-menu > li.current-menu-item:not(.nsgm-cta-item) > a::after,
    .nsgm-menu > li.current-menu-ancestor:not(.nsgm-cta-item) > a::after,
    .nsgm-menu > li.nsgm-active-section:not(.nsgm-cta-item) > a::after { display: none; }

    .nsgm-menu .sub-menu {
        position: static;
        display: grid;
        min-width: 0;
        padding: 0 0 12px 14px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nsgm-menu .sub-menu a {
        padding: 8px 0;
        color: var(--nsgm-muted) !important;
        font-family: Arial, sans-serif;
        font-size: 15px;
    }

    .nsgm-menu > li.nsgm-cta-item {
        margin: 22px 0 0;
        border: 0;
    }

    .nsgm-menu > li.nsgm-cta-item > a {
        justify-content: center;
        min-height: 56px;
        padding: 0 22px;
        border-radius: 17px;
        font-family: Arial, sans-serif;
        font-size: 15px;
        font-weight: 750;
    }

    .nsgm-phone { display: none; }
    .nsgm-toggle { display: flex; }

    .nsgm-mobile-meta {
        display: grid;
        align-self: end;
        width: min(760px, 100%);
        margin: 28px auto 0;
        gap: 10px;
        color: var(--nsgm-muted);
        font-size: 13px;
        line-height: 1.55;
    }

    .nsgm-mobile-meta a {
        color: inherit !important;
        text-decoration: none !important;
    }
}

@media (max-width: 782px) {
    body.admin-bar { --nsgm-admin-offset: 46px; }
}

@media (max-width: 760px) {
    :root { --nsgm-header-height: 64px; }

    .nsgm-header {
        top: var(--nsgm-admin-offset);
        height: 76px;
        padding: 8px 0;
    }

    .nsgm-header.is-scrolled {
        top: var(--nsgm-admin-offset);
        height: 68px;
    }

    .nsgm-shell {
        width: 100%;
        padding: 0 14px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nsgm-brand { gap: 10px; }
    .nsgm-brand-mark { width: 40px; height: 40px; border-radius: 13px; font-size: 17px; }
    .nsgm-brand-name { font-size: 18px; }
    .nsgm-brand-subtitle { display: none; }
    .nsgm-toggle { width: 42px; height: 42px; border-radius: 13px; }
    .nsgm-navigation { padding-top: 92px; }
}

@media (prefers-reduced-motion: reduce) {
    .nsgm-header,
    .nsgm-shell,
    .nsgm-navigation,
    .nsgm-menu a,
    .nsgm-toggle span,
    .nsgm-toggle::before,
    .nsgm-toggle::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* === NAILSPACE MOBILE DRAWER FIX 2.3 === */
html.nsgm-menu-open,
body.nsgm-menu-open {
    overflow: hidden !important;
}

@media (max-width: 1040px) {
    /* Filtr na przodku zmienial position:fixed w element przywiazany do
       wysokosci naglowka, przez co dol menu byl ucinany na Safari/mobile. */
    .nsgm-header,
    .nsgm-header.is-scrolled {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        filter: none !important;
        transform: none !important;
        perspective: none !important;
        contain: none !important;
    }

    .nsgm-brand,
    .nsgm-actions {
        position: relative;
        z-index: 4;
    }

    .nsgm-navigation {
        position: fixed !important;
        z-index: 3 !important;
        top: var(--nsgm-admin-offset) !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100vw !important;
        height: calc(100vh - var(--nsgm-admin-offset)) !important;
        height: calc(100svh - var(--nsgm-admin-offset)) !important;
        height: calc(100dvh - var(--nsgm-admin-offset)) !important;
        min-height: 0 !important;
        max-height: calc(100dvh - var(--nsgm-admin-offset)) !important;
        padding: 108px 22px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        background: rgba(250,247,245,.99) !important;
    }

    body.nsgm-menu-open .nsgm-navigation {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .nsgm-navigation > .nsgm-menu {
        display: grid !important;
        flex: 0 0 auto;
        width: min(760px, 100%) !important;
        min-height: max-content;
    }

    .nsgm-mobile-meta {
        display: grid !important;
        flex: 0 0 auto;
        width: min(760px, 100%) !important;
        margin: auto auto 0 !important;
        padding-top: 28px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .nsgm-menu > li,
    .nsgm-menu > li > a,
    .nsgm-menu > li.nsgm-cta-item,
    .nsgm-menu > li.nsgm-cta-item > a {
        flex-shrink: 0;
    }
}

@media (max-width: 760px) {
    .nsgm-navigation {
        padding-top: 88px !important;
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    .nsgm-menu > li > a {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        font-size: clamp(23px, 7vw, 34px) !important;
    }

    .nsgm-menu > li.nsgm-cta-item {
        margin-top: 18px !important;
    }
}


/* =========================================================
   NAILSPACE LUXURY OVERLAY — v2.4.0
   Smoked glass na hero, jasny panel po przewinięciu.
   ========================================================= */

html.nsgm-menu-open,
body.nsgm-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.nsgm-header {
    isolation: isolate;
    color: #fffaf6;
}

/* Pełnoszeroki, elegancki gradient — bez efektu osobnego boksu. */
.nsgm-header::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(24, 17, 21, .64) 0%,
            rgba(24, 17, 21, .42) 52%,
            rgba(24, 17, 21, .12) 84%,
            rgba(24, 17, 21, 0) 100%);
    content: "";
    pointer-events: none;
    transition: opacity 260ms ease, background-color 260ms ease;
}

.nsgm-header::after {
    position: absolute;
    z-index: 1;
    right: 3.5vw;
    bottom: 0;
    left: 3.5vw;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(235, 211, 196, .42) 18%,
        rgba(255, 250, 246, .22) 50%,
        rgba(235, 211, 196, .42) 82%,
        transparent);
    content: "";
    pointer-events: none;
    transition: opacity 220ms ease;
}

.nsgm-shell {
    z-index: 3;
}

/* Logo i menu na hero. */
.nsgm-brand,
.nsgm-brand-name,
.nsgm-brand-subtitle,
.nsgm-menu > li:not(.nsgm-cta-item) > a,
.nsgm-phone {
    color: #fffaf6 !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .30);
}

.nsgm-brand-name {
    font-weight: 500;
    letter-spacing: .145em;
}

.nsgm-brand-subtitle {
    color: rgba(255, 250, 246, .72) !important;
    font-weight: 600;
    letter-spacing: .19em;
}

/* Monogram w stylu biżuteryjnym. */
.nsgm-brand-mark {
    border: 1px solid rgba(241, 218, 202, .50);
    background:
        linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.05)),
        rgba(25, 18, 21, .28);
    color: #f4ddd0;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.26),
        0 10px 30px rgba(0,0,0,.16);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
}

.nsgm-menu > li:not(.nsgm-cta-item) > a {
    font-weight: 620;
    letter-spacing: .015em;
}

.nsgm-menu > li:not(.nsgm-cta-item) > a:hover,
.nsgm-menu > li:not(.nsgm-cta-item) > a:focus-visible {
    color: #ffffff !important;
    background: rgba(255,255,255,.11);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.nsgm-menu > li.current-menu-item:not(.nsgm-cta-item) > a::after,
.nsgm-menu > li.current-menu-ancestor:not(.nsgm-cta-item) > a::after,
.nsgm-menu > li.nsgm-active-section:not(.nsgm-cta-item) > a::after {
    height: 1px;
    background: #e8c7b4;
    box-shadow: 0 0 12px rgba(232,199,180,.48);
}

/* Telefon jako dyskretna, szklana ikona. */
.nsgm-phone {
    border-color: rgba(255,255,255,.24);
    background: rgba(28, 20, 24, .24);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 10px 28px rgba(0,0,0,.14);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    backdrop-filter: blur(14px) saturate(125%);
}

.nsgm-phone:hover,
.nsgm-phone:focus-visible {
    border-color: rgba(244,221,208,.60);
    background: rgba(255,255,255,.16);
    color: #ffffff !important;
}

/* Booksy: luksusowy przycisk zamiast ciężkiego czarnego prostokąta. */
.nsgm-menu > li.nsgm-cta-item > a {
    border: 1px solid rgba(244,221,208,.62);
    background:
        linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.07)),
        rgba(35, 24, 29, .34);
    color: #fffaf6 !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        0 14px 34px rgba(0,0,0,.18);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    letter-spacing: .025em;
}

.nsgm-menu > li.nsgm-cta-item > a::before {
    background: #e8c7b4;
    box-shadow: 0 0 0 4px rgba(232,199,180,.14), 0 0 14px rgba(232,199,180,.48);
}

.nsgm-menu > li.nsgm-cta-item > a:hover,
.nsgm-menu > li.nsgm-cta-item > a:focus-visible {
    border-color: rgba(255,240,231,.88);
    background:
        linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.11)),
        rgba(35, 24, 29, .42);
    color: #ffffff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        0 18px 42px rgba(0,0,0,.22);
}

/* Jasny, spokojny header po scrollu. */
.nsgm-header.is-scrolled {
    background: rgba(252, 249, 247, .92);
    border-bottom: 1px solid rgba(69, 50, 45, .08);
    box-shadow: 0 12px 38px rgba(53, 35, 31, .10);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
}

.nsgm-header.is-scrolled::before,
.nsgm-header.is-scrolled::after {
    opacity: 0;
}

.nsgm-header.is-scrolled .nsgm-brand,
.nsgm-header.is-scrolled .nsgm-brand-name,
.nsgm-header.is-scrolled .nsgm-menu > li:not(.nsgm-cta-item) > a,
.nsgm-header.is-scrolled .nsgm-phone {
    color: var(--nsgm-dark) !important;
    text-shadow: none;
}

.nsgm-header.is-scrolled .nsgm-brand-subtitle {
    color: var(--nsgm-muted) !important;
    text-shadow: none;
}

.nsgm-header.is-scrolled .nsgm-brand-mark {
    border-color: color-mix(in srgb, var(--nsgm-accent) 28%, transparent);
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--nsgm-accent) 15%, white),
        color-mix(in srgb, var(--nsgm-accent) 40%, white));
    color: color-mix(in srgb, var(--nsgm-accent) 78%, var(--nsgm-dark));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.nsgm-header.is-scrolled .nsgm-phone {
    border-color: var(--nsgm-line);
    background: rgba(255,255,255,.70);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.nsgm-header.is-scrolled .nsgm-menu > li.nsgm-cta-item > a {
    border-color: transparent;
    background: var(--nsgm-dark);
    color: #ffffff !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--nsgm-dark) 18%, transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* Hamburger na hero: szklany, ale wyraźny. */
@media (max-width: 1040px) {
    .nsgm-toggle {
        border: 1px solid rgba(244,221,208,.50);
        background: rgba(27, 19, 23, .34);
        color: #fffaf6;
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.14),
            0 12px 30px rgba(0,0,0,.17);
        -webkit-backdrop-filter: blur(14px) saturate(130%);
        backdrop-filter: blur(14px) saturate(130%);
    }

    /* Otwarty panel pozostaje jasny i bardzo czytelny. */
    .nsgm-navigation {
        min-height: calc(100vh - var(--nsgm-admin-offset));
        min-height: calc(100dvh - var(--nsgm-admin-offset));
        height: calc(100vh - var(--nsgm-admin-offset));
        height: calc(100dvh - var(--nsgm-admin-offset));
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        background:
            radial-gradient(circle at 86% 8%, rgba(201,135,132,.13), transparent 30%),
            linear-gradient(180deg, rgba(253,250,248,.995), rgba(248,243,240,.995));
    }

    body.nsgm-menu-open .nsgm-header::before {
        background: rgba(253,250,248,.995);
    }

    body.nsgm-menu-open .nsgm-header::after {
        opacity: 0;
    }

    body.nsgm-menu-open .nsgm-brand,
    body.nsgm-menu-open .nsgm-brand-name,
    body.nsgm-menu-open .nsgm-brand-subtitle {
        color: var(--nsgm-dark) !important;
        text-shadow: none;
    }

    body.nsgm-menu-open .nsgm-brand-subtitle {
        color: var(--nsgm-muted) !important;
    }

    body.nsgm-menu-open .nsgm-brand-mark {
        border-color: color-mix(in srgb, var(--nsgm-accent) 28%, transparent);
        background: linear-gradient(145deg,
            color-mix(in srgb, var(--nsgm-accent) 15%, white),
            color-mix(in srgb, var(--nsgm-accent) 40%, white));
        color: color-mix(in srgb, var(--nsgm-accent) 78%, var(--nsgm-dark));
        box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.nsgm-menu-open .nsgm-toggle,
    .nsgm-header.is-scrolled .nsgm-toggle {
        border-color: transparent;
        background: var(--nsgm-dark);
        color: #ffffff;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .nsgm-menu > li.nsgm-cta-item > a {
        border-color: transparent;
        background: var(--nsgm-dark);
        color: #fff !important;
        box-shadow: 0 12px 28px rgba(33,28,26,.18);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (max-width: 760px) {
    .nsgm-header::before {
        background: linear-gradient(180deg,
            rgba(24,17,21,.70) 0%,
            rgba(24,17,21,.46) 54%,
            rgba(24,17,21,.10) 100%);
    }

    .nsgm-header::after {
        right: 14px;
        left: 14px;
    }

    .nsgm-brand-name {
        letter-spacing: .125em;
    }
}
