/* TOLSoft — arkusz rysunku technicznego. Tolerancja: 0,00. */

:root {
  --mm: 3.7795px;            /* 1 mm przy 96 dpi */
  --paper: #ecebe4;
  --paper-2: #e3e2d9;
  --ink: #141518;
  --ink-2: #4a4c52;          /* 7,18:1 na papierze */
  --ink-3: #646569;          /* 4,87:1 na papierze */
  --line: rgba(20, 21, 24, .16);
  --grid: rgba(20, 21, 24, .055);
  --accent: #ff4f00;         /* linie, tła; tekst na nim tylko w kolorze --ink (5,54:1) */
  --accent-lg: #e84800;      /* duży tekst na papierze, 3,28:1 */
  --accent-ink: #b33600;     /* mały tekst na papierze, 5,10:1 */
  --ok: #1f7a46;
  --dark: #141518;
  --dark-line: rgba(236, 235, 228, .14);
  --ruler: 22px;
  --pad: clamp(16px, 5vw, 72px);
  --side: max(var(--pad), calc((100vw - var(--ruler) - 1600px) / 2)); /* na dużych ekranach treść ma najwyżej ~1600 px */
  --font: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(20,21,24,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,21,24,.025) 1px, transparent 1px);
  background-size: calc(var(--mm) * 10) calc(var(--mm) * 10), calc(var(--mm) * 10) calc(var(--mm) * 10), var(--mm) var(--mm), var(--mm) var(--mm);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(17px, .55vw + 9px, 21px); /* 17 px na laptopie, ~20 px na 2000 px */
  line-height: 1.55;
  overflow-x: clip; /* clip, nie hidden: hidden zrobiłby z body kontener przewijania i zepsuł sticky */
}
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.muted { color: var(--ink-2); }
.accent { color: var(--accent-lg); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* ---------- Rama i linijki ---------- */
.frame { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.ruler { position: absolute; background: var(--paper); overflow: hidden; }
.ruler--x { top: 0; left: var(--ruler); right: 0; height: var(--ruler); border-bottom: 1px solid var(--ink); }
.ruler--y { top: var(--ruler); left: 0; bottom: 0; width: var(--ruler); border-right: 1px solid var(--ink); }
.ruler--x .ruler__ticks {
  position: absolute; inset: auto 0 0 0; height: 100%;
  background:
    linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 100% / calc(var(--mm) * 10) 10px repeat-x,
    linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 100% / calc(var(--mm) * 5) 6px repeat-x,
    linear-gradient(90deg, var(--ink-3) 1px, transparent 1px) 0 100% / var(--mm) 3px repeat-x;
}
.ruler--y .ruler__ticks {
  position: absolute; inset: 0 0 0 auto; width: 100%;
  background:
    linear-gradient(var(--ink) 1px, transparent 1px) 100% 0 / 10px calc(var(--mm) * 10) repeat-y,
    linear-gradient(var(--ink) 1px, transparent 1px) 100% 0 / 6px calc(var(--mm) * 5) repeat-y,
    linear-gradient(var(--ink-3) 1px, transparent 1px) 100% 0 / 3px var(--mm) repeat-y;
}
.ruler__labels span { position: absolute; font: 500 8px/1 var(--mono); color: var(--ink-2); }
.ruler--x .ruler__labels span { top: 3px; transform: translateX(2px); }
.ruler--y .ruler__labels { position: absolute; inset: 0; }
.ruler--y .ruler__labels span { left: 2px; transform: translateY(2px); }
.ruler__mark { position: absolute; background: var(--accent); }
.ruler--x .ruler__mark { top: 0; bottom: 0; width: 1px; left: 0; }
.ruler--y .ruler__mark { left: 0; right: 0; height: 1px; top: 0; }
.frame__corner {
  position: absolute; top: 0; left: 0; width: var(--ruler); height: var(--ruler);
  background: var(--ink); color: var(--paper); font: 600 8px/var(--ruler) var(--mono); text-align: center;
}

/* ---------- Kursor pomiarowy ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 39; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__h, .cursor__v { position: absolute; background: var(--accent); opacity: .55; }
.cursor__h { left: var(--ruler); height: 1px; width: 0; }
.cursor__v { top: var(--ruler); width: 1px; height: 0; }
.cursor__read {
  position: absolute; font: 500 10px/1 var(--mono); color: var(--accent-ink);
  background: var(--paper); padding: 3px 5px; border: 1px solid var(--accent); white-space: nowrap;
}

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed; top: var(--ruler); left: var(--ruler); right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--side);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; font-stretch: 112%; }
.nav__logo b { font-weight: 300; }
.nav__logo svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 4; }
.nav__logo .nav__logo-dim { stroke: var(--accent); stroke-width: 2; }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; white-space: nowrap; }
.nav nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav nav a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__tel { font-size: 14px !important; color: var(--accent-ink); }
.nav__cta { padding: 8px 14px; background: var(--ink); color: var(--paper); }
.nav__cta:hover { background: var(--accent); color: var(--ink); }

/* ---------- Arkusze ---------- */
main { padding-left: var(--ruler); }
.sheet {
  position: relative;
  overflow-x: clip;
  padding: clamp(96px, 14vh, 150px) var(--side) clamp(72px, 10vh, 120px);
  border-bottom: 1px solid var(--ink);
}
.sheet::before {
  content: attr(data-sheet);
  position: absolute; top: 72px; right: var(--side);
  font: 600 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .1em;
}
.label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; font: 500 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: blink 1.6s steps(2) infinite; flex: none; }
@keyframes blink { 50% { opacity: .2; } }
.h2 { margin: 0 0 20px; max-width: 22ch; font-size: clamp(34px, 4.4vw, 88px); line-height: 1; letter-spacing: -.025em; font-weight: 800; font-stretch: 88%; }
.mono-num { font-family: var(--mono); font-weight: 600; letter-spacing: -.04em; color: var(--accent-lg); }
.sheet__head { max-width: 900px; margin-bottom: clamp(36px, 6vh, 64px); }
.sheet__lead { margin: 0; max-width: 34em; font-size: clamp(17px, 1.25vw, 24px); color: var(--ink-2); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 16px/1.1 var(--font); text-decoration: none; cursor: pointer; position: relative; text-align: center;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn span[aria-hidden] { transition: transform .2s; }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__title { margin: 0 0 28px; font-weight: 900; line-height: .86; letter-spacing: -.04em; }
.hero__line { display: block; font-size: clamp(56px, 10vw, 210px); font-stretch: 62%; }
.hero__line:nth-child(2) { font-stretch: 125%; font-weight: 300; letter-spacing: -.05em; }
.hero__line--sm { font-size: clamp(28px, 4vw, 80px); font-stretch: 100%; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.hero__line { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.1,1) forwards; }
.hero__line:nth-child(2) { animation-delay: .12s; }
.hero__line:nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__lead { max-width: 32em; margin: 0 0 28px; font-size: clamp(18px, 1.35vw, 26px); color: var(--ink-2); }
.hero__lead b { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 16px 0 0; font-size: 13px; color: var(--ink-2); }

.hero__drawing { margin: 0; }
.drawing { width: 100%; height: auto; overflow: visible; }
.drawing .axis { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 18 4 2 4; fill: none; }
.drawing .part { stroke: var(--ink); stroke-width: 2.4; fill: none; }
.drawing .part-fill { fill: url(#hatch); opacity: 0; animation: fadein 1s 1.6s forwards; }
.drawing .hatch { stroke: var(--ink-3); stroke-width: 1; }
.drawing .thin { stroke: var(--ink-3); stroke-width: 1; fill: none; stroke-dasharray: 4 4; }
.drawing .dim { stroke: var(--accent); stroke-width: 1.2; fill: none; }
.drawing .ext { stroke: var(--accent); stroke-width: .8; fill: none; }
.drawing .arr { fill: var(--accent); }
.drawing .leader { stroke: var(--ink-2); stroke-width: 1; fill: none; }
.drawing .dim-t { font: 600 13px var(--mono); fill: var(--accent-ink); }
.drawing .note { font: 500 12px var(--mono); fill: var(--ink-2); }
.drawing .tol-rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.drawing .tol-t { font: 600 13px var(--mono); fill: var(--ink); }
.drawing .datum-tri { fill: var(--ink); }
.drawing .datum-line { stroke: var(--ink); stroke-width: 1.2; }
.drawing .tol-box, .drawing .datum, .drawing text { opacity: 0; animation: fadein .6s 1.2s forwards; }
.drawing .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.6,.1,.2,1) forwards; }
.drawing .axis.draw { stroke-dasharray: 1; animation: draw 1s forwards, axis 0s 1.1s forwards; }
.drawing .dim.draw, .drawing .ext.draw { animation-delay: .8s; }
.drawing .leader.draw { animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes axis { to { stroke-dasharray: .035 .006 .002 .006; } }
@keyframes fadein { to { opacity: 1; } }
.hero__drawing figcaption { margin-top: 10px; font-size: 12px; color: var(--ink-2); text-align: right; letter-spacing: .02em; }
.hero__drawing figcaption b { color: var(--accent-ink); }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(40px, 7vh, 80px) 0 0; border: 1px solid var(--ink); background: var(--paper);
}
.facts > div { padding: 12px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts > div:last-child { border-right: 0; }
.facts dt { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.facts dd { margin: 0; font: 600 22px/1.1 var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Suwmiarka ---------- */
.caliper-sheet { height: 150vh; padding: 0; }
.caliper-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(20px, 3.5vh, 44px);
  padding: clamp(90px, 11vh, 124px) var(--side) clamp(24px, 4vh, 48px);
}
/* nagłówek obok akapitu, żeby suwmiarka mogła zająć całą szerokość i zmieścić się w wysokości ekranu */
.caliper-sticky .sheet__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; max-width: none; margin: 0; }
.caliper-sticky .sheet__head .label { grid-column: 1 / -1; }
.caliper-sticky .h2 { margin: 0; }
.caliper-sticky .sheet__lead { padding-bottom: .4em; }
/* suwmiarka dostaje całą resztę ekranu pod nagłówkiem; svg skaluje się do tego pola (meet) */
.caliper { width: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; }
.caliper__svg { width: 100%; height: 100%; min-height: 0; overflow: visible; }
@media (max-width: 640px) { .caliper__svg { overflow: hidden; } }
.cal-beam { fill: #d9d8cf; stroke: var(--ink); stroke-width: 1.5; }
.cal-scale line { stroke: var(--ink); stroke-width: 1; }
.cal-scale text { font: 500 11px var(--mono); fill: var(--ink-2); }
.cal-jaw { fill: #cfcec5; stroke: var(--ink); stroke-width: 1.5; }
.cal-jaw--move { fill: #c4c3ba; }
.cal-body { fill: var(--ink); }
.cal-lcd { fill: #b9c4a6; transition: fill .3s; }
.cal-lcd-t { font: 600 26px var(--mono); fill: #1b2214; font-variant-numeric: tabular-nums; }
.cal-label { font: 600 12px var(--mono); fill: var(--ink-2); letter-spacing: .06em; }
.cal-label--accent { fill: var(--accent-ink); }
.caliper.is-zero .cal-lcd { fill: var(--accent); }
.caliper.is-zero .cal-lcd-t { fill: var(--ink); }
.caliper__legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 0; font-size: 13px; color: var(--ink-2); }
.caliper__legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 3px; display: inline-block; flex: none; }
.sw--grey { background: var(--ink-3); }
.sw--accent { background: var(--accent); }

/* ---------- Oferta ---------- */
.parts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; align-items: start; }
.part-card {
  grid-column: span 2; display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border: 1px solid var(--ink); background: var(--paper); position: relative;
  transition: transform .25s, box-shadow .25s;
}
.part-card--wide { grid-column: span 3; }
.part-card:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--ink); }
.part-card header { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); letter-spacing: .06em; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.part-card h3 { margin: 4px 0 0; font-size: clamp(30px, 3vw, 58px); line-height: 1; font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; }
.part-card p { margin: 0; color: var(--ink-2); }
.dimline { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.dimline i { flex: 1; height: 1px; background: var(--accent); position: relative; }
.dimline i:first-child::before, .dimline i:last-child::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--accent); }
.dimline i:first-child::before { left: 0; }
.dimline i:last-child::after { right: 0; }
.dimline span { font: 600 clamp(18px, 1.7vw, 22px)/1 var(--mono); color: var(--accent-ink); white-space: nowrap; }
.part-card footer { font-size: 12px; color: var(--ink-2); text-align: center; letter-spacing: .02em; }
.incl { border-top: 1px dashed var(--line); }
.incl summary { cursor: pointer; font: 600 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; }
.incl summary::-webkit-details-marker { display: none; }
.incl summary::after { content: "+"; font-size: 16px; line-height: 1; }
.incl[open] summary::after { content: "−"; }
.incl ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.incl li { padding-left: 18px; position: relative; font-size: 15px; color: var(--ink-2); }
.incl li::before { content: "±"; position: absolute; left: 0; font-family: var(--mono); color: var(--accent-ink); }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px dashed var(--line); }
.tiers li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }
.tiers b { color: var(--ink); font-size: 15px; }
.part-card--dark { background: var(--dark); color: var(--paper); border-color: var(--dark); }
.part-card--dark p, .part-card--dark .incl li { color: rgba(236,235,228,.8); }
.part-card--dark header, .part-card--dark footer { border-color: var(--dark-line); color: rgba(236,235,228,.7); }
.part-card--dark .incl { border-color: var(--dark-line); }
.part-card--dark .dimline span, .part-card--dark .incl li::before { color: var(--accent); }
.part-card--dark:hover { box-shadow: 4px 4px 0 var(--accent); }

