/* ═══════════════════════════════════════════════════════════════════
 *  Hero w nowym wyglądzie na wszystkich landingach (motyw 1.22.0)
 *  Moduł: inc/hero-nowe.php. Wzór: hero /wizualizacje-inwestycji/.
 *
 *  Granat #070b14, krój strony (Outfit — 1.22.1, decyzja Bartosza: Urbanist
 *  tylko na stronie wizualizacji), etykieta wersalikami z kropką, ścieżka
 *  krojem mono, kwadratowe przyciski (biały + link podkreślony), fakty
 *  w „tabliczce” z cienkich linii. Tło i animacja
 *  każdej strony zostają (plazma, budynek cen, render makiety, okno API,
 *  karta kar…) — ten plik zmienia tekst, układ i wykończenie dookoła.
 *  Promienie 0 (jak na stronie wizualizacji), akcent morski tylko w kropce.
 * ═══════════════════════════════════════════════════════════════════ */

.nh {
    --nh-granat: #070b14;
    --nh-akcent: #00d4aa;
    --nh-display: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
    --nh-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --nh-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --nh-linia: rgba(255, 255, 255, .2);
    --nh-linia-2: rgba(255, 255, 255, .34);
    --nh-ease: cubic-bezier(0.23, 1, 0.32, 1);

    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
    min-height: max(680px, min(100svh, 1000px));
    background: var(--nh-granat); color: #fff;
}
/* Kontener w kolumnie flex: auto-marginesy zwężałyby go do treści */
.nh > :is(.ng-container, .sg-wrap, .container, .wwh__wnetrze, .m3dh__wnetrze) { width: 100%; }
.nh ::selection { background: rgba(0, 212, 170, .3); color: #fff; }

/* Cień jak na stronie wizualizacji: ciemniej po lewej (tekst) i na dole (fakty), animacja widoczna po prawej */
.nh .ng-hero__shade,
.nh .nh__cien {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(7, 11, 20, .66) 0%, rgba(7, 11, 20, 0) 28%, rgba(7, 11, 20, 0) 58%, rgba(7, 11, 20, .88) 100%),
        linear-gradient(90deg, rgba(7, 11, 20, .9) 0%, rgba(7, 11, 20, .62) 34%, rgba(7, 11, 20, .12) 64%, rgba(7, 11, 20, 0) 84%);
}

