/* ==========================================================================
   Softineo: wspólny system wyglądu „cały zakład na jednym arkuszu”.
   Strona to rysunek techniczny: chłodny papier, grafit i niebieskoszara kreska.
   Żółty #ffb600 to ZAKREŚLACZ, nie tło: trasa pojazdu, główne działania,
   bieżąca adnotacja i decyzja STCS, drobne znaczniki. Najwyżej JEDNO pełne
   żółte pole na stronę (na głównej: wybrana warstwa w „Rozwiązaniach”).

   Ładowanie: <link rel="stylesheet" href="css/softineo.css"> + własny css strony;
   skrypty: js/site.js (defer; menu, formularz, [data-year], .scroll-hint),
   przy planach js/stcs-core.js (window.STCS).
   Fonty: Familjen Grotesk (tekst), osifont (tylko opisy rysunku, --tech).

   PRZEWODNIK PO KLASACH
   Tokeny     --paper --paper-hi --paper-lo | --ink --ink-2 --line --line-2 |
              --y (żółty) --y-deep (żółty na papierze: kreski, podkreślenia) |
              --g (margines boczny) --head-h --display --tech --ease-out
   Podstawa   .skip (link „Przejdź do treści”), .vh (tylko dla czytników),
              .num (cyfry tabelaryczne), mark / .hl-mark (zakreślacz słów)
   Nagłówek   header.site-header > a.brand, button.menu-toggle(3×span),
              nav > ul.nav#nav > li.has-dropdown(button + ul.dropdown a<small>),
              li.nav-cta (Kontakt, tylko w menu na telefonie), a.btn.btn-primary.header-cta
   Przyciski  .btn + .btn-primary (żółty, główne działanie) | .btn-line (kontur) |
              .btn-ink (grafit, rzadko); .link-arrow (link ze strzałką)
   Sekcje     section.sec (pełna szerokość z marginesem --g), .sec-head (h2 + .sec-lead
              w dwóch kolumnach, kreska pod spodem), .sec-p (tekst prowadzący, 60ch)
   Arkusz     section.sheet > .refs.refs-top(6×span A–F) + .refs.refs-side(6×span 1–6)
              + .sheet-body > figure.plan-wrap (svg.plan + figcaption.plan-log ol li[.dec])
              + div.tb (tabliczka): .tb-head (h1, .tb-lead, .tb-actions) + dl.stamp
              (div > dt + dd; .st-wide na całą szerokość, .st-note = uwaga, np. „Przykład: dane
              przykładowe”). Pierwszy ekran każdej strony. Tabliczka i ramki: tylko kreski tuszem.
   Rysunek    (w SVG) .lbl .lbl.sm .lbl-soft | .site .fence .road+.road-in .route .arrow
              .cable | .scale .post .boom .cam .cone .office .erp .ledb .led-t .loader
              .pile .pit-o .north .scalebar .pin-photo(rect.print + image + path.print-rule + text) .dim
   Adnotacje  g.note (+.is-on widoczna, .is-now bieżąca: żółty zakreślacz) z path.leader,
              circle.leader-dot, text; g.note.dec = DECYZJA STCS: rect.box, path.dia
              (romb), text + text.cmd-t („→ polecenie…”). svg.plan.is-static: wszystko widać.
   Dane       path.flow.flow-r „odczyt → STCS” (kropkowana, grot #ar-r),
              path.flow.flow-c „STCS → polecenie” (żółta przerywana, grot #ar-c),
              circle.pkt (kropka odczytu), path.cmd (romb polecenia); .flow.is-on = widoczna
   Znaczniki  svg.mk.mk-dec (romb decyzji), svg.mk.mk-read (odczyt), svg.rev-tri
              (trójkąt rewizji z literą), .rev-cloud (chmurka rewizyjna), .swatch (kreskowanie)
   Tabele     table.cmp-t (moment | stan poprzedni td.c-old | STCS td.c-new; th.h-old/.h-new,
              span.c-lbl = etykieta na telefonie, span.c-body > svg.mk + span),
              dl.facts (tabela jak tabliczka: div > dt + dd > b + span)
   Legenda    .legend ul li (> svg.swatch), .notes-h (nagłówek listy w liternictwie)
   Zdjęcia    figure.print = prosty widok szczegółu: ramka tuszem, bez obrotu, taśmy i cienia;
              > picture/img + figcaption (pole podpisu w liternictwie, opcjonalnie svg.swatch)
   Aplikacja  section.app-note > .app-note-body > dl.facts + figure.print.app-thumb (kadr = link do filmu na aplikacja.html)
   Film       .film-wrap > figure.print.film (video muted loop playsinline + figcaption > span + button.film-toggle)
              + ol.film-steps#… (li[data-t] > button > span.fs-n + b + span.fs-t; .is-now = bieżący krok);
              figure[data-steps] łączy film z listą; site.js: gra, gdy widać, przycisk zatrzymuje, krok przewija
   Formularz  form.rev-form[data-contact] > .rf-head, .rf-grid > label.field(.wide) > span
              + input/textarea, .rf-foot (.form-note + .btn); site.js dodaje .form-status
              (.is-ok/.is-err) i .is-bad na polach; .hp = pułapka „website”
   Stopka     footer.site-footer > .f-grid w kolejności ważności: .f-brand (logo + opis), kolumny linków
              (Rozwiązania, Zobacz w działaniu), .f-contact (a.f-mail + address, pole grafitowe);
              + .f-stamp (3×span: ©, wsparcie, rysunek)
   Historia   section.ss (przewijana historia krok po kroku): .ss-pin > .ss-sheet > .ss-body: .ss-plan, .ss-stamp,
              .ss-tb (.ss-head + .ss-panel: ol.ss-chips, .ss-nav, ol.ss-steps > li.ss-step); .ss-track.
              Treść kroku: .st-num, .st-card > .st-row, ul.st-checks, .st-ledmock, ol.st-timeline. Skrypt: STCS.ScrollSteps
   Zgoda      .consent (baner zgody na Clarity, wstrzykuje site.js) + button.f-cookies w .f-stamp
   Inne       .scroll-hint (wstrzykuje site.js): wąska zakładka przy dolnej krawędzi okna;
              site.js pokazuje ją tylko wtedy, gdy pod nią jest pusty papier (nie tekst, obraz, SVG, pole)
   Zasady     Bez cieni pod panelami (tylko ramka na papierze). Żółty pasek u góry = wyłącznie
              „bieżące / wybrane”. Żadnych etykiet nad nagłówkami. Zakreślacz tylko na decyzjach STCS
              i kluczowych słowach, nie na odczytach.

   Wzory kreskowania, groty strzałek i symbole legendy: wstaw na początku <body>:
   <svg class="defs" aria-hidden="true" focusable="false">
     <defs>
       <pattern id="h-diag" width="7" height="7" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><line x1="0" y1="0" x2="0" y2="7" class="hl"/></pattern>
       <pattern id="h-diag-wide" width="12" height="12" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><line x1="0" y1="0" x2="0" y2="12" class="hl"/></pattern>
       <pattern id="h-cross" width="9" height="9" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><path d="M0 0V9M0 0H9" class="hl"/></pattern>
       <pattern id="h-dots" width="8" height="8" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1.1" class="hd"/><circle cx="6" cy="6" r=".8" class="hd"/></pattern>
       <pattern id="h-gravel" width="16" height="14" patternUnits="userSpaceOnUse"><circle cx="3" cy="3" r="1.6" class="hc"/><circle cx="11" cy="5" r="1" class="hd"/><circle cx="7" cy="11" r="2" class="hc"/><circle cx="14" cy="12" r=".9" class="hd"/></pattern>
       <pattern id="h-concrete" width="18" height="18" patternUnits="userSpaceOnUse"><path d="M3 5l4-2 1 4z" class="hc"/><circle cx="13" cy="4" r="1" class="hd"/><path d="M11 13l4 1-2 3z" class="hc"/><circle cx="4" cy="14" r=".9" class="hd"/><circle cx="9" cy="9" r=".7" class="hd"/></pattern>
       <pattern id="h-asphalt" width="4" height="4" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><line x1="0" y1="0" x2="0" y2="4" class="hl hl-bold"/></pattern>
       <pattern id="h-earth" width="24" height="12" patternUnits="userSpaceOnUse"><path d="M2 9h8M5 6h4M14 4h8M17 1h4" class="hl"/></pattern>
   
       <marker id="ar-r" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0 1L9 5L0 9Z" class="ar-r"/></marker>
       <marker id="ar-c" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse"><path d="M0 1L9 5L0 9Z" class="ar-c"/></marker>
       <symbol id="s-cam" viewBox="0 0 24 24"><rect x="3" y="8" width="11" height="8" rx="1"/><path d="M14 10l7-4v12l-7-4z"/></symbol>
       <symbol id="s-bar" viewBox="0 0 24 24"><circle cx="5" cy="12" r="3"/><path d="M8 12h14" stroke-width="3"/></symbol>
       <symbol id="s-scale" viewBox="0 0 24 24"><rect x="2" y="6" width="20" height="12"/><path d="M6 6l-4 4M12 6l-10 10M18 6l-12 12M22 8l-10 10M22 14l-4 4"/></symbol>
       <symbol id="s-office" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14"/><rect x="8" y="9" width="8" height="5"/><path d="M12 14v2"/></symbol>
       <symbol id="s-loader" viewBox="0 0 24 24"><rect x="5" y="7" width="12" height="10" rx="1"/><path d="M17 5h3v14h-3"/></symbol>
     </defs>
   </svg>
   ========================================================================== */

