/* BSK TECH – wersja 3: minimalistyczny „instrument” z modelem przypiętym do ekranu */

/* Inter (SIL OFL 1.1) z naszego serwera – otwarty krój najbliższy Apple SF Pro,
   ten sam na każdym urządzeniu (Mac, iPhone, Windows, Android). */
@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* kolory logo BSK TECH */
  --bg: #000;
  --ink: #f0f0f0;
  --ink-2: #a9aaac;
  --ink-3: #6f7072;
  --line: #1f1f20;
  --edge: #333335;
  --red: #e30016;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--red); }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
sup { font-size: .5em; line-height: 0; vertical-align: super; }
sup a { text-decoration: none; color: var(--ink-3); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #000; }
.skip:focus { top: 16px; }

/* ---------- etykiety i typografia ---------- */

.label {
  font: 600 12px/1.4 var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.title {
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.05;
  letter-spacing: -.028em;
}
/* wyróżnienie jak w prezentacjach Apple: druga część zdania w szarości */
.title em { font-style: normal; color: var(--ink-3); }
.title--info { font-size: clamp(34px, 4.4vw, 60px); max-width: 18ch; }
.lede { max-width: 36ch; color: var(--ink-2); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; }
.fine { color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.fine--block { max-width: 78ch; margin-top: 40px; }

/* ---------- pasek ---------- */

.bar {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad);
  pointer-events: none;
}
.bar a { pointer-events: auto; }
/* przyciemnienie pod paskiem: tekst przewijany pod logo nie miesza się z nim */
.bar::before {
  content: "";
  position: absolute; inset: 0 0 -36px;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, .82), rgba(0, 0, 0, .55) 55%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent);
  pointer-events: none;
}
.bar--solid::before { display: none; }
.bar__logo img { width: 128px; }
.bar__cta { font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.bar__cta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.bar__cta--plain::before { display: none; }
.bar__right { display: flex; align-items: center; gap: 26px; }
/* napisy w pasku wyrównane wysokością wersalików do logo (bez zapasu na ogonki liter) */
.bar__lang, .bar__cta { line-height: 1; text-box: trim-both cap alphabetic; }
.bar__logo { display: flex; }
/* przełącznik języka: drobne wersaliki, jak etykiety */
.bar__lang { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--ink-3); text-decoration: none; }
.bar__lang:hover { color: var(--ink); }
.bar__cta:hover { text-decoration: underline; text-decoration-color: var(--red); }
/* zakładki działów strony */
.bar__nav { display: flex; gap: 24px; pointer-events: auto; }
.bar__nav a { font-size: 13px; line-height: 1; text-box: trim-both cap alphabetic; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.bar__nav a:hover { color: var(--ink); }
/* węższy ekran: zakładki w drugim rzędzie, przewijane w bok */
@media (max-width: 1100px) {
  .bar { flex-wrap: wrap; row-gap: 20px; }
  .bar__nav { order: 3; flex: 0 0 calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad); overflow-x: auto; scrollbar-width: none; }
  .bar__nav::-webkit-scrollbar { display: none; }
}


/* ---------- scena z modelem ---------- */

.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--show, 1); }
.stage__model {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: rgba(227, 0, 22, .7);
  --progress-bar-height: 1px;
}
.stage__vapor { position: absolute; inset: 0; width: 100%; height: 100%; }
/* delikatna winieta, żeby tekst zawsze miał kontrast */
.stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .7)); }

main, .foot { position: relative; z-index: 1; }

/* ---------- odczyty ---------- */

