/* SZTAFETA 10 · prezentacja projektu · Brillnet / Piotr Adamski */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/barlow-latin-ext-400-normal.woff2") format("woff2");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:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/barlow-latin-400-normal.woff2") format("woff2");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:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/barlow-latin-ext-500-normal.woff2") format("woff2");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:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/barlow-latin-500-normal.woff2") format("woff2");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:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/barlow-latin-ext-600-normal.woff2") format("woff2");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:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/barlow-latin-600-normal.woff2") format("woff2");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:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2");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:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");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:"DM Sans";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/dm-sans-latin-ext-600-normal.woff2") format("woff2");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:"DM Sans";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2");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:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");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:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");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:"JetBrains Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2");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:"JetBrains Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");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}
:root {
  --bg: #08090b; --bg2: #0c0f14; --bg3: #11151c; --panel: rgba(11, 14, 19, 0.84);
  --ink: #e9edf3; --ink2: #b7c0cc; --mut: #8691a1;
  --line: rgba(148, 170, 200, 0.16); --line2: rgba(148, 170, 200, 0.3);
  --gold: #f0a23c; --ice: #9fc4f0; --blue: #74b3e6; --hot: #ff6b3d;
  --f-body: "Barlow", system-ui, sans-serif; --f-disp: "Barlow Condensed", "Barlow", sans-serif;
  --f-mark: "DM Sans", "Barlow", sans-serif; --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --hdr: 56px; --pad: clamp(16px, 2.6vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 8px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink2); font: 400 16px/1.6 var(--f-body); }
