/* =====================================================
   Marketing Heros — Hero (fullscreen, scroll-driven)
   Kolory wiodące: #006e75 (teal), #d1d0b6 (beż), #000, #fff
   ===================================================== */
:root {
  --teal: #006e75;
  --teal-dark: #024d52;
  --sand: #d1d0b6;
  --sand-soft: #ecebdd;
  --black: #0a0a0a;
  --white: #ffffff;
  --font-display: "Bricolage Grotesque", "Arial Black", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topbar-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  /* wspólny kontener: logo w topbarze i teksty hero trzymają tę samą krawędź.
     Margines boczny = 5% szerokości ekranu, bez ograniczenia szerokości treści. */
  --container: 100%;
  --gutter: 5%;
  /* sterowane z JS */
  --p: 0;            /* postęp przewijania 0..1 */
  --dark: 0;         /* 0 = jasne tło (zdjęcie), 1 = ciemne tło (plakat) */
  --ink: #0a0a0a;    /* aktualny kolor tekstu */
  --ink-muted: rgba(10,10,10,.72);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--black); background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, canvas { display: block; max-width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar-h);
  color: var(--black); transition: color .3s;
}
body.is-dark .topbar { color: #ffffff; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; width: 100%;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
}
.topbar__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.topbar__mark {
  display: grid; place-items: center; width: 38px; height: 38px; background: var(--black); color: var(--sand);
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}
.topbar__name { font-size: 18px; }
.topbar__name strong { color: var(--teal); transition: color .3s; }
body.is-dark .topbar__name strong { color: var(--sand); }
body.is-dark .topbar__cta { background: var(--sand); color: var(--black); }
.topbar__nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-weight: 500; font-size: 15px; }
.topbar__nav a { opacity: .85; transition: opacity .2s; }
.topbar__nav a:hover { opacity: 1; }
.topbar__cta { opacity: 1 !important; padding: 10px 18px; border-radius: 999px; background: var(--black); color: var(--white); }
@media (max-width: 720px) { .topbar__nav a:not(.topbar__cta) { display: none; } }

/* Menu na telefonie */
.topbar__menu { display: none; appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: 14px;
  padding: 10px 12px; margin-right: -12px; cursor: pointer; align-items: center; gap: 8px; }
.topbar__menu i { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; transition: background .2s; }
.topbar__menu i::before, .topbar__menu i::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .25s var(--ease-out); }
.topbar__menu i::before { top: -6px; } .topbar__menu i::after { top: 6px; }
.topbar__menu[aria-expanded="true"] i { background: transparent; }
.topbar__menu[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.topbar__menu[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.topbar__menu:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.mnav { position: fixed; z-index: 49; inset: var(--topbar-h) 0 auto 0; background: #0b1210; color: #fff; padding: 8px var(--gutter) 22px;
  box-shadow: 0 24px 40px -16px rgba(0,0,0,.45); }
.mnav a { display: block; padding: 13px 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; border-bottom: 1px solid rgba(255,255,255,.1); }
.mnav a.mnav__cta { margin-top: 16px; border: 0; text-align: center; padding: 15px; border-radius: 999px; background: var(--sand); color: var(--black); font-family: var(--font-body); font-size: 16px; }
@media (max-width: 720px) {
  .topbar__menu { display: inline-flex; }
  .topbar__cta { white-space: nowrap; padding: 9px 14px; font-size: 14px; }
  .topbar__nav { gap: 6px; }
}
@media (max-width: 420px) {
  .topbar__menu { padding: 10px; margin-right: -10px; }
  .topbar__menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar__name { font-size: 16px; }
}
@media (min-width: 721px) { .mnav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100vh + 380vh); background: var(--white); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Tło */
.hero__bg { position: absolute; inset: 0; background: #ededea; }
.hero__poster, .hero__poster img, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img { object-fit: cover; object-position: 60% 50%; }
.hero__poster { z-index: 1; transition: opacity .4s; }
.hero__canvas { z-index: 2; }
.hero.is-ready .hero__poster { opacity: 0; }

/* Delikatne przyciemnienie/rozjaśnienie pod tekstem: jasna wersja na zdjęciu, ciemna na plakacie */
.hero__scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero__scrim::before, .hero__scrim::after { content: ""; position: absolute; inset: 0; transition: opacity .2s linear; }
.hero__scrim::before {
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.25) 38%, rgba(255,255,255,0) 60%);
  opacity: calc(1 - var(--dark));
}
.hero__scrim::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 34%, rgba(0,0,0,0) 62%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%);
  opacity: var(--dark);
}

