:root {
    --nsg-header-h: 72px;
    --nsg-page-w: 1120px;
    --color-primary: #1abc9c;
    --color-secondary: #16a085;
    --color-accent: #e67e22;
    --color-bg: #ecfdf9;
    --color-ink: #1c2b27;
    --color-muted: #3d534c;
    --color-paper: #f7f4ea;
    --color-card: #fffef8;
    --color-line: #c9ddd4;
    --color-deep: #0c3b32;
    --color-btn: #0c5c4c;
    --space-lg: 24px;
}

[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
    max-width: 100%;
    overflow-x: clip;
    margin: 0;
}

html { scroll-padding-top: var(--nsg-header-h); }

body {
    padding-top: var(--nsg-header-h);
    background: var(--color-bg);
    color: var(--color-ink);
    font-family: "Mulish", "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

body.nsg-cookie-open { padding-bottom: 96px; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
    font-family: "Rubik", "Segoe UI", sans-serif;
    line-height: 1.2;
    margin: 0 0 0.6em;
    font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1em; }

a:not(.nsg-btn) { color: var(--color-btn); }

a:not(.nsg-btn):hover { color: var(--color-deep); }

.nsg-container {
    width: 100%;
    max-width: var(--nsg-page-w);
    margin: 0 auto;
    padding-inline: 20px;
}

.nsg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--nsg-header-h);
    height: var(--nsg-header-h);
    background: var(--color-paper);
    box-shadow: 0 1px 0 var(--color-line);
}

.nsg-header--row {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.nsg-header--logo { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }

.nsg-header--logo svg { width: 180px; height: auto; display: block; }

.nsg-header a:not(.nsg-btn),
.nsg-header a:not(.nsg-btn):visited { color: #14342c; text-decoration: none; }

.nsg-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.nsg-nav--link {
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
}

.nsg-nav--link__on { text-decoration: underline; text-underline-offset: 4px; }

.nsg-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    flex-shrink: 0;
    border: 1.5px solid var(--color-btn);
    border-radius: 4px;
    background: var(--color-card);
    color: var(--color-deep);
    cursor: pointer;
}

.nsg-burger span {
    display: block;
    flex: 0 0 2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.nsg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--color-btn);
    border-radius: 4px;
    background: #fffef8;
    color: var(--color-deep);
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

a.nsg-btn,
a.nsg-btn:visited,
button.nsg-btn {
    color: var(--color-deep);
    background: #fffef8;
    border-color: var(--color-btn);
}

a.nsg-btn:hover,
a.nsg-btn:focus-visible,
a.nsg-btn:active,
button.nsg-btn:hover,
button.nsg-btn:focus-visible,
button.nsg-btn:active {
    color: #f4fffb;
    background: var(--color-deep);
    border-color: var(--color-deep);
}

.nsg-header a.nsg-btn,
.nsg-header a.nsg-btn:visited {
    color: var(--color-deep);
    background: #fffef8;
}

.nsg-header a.nsg-btn:hover,
.nsg-header a.nsg-btn:focus-visible,
.nsg-header a.nsg-btn:active {
    color: #f4fffb;
    background: var(--color-deep);
    border-color: var(--color-deep);
}

.nsg-strip {
    background: #e7f6f1;
    border-bottom: 1px solid var(--color-line);
}

.nsg-strip p {
    margin: 0;
    padding-block: 8px;
    font-size: 0.92rem;
    color: var(--color-muted);
}

main {
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0) 31px,
        rgba(14, 92, 76, 0.07) 32px
    );
}

.nsg-section { padding-block: 2.2rem; }

.nsg-split { padding-inline: 20px; }

.nsg-split--stage,
.nsg-split--rail { min-width: 0; }

.nsg-split--card,
.nsg-card,
.nsg-tile,
.nsg-note,
.nsg-table--wrap,
.nsg-form,
.nsg-page--sheet {
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: 20px;
    padding: 1.25rem;
    min-width: 0;
}

.nsg-split--card { position: relative; }

.nsg-split--card::before,
.nsg-tile::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 22px;
    width: 54px;
    height: 16px;
    background: rgba(230, 126, 34, 0.35);
    transform: rotate(-3deg);
    border-radius: 2px;
}

.nsg-tile { position: relative; }

.nsg-split--fig {
    margin: 0 0 0.8rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed var(--color-line);
}

.nsg-split--fig b {
    display: block;
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-size: 1.35rem;
}

