/* Glob Cars — szanse rozwojowe 2026–2030 · przygotowanie: Senuso */
:root {
  --night: #0E131A;
  --surface: #151B23;
  --surface-2: #1C2430;
  --line: #2A3442;
  --ink: #EDE8DF;
  --ink-2: #B9BFC6;
  --muted: #8E98A3;
  --amber: #E8862A;
  --amber-ink: #F2A14E;
  --sage: #9DB59A;
  --sage-deep: #5E7A5E;
  --paper: #EFEAE1;
  --paper-2: #E2DBCF;
  --paper-ink: #1A1F26;
  --paper-muted: #545C66;
  --s-pes: #5B87D4;
  --s-base: #2E9F7B;
  --s-opt: #D2741A;

  --f-head: "Bricolage Grotesque", "Georgia", serif;
  --f-body: "IBM Plex Sans", "Georgia", serif;
  --f-mono: "IBM Plex Mono", "Courier New", monospace;

  --pad-x: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--amber-ink); text-underline-offset: .2em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amber); color: var(--night);
  padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- typografia ---------- */
h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1rem + 4vw, 5.4rem); font-variation-settings: "wdth" 85; }
h2 { font-size: clamp(1.9rem, 1.1rem + 3.2vw, 4rem); font-variation-settings: "wdth" 88; max-width: 18ch; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }

.kicker {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber-ink); margin: 0 0 1.25rem;
}
.kicker::before { content: ""; width: 2.25rem; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 56ch; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.src {
  display: inline-block; font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .04em; color: var(--muted);
}
.tag-est {
  display: inline-block; font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid currentColor; color: var(--sage);
  padding: .1em .45em; border-radius: 2px; vertical-align: .15em; white-space: nowrap;
}
.note { font-size: .85rem; color: var(--muted); max-width: 70ch; }
strong { font-weight: 600; color: var(--ink); }

/* ---------- slajdy ---------- */
.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  padding: clamp(4.5rem, 9vh, 7rem) var(--pad-x) clamp(3rem, 7vh, 5rem);
  display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--line);
}
.slide > .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.slide-no {
  position: absolute; top: clamp(1.25rem, 3vh, 2rem); left: var(--pad-x);
  font-family: var(--f-mono); font-size: .75rem; color: var(--muted); letter-spacing: .1em;
}
.slide-no b { color: var(--ink); font-weight: 500; }