/* ---------- Realizacje ---------- */
.works { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.work {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 200px; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--ink); position: relative; isolation: isolate;
}
.work::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.6,.1,.2,1); z-index: -1; }
.work:hover::before { transform: scaleY(1); }
.work:hover p, .work:hover .work__no { color: var(--ink); }
.work__no { font-size: 13px; color: var(--ink-2); padding-left: 4px; }
.work h3 { margin: 0 0 6px; font-size: clamp(26px, 3.1vw, 62px); line-height: 1.02; font-weight: 800; font-stretch: 92%; letter-spacing: -.03em; }
.work h3 a { text-decoration: none; }
.work h3 a::after { content: ""; position: absolute; inset: 0; }
.work p { margin: 0 0 10px; max-width: 720px; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px !important; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink) !important; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status--live::before { background: var(--ok); }
.status--beta::before { background: var(--accent); }
.status--build::before { background: transparent; border: 2px solid var(--ink-2); width: 5px; height: 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 11px; padding: 3px 8px; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .06em; }
.work:hover .tags li { border-color: rgba(20,21,24,.4); }
.work__plan { height: 112px; border: 1px solid currentColor; padding: 8px; display: flex; flex-direction: column; gap: 6px; transition: transform .35s; }
.work:hover .work__plan { transform: rotate(-2deg) scale(1.04); }
.work__plan i { display: block; border: 1px solid currentColor; opacity: .55; flex: 1; }
.work__plan .w-a { flex: 2.2; background: repeating-linear-gradient(45deg, transparent 0 5px, currentColor 5px 6px); opacity: .35; }
.work__plan .w-b { flex: 1; }
.work__plan .w-c { flex: .6; width: 60%; }
.work__plan .w-d { flex: .5; width: 35%; align-self: flex-end; background: currentColor; opacity: .5; }
.work__plan .w-e { flex: 1.6; }

