/* Układ: nocna jazda. Sekcje „przypięte” (sticky) i sterowane przewijaniem, jedna kolumna treści 1120 px.
   Kolory i kroje z systemu aplikacji (DESIGN.md w repo Rejs OS). Strona celowo tylko ciemna. */
:root {
  --bg: #0c131a;
  --bg-deep: #070c11;
  --surface: #141f2b;
  --surface-2: #1d2c3d;
  --line: #233446;
  --line-strong: #56708a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #7a8aa3;
  --sign: #f5be38;
  --sign-ink: #0c131a;
  --meter: #72f0c6;
  --meter-bg: #08100f;
  --green: #34d399;
  --red: #f87171;
  --blue: #7cb8ff;
  /* Chakra Petch i Space Grotesk nie mają cyrylicy: litery ukraińskie biorą Exo 2 i Manrope (ładowane tylko, gdy są potrzebne) */
  --display: 'Chakra Petch', 'Exo 2', 'Barlow Condensed', system-ui, sans-serif;
  --body: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --radius: 20px;
  --max: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--sign); }
:focus-visible { outline: 2px solid var(--sign); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sign);
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- Nagłówek ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.top {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em;
  background: var(--sign); color: var(--sign-ink); text-decoration: none;
  padding: 14px 22px; border-radius: 14px; border: 0;
  box-shadow: 0 6px 0 color-mix(in srgb, var(--sign) 55%, black);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 color-mix(in srgb, var(--sign) 55%, black); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); box-shadow: none; }
