/* iKrystyna — strona główna z żywym portretem (wariant B).
   Układ: ciemna, przypięta scena otwarcia (portret ze znaków po prawej, słowa po lewej); przy przewijaniu postać
   odsuwa się na bok i pracuje: faktura → konta → JPK, tło przechodzi w papier; dalej jasna część strony w siatce
   1180 px — te same sekcje i ta sama stylistyka co na ikrystyna.pl (paleta „papierowa”, tailwind.config.js). */

@font-face { font-family: 'Hanken'; src: url('/strona/fonty/hanken-pl.a1f67c7b5e.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('/strona/fonty/spectral-500-pl.5a6297832a.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Spectral'; src: url('/strona/fonty/spectral-500-italic-pl.e9e90a7d57.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --ink: #263e43;
  --ink-soft: #3f5450;
  --muted: #627170;        /* o ton ciemniejszy niż #71807e na produkcji (4,0:1): tu ≥ 4,8:1 */
  --faint: #636f6a;        /* drobny druk; na produkcji #8b9690 (3,0:1) — tu ≥ 4,9:1 */
  --bg: #f8f8f3;
  --paper: #fffefa;
  --line: #e0e5dd;
  --line-strong: #cfd8cf;
  --accent: #3d7189;
  --accent-hover: #315e73;
  --accent-light: #9cc7da;
  --sage: #557765;
  --sage-soft: #5f7768;
  --sage-bg: #ecf2eb;
  --ochre: #8a632b;
  --ochre-bg: #faf0db;
  --on-ink: #fffefa;
  --on-ink-soft: #b6c4be;
  --display: 'Spectral', Georgia, 'Times New Roman', serif;
  --body: 'Hanken', Arial, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', 'Liberation Mono', monospace;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --hdr: 72px;
  --k: 0;                  /* 0 = atrament, 1 = papier (ustawia skrypt pod koniec sekwencji) */
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gut: 24px; } }
@media (min-width: 768px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6; font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.14; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
::selection { background: rgba(61, 113, 137, 0.15); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.stage :focus-visible, .hdr.na-ciemnym :focus-visible, .cta-bar :focus-visible { outline-color: var(--accent-light); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 14px; }
.skip:focus { top: 12px; }

/* ——— Przyciski ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 18px; border-radius: 6px; border: 1px solid transparent;
  font: 500 14px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg); }
.btn-inverse { background: var(--paper); color: var(--ink); }
.btn-inverse:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--on-ink); border-color: rgba(255, 254, 250, 0.32); }
.btn-ghost:hover { background: rgba(255, 254, 250, 0.08); border-color: rgba(255, 254, 250, 0.5); }
.btn svg { flex: none; transition: transform .25s ease; }
.btn:hover svg { transform: translateY(2px); }

/* ——— Nagłówek ——— */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr);
  background: rgba(248, 248, 243, 0.95); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .3s ease, border-color .3s ease;
}
html:not(.js) .hdr { position: absolute; }
.hdr-in { max-width: 1180px; height: 100%; margin-inline: auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 28px; }
.logo { position: relative; display: block; flex: none; width: 120px; height: 60px; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .3s ease; user-select: none; }
.logo .l-jasne { opacity: 0; }
.logo:hover { opacity: .8; }
.nav { display: none; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; padding-block: 12px; transition: color .2s ease; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn, .menu { display: none !important; } }
.hdr.na-ciemnym { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr.na-ciemnym .l-mono { opacity: 0; }
.hdr.na-ciemnym .l-jasne { opacity: 1; }
.hdr.na-ciemnym .nav a:not(.btn) { color: var(--on-ink-soft); }
.hdr.na-ciemnym .nav a:not(.btn):hover { color: var(--on-ink); }
.hdr.na-ciemnym .btn-secondary { background: transparent; color: var(--on-ink); border-color: rgba(255, 254, 250, 0.32); }
.hdr.na-ciemnym .btn-secondary:hover { background: rgba(255, 254, 250, 0.08); }
.menu-btn {
  margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; color: var(--ink);
}
html:not(.js) .menu-btn { display: none; }
.menu-btn span { width: 24px; height: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.hdr.na-ciemnym .menu-btn { color: var(--on-ink); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* menu mobilne: rodzeństwo nagłówka (backdrop-filter robi z nagłówka blok odniesienia dla position:fixed) */
.menu {
  position: fixed; inset: var(--hdr) 0 0 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.menu.otwarte { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 4px; padding: 24px var(--gut); }
.menu nav > a:not(.btn) { padding-block: 12px; font: 500 1.5rem/1.3 var(--display); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu .akcje { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
html.menu-otwarte, html.menu-otwarte body { overflow: hidden; }
html.menu-otwarte .hdr { background: var(--bg); border-bottom-color: var(--line); }
html.menu-otwarte .hdr .l-mono { opacity: 1; }
html.menu-otwarte .hdr .l-jasne { opacity: 0; }
html.menu-otwarte .hdr .menu-btn { color: var(--ink); }

/* ——— Scena ——— */
.track { position: relative; height: 560vh; background: var(--ink); }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  /* miejsce portretu przed startem skryptu — te same wzory co w portret.js (resize); skrypt nadpisuje je pikselami */
  --fs: min(17.6vh, 13.5vw); --fs: min(17.6svh, 13.5vw);
  --fcx: 67.5vw;
  --fcy: max(48.5vh, calc(2.25 * var(--fs) + var(--hdr))); --fcy: max(48.5svh, calc(2.25 * var(--fs) + var(--hdr)));
}
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--ho, 1);
  background: radial-gradient(ellipse calc(3.4 * var(--fs)) calc(3.4 * var(--fs) * 1.12) at var(--fcx) calc(var(--fcy) - 0.5 * var(--fs)), rgba(156, 199, 218, 0.17), rgba(156, 199, 218, 0.05) 55%, transparent 100%);
}
.zarys {
  position: absolute; display: block; max-width: none; pointer-events: none; user-select: none;
  left: calc(var(--fcx) - 1.7 * var(--fs)); top: calc(var(--fcy) - 2.1033 * var(--fs));
  width: calc(4.5333 * var(--fs)); height: calc(4.9067 * var(--fs));
  background: center / 100% 100% no-repeat; opacity: 1; transition: opacity 1.1s ease .15s;
}
.stage.gotowy .zarys { opacity: 0; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wrap { position: absolute; inset: 0; max-width: 1180px; margin-inline: auto; padding-inline: var(--gut); pointer-events: none; }
.wrap > * { pointer-events: auto; }
.hero { position: absolute; left: 0; right: 0; top: 50%; padding-inline: inherit; transform: translateY(-50%); will-change: opacity, transform; pointer-events: none; }
.hero-in { max-width: 540px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-in > * { pointer-events: auto; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px; color: var(--sage-soft); }
.eyebrow::before { content: ""; width: 19px; height: 1px; background: currentColor; flex: none; opacity: .8; }
.stage .eyebrow { color: var(--on-ink-soft); }
.hero h1 { font-size: clamp(2.6rem, 4.4vw, 3.75rem); color: var(--on-ink); line-height: 1.1; }
.hero h1 em { font-style: italic; color: var(--accent-light); }
/* hasło nad H1 (od 13.11.2026: H1 = fraza „Księgowość spółki z o.o. online”, hasło poetyckie zeszło piętro niżej w hierarchii) */
.haslo { font: italic 500 clamp(1.15rem, 1.7vw, 1.5rem)/1.3 var(--display); letter-spacing: -0.01em; color: var(--on-ink-soft); }
.haslo em { color: var(--accent-light); }
.lead { font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.6; color: var(--on-ink-soft); max-width: 480px; }
.lead b { font-weight: 500; color: var(--on-ink); }
.hero .akcje { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { min-height: 46px; font-size: 15px; padding-inline: 20px; }
.fakty { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: #a3b3ad; }
.fakty li + li::before { content: "·"; position: relative; left: -11px; }

/* sterowanie portretem: pauza + „znaki / bryła” */
.ster { position: absolute; right: var(--gut); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; transition: opacity .3s ease; }
.note { font-family: var(--mono); font-size: 11px; line-height: 1.5; color: #a3b3ad; margin-right: 6px; text-align: right; max-width: 250px; }
.ster button { appearance: none; cursor: pointer; font: 400 11px/1 var(--mono); color: var(--on-ink-soft); }
.pauza {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 11px; border-radius: 7px;
  border: 1px solid rgba(255, 254, 250, 0.22); background: rgba(38, 62, 67, 0.8);
}
.pauza:hover, .pauza[aria-pressed="true"] { color: var(--on-ink); border-color: rgba(255, 254, 250, 0.4); }
.pauza .i-graj { display: none; }
.pauza[aria-pressed="true"] .i-graj { display: block; }
.pauza[aria-pressed="true"] .i-stop { display: none; }
.mode { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid rgba(255, 254, 250, 0.22); border-radius: 7px; background: rgba(38, 62, 67, 0.8); }
.mode button { border: 0; border-radius: 4px; padding: 0 10px; min-height: 30px; background: transparent; }
.mode button[aria-pressed="true"] { background: rgba(255, 254, 250, 0.14); color: var(--on-ink); }
.hint { position: absolute; left: 0; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); padding-left: inherit; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: color-mix(in srgb, #a3b3ad, var(--muted) calc(var(--k) * 100%)); pointer-events: none; }

/* podpisy etapów sekwencji */
.caps { position: absolute; left: 0; right: 0; top: 50%; padding-inline: inherit; transform: translateY(-50%); pointer-events: none; }
.cap { position: absolute; left: 0; top: 0; transform: translateY(-50%); max-width: 400px; opacity: 0; display: flex; flex-direction: column; gap: 14px; padding-left: inherit; will-change: opacity; }
.cap .step { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: color-mix(in srgb, var(--accent-light), var(--accent) calc(var(--k) * 100%)); }
.cap .t { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; font-size: clamp(1.75rem, 3vw, 2.5rem); color: color-mix(in srgb, var(--on-ink), var(--ink) calc(var(--k) * 100%)); }
.cap p:last-child { font-size: 16px; color: color-mix(in srgb, var(--on-ink-soft), var(--ink-soft) calc(var(--k) * 100%)); max-width: 360px; }
.kotwica { position: absolute; left: 0; top: calc((100% - 100vh) * 0.375); width: 1px; height: 1px; }

/* ——— Jasna część ——— */
.box { max-width: 1180px; margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: 56px; scroll-margin-top: var(--hdr); }
.sec.bez-gory { padding-top: 0; }
.sec.papier { background: var(--paper); border-block: 1px solid var(--line); }
@media (min-width: 768px) { .sec { padding-block: 70px; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.sec-head h2, .h2 { font-size: clamp(1.875rem, 3.2vw, 2.375rem); max-width: 620px; margin-top: 10px; }
.sec-head > p { font-size: 15px; color: var(--muted); max-width: 380px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.steps li { padding: 28px 24px; min-width: 0; }
.steps .n { font-family: var(--display); font-size: 2.75rem; line-height: 1; color: var(--line-strong); margin-bottom: 14px; }
.steps h3 { font-size: 1.375rem; margin-bottom: 8px; }
.steps p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.625; }

.podtytul { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 44px 0 16px; }
.podtytul h3 { font-size: 1.375rem; }
.podtytul p { font-size: 14px; color: var(--muted); }
.proof { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.proof > div { padding: 28px; min-width: 0; }
.proof > div + div { border-left: 1px solid var(--line); }
.proof h4 { font: 600 15px/1.4 var(--body); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { display: inline-block; border-radius: 4px; padding: 2px 8px; font: 500 11px/1.5 var(--body); white-space: nowrap; }
.pill.ex { background: var(--ochre-bg); color: var(--ochre); }
.pill.ok { background: var(--sage-bg); color: #4b6b59; }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 13.5px; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; text-align: right; color: var(--ink); }
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; }
th { font-weight: 500; color: var(--muted); border-top: 0; padding-top: 0; }
th.num, td.num { text-align: right; font-family: var(--mono); font-size: 13px; padding-left: 16px; white-space: nowrap; }
td .acc { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-right: 8px; }
tfoot td { border-top: 3px double var(--line-strong); font-weight: 600; }
.filed { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--mono); font-size: 13px; }

.due { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 40px; align-items: center; padding: 34px 28px; margin-top: 18px; }
.due .big { font-family: var(--display); font-size: clamp(4rem, 9vw, 6.5rem); line-height: 0.9; color: var(--accent); font-variant-numeric: tabular-nums; }
.due h3 { font-size: 1.5rem; margin-bottom: 8px; }
.due p { font-size: 14.5px; color: var(--ink-soft); max-width: 520px; }
.due .price { font-family: var(--display); font-size: 1.375rem; line-height: 1.25; text-align: right; }
.due .price small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); }

/* wiadomość od biura (dawne otwarcie strony) */
.list { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.list h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-top: 12px; }
.list h2 em { font-style: italic; color: var(--accent); }
.list .opis { margin-top: 20px; max-width: 520px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); }
.mail { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(38, 62, 67, 0.25); font-size: 14px; }
.mail-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.mail-top b { font-weight: 500; color: var(--ink); }
.mail-top .kiedy { margin-left: auto; white-space: nowrap; }
.mail-body { padding: 20px 24px; line-height: 1.625; color: var(--ink-soft); }
.mail-body h3 { font: 600 15px/1.4 var(--body); letter-spacing: 0; margin-bottom: 10px; color: var(--ink); }
.mail-rows { margin-top: 14px; }
.mail-rows > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 13.5px; }
.mail-rows .pill { margin-left: 6px; }
.mail-rows b { font-weight: 500; white-space: nowrap; color: var(--ink); }
.mail-foot { margin-top: 14px; font-size: 12px; color: var(--faint); }

/* co jest w cenie: cztery pola */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.bento > div { padding: 28px 24px; }
.bento > div + div { border-left: 1px solid var(--line); }
.kicker { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; color: var(--faint); margin-bottom: 12px; }
.bento h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.bento p { font-size: 14px; color: var(--ink-soft); line-height: 1.625; }

/* cena */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tier { padding: 32px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.tier.wybrany { border-color: var(--line-strong); box-shadow: 0 20px 50px -35px rgba(38, 62, 67, 0.35); }
.tier h3 { font: 400 13px/1.5 var(--body); letter-spacing: 0; color: var(--muted); }
.tier h3 b { font-weight: 600; color: var(--ink); }
.tier .cena { font-family: var(--display); font-size: 2.875rem; letter-spacing: -1.5px; line-height: 1.15; margin: 6px 0 22px; }
.tier .cena span { font-family: var(--body); font-size: 14px; letter-spacing: 0; color: var(--muted); }
.tier .btn { margin-top: auto; }
.wspolne { margin-top: 18px; padding: 28px; }
.wspolne h3 { font-size: 1.375rem; margin-bottom: 4px; }
.wspolne > p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.wspolne ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; font-size: 14.5px; color: var(--ink-soft); }
.wspolne li { display: flex; gap: 10px; }
.wspolne li::before { content: "—"; color: var(--line-strong); flex: none; }
.drobne { max-width: 900px; margin-top: 16px; font-size: 13.5px; line-height: 1.625; color: var(--muted); }
.drobne strong { font-weight: 600; color: var(--ink); }
.wprost { max-width: 900px; margin-top: 20px; border-radius: 10px; border: 1px solid #d8e3d2; background: var(--sage-bg); padding: 20px 24px; font-size: 15px; line-height: 1.625; color: #45603f; }
.wprost strong { font-weight: 600; }

/* opinia */
.opinia { max-width: 820px; margin-inline: auto; padding-inline: var(--gut); text-align: center; }
.opinia .cudz { font-family: var(--display); font-size: 80px; line-height: 0.6; height: 40px; color: #b8caa8; user-select: none; }
.opinia figure { margin: 0; }
.opinia blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.4; color: #34504b; }
.opinia blockquote p + p { margin-top: 20px; }
.opinia figcaption { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* pytania */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding-block: 16px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font: 500 clamp(1.125rem, 1.8vw, 1.25rem)/1.3 var(--display); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); color: #5f7768; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; max-width: 680px; font-size: 15px; line-height: 1.625; color: var(--ink-soft); }

/* poradniki */
.poradniki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 820px; }
.poradniki a { display: block; padding: 20px 24px; text-decoration: none; transition: border-color .2s ease; }
.poradniki a:hover { border-color: var(--line-strong); }
.poradniki h3 { font-size: 1.125rem; margin-bottom: 6px; line-height: 1.3; }
.poradniki span { font-size: 14px; color: var(--accent); }

/* pasek CTA */
.cta-bar { background: var(--ink); border-radius: 14px; padding: 40px 28px; display: flex; flex-direction: column; gap: 28px; }
.cta-bar h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); color: #fff; max-width: 560px; }
.cta-bar p { margin-top: 10px; font-size: 15px; color: var(--on-ink-soft); }
@media (min-width: 768px) { .cta-bar { flex-direction: row; align-items: center; justify-content: space-between; padding: 54px 48px; } .cta-bar .btn { flex: none; } }

/* stopka */
.stopka { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 13px; color: var(--muted); }
.stopka-siatka { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.stopka .logo { width: 112px; height: 56px; }
.stopka .o-nas { margin-top: 12px; max-width: 340px; line-height: 1.625; }
.stopka h2 { font: 600 11px/1.4 var(--body); text-transform: uppercase; letter-spacing: 1.6px; color: var(--faint); margin-bottom: 12px; }
.stopka-siatka a:not(.logo) { display: block; margin-block: 4px; text-decoration: none; transition: color .2s ease; }
.stopka-siatka a:not(.logo):hover { color: var(--ink); }
.stopka address { font-style: normal; margin-top: 8px; line-height: 1.625; }
.stopka-dol { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 12px; color: var(--faint); }

/* ——— Średnie ekrany ——— */
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > div:nth-child(3) { border-left: 0; }
  .bento > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .list { grid-template-columns: 1fr; gap: 36px; }
  .stopka-siatka { grid-template-columns: 1fr 1fr; font-size: 14px; }
  .stopka-siatka a:not(.logo) { display: flex; align-items: center; min-height: 44px; margin: 0; }
  .note { display: none; }
}

/* ——— Telefon: portret u góry, słowa pod nim ——— */
@media (max-width: 759px) {
  .stage {
    --fs: min(13.7vh, 30vw); --fs: min(13.7svh, 30vw);
    --fcx: 47vw;
    --fcy: max(38.5vh, calc(2.25 * var(--fs) + var(--hdr))); --fcy: max(38.5svh, calc(2.25 * var(--fs) + var(--hdr)));
  }
  .logo { width: 116px; height: 58px; }
  /* --zaslona: wysokość baneru cookies (portret.js) — przycisk rozmowy i sterowanie nad banerem */
  .hero { top: auto; bottom: calc(10px + max(env(safe-area-inset-bottom, 0px), var(--zaslona, 0px))); transform: none; }
  .hero::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -56px; bottom: -80px; background: linear-gradient(to bottom, rgba(38, 62, 67, 0), rgba(38, 62, 67, 0.86) 84px); pointer-events: none; }
  .hero-in { gap: 14px; max-width: none; }
  .stage .hero .eyebrow { display: none; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); }
  .haslo { font-size: 1.0625rem; margin-bottom: -6px; }
  .lead { font-size: 1rem; line-height: 1.5; }
  .hero .akcje { width: 100%; flex-direction: column; gap: 4px; }
  .hero .akcje .btn-inverse { width: 100%; }
  .hero .akcje .btn-ghost { align-self: flex-start; border: 0; padding: 0 4px 0 0; min-height: 46px; background: none; color: var(--on-ink); }
  .fakty { display: none; }
  .hint { display: none; }
  .ster { right: var(--gut); bottom: calc(14px + max(env(safe-area-inset-bottom, 0px), var(--zaslona, 0px))); gap: 8px; }
  .pauza { width: 38px; padding: 0; justify-content: center; }
  .pauza .etykieta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* krótszy tor przewijania (portret.js: KM w progress) i pasek postępu sekwencji pod nagłówkiem */
  .track { height: 320vh; height: 320svh; }
  .stage::after { content: ""; position: absolute; left: 0; top: var(--hdr); width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--accent-light); opacity: calc(1 - var(--k, 0)); pointer-events: none; z-index: 5; }
  /* --zaslona: wysokość baneru cookies (ustawia portret.js) — podpisy kroków nad nim */
  .caps { top: auto; bottom: max(calc(46px + env(safe-area-inset-bottom, 0px)), calc(var(--zaslona, 0px) + 14px)); transform: none; }
  .cap { top: auto; bottom: 0; transform: none; gap: 8px; max-width: none; padding-right: var(--gut); }
  .cap .t { font-size: 1.6rem; }
  .cap p:last-child { font-size: 14.5px; }
  .steps, .tiers, .poradniki, .proof, .wspolne ul { grid-template-columns: 1fr; }
  .proof > div { padding: 22px 18px; }
  .proof > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .due { grid-template-columns: 1fr; padding: 26px 18px; gap: 18px; }
  .due .price { text-align: left; }
  .bento { grid-template-columns: 1fr; }
  .bento > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .mail-top .adres { display: none; }
  .tier .btn, .cta-bar .btn { width: 100%; }
  .stopka-siatka { grid-template-columns: 1fr; }
  .wspolne { padding: 22px 18px; }
}
@media (max-width: 759px) and (max-height: 700px) {
  .stage .eyebrow, .haslo { display: none; }
  .hero h1 { font-size: 2rem; }
  .lead { font-size: 0.9375rem; }
}

/* ——— Bez ruchu: system (prefers-reduced-motion) albo brak skryptu — scena jest zwykłym pierwszym ekranem ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { height: auto; }
  .stage { position: relative; }
  .stage::after { display: none; }
  .caps, .hint, .pauza { display: none; }
  .kotwica { position: static; display: block; }
  .btn, .btn svg, .zarys, .logo img, .hdr { transition: none; }
}
html:not(.js) .track { height: auto; }
html:not(.js) .stage { position: relative; }
html:not(.js) .caps, html:not(.js) .hint, html:not(.js) .ster { display: none; }
html:not(.js) .kotwica { position: static; display: block; }