.paper { background: var(--paper); color: var(--paper-ink); border-top-color: var(--paper-2); }
.paper strong { color: var(--paper-ink); }
.paper .kicker { color: #A2520E; }
.paper .lead, .paper p { color: #343B44; }
.paper .src, .paper .note, .paper .slide-no { color: var(--paper-muted); }
.paper .slide-no b { color: var(--paper-ink); }
.paper .tag-est { color: #3F5B40; }
.paper a { color: #A2520E; }

/* ---------- siatki ---------- */
.split { display: grid; gap: clamp(2rem, 4vw, 4rem); }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; }
  .split.rev { grid-template-columns: 7fr 5fr; }
  .split.even { grid-template-columns: 1fr 1fr; }
}
.head-row { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
@media (min-width: 960px) {
  .head-row { grid-template-columns: 7fr 5fr; align-items: end; }
  .head-row .lead { justify-self: end; }
}

/* ---------- pasek postępu i nawigacja ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50;
  background: transparent; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%; background: var(--amber);
  transform-origin: 0 50%; transform: scaleX(0);
}
.dots {
  position: fixed; right: clamp(.5rem, 1.5vw, 1.5rem); top: 50%; transform: translateY(-50%);
  z-index: 40; display: none;
}
.dots ol { list-style: none; margin: 0; padding: .5rem; display: grid; gap: .35rem; }
.dots a {
  display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
  min-height: 24px; text-decoration: none; color: var(--muted);
  font-family: var(--f-mono); font-size: .68rem;
}
.dots a .lbl {
  opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s var(--ease);
  background: var(--surface-2); color: var(--ink); padding: .2rem .5rem; border-radius: 2px; white-space: nowrap;
}
.dots a:hover .lbl, .dots a:focus-visible .lbl { opacity: 1; transform: none; }
.dots a .pip {
  width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted);
  transition: background .25s, border-color .25s, height .3s var(--ease);
}
.dots a[aria-current="true"] .pip { background: var(--amber); border-color: var(--amber); height: 22px; border-radius: 4px; }
.dots a[aria-current="true"] { color: var(--ink); }
.dots.on-paper a .pip { border-color: var(--paper-muted); }
.dots.on-paper a[aria-current="true"] .pip { border-color: var(--amber); }
@media (min-width: 900px) { .dots { display: block; } }

.counter {
  position: fixed; right: clamp(.5rem, 1.5vw, 1.5rem); bottom: 1rem; z-index: 40;
  font-family: var(--f-mono); font-size: .72rem; color: var(--muted);
  background: rgba(14,19,26,.8); padding: .2rem .45rem; border-radius: 2px;
  display: none;
}
@media (min-width: 900px) { .counter { display: block; } }

/* ---------- grafiki (placeholdery) ---------- */
.ph {
  position: relative; overflow: hidden;
  background-color: #1B2530;
  background-image:
    repeating-radial-gradient(ellipse at 72% 118%, transparent 0 22px, rgba(157,181,154,.10) 22px 23px),
    linear-gradient(180deg, #1F2A36 0%, #18212B 55%, #222C27 100%);
}
.ph-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.ph-label {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2;
  font-family: var(--f-mono); font-size: .7rem; color: var(--ink-2);
  border: 1px dashed rgba(237,232,223,.35); padding: .35rem .6rem; border-radius: 2px;
  background: rgba(14,19,26,.5);
}
.ph.is-loaded .ph-label { display: none; }

/* ---------- 1. hero ---------- */
.hero { padding: 0; border-top: 0; justify-content: flex-end; }
.hero .ph { position: absolute; inset: 0; }
.hero .ph-img { background-image: url("img/hero.png"); background-position: 70% center; }
.hero .ph::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,19,26,.94) 0%, rgba(14,19,26,.78) 38%, rgba(14,19,26,.15) 70%, rgba(14,19,26,0) 100%),
    linear-gradient(0deg, rgba(14,19,26,.95) 0%, rgba(14,19,26,0) 40%);
}
.hero .ph-label { top: 1.25rem; bottom: auto; right: 1.25rem; }
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 5rem var(--pad-x) clamp(2rem, 5vh, 3.5rem);
}
@media (min-width: 1400px) { .hero-inner { padding-left: 0; padding-right: 0; } }
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--amber-ink); }
.hero .sub {
  font-family: var(--f-head); font-weight: 400; font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem);
  color: var(--ink-2); margin: 1.25rem 0 0; max-width: 34ch; line-height: 1.25;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem;
  font-family: var(--f-mono); font-size: .78rem; color: var(--ink-2); letter-spacing: .06em;
}
.hero-meta span:first-child { color: var(--amber-ink); }
.hero-stats {
  list-style: none; margin: clamp(2.5rem, 6vh, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid rgba(237,232,223,.18);
}
.hero-stats li { padding: 1rem 1rem 0 0; border-right: 1px solid rgba(237,232,223,.12); }
.hero-stats li:nth-child(2n) { border-right: 0; padding-left: 1rem; }
@media (min-width: 760px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); max-width: 980px; }
  .hero-stats li, .hero-stats li:nth-child(2n) { padding: 1.1rem 1.25rem 0; border-right: 1px solid rgba(237,232,223,.12); }
  .hero-stats li:first-child { padding-left: 0; }
  .hero-stats li:last-child { border-right: 0; }
}
.hero-stats b { display: block; font-family: var(--f-head); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hero-stats span { font-size: .82rem; color: var(--ink-2); }

.scroll-hint {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 2rem;
  font-family: var(--f-mono); font-size: .72rem; color: var(--muted); text-decoration: none;
}
.scroll-hint i {
  width: 1px; height: 28px; background: linear-gradient(var(--amber), transparent);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint i { animation: none; } }

/* ---------- 2. Glob Cars dziś ---------- */
.brands { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.brands li {
  display: grid; grid-template-columns: minmax(7.5rem, 11rem) 1fr; gap: 1rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .25s var(--ease);
}
.brands li:hover { background: var(--surface); padding-left: .6rem; }
.brands b { font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; }
.brands span { color: var(--ink-2); font-size: .92rem; }
.brands .hl b { color: var(--amber-ink); }
.facts-inline { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1.5rem 0 0; font-size: .9rem; color: var(--ink-2); }
.facts-inline b { color: var(--ink); font-family: var(--f-mono); font-weight: 500; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.panel h3 { margin-bottom: .35rem; }
.panel .src { margin-bottom: 1rem; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-mono); font-size: 11px; fill: var(--muted); }
.chart .val { fill: var(--ink); font-size: 13px; font-weight: 500; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--muted); stroke-width: 1; }
.chart.lg-t text { font-size: 15px; }
.chart.lg-t .val { font-size: 19px; }

.margin-callout {
  margin-top: 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  border-top: 1px solid var(--line); padding-top: 1.25rem;
}
.margin-callout b { font-family: var(--f-head); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); color: var(--amber-ink); line-height: 1; letter-spacing: -.03em; }
.margin-callout p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* ---------- 3. region ---------- */
.region-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
  .region-grid { grid-template-columns: 1fr 1fr; }
  .region-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 1240px) {
  .region-grid { grid-template-columns: 1.15fr 1fr 1fr; }
  .region-grid > :first-child { grid-column: auto; }
}
.split > *, .region-grid > *, .moto-grid > *, .fc-grid > *, .lever > *, .head-row > *, .opp-top > * { min-width: 0; }
.powiaty { list-style: none; padding: 0; margin: 0 0 1rem; columns: 2; column-gap: 1.5rem; font-size: .88rem; }
.powiaty li { break-inside: avoid; display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px dotted var(--line); }
.powiaty .num { color: var(--ink-2); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.bars li { display: grid; grid-template-columns: 6.6rem 1fr 3.2rem; align-items: center; gap: .6rem; font-size: .82rem; }
.bars .t { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .b { position: relative; height: 10px; background: rgba(237,232,223,.06); border-radius: 0 4px 4px 0; }
.bars .b i {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%);
  background: var(--sage); border-radius: 0 4px 4px 0;
  transform-origin: left; transition: transform 1s var(--ease);
}
.bars .v { font-family: var(--f-mono); text-align: right; color: var(--ink); }
.bars .ref .t, .bars .ref .v { color: var(--muted); }
.bars .ref .b i { background: var(--muted); }
.bars .hot .b i { background: var(--amber); }
.bars .hot .t { color: var(--ink); }
.bars-wide li { grid-template-columns: 7.5rem 1fr 4.2rem; }

.paper .bars .b { background: rgba(26,31,38,.08); }
.paper .bars .t { color: #343B44; }
.paper .bars .v { color: var(--paper-ink); }
.paper .bars .b i { background: var(--sage-deep); }
.paper .bars .ref .b i { background: #8C939B; }
.paper .bars .hot .b i { background: #C4661A; }
.paper .bars .ref .t, .paper .bars .ref .v { color: var(--paper-muted); }

.takeaway {
  margin-top: clamp(1.5rem, 4vh, 2.5rem); padding: 1rem 1.25rem; border-left: 3px solid var(--amber);
  background: rgba(232,134,42,.07); max-width: 80ch; font-size: .95rem;
}
.takeaway p { margin: 0; color: var(--ink); }
.paper .takeaway { background: rgba(196,102,26,.08); border-left-color: #C4661A; }
.paper .takeaway p { color: var(--paper-ink); }

/* ---------- 4. rynek motoryzacyjny ---------- */
.big-num { font-family: var(--f-head); font-weight: 700; font-size: clamp(3rem, 2rem + 5vw, 6.5rem); letter-spacing: -.04em; line-height: .9; font-variation-settings: "wdth" 80; }
.big-num small { font-size: .32em; letter-spacing: 0; font-weight: 500; margin-left: .2em; }
.moto-grid { display: grid; gap: 1.25rem 2.5rem; }
@media (min-width: 760px) { .moto-grid { grid-template-columns: 1fr 1fr; } .moto-grid > :first-child { grid-column: 1 / -1; } }
@media (min-width: 1240px) { .moto-grid { grid-template-columns: 4fr 5fr 4fr; } .moto-grid > :first-child { grid-column: auto; } }
.paper .panel { background: #F7F3EC; border-color: var(--paper-2); }
.paper .chart text { fill: var(--paper-muted); }
.paper .chart .val { fill: var(--paper-ink); }
.age-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .76rem; color: var(--paper-muted); margin: .25rem 0 .75rem; }
.age-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.stack li { grid-template-columns: 6.6rem 1fr 3.2rem; }
.stack .b { display: flex; gap: 2px; background: transparent; }
.stack .b i { position: static; display: block; height: 100%; border-radius: 0; transform: none; }
.stack .b i.y { width: calc(var(--y) * 1%); background: #C4661A; border-radius: 0; }
.stack .b i.o { width: calc(var(--v) * 1%); background: #4B5563; border-radius: 0 4px 4px 0; }
.stack .b i.m { flex: 1; background: rgba(26,31,38,.12); }
.est-box { border: 1px solid var(--paper-2); border-radius: 4px; padding: 1.25rem; background: #F7F3EC; }
.est-box .big-num { font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.8rem); }

/* ---------- 5. infrastruktura ---------- */
.band {
  position: relative; min-height: clamp(220px, 34vh, 360px); border-radius: 4px; margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.band .ph-img { background-image: url("img/region.png"); }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14,19,26,.9) 0%, rgba(14,19,26,.2) 55%, rgba(14,19,26,0) 100%);
}
.band-text { position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 2; max-width: 40rem; }
.band-text h2 { max-width: 16ch; }
.band .ph-label { top: 1rem; bottom: auto; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 .9rem 1.75rem; font-size: .9rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--muted);
}
.timeline li.open::before { background: var(--sage); border-color: var(--sage); }
.timeline li.warn::before { border-color: var(--amber); }
.timeline li.far::before { border-style: dashed; }
.timeline .when { font-family: var(--f-mono); font-size: .76rem; color: var(--amber-ink); display: block; }
.timeline li.open .when { color: var(--sage); }
.timeline .what { color: var(--ink); }
.timeline .st { color: var(--ink-2); font-size: .84rem; }

.cat-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-grid > div { background: var(--surface); padding: 1.1rem 1.25rem; }
.cat-grid .k { font-family: var(--f-head); font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; display: block; }
.cat-grid p { font-size: .86rem; color: var(--ink-2); margin: .35rem 0 0; }
.cat-grid .wide { grid-column: 1 / -1; }

/* ---------- 6. konkurencja ---------- */
.map-wrap { position: relative; }
.map text { font-family: var(--f-body); font-size: 13px; fill: var(--ink); }
.map .lbl-s { font-family: var(--f-mono); font-size: 10.5px; fill: var(--muted); }
.map .road { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.map .s19 { fill: none; stroke: var(--sage); stroke-width: 3; stroke-linecap: round; }
.map .s19-plan { fill: none; stroke: var(--sage); stroke-width: 2; stroke-dasharray: 5 6; opacity: .75; }
.map .node-gc { fill: var(--amber); }
.map .node-aso { fill: var(--ink-2); }
.map .node-none { fill: var(--night); stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.map .halo { fill: rgba(232,134,42,.12); stroke: rgba(232,134,42,.45); stroke-width: 1; }
.map .halo-gap { fill: rgba(157,181,154,.08); stroke: rgba(157,181,154,.5); stroke-width: 1; stroke-dasharray: 2 4; }
.map-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .76rem; color: var(--ink-2); margin-top: .5rem; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }

.auth { width: 100%; border-collapse: collapse; font-size: .84rem; }
.auth caption { text-align: left; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); padding-bottom: .5rem; letter-spacing: .06em; text-transform: uppercase; }
.auth th, .auth td { text-align: left; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.auth th { font-weight: 500; color: var(--ink-2); font-size: .74rem; font-family: var(--f-mono); }
.auth td:first-child { font-weight: 600; white-space: nowrap; }
.auth tr.gc td { color: var(--amber-ink); }
.auth tr.gc td:first-child { color: var(--amber-ink); }
.auth tr.gap td { color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.gaps { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.gaps li {
  font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; padding: .35rem .8rem;
  border: 1px dashed var(--sage); color: var(--sage); border-radius: 2px;
}
.cn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; }
.cn-head .big-num { font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); color: var(--ink); }
.cn-head .delta { font-family: var(--f-mono); color: var(--amber-ink); font-size: 1.1rem; }

@media (max-width: 600px) {
  .map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.5rem; padding: 0 .5rem; }
  .map-scroll svg { min-width: 540px; }
  .fc text { font-size: 19px; }
  .fc .lab { font-size: 21px; }
  .fc .lab-s { font-size: 16px; }
}

/* ---------- 7. szanse ---------- */
.opp-top {
  display: grid; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--paper-ink); color: var(--ink); border-radius: 4px; margin-bottom: 1.25rem;
}
@media (min-width: 900px) { .opp-top { grid-template-columns: auto 1.3fr 1fr; align-items: start; } }
.opp-top .rank { font-family: var(--f-head); font-size: clamp(3.5rem, 2.5rem + 4vw, 6rem); line-height: .8; color: var(--amber); font-weight: 700; }
.opp-top h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); margin-bottom: .6rem; }
.opp-top p { color: var(--ink-2); font-size: .92rem; }
.opp-top .pool { font-family: var(--f-head); font-size: clamp(2.3rem, 1.6rem + 2.5vw, 3.6rem); font-weight: 700; color: var(--amber-ink); line-height: 1; letter-spacing: -.03em; display: block; }
.opp-top .risk { border-top: 1px solid rgba(237,232,223,.18); padding-top: .75rem; font-size: .86rem; color: var(--ink-2); }
.opp-top .tag-est { color: var(--sage); }

.opp-list { list-style: none; margin: 0; padding: 0; counter-reset: opp 1; }
.opp-list li {
  display: grid; gap: .35rem 1.5rem; grid-template-columns: 2.2rem 1fr;
  padding: .95rem 0; border-bottom: 1px solid var(--paper-2);
  transition: background .25s;
}
.opp-list li:hover { background: rgba(26,31,38,.035); }
.opp-list .r { font-family: var(--f-mono); color: #A2520E; font-size: .9rem; padding-top: .15rem; grid-row: span 3; }
.opp-list h3 { font-size: 1.05rem; }
.opp-list .why { font-size: .88rem; color: #343B44; margin: 0; max-width: none; }
.opp-list .rk { font-size: .84rem; color: var(--paper-muted); margin: 0; max-width: none; }
.opp-list .rk::before { content: "Ryzyko: "; font-weight: 600; color: #8A2F1C; }
.opp-list .h { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; }
.hz { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: .1em .45em; border-radius: 2px; }
.hz-now { background: #A2520E; color: #fff; }
.hz-next { background: #3F5B40; color: #fff; }
.hz-opt { background: transparent; color: var(--paper-muted); border: 1px solid #8C939B; }
@media (min-width: 1100px) {
  .opp-list li { grid-template-columns: 2.2rem minmax(14rem, 1.1fr) 1.6fr 1.2fr; align-items: baseline; }
  .opp-list .r { grid-row: auto; }
}
.opp-cols { display: none; }
@media (min-width: 1100px) {
  .opp-cols {
    display: grid; grid-template-columns: 2.2rem minmax(14rem, 1.1fr) 1.6fr 1.2fr; gap: 1.5rem;
    font-family: var(--f-mono); font-size: .7rem; color: var(--paper-muted); text-transform: uppercase; letter-spacing: .08em;
    padding-bottom: .4rem; border-bottom: 2px solid var(--paper-ink);
  }
}
.hz-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .8rem; color: var(--paper-muted); margin: 0 0 1rem; }

/* ---------- 8. prognozy ---------- */
.fc-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1080px) { .fc-grid { grid-template-columns: 1.7fr 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .82rem; color: var(--ink-2); margin: .25rem 0 .75rem; }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.legend svg { width: 26px; height: 8px; }
.fc .line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.fc .hist { stroke: var(--ink); }
.fc .pes { stroke: var(--s-pes); stroke-dasharray: 2 5; }
.fc .base { stroke: var(--s-base); }
.fc .opt { stroke: var(--s-opt); stroke-dasharray: 9 5; }
.fc .pt { stroke: var(--surface); stroke-width: 2; }
.fc .lab { font-size: 12px; font-weight: 500; fill: var(--ink); }
.fc .lab-s { font-size: 10.5px; fill: var(--ink-2); }
.fc .fc-zone { fill: rgba(237,232,223,.025); }
.fc .cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; transition: opacity .15s; }
.fc .hit { fill: transparent; cursor: crosshair; }
.fc-wrap { position: relative; }
.tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 11rem;
  background: var(--night); border: 1px solid var(--line); border-radius: 4px; padding: .55rem .7rem;
  font-size: .8rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); opacity: 0; transform: translateY(4px);
  transition: opacity .15s, transform .15s;
}
.tip.on { opacity: 1; transform: none; }
.tip b { font-family: var(--f-mono); display: block; margin-bottom: .25rem; color: var(--ink); }
.tip div { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-2); }
.tip div span:last-child { font-family: var(--f-mono); color: var(--ink); }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; }

.scen { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.scen li { border-left: 3px solid var(--c); padding: .2rem 0 .2rem .9rem; }
.scen h3 { font-size: 1rem; display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.scen h3 .num { font-size: .9rem; color: var(--ink-2); font-weight: 400; }
.scen p { font-size: .84rem; color: var(--ink-2); margin: .25rem 0 0; }
.idx { margin-top: 1.25rem; }
.idx-row { display: grid; grid-template-columns: 6.5rem 1fr 2.6rem; gap: .6rem; align-items: center; font-size: .82rem; margin-bottom: .45rem; }
.idx-row .b { position: relative; height: 12px; }
.idx-row .b i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) / 170 * 100%); background: var(--c); border-radius: 0 4px 4px 0; }
.idx-row .b::after { content: ""; position: absolute; left: calc(100 / 170 * 100%); top: -4px; bottom: -4px; width: 1px; background: var(--ink); }
.idx-row .v { font-family: var(--f-mono); text-align: right; }
.idx-note { font-size: .74rem; color: var(--muted); margin-left: 7.1rem; }

