/* ============================================================
   TaxViro — strona główna dla gości: „scroll story” (silnik: js/story/silnik.js,
   sceny: js/story/sceny.js, ruch i treść: design/scroll-story/storyboard.md).
   Kolory wprost z tokenów marki (design/scroll-story/brand-tokens.json) — strona
   nie zależy od motywu panelu (jasny/ciemny), więc nie używa zmiennych --paper, --card…
   Wszystko pod .strona, żeby nic nie wyciekło do panelu.
   ============================================================ */

/* --- który ekran: strona, logowanie czy wznawianie sesji (atrybut z js/story/sesja.js, zdejmuje go app.js) --- */
html[data-widok] #strona { display: none !important; }
html[data-widok="sesja"] #boot { display: grid !important; }
html[data-widok="logowanie"] #login { display: grid !important; }
/* kotwice (#cennik, #rejestracja) nie chowają się pod przypiętym nagłówkiem */
html { scroll-padding-top: 72px; }

.strona {
  position: relative;
  overflow-x: clip;                 /* zero poziomego przewijania od 360 px — clip nie psuje position: sticky */
  color: #0F1626;
  font-family: var(--f-body);
  font-size: 15px;
  background: #071226;
}
/* fokus: na jasnym tle #B44B00 (4,9:1, jak panel po audycie), na ciemnym #FF8A33 */
.strona :focus-visible:not(input, select, textarea) { outline: 2px solid #B44B00; outline-offset: 2px; }
/* cele kotwic (sekcje, nagłówek rejestracji) dostają fokus z JS — bez ramki wokół całej sekcji */
.strona section[tabindex="-1"]:focus, .strona h2[tabindex="-1"]:focus { outline: none; }
/* pole w ciemnej rejestracji: jedna obwódka (obrys pola + poświata), bez dodatkowego outline */
.s-rej .field__input:focus { box-shadow: 0 0 0 3px rgba(253,108,2,.28); }
.s-hero :focus-visible, .s-rej :focus-visible, .s-head:not([data-tone="light"]) :focus-visible,
.chapter[data-tone="dark"] :focus-visible { outline-color: #FF8A33; }
.strona img { max-width: 100%; }
.s-waski { display: none; }
.s-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.s-wrap--waski { max-width: 780px; }

.s-eyebrow {
  font-family: var(--f-display); font-variation-settings: "wdth" 84;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #B44B00; margin: 0;
}
.s-eyebrow--hi { color: #FF8A33; }
.s-h2 {
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 105;
  font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -.02em;
  margin-top: 12px; color: #0F1626;
}
.s-sub { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #58606E; max-width: 60ch; }

/* --- przyciski strony (bez zależności od motywu panelu) --- */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font: 700 14.5px/1.2 var(--f-body); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .12s ease-out, border-color .12s ease-out, box-shadow .12s ease-out, transform .1s ease-out;
}
.s-btn:active { transform: translateY(1px); }
.s-btn[disabled] { opacity: .5; cursor: not-allowed; }
.s-btn--lg { min-height: 52px; padding: 14px 28px; font-size: 15.5px; }
.s-btn--primary {
  background: linear-gradient(180deg, #FF8A33, #FD6C02 78%); color: #071226;
  box-shadow: 0 2px 12px rgba(253,108,2,.34), inset 0 1px 0 rgba(255,255,255,.25);
}
.s-btn--primary:hover { background: linear-gradient(180deg, #FF9450, #F76800 78%); box-shadow: 0 4px 18px rgba(253,108,2,.42), inset 0 1px 0 rgba(255,255,255,.25); }
.s-btn--ghost { background: #FFFFFF; border-color: #C9CDD3; color: #0F1626; }
.s-btn--ghost:hover { border-color: #58606E; background: #F7F8FA; }
.s-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.s-link--light { color: #E9EDF4; display: inline-flex; align-items: center; min-height: 44px; }
.s-link--light:hover { color: #FF8A33; }

/* ============ NAGŁÓWEK ============ */
.s-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: 64px; display: flex; align-items: center; gap: 12px;
  padding: 0 max(24px, calc((100% - 1120px) / 2 + 24px));
  color: #E9EDF4;
  background: rgba(7,18,38,.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out;
}
.s-head[data-tone="light"] { color: #0F1626; background: rgba(243,244,246,.82); border-bottom-color: #E4E6EA; }
.s-head__logo { display: flex; align-items: center; min-height: 44px; margin-right: 12px; border-radius: 8px; }
.s-head__wm { display: block; height: 26px; width: auto; }
.s-head__wm--dark, .s-head[data-tone="light"] .s-head__wm--light { display: none; }
.s-head[data-tone="light"] .s-head__wm--dark { display: block; }
.s-head__nav { display: flex; gap: 2px; }
.s-head__nav a, .s-head__login {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: inherit; text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background-color .12s ease-out;
}
.s-head__nav a:hover, .s-head__login:hover { background: rgba(255,255,255,.08); text-decoration: underline; text-underline-offset: 4px; }
.s-head[data-tone="light"] .s-head__nav a:hover, .s-head[data-tone="light"] .s-head__login:hover { background: rgba(7,18,38,.05); }
.s-head__login { margin-left: auto; }
/* CTA nagłówka: obrys, dopóki widać przycisk w hero — potem pomarańczowy (silnik.js: .is-primary) */
.s-head__cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  color: #FFFFFF; border: 1.5px solid rgba(255,255,255,.24); background: transparent;
  transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out, box-shadow .2s ease-out;
}
.s-head__cta:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.s-head[data-tone="light"] .s-head__cta { color: #0F1626; border-color: #C9CDD3; }
.s-head[data-tone="light"] .s-head__cta:hover { border-color: #58606E; background: rgba(7,18,38,.04); }
.s-head.is-primary .s-head__cta, .s-head.is-primary[data-tone="light"] .s-head__cta {
  color: #071226; border-color: transparent;
  background: linear-gradient(180deg, #FF8A33, #FD6C02 78%);
  box-shadow: 0 2px 12px rgba(253,108,2,.34), inset 0 1px 0 rgba(255,255,255,.25);
}
.s-head.is-primary .s-head__cta:hover { background: linear-gradient(180deg, #FF9450, #F76800 78%); }
.s-head__cta:active { transform: translateY(1px); }

/* ============ HERO ============ */
.s-hero {
  position: relative; z-index: 1; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 104px 0 150px;
  color: #C3C9D4;
  background:
    radial-gradient(at 85% -10%, rgba(253,108,2,.22), transparent 70%),
    linear-gradient(168deg, #132340, #0B1930 46%, #071226);
}
.s-hero::before, .s-rej::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .05; mix-blend-mode: overlay;
}
.s-hero__in {
  position: relative; width: 100%;
  display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 44fr); column-gap: 6%;
  align-items: center; padding: 0 4% 0 6%;
}
.s-hero__title {
  margin-top: 16px; color: #FFFFFF;
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.02em;
}
.s-hero__akcent { display: block; color: #FF8A33; }   /* zawsze 2 wiersze: „Każdy termin” / „pod kontrolą.” */
.s-hero__lead { margin-top: 20px; max-width: 34em; font-size: 19px; line-height: 1.6; color: #C3C9D4; }
.s-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.s-hero__note { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.62); }
.s-hero__micro {
  margin-top: 44px; font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.s-hero__devices { position: relative; margin: 0; display: grid; }
.s-hero__devices .device--phone { width: 24%; margin: 0 0 -9% -8%; }

/* trójkąt startowy: SVG (bez JS i do chwili, gdy przejmie go canvas silnika) */
.hero-anchor {
  position: absolute; left: 50%; top: calc(100vh - 96px); top: calc(100svh - 96px);
  width: 96px; height: 58px; margin: -29px 0 0 -48px; pointer-events: none;
}
.hero-anchor::before {         /* poświata rgba(253,108,2,.30), promień 2,2 × szerokość */
  content: ""; position: absolute; left: 50%; top: 50%; width: 440%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(253,108,2,.30), rgba(253,108,2,0));
}
.hero-anchor svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
html.trojkat-canvas .hero-anchor { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  /* jedyny ruch zależny od czasu: wejście pasów P4 → P1 (−12 px, 220 ms, co 70 ms) */
  .hero-anchor .pas { animation: s-pas-wejscie 220ms cubic-bezier(.2,.8,.2,1) both; }
  .hero-anchor .pas--3 { animation-delay: 70ms; }
  .hero-anchor .pas--2 { animation-delay: 140ms; }
  .hero-anchor .pas--1 { animation-delay: 210ms; }
}
/* przesunięcie w jednostkach viewBox: 12 px ekranu przy 96 px szerokości ≈ 2,9 j. */
@keyframes s-pas-wejscie { from { opacity: 0; transform: translateY(-2.9px); } }

/* ============ URZĄDZENIA (makiety) ============ */
.devices { margin: 0; }
.device { position: relative; }
.device img { display: block; width: 100%; height: auto; background: #E9ECF0; }
.device img.img--brak { visibility: hidden; }     /* brak pliku: zostaje pusta ramka zamiast ikony błędu */
.devices { display: grid; align-content: center; }
.devices > .device { grid-area: 1 / 1; }
.device--laptop {
  width: 100%; padding: 1.2%; border-radius: 14px;
  background: linear-gradient(180deg, #1B2A45, #0D1B33);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 40px 80px -34px rgba(7,18,38,.6);
  margin-bottom: 14px;
}
.device--laptop img { border-radius: 6px; aspect-ratio: 1440 / 900; }
.device--laptop::after {       /* podstawa laptopa */
  content: ""; position: absolute; left: -5%; right: -5%; top: 100%; height: 12px;
  border-radius: 0 0 12px 12px; background: linear-gradient(180deg, #3A4B69, #16263F);
}
.device--phone {
  justify-self: start; align-self: end; width: 26%; margin: 0 0 -10% -8%;
  padding: 2.2%; border-radius: 26px; background: #071226;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 28px 56px -18px rgba(7,18,38,.6);
}
.device--phone img { border-radius: 18px; aspect-ratio: 540 / 1170; }
.device--crop { display: none; width: min(82%, 320px); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 48px -20px rgba(7,18,38,.5); }
.device--crop img { aspect-ratio: 600 / 800; }
.device--tylko-tel { display: none; }
/* w rozdziałach telefon nachodzi na prawy dół laptopa — lewa krawędź makiety zostaje wolna dla sceny */
.pin .device--phone { justify-self: end; margin: 0 -3% -12% 0; width: 24%; }
/* scena 5: telefon na pierwszym planie, laptop w tle */
.devices--tel-przod .device--laptop { width: 88%; justify-self: start; opacity: .92; }
.pin .devices--tel-przod .device--phone { width: 30%; justify-self: end; margin: 0 -2% -12% 0; }

/* ============ OPOWIEŚĆ ============ */
.story { position: relative; }
.story-bg, .story-dot { display: none; pointer-events: none; }
/* tryb animowany (silnik dodaje .story-on): tło scen pod treścią, trójkąt i nić nad treścią */
.story-on .story-bg, .story-on .story-dot {
  display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh;
}
.story-on .story-bg { z-index: 0; }
.story-on .story-dot { z-index: 30; }

.story-skip {
  position: absolute; left: 24px; top: 84px; z-index: 5;
  padding: 10px 16px; border-radius: 12px; background: #071226; color: #FFFFFF;
  font-weight: 600; font-size: 14px; text-decoration: none;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.story-skip:focus { clip-path: none; width: auto; height: auto; overflow: visible; }

.chapter { position: relative; z-index: 1; height: 210vh; }
/* gradienty scen w CSS: bez JS i przy ograniczonym ruchu (w trybie animowanym tło rysuje canvas) */
.chapter[data-scene="inbox"]   { background: linear-gradient(180deg, #F7F8FA, #E9ECF0); }
.chapter[data-scene="docs"]    { background: linear-gradient(180deg, #0D1B33, #16263F); }
.chapter[data-scene="task"]    { background: linear-gradient(180deg, #FFFFFF, #FFF0E4); }
.chapter[data-scene="review"]  { background: linear-gradient(180deg, #F3F4F6, #E9EEF7); }
.chapter[data-scene="team"]    { background: linear-gradient(180deg, #0B1424, #132038); }
.chapter[data-scene="archive"] { background: linear-gradient(180deg, #071226, #0D1B33); }
.chapter[data-scene="tower"]   { background: radial-gradient(1100px 560px at 108% -12%, rgba(253,108,2,.075), transparent 62%), linear-gradient(180deg, #F3F4F6, #FFFFFF); }
.story-on .chapter { background: none; }

.pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; padding: 64px 4% 24px 5%;
}
.pin > .devices { position: absolute; top: 88px; bottom: 48px; left: 60%; right: 4%; }

.panel {
  position: relative; z-index: 1;
  width: min(32vw, 460px);
  max-height: calc(100vh - 96px); max-height: calc(100svh - 96px); overflow: auto;
  padding: 32px 32px 30px; border-radius: 16px;
  color: #0F1626;
  background: rgba(255,255,255,.88);
  border: 1px solid #E4E6EA;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -36px rgba(7,18,38,.35);
}
.chapter[data-tone="dark"] .panel {
  color: #E9EDF4; background: rgba(7,18,38,.88); border-color: rgba(255,255,255,.08);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.6);
}
.panel .kicker {
  margin: 0 0 14px; color: #B44B00;
  font-family: var(--f-display); font-variation-settings: "wdth" 84;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.chapter[data-tone="dark"] .panel .kicker { color: #FF8A33; }
.panel h2 {
  margin: 0 0 14px; color: inherit;
  font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 105;
  font-size: clamp(30px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.02em;
  text-wrap: balance;
}
.panel .lead { font-size: 18px; line-height: 1.55; color: #58606E; }
.chapter[data-tone="dark"] .panel .lead { color: #A9B3C4; }
.panel .ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.panel .ticks li { position: relative; padding-left: 17px; font-size: 15px; line-height: 1.5; }
.panel .ticks li::before {     /* znacznik = pionowa perforacja 3×12 px, jak oś pasa startowego w menu panelu */
  content: ""; position: absolute; left: 0; top: .3em; width: 3px; height: 12px;
  background: repeating-linear-gradient(to bottom, #FD6C02 0 3px, transparent 3px 4.5px);
}
/* niskie albo węższe ekrany komputera (1024×700, 1280×720): panel musi zmieścić się w przypiętym kadrze */
@media (min-width: 900px) and (max-height: 760px), (min-width: 900px) and (max-width: 1180px) {
  .panel { padding: 24px; }
  .panel .kicker { margin-bottom: 10px; }
  .panel h2 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 10px; }
  .panel .lead { font-size: 16px; }
  .panel .ticks { margin-top: 14px; gap: 7px; }
  .panel .ticks li { font-size: 14px; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* silnik wprowadza panel (p .17–.30) i makietę (p .22–.36); bez JS wszystko widać od razu */
  .story-on .chapter .panel, .story-on .chapter .devices { opacity: 0; will-change: opacity, transform; }
}

html:not(.js) .chapter { height: auto; min-height: 100vh; }
html:not(.js) .pin { position: relative; }
.s-nojs {
  position: relative; z-index: 1; margin: 0; padding: 76px 24px 12px; text-align: center;
  background: #071226; color: #E9EDF4; font-size: 14px;
}

/* ============ CENNIK ============ */
.s-cennik {
  position: relative; z-index: 1; padding: 120px 0 104px; color: #0F1626;
  background: radial-gradient(1100px 560px at 108% -12%, rgba(253,108,2,.075), transparent 62%), #F3F4F6;
}
.s-cennik .tiers { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-cennik .tier {
  display: flex; flex-direction: column; position: relative;
  padding: 28px 24px 24px; border-radius: 16px;
  background: #FFFFFF; border: 1px solid #E4E6EA;
}
.s-cennik .tier--best { border: 1.5px solid #FD6C02; background: linear-gradient(180deg, #FFF0E4, #FFFFFF 46%); }
.s-cennik .tier__flag {
  position: absolute; top: -11px; left: 22px; padding: 4px 10px; border-radius: 999px;
  background: #FD6C02; color: #071226;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.s-cennik .tier__name { font-family: var(--f-display); font-size: 19px; font-weight: 800; color: #0F1626; }
.s-cennik .tier__price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.s-cennik .tier__amount { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 600; color: #0F1626; font-variant-numeric: tabular-nums; }
.s-cennik .tier__per { font-size: 13px; color: #58606E; }
.s-cennik .tier__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; flex: 1; }
.s-cennik .tier__list li { display: flex; gap: 9px; font-size: 14px; line-height: 1.45; color: #0F1626; }
.s-cennik .tier__list li::before { content: "✓"; color: #B44B00; font-weight: 700; flex: none; }
.s-cennik .tier .s-btn { margin-top: 22px; width: 100%; }
.s-cennik__extra { margin-top: 28px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.6; color: #58606E; }
.s-cennik .ref-landing { margin-top: 14px; font-size: 14px; line-height: 1.6; color: #58606E; }
.s-cennik .ref-landing b { color: #0F1626; }

/* ============ REJESTRACJA (ciemna strefa, formularz z sales.js) ============ */
.s-rej {
  position: relative; z-index: 1; padding: 112px 0 112px; color: #C3C9D4;
  background:
    linear-gradient(115deg, rgba(255,255,255,.045) 0%, transparent 34%),
    radial-gradient(1150px 560px at 82% -8%, rgba(253,108,2,.30), transparent 62%),
    radial-gradient(900px 620px at -14% 112%, rgba(253,108,2,.12), transparent 66%),
    linear-gradient(168deg, #17293F 0%, #0C1A31 44%, #050D1B 100%);
}
.s-rej > .s-wrap { position: relative; }
.s-rej .s-h2 { color: #FFFFFF; }
.s-rej .s-sub { color: rgba(255,255,255,.7); }
.s-rej .signup__meta { margin-top: 12px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.s-rej .signup { margin-top: 32px; }
.s-rej .signup__trust { display: flex; align-items: center; gap: 8px; margin-top: -10px; font-size: 13px; color: rgba(255,255,255,.72); }
.s-rej .signup__trust svg { flex: none; width: 15px; height: 15px; color: #4CC486; }
.s-rej__nojs { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); color: #E9EDF4; }
.s-rej__nojs a { color: #FF8A33; }

/* ============ STOPKA ============ */
.s-stopka {
  position: relative; z-index: 1;
  min-height: 60vh; min-height: 60svh;
  padding: 10vh 0 40px; padding: 10svh 0 40px;
  background: #F3F4F6; border-top: 1px solid #E4E6EA;
  color: #58606E; font-size: 14px;
}
.s-stopka { display: flex; flex-direction: column; }
.s-stopka__in { flex: 1; width: 100%; display: grid; gap: 18px; justify-items: start; grid-template-rows: auto auto auto 1fr; }
.s-stopka__firma { align-self: end; }
.s-stopka__brand { display: flex; align-items: center; gap: 14px; }
.foot-logo { position: relative; display: block; flex: none; width: 56px; height: 56px; border-radius: 13px; }
.foot-logo svg { display: block; width: 56px; height: 56px; }
.foot-logo__pasy path { fill: #FD6C02; }
/* gniazdo przed lądowaniem trójkąta: kontury 4 pasów; pełny znak po .landed (bez JS i przy ograniczonym ruchu — od razu pełny) */
.story-on .foot-logo:not(.landed) .foot-logo__pasy path { fill: none; stroke: rgba(253,108,2,.22); stroke-width: .5; }
.foot-logo::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(253,108,2,.18), rgba(253,108,2,0));
}
.foot-logo.blysk::after { animation: s-blysk 500ms ease-out both; }
@keyframes s-blysk { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.s-stopka__wm { display: block; height: 30px; width: auto; }
.s-stopka__tag { font-size: 15px; color: #0F1626; }
.s-stopka__nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 8px; }
.s-stopka__nav a, .s-stopka__nav button {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #58606E; font: 600 14px var(--f-body); text-decoration: none;
}
.s-stopka__nav a:hover, .s-stopka__nav button:hover { color: #0F1626; text-decoration: underline; text-underline-offset: 4px; }
.s-stopka__firma { margin-top: 8px; font-size: 12.5px; line-height: 1.6; color: #676E79; }

/* ============ EKRAN LOGOWANIA (#/zaloguj) — dawna lewa kolumna na pełną szerokość ============ */
.login { grid-template-columns: minmax(0, 1fr); }
.login__panel { border-right: 0; }
.login__home {
  display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0 18px;
  font-weight: 600; font-size: 13.5px; color: var(--text-soft); text-decoration: none;
}
.login__home:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ============ TELEFON (< 900 px) ============ */
@media (max-width: 899px) {
  html { scroll-padding-top: 64px; }
  .s-szeroki, .s-head__nav { display: none; }
  .s-waski { display: inline; }
  .s-head { height: 56px; gap: 4px; padding: 0 12px 0 16px; }
  .s-head__logo { margin-right: auto; }
  .s-head__wm { height: 22px; }
  .s-head__login { margin-left: 0; padding: 0 10px; }
  .s-head__cta { padding: 0 16px; }

  .s-hero { display: block; min-height: 0; padding: 88px 0 0; }
  .s-hero__in { display: block; padding: 0 16px; }
  .s-hero__title { font-size: 36px; }
  .s-hero__lead { font-size: 16px; }
  .s-hero__cta { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 26px; }
  .s-hero__cta .s-btn { width: 100%; }
  .s-hero__cta .s-link { justify-content: center; }
  .s-hero__micro { margin-top: 20px; }
  .s-hero__devices { margin-top: 28px; justify-items: center; height: 300px; overflow: hidden; align-content: start; }
  .s-hero__devices .device--laptop { display: none; }
  .s-hero__devices .device--phone { width: min(62%, 260px); margin: 0; justify-self: center; align-self: start; }
  .hero-anchor { left: 86%; top: 120px; width: 44px; height: 27px; margin: -13.5px 0 0 -22px; }

  .chapter { height: auto; min-height: 170vh; }
  .pin { position: relative; display: block; height: auto; padding: 46vh 16px 14vh; }
  .pin > .devices { position: relative; inset: auto; margin-top: 28px; justify-items: center; }
  .panel { width: auto; max-width: 560px; max-height: none; overflow: visible; margin: 0 auto; padding: 22px 20px; }
  .panel { background-color: rgba(255,255,255,.90); }                   /* materiał α .90 (F) */
  .chapter[data-tone="dark"] .panel { background-color: rgba(7,18,38,.90); }
  .panel h2 { font-size: 27px; }
  .panel .lead { font-size: 16px; }
  .panel .ticks li { font-size: 14.5px; }
  .panel .ticks li:nth-child(n+3) { display: none; }       /* telefon: maks. 2 punkty */
  .devices .device--laptop { display: none; }
  .devices .device--tylko-tel { display: block; }
  .devices .device--crop { display: block; justify-self: center; }
  .pin .devices .device--phone { width: min(58%, 240px); margin: 0; justify-self: center; align-self: start; }

  .s-cennik { padding: 88px 0 72px; }
  .s-cennik .tiers { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .s-wrap { padding: 0 16px; }
  .s-rej { padding: 80px 0; }
}

/* ============ OGRANICZONY RUCH: nieruchome kadry zamiast przypiętego canvasu ============ */
@media (prefers-reduced-motion: reduce) {
  .chapter { height: auto; min-height: 100vh; min-height: 100svh; }
  .pin { position: relative; min-height: 100vh; min-height: 100svh; height: auto; }
  .scene-still {
    position: absolute; top: 0; left: 0; z-index: 0; display: block;
    width: 100%; height: 100vh; height: 100svh; pointer-events: none;
  }
  .s-head, .s-head__cta, .s-btn { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .chapter { min-height: 140vh; }
}

/* ============ PREFERENCJE DOSTĘPNOŚCI ============ */
@media (prefers-reduced-transparency: reduce) {
  .strona .panel { background: #FFFFFF; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .strona .chapter[data-tone="dark"] .panel { background: #0D1B33; }
  .s-head { background: #071226; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .s-head[data-tone="light"] { background: #F3F4F6; }
}
@media (prefers-contrast: more) {
  .strona .panel { background: #FFFFFF; border: 1px solid #C9CDD3; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .strona .chapter[data-tone="dark"] .panel { background: #0D1B33; border-color: #3A4B69; }
  .strona .panel .lead { color: #0F1626; }
  .strona .chapter[data-tone="dark"] .panel .lead { color: #E9EDF4; }
  .s-head { background: #071226; border-bottom-color: #3A4B69; }
  .s-head[data-tone="light"] { background: #F3F4F6; border-bottom-color: #C9CDD3; }
}