/* Warstwa tekstu */
.hero__stage {
  position: absolute; inset: 0; z-index: 4;
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: center;
  padding: calc(var(--topbar-h) + 8px) var(--gutter) 64px;
  max-width: var(--container); width: 100%; margin: 0 auto; color: var(--ink);
}
.hero__copy { position: relative; min-height: 420px; }
.chapter {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translate3d(0, 28px, 0); pointer-events: none;
  transition: opacity .45s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.chapter.is-on { opacity: 1; transform: translate3d(0, 0, 0); pointer-events: auto; }
.chapter.is-past { transform: translate3d(0, -28px, 0); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
  transition: color .3s;
}
.hero.is-dark .eyebrow { color: var(--sand); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(0,110,117,.15); }

.title { margin: 0 0 20px; font-family: var(--font-display); line-height: .94; letter-spacing: -.02em; color: var(--ink); }
.title__big { display: block; font-size: clamp(40px, 5.6vw, 92px); font-weight: 800; text-transform: uppercase; }
.chapter--intro .title__big { font-size: clamp(52px, 6.6vw, 108px); }
.title__small { display: block; margin-top: 12px; font-size: clamp(20px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.01em; }
.lead { margin: 0 0 28px; max-width: 520px; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: var(--ink-muted); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s, color .25s;
}
.btn--primary { background: var(--teal); color: var(--white); box-shadow: 0 12px 30px -10px rgba(0,110,117,.5); }
.btn--primary:hover { transform: translateY(-2px); background: var(--teal-dark); }
.hero.is-dark .btn--primary { background: var(--sand); color: var(--black); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { transform: translateY(-2px); }

/* Loader, podpowiedź, progres */
.hero__loader { position: absolute; left: 0; right: 0; top: 0; z-index: 6; height: 3px; background: transparent; transition: opacity .4s; }
.hero__loader span { display: block; height: 100%; width: var(--loaded, 0%); background: var(--teal); transition: width .2s linear; }
.hero.is-loaded .hero__loader { opacity: 0; }

.hero__scrollhint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
  opacity: calc(1 - var(--p) * 8); transition: opacity .2s;
}
.hero__scrollhint-line { width: 28px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.hero__scrollhint-line::after { content: ""; position: absolute; inset: 0; background: var(--teal); animation: hint 1.6s infinite; }
@keyframes hint { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,0,0,.08); z-index: 5; }
.hero__progress i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--teal); }
.hero.is-dark .hero__progress i { background: var(--sand); }

/* ---------- Mobile / tablet ---------- */
@media (max-width: 900px) {
  .hero__poster img { object-position: 50% 55%; }
  .hero__scrim::before { background: linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.3) 40%, rgba(255,255,255,0) 58%); }
  .hero__scrim::after {
    background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.5) 36%, rgba(0,0,0,0) 58%);
  }
  .hero__stage {
    grid-template-columns: minmax(0, 1fr); align-items: start;
    padding: calc(var(--topbar-h) + 6px) var(--gutter) 40px;
  }
  .hero__copy { min-height: 46svh; }
  .chapter { justify-content: flex-start; }
  .eyebrow { margin-bottom: 12px; font-size: 11px; }
  .eyebrow__extra { display: none; }
  .title { margin-bottom: 12px; }
  .title__big, .chapter--intro .title__big { font-size: clamp(36px, 10.5vw, 56px); }
  .title__small { font-size: clamp(17px, 4.6vw, 22px); margin-top: 8px; }
  .lead { font-size: 15px; margin-bottom: 18px; max-width: none; }
  .btn { padding: 13px 18px; font-size: 14px; }
  .hero__scrollhint { bottom: 12px; font-size: 10px; }
}
@media (max-height: 560px) and (min-width: 901px) { .lead { display: none; } .hero__copy { min-height: 320px; } }

/* płótno widać dopiero, gdy jest narysowane zdjęcie albo klatka (wcześniej widać zdjęcie w <picture>) */
.hero__canvas { opacity: 0; transition: opacity .3s; }
.hero.is-ready .hero__canvas { opacity: 1; }

