/* ════════════════════════════════════════════════════════
   „Między mieszkańcami a systemem"
   Civic Editorial / System Map — patrz docs/STYLE.md
   ════════════════════════════════════════════════════════ */

:root {
  --bg: #f3f2ee;
  --ink: #1c1c1c;
  --blue: #3a68b0;
  --amber: #c8612e;
  --blue-faint: rgba(58, 104, 176, 0.22);
  --grid: rgba(28, 28, 28, 0.05);

  /* Wymiary sceny hero — stały kadr 720p, skalowany przez JS */
  --stage-w: 1280px;
  --stage-h: 720px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ═════════ HERO ═════════ */

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: radial-gradient(
    ellipse 72% 80% at center,
    #f7f6f2 0%,
    #edece8 100%
  );
}

/* Papier milimetrowy systemu — pełny ekran, niezależny od skali sceny */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Scena: stały kadr 1280×720 wycentrowany i skalowany do viewportu (JS) */
#stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  transform: translate(-50%, -50%);
  transform-origin: center;
  will-change: transform;
}

#svg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

/* ── Animacja słów ── */
.w {
  display: inline-block;
  opacity: 0;
  transform: translateY(5px);
}
.w.in {
  transition:
    opacity 0.42s ease,
    transform 0.48s ease;
  opacity: 1;
  transform: translateY(0);
}

@keyframes wordPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.52;
  }
}
.pulse {
  animation: wordPulse 2s ease-in-out infinite;
}

/* Lead (sceny 1 i 2) */
.lead {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: -0.018em;
  text-align: center;
  max-width: 800px;
}

/* Węzły (scena 3) */
#nodes-row {
  display: flex;
  gap: 108px;
  align-items: center;
}

.node {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(8px);
}
.node.in {
  transition:
    opacity 0.5s ease,
    transform 0.52s ease;
  opacity: 1;
  transform: translateY(0);
}

/* Tytuł (sceny 4 i 5) */
.title {
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.18;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
}
.title.in {
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
  opacity: 1;
  transform: translateY(0);
}

.hl {
  color: var(--blue);
}

/* CTA finałowe — klikalne zaproszenie do scrollu.
   --cta-boost (ustawiany w JS) kompensuje skalę kadru na małych
   ekranach, żeby CTA nigdy nie było mniejsze niż ~12px na ekranie. */
.sub {
  font-size: calc(12px * var(--cta-boost, 1));
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  margin-top: 28px;
  opacity: 0;
  transform: translateY(5px);
  border-bottom: calc(1px * var(--cta-boost, 1)) solid rgba(58, 104, 176, 0.3);
  padding: calc(6px * var(--cta-boost, 1)) calc(4px * var(--cta-boost, 1));
}
.sub.in {
  transition:
    opacity 0.6s ease 0.38s,
    transform 0.6s ease 0.38s;
  opacity: 1;
  transform: translateY(0);
}
#sc5 .sub {
  pointer-events: auto;
}
.sub:hover,
.sub:focus-visible {
  border-bottom-color: var(--blue);
  outline: none;
}

.sg {
  transition: opacity 0.45s ease;
}

/* ═════════ SEKCJA 2 · PUNKT WYJŚCIA ═════════ */

.section-pw {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px;
  background: var(--bg);
  overflow: hidden;
}

/* Siatka „papieru milimetrowego" — spójna z hero */
.pw-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Subtelne ziarno papieru (editorial) */
.pw-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.pw-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

/* A · Etykieta */
.pw-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}

/* B · Lead */
.pw-lead {
  font-size: 34px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.018em;
  margin-bottom: 64px;
}

/* C · Trzy kafle */
.pw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  text-align: left;
}

.pw-card {
  padding: 24px;
  border-top: 2px solid var(--blue);
  background: rgba(255, 255, 255, 0.35);
}
.pw-card--3 {
  border-top-color: var(--amber);
}

.pw-card-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.pw-card--3 .pw-card-title {
  color: var(--amber);
}

.pw-card-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.75;
}

/* D · Diagram przepływu z pęknięciem */
.pw-diagram {
  display: block;
  width: 100%;
  height: 80px;
  margin: 0 auto 48px;
}
.pw-diagram-v {
  display: none;
}