/* ramka odczytów w stylu liquid glass, jak gałki suwaków */
.hud {
  position: fixed; left: var(--pad); bottom: 24px; z-index: 20;
  padding: 14px 20px;
  border-radius: 22px;
  /* ciemny środek, a cała uwaga na szklanym brzegu */
  background: rgba(8, 8, 10, .06);
  -webkit-backdrop-filter: blur(3px) saturate(150%); backdrop-filter: blur(3px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 0 9px rgba(255, 255, 255, .07),
    0 12px 32px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .4);
  opacity: var(--hud, 0);
  font: 400 13px/1.55 var(--font);
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  pointer-events: none;
}
/* blask tylko przy brzegu, środek zostaje ciemny */
.hud::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 22%),
    linear-gradient(0deg, rgba(255, 255, 255, .06), transparent 18%);
}
/* świecący brzeg szkła: najjaśniejszy w lewym górnym i prawym dolnym rogu */
.hud::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .18) 28%, rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, .2) 78%, rgba(255, 255, 255, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hud dl { position: relative; z-index: 1; display: grid; gap: 4px; }
.hud div { display: grid; grid-template-columns: 13ch auto; }
.hud dt { color: var(--ink-2); text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: .12em; align-self: center; }
.hud dd { color: #fff; font-variant-numeric: tabular-nums; }
.hud sup { font-size: .8em; }


/* ---------- rozdziały opowieści ---------- */

.ch { min-height: 130vh; display: flex; align-items: center; padding: 0 var(--pad); }
.ch--hero { min-height: 100vh; min-height: 100svh; }
.ch__text { width: min(680px, 50%); opacity: var(--o, 1); transform: translateY(var(--y, 0px)); will-change: opacity, transform; }
.ch--right { justify-content: flex-end; }
.ch .label { margin-bottom: 26px; }
.ch .lede { margin-top: 28px; }
.ch--hero .ch__text { width: min(820px, 62%); }
.ch--hero .title { font-size: clamp(52px, 6.8vw, 104px); }
.hint { margin-top: 64px; font: 600 11px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 14px; }
.hint::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--ink-3), transparent); animation: hint 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 760px) {
  .ch { align-items: flex-end; padding-bottom: 18vh; }
  .ch--right { justify-content: flex-start; }
  .ch__text { width: 100%; }
  .ch__text::before { content: ""; position: absolute; inset: auto 0 0; height: 70vh; z-index: -1; background: linear-gradient(transparent, rgba(0, 0, 0, .85) 45%); pointer-events: none; }
  .ch { position: relative; }
  .ch--hero { align-items: flex-start; padding-top: 18vh; padding-bottom: 0; }
  .ch--hero .ch__text::before { display: none; }
  .hud { bottom: 18px; font-size: 11px; }
}

/* ---------- sekcje informacyjne ---------- */