/* Bez animacji (ustawienie systemu „ogranicz ruch”): zdjęcie zespołu, a pod nim cała historia jako tekst */
.hero.is-static { height: auto; }
.hero.is-static .hero__sticky { position: relative; height: auto; overflow: visible; background: #0b1210; }
.hero.is-static .hero__bg { bottom: auto; height: 100vh; height: 100svh; }
.hero.is-static .hero__canvas { display: none; }
.hero.is-static .hero__poster { opacity: 1; }
.hero.is-static .hero__stage { position: relative; display: block; padding-bottom: 72px; }
.hero.is-static .hero__copy { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; }
.hero.is-static .chapter { min-width: 0; }
body.is-static-hero .topbar { background: rgba(245, 244, 238, .94); }
body.is-static-hero.is-dark .topbar { background: rgba(11, 18, 16, .94); }
.hero.is-static .chapter { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; transition: none; }
.hero.is-static .chapter--intro { min-height: calc(100svh - var(--topbar-h) - 72px); justify-content: center; }
.hero.is-static .chapter:not(.chapter--intro) { --ink: #ffffff; --ink-muted: rgba(255,255,255,.78); color: var(--ink); max-width: 760px; }
.hero.is-static .chapter:not(.chapter--intro) .eyebrow { color: var(--sand); }
@media (prefers-reduced-motion: reduce) {
  .hero__scrollhint, .hero__progress, .hero__loader { display: none; }
}

/* ---------- Placeholder następnej sekcji ---------- */
.next { background: var(--black); color: var(--white); padding: 120px 24px; }
.next__inner { max-width: 760px; margin: 0 auto; }
.next__eyebrow { color: var(--sand); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.next h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.5vw, 56px); letter-spacing: -.02em; line-height: 1.02; margin: 12px 0 18px; }
.next p { color: rgba(255,255,255,.7); line-height: 1.6; font-size: 17px; }

/* ---------- Film 2: rozdziały-problemy ---------- */
.chapter--problem .title__big { font-size: clamp(34px, 4.6vw, 76px); text-transform: none; letter-spacing: -.025em; line-height: 1.0; max-width: 14ch; }
.chapter--reveal .title__big { font-size: clamp(38px, 5vw, 84px); text-transform: none; letter-spacing: -.025em; max-width: 14ch; }
@media (max-width: 900px) {
  .chapter--problem .title__big, .chapter--reveal .title__big { font-size: clamp(28px, 8.4vw, 44px); max-width: none; }
}

/* =====================================================
   Sekcje 3 i 4: pełnoekranowe panele z grafiką bohatera po prawej
   ===================================================== */
.panel {
  --ink: #ffffff; --ink-muted: rgba(255,255,255,.78);
  position: relative; min-height: 100vh; min-height: 100svh;
  background: #0b1210; color: var(--ink); overflow: hidden;
  display: flex; align-items: center;
}
.panel__art { position: absolute; inset: 0; z-index: 0; }
.panel__art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  transform: scale(1.06); transition: transform 1.6s var(--ease-out);
}
.panel.is-in .panel__art img { transform: scale(1); }
.panel__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,12,11,.94) 0%, rgba(6,12,11,.82) 34%, rgba(6,12,11,.35) 56%, rgba(6,12,11,0) 72%),
    linear-gradient(180deg, rgba(6,12,11,.55) 0%, rgba(6,12,11,0) 26%);
}
.panel__inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto;
  padding: calc(var(--topbar-h) + 40px) var(--gutter) 72px;
}
.panel__copy { max-width: 56%; }
.panel .eyebrow { color: var(--sand); }
.panel .title { color: var(--ink); margin-bottom: 18px; }
.panel .title__big { font-size: clamp(34px, 4.2vw, 68px); text-transform: none; letter-spacing: -.025em; line-height: 1.0; max-width: 16ch; }
.panel .lead { color: var(--ink-muted); max-width: 54ch; margin-bottom: 26px; }
.panel .cta { margin-top: 28px; }
.panel .btn--ghost { color: var(--ink); }

/* pojawianie się przy wjeździe w kadr */
.reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.is-in .reveal, .reveal.is-in { opacity: 1; transform: none; }