@font-face { font-family: "Familjen"; src: url(../fonts/familjen-latin-ext.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  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: "Familjen"; src: url(../fonts/familjen-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap;
  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; }
@font-face { font-family: "Osifont"; src: url(../fonts/osifont.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --paper: #e3e8ed;
  --paper-hi: #edf1f4;
  --paper-lo: #d6dde4;
  --ink: #1b2127;
  --ink-2: #3a4754;
  --line: #62778b;
  --line-2: #a3b2c0;
  --grid: rgba(64, 96, 128, .07);
  --grid-major: rgba(64, 96, 128, .12);
  --y: #ffb600;
  --y-hi: #ffc53a;
  --y-deep: #e5a200;
  --y-ink: #4a3500;
  --ok: #2f6b34;
  --err: #a3261c;

  --g: clamp(16px, 2.6vw, 44px);
  --sheet-pad: clamp(18px, 2.2vw, 36px);
  --head-h: 64px;
  --display: "Familjen", "Helvetica Neue", Arial, sans-serif;
  --tech: "Osifont", "Familjen", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); scrollbar-color: var(--line) var(--paper-lo); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: var(--g) 0, var(--g) 0, var(--g) 0, var(--g) 0;
  font-feature-settings: "kern";
  overflow-x: clip;
  caret-color: var(--y-deep);
}
::selection { background: var(--y); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-lo); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--paper-lo); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }   /* np. tymczasowo ukryty Blog w menu */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
/* odnośniki w tekście ciągłym: podkreślenie zakreślaczem, żeby było widać, że da się kliknąć */
:is(p, li, dd, td) > a:not([class]) { font-weight: 600; text-decoration-color: var(--y-deep); text-decoration-thickness: 2px; }
:is(p, li, dd, td) > a:not([class]):hover { text-decoration-color: var(--ink); }
h1, h2, h3 { font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.num, dd.num { font-variant-numeric: tabular-nums lining-nums; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--y); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hl { stroke: var(--line); stroke-width: 1; fill: none; }
.hl-bold { stroke: var(--ink-2); stroke-width: 2.2; }
.hd { fill: var(--line); }
.hc { fill: none; stroke: var(--line); stroke-width: .9; }
.skip { position: absolute; left: var(--g); top: -60px; z-index: 100; background: var(--y); color: var(--ink); padding: 10px 16px; font-weight: 700; text-decoration: none; border: 1px solid var(--ink); }
.skip:focus { top: 10px; }
/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 22px;
  font: 700 16px/1.2 var(--display); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 0;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn::after { content: ""; width: 18px; height: 10px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease-out); }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { background: var(--y); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--y); }