details.data { margin-top: 1rem; font-size: .84rem; overflow-x: auto; }
details.data summary { cursor: pointer; color: var(--ink-2); font-family: var(--f-mono); font-size: .76rem; }
details.data table { width: 100%; border-collapse: collapse; margin-top: .5rem; font-family: var(--f-mono); font-size: .78rem; }
details.data th, details.data td { padding: .3rem .4rem; text-align: right; border-bottom: 1px solid var(--line); }
details.data th:first-child, details.data td:first-child { text-align: left; }

/* ---------- 9. dźwignia ---------- */
.lever { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 1000px) { .lever { grid-template-columns: 5fr 7fr; } }
.lever-eq { display: grid; gap: .25rem; margin: 1.5rem 0; }
.lever-eq .row { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.lever-eq .big { font-family: var(--f-head); font-weight: 700; font-size: clamp(2.8rem, 2rem + 3.5vw, 5.2rem); letter-spacing: -.04em; line-height: 1; }
.lever-eq .big.acc { color: var(--amber-ink); }
.lever-eq .op { font-family: var(--f-mono); color: var(--muted); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem); }
.lever-eq .cap { font-size: .9rem; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3rem 1fr; gap: .25rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--f-mono); color: var(--amber-ink); font-size: .85rem; padding-top: .15rem; grid-row: span 2; }
.steps h3 { font-size: 1.02rem; }
.steps p { font-size: .87rem; color: var(--ink-2); margin: .2rem 0 0; }
.ai {
  margin-top: 1.5rem; border: 1px solid rgba(157,181,154,.4); border-radius: 4px; padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(180deg, rgba(157,181,154,.07), rgba(157,181,154,0));
}
.ai h3 { font-size: 1.05rem; color: var(--sage); margin-bottom: .6rem; }
.ai ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
@media (min-width: 640px) { .ai ul { grid-template-columns: 1fr 1fr; } }
.ai li { font-size: .86rem; color: var(--ink-2); padding-left: 1rem; position: relative; }
.ai li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 2px; background: var(--sage); }
.ai li b { color: var(--ink); font-weight: 600; }
.ai .note { margin: .9rem 0 0; }