/* --- Diagnoza: przyciski problemów --- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip {
  appearance: none; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 14px; padding: 11px 16px; border-radius: 999px; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .35s var(--ease-out);
}
.chip:hover { border-color: var(--sand); }
.chip:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.chip.is-active { background: var(--sand); border-color: var(--sand); color: var(--black); }
.panel.is-in .chip { animation: chipIn .7s var(--ease-out) both; }
.panel.is-in .chip:nth-child(1) { animation-delay: .05s } .panel.is-in .chip:nth-child(2) { animation-delay: .1s } .panel.is-in .chip:nth-child(3) { animation-delay: .15s }
.panel.is-in .chip:nth-child(4) { animation-delay: .2s } .panel.is-in .chip:nth-child(5) { animation-delay: .25s } .panel.is-in .chip:nth-child(6) { animation-delay: .3s }
.panel.is-in .chip:nth-child(7) { animation-delay: .35s } .panel.is-in .chip:nth-child(8) { animation-delay: .4s } .panel.is-in .chip:nth-child(9) { animation-delay: .45s }
@keyframes chipIn { from { opacity: 0; transform: translate3d(-18px, 0, 0) rotate(-2deg); } to { opacity: 1; transform: none; } }

.diag { position: relative; min-height: 190px; padding: 22px 24px; background: rgba(0,0,0,.42); border-left: 4px solid var(--teal); backdrop-filter: blur(6px); max-width: 620px; }
.diag__panel { display: none; }
.diag__panel.is-on { display: block; animation: diagIn .45s var(--ease-out); }
@keyframes diagIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.diag p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }
.diag__k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--sand) !important; margin: 0 0 4px !important; }
.diag__k + p { margin-bottom: 14px !important; }
.diag__e { color: var(--ink) !important; font-weight: 600; }

/* --- Supermoce: karty --- */
.powers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.power {
  position: relative; padding: 18px 18px 18px 60px; background: rgba(0,0,0,.42); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(6px); transition: border-color .25s, background .25s;
}
.power:hover { border-color: var(--sand); background: rgba(0,0,0,.55); }
.power__n {
  position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--black); color: var(--sand); font-family: var(--font-display); font-weight: 800; font-size: 16px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.power h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.power p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.is-in .power:nth-child(1) { transition-delay: .05s } .is-in .power:nth-child(2) { transition-delay: .12s } .is-in .power:nth-child(3) { transition-delay: .19s }
.is-in .power:nth-child(4) { transition-delay: .26s } .is-in .power:nth-child(5) { transition-delay: .33s } .is-in .power:nth-child(6) { transition-delay: .40s }