.btn.small { font-size: 14px; padding: 9px 14px; border-radius: 11px; box-shadow: 0 4px 0 color-mix(in srgb, var(--sign) 55%, black); }
.btn .play { width: 18px; height: 18px; }
@media (max-width: 760px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* Przełącznik języka PL / UA / EN: małe pigułki z flagą, zaraz na prawo od logo (tylko z JS — bez niego i tak nie działa) */
.brandbox { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.lang { display: none; }
.js .lang { display: flex; gap: 3px; }
.lang button {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 7px 0 4px; border: 1px solid var(--line); border-radius: 99px;
  font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; line-height: 1;
  color: var(--muted); background: color-mix(in srgb, var(--bg-deep) 70%, transparent); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.lang button::after { content: ""; position: absolute; inset: -10px -1px; } /* pole dotyku ok. 42 px wysokości */
.lang button:hover { color: var(--text); border-color: var(--line-strong); }
.lang button[aria-pressed="true"] { background: var(--sign); border-color: var(--sign); color: var(--sign-ink); }
.flag { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,.25); background-size: cover; background-position: center; }
.flag.pl { background: linear-gradient(#fff 50%, #dc143c 50%); }
.flag.uk { background: linear-gradient(#0057b7 50%, #ffd700 50%); }
.flag.en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E"); background-size: auto 100%; }
.lang button[aria-pressed="true"] .flag { box-shadow: 0 0 0 1px rgba(12,19,26,.35); }
.top .btn.small { white-space: nowrap; }
@media (max-width: 760px) { .top .wrap { gap: 10px; } }
/* Wąski telefon: w rzędzie z logo zostają same flagi (kod języka czyta czytnik ekranu z aria-label) */
@media (max-width: 440px) {
  .brandbox { gap: 7px; }
  .js .top .brand { font-size: 18px; gap: 7px; }
  .js .top .brand img { width: 26px; height: 26px; border-radius: 7px; }
  .lang button { width: 24px; height: 24px; padding: 0; justify-content: center; font-size: 0; letter-spacing: 0; gap: 0; }
  .lang button .flag { width: 16px; height: 16px; }
  .lang button[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--sign); }
  .top .btn.small { font-size: 12.5px; padding: 8px 10px; }
}

/* ---------- Silnik przewijania ---------- */
.scrolly { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.js [data-range] { opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 24px)); will-change: opacity, transform; }
.js [data-range][data-first] { --o: 1; }

/* ---------- 1. Jazda (hero) ---------- */
#jazda { height: 340vh; background: var(--bg-deep); }
#jazda canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#jazda .layer {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 64px;
}
#jazda .layer .wrap { width: 100%; }
.hero-title { font-size: clamp(44px, 7.4vw, 104px); font-weight: 700; letter-spacing: -0.01em; max-width: 11ch; }
.hero-title em { font-style: normal; color: var(--sign); }
/* Ukraiński tytuł ma dłuższe słowa: trochę mniejszy krój, żeby na telefonie zmieścił się nad wskazówką „przewiń” */
:root[lang="uk"] .hero-title { font-size: clamp(36px, 6.4vw, 92px); max-width: 13ch; }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34ch; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hint { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); color: var(--faint); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-hint i { width: 1.5px; height: 34px; background: linear-gradient(var(--sign), transparent); animation: drip 1.8s ease-in-out 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; } }
.costs { display: flex; flex-direction: column; gap: 4px; font-size: clamp(38px, 6.4vw, 88px); font-weight: 700; }
.costs span { display: block; opacity: var(--o, 0); transform: translateX(calc((1 - var(--o, 0)) * -40px)); }
.costs span b { color: var(--sign); font-weight: 700; }
.reveal-title { font-size: clamp(40px, 6vw, 84px); max-width: 13ch; }
.reveal-title em { font-style: normal; color: var(--meter); }

/* ---------- 2. Licznik ---------- */
#licznik { height: 360vh; }
#licznik .sticky { display: flex; align-items: center; }
#licznik .grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; width: 100%; padding-top: 48px; }
.phone { --rot: -16deg; width: min(330px, 100%); max-height: 80vh; max-height: 80svh; margin-inline: auto; transform: perspective(1400px) rotateY(var(--rot)) rotateX(4deg); }
.phone .glow { position: absolute; left: 2.2%; right: 2%; top: 65.7%; height: 18.3%; border-radius: 20px; box-shadow: 0 0 0 2px var(--meter), 0 0 50px 4px rgba(114,240,198,.45); opacity: var(--g, 0); }
.ledger h2 { font-size: clamp(32px, 4.2vw, 54px); margin-top: 10px; }
.meter {
  margin-top: 26px; background: var(--meter-bg); border: 1.5px solid #12302a; border-radius: var(--radius);
  padding: 18px 22px 20px;
}
.meter .lbl { font-size: 15px; color: color-mix(in srgb, var(--meter) 70%, var(--muted)); min-height: 1.6em; }
.meter .big { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 7vw, 92px); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; transition: color .4s, text-shadow .4s; }
.meter .big.done { color: var(--meter); text-shadow: 0 0 34px rgba(114,240,198,.35); }
.meter .split { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; font-size: 15px; color: var(--muted); }
.meter .split b { color: var(--text); font-family: var(--display); font-size: 18px; }
.lines { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.lines li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 9px 2px; border-bottom: 1px dashed var(--line);
  opacity: .22; transition: opacity .35s, transform .35s; transform: translateX(-6px);
}
.lines li.on { opacity: 1; transform: none; }
.lines li span { color: var(--muted); }
.lines li b { font-family: var(--display); font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines li.minus b { color: var(--red); }
.lines li.total { border-bottom: 0; }
.lines li.total b { color: var(--meter); }
.lines li.total span { color: var(--text); }
.note-ex { margin-top: 12px; font-size: 13px; color: var(--faint); }
@media (max-width: 760px) {
  #licznik .grid { grid-template-columns: 1fr; padding-top: 72px; }
  #licznik .phone { display: none; }
  .meter .big { font-size: 60px; }
  .lines li { padding: 6px 2px; }
  .lines li b { font-size: 17px; }
}

/* ---------- Telefon (makieta urządzenia) ---------- */
.device {
  --ar: 9 / 19.5;
  position: relative; aspect-ratio: var(--ar); padding: 1.9%;
  border-radius: 13% / 6%;
  background: linear-gradient(160deg, #161b21 0%, #0a0d10 50%, #12161b 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 60px 90px -40px rgba(0,0,0,.95),
    0 24px 40px -24px rgba(0,0,0,.7);
}
.device::before, .device::after {
  content: ""; position: absolute; right: -1.2%; width: 1.3%; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #0d1014, #262d35);
}
.device::before { top: 20%; height: 7%; }
.device::after { top: 31%; height: 13%; }
.device-screen {
  position: relative; height: 100%; display: flex; flex-direction: column;
  border-radius: 11.5% / 5.3%; overflow: hidden; background: var(--bg); padding-bottom: 5.5%;
  box-shadow: none;
}
.device-screen img { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.device-screen::before { /* pasek gestów Androida */
  content: ""; position: absolute; left: 50%; bottom: 1.4%; width: 30%; height: 4px; transform: translateX(-50%);
  border-radius: 4px; background: rgba(232,238,245,.55); z-index: 1;
}
.device-screen::after { /* odbicie światła na szkle */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.04) 26%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 78%, rgba(255,255,255,.05) 100%);
}
.sbar {
  flex: 0 0 auto; position: relative; height: 0; padding-top: 7.5%;
  display: block; color: #e8eef5; font-family: var(--body); font-weight: 600;
}
.sbar b { position: absolute; left: 9%; top: 50%; transform: translateY(-38%); font-size: clamp(6px, 1.1vw, 11px); letter-spacing: .02em; }
.sbar::before { /* aparat w ekranie */
  content: ""; position: absolute; left: 50%; top: 50%; width: 4.4%; aspect-ratio: 1; transform: translate(-50%, -42%);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2c3a4c 0 18%, #05070a 46%); box-shadow: 0 0 0 1.5px #000;
}
.sbar .sig, .sbar .bat { position: absolute; top: 50%; transform: translateY(-38%); }
.sbar .sig { right: 19%; width: 4%; aspect-ratio: 1; background: linear-gradient(135deg, transparent 50%, #e8eef5 50%); }
.sbar .bat { right: 10%; width: 6.5%; aspect-ratio: 2.1; border: 1.2px solid #e8eef5; border-radius: 2.5px; background: linear-gradient(90deg, #e8eef5 72%, transparent 72%) content-box; padding: 1px; }

/* ---------- 3. Funkcje (poziomo) ---------- */
#funkcje .sticky { display: flex; align-items: center; }
.track { display: flex; gap: clamp(28px, 4vw, 64px); align-items: center; padding-left: var(--gutter-l); padding-right: max(24px, calc((100vw - var(--max)) / 2)); will-change: transform; padding-top: 56px; }
.intro { flex: 0 0 auto; width: min(420px, 82vw); padding-left: max(0px, calc((100vw - var(--max)) / 2)); box-sizing: content-box; }
.intro h2 { font-size: clamp(40px, 5vw, 68px); margin-top: 12px; }
.intro p { margin-top: 18px; color: var(--muted); max-width: 32ch; }
.intro .arrow { margin-top: 26px; color: var(--sign); font-family: var(--display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.card { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 260px); gap: 26px; align-items: end; }
.card .shot { height: min(64vh, 600px); height: min(64svh, calc(100svh - 170px), 600px); width: auto; }
.card h3 { font-size: 30px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card .tag { display: inline-block; margin-bottom: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sign); border: 1px solid color-mix(in srgb, var(--sign) 45%, transparent); padding: 3px 10px; border-radius: 99px; font-family: var(--display); font-weight: 600; }
@media (max-width: 760px) {
  .card { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .card .shot { height: min(calc(100vh - 330px), 460px); height: min(calc(100svh - 330px), 460px); }
  .track { padding-top: 64px; }
  .card .tag { margin-bottom: 8px; }
  .card .txt { width: min(300px, 78vw); }
  .card h3 { font-size: 24px; }
  .card p { font-size: 15px; line-height: 1.5; margin-top: 6px; }
}

/* ---------- 4. Bańka ---------- */
#banka { height: 300vh; }
#banka canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#banka .copy { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, rgba(7,12,17,.92) 40%); padding-top: 120px; }
#banka h2 { font-size: clamp(36px, 4.6vw, 64px); margin-top: 10px; max-width: 14ch; }
#banka .copy p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.bubble {
  position: absolute; z-index: 2; left: var(--bx, 60%); top: var(--by, 30%);
  transform: translate(-50%, -100%) translateY(-18px);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap;
  padding: 11px 16px; border-radius: 16px;
  background: var(--sign); color: var(--sign-ink);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.8), 0 0 0 6px rgba(245,190,56,.18);
  transition: background .3s, color .3s, box-shadow .3s;
}
.bubble i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.bubble.live { background: #2a1416; color: var(--red); box-shadow: 0 10px 30px -8px rgba(0,0,0,.8), 0 0 0 1.5px var(--red); }
.bubble.live i { border-radius: 50%; animation: blink 1.2s steps(2) infinite; }
.bubble.saved { background: var(--surface-2); color: var(--meter); box-shadow: 0 10px 30px -8px rgba(0,0,0,.8), 0 0 0 1.5px var(--meter); }
.bubble.saved i { border-radius: 50%; }
.bubble small { font-family: var(--body); font-weight: 500; font-size: 13px; opacity: .85; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- 5. Prywatność ---------- */
.band { padding-block: clamp(90px, 14vw, 170px); }
/* Prywatność: scena „sejf” */
#prywatnosc { height: 320vh; background: radial-gradient(1200px 700px at 75% 30%, #0f1b27, var(--bg) 70%); }
#prywatnosc .sticky { display: flex; align-items: center; }
.vault-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; width: 100%; padding-top: 56px; }
.vault-copy h2 { font-size: clamp(36px, 4.6vw, 64px); margin-top: 10px; }
.vault-copy .lede { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.pillars { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.pillars li { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); opacity: .25; transform: translateX(-8px); transition: opacity .4s, transform .4s; }
.pillars li::before { content: ""; grid-row: span 2; width: 12px; height: 12px; margin-top: 7px; border-radius: 4px; background: var(--meter); box-shadow: 0 0 14px rgba(114,240,198,.6); }
.pillars li.on { opacity: 1; transform: none; }
.pillars b { font-family: var(--display); font-size: 19px; }
.pillars span { color: var(--muted); font-size: 15px; }
.more { margin-top: 18px; }
.vault-stage { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-inline: auto; }
.vault-phone { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); }
.vault-phone .lock { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(var(--ls, 0)); display: grid; place-items: center; border-radius: 50%; color: var(--meter-bg); background: var(--meter); box-shadow: 0 0 0 8px rgba(114,240,198,.18), 0 0 60px rgba(114,240,198,.55); }
.vault-phone .lock svg { width: 56%; height: 56%; }
.vault-phone { filter: drop-shadow(0 0 calc(var(--pg, 0) * 36px) rgba(114,240,198,.55)); }
.chip { position: absolute; left: 50%; top: 50%; padding: 7px 13px; border-radius: 99px; font-family: var(--display); font-weight: 600; font-size: 14px; white-space: nowrap; background: var(--surface-2); border: 1.5px solid var(--line-strong); color: var(--text); transform: translate(-50%, -50%); will-change: transform, opacity; }
.chip:nth-of-type(odd) { border-color: color-mix(in srgb, var(--sign) 60%, transparent); }
.vlines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ln { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; opacity: calc(1 - var(--d, 1)); }
.ln-server { stroke: var(--red); stroke-dasharray: 5 5; }
.ln-svc { stroke: var(--blue); stroke-dasharray: 2 6; stroke-linecap: round; }
.node { position: absolute; display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 12px)); }
.node b { font-family: var(--display); font-size: 15px; }
.node b i { font-style: normal; }
.node span { font-size: 12.5px; color: var(--muted); }
.node.server { right: 0; top: 2%; border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.node.server b { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.node.server em { position: absolute; left: -14px; top: 50%; width: 26px; height: 26px; margin-top: -13px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--bg); font-style: normal; font-weight: 700; transform: scale(var(--x, 0)); }
.node.svc { bottom: 0; border-color: color-mix(in srgb, var(--blue) 45%, transparent); }
.node.s1 { left: 0; } .node.s2 { left: 50%; translate: -50% 0; } .node.s3 { right: 0; }
.rm .pillars li { opacity: 1; transform: none; }
.rm .node { --o: 1; } .rm .ln { --d: 0; } .rm .vault-phone .lock { --ls: 1; } .rm .chip { display: none; } .rm #prywatnosc { height: auto; }
@media (max-width: 860px) {
  .vault-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 64px; }
  .vault-stage { order: -1; width: min(300px, 74vw, 34svh); }
  .vault-copy h2 { font-size: 28px; }
  .vault-copy .lede { display: none; }
  .pillars { margin-top: 10px; }
  .pillars li { padding: 6px 0; }
  .pillars b { font-size: 16px; }
  .pillars span { font-size: 13.5px; line-height: 1.4; }
  .node { padding: 6px 9px; border-radius: 10px; }
  .node b { font-size: 11.5px; } .node span, .node b i { display: none; }
  .node.s2 b::first-letter { text-transform: uppercase; }
  .node.server { top: 7%; }
  .chip { font-size: 11px; padding: 4px 8px; }
  .more { margin-top: 8px; font-size: 15px; }
}

/* Atuty */
.atuty-title { font-size: clamp(34px, 4.6vw, 62px); margin-top: 12px; max-width: 18ch; }
.perks { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.perk { position: relative; overflow: hidden; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s, border-color .3s; transition-delay: calc(var(--i) * 90ms); }
.js .perks:not(.in) .perk { opacity: 0; transform: translateY(30px); }
.perk:hover { border-color: color-mix(in srgb, var(--sign) 55%, var(--line)); }
.perk::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,190,56,.14), transparent); transition: transform .6s; }
.perk:hover::before { transform: translate(-12%, 12%) scale(1.15); }
.pi { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--sign) 16%, var(--surface-2)); color: var(--sign); }
.pi svg { width: 22px; height: 22px; }
.perks.in .pi svg { animation: pop .8s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i) * 90ms + 250ms); }
@keyframes pop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
.perk h3 { margin-top: 16px; font-size: 22px; }
.perk p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr; } }
@media (max-width: 1100px) and (min-width: 861px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 6. Cena ---------- */
#cena .ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center;
  background: var(--sign); color: var(--sign-ink); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}