body.noscroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 600; line-height: 1.1; color: #fff; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: 21px; }
p { margin: 0 0 14px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { display: block; font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice); margin-bottom: 14px; }
.lead { font-size: clamp(15.5px, 1.25vw, 17px); color: var(--ink2); max-width: 64ch; margin: 14px 0 0; }
.mono { font-family: var(--f-mono); font-size: 0.84em; }
.wordmark { font: 600 21px/1 var(--f-mark); letter-spacing: -0.01em; color: var(--gold); }
.wordmark.small { font-size: 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #111; padding: 10px 14px; border-radius: 4px; z-index: 80; }
.skip:focus { left: 8px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* nagłówek */
.top { position: sticky; top: 0; z-index: 40; height: var(--hdr); display: flex; align-items: center; gap: 18px; padding: 0 var(--pad);
  background: rgba(8, 9, 11, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a, .back { padding: 10px 11px; color: var(--mut); text-decoration: none; font: 500 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.nav a:hover, .back:hover { color: #fff; }
.back { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.back svg { width: 14px; height: 14px; }
.lang { display: flex; border: 1px solid var(--line2); border-radius: 999px; padding: 2px; flex: 0 0 auto; }
.nav + .lang { margin-left: 8px; }
.lang button { appearance: none; border: 0; background: none; color: var(--mut); font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; padding: 7px 11px; border-radius: 999px; cursor: pointer; min-width: 38px; min-height: 30px; }
.lang button[aria-pressed="true"] { background: #dbe9fb; color: #0b1016; }

/* scena prezentacji */
.stage { position: relative; height: calc(100svh - var(--hdr)); min-height: 600px; overflow: hidden; background: var(--bg); isolation: isolate; }
.view { position: absolute; inset: 0; }
.view::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.9), rgba(8, 9, 11, 0) 20%), linear-gradient(to bottom, rgba(8, 9, 11, 0.7), rgba(8, 9, 11, 0) 16%), radial-gradient(ellipse 80% 78% at 58% 46%, transparent 52%, rgba(0, 0, 0, 0.6)); }
.view::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--bg); opacity: 0; }
.stage.cut .view::before { animation: cut 0.5s ease-out; }
@keyframes cut { from { opacity: 1; } to { opacity: 0; } }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: 0; cursor: grab; }
#gl:active { cursor: grabbing; }
.ov { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.lab { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.25s; will-change: transform; }
.lab.on { opacity: 1; }
.lab i { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(240, 162, 60, 0.22); }
.lab span { position: absolute; left: 14px; top: -11px; white-space: nowrap; font: 500 11px/1 var(--f-mono); letter-spacing: 0.04em; color: #fff; background: rgba(8, 10, 14, 0.82);
  border: 1px solid var(--line2); padding: 5px 8px; border-radius: 3px; }
.lab span::before { content: ""; position: absolute; left: -11px; top: 50%; width: 10px; height: 1px; background: var(--line2); }
.lab.l span { left: auto; right: 14px; }
.lab.l span::before { left: auto; right: -11px; }
.frame { position: absolute; inset: 12px; pointer-events: none; z-index: 2; }
.cn { position: absolute; width: 16px; height: 16px; border: 0 solid var(--line2); }
.cn.tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.cn.tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.cn.bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.cn.br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.stamp { position: absolute; right: 16px; top: 14px; display: flex; border: 1px solid var(--line2); font: 500 10px/1 var(--f-mono); letter-spacing: 0.12em; color: var(--ink2); background: rgba(8, 10, 14, 0.5); }
.stamp span { padding: 6px 9px; border-left: 1px solid var(--line2); white-space: nowrap; }
.stamp span:first-child { border-left: 0; color: #fff; }
.readout { position: absolute; right: 16px; top: 44px; font: 400 10px/1 var(--f-mono); letter-spacing: 0.1em; color: var(--mut); white-space: nowrap; }
.scale { position: absolute; right: 16px; bottom: 96px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font: 400 10px/1 var(--f-mono); letter-spacing: 0.1em; color: var(--mut); }
.scale i { display: block; height: 5px; border: 1px solid var(--ink2); border-top: 0; width: 100px; }
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.sheet { position: absolute; inset: 0; pointer-events: none; }
.card, .bar, .down { pointer-events: auto; }
.card { position: absolute; left: 30px; top: 58px; width: min(340px, 30vw); background: var(--panel); border: 1px solid var(--line); padding: 16px 18px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card-h { display: flex; align-items: center; gap: 7px; font: 500 9.5px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); margin-bottom: 14px; min-height: 20px; }
.ch-n { border: 1px solid var(--line2); padding: 4px 6px; color: #fff; letter-spacing: 0.08em; }
.ch-t { white-space: nowrap; }
.sim { border: 1px solid var(--gold); color: var(--gold); padding: 4px 6px; letter-spacing: 0.12em; }
.step-id { margin-left: auto; letter-spacing: 0.1em; white-space: nowrap; }
.title { font-size: clamp(22px, 2.05vw, 28px); margin-bottom: 10px; text-wrap: balance; }
.text { font-size: 14.5px; line-height: 1.55; color: var(--ink2); margin: 0 0 12px; }
.more { display: none; appearance: none; border: 0; background: none; color: var(--ice); font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; padding: 12px 0 14px; cursor: pointer; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); }
.facts div { padding: 9px 10px 10px; border-left: 1px solid var(--line); min-width: 0; }
.facts div:first-child { border-left: 0; }
.facts dt { font: 500 9px/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); margin-bottom: 5px; }
.facts dd { margin: 0; font: 500 13px/1.3 var(--f-mono); color: #fff; overflow-wrap: anywhere; }
.legend { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.lg-row { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; line-height: 1.3; }
.sw { width: 11px; height: 11px; flex: 0 0 auto; display: block; }
.lg-ramp { display: flex; align-items: center; gap: 9px; font: 500 11px/1 var(--f-mono); color: #fff; white-space: nowrap; }
.ramp { flex: 1; height: 8px; display: block; position: relative; border-radius: 2px; }
.ramp-load { background: linear-gradient(90deg, #2f66c2, #47b7d8 34%, #f3bb4c 67%, #ff5a2a); }
.ramp-temp { background: linear-gradient(90deg, #1e4bb8, #9cc4f5 64%, #ffe2b0 64%, #f0a23c); margin-bottom: 16px; }
.lg-mid { position: absolute; left: 64%; top: -3px; height: 14px; border-left: 1px solid #fff; font: 400 10px/1 var(--f-mono); color: var(--ink2); padding: 17px 0 0 0; white-space: nowrap; }
.lg-mid::first-line { letter-spacing: 0.04em; }
.lg-note { margin: 9px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--mut); }
.bar { position: absolute; left: 30px; right: 30px; bottom: 20px; display: flex; align-items: center; gap: 22px; }
.controls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ic { appearance: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(8, 10, 14, 0.6); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; position: relative; }
.ic::after { content: ""; position: absolute; inset: -5px; }
.ic:hover { border-color: #fff; }
.ic.play { width: 42px; height: 42px; border-color: var(--ink2); }
.ic.play svg { fill: currentColor; stroke: none; }
.ic.play .i-pause, .ic.play.on .i-play { display: none; }
.ic.play.on .i-pause { display: block; }
.timeline { flex: 1 1 auto; display: flex; gap: 6px; min-width: 0; align-items: flex-end; }
.tl-ch { appearance: none; border: 0; background: none; padding: 8px 0 6px; margin: 0; cursor: pointer; text-align: left; color: var(--mut); min-width: 0; flex-basis: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  font: 500 9.5px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.tl-ch:hover, .tl-ch.on { color: #fff; }
.tl-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 0; }
@media (min-width: 1180px) { .tl-ch { min-width: max-content; } }
.tl-bar { flex: 0 0 100%; height: 2px; background: rgba(148, 170, 200, 0.26); display: block; overflow: hidden; margin-top: 7px; }
.tl-bar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.meta { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.counter { font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; color: var(--ink2); white-space: nowrap; }
.hint { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font: 400 10.5px/1 var(--f-mono); letter-spacing: 0.08em; color: var(--mut); white-space: nowrap; transition: opacity 0.6s; pointer-events: none; z-index: 2; }
.stage.touched .hint { opacity: 0; }
.down { position: absolute; right: 30px; bottom: 70px; display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mut); text-decoration: none; padding: 8px 0; }
.down:hover { color: #fff; }
.down svg { width: 13px; height: 13px; }
.loader { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: var(--bg); transition: opacity 0.5s, visibility 0s 0.5s; text-align: center; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.ld-in { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 24px; }
.ld-title { font: 600 26px/1.1 var(--f-disp); color: #fff; letter-spacing: 0.02em; }
.ld-bar { width: 180px; height: 2px; background: rgba(148, 170, 200, 0.22); overflow: hidden; }
.ld-bar i { display: block; width: 40%; height: 100%; background: var(--gold); animation: ld 1.1s linear infinite; }
@keyframes ld { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.ld-msg { font: 400 11px/1.5 var(--f-mono); letter-spacing: 0.08em; color: var(--mut); max-width: 44ch; }
.noscript { position: absolute; inset: auto 0 0 0; z-index: 7; padding: 16px var(--pad); background: var(--bg2); border-top: 1px solid var(--line); text-align: center; }
.stage.nogl .hud, .stage.nogl .frame, .stage.nogl .ld-bar { display: none; }
.stage.nogl .loader { background: rgba(8, 9, 11, 0.78); }
.stage.nogl .view { background: url("../img/plakat.jpg") center / cover no-repeat; }
.stage.nogl #gl { display: none; }
.stage.shot .hud, .stage.shot .frame, .stage.shot .ov, .stage.shot .view::after, .stage.shot .loader, .stage.shot .hint { display: none; }
.stage.fs-fake { position: fixed; inset: 0; z-index: 70; height: 100dvh; }
.stage:fullscreen { height: 100vh; }

/* sekcje */
.sec { padding: clamp(60px, 8vw, 116px) 0; border-top: 1px solid var(--line);
  background-image: linear-gradient(rgba(148, 170, 200, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 170, 200, 0.035) 1px, transparent 1px); background-size: 160px 160px; background-position: center top; }
.sec-h { margin-bottom: clamp(28px, 3.4vw, 46px); }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); background: rgba(12, 15, 20, 0.7); }
.spec-grid div { padding: 22px 20px 24px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.spec-grid div:nth-child(4n + 1) { border-left: 0; }
.spec-grid div:nth-child(-n + 4) { border-top: 0; }
.spec-grid dt { font: 500 10px/1.3 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); margin-bottom: 12px; }
.spec-grid dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.stage-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stage-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; border: 1px solid var(--line); background: var(--bg2); transition: border-color 0.2s; }
.stage-card:hover { border-color: var(--line2); color: inherit; }
.ph { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0e13; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.stage-card:hover .ph img { transform: scale(1.03); }
.ph .no { position: absolute; left: 12px; top: 12px; font: 500 10px/1 var(--f-mono); letter-spacing: 0.08em; color: #fff; border: 1px solid var(--line2); padding: 4px 6px; background: rgba(8, 10, 14, 0.6); }
.bd { padding: 18px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bd p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--ink2); }
.go, .res a, details.all summary { font: 500 10px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); }
.go { margin-top: auto; padding-top: 10px; }
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: rgba(12, 15, 20, 0.7); }
.res { padding: 24px 22px 20px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.res:nth-child(3n + 1) { border-left: 0; }
.res:nth-child(-n + 3) { border-top: 0; }
.res .k { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font: 500 9.5px/1 var(--f-mono); letter-spacing: 0.08em; color: var(--gold); border: 1px solid rgba(240, 162, 60, 0.55); padding: 4px 6px; white-space: nowrap; }
.tag.inf { color: var(--ice); border-color: rgba(159, 196, 240, 0.5); }
.big { font: 500 34px/1.1 var(--f-mono); color: #fff; margin-bottom: 12px; letter-spacing: -0.01em; }
.big small { font-size: 12px; color: var(--mut); margin-left: 8px; letter-spacing: 0.04em; font-weight: 400; }
.res p { font-size: 14px; line-height: 1.55; margin: 0 0 14px; color: var(--ink2); }
.res a { margin-top: auto; text-decoration: none; padding: 14px 0 6px; display: inline-block; }
details.all { margin-top: 18px; border: 1px solid var(--line); background: rgba(12, 15, 20, 0.7); }
details.all summary { cursor: pointer; padding: 18px 20px; list-style-position: inside; }
details.all .in { padding: 0 20px 20px; }
details.all .note { margin: 0 0 12px; }
.doc-group { margin-top: 30px; }
.doc-group h3 { font: 500 10px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mut); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.doc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.doc { display: flex; gap: 14px; padding: 16px 16px 16px; border: 1px solid var(--line); background: var(--bg2); text-decoration: none; color: inherit; transition: border-color 0.2s; min-height: 108px; }
.doc:hover { border-color: var(--line2); color: inherit; }
.ty { flex: 0 0 34px; height: 42px; border: 1px solid var(--line2); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font: 500 9px/1 var(--f-mono); letter-spacing: 0.06em; color: #fff;
  background: linear-gradient(135deg, transparent 8px, #151a22 8px); }
.doc .nm { display: block; font: 600 17px/1.2 var(--f-disp); color: #fff; margin-bottom: 5px; letter-spacing: 0.01em; }
.doc .ds { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink2); margin-bottom: 8px; }
.doc .mt { display: block; font: 400 10px/1.3 var(--f-mono); letter-spacing: 0.08em; color: var(--mut); }
.contact-box { display: grid; grid-template-columns: 96px 1fr; gap: clamp(20px, 3.4vw, 44px); align-items: start; border: 1px solid var(--line); background: var(--bg2); padding: clamp(24px, 4vw, 48px); }
.contact-logo { width: 96px; height: 96px; }
.contact-box .lead { margin-bottom: 20px; }
.person { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; font-size: 17px; color: #fff; }
.cta, .docbtns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line2); color: #fff; text-decoration: none; font: 500 15px/1.2 var(--f-body); background: none; cursor: pointer; }
.btn:hover { border-color: #fff; color: #fff; }
.btn.gold, .btn.primary { background: var(--gold); border-color: var(--gold); color: #14100a; }
.btn.gold:hover, .btn.primary:hover { background: #ffb85a; border-color: #ffb85a; color: #14100a; }
.btn svg { width: 16px; height: 16px; }

/* tabele */
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--bg2); margin: 0 0 18px; }
.tbl:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.45; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font: 500 10px/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); background: var(--bg3); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink2); }
td strong { color: #fff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* stopka */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; color: var(--ink2); }
.title-block { display: grid; grid-template-columns: auto 1fr 1.5fr; border: 1px solid var(--line); background: var(--bg2); }
.tb-brand, .tb-cell { padding: 14px 16px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.tb-brand img { width: 30px; height: 30px; }
.tb-cell { flex-direction: column; align-items: flex-start; gap: 4px; justify-content: center; }
.tb-cell:nth-child(3) { border-right: 0; }
.tb-cell.wide { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); }
.tb-cell .k { font: 500 10px/1.2 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); }
.tb-cell .v { color: var(--ink2); }
.foot-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* podstrony dokumentów */
.dochead { padding: clamp(30px, 4.4vw, 60px) 0 clamp(20px, 2.6vw, 32px); border-bottom: 1px solid var(--line); background: var(--bg2); }
.dochead h1 { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 4px; }
.docmeta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 20px; font: 400 11px/1.4 var(--f-mono); letter-spacing: 0.06em; color: var(--ink2); }
.docmeta b { font-weight: 500; color: var(--mut); margin-right: 8px; text-transform: uppercase; letter-spacing: 0.14em; }
.docbody { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); padding-top: clamp(24px, 3vw, 44px); padding-bottom: clamp(44px, 6vw, 90px); align-items: start; }
.toc { position: sticky; top: calc(var(--hdr) + 18px); max-height: calc(100vh - var(--hdr) - 36px); overflow: auto; font-size: 14px; border-left: 1px solid var(--line2); padding-left: 14px; }
.toc b { display: block; font: 500 10px/1.2 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mut); margin-bottom: 8px; }
.toc a { display: block; padding: 6px 0; color: var(--ink2); text-decoration: none; line-height: 1.3; }
.toc a:hover { color: #fff; }
article.md { min-width: 0; font-size: 16px; }
article.md h2 { font-size: clamp(25px, 2.8vw, 32px); margin: 42px 0 14px; padding-top: 6px; }
article.md h2:first-child { margin-top: 0; }
article.md h3 { margin: 30px 0 10px; }
article.md strong { color: #fff; font-weight: 600; }
article.md ul, article.md ol { padding-left: 22px; margin: 0 0 14px; }
article.md li { margin-bottom: 6px; }
article.md img { border: 1px solid var(--line2); background: #fff; margin: 6px 0 4px; }
article.md code { font: 400 0.86em var(--f-mono); background: var(--bg3); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; color: var(--ink); }
article.md a { overflow-wrap: anywhere; }
.note { font-size: 14px; color: var(--mut); }
.sheets { display: grid; gap: 22px; padding-top: clamp(24px, 3vw, 44px); padding-bottom: clamp(44px, 6vw, 90px); }
.sheet-fig { margin: 0; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.sheet-fig figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-fig figcaption b { font: 600 20px/1.2 var(--f-disp); color: #fff; }
.sheet-fig figcaption .mono { color: var(--mut); }
.sheet-fig a { display: block; }
.sheet-fig img { width: 100%; background: #fff; }
.animv { padding: clamp(14px, 2vw, 26px) var(--pad) clamp(44px, 6vw, 90px); }
.frame-wrap { max-width: 1400px; margin: 0 auto; border: 1px solid var(--line2); overflow: hidden; background: #f2f3f5; }
.frame-wrap iframe { display: block; width: 100%; height: min(78vh, 820px); min-height: 520px; border: 0; }
.p404 { min-height: 60vh; display: flex; align-items: center; }
.p404 h1 { font-size: clamp(32px, 5vw, 56px); }
.p404 .lead { margin: 14px 0 24px; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid div:nth-child(4n + 1) { border-left: 1px solid var(--line); }
  .spec-grid div:nth-child(2n + 1) { border-left: 0; }
  .spec-grid div:nth-child(-n + 4) { border-top: 1px solid var(--line); }
  .spec-grid div:nth-child(-n + 2) { border-top: 0; }
  .stage-grid, .doc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .res:nth-child(2n + 1) { border-left: 0; }
  .res:nth-child(-n + 3) { border-top: 1px solid var(--line); }
  .res:nth-child(-n + 2) { border-top: 0; }
  .docbody { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); padding: 14px 16px; background: var(--bg2); columns: 2; column-gap: 24px; }
  .toc b { column-span: all; }
  .tl-t { display: none; }
  .card { width: min(340px, 42vw); }
}
@media (max-width: 760px) {
  .stage { height: auto; min-height: 0; overflow: visible; }
  .view { position: relative; inset: auto; height: 56svh; min-height: 320px; overflow: hidden; }
  .frame { inset: 8px; }
  .stamp, .readout, .scale { display: none; }
  .hud, .sheet { position: static; }
  .hud { display: block; background: linear-gradient(#0b0e13, var(--bg)); border-top: 1px solid var(--line); }
  .sheet { display: flex; flex-direction: column; }
  .bar { position: static; order: 1; padding: 10px 14px 4px; gap: 12px; }
  .card { position: static; order: 2; width: auto; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 8px 16px 20px; }
  .timeline { gap: 3px; align-items: center; }
  .tl-ch { padding: 16px 0; }
  .tl-n { display: none; }
  .tl-bar { margin-top: 0; }
  .ic { width: 40px; height: 40px; }
  .ic.play { width: 46px; height: 46px; }
  .card-h { margin-bottom: 10px; }
  .title { font-size: 25px; }
  .text { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0; }
  .card.open .text { display: block; }
  .more { display: inline-block; }
  .facts dd { font-size: 12.5px; }
  .hint { font-size: 10px; max-width: 92%; overflow: hidden; text-overflow: ellipsis; top: 14px; }
  .down { display: none; }
  .loader { inset: 0 0 auto 0; height: 56svh; min-height: 320px; }
  .lab span { font-size: 10px; padding: 4px 6px; }
  .spec-grid, .stage-grid, .res-grid, .doc-list { grid-template-columns: 1fr; }
  .spec-grid div, .res { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .spec-grid div:first-child, .res:first-child { border-top: 0 !important; }
  .contact-box { grid-template-columns: 1fr; }
  .contact-logo { width: 72px; height: 72px; }
  .title-block { grid-template-columns: 1fr; }
  .tb-brand, .tb-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .tb-cell.wide { border-top: 0; border-bottom: 0; }
  .toc { columns: 1; }
  .frame-wrap iframe { height: 76vh; min-height: 460px; }
  .cta .btn { width: 100%; padding: 10px 16px; }
  .cta .btn.gold { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tbl table { min-width: 660px; }
  .eyebrow { letter-spacing: 0.14em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .stage.cut .view::before { animation: none; } .ld-bar i { animation: none; width: 100%; } }
@media print { .top, .hud, .frame, .toc, .docbtns { display: none; } body { background: #fff; color: #111; } h1, h2, h3 { color: #111; } }