/* ---------- Kontakt ---------- */
.contact { background: var(--dark); color: var(--paper); border-bottom: 0; }
.contact::before { color: rgba(236,235,228,.6); }
.contact .label { color: rgba(236,235,228,.75); }
.contact .sheet__lead { color: rgba(236,235,228,.82); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__meta { margin: 32px 0 0; display: grid; border-top: 1px solid var(--dark-line); }
.contact__meta div { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid var(--dark-line); font-size: 15px; }
.contact__meta dt { color: rgba(236,235,228,.7); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; padding-top: 3px; }
.contact__meta dd { margin: 0; }
.contact__meta a { color: var(--accent); }

.order { background: var(--paper); color: var(--ink); padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.order::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.order__head { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .12em; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.order__head span:last-child { color: var(--accent-ink); }
.order__need { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.order__need legend { width: 100%; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 10px; }
.order__need label { cursor: pointer; }
.order__need input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.order__need span { display: inline-block; padding: 10px 14px; border: 1px solid var(--ink); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.order__need input:checked + span { background: var(--ink); color: var(--paper); }
.order__need input:checked + span::before { content: "✓ "; color: var(--accent); }
.order__need input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.field input, .field textarea {
  font: 400 17px/1.4 var(--font); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0; border-radius: 0; resize: vertical;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent-ink); padding-bottom: 7px; }
.field [aria-invalid="true"] { border-bottom: 2px solid #b4232a; padding-bottom: 7px; }
.field__err { font-size: 13px; color: #b4232a; min-height: 0; }
.field__err:empty { display: none; }
.field__count { align-self: flex-end; font-size: 12px; color: var(--ink-2); }
.order__rodo { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-2); }
.order__rodo a { color: var(--accent-ink); }
.order .btn { grid-column: 1 / -1; }
.order__sent { grid-column: 1 / -1; padding: 16px; border: 2px solid var(--ok); display: grid; gap: 12px; }
.order__sent p { margin: 0; font-size: 15px; }
.order__sent a { color: var(--accent-ink); }
.order__sent[hidden] { display: none; }

/* tabliczka chowa się, gdy zasłaniałaby treść (hero, linia montażowa) */
body.tb-hide .titleblock { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* ---------- ARK. 04: porównanie ceny ---------- */
.vs { margin: 0 0 clamp(28px, 4vh, 48px); max-width: 1180px; border: 1.5px solid var(--ink); background: var(--paper); }
.vs__k { margin: 0; padding: 12px 16px; border-bottom: 1.5px solid var(--ink); background: var(--paper-2); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.vs__row { display: grid; grid-template-columns: minmax(110px, .5fr) minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px dashed var(--line); }
.vs__row > * { padding: 12px 16px; }
.vs__row--h { border-bottom: 1px solid var(--ink); }
.vs__row--h > * { font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.vs__row--h .vs__us { color: var(--accent-ink); }
.vs__dim { font-weight: 700; }
.vs__them { color: var(--ink-2); }
.vs__us { color: var(--ink); font-weight: 600; }
.vs__row:not(.vs__row--h) .vs__us::before { content: "✓ "; color: var(--ok); }
.vs__note { margin: 0; padding: 10px 16px; font-size: 12px; color: var(--ink-2); }
@media (max-width: 640px) {
  .vs__row { grid-template-columns: 1fr; }
  .vs__row > * { padding: 6px 14px; }
  .vs__row .vs__dim { padding-top: 12px; }
  .vs__row:last-of-type .vs__us { padding-bottom: 12px; }
  .vs__row--h { display: none; }
  .vs__them::before { content: attr(data-h) ": "; font: 600 11px var(--mono); text-transform: uppercase; }
  .vs__us::before { content: "✓ " attr(data-h) ": " !important; }
}

/* ---------- ARK. 07 na stronie głównej: bilet na zwiedzanie hali ---------- */
.ticket {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(130px, 15vw, 210px); max-width: 1080px;
  color: var(--ink); text-decoration: none; position: relative; transform: rotate(-1.2deg);
  transition: transform .35s cubic-bezier(.3,1.4,.5,1); -webkit-user-drag: none; user-select: none; touch-action: pan-y;
}
.ticket:hover { transform: rotate(-.3deg) translateY(-4px); }
.ticket:focus-visible { outline-offset: 8px; }
.ticket__main {
  position: relative; overflow: hidden; padding: clamp(18px, 2.4vw, 36px); border: 1.5px solid var(--ink); border-right: 0;
  border-radius: 12px 0 0 12px; box-shadow: 8px 8px 0 var(--ink);
  background:
    repeating-radial-gradient(circle at 85% 120%, transparent 0 9px, rgba(255,79,0,.07) 9px 10px),
    repeating-radial-gradient(circle at 10% -20%, transparent 0 13px, rgba(20,21,24,.05) 13px 14px),
    #f7f0dd;
}
.ticket__k { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.ticket__title { margin: 0 0 18px; font-size: clamp(30px, 3.6vw, 64px); line-height: .95; font-weight: 900; font-stretch: 78%; letter-spacing: -.03em; }
.ticket__data { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 4px 32px; margin: 0 0 20px; }
.ticket__data dt { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.ticket__data dd { margin: 0; font-size: clamp(14px, 1.1vw, 18px); font-weight: 600; }
.ticket__route { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 12px 0 0; list-style: none; border-top: 1.5px dashed var(--ink-3); counter-reset: st; }
.ticket__route li { counter-increment: st; font-size: clamp(11px, .85vw, 14px); font-weight: 600; }
.ticket__route li::before { content: counter(st, decimal-leading-zero) " "; color: var(--accent-ink); }
.ticket__route li:not(:last-child)::after { content: "→"; margin: 0 10px; color: var(--ink-3); }
.ticket__stamp {
  position: absolute; right: 7%; top: 18%; padding: 8px 14px; border: 4px solid #b4232a; color: #b4232a;
  font-size: clamp(16px, 1.8vw, 28px); font-weight: 700; letter-spacing: .14em; mix-blend-mode: multiply;
  opacity: 0; transform: rotate(-14deg) scale(2); transition: opacity .1s .25s, transform .35s .25s cubic-bezier(.3,1.6,.5,1);
}
.ticket__stub {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 24px); background: var(--accent); color: var(--ink);
  border: 1.5px solid var(--ink); border-left: 2px dashed var(--ink); border-radius: 0 12px 12px 0; box-shadow: 8px 8px 0 var(--ink);
  transform: translateX(var(--drag, 0px)) rotate(calc(var(--drag, 0px) * .05deg)); transform-origin: 0 100%;
  transition: transform .4s cubic-bezier(.3,1.5,.5,1); cursor: grab;
}
.ticket__stub.is-dragging { transition: none; cursor: grabbing; }
/* wycięcia perforacji */
.ticket__stub::before, .ticket__stub::after {
  content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.ticket__stub::before { top: -13px; } .ticket__stub::after { bottom: -13px; }
.ticket__no { font-size: 12px; letter-spacing: .06em; }
.ticket__no b { display: block; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: 0; white-space: nowrap; }
.ticket__code { display: block; height: 46px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.ticket__tear { font-size: clamp(14px, 1.2vw, 18px); font-weight: 600; line-height: 1.25; text-transform: uppercase; letter-spacing: .04em; }
.ticket__tear b { font-size: 1.3em; }
.ticket__tear i { font-style: normal; display: inline-block; transition: transform .2s; }
.ticket:hover .ticket__tear i { transform: translateX(6px); }
.ticket__hint { margin: 28px 0 0; font-size: 12px; color: var(--ink-2); }
/* zachęta: odcinek co kilka sekund lekko odstaje */
.ticket-sheet.is-in .ticket__stub:not(.is-dragging) { animation: nudge 3.6s 1s ease-in-out infinite; }
@keyframes nudge { 0%, 80%, 100% { transform: none; } 86% { transform: translateX(10px) rotate(1.5deg); } 92% { transform: translateX(3px) rotate(.4deg); } }
/* oderwanie */
.ticket.is-torn { transform: rotate(-1.2deg); }
.ticket.is-torn .ticket__stub { animation: none; transition: transform .75s cubic-bezier(.5,0,.6,1), opacity .5s .25s; transform: translate(180px, 60px) rotate(24deg); opacity: 0; }
.ticket.is-torn .ticket__stamp { opacity: .9; transform: rotate(-14deg) scale(1); }

/* ---------- podstrona proces.html ---------- */
.proc-page .line-sheet { height: 460vh; }
.proc-end .btn:not(.btn--primary) { color: var(--paper); border-color: rgba(236,235,228,.55); }
.proc-end .btn:not(.btn--primary):hover { background: var(--paper); color: var(--ink); }
.welcome {
  position: fixed; left: 50%; top: 84px; z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--ink); color: var(--paper); font: 500 13px/1.3 var(--mono);
  transform: translate(-50%, -16px); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
.welcome b { color: var(--accent); }
.welcome.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .proc-page .line-sheet { height: 380vh; }
}
@media (max-width: 640px) {
  .ticket { grid-template-columns: minmax(0, 1fr) 96px; transform: none; }
  .ticket:hover { transform: none; }
  .ticket__main { padding: 16px; box-shadow: 5px 5px 0 var(--ink); }
  .ticket__stub { padding: 14px 10px; box-shadow: 5px 5px 0 var(--ink); }
  .ticket__data { grid-template-columns: repeat(2, auto); gap: 4px 20px; }
  .ticket__route li { font-size: 11px; }
  .ticket__route li:not(:last-child)::after { margin: 0 5px; }
  .ticket__no b { font-size: 12.5px; }
  .ticket__code { height: 34px; }
  .ticket__tear { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket-sheet.is-in .ticket__stub { animation: none; }
}

/* ---------- Dokument (polityka prywatności) ---------- */
body.doc .nav { top: 0; left: 0; }
body.doc .legal { max-width: calc(760px + 2 * var(--pad)); margin: 0 auto; padding: 120px var(--pad) 72px; border-bottom: 0; }
.legal::before { display: none; }
.legal .h2 { max-width: none; }
.legal h2 { margin: 36px 0 10px; font-size: 22px; font-stretch: 95%; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--accent-ink); }
body.doc .footer { padding-left: var(--pad); padding-bottom: 32px; }

/* ---------- Tabliczka rysunkowa ---------- */
.titleblock {
  transition: opacity .25s, transform .25s;
  position: fixed; right: 12px; bottom: 12px; z-index: 35;
  display: grid; grid-template-columns: auto auto minmax(130px, auto) auto auto;
  background: var(--paper); border: 1.5px solid var(--ink); font-size: 12px;
}
.tb { display: flex; flex-direction: column; padding: 5px 10px; border-right: 1px solid var(--ink); gap: 1px; }
.tb:last-child { border-right: 0; }
.tb__k { font: 500 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.tb__v { font-weight: 700; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb__v b { font-weight: 300; }
.tb--tol .tb__v { color: var(--accent-ink); }

.dock { display: none; }

/* ---------- Stopka ---------- */
.footer {
  padding: 32px var(--side) 96px calc(var(--side) + var(--ruler));
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 40px;
  background: var(--dark); color: rgba(236,235,228,.78); font-size: 13px; line-height: 1.6;
  border-top: 1px solid var(--dark-line);
}
.footer p { margin: 0 0 6px; }
.footer b { color: var(--paper); }
.footer a { color: var(--paper); }

/* ---------- Toast i miarka zaznaczenia ---------- */
.toast {
  position: fixed; left: 50%; top: 84px; z-index: 60; transform: translate(-50%, -12px);
  background: var(--ink); color: var(--paper); font: 500 12px/1 var(--mono); padding: 10px 14px;
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; letter-spacing: .04em;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--accent); }
.selection-gauge {
  position: absolute; z-index: 60; pointer-events: none; transform: translate(-50%, -100%);
  background: var(--accent); color: var(--ink); font: 600 11px/1 var(--mono); padding: 6px 8px; white-space: nowrap;
  opacity: 0; transition: opacity .15s;
}
.selection-gauge.is-on { opacity: 1; }

/* ---------- ARK. 03: świadectwo kontroli ---------- */
.cert { position: relative; max-width: 1240px; margin: 8px 0 24px; }
.cert::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  background: var(--paper-2); border: 1px solid var(--ink); transform: rotate(1.4deg);
}
.cert__sheet {
  position: relative; background: #fbfaf6; border: 1.5px solid var(--ink);
  padding: clamp(20px, 3vw, 40px); transform: rotate(-.5deg); box-shadow: 8px 8px 0 var(--ink);
}
.cert__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.cert__k { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.cert__title { margin: 0; font-size: clamp(28px, 3vw, 56px); line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; text-transform: uppercase; }
.cert__meta { display: flex; gap: 0; margin: 0; border: 1px solid var(--ink); }
.cert__meta div { padding: 6px 12px; border-right: 1px solid var(--ink); }
.cert__meta div:last-child { border-right: 0; }
.cert__meta dt { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.cert__meta dd { margin: 0; font-size: 13px; font-weight: 600; }

.cert__table { margin-top: 8px; }
.cert__row { display: grid; grid-template-columns: 40px 110px minmax(0, 1fr) minmax(0, 1.35fr) 112px; gap: 0 18px; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--ink-3); }
.cert__row--head { padding: 10px 0; border-bottom: 1px solid var(--ink); }
.cert__row--head span { font: 600 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.cert__row > .mono:first-child { font-size: 13px; color: var(--ink-2); }
.cert__dim { font-size: 18px; font-weight: 700; }
.cert__seen { color: var(--ink-2); font-size: .9em; }
.cert__ours { font: 500 .9em/1.45 var(--mono); color: var(--ink); min-height: 1.45em; }
.cert__ours.is-typing::after { content: "▌"; color: var(--accent-ink); animation: blink .7s steps(2) infinite; }
.cert__res {
  justify-self: start; padding: 6px 10px; border: 2px solid var(--ok); color: var(--ok); font-size: 13px; font-weight: 600; letter-spacing: .1em;
  opacity: 0; transform: scale(1.6) rotate(-6deg); transition: opacity .15s, transform .35s cubic-bezier(.3,1.7,.5,1);
}
.cert__row.is-ok .cert__res { opacity: 1; transform: scale(1) rotate(-3deg); }
.strike {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 58% / 0% 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .55s cubic-bezier(.6,.1,.2,1);
}
.cert__row.is-struck .strike { background-size: 100% 2px; }

.cert__foot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px; gap: 24px; align-items: end; margin-top: 24px; }
.cert__field { border-top: 1px solid var(--ink); padding-top: 8px; }
.cert__v { margin: 0; font-size: 14px; font-weight: 600; }
.cert__sig { width: 180px; height: 46px; display: block; }
.cert__sig path { fill: none; stroke: #1d3f8f; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.5,.1,.3,1); }
.cert.is-signed .cert__sig path { stroke-dashoffset: 0; }
.cert__seal { width: 160px; height: 160px; align-self: center; mix-blend-mode: multiply; opacity: 0; transform: rotate(-14deg) scale(2.2); transition: opacity .12s, transform .4s cubic-bezier(.3,1.5,.5,1); }
.cert.is-sealed .cert__seal { opacity: .88; transform: rotate(-14deg) scale(1); }
.seal__ring { fill: none; stroke: var(--ok); stroke-width: 3; }
.seal__ring--in { stroke-width: 1.5; }
.seal__txt { font: 700 12.5px var(--mono); fill: var(--ok); letter-spacing: .12em; }
.seal__big { font: 700 26px var(--mono); fill: var(--ok); }
.seal__small { font: 700 10px var(--mono); fill: var(--ok); letter-spacing: .14em; }
.sheet.is-shake { animation: shake .3s; }
@keyframes shake { 30% { transform: translate(2px, 1px); } 60% { transform: translate(-2px, -1px); } }

@media (max-width: 900px) {
  .cert::before { inset: 10px -6px -10px 10px; }
  .cert__sheet { box-shadow: 5px 5px 0 var(--ink); }
  .cert__row { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 12px; }
  .cert__row > *:nth-child(n+2) { grid-column: 2; }
  .cert__row > *:nth-child(1) { grid-row: 1 / span 4; align-self: start; }
  .cert__row--head { display: none; }
  .cert__foot { grid-template-columns: 1fr 1fr; }
  .cert__seal { grid-column: 1 / -1; justify-self: end; width: 128px; height: 128px; margin-top: -24px; }
}
@media (max-width: 640px) {
  .cert__meta { flex-wrap: wrap; }
  .cert__foot { grid-template-columns: 1fr; }
}

/* ---------- ARK. 06: przepustka ---------- */
.who__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.who__text { max-width: 34em; font-size: clamp(17px, 1.25vw, 24px); color: var(--ink-2); }
.who__text p { margin: 0 0 16px; }
.who__call { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn--big { font-size: 1.15em; padding: 18px 24px; }

.badge-wrap { display: grid; justify-items: center; gap: 18px; perspective: 1600px; }
.badge-hang { display: grid; justify-items: center; width: min(100%, 560px); transform-origin: 50% 0; }
.badge-hang.is-in { animation: swing 2.4s cubic-bezier(.3,.6,.4,1) both; }
@keyframes swing {
  0% { transform: rotate(16deg); } 22% { transform: rotate(-9deg); } 42% { transform: rotate(5deg); }
  60% { transform: rotate(-2.5deg); } 78% { transform: rotate(1deg); } 100% { transform: rotate(0); }
}
.lanyard { position: relative; width: 26px; height: clamp(70px, 9vw, 130px); }
.lanyard i { position: absolute; inset: 0 0 14px; background: repeating-linear-gradient(180deg, var(--accent) 0 14px, var(--ink) 14px 16px); border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
.lanyard b { position: absolute; left: 50%; bottom: -6px; width: 18px; height: 26px; transform: translateX(-50%); border: 2px solid var(--ink); border-radius: 4px 4px 9px 9px; background: #cfcec5; }

.badge {
  container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1.5; cursor: pointer;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out;
}
.badge__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,1.25,.45,1); }
.badge.is-flipped .badge__inner { transform: rotateY(180deg); }
.badge__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1.5px solid var(--ink); border-radius: 3.2cqw; overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink); background: #fbfaf6;
}
.badge__front { display: grid; grid-template-rows: auto auto auto auto; align-content: start; padding: 0 4.4cqw 3cqw; }
/* otwór na smycz */
.badge__front::before { content: ""; position: absolute; top: 2.2cqw; left: 50%; width: 14cqw; height: 2.4cqw; transform: translateX(-50%); border: 1.5px solid var(--ink); border-radius: 2cqw; background: var(--paper); z-index: 2; }
/* refleks jak na laminacie */
.badge__front::after {
  content: ""; position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.9) 48%, rgba(255,160,90,.45) 52%, transparent 62%);
  transform: translateX(var(--shine, -70%)); transition: transform .25s ease-out;
}
.badge__top {
  display: flex; justify-content: space-between; align-items: flex-end; margin: 0 -4.4cqw 2.6cqw; padding: 5.6cqw 4.4cqw 2cqw;
  background: var(--accent); color: var(--ink); font-size: 2.7cqw; font-weight: 600; letter-spacing: .08em; border-bottom: 1.5px solid var(--ink);
}
.badge__top span:first-child { font: 800 4.2cqw/1 var(--font); font-stretch: 112%; letter-spacing: -.01em; }
.badge__body { display: grid; grid-template-columns: 19cqw minmax(0, 1fr); gap: 4cqw; align-items: start; }
.badge__photo {
  aspect-ratio: 3 / 4; border: 1.5px solid var(--ink); display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(20,21,24,.08) 6px 7px), var(--paper);
}
.badge__photo span { font: 900 11cqw/1 var(--font); font-stretch: 62%; letter-spacing: -.04em; }
.badge__data { margin: 0; display: grid; gap: 1.2cqw; }
.badge__data dt { font-size: 2.1cqw; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.badge__data dd { margin: .4cqw 0 0; font-size: 3.6cqw; font-weight: 700; line-height: 1.15; }
.badge__data div:first-child dd { font-size: 5.4cqw; font-weight: 800; font-stretch: 95%; letter-spacing: -.02em; }
.badge__perm { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4cqw 2.4cqw; margin-top: 2.2cqw; padding-top: 1.8cqw; border-top: 1px dashed var(--ink-3); }
.badge__perm > span { font-size: 2.1cqw; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.badge__perm ul { display: flex; flex-wrap: wrap; gap: 1.2cqw; margin: 0; padding: 0; list-style: none; }
.badge__perm li { font-size: 2.3cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: .5cqw 1.4cqw; border: 1.5px solid var(--ink); }
.badge__perm li::before { content: "✓ "; color: var(--ok); }
.badge__foot { display: grid; grid-template-columns: 30cqw auto 1fr; align-items: center; gap: 3cqw; margin-top: 1.8cqw; }
.badge__code { width: 100%; height: 5cqw; }
.badge__code rect { fill: var(--ink); }
.badge__foot span { font-size: 3cqw; font-weight: 600; }
.badge__valid { justify-self: end; font-size: 2.1cqw !important; font-weight: 500 !important; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }

.badge__back {
  transform: rotateY(180deg); background: var(--ink); color: var(--paper);
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.6cqw; padding: 6cqw;
  background-image: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(236,235,228,.04) 10px 11px);
}
.badge__back p { margin: 0; }
.badge__found { font-size: 3cqw; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.badge__call { font-size: 4.6cqw; font-weight: 700; }
.badge__num { font-size: 9cqw; font-weight: 600; letter-spacing: -.02em; }
.badge__addr { font-size: 2.4cqw; color: rgba(236,235,228,.7); letter-spacing: .08em; text-transform: uppercase; }
.badge__flip {
  border: 0; background: none; color: var(--accent-ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 44px; padding: 0 12px;
}

@media (max-width: 900px) {
  .who__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-hang.is-in { animation: none; }
  .badge, .badge__inner, .badge__front::after { transition: none; }
}

/* ---------- ARK. 07: linia montażowa ---------- */
.line-sheet { height: 320vh; padding: 0; }
.line {
  position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  gap: clamp(10px, 2vh, 28px); padding: clamp(84px, 11vh, 124px) var(--side) clamp(20px, 3.5vh, 44px);
}
.line.is-shake { animation: lineShake .32s; }
@keyframes lineShake { 20% { transform: translate(3px, 2px); } 45% { transform: translate(-3px, -1px); } 70% { transform: translate(2px, -2px); } }
.line .label { margin-bottom: 10px; }
.line .h2 { margin: 0; max-width: 26ch; font-size: clamp(28px, 3.4vw, 66px); }
.line__stage { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 88px); align-items: center; min-height: 0; }

.line__now { align-self: center; }
.line__now.is-swap > * { animation: swap .45s cubic-bezier(.2,.7,.2,1) both; }
.line__now.is-swap > *:nth-child(2) { animation-delay: .04s; }
.line__now.is-swap > *:nth-child(3) { animation-delay: .08s; }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.line__count { margin: 0 0 6px; font-size: clamp(16px, 1.3vw, 24px); color: var(--ink-2); }
.line__count b { font-size: clamp(48px, 6vw, 116px); line-height: .9; font-weight: 600; letter-spacing: -.05em; color: var(--accent-lg); }
.line__title { margin: 0 0 12px; font-size: clamp(30px, 3.4vw, 66px); line-height: 1; font-weight: 800; font-stretch: 90%; letter-spacing: -.03em; }
.line__text { margin: 0; max-width: 26em; font-size: clamp(17px, 1.3vw, 25px); color: var(--ink-2); }
.line__pay[hidden] { display: none; }
.line__pay { display: inline-block; margin: 16px 0 0; padding: 6px 10px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .06em; }

/* ----- produkt: okno strony pod maszynami (wymiary w cqw = % szerokości okna) ----- */
.product { container-type: inline-size; margin: 0; justify-self: center; width: min(100%, 640px, calc((100svh - 470px) * 1.12)); }
.product__in { position: relative; padding-top: 26cqw; }
.product__win {
  position: relative; aspect-ratio: 16 / 10; border: 2px dashed var(--ink-3); background: rgba(251,250,246,.5);
  display: grid; grid-template-rows: 9% 1fr; transition: border-color .3s, background .3s, box-shadow .5s, transform .6s cubic-bezier(.3,1.5,.5,1);
}
.product__bar { display: flex; align-items: center; gap: 1.2%; padding: 0 3%; border-bottom: 1px dashed var(--ink-3); }
.product__bar i { width: 1.6%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink-3); }
.product__url { margin-left: 3%; font-size: 2.1cqw; color: var(--ink-3); transition: color .3s; }
.product__page { position: relative; display: grid; grid-template-rows: 1.4fr 1fr; gap: 6%; padding: 5% 6%; overflow: hidden; }
.pp { opacity: 0; transition: opacity .3s .9s, background .4s 1.6s, border-color .3s; }
.pp--hero { display: grid; align-content: center; gap: 8%; padding: 4% 5%; border: 1.5px dashed var(--ink-3); }
.pp--hero b { display: block; height: 14%; min-height: 5px; width: 70%; border: 1.5px dashed var(--ink-3); transition: background .4s 1.6s, border-color .3s 1.6s; }
.pp--hero b + b { width: 46%; }
.pp--hero span { display: block; width: 24%; height: 16%; min-height: 7px; border: 1.5px dashed var(--ink-3); transition: background .4s 1.6s, border-color .3s 1.6s; }
.pp--cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.pp--cards i { border: 1.5px dashed var(--ink-3); transition: background .4s 1.6s, border-color .3s 1.6s; }
.product__page::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 16cqw/1 var(--font); color: var(--ink-3); opacity: .45; transition: opacity .3s; }
.product__code { position: absolute; inset: 0; display: grid; align-content: center; gap: 2.2cqw; padding: 0 8%; opacity: 0; }
.product__code i { display: block; height: 1.6cqw; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.product__code i:nth-child(1) { width: 62%; } .product__code i:nth-child(2) { width: 84%; margin-left: 6%; }
.product__code i:nth-child(3) { width: 48%; margin-left: 6%; background: var(--accent); } .product__code i:nth-child(4) { width: 72%; margin-left: 12%; }
.product__code i:nth-child(5) { width: 38%; margin-left: 6%; } .product__code i:nth-child(6) { width: 56%; }

.product__tag {
  position: absolute; right: -5%; top: 22cqw; display: grid; gap: 2px; padding: 1.4cqw 2cqw 1.4cqw 3.6cqw; background: var(--paper); border: 1.5px solid var(--ink);
  font-size: 1.9cqw; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); z-index: 4;
  clip-path: polygon(2.4cqw 0, 100% 0, 100% 100%, 2.4cqw 100%, 0 50%); transform-origin: 0 50%;
  opacity: 0; transform: rotate(14deg) translateY(-10px); transition: opacity .3s, transform .5s cubic-bezier(.3,1.6,.5,1);
}
.product__tag b { font-size: 3.6cqw; color: var(--ink); letter-spacing: 0; }
.product__stamp {
  position: absolute; right: 5%; bottom: 7%; padding: 1cqw 1.6cqw; border: .6cqw solid var(--ok); color: var(--ok); text-align: center;
  font-size: 2.4cqw; font-weight: 700; letter-spacing: .12em; line-height: 1.2; mix-blend-mode: multiply;
  opacity: 0; transform: rotate(-12deg) scale(1.8); transition: opacity .1s, transform .3s cubic-bezier(.3,1.6,.5,1);
}

/* stany trwałe: sN dochodzi na kolejnym stanowisku */
.product.s2 .product__tag { opacity: 1; transform: rotate(4deg); transition-delay: 1.9s; }
.product.s3 .product__stamp { opacity: .9; transform: rotate(-12deg) scale(1); transition-delay: .5s; }
.product.s4 .product__page::after { opacity: 0; }
.product.s4 .pp { opacity: 1; }
.product.s5 .pp--hero { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(20,21,24,.07) 6px 7px); border-style: solid; border-color: var(--ink); }
.product.s5 .pp--hero b { background: var(--ink); border-color: var(--ink); }
.product.s5 .pp--hero span { background: var(--accent); border-color: var(--ink); }
.product.s5 .pp--cards i { background: rgba(20,21,24,.06); border-style: solid; border-color: var(--ink); }
.product.act-5 .product__code { animation: codeBox 2.2s forwards; }
.product.act-5 .product__code i { animation: codeLine .5s cubic-bezier(.3,.7,.3,1) forwards; }
.product.act-5 .product__code i:nth-child(2) { animation-delay: .15s; } .product.act-5 .product__code i:nth-child(3) { animation-delay: .3s; }
.product.act-5 .product__code i:nth-child(4) { animation-delay: .45s; } .product.act-5 .product__code i:nth-child(5) { animation-delay: .6s; }
.product.act-5 .product__code i:nth-child(6) { animation-delay: .75s; }
@keyframes codeBox { 0%, 70% { opacity: 1; background: #fbfaf6; } 100% { opacity: 0; } }
@keyframes codeLine { to { transform: scaleX(1); } }
.product.s7 .product__win { border: 2px solid var(--ink); background: #fbfaf6; box-shadow: 1.6cqw 1.6cqw 0 var(--ink); transform: translateY(-1.6cqw); transition-delay: .6s; }
.product.s7 .product__bar { border-bottom: 1.5px solid var(--ink); }
.product.s7 .product__bar i { border-color: var(--ink); }
.product.s7 .product__url { color: var(--ink); font-weight: 600; }
.product.s7 .pp--hero { background: var(--accent); }
.product.s7 .product__tag { opacity: 0; transform: rotate(30deg) translateY(30px); transition-delay: 0s; }

/* ----- szyna i maszyny ----- */
.rig { position: absolute; inset: 0; z-index: 3; pointer-events: none; clip-path: inset(0 -70cqw -40cqw -70cqw); }
.rail {
  position: absolute; top: 1cqw; left: -34cqw; right: -56cqw; height: 2.6cqw; z-index: 2;
  border: 1.5px solid var(--ink); background: radial-gradient(circle, var(--ink) 0 .45cqw, transparent .55cqw) 0 50% / 6cqw 100% repeat-x, #cfcec5;
  background-position-x: var(--bx, 0);
}
.mach { position: absolute; left: 50%; top: 0; width: 0; height: 100%; opacity: var(--o, 0); transform: translateX(calc(var(--d, 9) * var(--sw, 300px))); }
.mach * { position: absolute; display: block; }
.cable { left: -.25cqw; top: 3.4cqw; width: .5cqw; height: 3cqw; background: var(--ink); }

/* 1. telefon */
.phone {
  left: -11cqw; top: 6.4cqw; width: 22cqw; height: 34cqw; border: 1.4cqw solid var(--ink); border-radius: 3.4cqw; background: #f6f5ef;
  display: grid !important; align-content: center; justify-items: center; gap: 1.2cqw; text-align: center; transform-origin: 50% 0;
}
.phone > * { position: static !important; }
.phone span { font-size: 2.6cqw; font-weight: 700; }
.phone b { font-size: 3.2cqw; }
.phone__btn { width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--ok); }
.ring { left: -8cqw; top: 15.4cqw; width: 16cqw; height: 16cqw; border: .5cqw solid var(--accent); border-radius: 50%; opacity: 0; }
.m1.is-act .phone { animation: buzz .08s linear 30 alternate; }
.m1.is-act .ring { animation: ring 1.1s ease-out 3; }
.m1.is-act .ring--2 { animation-delay: .4s; }
@keyframes buzz { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* 2. skaner */
.scanner {
  left: -22cqw; top: 6.4cqw; width: 44cqw; height: 7cqw; background: var(--ink); color: var(--paper);
  display: flex !important; align-items: center; justify-content: center; gap: 1.4cqw; font-size: 1.9cqw; letter-spacing: .1em;
}
.scanner .led { position: static !important; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: #5a1a10; }
.m2.is-act .scanner .led { animation: led .25s steps(2) infinite; }
@keyframes led { 50% { background: #ff2a00; box-shadow: 0 0 1.4cqw #ff2a00; } }
.laser { left: -50cqw; top: 26cqw; width: 100cqw; height: .5cqw; background: #ff2a00; box-shadow: 0 0 1.2cqw .3cqw rgba(255,42,0,.6); opacity: 0; }
.m2.is-act .laser { animation: scan .9s cubic-bezier(.45,0,.55,1) 2 alternate; }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(62cqw); } }
.receipt {
  left: 6cqw; top: 13.4cqw; width: 15cqw; height: 0; overflow: hidden; background: #fbfaf6; border: 1px solid var(--ink); border-top: 0;
  display: grid !important; align-content: start; gap: .6cqw; padding: 0 1.4cqw; font-size: 1.6cqw; text-transform: uppercase;
}
.receipt > * { position: static !important; }
.receipt b { font-size: 2.8cqw; }
.receipt span:first-child { padding-top: 1.2cqw; }
.m2.is-act .receipt { animation: print 1s 1.6s steps(8) forwards; }
@keyframes print { to { height: 13cqw; } }

/* 3. prasa */
.ram { left: -24cqw; top: -24cqw; width: 48cqw; height: 42cqw; }
.ram__rod { left: 21cqw; top: 0; width: 6cqw; height: 32cqw; background: repeating-linear-gradient(180deg, #cfcec5 0 1.4cqw, #b9b8af 1.4cqw 1.9cqw); border: 1.5px solid var(--ink); }
.ram__head {
  left: 0; top: 32cqw; width: 48cqw; height: 10cqw; background: var(--ink); color: var(--paper);
  display: flex !important; align-items: center; justify-content: center; padding-bottom: 2.2cqw; font-size: 1.9cqw; letter-spacing: .12em;
}
.ram__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.2cqw; background: repeating-linear-gradient(-45deg, var(--accent) 0 1.3cqw, var(--ink) 1.3cqw 2.6cqw); }
.m3.is-act .ram { animation: slam .95s .15s cubic-bezier(.6,0,.4,1) both; }
@keyframes slam { 0% { transform: none; } 32% { transform: translateY(8cqw); } 40% { transform: translateY(7.4cqw); } 55% { transform: translateY(8cqw); } 100% { transform: none; } }
.dust { left: -30cqw; top: 23cqw; width: 6cqw; height: 6cqw; border-radius: 50%; background: radial-gradient(circle, rgba(20,21,24,.25), transparent 70%); opacity: 0; }
.dust--r { left: 24cqw; }
.m3.is-act .dust { animation: dust .7s .45s ease-out both; }
@keyframes dust { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(3) translateY(-2cqw); } }

/* 4. ramię z projektami */
.gripper {
  left: -14cqw; top: 6.4cqw; width: 28cqw; height: 5cqw; background: var(--ink); color: var(--paper);
  display: flex !important; align-items: center; justify-content: center; font-size: 1.9cqw; letter-spacing: .12em;
}
.variant { top: 12.4cqw; width: 20cqw; height: 13cqw; border: 1.5px solid var(--ink); background: #fbfaf6; padding: 1.4cqw; }
.variant b { position: static !important; font: 800 4cqw/1 var(--font); }
.variant i { left: 1.4cqw; height: 1.2cqw; background: var(--ink-3); }
.variant i:nth-of-type(1) { top: 7cqw; width: 14cqw; } .variant i:nth-of-type(2) { top: 9.6cqw; width: 9cqw; background: var(--accent); }
.variant--a { left: -23cqw; } .variant--b { left: 3cqw; }
.m4.is-act .variant--b { animation: reject .7s .2s cubic-bezier(.5,0,.6,1) both; }
.m4.is-act .variant--a { animation: insert 1s .55s cubic-bezier(.6,0,.4,1) both; }
@keyframes reject { 0% { transform: none; } 30% { transform: rotate(-6deg); } 100% { transform: translate(46cqw, -22cqw) rotate(48deg); opacity: 0; } }
@keyframes insert { 0% { transform: none; } 60% { transform: translate(13cqw, 26cqw) scale(2.4); opacity: 1; } 100% { transform: translate(13cqw, 28cqw) scale(3.4); opacity: 0; } }

/* 5. spawarka */
.torch { left: 6cqw; top: 2cqw; width: 26cqw; height: 40cqw; }
.torch__arm { left: 24cqw; top: 0; width: 2.4cqw; height: 42cqw; background: linear-gradient(90deg, #b9b8af, #e4e3dc, #b9b8af); border: 1.5px solid var(--ink); transform: rotate(31deg); transform-origin: 50% 0; }
.torch__tip { left: 1.4cqw; top: 35.4cqw; width: 3cqw; height: 3cqw; border-radius: 50%; background: #fff; opacity: 0; }
.m5.is-act .torch__tip { opacity: 1; animation: arc .06s steps(2) infinite; }
@keyframes arc { 0% { box-shadow: 0 0 2cqw 1cqw #9fd8ff, 0 0 5cqw 2cqw rgba(255,180,60,.6); } 100% { box-shadow: 0 0 1cqw .5cqw #fff, 0 0 3cqw 1cqw rgba(255,120,30,.5); } }
.sparks { left: 8.9cqw; top: 38.9cqw; width: 0; height: 0; }
.sparks i { left: 0; top: 0; width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #ffcf5a; box-shadow: 0 0 .8cqw #ff8a00; opacity: 0; }
.m5.is-act .sparks i { animation: spark var(--t, .7s) var(--dl, 0s) cubic-bezier(.2,.6,.6,1) infinite; }
@keyframes spark { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--sx), var(--sy)); } }

/* 6. suwmiarka */
.cbeam {
  left: -60cqw; top: 5.4cqw; width: 120cqw; height: 5cqw; border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 100% / 2cqw 40% repeat-x, #d9d8cf;
}
.clcd { left: 50cqw; top: -1cqw; width: 20cqw; height: 7cqw; background: var(--ink); border: 1.5px solid var(--ink); }
.clcd span { left: 1cqw; right: 1cqw; top: 1cqw; bottom: 1cqw; display: grid !important; place-items: center; font-size: 3cqw; font-weight: 600; background: #b9c4a6; color: #1b2214; }
.clcd__b { opacity: 0; }
.lamp { left: 72cqw; top: .9cqw; width: 3cqw; height: 3cqw; border-radius: 50%; border: 1.5px solid var(--ink); background: #4a4c52; }
.cjaw { top: 5.4cqw; width: 3cqw; height: 84cqw; background: linear-gradient(90deg, #cfcec5, #e4e3dc); border: 1.5px solid var(--ink); }
.cjaw--l { left: -53cqw; transform: translateX(-10cqw); } .cjaw--r { left: 50cqw; transform: translateX(10cqw); }
.m6.is-act .cjaw { animation: clamp .7s .1s cubic-bezier(.3,1.5,.5,1) forwards; }
@keyframes clamp { to { transform: none; } }
.m6.is-act .clcd__b { animation: show 0s .9s forwards; }
.m6.is-act .lamp { animation: green 0s .9s forwards; }
@keyframes show { to { opacity: 1; } }
@keyframes green { to { background: #2bd96b; box-shadow: 0 0 2cqw #2bd96b; } }

/* 7. neon */
.cable--l { left: -12cqw; } .cable--r { left: 11.5cqw; }
.neon {
  left: -18cqw; top: 6.4cqw; width: 36cqw; height: 10cqw; background: #101114; border: 1.5px solid var(--ink); border-radius: 1cqw;
  display: grid !important; place-items: center; font-size: 5.4cqw; font-weight: 600; letter-spacing: .2em; color: #2a3a30;
}
.m7.is-act .neon { animation: neon 1.2s .2s steps(1) forwards; }
@keyframes neon {
  0%, 18%, 30%, 46% { color: #2a3a30; text-shadow: none; }
  12%, 24%, 38%, 100% { color: #7dffb1; text-shadow: 0 0 1cqw #2bd96b, 0 0 3cqw #2bd96b, 0 0 6cqw rgba(43,217,107,.6); }
}

/* ----- taśma ----- */
.belt { position: relative; --cx: 50%; min-width: 0; }
.belt::before {
  content: ""; position: absolute; left: var(--cx); top: -14px; width: 0; height: 0; transform: translateX(-50%);
  border: 9px solid transparent; border-top-color: var(--accent); border-bottom: 0; z-index: 2;
}
.belt__band {
  position: relative; height: 22px; border: 1.5px solid var(--ink); border-radius: 11px;
  background: repeating-linear-gradient(90deg, #26272b 0 18px, #141518 18px 36px); background-position-x: var(--bx, 0);
}
.belt__roller { position: absolute; top: 50%; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); background: radial-gradient(circle, var(--ink) 0 3px, #cfcec5 4px); transform: translateY(-50%) rotate(var(--rot, 0deg)); }
.belt__roller::after { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1.5px; background: var(--ink); transform: translateX(-50%); }
.belt__roller:first-child { left: -16px; } .belt__roller:last-child { right: -16px; }
.belt__viewport { overflow: hidden; }
.belt__track { display: flex; margin: 0; padding: 0; list-style: none; transform: translateX(var(--tx, 0)); will-change: transform; }
.belt__track li { flex: none; width: clamp(180px, 20vw, 340px); padding: 12px 16px 0; border-left: 1px dashed var(--ink-3); color: var(--ink-2); transition: color .25s; }
.belt__track li span { display: block; font-size: 12px; color: var(--accent-ink); }
.belt__track li b { font-size: clamp(15px, 1.2vw, 21px); font-stretch: 100%; transition: color .25s; }
.belt__track li p { display: none; }
.belt__track li.is-on { color: var(--ink); }
.belt__track li.is-on b { color: var(--accent-ink); }

@media (max-width: 900px) {
  .line-sheet { height: 260vh; }
  .line { padding-top: 76px; padding-bottom: 72px; }
  .line .h2 { font-size: clamp(24px, 6.4vw, 34px); }
  .line__stage { grid-template-columns: 1fr; gap: 10px; align-content: center; }
  .product { order: -1; width: min(100%, 380px, calc((100svh - 500px) * 1.12)); }
  .line__count b { font-size: 40px; }
  .line__title { font-size: 26px; margin-bottom: 6px; }
  .line__text { font-size: 15px; }
  .line__pay { margin-top: 8px; font-size: 12px; }
}

/* ograniczony ruch: zwykła lista kroków i gotowy produkt */
@media (prefers-reduced-motion: reduce) {
  .line-sheet { height: auto; padding: clamp(96px, 14vh, 150px) var(--side) 72px; }
  .line { position: static; height: auto; padding: 0; }
  .line__now, .belt__band, .belt::before, .rig { display: none; }
  .belt__viewport { overflow: visible; }
  .belt__track { flex-direction: column; transform: none; }
  .belt__track li { width: auto; padding: 14px 0; border-left: 0; border-top: 1px dashed var(--ink-3); color: var(--ink); }
  .belt__track li p { display: block; margin: 4px 0 0; color: var(--ink-2); }
}

/* ---------- ARK. 08: karta kontrolna ---------- */
.check__tools { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.check { border: 1.5px solid var(--ink); background: var(--paper); counter-reset: q; }
.check__row { display: grid; grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); align-items: stretch; }
.check__row:last-child { border-bottom: 0; }
.check__row > * { padding: 14px 16px; border-right: 1px solid var(--line); min-width: 0; }
.check__row > *:last-child { border-right: 0; }
.check__row--head > span { font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); background: var(--paper-2); padding-top: 10px; padding-bottom: 10px; }
.check__no { font-size: 13px; color: var(--ink-2); }
.check details summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05em; line-height: 1.3; display: grid; grid-template-columns: 1fr 20px; gap: 10px; align-items: start; min-height: 24px; }
.check details summary::-webkit-details-marker { display: none; }
.check details summary::after { content: "+"; font: 600 18px/1.2 var(--mono); color: var(--accent-ink); transition: transform .25s; text-align: center; }
.check details[open] summary::after { transform: rotate(45deg); }
.check details summary:hover { color: var(--accent-ink); }
.check details p { margin: 10px 0 2px; font-size: 15px; color: var(--ink-2); }
/* rozwijanie odpowiedzi: linia wymiarowa mierzy jej wysokość */
.check__drop { position: relative; overflow: hidden; padding-left: 64px; }
.check__dim { position: absolute; left: 52px; top: 12px; bottom: 6px; width: 1.5px; background: var(--accent); }
.check__dim::before, .check__dim::after { content: ""; position: absolute; left: -4.5px; border: 5px solid transparent; }
.check__dim::before { top: -2px; border-bottom: 9px solid var(--accent); border-top: 0; }
.check__dim::after { bottom: -2px; border-top: 9px solid var(--accent); border-bottom: 0; }
.check__mm { position: absolute; left: 0; width: 44px; top: 50%; transform: translateY(-50%); text-align: right; font-size: 11px; line-height: 1.2; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.check details p { transition: opacity .35s .1s, transform .45s .05s cubic-bezier(.3,.7,.2,1); }
.check details.is-opening p { opacity: 0; transform: translateY(-6px); }
.check details.is-closing summary::after { transform: none; }
.check__row.is-open { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.check__row.is-open .check__ans { color: var(--ink); }
.check details a { color: var(--accent-ink); }
.check__ans { display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--accent-ink); position: relative; }
.check__ans::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; background: var(--accent); }
.check__other { display: flex; align-items: center; }
.check__other input {
  width: 100%; font: 400 15px/1.3 var(--font); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px dashed var(--ink-3); padding: 6px 0; border-radius: 0;
}
.check__other input:focus { outline: none; border-bottom: 2px solid var(--accent-ink); }
.check__row:target { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.check__print-foot { display: none; }

@media (max-width: 1100px) {
  .plate__go { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .delay__read { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px dashed var(--line); }
  .check__row { grid-template-columns: 44px minmax(0, 1fr); }
  .check__row > *:nth-child(n+2) { grid-column: 2; border-right: 0; }
  .check__row > *:nth-child(1) { grid-row: 1 / span 3; }
  .check__ans, .check__other { padding-top: 0 !important; }
  .check__ans::before { display: none; }
  .check__row--head { display: none; }
  .check__drop { padding-left: 40px; }
  .check__dim { left: 30px; }
  .check__mm { width: 26px; font-size: 9px; white-space: normal; }
}
@media (max-width: 640px) {
  .closing__dim span { font-size: 10px; }
}

/* ---------- Wydruk karty kontrolnej ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body.print-check { background: #fff; }
  body.print-check > *:not(main), body.print-check main > *:not(#faq) { display: none !important; }
  body.print-check main { padding: 0; }
  body.print-check #faq { padding: 0; border: 0; }
  body.print-check #faq::before, body.print-check .check__tools, body.print-check .sheet__lead { display: none; }
  body.print-check .h2 { font-size: 26px; max-width: none; }
  body.print-check .check__row { break-inside: avoid; grid-template-columns: 10mm 1.6fr 1fr 1fr; }
  body.print-check .check details summary::after { content: none; }
  body.print-check .check__dim, body.print-check .check__mm { display: none; }
  body.print-check .check__drop { padding-left: 0; height: auto !important; }
  body.print-check .check__other input { border-bottom: 1px solid #000; }
  body.print-check .check__print-foot { display: block; margin-top: 8mm; font-size: 10px; }
}

/* ---------- Kursor: celownik na arkuszu, łapka na tym, co klikalne ---------- */
@media (pointer: fine) {
  body.has-cursor { cursor: crosshair; }
  body.has-cursor :is(a, button, summary, label, input[type="checkbox"]) { cursor: pointer; }
  body.has-cursor :is(input:not([type="checkbox"]), textarea) { cursor: text; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1240px) {
  .nav nav a[href="#faq"] { display: none; }
}
@media (max-width: 1100px) {
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .part-card { grid-column: span 1; }
  .part-card:nth-child(3), .part-card--wide { grid-column: 1 / -1; }
  .nav nav a[href="#kto"] { display: none; }
}
@media (max-width: 900px) {
  :root { --ruler: 0px; }
  .ruler, .frame__corner, .cursor, .titleblock { display: none; }
  .hero__grid, .contact__grid, .who__grid { grid-template-columns: 1fr; }
  .caliper-sticky .sheet__head { grid-template-columns: 1fr; row-gap: 12px; }
  .hero__drawing { max-width: 460px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .work { grid-template-columns: 1fr; gap: 10px; }
  .work__plan { display: none; }
  .footer { grid-template-columns: 1fr; padding-bottom: 96px; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    background: var(--paper); border-top: 1.5px solid var(--ink);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 56px; text-decoration: none; font-weight: 700; font-size: 16px; border-right: 1px solid var(--ink); }
  .dock a:last-child { border-right: 0; }
  .dock__cta { background: var(--accent); }
  .nav nav a:not(.nav__cta):not(.nav__tel) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .nav__tel { display: none; }
  .sheet { padding-left: 16px; padding-right: 16px; }
  .sheet::before { right: 16px; }
  .parts { grid-template-columns: 1fr; }
  .tiers li { grid-template-columns: 1fr; gap: 2px; }
  .order { grid-template-columns: 1fr; padding: 18px; }
  .footer { padding: 28px 16px 96px; }
  .hero__actions .btn { width: 100%; }
  /* Na telefonie suwmiarka jest od razu zamknięta: bez długiego przewijania */
  .caliper-sheet { height: auto; padding: 0; }
  .caliper-sticky { position: static; height: auto; display: block; padding: 96px 16px 64px; }
  .caliper-sticky .caliper { margin-top: 28px; }
  .caliper__svg { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
  .drawing .draw { stroke-dashoffset: 0; }
  .caliper-sheet { height: auto; }
  .caliper-sticky { position: static; height: auto; }
  .caliper__svg { height: auto; }
}