/* E · Zdanie-pomost */
.pw-bridge {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}
.pw-arrow {
  display: inline-block;
  margin-left: 6px;
  color: var(--blue);
  animation: pwBounce 1.8s ease-in-out infinite;
}
@keyframes pwBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* ── Stany początkowe (przed wejściem w kadr) ── */
.pw-label,
.pw-lead,
.pw-bridge {
  opacity: 0;
  transform: translateY(8px);
}
.pw-card {
  opacity: 0;
  transform: translateY(16px);
}
.d-f1,
.d-crack {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.d-f2,
.d-n1,
.d-n2,
.d-n3,
.d-shard {
  opacity: 0;
}

/* ── Sekwencja animacji (po dodaniu .active) ── */
.section-pw.active .pw-label {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: 0s;
}
.section-pw.active .pw-lead {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: 0.15s;
}
.section-pw.active .pw-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.section-pw.active .pw-card--1 {
  transition-delay: 0.35s;
}
.section-pw.active .pw-card--2 {
  transition-delay: 0.5s;
}
.section-pw.active .pw-card--3 {
  transition-delay: 0.65s;
}

/* Krok 6: niebieska linia rysuje się + węzły 1 i 2 */
.section-pw.active .d-f1 {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s ease;
  transition-delay: 0.9s;
}
.section-pw.active .d-n1,
.section-pw.active .d-n2 {
  opacity: 1;
  transition: opacity 0.5s ease;
  transition-delay: 0.9s;
}
/* Krok 7: pęknięcie (zygzak) rysuje się */
.section-pw.active .d-crack {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease;
  transition-delay: 1.9s;
}
/* Krok 8: odłamki */
.section-pw.active .d-shard {
  opacity: 1;
  transition: opacity 0.3s ease;
  transition-delay: 2.3s;
}
/* Krok 9: urwana linia bursztynowa + pusty węzeł 3 */
.section-pw.active .d-f2,
.section-pw.active .d-n3 {
  opacity: 1;
  transition: opacity 0.5s ease;
  transition-delay: 2.4s;
}
/* Krok 10: zdanie-pomost */
.section-pw.active .pw-bridge {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: 1.9s;
}

/* ── Responsywność ── */
@media (max-width: 600px) {
  .pw-lead {
    font-size: 26px;
    margin-bottom: 48px;
  }
  .pw-cards {
    grid-template-columns: 1fr;
  }
  .pw-diagram-h {
    display: none;
  }
  .pw-diagram-v {
    display: block;
    height: 320px;
  }
}

/* ═════════ SEKCJA 3 · GDZIE SYSTEM PĘKA ═════════ */

.section-crack {
  position: relative;
  height: 320vh; /* wysoka — pęknięcie rośnie ze scrollem */
  background: var(--ink);
}

/* Przypięty kadr — treść wizualna zostaje w widoku */
.crack-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--bg);
}

/* Ciemna siatka „papieru milimetrowego systemu" */
.crack-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 242, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 242, 238, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Winieta — ciemniejsze krawędzie skupiają wzrok na pęknięciu */
.crack-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 78% 68% at 50% 45%,
    transparent 42%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* SVG pęknięcia — współrzędne = procenty kadru (viewBox 100×100, none) */
.crack-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Poświata pęknięcia — bursztyn „pali się" na ciemnym */
.crack-fx {
  filter: drop-shadow(0 0 7px rgba(200, 98, 46, 0.55));
}