.btn-ink { background: var(--ink); color: var(--y); }
.btn-ink:hover { background: #000; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: rgba(27, 33, 39, .08); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: underline; text-decoration-color: var(--y-deep); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.link-arrow::after { content: ""; width: 16px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease-out); }
.link-arrow:hover { text-decoration-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(3px); }
/* ---------- nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: var(--head-h); padding: 0 var(--g);
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
}
.brand { flex: none; display: block; }
.brand img { width: 160px; height: 40px; }
.site-header nav { margin-left: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav > li > a, .nav > li > button {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  font: 600 16px/1 var(--display); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
  background-image: linear-gradient(var(--y), var(--y)); background-repeat: no-repeat; background-size: 0 6px; background-position: 12px 70%;
  transition: background-size .3s var(--ease-out);
}
.nav > li > a:hover, .nav > li > button:hover, .has-dropdown.is-open > button { background-size: calc(100% - 24px) 6px; }
.chev { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease-out); }
.has-dropdown { position: relative; }
.has-dropdown.is-open .chev { transform: rotate(180deg); }
.dropdown {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 10px); left: 0; width: 340px;
  background: var(--paper-hi); border: 1px solid var(--ink);
  box-shadow: none;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
}
.dropdown::before { content: ""; position: absolute; left: 28px; top: -10px; height: 10px; border-left: 1px solid var(--ink); }
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 700; line-height: 1.25; border-bottom: 1px solid var(--line-2); }
.dropdown li:last-child a { border-bottom: 0; }
.dropdown a small { display: block; font: 400 14px/1.3 var(--display); color: var(--ink-2); margin-top: 3px; }
.dropdown a:hover { background: var(--y); }
.dropdown a:hover small { color: var(--ink); }
/* bieżąca strona w menu i stopce: bez linku (konwencja strony), oznaczona tak jak pozycja pod kursorem */
.nav > li > .nav-here {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
  font: 600 16px/1 var(--display); color: var(--ink); cursor: default;
  background: linear-gradient(var(--y), var(--y)) no-repeat 12px 70% / calc(100% - 24px) 6px;
}
.dropdown .nav-here { display: block; padding: 10px 12px; font-weight: 700; line-height: 1.25; border-bottom: 1px solid var(--line-2); background: var(--y); cursor: default; }
.dropdown li:last-child .nav-here { border-bottom: 0; }
.dropdown .nav-here small { display: block; font: 400 14px/1.3 var(--display); color: var(--ink); margin-top: 3px; }
/* „Rozwiązania” podkreślone, gdy jesteśmy na jednej z jego stron */
.has-dropdown:has(.nav-here) > button { background-size: calc(100% - 24px) 6px; }
.foot-here { font-weight: 700; background: linear-gradient(transparent 60%, var(--y) 60%, var(--y) 92%, transparent 92%); }
.nav-cta { display: none; }
.header-cta { min-height: 42px; padding: 8px 18px; }
.menu-toggle { display: none; }
/* ---------- arkusz: plan zakładu ---------- */
main { display: block; }
.sheet {
  position: relative;
  margin: 12px var(--g) 0;
  height: calc(100svh - var(--head-h) - 12px);
  min-height: 640px; max-height: 1060px;
  border: 1.5px solid var(--ink);
  padding: 24px;
  background: rgba(237, 241, 244, .55);
}
.sheet::before { content: ""; position: absolute; inset: 23px; border: 1px solid var(--line); pointer-events: none; }
.refs { position: absolute; display: grid; font: 13px/1 var(--tech); color: var(--ink-2); pointer-events: none; }
.refs span { display: flex; align-items: center; justify-content: center; }
.refs-top { left: 24px; right: 24px; top: 0; height: 24px; grid-template-columns: repeat(6, 1fr); }
.refs-top span + span { border-left: 1px solid var(--line); }
.refs-side { top: 24px; bottom: 24px; left: 0; width: 24px; grid-template-rows: repeat(6, 1fr); }
.refs-side span + span { border-top: 1px solid var(--line); }
.sheet-body {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 29vw, 540px);
}
.plan-wrap { margin: 0; position: relative; min-height: 0; display: flex; flex-direction: column; }
.plan { flex: 1; width: 100%; height: 100%; min-height: 0; display: block; overflow: hidden; }
/* rysunek */
.plan text, .mini text, .detail-art text { font-family: var(--tech); }
.lbl { font-size: 14px; fill: var(--ink-2); letter-spacing: .02em; }
.lbl.sm { font-size: 11px; }
.lbl-soft { fill: var(--line); }
.lbl-b { fill: var(--ink); font-size: 15px; }
.site { fill: rgba(237, 241, 244, .5); stroke: none; }
.fence { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 14 4 2 4; }
.pub { fill: none; stroke: var(--line); stroke-width: 46; }
.pub-in { fill: none; stroke: #dbe1e7; stroke-width: 44; }
.road { fill: none; stroke: var(--ink-2); stroke-width: 46; }
.road-in { fill: none; stroke: #d5dce3; stroke-width: 43.5; }
.route { fill: none; stroke: var(--y); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.arrow { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cable { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-dasharray: 6 4; }
.pile { fill: url(#h-gravel); stroke: var(--ink-2); stroke-width: 1.3; }
.pile-c { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.scale rect, .scale-r { fill: url(#h-diag); stroke: var(--ink); stroke-width: 1.6; }
.dim path { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.dim .tick { stroke-width: 1.4; }
.office .wall { fill: url(#h-cross); stroke: var(--ink); stroke-width: 1.6; }
.office .room { fill: var(--paper-hi); stroke: var(--ink-2); stroke-width: 1; }
.office .scr { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; transition: fill .4s var(--ease-out); }
.office .scr-l { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.office.is-hot .scr { fill: var(--y); }
.post { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.6; }
.boom { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.cam rect, .cam path { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; }
.cone { fill: var(--y); }
.loader rect { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.5; }
.loader .cab { fill: var(--y); }
.bucket { fill: url(#h-gravel); stroke: var(--ink); stroke-width: 1.5; }
.pin-photo .print { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; }
.pin-photo .print-rule { fill: none; stroke: var(--ink); stroke-width: 1; }
.pin-photo image { filter: saturate(.9); }
.leader { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.leader-soft { stroke-dasharray: 3 3; stroke: var(--ink-2); }
.leader-dot { fill: var(--y); stroke: var(--ink); stroke-width: 1.2; }
.scalebar rect { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1; }
.scalebar .sb-f { fill: var(--ink); }
.north circle { fill: none; stroke: var(--ink-2); stroke-width: 1; }
.north path { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.2; }
.north .n-f { fill: var(--ink); }
.pit-o { fill: url(#h-earth); stroke: var(--ink-2); stroke-width: 1.3; }
.pit-c { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 5 3; }
.pkt { fill: var(--ink); stroke: var(--paper-hi); stroke-width: 1.6; }
.cmd { fill: var(--y); stroke: var(--ink); stroke-width: 1.5; }
.flow { fill: none; opacity: 0; transition: opacity .4s var(--ease-out); }
.flow.is-on { opacity: 1; }
.flow-r { stroke: var(--ink); stroke-width: 2.2; stroke-dasharray: 1 5; stroke-linecap: round; marker-end: url(#ar-r); }
.flow-c { stroke: var(--y-deep); stroke-width: 2.4; stroke-dasharray: 9 5; marker-end: url(#ar-c); }
.ar-r { fill: var(--ink); }
.ar-c { fill: var(--y-deep); }
.plan.is-static .flows .flow { opacity: .85; }
.ledb rect { fill: var(--ink); stroke: var(--ink); }
.ledb .post-l, .plan .post-l { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.led-t { font-size: 10.5px; fill: var(--y); text-anchor: middle; letter-spacing: .06em; }
.erp rect { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; transition: fill .4s var(--ease-out); }
.erp .doc { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.2; }
.erp.is-hot rect, .erp.is-hot .doc { fill: var(--y); }
.note.dec .box { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.6; transition: fill .45s var(--ease-out); }
.note.dec .dia { fill: var(--y); stroke: var(--ink); stroke-width: 1.4; }
.note.dec text { font-size: 15px; }
.note.dec .cmd-t { fill: #5a4000; }
.note.dec.is-now .box { fill: var(--y); }
.note.dec.is-now .dia { fill: var(--ink); }
.note.dec.is-now .cmd-t { fill: var(--ink); }
/* adnotacje */
.note { opacity: 0; transition: opacity .45s var(--ease-out); }
.note text { font-size: 18px; fill: var(--ink); letter-spacing: .01em; }
.note .hl-bg { fill: var(--paper-hi); transition: fill .45s var(--ease-out); }
.note.is-now .hl-bg { fill: var(--y); }
.note.is-on { opacity: 1; }
.plan.is-static .note { opacity: 1; }
/* pasek podpisów (telefon) i opis dla czytników */
.plan-log { display: none; }
.plan-log ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
/* tabliczka rysunkowa */
.tb {
  display: grid; grid-template-rows: 1fr auto;
  background: var(--paper-hi);
  border-left: 1.5px solid var(--ink);
  min-height: 0;
}
.tb-head { padding: clamp(20px, 2.2vw, 36px); display: flex; flex-direction: column; justify-content: flex-start; gap: 0; min-height: 0; }
.tb h1 { font-size: clamp(32px, 2.75vw, 50px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: .55em; }
.tb-lead { font-size: clamp(16px, 1.1vw, 19px); line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.tb-actions .btn { flex: 1 1 auto; }
.stamp { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid var(--ink); }
.stamp > div { padding: 8px 14px 10px; border-top: 1px solid var(--ink); min-width: 0; }
.stamp > div:first-child { border-top: 0; }
.stamp > div:not(.st-wide):nth-child(even) { border-right: 1px solid var(--ink); }
.stamp .st-wide { grid-column: 1 / -1; }
.stamp dt { font: 12px/1 var(--tech); color: var(--ink-2); letter-spacing: .04em; margin-bottom: 5px; }
.stamp dd { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.3; }
.stamp .st-wide dd { font-weight: 600; font-size: 14px; }
.stamp .st-note dd { font-weight: 400; color: var(--ink-2); }
/* ---------- sekcje ---------- */
.sec { margin: 0 var(--g); padding: clamp(72px, 9vw, 150px) 0 clamp(40px, 5vw, 80px); position: relative; }
.sec h2 { font-size: clamp(34px, 4.2vw, 72px); letter-spacing: -.03em; line-height: 1; }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 72px); align-items: end; border-bottom: 1.5px solid var(--ink); padding-bottom: 28px; }
.sec-lead { font-size: clamp(18px, 1.35vw, 22px); line-height: 1.45; max-width: 44em; }
.sec-lead p:last-child { margin-bottom: 0; }
.sec-p { font-size: clamp(17px, 1.2vw, 20px); line-height: 1.5; max-width: 60ch; color: var(--ink-2); }
/* chmurka rewizyjna */
.rev { position: relative; display: inline-block; margin: 8px 0 0; padding: 4px 30px 4px 6px; }
.rev-cloud {
  display: block; padding: 6px 10px;
  border: 10px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M10 10A5 5 0 0 1 20 10A5 5 0 0 1 20 20A5 5 0 0 1 10 20A5 5 0 0 1 10 10' fill='none' stroke='%233a4754' stroke-width='1.3'/%3E%3C/svg%3E") 10 round;
  background: rgba(255, 182, 0, .3); background-clip: padding-box;
  font-weight: 600; color: var(--ink);
}
.rev > .rev-tri { position: absolute; right: 0; top: -6px; margin: 0; }
.rev-tri { width: 28px; height: 24px; vertical-align: -4px; margin-left: 6px; display: inline-block; }
.rev-tri path { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.rev-tri text { font: 13px var(--tech); text-anchor: middle; fill: var(--ink); }
.notes-h { font: 16px/1 var(--tech); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
/* zakreślacz: kluczowe słowa, nigdy całe akapity */
mark, .hl-mark { color: inherit; background: linear-gradient(transparent 56%, var(--y) 56%, var(--y) 93%, transparent 93%); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* odbitki zdjęć przyklejone do arkusza */
.print { margin: 0; position: relative; background: var(--paper-hi); border: 1px solid var(--ink); padding: 8px; }
.print img { width: 100%; filter: saturate(.92) contrast(1.02); outline: 1px solid var(--line); }
.print figcaption { font: 15px/1.2 var(--tech); color: var(--ink); margin: 8px -8px -8px; padding: 9px 12px 10px; border-top: 1px solid var(--ink); display: flex; align-items: center; gap: 10px; }
/* film z aplikacji: odbitka ekranu w ruchu (bez dźwięku) + lista kroków, która podąża za filmem */
.film-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(28px, 3vw, 44px); align-items: start; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--paper); outline: 1px solid var(--line); }
.film figcaption > span { flex: 1; }
.film-toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px 3px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 14px/1 var(--tech); letter-spacing: .03em; cursor: pointer; }
.film-toggle:hover { background: var(--ink); color: var(--paper-hi); }
.film-toggle:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
.film-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.film-steps { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.film-steps li { border-bottom: 1px solid var(--line-2); }
.film-steps button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; width: 100%; padding: 14px 4px 15px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.film-steps button:focus-visible { outline: 3px solid var(--y); outline-offset: -3px; }
.film-steps .fs-n { grid-row: span 2; align-self: start; min-width: 2.6em; padding: 5px 7px 3px; border: 1px solid var(--ink); font: 15px/1 var(--tech); text-align: center; }
.film-steps b { font-size: 18px; line-height: 1.2; }
.film-steps .fs-t { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.film-steps li.is-now .fs-n { background: var(--y); }
.film-steps li.is-now b { background: linear-gradient(transparent 56%, var(--y) 56%, var(--y) 93%, transparent 93%); }
.film-more { margin-top: 18px; }
@media (max-width: 980px) { .film-wrap { grid-template-columns: minmax(0, 1fr); } }
/* „system pracuje sam, a Ty widzisz wszystko w aplikacji”: trzy punkty + kadr z aplikacji (link do filmu) */
.app-note-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 48px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.app-note-body .facts { margin: 0; }
.app-thumb img { display: block; height: auto; }
.app-thumb a:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
@media (max-width: 980px) { .app-note-body { grid-template-columns: minmax(0, 1fr); } }
/* ten sam odbiór: bez systemu i z STCS */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mk { width: 20px; height: 20px; flex: none; }
.mk-dec path { fill: var(--y); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.mk-read circle { fill: var(--ink); }
.mk-read path { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.cmp-t { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: clamp(32px, 4vw, 56px); }
.cmp-t thead th:nth-child(1) { width: 17%; }
.cmp-t thead th:nth-child(2) { width: 37%; }
.cmp-t thead th:nth-child(3) { width: 46%; }
.cmp-t thead th { text-align: left; vertical-align: bottom; padding: 14px clamp(16px, 1.6vw, 28px) 14px; font-size: clamp(22px, 1.8vw, 30px); line-height: 1.1; letter-spacing: -.02em; }
.cmp-t thead small { display: block; font: 400 14px/1.3 var(--tech); letter-spacing: .02em; margin-top: 6px; }
.cmp-t thead .rev-tri { display: block; margin: 0 0 8px; width: 26px; height: 22px; }
.h-old { color: var(--ink-2); font-weight: 500; border-bottom: 1px solid var(--ink-2); }
.h-old small { color: var(--ink-2); }
.h-new { background: var(--paper-hi); color: var(--ink); border: 1.5px solid var(--ink); }
.h-new small { color: var(--ink-2); }
.cmp-t tbody th { text-align: left; vertical-align: top; padding: 20px 16px 20px 44px; position: relative; font-weight: 700; font-size: clamp(19px, 1.45vw, 24px); line-height: 1.15; letter-spacing: -.01em; }
.cmp-t tbody th::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 6px; background: var(--y); }
.cmp-t tbody tr:first-child th::before { top: 26px; }
.cmp-t tbody tr:last-child th::before { bottom: auto; height: 26px; }
.cmp-t tbody th::after { content: ""; position: absolute; left: 8px; top: 21px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper-hi); border: 1.5px solid var(--ink); }
.cmp-t td { vertical-align: top; padding: 20px clamp(16px, 1.6vw, 28px) 22px; }
.c-old { color: var(--ink-2); font-size: 17px; line-height: 1.5; border-bottom: 1px solid var(--line-2); background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 100% 100%; background-repeat: no-repeat; }
.c-new { background: var(--paper-hi); border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); border-bottom: 1px solid rgba(27, 33, 39, .35); font-size: clamp(17px, 1.2vw, 19px); line-height: 1.45; font-weight: 500; color: var(--ink); }
.cmp-t tbody tr:last-child .c-new { border-bottom: 1.5px solid var(--ink); }
.c-body { display: flex; gap: 12px; align-items: flex-start; }
.c-body .mk { margin-top: 3px; }
.c-new mark { font-weight: 600; }
.c-lbl { display: none; }
.cmp-t tbody tr { transition: background-color .25s; }
.cmp-t tbody tr:hover .c-old { background-color: rgba(237, 241, 244, .8); color: var(--ink); }
.cmp-t tbody tr:hover .c-new { background-color: #fff; }
/* rozwiązania: izolacja warstw */
/* zobacz w działaniu: dwa szczegóły na żółtym polu */
/* branże */
.swatch { width: 30px; height: 20px; flex: none; border: 1px solid var(--ink); background: var(--paper-hi); }
.legend ul { list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); line-height: 1.3; }
.legend .swatch { width: 42px; height: 26px; }
/* o nas */
.facts { margin: 20px 0 0; border: 1.5px solid var(--ink); background: var(--paper-hi); }
.facts > div { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
.facts > div:first-child { border-top: 0; }
.facts dt { font: 12px/1 var(--tech); letter-spacing: .05em; color: var(--ink-2); padding: 9px 14px 0; }
.facts dd { margin: 0; padding: 4px 14px 11px; }
.facts dd b { display: block; font-size: 19px; line-height: 1.2; }
.facts dd span { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.35; margin-top: 2px; }
/* kontakt: zgłoszenie zmiany */
address { font-style: normal; line-height: 1.55; }
.rev-form { border: 1.5px solid var(--ink); background: var(--paper-hi); }
.rf-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1.5px solid var(--ink); font: 16px/1.2 var(--tech); background: var(--paper); }
.rf-head .rev-tri { margin: 0; flex: none; }
.rf-head .rev-tri path { fill: var(--y); }
.rf-head .num { margin-left: auto; font-family: var(--tech); }
.rf-grid { display: grid; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; border-bottom: 1px solid var(--ink); padding: 10px 16px 6px; transition: background-color .2s; position: relative; }
.field:nth-child(odd):not(.wide) { border-right: 1px solid var(--ink); }
.field.wide { grid-column: 1 / -1; }
.field > span { font: 13px/1 var(--tech); letter-spacing: .04em; color: var(--ink-2); margin-bottom: 4px; }
.field input, .field textarea {
  font: 500 18px/1.4 var(--display); color: var(--ink); background: transparent; border: 0; padding: 6px 0 8px; width: 100%; border-radius: 0; resize: vertical;
}
.field textarea { min-height: 128px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: none; }
.field:focus-within { background: rgba(255, 182, 0, .16); box-shadow: inset 0 -3px 0 var(--y-deep); }
.field::placeholder, .field textarea::placeholder { color: #5f6d7a; opacity: 1; }
.field:has(.is-bad) { background: rgba(163, 38, 28, .07); }
.field .is-bad { color: var(--err); }
.field:has(.is-bad) > span { color: var(--err); }
.field:has(.is-bad) > span::after { content: " · do uzupełnienia"; }
.rf-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; padding: 16px; }
.form-note { font-size: 14px; color: var(--ink-2); margin: 0; max-width: 62ch; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 12px 16px 12px 48px; border-top: 1.5px solid var(--ink); position: relative; font-weight: 600; }
.form-status::before { content: ""; position: absolute; left: 16px; top: 13px; width: 20px; height: 18px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.form-status.is-ok { background: var(--paper); }
.form-status.is-ok::before { background: var(--y); box-shadow: inset 0 0 0 1px var(--ink); }
.form-status.is-err { background: #f3dcd8; color: var(--err); }
.form-status.is-err::before { background: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* ---------- stopka: legenda arkusza ---------- */
.site-footer { margin: 0 var(--g) var(--g); border: 1.5px solid var(--ink); background: var(--paper-hi); font-size: 15px; }
.f-grid { display: grid; grid-template-columns: minmax(0, 3.6fr) minmax(0, 2.4fr) minmax(0, 2.2fr) minmax(0, 3fr); }
.f-grid > div { padding: 24px 22px 28px; border-left: 1px solid var(--ink); }
.f-grid > div:first-child { border-left: 0; }
.site-footer h2 { font: 13px/1 var(--tech); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 7px; }
.site-footer a { text-decoration-color: var(--line-2); }
.site-footer a:hover { text-decoration-color: var(--y-deep); text-decoration-thickness: 2px; }
/* linki w stopce: spokojniejsze niż w tekście, zakreślacz dopiero pod kursorem */
.site-footer li > a:not([class]) { font-weight: 500; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; }
.site-footer li > a:not([class]):hover { text-decoration-color: var(--y-deep); text-decoration-thickness: 2px; }
.f-brand p { color: var(--ink-2); margin: 16px 0 0; max-width: 46ch; line-height: 1.5; }
.f-brand p + p { margin-top: 10px; }
/* kontakt: jedyne mocne pole stopki, grafit z żółtym adresem e-mail (jak przycisk btn-ink) */
.f-grid > .f-contact { background: var(--ink); color: var(--paper-hi); }
.site-footer .f-contact h2 { color: var(--line-2); }
.site-footer .f-mail { display: inline-block; margin: 2px 0 16px; font-weight: 700; font-size: clamp(19px, 1.5vw, 24px); color: var(--y); text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 2px; text-underline-offset: .28em; }
.site-footer .f-mail:hover { background: var(--y); color: var(--ink); }
.f-contact address { color: var(--paper-lo); line-height: 1.6; }
.f-contact address .num { color: var(--paper-hi); }
.logo-plate img { width: 145px; height: 36px; }
.lg { width: 28px; height: 20px; flex: none; fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.lg-route { width: 28px; height: 8px; background: var(--y); border-radius: 4px; flex: none; }
.lg-cable { width: 28px; height: 0; border-top: 1.4px dashed var(--line); flex: none; }
.f-stamp { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; border-top: 1.5px solid var(--ink); background: var(--paper); font: 14px/1.3 var(--tech); }
.f-stamp > span { padding: 10px 22px; }
.f-stamp > span + span { border-left: 1px solid var(--ink); }
/* ---------- przypomnienie o przewijaniu (site.js) ---------- */
/* baner zgody na cookies (wstrzykuje site.js): pas na całą szerokość przy dolnej krawędzi; „Akceptuję” żółty */
.consent { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 8px var(--g); border-top: 1.5px solid var(--ink); background: var(--paper-hi); }
.consent p { flex: 1 1 360px; margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.consent p b { color: var(--ink); }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
.consent-actions .btn { min-height: 36px; padding: 6px 16px; }
.consent-actions .btn::after { content: none; }
@media (max-width: 520px) { .consent { padding: 10px 16px; } .consent-actions { flex: 1 1 100%; } .consent-actions .btn { flex: 1; } }
.f-cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--y-deep); text-underline-offset: .25em; cursor: pointer; }
.f-cookies:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
.scroll-hint {
  position: fixed; left: 50%; bottom: 0; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  height: 22px; padding: 0 12px; font: 13px/1 var(--tech); color: var(--ink);
  background: var(--paper-hi); border: 1px solid var(--ink); border-bottom: 0;
  cursor: pointer; opacity: 0; visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
.scroll-hint i { display: none; }
.scroll-hint::after { content: ""; width: 8px; height: 13px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 0v14M1 10l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 0v14M1 10l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.scroll-hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--y); border: 1px solid var(--ink); }
.scroll-hint.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.scroll-hint:hover { background: var(--y); }
/* ---------- treść kroku (przewijane historie i plany): numer, tabelka, lista kontrolna, oś czasu ---------- */
.st-num { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 30px; padding: 3px 8px 0; font: 15px/1 var(--tech); letter-spacing: .04em; color: var(--ink); background: var(--y); border: 1.5px solid var(--ink); margin-bottom: 10px; white-space: nowrap; }
.st-card { border: 1.5px solid var(--ink); background: var(--paper-hi); }
.st-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; padding: 7px 12px 8px; border-top: 1px solid var(--ink); align-items: baseline; }
.st-row:first-child { border-top: 0; }
.st-row span { font: 13px/1.2 var(--tech); letter-spacing: .03em; color: var(--ink-2); }
.st-row b { font-size: 15px; line-height: 1.3; }
.st-checks { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.st-checks li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px solid var(--line-2); font-size: 15px; line-height: 1.3; color: var(--ink-2); transition: color .3s var(--ease-out); }
.st-checks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 15px; height: 15px; border: 1.5px solid var(--line); background: var(--paper-hi); transform: rotate(45deg); transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out); }
.st-checks li.is-on { color: var(--ink); font-weight: 600; }
.st-checks li.is-on::before { background: var(--y); border-color: var(--ink); }
.st-checks li.is-on::after { content: ""; position: absolute; left: 9px; top: 12px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.st-ledmock { display: inline-block; justify-self: start; background: var(--ink); color: var(--y); font: 18px/1 var(--tech); letter-spacing: .08em; padding: 12px 18px 10px; border: 2px solid var(--y); }
.st-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; position: relative; }
.st-timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 3px; background: var(--y); }
.st-timeline li { position: relative; padding: 2px 0; font-size: 14px; line-height: 1.35; }
.st-timeline li::before { content: ""; position: absolute; left: -16px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-hi); border: 1.5px solid var(--ink); }
.st-timeline time { display: inline-block; min-width: 3.4em; font: 14px/1 var(--tech); font-variant-numeric: tabular-nums; color: var(--ink-2); }
@keyframes st-in { from { opacity: .15; transform: translateY(6px); } }

/* ==========================================================================
   PRZEWIJANA HISTORIA KROK PO KROKU (kontrola ruchu, śledzenie materiału, koncepcja TLC)
   .ss > .ss-pin (przypięty arkusz) > .ss-sheet > .ss-body: .ss-plan (rysunek) + .ss-stamp (pasek
   pieczątki) + .ss-tb (tytuł .ss-head i panel kroków .ss-panel); .ss-track daje długość przewijania.
   Skrypt: STCS.ScrollSteps (js/stcs-core.js). Na telefonie przypięty jest sam plan z panelem kroków.
   ========================================================================== */
.ss { position: relative; margin: 12px var(--g) 0; }
.ss-pin { position: sticky; top: calc(var(--head-h) + 12px); height: clamp(600px, calc(100svh - var(--head-h) - 24px), 1060px); z-index: 2; }
.ss-sheet { position: relative; height: 100%; border: 1.5px solid var(--ink); padding: 24px; background: rgba(237, 241, 244, .55); }
.ss-sheet::before { content: ""; position: absolute; inset: 23px; border: 1px solid var(--line); pointer-events: none; }
.ss-body { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 29vw, 540px); grid-template-rows: minmax(0, 1fr) auto; }
.ss-plan { grid-column: 1; grid-row: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 10px 18px 10px 4px; }
.ss-stamp { grid-column: 1; grid-row: 2; }
.ss-stamp.stamp { grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 1fr)); }
.ss-stamp > div, .ss-stamp > div:first-child { border-top: 0; border-left: 1px solid var(--ink); }
.ss-stamp > div:first-child { border-left: 0; }
.ss-stamp > div:not(.st-wide):nth-child(even) { border-right: 0; }
.ss-stamp .st-wide { grid-column: auto; }
.ss-tb { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; min-height: 0; background: var(--paper-hi); border-left: 1.5px solid var(--ink); }
.ss-head { flex: none; padding: clamp(16px, 1.8vw, 28px) clamp(20px, 2.2vw, 34px) 14px; }
.ss-head h1 { font-size: clamp(26px, 1.9vw, 36px); line-height: 1.05; letter-spacing: -.025em; margin-bottom: .4em; }
.ss-lead { font-size: 15px; line-height: 1.45; color: var(--ink-2); margin: 0 0 12px; max-width: 52ch; }
.ss-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.ss-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 12px clamp(20px, 2.2vw, 34px) 16px; border-top: 1.5px solid var(--ink); }
.ss-track { height: calc(var(--ss-n, 8) * 55vh); }

/* numery kroków: z nazwą na wysokim ekranie, same numery w jednym rzędzie na niższym */
.ss-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.ss-chips button {
  width: 100%; display: flex; align-items: center; gap: 7px; min-height: 34px; padding: 3px 10px 2px 4px; text-align: left;
  font: 14px/1 var(--tech); letter-spacing: .02em; color: var(--ink);
  background: var(--paper-hi); border: 1px solid var(--ink); border-radius: 0; cursor: pointer; transition: background-color .2s var(--ease-out);
}
.ss-chips .n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border: 1px solid var(--ink); border-radius: 50%; font-size: 12px; background: var(--paper-hi); }
.ss-chips button:hover { background: #fff; }
.ss-chips button.is-done .n { background: var(--ink); color: var(--y); }
.ss-chips button[aria-current="step"] { background: var(--y); }
.ss-chips button[aria-current="step"] .n { background: var(--paper-hi); color: var(--ink); }
@media (min-width: 1001px) and (max-height: 999px) {
  .ss-chips { grid-template-columns: repeat(var(--ss-n, 8), minmax(0, 1fr)); gap: 4px; }
  .ss-chips button { justify-content: center; padding: 3px 0; }
  .ss-chips .l { display: none; }
}
.ss-nav { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
/* autoodtwarzanie: przełącznik pod numerami kroków, pasek czasu na bieżącym numerze */
/* sam symbol w kółku: odtwórz (zatrzymane) albo pauza (gra); nazwa w title i dla czytników ekranu */
.ss-auto { flex: none; position: relative; width: 44px; height: 44px; margin: 0 2px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper-hi); cursor: pointer; transition: background-color .2s var(--ease-out), transform .2s var(--ease-out); }
.ss-auto:hover { background: var(--y); }
.ss-auto:active { transform: scale(.94); }
.ss-auto i { position: absolute; inset: 0; }
.ss-auto i::before { content: ""; position: absolute; left: 16px; top: 12px; width: 13px; height: 17px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ss-autoplay .ss-auto { background: var(--ink); }
.ss-autoplay .ss-auto:hover { background: #000; }
.ss-autoplay .ss-auto i::before { left: 14px; top: 13px; width: 13px; height: 15px; clip-path: none; background: linear-gradient(90deg, var(--y) 0 36%, transparent 36% 64%, var(--y) 64%); }
/* pasek sterowania: Wstecz · Od początku · odtwórz/pauza · Tempo · Dalej (okrągłe przyciski jak odtwarzacz) */
.ss-nav { gap: 8px; }
.ss-nav .ss-next { margin-left: auto; }
.ss-ic { flex: none; position: relative; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper-hi); color: var(--ink); cursor: pointer; font: 700 13px/1 var(--display); transition: background-color .2s var(--ease-out), transform .2s var(--ease-out); }
.ss-ic:hover { background: var(--y); }
.ss-ic:active, .ss-auto:active { transform: scale(.94); }
/* od początku: wyraźna strzałka powtórki (pełny kształt, 22 px) */
.ss-restart i { position: absolute; inset: 0; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z'/%3E%3C/svg%3E") center / 22px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z'/%3E%3C/svg%3E") center / 22px no-repeat; }
/* tempo: żółty łuk biegnie po obwodzie kółka od góry zgodnie z ruchem wskazówek, długość = tempo / największe tempo
   (1× ćwierć, 2× pół, 4× pełny okrąg); --sf-sp ustawia silnik, @property daje płynne przejście */
@property --sf-sp { syntax: "<number>"; inherits: true; initial-value: .25; }
.ss-tempo { transition: --sf-sp .35s var(--ease-out), background-color .2s var(--ease-out), transform .2s var(--ease-out); }
.ss-tempo::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--y-deep) calc(var(--sf-sp, .25) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px)); }
.ss-tempo:hover::before { background: conic-gradient(var(--ink) calc(var(--sf-sp, .25) * 360deg), transparent 0); }
@media (prefers-reduced-motion: reduce) { .ss-tempo { transition: none; } }
/* podpis na rysunku: pasek jak tabliczka (scenariusz · krok · tytuł) z przełącznikiem, pod nim oś kroków */
.ss-cap { position: relative; z-index: 4; flex: none; margin: 0 0 6px; border: 1.5px solid var(--ink); background: var(--paper-hi); }
.ss-cap-t { display: flex; align-items: center; gap: 14px; margin: 0; padding: 7px 8px 7px 14px; min-height: 48px; }
.ss-cap-sc { flex: none; font: 13px/1.2 var(--tech); letter-spacing: .03em; color: var(--ink-2); padding-right: 14px; border-right: 1px solid var(--line-2); }
.ss-cap-step { flex: 1; min-width: 0; font: 700 clamp(15px, 1.15vw, 18px)/1.2 var(--display); color: var(--ink); }
.ss-cap.is-new .ss-cap-step, .ss-cap.is-new .ss-cap-sc { animation: st-in .45s var(--ease-out) both; }
/* oś kroków: kroki jak przystanki na trasie; za nami pełne, bieżący żółty z czasem, przed nami puste */
.ss-line.ss-chips { display: flex; gap: 0; margin: 0; padding: 8px 14px 10px; border-top: 1px solid var(--line-2); }
.ss-line li { flex: 1 1 0; position: relative; min-width: 0; }
.ss-line li + li::before { content: ""; position: absolute; left: calc(-50% + 12px); right: calc(50% + 12px); top: 12px; height: 2px; background: var(--line-2); }
.ss-line li:has(button.is-done) + li::before, .ss-line li:has(button[aria-current="step"])::before { background: var(--ink); }
.ss-line button { width: 100%; min-height: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; font: 12px/1.15 var(--tech); color: var(--ink-2); text-align: center; }
.ss-line button:hover { background: none; color: var(--ink); }
.ss-line button:hover .n { background: #fff; }
.ss-line .n { width: 26px; height: 26px; font-size: 12px; background: var(--paper-hi); border: 1.5px solid var(--line); }
.ss-line .l { display: block; max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-line button.is-done .n { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.ss-line button[aria-current="step"] { background: none; color: var(--ink); font-weight: 400; }
.ss-line button[aria-current="step"] .n { background: var(--y); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 182, 0, .35); }
.ss-line button[aria-current="step"] .l { font-weight: 700; }
/* czas bieżącego kroku: odcinek do następnego przystanku wypełnia się podczas autoodtwarzania */
.ss-autoplay .ss-line li:has(button[aria-current="step"]) + li::after { content: ""; position: absolute; left: calc(-50% + 12px); top: 12px; height: 2px; width: calc((100% - 24px) * var(--ss-t, 0)); background: var(--y-deep); }
.ss-autoplay .ss-line button[aria-current="step"]::after { display: none; }
/* adnotacje na planie: bieżąca wyraźna, wcześniejsze przygaszone */
.ss .note.is-on:not(.is-now) { opacity: .5; }
/* ten sam przełącznik z napisem, w prawym górnym rogu rysunku */
.ss-plan { position: relative; }
.ss-auto-plan { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 14px 5px 6px; font: 700 14px/1 var(--display); color: var(--ink); background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 18px; cursor: pointer; transition: background-color .2s var(--ease-out); }
.ss-auto-plan:hover { background: var(--y); }
.ss-auto-plan i { position: relative; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ink); }
.ss-auto-plan i::before { content: ""; position: absolute; left: 9px; top: 7px; width: 8px; height: 10px; background: var(--y); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ss-autoplay .ss-auto-plan { background: var(--ink); color: var(--y); }
.ss-autoplay .ss-auto-plan:hover { background: #000; }
.ss-autoplay .ss-auto-plan i { background: var(--y); }
.ss-autoplay .ss-auto-plan i::before { left: 8px; top: 7px; width: 8px; height: 10px; clip-path: none; background: linear-gradient(90deg, var(--ink) 0 35%, transparent 35% 65%, var(--ink) 65%); }
@media (max-width: 1000px) {
  .ss-auto-plan { min-height: 30px; font-size: 13px; padding: 3px 11px 3px 4px; }
  .ss-cap-t { min-height: 40px; gap: 10px; padding: 5px 6px 5px 10px; }
  .ss-cap-sc { display: none; }
  .ss-cap-step { font-size: 14px; }
  .ss-line .l { display: none; }
  .ss-line.ss-chips { padding: 6px 8px 8px; }
}
.ss-chips button { position: relative; }
.ss-autoplay .ss-chips button[aria-current="step"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--ss-t, 0) * 100%); background: var(--ink); }
.ss-keys { margin: 0 auto 0 4px; font: 13px/1 var(--tech); color: var(--ink-2); letter-spacing: .04em; }
.ss-nav .btn { min-height: 38px; padding: 7px 12px; font-size: 15px; gap: .45em; }
.ss-nav .btn::after { width: 14px; }
.ss-prev { order: -1; flex-direction: row-reverse; }
.ss-prev::after { transform: scaleX(-1); }
.ss-prev:hover::after { transform: scaleX(-1) translateX(3px); }
.ss-nav .btn[disabled] { opacity: .4; cursor: default; }
.ss-nav .btn-line[disabled]:hover { background: transparent; }
.ss-nav .btn-ink[disabled]:hover { background: var(--ink); }

/* treść kroku: wszystkie kroki w jednej komórce, widoczny bieżący (bez skryptu: zwykła lista) */
.ss-steps { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 28px; min-height: 0; overflow: hidden auto; scrollbar-width: thin; }
.ss-steps.is-js { gap: 0; }
.ss-steps.is-js > .ss-step { grid-area: 1 / 1; visibility: hidden; }
.ss-steps.is-js > .ss-step.is-current { visibility: visible; }
.ss-step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; align-content: start; }
.ss-step > .st-num { margin: 0; }
.ss-step > h3 { font-size: clamp(19px, 1.35vw, 23px); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
.ss-step > :not(.st-num):not(h3) { grid-column: 1 / -1; }
.ss-step > p { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin: 8px 0 0; }
.ss-step > :is(.st-card, .st-checks, .st-ledmock, .st-timeline, div) { margin-top: 10px; }
.ss-step .st-row { padding: 5px 10px 6px; }
.ss-step .st-row b { font-size: 14px; }
.ss-step.is-new > * { animation: st-in .5s var(--ease-out) both; }
.ss-mark { height: 0; grid-column: 1; grid-row: 1; align-self: start; }

@media (max-width: 1180px) {
  .ss-body { grid-template-columns: minmax(0, 1fr) 360px; }
  .ss-stamp.stamp { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); }
}
/* telefon i tablet: tytuł na górze, przypięty plan z panelem kroków, pieczątka po historii */
@media (max-width: 1000px) {
  .ss { display: flex; flex-direction: column; }
  .ss-pin, .ss-sheet, .ss-body, .ss-tb { display: contents; }
  .ss .refs { display: none; }
  .ss-sheet::before { display: none; }
  /* telefon: opis kroku przypięty pod podpisem (tytuł kroku jest w podpisie), rysunek pod nim */
  .ss-plan > .ss-panel { order: 1; }
  .ss-plan > :not(.ss-cap):not(.ss-panel) { order: 2; }
  /* telefon: najpierw to, co się dzieje: sam tytuł nad planem, opis i przyciski strony dopiero pod historią */
  .ss-head { display: contents; }
  .ss-head h1 { order: 0; margin: 6px 0 0; font-size: clamp(21px, 5.6vw, 26px); }
  .ss-head > :not(h1) { order: 4; margin: 0; padding: 0 16px 12px; border: 1.5px solid var(--ink); border-block: 0; background: var(--paper-hi); }
  .ss-head > .ss-lead { margin-top: 12px; padding-top: 16px; border-top: 1.5px solid var(--ink); }
  .ss-head > .ss-actions { padding-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
  .ss-mark { order: 1; }
  .ss-plan { order: 2; position: sticky; top: calc(var(--head-h) + 6px); z-index: 3; margin-top: 10px; padding: 8px; border: 1.5px solid var(--ink); background: rgba(237, 241, 244, .97); }
  .ss-track { order: 3; height: calc(var(--ss-n, 8) * 60vh); }
  .ss-stamp { order: 4; margin-top: 12px; background: var(--paper-hi); border: 1.5px solid var(--ink); }
  .ss-stamp.stamp { grid-template-columns: 1fr 1fr; }
  .ss-stamp .st-wide { grid-column: 1 / -1; }
  .ss-stamp > div { border-top: 1px solid var(--ink); }
  .ss-stamp > div:first-child { border-top: 0; }
  .ss-stamp > div:nth-child(even) { border-left: 0; }
  .ss-panel { padding: 0 2px 8px; margin: 0 0 8px; border-bottom: 1px solid var(--line-2); }
  .ss-chips { grid-template-columns: repeat(var(--ss-n, 8), minmax(0, 1fr)); gap: 3px; }
  .ss-chips button { justify-content: center; padding: 2px 0; min-height: 30px; }
  .ss-chips .l { display: none; }
  .ss-chips .n { width: 22px; height: 22px; font-size: 11px; }
  /* telefon: przycisk z napisem na planie wystarczy */
  .ss-nav { display: none; }
  .ss-steps { margin: 0; padding: 0; border: 0; }
  .ss-step > :is(h3, .st-num) { display: none; }
  .ss-step > p { margin: 0; font-size: 14.5px; line-height: 1.4; }
}
@media (max-width: 1000px) and (max-height: 820px) {
  .ss-step > :is(.st-card, .st-checks, .st-ledmock, .st-timeline, div) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-step.is-new > * { animation: none; }
}
/* rysunek wizyty w przewijanej historii: pasek postępu pod planem, podpowiedź na dolnej krawędzi */
@media (min-width: 1001px) { .ss-plan { position: relative; } }
.ss .st-progress { margin-right: 0; }
/* ---------- szerokie ekrany ---------- */
@media (min-width: 1700px) {
  body { font-size: 18px; }
}
/* ---------- laptopy i tablety ---------- */
@media (max-width: 1180px) {
  .nav > li > .nav-here { padding: 0 8px; font-size: 15px; background-position: 8px 70%; background-size: calc(100% - 16px) 6px; }
  .nav > li > a, .nav > li > button { padding: 0 8px; font-size: 15px; }
  .sheet-body { grid-template-columns: minmax(0, 1fr) 360px; }
  /* marka nad całą szerokością, potem trzy kolumny, legenda jako pasek na dole */
  .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-grid > .f-brand { grid-column: 1 / -1; border-bottom: 1px solid var(--ink); }
  .f-grid > div:nth-child(2) { border-left: 0; }

}
@media (max-width: 1000px) {
  :root { --head-h: 60px; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; margin-left: auto; padding: 0 11px; background: var(--paper-hi); border: 1.5px solid var(--ink); cursor: pointer; order: 3; }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-cta { margin-left: auto; order: 2; }
  .menu-toggle { margin-left: 0; }
  .site-header nav { margin: 0; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--g) 18px; background: var(--paper-hi); border-bottom: 1.5px solid var(--ink); max-height: calc(100svh - var(--head-h)); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav > li { border-bottom: 1px solid var(--line-2); }
  .nav > li > a, .nav > li > button { width: 100%; height: 52px; padding: 0; font-size: 18px; background-position: 0 70%; justify-content: space-between; }
  .nav > li > a:hover, .nav > li > button:hover { background-size: 60% 6px; }
  .dropdown { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; background: none; }
  .dropdown::before { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { padding: 10px 0 10px 14px; border-bottom: 0; border-left: 1px solid var(--ink); }
  .dropdown .nav-here { padding: 10px 0 10px 14px; border-bottom: 0; border-left: 1px solid var(--ink); }
  .nav > li > .nav-here { width: 100%; height: 52px; padding: 0; font-size: 18px; background-position: 0 70%; background-size: 60% 6px; }
  .has-dropdown:has(.nav-here) > button { background-size: 60% 6px; }
  .nav-cta { display: block; }
  .sheet { height: auto; max-height: none; min-height: 0; }
  .sheet-body { grid-template-columns: 1fr; height: auto; }
  .tb { display: contents; }
  .tb-head { order: -1; background: var(--paper-hi); border-bottom: 1.5px solid var(--ink); }
  .stamp { background: var(--paper-hi); border-top: 1.5px solid var(--ink); margin-top: 12px; }
  .plan { height: auto; aspect-ratio: 1000 / 770; flex: none; }
  .plan .notes { display: none; }
  .plan-log { display: block; border-top: 1.5px solid var(--ink); padding: 10px 0 0; }
  .plan-log li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: baseline; font: 16px/1.35 var(--tech); color: var(--ink-2); padding: 4px 0; opacity: .5; transition: opacity .3s, background-color .3s; counter-increment: n; }
  .plan-log li::before { content: counter(n); font: 13px/20px var(--tech); width: 20px; height: 20px; text-align: center; border: 1px solid var(--ink); border-radius: 50%; }
  .plan-log li.is-done { opacity: 1; color: var(--ink); }
  .plan-log li.is-now { opacity: 1; color: var(--ink); background: linear-gradient(90deg, var(--y), var(--y)) 34px 50% / calc(100% - 34px) 70% no-repeat; }
  .plan-log li.is-now::before { background: var(--y); }
  .plan-log li.dec { color: var(--ink); }
  .plan-log li.dec::before { border: 0; width: 22px; height: 22px; line-height: 22px; background: var(--ink); color: var(--y); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
  .plan-log li.dec.is-now::before { background: var(--ink); }
  .plan-log ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .tb-head { justify-content: flex-start; }
  .tb h1 { font-size: clamp(30px, 6vw, 48px); }
  .tb-lead { max-width: 52ch; }
  .tb-actions .btn { flex: 0 1 auto; }
  .sec-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cmp-t, .cmp-t tbody, .cmp-t tr { display: block; width: 100%; }
  .cmp-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp-t tbody tr { margin: 0 0 26px; border: 1.5px solid var(--ink); background: var(--paper-hi); }
  .cmp-t tbody th, .cmp-t td { display: block; }
  .cmp-t tbody th { padding: 12px 14px 12px 40px; border-bottom: 1px solid var(--ink); }
  .cmp-t tbody th::before { display: none; }
  .cmp-t tbody th::after { left: 12px; top: 15px; }
  .cmp-t td { padding: 12px 14px 14px; }
  .c-old { border-bottom: 1px solid var(--ink); background-image: none; }
  .c-new, .cmp-t tbody tr:last-child .c-new { border: 0; }
  .c-lbl { display: block; font: 13px/1 var(--tech); letter-spacing: .04em; margin-bottom: 6px; color: var(--ink-2); }
  .c-new .c-lbl { color: var(--ink); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-cta { min-height: 40px; padding: 6px 12px; font-size: 14px; }
  .header-cta::after { display: none; }
  .brand img { width: 118px; height: auto; }
  .sheet { margin-top: 8px; padding: 14px; }
  .sheet::before { inset: 13px; }
  .refs-top { left: 14px; right: 14px; height: 14px; font-size: 10px; }
  .refs-side { top: 14px; bottom: 14px; width: 14px; font-size: 10px; }
  .tb-head { padding: 20px 16px 18px; }
  .tb-actions { flex-direction: column; }
  .tb-actions .btn { width: 100%; }
  .stamp > div { padding: 7px 10px 8px; }
  .stamp dd { font-size: 14px; }
  .plan-log ol { grid-template-columns: 1fr; }
  .plan-log li { font-size: 15px; padding: 3px 0; }
  .sec { padding-top: 72px; }
  .rf-grid { grid-template-columns: 1fr; }
  .field:nth-child(odd):not(.wide) { border-right: 0; }
  .rf-foot { grid-template-columns: 1fr; }
  .rf-foot .btn { width: 100%; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-grid > div { border-left: 0; border-top: 1px solid var(--ink); padding: 18px 16px; }
  .f-grid > .f-brand { grid-column: 1 / -1; border-top: 0; border-bottom: 0; }
  .f-grid > div:nth-child(3) { border-left: 1px solid var(--ink); }
  .f-grid > .f-contact { grid-column: 1 / -1; }
  .f-stamp { grid-template-columns: 1fr; }
  .f-stamp > span + span { border-left: 0; border-top: 1px solid var(--ink); }
  .dropdown a small { font-size: 13px; }
}
@media (max-width: 380px) {
  .header-cta { padding: 6px 10px; font-size: 13px; }
  .brand img { width: 100px; }
  .site-header { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