.info { padding: 22vh 0; }
.info .wrap { padding: 0 var(--pad); max-width: 1240px; margin: 0 auto; }
.info .label { margin-bottom: 26px; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px 32px; }
.nums div { border-top: 1px solid var(--edge); padding-top: 22px; container-type: inline-size; }
.nums div:nth-child(2) { transition-delay: .08s; }
.nums div:nth-child(3) { transition-delay: .16s; }
.nums div:nth-child(4) { transition-delay: .24s; }
.nums div:nth-child(5) { transition-delay: .32s; }
/* 40cqi: najszersza liczba (2007) mieści się w kolumnie także przy pięciu kolumnach */
.nums dt { font-weight: 600; font-size: clamp(56px, 7vw, 104px); font-size: min(clamp(56px, 7vw, 104px), 40cqi); line-height: 1; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
/* jednostka mniejsza i w tej samej linii, żeby wszystkie liczby miały jedną wysokość */
.nums dt { white-space: nowrap; }
.nums .unit { font-size: .4em; letter-spacing: -.01em; }
.nums dd { margin-top: 16px; color: var(--ink-2); font-size: 15px; max-width: 22ch; }
@media (max-width: 820px) { .nums { grid-template-columns: 1fr 1fr; } }

/* koszt: cienkie linie zamiast słupków */
.lines { width: 100%; max-width: 900px; margin-top: 56px; border-collapse: collapse; }
.lines tr { border-top: 1px solid var(--line); }
.lines th { width: 36%; padding: 16px 24px 16px 0; text-align: left; font-weight: 400; color: var(--ink-2); font-size: 15px; }
.lines td { padding: 16px 0; display: flex; align-items: center; gap: 16px; }
.lines i {
  display: block; height: 1px;
  width: calc((100% - 4rem) * var(--v) / var(--max, 4.62));
  background: var(--ink-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.lines.is-in i { transform: none; }
.lines tr:nth-child(2) i { transition-delay: .05s; }
.lines tr:nth-child(3) i { transition-delay: .1s; }
.lines tr:nth-child(4) i { transition-delay: .15s; }
.lines tr:nth-child(5) i { transition-delay: .2s; }
.lines tr:nth-child(6) i { transition-delay: .25s; }
.lines tr:nth-child(7) i { transition-delay: .3s; }
.lines span { font-size: 15px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines .is-us th { color: var(--ink); }
.lines .is-us i { background: var(--red); height: 2px; }
@media (max-width: 600px) {
  .lines tr { display: block; padding: 12px 0; }
  .lines th { display: block; width: auto; padding: 0 0 8px; }
  .lines td { padding: 0; }
}

/* kalkulator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 120px; padding-top: 48px; border-top: 1px solid var(--edge); }
.field { display: grid; gap: 10px; margin-top: 28px; }
.field > span { color: var(--ink-2); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.field output { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
/* miejsce na najdłuższą kwotę („30 000 zł” / „30,000 PLN”), żeby etykieta nie przeskakiwała przy suwaku */
#calc-cost-out { min-width: 4.6em; text-align: right; }
:lang(en) #calc-cost-out { min-width: 5.75em; }
#calc-price-row > span { display: block; }  /* „Cena paliwa (zł/kWh)” jako jeden tekst, bez rozsuwania nawiasu */
.calc select, .calc input[type="number"] {
  width: 100%; padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--edge); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 18px;
  appearance: none; -webkit-appearance: none;
}
.calc select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 4px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.calc select option { background: #111; }
/* COP pompy w kalkulatorze: stała wartość, tylko do odczytu */
.calc input[readonly] { border-bottom-color: transparent; color: var(--ink-2); pointer-events: none; -moz-appearance: textfield; }
.calc input[readonly]::-webkit-inner-spin-button, .calc input[readonly]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* suwaki w stylu liquid glass: szklana gałka-kapsułka nad torem wypełnionym do pozycji (--p ustawia skrypt) */
input[type="range"] {
  --p: 50%;
  width: 100%; height: 24px; margin: 0; padding: 0;
  background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, #ff3b4d, var(--red)) 0 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .55), inset 0 -.5px 0 rgba(255, 255, 255, .08);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 19px; margin-top: -7px; border-radius: 999px;
  border: .5px solid rgba(255, 255, 255, .55);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .62), rgba(255, 255, 255, .08) 58%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .85),
    inset 0 -1.5px 3px rgba(255, 255, 255, .22),
    inset 0 0 0 .5px rgba(255, 255, 255, .15),
    0 6px 16px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(3px) saturate(180%); backdrop-filter: blur(3px) saturate(180%);
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s;
}
input[type="range"]:active::-webkit-slider-thumb {
  width: 38px; height: 24px; margin-top: -9.5px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .04) 58%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02));
}
input[type="range"]::-moz-range-track {
  height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .55);
}
input[type="range"]::-moz-range-progress { height: 5px; border-radius: 999px; background: linear-gradient(90deg, #ff3b4d, var(--red)); }
input[type="range"]::-moz-range-thumb {
  width: 30px; height: 19px; border-radius: 999px; box-sizing: border-box;
  border: .5px solid rgba(255, 255, 255, .55);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .62), rgba(255, 255, 255, .08) 58%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .85), inset 0 -1.5px 3px rgba(255, 255, 255, .22), 0 6px 16px rgba(0, 0, 0, .5);
  transition: width .25s var(--ease), height .25s var(--ease);
}
input[type="range"]:active::-moz-range-thumb { width: 38px; height: 24px; }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), inset 0 1px 1px rgba(255, 255, 255, .85), 0 6px 16px rgba(0, 0, 0, .5); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), inset 0 1px 1px rgba(255, 255, 255, .85), 0 6px 16px rgba(0, 0, 0, .5); }
.more { margin-top: 28px; }
.more summary { cursor: pointer; font: 600 11px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.more .fine { margin-top: 18px; }
/* układ wyniku nie zmienia się przy suwaku: cyfry o stałej szerokości, każda część w swojej linii, kwota zawsze mieści się w kolumnie (18cqi: „23,170 PLN”) */
.calc__out { container-type: inline-size; font-variant-numeric: tabular-nums lining-nums; }
.calc__out p { white-space: pre-line; }
.calc__save { margin-top: 18px; font-weight: 600; font-size: clamp(64px, 8vw, 120px); font-size: min(clamp(64px, 8vw, 120px), 18cqi); line-height: 1; letter-spacing: -.03em; white-space: nowrap !important; }
.calc__pct { margin-top: 14px; font-size: 18px; color: var(--ink); }
.calc__out .fine { margin-top: 10px; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; gap: 48px; } }