/* ── Tekst ── */
.nh .nh__tekst { position: relative; z-index: 3; min-width: 0; }
.nh .nh-okruchy {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 26px; padding: 0;
    font: 500 .6875rem/1.4 var(--nh-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .64);
}
/* Ścieżka jak opis rysunku: kończy ją cienka linia wygaszona w prawo */
.nh .nh-okruchy::after { content: ""; flex: 1 1 40px; max-width: 160px; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)); }
.nh .nh-okruchy a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: color 200ms ease, border-color 200ms ease; }
.nh .nh-okruchy [aria-current] { color: rgba(255, 255, 255, .86); }
@media (hover: hover) and (pointer: fine) { .nh .nh-okruchy a:hover { color: #fff; border-color: var(--nh-akcent); } }

.nh .nh-etykieta {
    display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 0; border: 0; background: none;
    font: 600 .75rem/1.45 var(--nh-display); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
}
.nh .nh-etykieta::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--nh-akcent); box-shadow: 0 0 0 0 rgba(0, 212, 170, .55); }
/* Kropka „na żywo”: miękki puls (dane na stronie są aktualne) — tylko bez „ogranicz ruch” */
@keyframes nhPuls { 0% { box-shadow: 0 0 0 0 rgba(0, 212, 170, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); } }
@media (prefers-reduced-motion: no-preference) { .nh .nh-etykieta::before { animation: nhPuls 2.6s cubic-bezier(0.23, 1, 0.32, 1) 1.2s infinite; } }
/* Etykieta ze znakiem systemu (Joomla, Drupal) zamiast kropki */
.nh .nh-etykieta--znak::before { display: none; }
.nh .nh-etykieta__znak { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; background: #fff; }
.nh .nh-etykieta__znak svg { width: 14px; height: 14px; }

.nh .nh__tytul {
    max-width: 17ch; margin: 0 0 26px; padding: 0; color: #fff;
    font-family: var(--nh-display); font-weight: 500; font-size: clamp(2.4rem, 1.2rem + 3.5vw, 4.4rem);
    line-height: 1.04; letter-spacing: -.035em; text-wrap: balance;
    background: none; -webkit-text-fill-color: currentColor;
}
.nh .nh__tytul > span { font-weight: 300; color: rgba(255, 255, 255, .7); background: none; -webkit-text-fill-color: currentColor; }
/* Jaśniejsza część tytułu gaśnie lekko w prawo (każdy wiersz osobno) */
.nh .nh__tytul > span:not(.dmo-hero__line) {
    background: linear-gradient(90deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .52) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.nh .nh__tytul > .nh__druga { display: block; }
/* Demo: wiersze tytułu z animacją odsłaniania (page-demo.css) zostają; drugi wiersz jaśniejszy zamiast akcentu */
.nh .nh__tytul > .dmo-hero__line { font-weight: 500; color: #fff; }
.nh .nh__tytul > .dmo-hero__line--accent { font-weight: 300; color: rgba(255, 255, 255, .7); }
.nh .nh__tekst > .nh__tytul:has(.dmo-hero__line) { animation: none; }
/* Krótszy tytuł obok wizualizacji (dla agencji, demo z przewodnikiem) */
.nh .nh__tytul--sredni { font-size: clamp(2.2rem, 1.15rem + 2.6vw, 3.6rem); line-height: 1.06; }
/* Długie tytuły z frazą SEO (główna, Joomla, Drupal, kary, automatyzacja) */
.nh .nh__tytul--dlugi { max-width: 22ch; font-size: clamp(1.95rem, 1.05rem + 2.1vw, 3.05rem); line-height: 1.08; letter-spacing: -.03em; }

.nh .nh__lead {
    max-width: 52ch; margin: 0 0 34px; padding: 0;
    font: 400 clamp(1rem, .95rem + .25vw, 1.15rem)/1.68 var(--nh-body); color: rgba(255, 255, 255, .8);
}
.nh .nh__lead strong { font-weight: 600; color: #fff; }
.nh .nh__lead a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }
.nh .nh__przypis { max-width: 52ch; margin: 20px 0 0; font: 400 .8125rem/1.55 var(--nh-body); color: rgba(255, 255, 255, .56); }

.nh .nh__akcje { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin: 0; }

/* ── Przyciski: kwadratowe, biały na granacie + link podkreślony ── */
.nh .nh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 26px;
    border: 1px solid #fff; border-radius: 0; background: #fff; color: var(--nh-granat); box-shadow: none;
    font: 600 .9375rem/1.2 var(--nh-body); letter-spacing: .01em; text-align: center; text-decoration: none; white-space: nowrap;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--nh-ease);
}
.nh .nh-btn::after { content: "→"; transition: transform 200ms var(--nh-ease); }
.nh .nh-btn--dol::after { content: "↓"; }
.nh .nh-btn--obrys { background: transparent; border-color: var(--nh-linia-2); color: #fff; }
.nh .nh-btn--obrys::after { content: none; }
.nh .nh-btn:active { transform: translateY(1px); }
.nh .nh-link {
    display: inline-flex; align-items: center; gap: 8px; padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
    background: none; color: #fff; font: 600 .9375rem/1.3 var(--nh-body); text-decoration: none;
    transition: border-color 200ms ease, color 200ms ease;
}
.nh .nh-link::after { content: "→"; transition: transform 200ms var(--nh-ease); }
@media (hover: hover) and (pointer: fine) {
    .nh .nh-btn:hover { background: #e6ebf1; border-color: #e6ebf1; color: var(--nh-granat); transform: none; box-shadow: none; }
    .nh .nh-btn:hover::after, .nh .nh-link:hover::after { transform: translateX(4px); }
    .nh .nh-btn--dol:hover::after { transform: translateY(3px); }
    .nh .nh-btn--obrys:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }
    .nh .nh-link:hover { border-color: var(--nh-akcent); color: #fff; }
}
.nh :is(.nh-btn, .nh-link, .nh-okruchy a):focus-visible { outline: 2px solid var(--nh-akcent); outline-offset: 3px; }

/* ── Fakty w tabliczce (jak opis rysunku na stronie wizualizacji) ── */
.nh .nh-fakty {
    display: grid; grid-template-columns: repeat(var(--nh-n, 3), minmax(0, 1fr)); max-width: 620px; margin: 46px 0 0; padding: 0; list-style: none;
    position: relative; border: 1px solid var(--nh-linia-2); background: rgba(7, 11, 20, .4);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
/* Linia akcentu nad tabliczką — rysuje się raz, po wejściu tekstu */
.nh .nh-fakty::before {
    content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
    background: linear-gradient(90deg, var(--nh-akcent) 0%, rgba(0, 212, 170, .35) 55%, rgba(0, 212, 170, 0) 100%);
    transform-origin: 0 50%;
}
@keyframes nhLinia { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) { .nh .nh-fakty::before { animation: nhLinia 1100ms cubic-bezier(0.77, 0, 0.175, 1) 450ms both; } }
.nh .nh-fakty--4 { --nh-n: 4; }
.nh .nh-fakty > li { min-width: 0; margin: 0; padding: 14px 16px 16px; }
.nh .nh-fakty > li + li { border-left: 1px solid var(--nh-linia); }
.nh .nh-fakty b {
    display: block; margin: 0 0 8px; white-space: nowrap; color: #fff;
    font: 300 clamp(1.65rem, 1.25rem + 1vw, 2.15rem)/1 var(--nh-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
/* Cztery fakty: wielkość liczb od szerokości tabliczki (kolumna tekstu bywa wąska, np. na stronie WWW) */
.nh .nh-fakty--4 { container-type: inline-size; }
.nh .nh-fakty--4 > li { padding-inline: 12px; }
.nh .nh-fakty--4 b { font-size: clamp(1rem, 3.3cqi, 1.35rem); letter-spacing: -.02em; white-space: normal; text-wrap: balance; }
.nh .nh-fakty > li > span { display: block; font: 500 .625rem/1.5 var(--nh-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }

/* ── Dymki przy animacjach: kwadratowe, krój mono, jak tabliczka ── */
.nh .ng-drift span {
    gap: 8px; padding: 8px 12px; border: 1px solid var(--nh-linia-2); border-radius: 0;
    background: rgba(7, 11, 20, .6); box-shadow: none;
    font: 500 .625rem/1.3 var(--nh-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .86);
}
.nh .ng-drift span i { width: 5px; height: 5px; box-shadow: none; background: var(--nh-akcent); }

/* Budynek cen: kwadratowe narożniki jak w reszcie nowego wyglądu (kropki statusów zostają okrągłe) */
.nh :is(.sg-bld, .sg-bld__tag, .sg-bld__roof, .sg-bld__ground, .sg-unit, .sg-bld__tip, .sg-report, .sg-report__icon, .sg-report__checks li) { border-radius: 0; }

/* Joomla, Drupal: znak systemu i DeweloperCeny nad budynkiem — też bez zaokrągleń */
.nh :is(.jm-lockup, .jm-lockup__svg) { border-radius: 0; }

/* ── Wejście tekstu: krótka kaskada przy pierwszym wyświetleniu (tytuł bez zmiany krycia — LCP) ── */
@keyframes nhWejscie { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes nhWejscieTytul { from { transform: translate3d(0, 18px, 0); } to { transform: none; } }
.nh .nh__tekst > * { animation: nhWejscie 800ms var(--nh-ease) both; }
.nh .nh__tekst > .nh__tytul { animation-name: nhWejscieTytul; }
.nh .nh__tekst > :nth-child(2) { animation-delay: 60ms; }
.nh .nh__tekst > :nth-child(3) { animation-delay: 120ms; }
.nh .nh__tekst > :nth-child(4) { animation-delay: 180ms; }
.nh .nh__tekst > :nth-child(5) { animation-delay: 240ms; }
.nh .nh__tekst > :nth-child(n+6) { animation-delay: 300ms; }

/* ═══════════════ Układ dla stron ═══════════════ */

/* Główna, Joomla, Drupal: tekst i budynek cen wyrównane do dołu */
.nh.ng-hero { padding: calc(var(--sg-top-h, 72px) + 56px) 0 clamp(56px, 8vh, 96px); }
.nh.ng-hero .ng-container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.nh .ng-hero__plasma { opacity: .5; }
.nh .ng-hero__grid { opacity: .7; }

/* Demo: zorza w tle zostaje, przewodnik „Co sprawdzisz” jako tabliczka (karta lokalu i brak danych: niższe hero) */
.nh.dmo-hero { padding: calc(var(--sg-top-h, 72px) + 56px) 0 clamp(56px, 8vh, 96px); }
.nh.nh--krotkie { min-height: clamp(460px, 64svh, 660px); }
.nh .dmo-hero__grid { align-items: end; }
.nh .dmo-tour { border-radius: 0; border-color: var(--nh-linia-2); background: rgba(7, 11, 20, .55); box-shadow: none; }
.nh .dmo-tour__title { font: 600 .75rem/1.45 var(--nh-display); letter-spacing: .18em; color: rgba(255, 255, 255, .8); }
.nh :is(.dmo-tour__list a, .dmo-tour__nr) { border-radius: 0; }
.nh .dmo-tour__nr { background: transparent; border: 1px solid var(--nh-linia-2); color: #fff; font-size: .8125rem; }
.nh .dmo-tour__stats dd { font-family: var(--nh-display); font-weight: 300; font-size: clamp(1.45rem, 1.15rem + .8vw, 1.9rem); letter-spacing: -.03em; }
.nh .dmo-tour__stats dt { font: 500 .625rem/1.5 var(--nh-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }

/* Strony WWW: okno przeglądarki i telefon bez zmian (page-strony-www.css), tekst i scena przy dolnej krawędzi */
.nh .wwh__wnetrze { align-items: end; }
@media (min-width: 641px) { .nh .wwh__wnetrze { padding-top: calc(var(--sg-top-h, 68px) + 56px); padding-bottom: clamp(56px, 8vh, 96px); } }
.nh .wwh__tekst { max-width: 600px; }

/* Makieta 3D: render z pinezkami i kartą bez zmian (scena liczona w cq), tekst przy dolnej krawędzi */
@media (min-width: 900px) {
    .nh.m3dh { display: block; }
    .nh .m3dh__wnetrze { align-items: flex-end; padding-bottom: clamp(56px, 9vh, 96px); }
    .nh .m3dh__tekst { max-width: 620px; }
}
@media (min-width: 900px) and (max-width: 1199.98px) { .nh .m3dh__tekst { max-width: 500px; } }

/* Starsze podstrony (dla agencji, kary UOKiK, automatyzacja): własne menu z main.css nad hero,
   cząsteczki, siatka i wizualizacje po prawej zostają */
.nh:is(.ag-hero, .hero-alarm, .hero-info) { padding: 148px 0 clamp(56px, 8vh, 96px); }
.nh .ag-hero__grid, .nh:is(.hero-alarm, .hero-info) > .container { align-items: end; }
.nh :is(.hero-alarm__text, .hero-info__text) { max-width: 640px; }
.nh .nh-etykieta--alarm::before { background: #ff6b6b; }
@media (max-width: 768px) { .nh:is(.ag-hero, .hero-alarm, .hero-info) { padding-top: 112px; } }

/* ═══════════════ Tło z wizualizacją we mgle (od 1.23.0) ═══════════════
   Główna, strony WWW, dla agencji, Joomla, Drupal: dcp_nh_mgla() w inc/hero-nowe.php.
   Warstwy: obraz w pudełku „cover” z prawej (scena w cq) → żywa mgła z plazmy (blend „screen”)
   → barwa morska (blend „color”, latarka pod kursorem z hero-nowe.js) → rozmycie pod tekstem
   → granatowy cień → zasłona wejścia. Treść hero leży nad nimi; po prawej jedna duża animacja. */
.nh--mgla { --mx: 66%; --my: 42%; }
.nh--mgla > :not(.nh-mgla) { position: relative; z-index: 1; }
.nh--mgla.ag-hero::after { display: none; }
.nh-mgla { position: absolute; inset: 0; z-index: 0; overflow: hidden; container-type: size; pointer-events: none; }
.nh-mgla__scena { position: absolute; top: 50%; right: 0; width: max(112cqw, 177.78cqh); aspect-ratio: 16 / 9; translate: 0 -50%; }
.nh-mgla__obraz { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(.9) contrast(1.04) brightness(.88); }
.nh .nh-mgla__plazma { position: absolute; inset: 0; z-index: auto; width: 100%; height: 100%; opacity: .34; mix-blend-mode: screen; }
.nh .nh-mgla__plazma.is-fallback { opacity: .18; filter: blur(50px); }
.nh-mgla__barwa {
    position: absolute; inset: 0; background: #0b4a43; mix-blend-mode: color; opacity: .55;
    -webkit-mask-image: radial-gradient(circle 300px at var(--mx) var(--my), rgba(0, 0, 0, .35) 0%, #000 78%);
            mask-image: radial-gradient(circle 300px at var(--mx) var(--my), rgba(0, 0, 0, .35) 0%, #000 78%);
}
.nh-mgla__rozmycie {
    position: absolute; inset: 0;
    -webkit-backdrop-filter: blur(14px) saturate(.75); backdrop-filter: blur(14px) saturate(.75);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 60%);
            mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 60%);
}
.nh-mgla__cien {
    position: absolute; inset: 0;
    background:
        radial-gradient(55% 60% at 74% 38%, rgba(0, 212, 170, .10), rgba(0, 212, 170, 0) 70%),
        linear-gradient(180deg, rgba(7, 11, 20, .72) 0%, rgba(7, 11, 20, 0) 22%, rgba(7, 11, 20, 0) 58%, rgba(7, 11, 20, .92) 100%),
        linear-gradient(90deg, rgba(7, 11, 20, .93) 0%, rgba(7, 11, 20, .8) 28%, rgba(7, 11, 20, .4) 50%, rgba(7, 11, 20, .16) 68%, rgba(7, 11, 20, .3) 100%);
}
.nh-mgla__zaslona { position: absolute; inset: 0; background: #070b14; opacity: 0; }
@keyframes nhZaslona { from { opacity: .92; } to { opacity: 0; } }
@keyframes nhObraz { from { transform: scale(1.07); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .nh-mgla__zaslona { animation: nhZaslona 1800ms cubic-bezier(0.77, 0, 0.175, 1) both; }
    .nh-mgla__obraz { animation: nhObraz 2600ms var(--nh-ease) both; }
}

/* Jedna duża animacja po prawej jako szklany panel nad wizualizacją */
.nh--mgla .sg-bld {
    background: rgba(7, 11, 20, .64); border-color: rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85);
}
.nh--mgla .jm-lockup { background: rgba(7, 11, 20, .7); border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.nh--mgla .api-mock { border-radius: 0; background: rgba(10, 14, 24, .8); border-color: rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* Podpis tła pod animacją (w siatce hero, ostatnia kolumna) */
.nh .nh-podpis {
    grid-column: -2 / -1; justify-self: end; margin: 14px 0 0;
    font: 500 .625rem/1.4 var(--nh-mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.nh .nh-podpis a { color: rgba(255, 255, 255, .78); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
@media (hover: hover) and (pointer: fine) { .nh .nh-podpis a:hover { color: #fff; border-color: var(--nh-akcent); } }

/* Konkrety pod przyciskami (zamiast kafli z liczbami) i jedna aktualność z linkiem */
.nh .nh-dowody { max-width: 600px; margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--nh-linia); }
.nh .nh-dowody__lista { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; }
.nh .nh-dowody__lista li { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 .9063rem/1.4 var(--nh-body); color: rgba(255, 255, 255, .72); }
.nh .nh-dowody__lista .sg-ico { flex: none; font-size: 19px; color: var(--nh-akcent); }
.nh .nh-dowody__lista b { font-weight: 600; color: #fff; }
.nh .nh-dowody__wiadomosc {
    display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 14px;
    border: 1px solid var(--nh-linia-2); background: rgba(7, 11, 20, .42); color: #fff; text-decoration: none;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: border-color 200ms ease, background-color 200ms ease;
}
.nh .nh-dowody__znacznik { flex: none; padding: 4px 8px; border: 1px solid rgba(0, 212, 170, .5); font: 500 .6875rem/1.2 var(--nh-mono); letter-spacing: .06em; color: var(--nh-akcent); white-space: nowrap; }
.nh .nh-dowody__tekst { flex: 1 1 auto; min-width: 0; font: 500 .875rem/1.45 var(--nh-body); color: rgba(255, 255, 255, .86); }
.nh .nh-dowody__tekst em { margin-left: 6px; font: 500 .75rem/1.45 var(--nh-mono); font-style: normal; color: var(--nh-akcent); white-space: nowrap; }
.nh .nh-dowody__wiadomosc > .sg-ico { flex: none; font-size: 16px; color: rgba(255, 255, 255, .7); transition: transform 200ms var(--nh-ease), color 200ms ease; }
.nh .nh-dowody__wiadomosc:focus-visible { outline: 2px solid var(--nh-akcent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
    .nh .nh-dowody__wiadomosc:hover { border-color: rgba(0, 212, 170, .7); background: rgba(7, 11, 20, .6); }
    .nh .nh-dowody__wiadomosc:hover > .sg-ico { transform: translateX(4px); color: var(--nh-akcent); }
}

/* Hero z tłem ma się mieścić na ekranie laptopa: mniej powietrza nad treścią, a na niskich
   ekranach nieco mniejsze tytuły i lead (treść i animacja zostają bez zmian) */
@media (min-width: 1025px) {
    .nh--mgla.ng-hero, .nh--mgla.ag-hero { padding-top: calc(var(--sg-top-h, 72px) + 36px); padding-bottom: clamp(40px, 6vh, 72px); }
    .nh--mgla.ag-hero { padding-top: 128px; }
    .nh--mgla .wwh__wnetrze { padding-top: calc(var(--sg-top-h, 68px) + 36px); padding-bottom: clamp(40px, 6vh, 72px); }
    .nh--mgla .nh__lead { margin-bottom: 28px; }
}
@media (min-width: 1025px) and (max-height: 960px) {
    .nh--mgla .nh-okruchy { margin-bottom: 18px; }
    .nh--mgla .nh-etykieta { margin-bottom: 16px; }
    .nh--mgla .nh__tytul { font-size: clamp(2.2rem, 1.1rem + 2.4vw, 3.4rem); margin-bottom: 20px; }
    .nh--mgla .nh__tytul--sredni { font-size: clamp(2.1rem, 1.1rem + 2.1vw, 3.1rem); }
    .nh--mgla .nh__tytul--dlugi { font-size: clamp(1.9rem, 1rem + 1.8vw, 2.75rem); }
    .nh--mgla .nh__lead { font-size: 1rem; line-height: 1.62; margin-bottom: 24px; }
    .nh--mgla .nh-dowody { margin-top: 24px; padding-top: 16px; }
}

/* Tablet i telefon: mgła jako pas za tekstem (budynek na środku kadru), dalej jednolity granat */
@media (max-width: 1100px) {
    .nh .nh-podpis { justify-self: start; }
}
@media (max-width: 1023.98px) {
    .nh-mgla { bottom: auto; height: min(100%, 880px); }
    .nh-mgla__scena { right: auto; left: 50%; translate: -50% -50%; width: max(100cqw, 177.78cqh); }
    .nh-mgla__rozmycie { display: none; }
    .nh-mgla__barwa { opacity: .45; -webkit-mask-image: none; mask-image: none; }
    .nh-mgla__cien { background: linear-gradient(180deg, rgba(7, 11, 20, .8) 0%, rgba(7, 11, 20, .66) 45%, rgba(7, 11, 20, .9) 80%, #070b14 100%); }
}
@media (max-width: 640px) {
    .nh .nh-dowody { margin-top: 34px; }
    .nh .nh-dowody__lista { flex-direction: column; gap: 10px; }
    .nh .nh-dowody__wiadomosc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .nh .nh-dowody__znacznik { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-transparency: reduce) {
    .nh .nh-dowody__wiadomosc { background: #0d121e; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ═══════════════ Telefon i tablet ═══════════════ */
@media (max-width: 1024px) {
    .nh { min-height: 0; }
    .nh.ng-hero .ng-container { grid-template-columns: minmax(0, 1fr); gap: 72px; }
    .nh .ng-hero__shade, .nh .nh__cien { background: linear-gradient(180deg, rgba(7, 11, 20, .82) 0%, rgba(7, 11, 20, .5) 50%, rgba(7, 11, 20, .86) 100%); }
}
@media (max-width: 640px) {
    .nh .nh__tytul { font-size: clamp(2.15rem, 1.4rem + 4.6vw, 2.9rem); }
    .nh .nh__tytul--dlugi { font-size: clamp(1.85rem, 1.25rem + 3.6vw, 2.4rem); }
    .nh .nh-okruchy { margin-bottom: 20px; }
    .nh .nh__akcje { gap: 14px 24px; }
    .nh .nh__akcje .nh-btn { width: 100%; }
    .nh .nh-fakty, .nh .nh-fakty--4 { --nh-n: 2; margin-top: 36px; }
    .nh .nh-fakty > li:nth-child(n+3) { border-top: 1px solid var(--nh-linia); }
    .nh .nh-fakty > li:nth-child(odd) { border-left: 0; }
    .nh .nh-fakty > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .nh .nh__tekst > * { animation: none; }
}