@media (max-width: 900px) {
  .panel { display: block; min-height: 0; }
  .panel__art { position: relative; aspect-ratio: 16 / 10; }
  .panel__art img { object-position: 70% 30%; transform: none; }
  .panel__art::after { background: linear-gradient(180deg, rgba(11,18,16,0) 55%, #0b1210 100%); }
  .panel__inner { padding: 0 var(--gutter) 48px; margin-top: -40px; }
  .panel__copy { max-width: none; }
  .panel .title__big { font-size: clamp(28px, 8vw, 40px); max-width: none; }
  .powers { grid-template-columns: 1fr; }
  .diag { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .panel__art img { opacity: 1; transform: none; transition: none; }
  .panel.is-in .chip { animation: none; }
}

/* ---------- Rozdziały Diagnoza i Supermoce wewnątrz sekwencji ---------- */
.hero__anchor { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.chapter--diagnoza .title__big, .chapter--supermoce .title__big { font-size: clamp(30px, 3.6vw, 56px); text-transform: none; letter-spacing: -.025em; max-width: 16ch; }
.chapter--diagnoza .lead { margin-bottom: 16px; }
.chapter--diagnoza .chips { margin-bottom: 14px; }
.chapter--diagnoza .diag { max-width: 560px; min-height: 150px; padding: 16px 18px; }
.chapter--supermoce .powers { max-width: 640px; gap: 10px; margin-bottom: 4px; }
.chapter--supermoce .power { padding: 14px 14px 14px 54px; }
.chapter--supermoce .power__n { left: 12px; top: 12px; width: 30px; height: 30px; font-size: 15px; }
.chapter--supermoce .power h3 { font-size: 17px; }
.chapter--supermoce .power p { font-size: 13px; }
/* jasne tło (film 4): karty i przyciski w wersji jasnej */
.hero:not(.is-dark) .chip { border-color: rgba(10,10,10,.28); background: rgba(255,255,255,.55); color: var(--black); }
.hero:not(.is-dark) .chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.hero:not(.is-dark) .diag { background: rgba(255,255,255,.72); }
.hero:not(.is-dark) .diag p { color: rgba(10,10,10,.75); }
.hero:not(.is-dark) .diag__k { color: var(--teal) !important; }
.hero:not(.is-dark) .diag__e { color: var(--black) !important; }
.hero:not(.is-dark) .power { background: rgba(255,255,255,.72); border-color: rgba(10,10,10,.1); }
.hero:not(.is-dark) .power p { color: rgba(10,10,10,.72); }
.hero:not(.is-dark) .power__n { background: var(--teal); color: #fff; }
.hero.is-dark .power { background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.12); }
.hero.is-dark .power p { color: rgba(255,255,255,.78); }
.hero.is-dark .chip { border-color: rgba(255,255,255,.3); background: rgba(0,0,0,.25); color: #fff; }
.hero.is-dark .chip.is-active { background: var(--sand); border-color: var(--sand); color: var(--black); }
@media (max-width: 900px) {
  /* Diagnoza na telefonie: przyciski w jednym przewijanym rzędzie, żeby odpowiedź mieściła się na ekranie */
  .chapter--diagnoza .lead { display: none; }
  .chapter--diagnoza .chips { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * var(--gutter)) 12px; padding: 2px var(--gutter) 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .chapter--diagnoza .chips::-webkit-scrollbar { display: none; }
  .chapter--diagnoza .chip { flex: 0 0 auto; padding: 9px 13px; font-size: 13px; scroll-snap-align: start; }
  .chapter--diagnoza .diag { min-height: 0; padding: 12px 14px; }
  .chapter--diagnoza .diag p { font-size: 14px; line-height: 1.45; }
  .chapter--diagnoza .diag__k + p { margin-bottom: 8px !important; }
  .chapter--diagnoza .title__big, .chapter--supermoce .title__big { font-size: clamp(24px, 7vw, 36px); max-width: none; }
  .chapter--supermoce .powers { grid-template-columns: 1fr; gap: 6px; }
  .chapter--supermoce .power p { display: none; }
}
/* elementy .reveal wewnątrz rozdziałów sekwencji są widoczne od razu (sterowanie rozdziałem, nie obserwatorem) */
.chapter .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Logo z dotychczasowej strony: na ciemnej tabliczce, czytelne na jasnym i ciemnym pasku ---------- */
.topbar__img { display: block; height: 40px; width: auto; padding: 7px 12px; background: #0b1210; border-radius: 8px; box-sizing: content-box; }
@media (max-width: 420px) { .topbar__img { height: 30px; padding: 6px 9px; } }

/* ---------- Baner cookies ---------- */
.cookie { position: fixed; z-index: 60; left: max(16px, var(--gutter, 16px)); bottom: 16px; width: min(520px, calc(100vw - 32px));
  display: grid; gap: 14px; padding: 18px 18px 16px; background: #0b1210; color: #fff; border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); font-family: var(--font-body); }
.cookie__text { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.82); }
.cookie__text b { color: #fff; }
.cookie__text a { color: var(--sand); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie__btn { appearance: none; flex: 1 1 150px; border: 1.5px solid var(--sand); background: var(--sand); color: var(--black);
  font: inherit; font-weight: 700; font-size: 14px; padding: 12px 16px; border-radius: 999px; cursor: pointer; }
.cookie__btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cookie__btn:hover { filter: brightness(1.06); }
.cookie__btn:focus-visible, .cookie__text a:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
@media (max-width: 560px) { .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ---------- Pasek u góry nad sekcjami pod filmami: tło, żeby treść nie wchodziła pod logo i przycisk ---------- */
.topbar { transition: color .3s, background-color .3s, box-shadow .3s; }
body.is-past-hero .topbar { background: rgba(245, 244, 238, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(0, 0, 0, .07); }
body.is-past-hero.is-dark .topbar { background: rgba(11, 18, 16, .94); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }

/* ---------- Telefon w pionie: film w dolnej części ekranu, tekst nad nim (rysowanie w hero.js) ---------- */
@media (max-width: 900px) and (orientation: portrait) {
  .hero__poster img { object-position: 64% 100%; }
  /* przyciski Diagnozy przewijane w bok: wygaszenie przy prawej krawędzi pokazuje, że jest ich więcej */
  .chapter--diagnoza .chips { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  /* karty supermocy leżą na filmie: prawie nieprzezroczyste, żeby twarz bohatera nie prześwitywała przez tekst */
  .hero:not(.is-dark) .chapter--supermoce .power { background: rgba(255, 255, 255, .93); }
  .hero.is-dark .chapter--supermoce .power { background: rgba(11, 18, 16, .88); }
}