/* Główne pęknięcie: rozżarzona łamana (bez wypełnienia) */
.crack-main {
  fill: none;
  stroke: var(--amber);
  stroke-width: 4.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Mikropęknięcia — cieńsze odgałęzienia „odpękujące" od głównej */
.crack-hair {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.8;
  vector-effect: non-scaling-stroke;
}

.branch-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.branch-shard {
  stroke: var(--amber);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* „Rozjechana" struktura siatki przy pęknięciu */
.crack-shift {
  stroke: rgba(243, 242, 238, 0.07);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Akcent bursztynowy na ciemnym */
.hl-amber {
  color: var(--amber);
}

/* A · Tytuł */
.crack-title {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* B · Bloki „pęknięć systemu" (rich: absolutnie, naprzemiennie L/P) */
.crack-block {
  position: absolute;
  width: min(320px, 34%);
}
.crack-block h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.crack-block p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.7;
}
.crack-block--1 {
  top: calc(20% - 34px);
  right: 65%;
  text-align: right;
}
.crack-block--2 {
  top: calc(35% - 34px);
  left: 65%;
  text-align: left;
}
.crack-block--3 {
  top: calc(50% - 34px);
  right: 65%;
  text-align: right;
}
.crack-block--4 {
  top: calc(65% - 34px);
  left: 65%;
  text-align: left;
}
.crack-block--5 {
  top: calc(80% - 34px);
  right: 65%;
  text-align: right;
}

/* C · Kulminacja (centrowana; opacity/scale steruje JS) */
.section-crack:not(.simple) .crack-climax {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
}
.crack-climax {
  text-align: center;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  opacity: 0;
}

/* D · Pomost */
.section-crack:not(.simple) .crack-bridge {
  position: absolute;
  bottom: 6%;
  left: 0;
  right: 0;
  text-align: center;
}
.crack-bridge {
  font-size: 16px;
  font-weight: 400;
  color: var(--bg);
}
.crack-arrow {
  display: inline-block;
  margin-left: 6px;
  color: var(--blue); /* powrót niebieskiego = zapowiedź porządku */
  animation: pwBounce 1.8s ease-in-out infinite;
}

/* Wejścia (fade + translateY) — rich: klasa .shown z JS; simple: z IO */
.crack-reveal {
  opacity: 0;
  transform: translateY(16px);
}
.crack-reveal.shown {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .crack-title {
    font-size: 48px;
  }
  .crack-climax {
    font-size: 40px;
  }
  .crack-block h3 {
    font-size: 24px;
  }
  .crack-block p {
    font-size: 16px;
  }
}

/* ── SIMPLE MODE (mobile < 600px lub reduced-motion) — układ przepływowy ── */
.section-crack.simple {
  height: auto;
  min-height: auto;
}
.section-crack.simple .crack-stage {
  position: relative;
  height: auto;
  overflow: visible;
  padding: 80px 24px 96px;
}
.section-crack.simple .crack-svg {
  display: none;
}
/* Uproszczone pęknięcie: pionowa bursztynowa linia przy lewej krawędzi */
.section-crack.simple .crack-stage::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(200, 98, 46, 0.55);
}
.section-crack.simple .crack-title {
  position: relative;
  top: auto;
  text-align: left;
  padding-left: 40px;
  margin-bottom: 48px;
  font-size: 40px;
}
.section-crack.simple .crack-block {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  max-width: 520px;
  text-align: left;
  padding-left: 40px;
  margin-bottom: 40px;
}
.section-crack.simple .crack-block h3 {
  font-size: 22px;
}
/* Krótka odnoga łącząca blok z linią pęknięcia */
.section-crack.simple .crack-block::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 15px;
  width: 16px;
  height: 2px;
  background: var(--amber);
}
.section-crack.simple .crack-climax {
  position: relative;
  top: auto;
  text-align: left;
  padding-left: 40px;
  margin: 8px 0 32px;
  font-size: 32px;
}
.section-crack.simple .crack-bridge {
  position: relative;
  bottom: auto;
  text-align: left;
  padding-left: 40px;
}

/* ═════════ SEKCJA 4 · DWA KIERUNKI ZMIANY ═════════ */

.section-dir {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  padding: 120px 24px 112px;
  overflow: hidden;
}

/* Statyczny pas przejścia ciemne → jasne (styk z Sekcją 3).
   „Fade" dzieje się, gdy użytkownik przewija przez ten pas. */
.dir-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(
    to bottom,
    var(--ink) 0%,
    rgba(28, 28, 28, 0) 100%
  );
  pointer-events: none;
}

/* Siatka „papieru milimetrowego" — spójna z resztą */
.dir-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.dir-inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* A · Wejście */
.dir-head {
  text-align: center;
  margin-bottom: 8px;
}

.dir-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.dir-title {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.16em;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.dir-title-half {
  display: inline-block;
  transform: translateX(0);
  will-change: transform;
}
.dir-title-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  will-change: opacity, transform, filter;
}
.dir-title-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 0.5em;
  background: var(--amber);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.dir-subtitle {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.015em;
  opacity: 0.82;
}

/* Motyw: spinające się mosty */
.dir-bridges {
  display: block;
  width: 100%;
  max-width: 760px;
  height: 96px;
  margin: 8px auto 4px;
}
.dir-bridges-v {
  display: none;
}

.dir-crack {
  opacity: 0.9;
}
.dir-crack-shard {
  stroke: var(--amber);
  stroke-width: 1;
}
.dir-span {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.dir-span-node {
  opacity: 0;
}

/* B · Dwa równoległe panele */
.dir-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 72px;
}

.dir-panel {
  border-top: 3px solid var(--blue);
  background: rgba(255, 255, 255, 0.4);
  padding: 28px 28px 12px;
}

.dir-panel-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 22px;
}

.dir-field {
  margin-bottom: 20px;
}
.dir-field-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.5);
  margin-bottom: 7px;
}
.dir-field-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* Akordeon — warstwa głęboka (Co zmienia / Czego NIE robi) */
.dir-acc {
  border-top: 1px solid rgba(28, 28, 28, 0.12);
}