.nsg-split--icon {
    width: 48px;
    height: 48px;
    border-radius: 22%;
    object-fit: contain;
    background: #e7f3ef;
    margin-bottom: 0.8rem;
}

.nsg-hero--mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: center;
}

.nsg-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nsg-mosaic--cell {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px;
    background: #e7f3ef;
}

.nsg-mosaic--cell:nth-child(2n) { transform: translateY(16px); }

.nsg-mosaic--cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nsg-hero--actions,
.nsg-tile--actions,
.nsg-cta--actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nsg-mark {
    background: #fde7d0;
    padding: 0 0.2em;
    border-radius: 3px;
}

#consent-note,
#consent-note h2 {
    font-family: "Mulish", "Segoe UI", sans-serif;
    font-weight: 400;
}

#consent-note h2 {
    font-weight: 700;
}

#nsg-writes,
#nsg-writes h2 {
    font-family: "Mulish", "Segoe UI", sans-serif;
}

#nsg-writes h2 {
    font-weight: 700;
}

.nsg-note {
    font-size: 0.95rem;
    color: var(--color-muted);
    border-left: 3px solid var(--color-accent);
}

.nsg-kicker {
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
}

.nsg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.nsg-tile--still {
    aspect-ratio: 16 / 9;
    background: #e7f3ef;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.nsg-tile--still img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nsg-tile--icon {
    width: 72px;
    height: 72px;
    border-radius: 22%;
    object-fit: contain;
    background: #e7f3ef;
}

.nsg-tile h3 { margin-top: 0.6rem; }

.nsg-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.nsg-keys li {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1.5px solid var(--color-deep);
    border-bottom-width: 4px;
    border-radius: 8px;
    background: var(--color-card);
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-weight: 700;
}

.nsg-score {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--color-line);
}

.nsg-score b { font-variant-numeric: tabular-nums; }

.nsg-table--wrap { overflow-x: auto; padding: 0; }

.nsg-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.nsg-table th,
.nsg-table td {
    text-align: left;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--color-line);
    vertical-align: top;
}

.nsg-table th {
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-size: 0.85rem;
}

.nsg-arrow {
    width: 72px;
    height: 28px;
    display: block;
    margin: 0.4rem 0 0.8rem;
    color: var(--color-btn);
}

.nsg-crumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.92rem;
}

.nsg-crumb li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: var(--color-muted); }

.nsg-page { padding-block: 1.5rem 3rem; }

.nsg-page--sheet { margin-bottom: 1.25rem; }

.nsg-check { list-style: none; padding: 0; margin: 0 0 1rem; }

.nsg-check li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 0.7rem;
    min-width: 0;
}

.nsg-check svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 2px;
    color: var(--color-btn);
}

.nsg-series {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--color-line);
}

.nsg-series--move { display: flex; flex-wrap: wrap; gap: 12px 20px; }

.nsg-series ol { padding-left: 1.2rem; }

.nsg-qa details {
    border-bottom: 1px solid var(--color-line);
    padding: 0.7rem 0;
}

.nsg-qa summary {
    font-family: "Rubik", "Segoe UI", sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.nsg-form label { display: block; font-weight: 700; margin: 0.8rem 0 0.3rem; }

.nsg-form input,
.nsg-form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1.5px solid var(--color-btn);
    border-radius: 8px;
    background: #fff;
    color: var(--color-ink);
    font: inherit;
}

.nsg-form textarea { min-height: 140px; resize: vertical; }