#cena .ticket::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background: repeating-linear-gradient(45deg, rgba(12,19,26,.09) 0 14px, transparent 14px 28px); border-radius: 50%; }
#cena .eyebrow { color: var(--sign-ink); opacity: .7; }
#cena h2 { font-size: clamp(44px, 6.4vw, 92px); margin-top: 10px; }
#cena ul { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 500; }
#cena li::before { content: "✓ "; font-weight: 700; }
.price { text-align: right; position: relative; z-index: 1; }
.price .p { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 8vw, 110px); line-height: .9; }
.price .p small { font-size: .32em; }
.price .s { font-size: 15px; margin-top: 6px; }
.store { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; background: var(--sign-ink); color: var(--text); padding: 12px 18px; border-radius: 14px; font-family: var(--display); font-weight: 600; text-decoration: none; }
.store svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  #cena .ticket { grid-template-columns: 1fr; gap: 24px; }
  .price { text-align: left; }
}

/* ---------- Stopka ---------- */
.foot { border-top: 1.5px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot a { color: var(--muted); }
.foot .brand { font-size: 18px; margin-right: auto; }

/* ---------- Polityka prywatności (dokument) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding-block: 120px 80px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.doc h2 { font-size: 26px; margin: 48px 0 12px; color: var(--text); }
.doc p, .doc li { color: #cfd8e3; }
.doc p + p { margin-top: 12px; }
.doc .meta { margin-top: 14px; color: var(--muted); font-size: 15px; }
.doc .toc { margin-top: 28px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.doc .toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.doc .note { background: var(--surface); border-left: 3px solid var(--sign); border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 16px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.doc .tbl { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--display); color: var(--muted); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }

/* ---------- Mniej ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.rm #jazda, .rm #licznik, .rm #banka { height: auto; }
.rm .sticky { position: relative; height: auto; min-height: 100svh; }
.rm #funkcje .sticky { min-height: 0; overflow-x: auto; padding-block: 60px; }
.rm #funkcje { height: auto !important; }
.rm .track { transform: none !important; }
.rm #jazda .layer { position: relative; min-height: 70svh; }
.rm [data-range], .rm .costs span { --o: 1 !important; }
.rm .lines li { opacity: 1; transform: none; }
.rm .hero-hint { display: none; }