/* ---------- 10. sygnały ---------- */
.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--paper-2); border: 1px solid var(--paper-2); }
@media (min-width: 760px) { .signals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .signals { grid-template-columns: repeat(5, 1fr); } }
.signals li { background: var(--paper); padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; transition: background .25s; }
.signals li:hover { background: #F7F3EC; }
.signals .n { font-family: var(--f-mono); font-size: .75rem; color: #A2520E; }
.signals h3 { font-size: 1.02rem; }
.signals p { font-size: .84rem; margin: 0; }
.signals .bad, .signals .good { font-size: .78rem; font-family: var(--f-mono); }
.signals .bad { color: #8A2F1C; }
.signals .good { color: #3F5B40; }

.footer { margin-top: clamp(2rem, 6vh, 4rem); display: grid; gap: 1.5rem; border-top: 2px solid var(--paper-ink); padding-top: 1.25rem; }
@media (min-width: 900px) { .footer { grid-template-columns: 2fr 1fr; } }
.footer p { font-size: .8rem; color: var(--paper-muted); max-width: 90ch; }
.footer .by { font-family: var(--f-head); font-size: 1.4rem; font-weight: 600; color: var(--paper-ink); }
.footer .by span { display: block; font-family: var(--f-mono); font-size: .72rem; font-weight: 400; color: var(--paper-muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.font-test { font-family: var(--f-head); font-size: .95rem; color: var(--paper-muted); margin: 0; }

/* ---------- scroll-reveal (tylko z JS i bez reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .reveal-ready .rv.in { opacity: 1; transform: none; }
  .reveal-ready .bars .rv-bar i { transform: scaleX(0); }
  .reveal-ready .bars.in .rv-bar i, .reveal-ready .in .bars .rv-bar i { transform: scaleX(1); }
  .reveal-ready .fc .line.draw { stroke-dashoffset: var(--len); }
}

@media print {
  .dots, .progress, .counter, .scroll-hint { display: none !important; }
  .slide { min-height: auto; break-inside: avoid; }
}