/* zalety */
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.list div { display: grid; grid-template-columns: 15ch 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.list dt { font-size: 17px; font-weight: 600; line-height: 1.3; }
.list dd { color: var(--ink-2); font-size: 15px; }
/* zastosowanie: trzy grupy odbiorców */
.uses { margin-top: 140px; }
.uses .label { margin-bottom: 22px; }
.uses__title { font-weight: 600; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -.025em; max-width: 18ch; }
.uses__title em { font-style: normal; color: var(--ink-3); }
.uses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin-top: 56px; }
.uses__grid > div { padding-top: 24px; border-top: 1px solid var(--edge); }
.uses__grid > div:nth-child(2) { transition-delay: .08s; }
.uses__grid > div:nth-child(3) { transition-delay: .16s; }
.uses__grid h4 { margin: 0 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.uses__grid li { color: var(--ink-2); font-size: 17px; line-height: 2; }
@media (max-width: 760px) { .uses__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 900px) { .list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .list div { grid-template-columns: 1fr; gap: 6px; } }

/* modele */
.specs { width: 100%; max-width: 900px; margin-top: 56px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.specs th, .specs td { padding: 16px 16px 16px 0; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.specs thead th { border-top: 0; font-weight: 600; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.02em; padding-bottom: 20px; }
.specs tbody th { font-weight: 400; color: var(--ink-3); font-size: 14px; width: 34%; }
.specs td { font-size: 17px; }
.versions { margin-top: 48px; color: var(--ink-2); max-width: 80ch; }
.versions .label { margin-right: 14px; }
@media (max-width: 600px) { .specs tbody th { width: 30%; font-size: 13px; } .specs td { font-size: 15px; } }

/* wizualizator */
.viz { margin-top: 48px; }
.viz__stage { position: relative; display: grid; place-items: center; min-height: 380px; border: 1px solid var(--edge); border-radius: 20px; text-align: center; overflow: hidden; user-select: none; -webkit-user-select: none; background: rgba(255, 255, 255, .015); }
.viz__empty .fine { margin-top: 16px; }
.viz__stage.has-photo { display: block; min-height: 0; width: fit-content; max-width: 100%; border: 0; cursor: crosshair; }
.viz__photo { width: auto; max-width: 100%; max-height: 78vh; }
.viz__pump { position: absolute; aspect-ratio: 600 / 891; transform: translate(-50%, -100%); cursor: grab; touch-action: none; }
.viz__pump:active { cursor: grabbing; }
.viz__pump > * { display: block; width: 100%; height: 100%; pointer-events: none; }
.viz__pump.is-3d { aspect-ratio: 1; }
.viz__pump model-viewer { position: absolute; inset: 0; background: transparent; --poster-color: transparent; --progress-bar-height: 0; }
.viz__error { margin-top: 16px; color: var(--red); }
.viz__controls { display: flex; flex-wrap: wrap; align-items: end; gap: 20px 40px; margin-top: 28px; }
.viz__controls label { display: grid; gap: 8px; flex: 1; min-width: 160px; font: 600 11px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.viz .fine { margin-top: 16px; }

.btn { display: inline-block; padding: 14px 28px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--ink); color: #000; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--red); }

/* kontakt */
.info--contact { min-height: 100vh; display: flex; align-items: center; }
.info--contact .wrap { width: 100%; }
.info--contact .lede { margin-top: 32px; }
.contact { display: flex; flex-wrap: wrap; gap: 12px 48px; margin-top: 56px; font-weight: 500; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -.01em; }
.info--contact .fine { margin-top: 24px; }

/* stopka */
.foot { padding: 48px var(--pad) 36px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }
.foot ol { list-style: decimal; padding-left: 16px; display: grid; gap: 8px; max-width: 110ch; }
.foot p { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.foot a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .lines i { transition: none; opacity: 1; transform: none; }
  .hint::after { animation: none; }
}

/* ---------- polityka prywatności (i inne dokumenty) ---------- */

.bar--solid { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-block: 20px; }
.doc { padding: 180px var(--pad) 160px; max-width: 1240px; margin: 0 auto; }
.doc__head .label { margin-bottom: 26px; }
.doc__head .title { font-size: clamp(44px, 6vw, 84px); }
.doc__head .lede { margin-top: 28px; max-width: 46ch; }
.doc__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 80px; margin-top: 120px; }
.doc__toc { position: sticky; top: 120px; align-self: start; }
.doc__toc .label { margin-bottom: 18px; }
.doc__toc ol { counter-reset: toc; display: grid; gap: 10px; }
.doc__toc li { counter-increment: toc; display: flex; gap: 14px; font-size: 14px; }
.doc__toc li::before { content: counter(toc, decimal-leading-zero); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.doc__toc a { color: var(--ink-2); text-decoration: none; }
.doc__toc a:hover { color: var(--ink); }
.doc__text { max-width: 68ch; counter-reset: sec; }
.doc__text section { counter-increment: sec; padding-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.doc__text section + section { margin-top: 64px; }
.doc__text h2 { display: flex; gap: 18px; align-items: baseline; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.doc__text h2::before { content: counter(sec, decimal-leading-zero); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.doc__text p, .doc__text li { color: var(--ink-2); line-height: 1.7; }
.doc__text p { margin-top: 18px; }
.doc__text ul { margin-top: 18px; display: grid; gap: 12px; }
.doc__text li { position: relative; padding-left: 22px; }
.doc__text li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--ink-3); }
/* miejsca do uzupełnienia przed publikacją – widoczne, żeby nie umknęły */
.todo { background: rgba(227, 0, 22, .14); color: var(--ink); padding: 1px 5px; border-radius: 4px; }
.doc-page .foot p { margin-top: 0; }
@media (max-width: 900px) {
  .doc { padding-top: 140px; }
  .doc__body { grid-template-columns: 1fr; gap: 56px; margin-top: 72px; }
  .doc__toc { position: static; }
}

/* nazwy rozdziałów i sekcji: większe, z przejściem od bieli logo do czerwieni BSK */
.ch .label, .info > .wrap > .label, .uses > .label {
  font-size: 15px;
  letter-spacing: .14em;
}
.ch .label, .info > .wrap > .label, .uses > .label, .calc__in > .label {
  display: inline-block;
  background: linear-gradient(90deg, var(--ink) 0%, #ff6b78 55%, var(--red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