.dir-acc-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-align: left;
}
.dir-acc-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  flex: 1;
}
.dir-acc-more {
  font-size: 12px;
  font-weight: 400;
  color: var(--blue);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.dir-acc-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
}
.dir-acc-icon::before,
.dir-acc-icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.dir-acc-icon::before {
  top: 5px;
  left: 0;
  width: 12px;
  height: 2px;
}
.dir-acc-icon::after {
  left: 5px;
  top: 0;
  width: 2px;
  height: 12px;
}
.dir-acc-btn[aria-expanded="true"] .dir-acc-icon::after {
  opacity: 0;
  transform: rotate(90deg);
}

.dir-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.dir-acc-body {
  list-style: none;
  padding: 0 0 18px;
}
.dir-acc-body li {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  padding-left: 18px;
  margin-bottom: 8px;
}
.dir-acc-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--blue);
}
.dir-panel--a .dir-acc-body li:last-child,
.dir-panel--b .dir-acc-body li:last-child {
  margin-bottom: 0;
}

/* C · Tabela porównawcza */
.dir-compare {
  margin-bottom: 64px;
}
.dir-compare-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 28px;
}
.dir-table-wrap {
  overflow-x: auto;
}
.dir-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}
.dir-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.dir-table thead th {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
  padding: 0 16px 14px;
  vertical-align: bottom;
}
.dir-table thead th:nth-child(2) {
  color: var(--blue);
}
.dir-table thead th:nth-child(3) {
  color: var(--blue);
}
.dir-table tbody th {
  font-weight: 500;
  text-align: left;
  padding: 14px 16px;
  white-space: nowrap;
  vertical-align: top;
}
.dir-table tbody td {
  font-weight: 400;
  line-height: 1.45;
  padding: 14px 16px;
  vertical-align: top;
}
.dir-table tbody tr {
  border-top: 1px solid rgba(28, 28, 28, 0.12);
}
.dir-table tbody td + td {
  border-left: 1px solid rgba(28, 28, 28, 0.12);
}
.dir-table tbody th {
  border-right: 1px solid rgba(28, 28, 28, 0.12);
}

/* D · Pomost */
.dir-outro {
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.dir-arrow {
  display: inline-block;
  margin-left: 4px;
  color: var(--amber); /* bursztyn = zapowiedź otwartych pytań */
  animation: pwBounce 1.8s ease-in-out infinite;
}

/* ── Stany początkowe (przed .active) ── */
.dir-label,
.dir-subtitle,
.dir-outro {
  opacity: 0;
  transform: translateY(8px);
}
.dir-panel {
  opacity: 0;
  transform: translateY(16px);
}
.dir-row {
  opacity: 0;
  transform: translateY(10px);
}

/* ── Sekwencja po dodaniu .active ── */
.section-dir.active .dir-label,
.section-dir.active .dir-subtitle,
.section-dir.active .dir-outro {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.section-dir.active .dir-label {
  transition-delay: 0.1s;
}
.section-dir.active .dir-title-inner {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 0.6s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
  transition-delay: 0.12s;
}
.section-dir.active .dir-title-l {
  transform: translateX(-8px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.28s;
}
.section-dir.active .dir-title-r {
  transform: translateX(8px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.28s;
}
.section-dir.active .dir-title-spark {
  animation: dirSpark 0.45s ease 0.28s both;
}
@keyframes dirSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0.6);
  }
  35% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(1);
  }
}
.section-dir.active .dir-subtitle {
  transition-delay: 0.34s;
}

/* Krok 3: mosty rysują się (spinają pęknięcie) */
.section-dir.active .dir-span {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s ease;
  transition-delay: 0.5s;
}
.section-dir.active .dir-span-node {
  opacity: 1;
  transition: opacity 0.4s ease;
  transition-delay: 1.3s;
}