.nsg-form--error { color: #8a2b12; font-weight: 700; }

.nsg-filter {
    width: 100%;
    max-width: 420px;
    min-height: 44px;
    margin: 0 0 1rem;
    padding: 0 12px;
    border: 1.5px solid var(--color-btn);
    border-radius: 8px;
    font: inherit;
}

.nsg-index { list-style: none; padding: 0; }

.nsg-index li { padding: 0.35rem 0; border-bottom: 1px solid var(--color-line); }

.nsg-footer { padding-block: 2rem 2.5rem; background: #e7f6f1; }

.nsg-footer--card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 20px;
    border: 1.5px solid var(--color-deep);
    border-radius: 20px;
    padding: 1.25rem;
    background: var(--color-card);
}

.nsg-footer--links { list-style: none; margin: 0; padding: 0; }

.nsg-footer--links a,
.nsg-footer--cookie {
    display: inline-block;
    padding: 6px 0;
    background: none;
    border: 0;
    color: var(--color-btn);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.nsg-footer--legal { margin-top: 1rem; font-size: 0.92rem; color: var(--color-muted); }

.nsg-footer--legal p { overflow-wrap: anywhere; }

.nsg-cookie { display: none; }

.nsg-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    bottom: 16px;
    left: 0;
    right: 0;
    width: fit-content;
    max-width: calc(100% - 32px);
    margin-inline: auto;
    transform: none;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: #14342c;
    color: #f4fffb;
}

.nsg-cookie p { margin: 0; font-size: 0.92rem; }

.nsg-cookie a,
.nsg-cookie a:visited { color: #f4fffb; }

.nsg-cookie .nsg-btn,
.nsg-cookie .nsg-btn:visited,
.nsg-cookie button.nsg-btn {
    color: #14342c;
    background: #f4efe4;
    border-color: transparent;
    border-radius: 999px;
    box-shadow: none;
    min-height: 44px;
}

.nsg-cookie .nsg-btn:hover,
.nsg-cookie .nsg-btn:focus-visible,
.nsg-cookie .nsg-btn:active,
.nsg-cookie button.nsg-btn:hover,
.nsg-cookie button.nsg-btn:focus-visible,
.nsg-cookie button.nsg-btn:active {
    color: #14342c;
    background: #ffffff;
    border-color: transparent;
}

.nsg-rise { animation: nsg-slide 0.4s ease; }

@keyframes nsg-slide {
    from { transform: translateX(16px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .nsg-rise { animation: none; }
}

@media (min-width: 1024px) {
    .nsg-split {
        display: grid;
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
        gap: 32px;
        align-items: stretch;
        max-width: 1180px;
        margin: 0 auto;
    }

    .nsg-split--card {
        position: sticky;
        top: calc(var(--nsg-header-h) + 16px);
    }

    .nsg-hero--fallback { display: none; }
}

@media (max-width: 1023px) {
    .nsg-split--rail { display: none; }
}

@media (max-width: 1100px) {
    :root { --nsg-header-h: 56px; }
}

@media (max-width: 980px) {
    .nsg-nav { display: none; }

    .nsg-header a.nsg-header--cta { display: none; }

    .nsg-header--logo svg { width: 120px; max-width: calc(100vw - 150px); }

    .nsg-burger { display: flex; order: 99; margin-left: auto; }

    .nsg-overlay {
        display: block;
        position: fixed;
        top: var(--nsg-header-h);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, visibility 0.25s;
    }

    .nsg-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-paper);
        overflow-y: auto;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .nsg-drawer a { display: block; padding: 14px 20px; color: #14342c; text-decoration: none; }

    .nsg-drawer a.nsg-btn {
        display: inline-flex;
        margin: 8px 20px 16px;
        color: var(--color-deep);
        background: #fffef8;
    }

    .nsg-drawer a.nsg-btn:hover {
        color: #f4fffb;
        background: var(--color-deep);
    }

    .nsg-drawer--close {
        position: absolute;
        top: 8px;
        right: 12px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: var(--color-deep);
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
    }

    .nsg-drawer--top {
        top: var(--nsg-header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--nsg-header-h));
        padding: 56px 0 16px;
        transform: translateY(-12px);
        opacity: 0;
    }

    body.nav-open { overflow-x: clip; }

    body.nav-open .nsg-overlay { opacity: 1; visibility: visible; }

    body.nav-open .nsg-drawer--top { transform: none; opacity: 1; visibility: visible; }
}

@media (min-width: 981px) {
    .nsg-burger,
    .nsg-overlay,
    .nsg-drawer { display: none !important; }
}

@media (max-width: 768px) {
    .nsg-container { padding-inline: 16px; }

    .nsg-split { padding-inline: 16px; }

    .nsg-hero--mosaic { grid-template-columns: minmax(0, 1fr); }

    .nsg-mosaic--cell:nth-child(2n) { transform: none; }

    .nsg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .nsg-footer--card { grid-template-columns: 1fr; }

    .nsg-section { padding-block: 1.6rem; }
}

@media (max-width: 520px) {
    .nsg-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        margin-inline: 0;
        border-radius: 18px;
    }

    .nsg-hero--actions { flex-direction: column; align-items: stretch; }

    .nsg-hero--actions .nsg-btn { white-space: normal; }
}

@media (max-width: 480px) {
    :root { --nsg-header-h: 52px; }

    .nsg-grid { grid-template-columns: 1fr; }
}