/* Kroki 4–5: panele */
.section-dir.active .dir-panel {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.section-dir.active .dir-panel--a {
  transition-delay: 0.8s;
}
.section-dir.active .dir-panel--b {
  transition-delay: 0.95s;
}

/* Krok 6: wiersze tabeli kolejno */
.section-dir.active .dir-row {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.section-dir.active .dir-row:nth-child(1) {
  transition-delay: 1.2s;
}
.section-dir.active .dir-row:nth-child(2) {
  transition-delay: 1.32s;
}
.section-dir.active .dir-row:nth-child(3) {
  transition-delay: 1.44s;
}
.section-dir.active .dir-row:nth-child(4) {
  transition-delay: 1.56s;
}

/* Krok 7: pomost (po tabeli) */
.section-dir.active .dir-outro {
  transition-delay: 1.75s;
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .dir-title {
    font-size: 42px;
  }
  .dir-panels {
    gap: 20px;
  }
  .dir-panel {
    padding: 24px 20px 10px;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .section-dir {
    padding: 88px 20px 88px;
  }
  .dir-title {
    font-size: 34px;
  }
  .dir-title-spark {
    display: none;
  }
  .dir-subtitle {
    font-size: 18px;
  }
  .dir-subtitle br {
    display: none;
  }
  .dir-panels {
    grid-template-columns: 1fr;
    margin-bottom: 56px;
  }
  .dir-bridges-h {
    display: none;
  }
  .dir-bridges-v {
    display: block;
    max-width: 200px;
    height: 76px;
  }
  .dir-compare-title {
    font-size: 22px;
  }
}

/* ═════════ SEKCJA 5 · GŁOSY Z SALI — CZTERY OSIE SPORU ═════════ */

.section-axes {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  padding: 112px 24px 120px;
  overflow: hidden;
}
.axes-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.axes-inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* A · Nagłówek */
.axes-head {
  text-align: center;
  margin-bottom: 72px;
}
.axes-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.axes-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.axes-lead {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.012em;
  opacity: 0.82;
  max-width: 640px;
  margin: 0 auto;
}
.axes-hint {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.55;
  margin-top: 16px;
}

/* B · Lista osi */
.axis-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 72px;
}

.axis-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  margin-bottom: 6px;
}
.axis-note {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.6;
  text-align: center;
}

/* Oś: biegun — linia — biegun */
.axis-track {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  align-items: center;
  margin-top: 14px;
}

.axis-pole {
  background: none;
  border: 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  padding: 12px 14px;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.axis-pole--a {
  text-align: right;
}
.axis-pole--b {
  text-align: left;
}
.axis-pole-name {
  display: block;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color 0.3s ease;
}
.axis-pole-sub {
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.7;
  margin-top: 4px;
}
.axis-pole:hover .axis-pole-name,
.axis-pole:focus-visible .axis-pole-name {
  color: var(--blue);
}
.axis-pole:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* biegun wybrany / przygaszony */
.axis[data-state="a"] .axis-pole--a .axis-pole-name,
.axis[data-state="b"] .axis-pole--b .axis-pole-name {
  color: var(--blue);
}
.axis[data-state="a"] .axis-pole--b,
.axis[data-state="b"] .axis-pole--a {
  opacity: 0.4;
}

/* linia rozciągnięta między biegunami, z pęknięciem w środku */
.axis-line {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 18px;
}
.axis-line-a,
.axis-line-b {
  flex: 1;
  height: 1.5px;
  width: auto;
  background: var(--blue-faint);
  transition:
    height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.axis[data-state="a"] .axis-line-a,
.axis[data-state="b"] .axis-line-b {
  height: 2.5px;
  background: var(--blue);
}

/* szczelina: wybór bieguna jej nie zasypuje — poszerza ją */
.axis-crack {
  position: relative;
  flex: none;
  width: 12px;
  height: 20px;
  margin: 0 5px;
  transition:
    width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.axis[data-state="a"] .axis-crack,
.axis[data-state="b"] .axis-crack {
  width: 28px;
}
.axis-crack svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.axis-crack polyline {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.axis-crack-h {
  display: none;
}

/* C · Panele argumentów */
.axis-panel {
  max-width: 720px;
  overflow: hidden;
}
.axis-panel--b {
  margin-left: auto;
}
.axis-panel[hidden] {
  display: none;
}
/* dymek wypowiedzi: balon z ogonkiem wskazującym kliknięty biegun;
   narożnik po stronie mówiącego ostry (jak w komunikatorach).
   Tła kryjące (papier + biel / papier + błękit), bo ogonek musi
   zasłonić górną krawędź balonu. */
.axis-panel-in {
  position: relative;
  background: #fbfaf7;
  border: 1px solid rgba(28, 28, 28, 0.18);
  border-radius: 16px;
  padding: 22px 26px 24px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(28, 28, 28, 0.05);
}
/* ogonek: kwadrat obrócony o 45°, wystaje nad górną krawędź */
.axis-panel-in::before {
  content: "";
  position: absolute;
  top: -7px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-top: 1px solid rgba(28, 28, 28, 0.18);
  border-left: 1px solid rgba(28, 28, 28, 0.18);
  transform: rotate(45deg);
}
.axis-panel--a .axis-panel-in {
  border-top-left-radius: 4px;
}
.axis-panel--a .axis-panel-in::before {
  left: 42px;
}
.axis-panel--b .axis-panel-in {
  border-top-right-radius: 4px;
}
.axis-panel--b .axis-panel-in::before {
  right: 42px;
}
/* stanowisko autorów: dymek podbarwiony niebieskim (niebieski = propozycja) */
.axis-panel-in--aut {
  background: #eef2f8;
  border-color: rgba(58, 104, 176, 0.4);
}
.axis-panel-in--aut::before {
  border-top-color: rgba(58, 104, 176, 0.4);
  border-left-color: rgba(58, 104, 176, 0.4);
}

/* znacznik źródła bieguna — sala vs autorzy projektu */
.axis-src {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.axis-src--sala {
  background: rgba(200, 97, 46, 0.1);
  color: var(--amber);
}
.axis-src--aut {
  background: rgba(58, 104, 176, 0.1);
  color: var(--blue);
}

.axis-arg {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

.axis-quote {
  margin: 20px 0 0;
  border-left: 2px solid var(--amber);
  padding-left: 20px;
}
.axis-quote p {
  font-size: 21px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.axis-role {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 10px;
}

.axis-postulat {
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(58, 104, 176, 0.05);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
}
.axis-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(58, 104, 176, 0.1);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.axis-postulat p:last-child {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}

/* mostek do wizarda (tylko oś 4) */
.axis-more {
  margin-top: 22px;
}
.axis-more-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(58, 104, 176, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.axis-more-link:hover {
  border-bottom-color: var(--blue);
}
.axis-more-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ── Wejście sekcji (IO → .active) ── */
.axes-label,
.axes-title,
.axes-lead,
.axes-hint {
  opacity: 0;
  transform: translateY(8px);
}
.axis {
  opacity: 0;
  transform: translateY(16px);
}
.section-axes.active .axes-label,
.section-axes.active .axes-title,
.section-axes.active .axes-lead,
.section-axes.active .axes-hint,
.section-axes.active .axis {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.section-axes.active .axes-label {
  transition-delay: 0.1s;
}
.section-axes.active .axes-title {
  transition-delay: 0.2s;
}
.section-axes.active .axes-lead {
  transition-delay: 0.3s;
}
.section-axes.active .axes-hint {
  transition-delay: 0.38s;
}
.section-axes.active .axis:nth-child(1) {
  transition-delay: 0.5s;
}
.section-axes.active .axis:nth-child(2) {
  transition-delay: 0.65s;
}
.section-axes.active .axis:nth-child(3) {
  transition-delay: 0.8s;
}
.section-axes.active .axis:nth-child(4) {
  transition-delay: 0.95s;
}

/* ── Tablet ── */
@media (max-width: 900px) and (min-width: 701px) {
  .axis-track {
    grid-template-columns: 180px 1fr 180px;
  }
  .axis-pole-sub {
    display: none;
  }
}

/* ── Mobile: oś obraca się o 90° ── */
@media (max-width: 700px) {
  .section-axes {
    padding: 88px 20px 88px;
  }
  .axes-head {
    margin-bottom: 56px;
  }
  .axes-title {
    font-size: 32px;
  }
  .axes-lead {
    font-size: 17px;
  }
  .axis-list {
    gap: 56px;
  }

  /* przemeblowanie: biegun A → panel A → linia → biegun B → panel B */
  .axis {
    display: flex;
    flex-direction: column;
  }
  .axis-track,
  .axis-panels {
    display: contents;
  }
  .axis-kicker {
    order: 1;
  }
  .axis-note {
    order: 2;
    margin-bottom: 14px;
  }
  .axis-pole--a {
    order: 3;
  }
  .axis-panel--a {
    order: 4;
  }
  .axis-line {
    order: 5;
  }
  .axis-pole--b {
    order: 6;
  }
  .axis-panel--b {
    order: 7;
  }

  .axis-pole {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(28, 28, 28, 0.14);
    border-left: 3px solid transparent;
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.22s ease,
      background-color 0.22s ease;
  }
  .axis-pole:hover,
  .axis-pole:focus-visible {
    border-color: var(--blue);
    border-left-color: var(--blue);
  }
  .axis[data-state="a"] .axis-pole--a,
  .axis[data-state="b"] .axis-pole--b {
    border-color: var(--blue);
    border-left-color: var(--blue);
    background: rgba(58, 104, 176, 0.06);
  }
  .axis-pole-name {
    font-size: 18px;
  }

  /* linia pionowa między biegunami, szczelina pozioma w połowie */
  .axis-line {
    flex-direction: column;
    align-items: center;
    height: 64px;
    width: 100%;
    padding: 6px 0;
    margin: 0;
  }
  .axis-line-a,
  .axis-line-b,
  .axis[data-state="a"] .axis-line-a,
  .axis[data-state="b"] .axis-line-b {
    height: auto;
  }
  .axis-line-a,
  .axis-line-b {
    width: 1.5px;
    flex: 1;
  }
  .axis[data-state="a"] .axis-line-a,
  .axis[data-state="b"] .axis-line-b {
    width: 2.5px;
  }
  .axis-crack,
  .axis[data-state="a"] .axis-crack,
  .axis[data-state="b"] .axis-crack {
    width: 20px;
  }
  .axis-crack {
    height: 12px;
    margin: 5px 0;
  }
  .axis[data-state="a"] .axis-crack,
  .axis[data-state="b"] .axis-crack {
    height: 28px;
  }
  .axis-crack-v {
    display: none;
  }
  .axis-crack-h {
    display: block;
  }

  .axis-panel--b {
    margin-left: 0;
  }
  .axis-panel-in {
    padding: 18px 18px 20px;
    margin-top: 16px;
  }
  /* panel siedzi pod pełnoszerokościowym biegunem — ogonek zawsze z lewej */
  .axis-panel--b .axis-panel-in {
    border-radius: 16px;
    border-top-left-radius: 4px;
  }
  .axis-panel--b .axis-panel-in::before {
    right: auto;
    left: 42px;
  }
  .axis-quote p {
    font-size: 18px;
  }
}

/* ═════════ SEKCJA 6 · NARZĘDZIE INTERAKTYWNE (wizard) ═════════ */

.section-wiz {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  padding: 112px 24px 120px;
  overflow: hidden;
}
.wiz-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.wiz-inner {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* A · Nagłówek */
.wiz-head {
  text-align: center;
  margin-bottom: 40px;
}
.wiz-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.wiz-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.wiz-subtitle {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.012em;
  opacity: 0.82;
  max-width: 620px;
  margin: 0 auto;
}

/* B · Karta wizarda */
.wiz {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(28, 28, 28, 0.1);
  padding: 36px 40px 28px;
}

/* Pasek postępu */
.wiz-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}
.wiz-progress-seg {
  flex: 1;
  height: 3px;
  background: rgba(28, 28, 28, 0.12);
  transition: background-color 0.4s ease;
}
.wiz-progress-seg.done,
.wiz-progress-seg.current {
  background: var(--blue);
}

/* Kroki — tylko aktywny jest w przepływie (naturalna wysokość) */
.wiz-step[hidden] {
  display: none;
}
.wiz-step {
  opacity: 0;
  transform: translateY(8px);
}
.wiz-step.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.wiz-step-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.wiz-q {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}

/* Opcje */
.wiz-options {
  display: grid;
  gap: 10px;
}
.wiz-option[hidden] {
  display: none;
}
.wiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(28, 28, 28, 0.14);
  border-left: 3px solid transparent;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}
.wiz-option:hover,
.wiz-option:focus-visible {
  border-color: var(--blue);
  border-left-color: var(--blue);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}
.wiz-option.selected {
  border-color: var(--blue);
  border-left-color: var(--blue);
  background: rgba(58, 104, 176, 0.06);
}
.wiz-option-main {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wiz-option-sub {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.6;
  margin-top: 4px;
}

/* Notka pod opcjami — czemu przy mieszkańcach / grupach widać ich mniej */
.wiz-note {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.6;
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid rgba(28, 28, 28, 0.14);
}
.wiz-note[hidden] {
  display: none;
}

/* Nawigacja */
.wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  min-height: 20px;
}
.wiz-back {
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(28, 28, 28, 0.55);
  cursor: pointer;
  transition: color 0.2s ease;
}
.wiz-back:hover {
  color: var(--blue);
}
.wiz-back[hidden] {
  display: none;
}

/* C · Wynik */
.wiz-path {
  margin: 4px auto 26px;
  max-width: 380px;
}
.wiz-path-svg {
  display: block;
  width: 100%;
  height: 116px;
}
.wiz-path-crack {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.wiz-path-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.wiz-path-node {
  fill: var(--blue);
}
.wiz-path-svg[data-accent="ink"] .wiz-path-line {
  stroke: var(--ink);
}
.wiz-path-svg[data-accent="ink"] .wiz-path-node {
  fill: var(--ink);
}
.wiz-path-svg[data-accent="amber"] .wiz-path-line {
  stroke: var(--amber);
}
.wiz-path-svg[data-accent="amber"] .wiz-path-node {
  fill: var(--amber);
}
.wiz-path-svg[data-path="split"] .wiz-end-single {
  display: none;
}
.wiz-path-svg:not([data-path="split"]) .wiz-end-a,
.wiz-path-svg:not([data-path="split"]) .wiz-end-b {
  display: none;
}

.wiz-result-head {
  margin-bottom: 16px;
}
.wiz-result-kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(28, 28, 28, 0.6);
  margin-bottom: 6px;
}
.wiz-result-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--blue);
}
.wiz-step--result[data-accent="ink"] .wiz-result-name {
  color: var(--ink);
}
.wiz-step--result[data-accent="amber"] .wiz-result-name {
  color: var(--amber);
}
.wiz-result-suffix {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.55;
}
.wiz-why {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* Dziś vs Po zmianie */
.wiz-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.wiz-compare-col {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.45);
  border-top: 2px solid;
}
.wiz-compare--today {
  border-top-color: var(--amber);
}
.wiz-compare--after {
  border-top-color: var(--blue);
}
.wiz-block-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.55);
  margin-bottom: 8px;
}
.wiz-compare--today .wiz-block-label {
  color: var(--amber);
}
.wiz-compare--after .wiz-block-label {
  color: var(--blue);
}
.wiz-compare-col p:last-child,
.wiz-tip-note {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* MIX — wskazówka */
.wiz-tip {
  padding: 16px 18px;
  background: rgba(200, 98, 46, 0.05);
  border-top: 2px solid var(--amber);
  margin-bottom: 22px;
}
.wiz-tip .wiz-block-label {
  color: var(--amber);
}
.wiz-tip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.wiz-tip-list li {
  position: relative;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  padding-left: 18px;
  margin-bottom: 8px;
}
.wiz-tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--amber);
}

/* Personalizacja (callout) */
.wiz-personal {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  padding: 14px 18px;
  background: rgba(58, 104, 176, 0.06);
  border-left: 3px solid var(--blue);
  margin-bottom: 22px;
}

/* Na co uważać */
.wiz-watch {
  border-top: 1px solid rgba(28, 28, 28, 0.12);
  padding-top: 18px;
}
.wiz-watch p:last-child {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.78;
}

/* ── Wejście sekcji (IO → .active) ── */
.wiz-label,
.wiz-title,
.wiz-subtitle {
  opacity: 0;
  transform: translateY(8px);
}
.wiz {
  opacity: 0;
  transform: translateY(16px);
}
.section-wiz.active .wiz-label,
.section-wiz.active .wiz-title,
.section-wiz.active .wiz-subtitle,
.section-wiz.active .wiz {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.section-wiz.active .wiz-label {
  transition-delay: 0.1s;
}
.section-wiz.active .wiz-title {
  transition-delay: 0.2s;
}
.section-wiz.active .wiz-subtitle {
  transition-delay: 0.3s;
}
.section-wiz.active .wiz {
  transition-delay: 0.44s;
}

/* ── Responsywność ── */
@media (max-width: 700px) {
  .wiz-title {
    font-size: 32px;
  }
  .wiz-subtitle {
    font-size: 17px;
  }
  .wiz {
    padding: 28px 22px 22px;
  }
  .wiz-q {
    font-size: 22px;
  }
  .wiz-result-name {
    font-size: 25px;
  }
  .wiz-compare {
    grid-template-columns: 1fr;
  }
}

/* ═════════ STOPKA ═════════ */

.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(28, 28, 28, 0.1);
  padding: 48px 24px 56px;
  text-align: center;
}
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
}
.footer-mark {
  display: block;
  width: 34px;
  height: auto;
  margin: 0 auto 16px;
}
.footer-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.6;
  max-width: 440px;
  margin: 0 auto 18px;
}
.footer-meta {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.45;
}

/* Odnośnik do autorów */
.footer-authors {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  text-decoration: none;
}
.footer-authors-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.4);
  transition: color 0.2s ease;
}
.footer-authors-logo {
  display: block;
  height: 42px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.75;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease;
}
.footer-authors:hover .footer-authors-logo,
.footer-authors:focus-visible .footer-authors-logo {
  filter: grayscale(0);
  opacity: 1;
}
.footer-authors:hover .footer-authors-label,
.footer-authors:focus-visible .footer-authors-label {
  color: var(--blue);
}
.footer-authors:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* ═════════ DOSTĘPNOŚĆ ═════════ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pulse,
  .pw-arrow,
  .crack-arrow,
  .dir-arrow,
  .dir-title-spark {
    animation: none;
  }
  .w,
  .node,
  .title,
  .sub,
  .sg,
  .section-pw.active *,
  .section-dir.active *,
  .section-axes.active *,
  .section-wiz.active * {
    transition: none !important;
  }
}
