/* CIRQL Linia — komponenty stron przebudowanych (body.linia).
   Osie: A = kolumna 1, B = kolumna 8 siatki dwunastokolumnowej.
   Pismo: jedna rodzina, pięć ról wielkości, dwie odmiany (400 i 500). */

.linia, .linia *, .linia *::before, .linia *::after { box-sizing:border-box; }
body.linia { margin:0; background:var(--l-paper); color:var(--l-ink); font:400 var(--l-t-body)/1.6 var(--l-font); font-kerning:normal; font-synthesis:none; -webkit-font-smoothing:antialiased; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.linia :is(h1,h2,h3,h4,p,ul,ol,dl,dd,dt,figure,table) { margin:0; }
.linia :is(ul,ol) { padding:0; list-style:none; }
.linia :is(h1,h2,h3,h4) { font-weight:var(--l-head-w); font-stretch:var(--l-head-s); text-wrap:balance; }
.linia :is(p,li,dd) { text-wrap:pretty; }
.linia :is(img,svg) { display:block; max-width:100%; }
.linia img { height:auto; }
.linia a { color:inherit; text-decoration-thickness:1px; text-underline-offset:.22em; }
.linia :is(button,input,select,textarea) { font:inherit; color:inherit; letter-spacing:inherit; }
.linia button { cursor:pointer; }
.linia :is(strong,b) { font-weight:600; }
.linia [hidden] { display:none !important; }
.linia :focus-visible { outline:2px solid var(--l-accent); outline-offset:4px; }
.linia ::selection { background:#f1e4c4; color:var(--l-ink); }
.linia main { display:block; }
.l-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* ---------- Siatka i rytm ---------- */
.l-wrap { width:calc(100% - 2 * var(--l-gutter)); max-width:var(--l-max); margin-inline:auto; }
.l-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--l-gap); }
.l-sec { padding-bottom:var(--l-space); }
.l-sec.l-tone { padding-top:var(--l-space); background:var(--l-wash); }
.l-sec.l-deep { padding-top:var(--l-space); background:var(--l-deep); color:var(--l-on-deep); }
.l-sec.l-tone + .l-sec:not(.l-tone):not(.l-deep), .l-sec.l-deep + .l-sec:not(.l-tone):not(.l-deep) { padding-top:var(--l-space); }
.l-head { row-gap:20px; align-items:end; margin-bottom:clamp(40px,5vw,64px); padding-top:28px; border-top:1px solid var(--l-ink); }
.l-deep .l-head { border-top-color:var(--l-on-deep); }
.l-head h2 { grid-column:1 / 8; font-size:var(--l-t-title); line-height:1.1; letter-spacing:-.012em; }
.l-head > p { grid-column:8 / 13; }
.l-head > p + p { margin-top:-8px; }
.l-lead { font-size:var(--l-t-lead); line-height:1.5; }
.l-small { font-size:var(--l-t-small); line-height:1.55; }
.l-muted { color:var(--l-muted); }
.l-deep .l-muted { color:var(--l-muted-on-deep); }
.linia h3 { font-size:var(--l-t-lead); font-weight:600; font-stretch:100%; line-height:1.3; }

/* ---------- Działania ---------- */
.l-btn { display:inline-flex; align-items:center; min-height:54px; padding:0 0 0 24px; border:0; border-radius:0; background:var(--l-ink); color:#fff !important; font-weight:600; letter-spacing:.005em; line-height:1.2; text-decoration:none; transition:background-color .2s ease; }
.l-btn::after { content:'→'; align-self:stretch; display:grid; place-items:center; width:54px; margin-left:24px; background:var(--l-gold); color:var(--l-ink); transition:background-color .3s cubic-bezier(.32,.72,0,1),color .3s cubic-bezier(.32,.72,0,1); }
.l-btn:hover { background:var(--l-gold); color:var(--l-ink) !important; }
.l-btn:hover::after { background:var(--l-ink); color:var(--l-gold); }
.l-btn:active { transform:scale(.985); }
.l-deep { --l-accent:var(--l-gold); }
.l-deep .l-btn { background:var(--l-on-deep); color:var(--l-ink) !important; }
.l-link { display:inline-flex; align-items:baseline; gap:10px; padding-block:6px; font-weight:600; text-decoration:underline; text-decoration-color:var(--l-accent); text-decoration-thickness:2px; text-underline-offset:.34em; }
.l-link::after { content:'→'; display:inline-block; text-decoration:none; transition:transform .2s ease; }
.l-link:hover { color:var(--l-accent); }
.l-link:hover::after { transform:translateX(4px); }
.l-deep .l-link:hover { color:#fff; }
.l-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px 28px; }

/* ---------- Informacja o etapie programu ---------- */
.l-stage { border-block:1px solid var(--l-line); }
.l-stage > .l-wrap { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:8px var(--l-gap); align-items:baseline; padding-block:20px; }
.l-stage-label { grid-column:1 / 4; display:flex; align-items:baseline; gap:12px; font-weight:500; }
.l-stage-label::before { content:''; flex:none; width:9px; height:9px; background:var(--l-gold); transform:translateY(-1px); }
.l-stage-text { grid-column:4 / 11; }
.l-stage-link { grid-column:11 / 13; justify-self:end; white-space:nowrap; }

/* ---------- Otwarcie strony głównej ---------- */
.l-hero { padding-top:clamp(40px,5.5vw,80px); }
.l-hero-top { align-items:end; row-gap:28px; padding-bottom:clamp(32px,4vw,56px); }
.l-hero-title { grid-column:1 / 8; }
.l-hero-name { margin-bottom:20px; color:var(--l-muted); }
.l-hero h1 { font-size:var(--l-t-display); line-height:1.04; letter-spacing:-.015em; }
.l-hero-side { grid-column:8 / 13; display:grid; gap:28px; padding-bottom:6px; }
/* Krótka informacja o etapie w otwarciu; pełna treść w bloku .l-stage pod fotografią. */
.l-hero-status { position:relative; padding:16px 0 0 20px; border-top:1px solid var(--l-line); color:var(--l-muted); font-size:var(--l-t-small); line-height:1.55; }
.l-hero-status::before { content:''; position:absolute; left:0; top:calc(16px + .5em); width:8px; height:8px; background:var(--l-accent); }
.l-hero-status a { color:var(--l-ink); white-space:nowrap; }
.l-hero-status a:hover { color:var(--l-accent); }
.l-form :is(input,textarea)::placeholder { color:var(--l-muted); opacity:1; }

/* Porównanie fotografii z obrysem tej samej elewacji. */
.l-compare { margin:0; }
.l-compare-stage { position:relative; background:var(--l-wash); }
.l-compare-stage img { width:100%; aspect-ratio:2000 / 1124; object-fit:cover; }
.l-compare-outline { background:#ffffff; }
.l-compare.is-ready .l-compare-stage { --pos:56%; height:clamp(300px, 56.2vw, min(84vh, 920px)); overflow:hidden; cursor:ew-resize; touch-action:pan-y; user-select:none; -webkit-user-select:none; }
.l-compare.is-ready .l-compare-stage img { position:absolute; inset:0; height:100%; aspect-ratio:auto; object-position:50% 46%; pointer-events:none; }
.l-compare.is-ready .l-compare-outline { clip-path:inset(0 0 0 var(--pos)); }
.l-compare-ui { position:absolute; inset:0; }
.l-compare-range { position:absolute; left:var(--pos); top:50%; width:56px; height:56px; margin:0; transform:translate(-50%,-50%); opacity:0; pointer-events:none; }
.l-compare-handle { position:absolute; top:0; bottom:0; left:var(--pos); width:1px; background:var(--l-accent); pointer-events:none; }
.l-compare-knob { position:absolute; top:50%; left:50%; display:grid; place-items:center; width:56px; height:56px; border-radius:0; background:var(--l-ink); color:var(--l-gold); transform:translate(-50%,-50%); }
.l-compare-knob svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.l-compare-range:focus-visible ~ .l-compare-handle .l-compare-knob { outline:2px solid #fff; outline-offset:-6px; box-shadow:0 0 0 3px var(--l-ink); }
.l-compare-tag { position:absolute; bottom:20px; padding:6px 12px; background:var(--l-paper); color:var(--l-ink); font-size:var(--l-t-small); line-height:1.4; pointer-events:none; }
.l-compare-tag-a { left:var(--l-gutter); }
.l-compare-tag-b { right:var(--l-gutter); }
.l-compare figcaption { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:4px var(--l-gap); width:calc(100% - 2 * var(--l-gutter)); max-width:var(--l-max); margin-inline:auto; padding-top:14px; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.55; }
.l-compare figcaption > :nth-child(1) { grid-column:1 / 8; }
.l-compare figcaption > :nth-child(2) { grid-column:8 / 13; }
.l-compare:not(.is-ready) .l-compare-outline { margin-top:8px; }
.l-hero > .l-stage { margin-top:clamp(32px,4vw,56px); }

/* ---------- Wybór (zakładki) ---------- */
.l-tabs { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); column-gap:var(--l-gap); margin-bottom:clamp(32px,4vw,56px); }
.l-tab { display:flex; align-items:baseline; gap:12px; min-height:64px; padding:16px 0 18px; border:0; border-top:1px solid var(--l-line); background:none; color:var(--l-muted); text-align:left; line-height:1.35; transition:color .2s ease,border-color .2s ease; }
.l-tab:hover { color:var(--l-ink); border-top-color:var(--l-ink); }
.l-tab[aria-selected="true"] { color:var(--l-ink); border-top-color:var(--l-accent); box-shadow:inset 0 2px 0 var(--l-accent); font-weight:500; }
.l-tab-code { flex:none; min-width:1.2em; color:var(--l-accent); font-weight:500; }
.l-tabs.has-icons .l-tab { align-items:center; }
.l-tab-icon { flex:none; width:28px; height:28px; fill:none; stroke:var(--l-accent); stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; }
.l-code { color:var(--l-accent); }
.l-deep .l-tab { border-top-color:var(--l-line-on-deep); color:var(--l-muted-on-deep); }
.l-deep .l-tab:hover, .l-deep .l-tab[aria-selected="true"] { color:var(--l-on-deep); }

/* ---------- Cztery obszary: przekrój ---------- */
.l-areas-body { align-items:start; row-gap:32px; }
.l-areas-figure { grid-column:1 / 8; position:sticky; top:104px; }
.l-areas-figure figcaption { margin-top:16px; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.55; }
.l-areas-panels { grid-column:8 / 13; display:grid; gap:48px; }
.l-areas.is-ready .l-areas-panels { gap:0; }
.l-area h3 { margin-bottom:16px; font-size:var(--l-t-title); font-weight:var(--l-head-w); font-stretch:var(--l-head-s); line-height:1.08; letter-spacing:-.012em; }
.l-area > p { margin-bottom:28px; }
.l-area-list { margin-bottom:28px; border-bottom:1px solid var(--l-line); }
.l-area-list li { display:grid; grid-template-columns:3.25em minmax(0,1fr); gap:12px; padding:11px 0; border-top:1px solid var(--l-line); line-height:1.4; }
.l-area-list li > span:first-child { color:var(--l-accent); font-weight:500; }
.l-area-list-title { margin-bottom:12px; color:var(--l-muted); font-size:var(--l-t-small); }
.l-dg { width:100%; height:auto; background:var(--l-wash); }
.l-dg * { vector-effect:non-scaling-stroke; }
.l-dg :is(path,line,circle,rect,ellipse) { fill:none; stroke:var(--l-ink); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.l-dg .dg-soft { stroke:#98a2ab; }
.l-dg .dg-dash { stroke-dasharray:5 6; }
.l-dg .dg-node { fill:var(--l-wash); }
.l-dg [data-g] { transition:opacity .3s ease; }
.l-dg [data-g] * { transition:stroke .3s ease; }
.l-areas[data-active] .l-dg [data-g] { opacity:.16; }
.l-areas[data-active="c"] .l-dg [data-g~="c"],
.l-areas[data-active="i"] .l-dg [data-g~="i"],
.l-areas[data-active="r"] .l-dg [data-g~="r"],
.l-areas[data-active="q"] .l-dg [data-g~="q"] { opacity:1; }
.l-areas[data-active="c"] .l-dg [data-g~="c"] *,
.l-areas[data-active="i"] .l-dg [data-g~="i"] *,
.l-areas[data-active="r"] .l-dg [data-g~="r"] *,
.l-areas[data-active="q"] .l-dg [data-g~="q"] * { stroke:var(--l-accent); stroke-width:2; }

/* ---------- Raport ---------- */
.l-report-body { align-items:start; row-gap:40px; }
.l-sheet-figure { grid-column:1 / 8; }
.l-sheet { padding:clamp(20px,3vw,36px); background:var(--l-paper); color:var(--l-ink); }
.l-sheet-top { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding-bottom:24px; border-bottom:1px solid var(--l-ink); }
.l-sheet-top p:first-child, .l-deep .l-sheet .l-muted { color:var(--l-muted); }
.l-sheet-top p:first-child { font-size:var(--l-t-small); }
.l-sheet-top h3 { margin:4px 0 6px; }
.l-sheet-stamp { flex:none; padding:5px 12px; border:1px solid #b3261e; color:#b3261e; font-size:var(--l-t-small); line-height:1.4; transform:rotate(-4deg); }
.l-sheet table { width:100%; border-collapse:collapse; font-size:.9375rem; line-height:1.45; }
.l-sheet caption { text-align:left; }
.l-sheet thead th { padding:16px 12px 10px 0; color:var(--l-muted); font-size:var(--l-t-small); font-weight:400; text-align:left; vertical-align:bottom; }
.l-sheet tbody :is(th,td) { padding:14px 12px 14px 0; border-top:1px solid var(--l-line); font-weight:400; text-align:left; vertical-align:top; }
.l-sheet tbody th { width:27%; }
.l-sheet tbody th b { display:block; color:var(--l-accent); font-weight:500; }
.l-sheet tbody tr { transition:opacity .25s ease; }
.l-sheet tbody tr.is-dim { opacity:.22; }
.l-state { display:inline-flex; align-items:baseline; gap:8px; white-space:nowrap; }
.l-state::before, .l-key-mark { content:''; flex:none; display:inline-block; width:11px; height:11px; border:1.5px solid currentColor; }
.l-state[data-state="ok"]::before, .l-key-mark[data-state="ok"] { background:currentColor; }
.l-state[data-state="part"]::before, .l-key-mark[data-state="part"] { background:linear-gradient(90deg,currentColor 50%,transparent 50%); }
.l-state[data-state="miss"] { color:#b3261e; }
.l-sheet-foot { display:grid; gap:4px; padding-top:18px; border-top:1px solid var(--l-ink); color:var(--l-muted); font-size:var(--l-t-small); line-height:1.5; }
.l-sheet-figure figcaption { margin-top:16px; color:var(--l-muted-on-deep); font-size:var(--l-t-small); line-height:1.55; }
.l-doc .l-sheet-figure figcaption, .l-tone .l-sheet-figure figcaption { color:var(--l-muted); }
.l-doc .l-sheet { border:1px solid var(--l-line); }
.l-report-side { grid-column:8 / 13; display:grid; gap:32px; }
.l-key-title { margin-bottom:4px; color:var(--l-muted-on-deep); font-size:var(--l-t-small); }
.l-key { border-bottom:1px solid var(--l-line-on-deep); }
.l-key > li { border-top:1px solid var(--l-line-on-deep); }
.l-key-item { display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:4px 12px; align-items:baseline; width:100%; padding:16px 0; border:0; background:none; color:inherit; text-align:left; }
.l-key-item .l-key-mark { transform:translateY(1px); }
.l-key-name { font-size:var(--l-t-lead); font-weight:500; line-height:1.3; }
.l-key-count { color:var(--l-muted-on-deep); font-size:var(--l-t-small); }
.l-key-text { grid-column:2 / 4; color:var(--l-muted-on-deep); }
button.l-key-item { transition:color .2s ease; }
button.l-key-item:hover .l-key-name { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.22em; }
button.l-key-item[aria-pressed="true"] { box-shadow:inset 0 2px 0 var(--l-on-deep); }
button.l-key-item[aria-pressed="true"] .l-key-text { color:var(--l-on-deep); }
.l-deep :focus-visible { outline-color:#fff; }
.l-deep .l-sheet :focus-visible { outline-color:var(--l-accent); }
.l-report-note { display:grid; gap:8px; }
.l-fold { border-block:1px solid var(--l-line); }
.l-deep .l-fold { border-color:var(--l-line-on-deep); }
.l-fold + .l-fold { border-top:0; }
.l-fold > summary { display:flex; align-items:baseline; justify-content:space-between; gap:24px; padding:18px 0; cursor:pointer; list-style:none; font-weight:500; }
.l-fold > summary::-webkit-details-marker { display:none; }
.l-fold > summary::after { content:'+'; flex:none; font-size:1.375rem; font-weight:400; line-height:1; }
.l-fold[open] > summary::after { content:'−'; }
.l-fold-body { padding:8px 0 32px; }
.l-report-more { margin-top:clamp(40px,5vw,64px); }
.l-findings { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px var(--l-gap); }
.l-findings h4 { margin-bottom:8px; font-size:var(--l-t-body); font-weight:500; line-height:1.4; }
.l-findings p { color:var(--l-muted-on-deep); }

/* ---------- Zastosowania i katalog obiektów ---------- */
.l-pick-panel { align-items:start; row-gap:24px; }
.l-pick-panel + .l-pick-panel { margin-top:64px; }
.is-ready > .l-pick-panels > .l-pick-panel + .l-pick-panel { margin-top:0; }
.l-pick-figure { grid-column:1 / 8; }
.l-pick-figure img { width:100%; aspect-ratio:3 / 2; object-fit:cover; background:var(--l-wash); }
.l-pick-figure.is-drawing img { object-fit:contain; background:var(--l-paper); }
.l-pick-figure figcaption { margin-top:12px; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.55; }
.l-pick-copy { grid-column:8 / 13; display:grid; gap:20px; align-content:start; }
.l-pick-copy h3 { font-size:var(--l-t-title); font-weight:var(--l-head-w); font-stretch:var(--l-head-s); line-height:1.08; letter-spacing:-.012em; }
.l-pick-copy .l-fold-body { padding-bottom:20px; }
.l-pick-copy .l-fold-body p + p { margin-top:12px; }
.l-note { margin-top:24px; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.55; }
.l-note + .l-note { margin-top:8px; }

/* ---------- Przebieg oceny ---------- */
.l-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:var(--l-gap); row-gap:48px; counter-reset:step; }
.l-step { position:relative; display:grid; align-content:start; gap:16px; padding-top:36px; border-top:1px solid var(--l-ink); counter-increment:step; }
.l-step::before { content:''; position:absolute; top:-5px; left:0; width:9px; height:9px; background:var(--l-accent); }
.l-step-num { color:var(--l-muted); font-size:var(--l-t-small); }
.l-step-num::after { content:counter(step) ' z 4'; }
.l-step h3 { min-height:2.6em; }
.l-step dl { display:grid; gap:14px; padding-top:16px; border-top:1px solid var(--l-line); }
.l-step dt { color:var(--l-muted); font-size:var(--l-t-small); }
.l-step dd { line-height:1.5; }

/* ---------- Paszport materiałowy ---------- */
.l-passport { align-items:stretch; row-gap:32px; }
.l-passport-sources { grid-column:1 / 8; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--l-gap); row-gap:32px; align-content:start; }
.l-source { padding-top:20px; border-top:1px solid var(--l-ink); }
.l-source h3 { margin-bottom:4px; }
.l-source > p { margin-bottom:16px; color:var(--l-muted); font-size:var(--l-t-small); }
.l-source li { padding:10px 0; border-top:1px solid var(--l-line); line-height:1.45; }
.l-passport-doc { grid-column:8 / 13; position:relative; display:grid; grid-template-rows:auto 1fr auto; gap:24px; min-height:380px; padding:clamp(24px,3vw,36px); background:var(--l-accent); color:#fff; }
.l-passport-doc::before { content:''; position:absolute; top:50%; left:calc(-1 * var(--l-gap)); width:var(--l-gap); height:1px; background:var(--l-ink); }
.l-passport-doc img { width:112px; height:auto; }
.l-passport-doc h3 { align-self:end; font-size:var(--l-t-title); font-weight:var(--l-head-w); font-stretch:var(--l-head-s); line-height:1.08; letter-spacing:-.012em; }
.l-passport-doc ul { border-bottom:1px solid rgb(255 255 255 / .35); }
.l-passport-doc li { padding:10px 0; border-top:1px solid rgb(255 255 255 / .35); line-height:1.45; }
.l-passport-doc .l-small { color:rgb(255 255 255 / .82); }
.l-passport-notes { grid-column:1 / 8; display:grid; gap:16px; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.6; }
.l-passport-caption { grid-column:8 / 13; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.6; }

/* ---------- Po zatwierdzeniu metodyki ---------- */
.l-plan { align-items:start; row-gap:32px; }
.l-plan-figure { grid-column:1 / 6; }
.l-plan-figure img { width:100%; max-width:420px; }
.l-plan-figure figcaption { margin-top:12px; color:var(--l-muted); font-size:var(--l-t-small); }
@media (min-width:981px) { .l-plan-figure.is-photo { grid-column:1 / 7; } }
.l-plan-figure.is-photo img { max-width:none; aspect-ratio:3 / 2; object-fit:cover; background:var(--l-wash); }
.l-plan-list { grid-column:8 / 13; border-bottom:1px solid var(--l-line); }
.l-plan-list > div { display:grid; gap:8px; padding:24px 0; border-top:1px solid var(--l-line); }
.l-plan-list dt { font-size:var(--l-t-lead); font-weight:500; line-height:1.3; }
.l-plan-more { grid-column:8 / 13; }

/* ---------- Wiersze odsyłaczy ---------- */
.l-rows { border-bottom:1px solid var(--l-line); }
.l-rows > li { border-top:1px solid var(--l-line); }
.l-row { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:6px var(--l-gap); align-items:baseline; padding:24px 0; text-decoration:none; }
.l-row-title { grid-column:1 / 8; font-size:var(--l-t-lead); font-weight:500; line-height:1.3; }
.l-row-text { grid-column:8 / 12; color:var(--l-muted); }
.l-row-go { grid-column:12 / 13; justify-self:end; font-size:1.5rem; line-height:1; transition:transform .2s ease; }
.l-row:hover .l-row-title { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.22em; }
.l-row:hover .l-row-go { color:var(--l-accent); transform:translateX(6px); }

/* ---------- Kontakt ---------- */
.l-contact-grid { align-items:start; row-gap:40px; }
.l-contact-info { grid-column:1 / 7; display:grid; gap:20px; }
.l-contact-info h2 { font-size:var(--l-t-display); line-height:1.04; letter-spacing:-.015em; margin-bottom:12px; }
.l-contact-lines { display:grid; gap:4px; margin-top:12px; font-size:var(--l-t-title); line-height:1.25; letter-spacing:-.02em; }
.l-contact-lines a { width:fit-content; text-decoration:none; }
.l-contact-lines a:hover { color:var(--l-accent); text-decoration:underline; text-decoration-thickness:1px; }
.l-form { grid-column:8 / 13; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px var(--l-gap); }
.l-form .full, .l-form .submit, .l-form .status { grid-column:1 / -1; }
.l-form .honeypot { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.l-form label { display:block; margin-bottom:6px; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.4; }
.l-form :is(input,select,textarea) { display:block; width:100%; min-height:50px; padding:12px 14px; border:1px solid #87919a; border-radius:0; background:var(--l-paper); color:var(--l-ink); line-height:1.4; }
.l-form textarea { min-height:132px; resize:vertical; }
.l-form :is(input,select,textarea):focus-visible { outline:2px solid var(--l-accent); outline-offset:1px; border-color:var(--l-accent); }
.l-form ::placeholder { color:#727c86; opacity:1; }
.l-form .submit { display:grid; gap:12px; justify-items:start; }
.l-form .submit button { display:inline-flex; align-items:center; min-height:54px; padding:0 0 0 24px; border:0; border-radius:0; background:var(--l-ink); color:#fff; font-weight:600; letter-spacing:.005em; transition:background-color .2s ease; }
.l-form .submit button::after { content:'→'; align-self:stretch; display:grid; place-items:center; width:54px; margin-left:24px; background:var(--l-gold); color:var(--l-ink); transition:background-color .2s ease,color .2s ease; }
.l-form .submit button:hover { background:var(--l-gold); color:var(--l-ink); }
.l-form .submit button:hover::after { background:var(--l-ink); color:var(--l-gold); }
.l-form .submit button[disabled] { opacity:.6; cursor:default; }
.l-form .submit small { color:var(--l-muted); font-size:var(--l-t-small); }
.l-form .status:empty { display:none; }
.l-form .status { padding:14px 16px; border:1px solid var(--l-line); background:var(--l-paper); }
.l-form .status.err { border-color:var(--l-accent); }
.l-form .status a { margin-left:4px; }
.l-contact-grid > noscript { grid-column:8 / 13; }

/* ---------- Otwarcia podstron ---------- */
.l-open { padding-top:clamp(40px,5.5vw,80px); }
.l-open-top { align-items:end; row-gap:24px; padding-bottom:clamp(32px,4vw,56px); }
.l-open-title { grid-column:1 / 8; }
.l-open-name { margin-bottom:20px; color:var(--l-muted); }
.l-open h1 { font-size:var(--l-t-display); line-height:1.04; letter-spacing:-.015em; }
.l-open-side { grid-column:8 / 13; display:grid; gap:24px; padding-bottom:6px; }
.l-band { margin:0; }
.l-band img { width:100%; height:clamp(220px,34vw,460px); object-fit:cover; background:var(--l-wash); }
.l-band.is-drawing { background:var(--l-wash); }
.l-band.is-drawing > :is(img,svg) { width:calc(100% - 2 * var(--l-gutter)); max-width:880px; height:auto; margin-inline:auto; object-fit:contain; background:none; }
.l-band figcaption { width:calc(100% - 2 * var(--l-gutter)); max-width:var(--l-max); margin-inline:auto; padding-top:14px; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.55; }
.l-band.is-drawing figcaption { padding-block:0 20px; }
.l-open + .l-stage { margin-top:clamp(32px,4vw,56px); }
.l-domains { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:var(--l-gap); margin-block:clamp(40px,5vw,64px) 0; }
.l-domains a { display:flex; align-items:baseline; gap:12px; min-height:64px; padding:16px 0; border-top:1px solid var(--l-ink); line-height:1.35; text-decoration:none; }
.l-domains a:hover { color:var(--l-accent); }
.l-domains a span:first-child { color:var(--l-accent); font-weight:500; }

/* ---------- Dokument: spis i rozdziały ---------- */
.l-doc { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:var(--l-gap); align-items:start; padding-block:clamp(56px,7vw,96px) var(--l-space); }
.l-toc { grid-column:1 / 4; position:sticky; top:104px; display:grid; max-height:calc(100vh - 128px); overflow:auto; font-size:var(--l-t-small); line-height:1.4; }
.l-toc strong { margin-bottom:12px; color:var(--l-muted); font-weight:400; }
.l-toc a { padding:9px 0 9px 14px; border-left:1px solid var(--l-line); color:var(--l-muted); text-decoration:none; }
.l-toc a:hover { color:var(--l-ink); }
.l-toc a[aria-current] { border-left-color:var(--l-accent); box-shadow:inset 1px 0 0 var(--l-accent); color:var(--l-ink); font-weight:500; }
.l-doc-body { grid-column:4 / 13; min-width:0; }
.l-doc-sec { padding-top:28px; border-top:1px solid var(--l-ink); }
.l-doc-sec + .l-doc-sec, .l-doc-aside + .l-doc-sec, .l-doc-sec + .l-doc-aside { margin-top:clamp(64px,8vw,104px); }
.l-doc-sec > h2 { max-width:22ch; margin-bottom:20px; font-size:var(--l-t-title); line-height:1.1; letter-spacing:-.012em; }
.l-doc-sec > h2 .l-code { color:var(--l-accent); }
.l-doc-sec > .l-lead { max-width:62ch; margin-bottom:36px; }
.l-doc-sec > p:not(.l-lead) { max-width:68ch; margin-bottom:28px; }
.l-doc-sec > .l-link { margin-top:24px; }
.l-rules { border-bottom:1px solid var(--l-line); }
.l-rule { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:8px var(--l-gap); padding:24px 0; border-top:1px solid var(--l-line); }
.l-rule > h3 { grid-column:1 / 4; }
.l-rule > :is(p,div) { grid-column:4 / 10; }
.l-rule > div > p + p { margin-top:14px; }
.l-rule-code { display:block; color:var(--l-accent); }
.l-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:var(--l-gap); row-gap:32px; }
.l-facts > div { display:grid; align-content:start; gap:12px; padding-top:20px; border-top:1px solid var(--l-ink); }
.l-facts dt { font-size:var(--l-t-title); line-height:1.1; letter-spacing:-.012em; white-space:nowrap; }
.l-facts dd { line-height:1.5; }
.l-facts .src { display:block; margin-top:10px; color:var(--l-muted); font-size:var(--l-t-small); }
.l-doc-figure { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); column-gap:var(--l-gap); align-items:end; margin-top:8px; }
.l-doc-figure img { grid-column:1 / 5; width:100%; }
.l-doc-figure figcaption { grid-column:5 / 10; color:var(--l-muted); font-size:var(--l-t-small); }
.l-doc .l-sheet-figure { margin-top:48px; }
.l-doc-aside { display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:8px var(--l-gap); align-items:baseline; padding:28px; background:var(--l-wash); }
.l-doc-aside h3 { grid-column:1 / 4; }
.l-doc-aside > div { grid-column:4 / 10; display:grid; gap:12px; justify-items:start; }
.l-doc-sec > .l-doc-aside { margin-top:40px; }
.l-programs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:var(--l-gap); row-gap:32px; margin-block:40px 24px; }
.l-programs a { display:grid; align-content:start; gap:10px; padding-top:20px; border-top:1px solid var(--l-ink); text-decoration:none; }
.l-programs a > span:first-child { color:var(--l-muted); font-size:var(--l-t-small); }
.l-programs h3 { font-size:var(--l-t-title); font-weight:var(--l-head-w); font-stretch:var(--l-head-s); line-height:1.08; letter-spacing:-.012em; }
.l-programs a > span:last-child { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.3em; }
.l-programs a:hover h3 { color:var(--l-accent); }
.l-faq .l-fold-body { max-width:68ch; }

/* ---------- Poradnik ---------- */
.l-feature { align-items:end; row-gap:24px; padding-top:28px; border-top:1px solid var(--l-ink); }
.l-feature-figure { grid-column:1 / 8; }
.l-feature-figure img { width:100%; }
.l-feature-figure figcaption { margin-top:12px; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.55; }
.l-feature-copy { grid-column:8 / 13; display:grid; gap:20px; justify-items:start; }
.l-feature-copy h2 { font-size:var(--l-t-title); line-height:1.1; letter-spacing:-.012em; }
.l-feature-copy h2 a { text-decoration:none; }
.l-feature-copy h2 a:hover { color:var(--l-accent); }
.l-entries { border-bottom:1px solid var(--l-line); }
.l-entry { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px var(--l-gap); align-items:start; padding:32px 0; border-top:1px solid var(--l-line); }
.l-entry-figure { grid-column:1 / 4; }
.l-entry-figure img { width:100%; aspect-ratio:3 / 2; object-fit:cover; background:var(--l-wash); }
.l-entry-figure figcaption { margin-top:8px; color:var(--l-muted); font-size:var(--l-t-small); line-height:1.5; }
.l-entry-copy { grid-column:4 / 11; display:grid; gap:12px; }
.l-entry-copy h3 a { text-decoration:none; }
.l-entry-copy h3 a:hover { color:var(--l-accent); text-decoration:underline; text-decoration-thickness:1px; }
.l-entry-copy > p:not(.l-small) { color:var(--l-muted); }
.l-entry-go { grid-column:12 / 13; justify-self:end; font-size:1.5rem; line-height:1.2; text-decoration:none; }
.l-entry-go:hover { color:var(--l-accent); }

/* ---------- Mniejsze ekrany ---------- */
@media (max-width:980px) {
  .l-head h2, .l-head > p { grid-column:1 / -1; }
  .l-head > p + p { margin-top:0; }
  .l-hero-title, .l-hero-side, .l-open-title, .l-open-side { grid-column:1 / -1; }
  .l-hero-side { max-width:44rem; }
  .l-stage-label { grid-column:1 / -1; }
  .l-stage-text { grid-column:1 / 10; }
  .l-stage-link { grid-column:10 / 13; }
  .l-areas-figure, .l-areas-panels, .l-sheet-figure, .l-report-side, .l-pick-figure, .l-pick-copy { grid-column:1 / -1; }
  .l-areas-figure { position:static; }
  .l-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .l-step h3 { min-height:0; }
  .l-passport-sources, .l-passport-doc, .l-passport-notes, .l-passport-caption { grid-column:1 / -1; }
  .l-passport-doc { min-height:300px; }
  .l-passport-doc::before { top:calc(-1 * 32px); left:28px; width:1px; height:32px; }
  .l-plan-figure { grid-column:1 / 6; }
  .l-plan-list, .l-plan-more { grid-column:6 / 13; }
  .l-row-title { grid-column:1 / 12; }
  .l-row-text { grid-column:1 / 12; }
  .l-row-go { grid-row:1; }
  .l-contact-info, .l-form, .l-contact-grid > noscript { grid-column:1 / -1; }
  .l-doc { display:block; }
  .l-toc { position:static; max-height:none; margin-bottom:56px; padding:20px; background:var(--l-wash); grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:var(--l-gap); }
  .l-toc strong { grid-column:1 / -1; }
  .l-feature-figure, .l-feature-copy { grid-column:1 / -1; }
  .l-entry-figure { grid-column:1 / 5; }
  .l-entry-copy { grid-column:5 / 12; }
  .l-compare figcaption > * { grid-column:1 / -1 !important; }
}
@media (max-width:640px) {
  html { scroll-padding-top:80px; }
  .l-stage-text, .l-stage-link { grid-column:1 / -1; justify-self:start; }
  /* Telefon: nagłówek, lead, przycisk i fragment fotografii mieszczą się na pierwszym ekranie. */
  .l-hero { padding-top:28px; }
  .l-hero-top { row-gap:20px; padding-bottom:28px; }
  .l-hero-name { margin-bottom:12px; font-size:var(--l-t-small); }
  .l-hero-side { gap:20px; }
  .l-compare-knob, .l-compare-range { width:48px; height:48px; }
  .l-compare-tag { bottom:12px; }
  .l-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .l-tab { min-height:56px; padding:12px 0 14px; flex-direction:column; align-items:flex-start; gap:8px; }
  .l-tabs.has-icons .l-tab { align-items:flex-start; }
  .l-sheet thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .l-sheet :is(table,tbody,tr,th,td) { display:block; width:auto; }
  .l-sheet tbody th { width:auto; }
  .l-sheet tbody tr { padding:16px 0; border-top:1px solid var(--l-line); }
  .l-sheet tbody :is(th,td) { padding:3px 0; border:0; }
  .l-sheet tbody td { display:grid; grid-template-columns:8.5em minmax(0,1fr); gap:12px; }
  .l-sheet tbody td::before { content:attr(data-label); color:var(--l-muted); font-size:var(--l-t-small); }
  .l-state { white-space:normal; }
  .l-findings { grid-template-columns:minmax(0,1fr); }
  .l-steps { grid-template-columns:minmax(0,1fr); }
  .l-passport-sources { grid-template-columns:minmax(0,1fr); }
  .l-plan-figure, .l-plan-list, .l-plan-more { grid-column:1 / -1; }
  .l-plan-figure img { max-width:280px; }
  .l-contact-lines { font-size:var(--l-t-lead); }
  .l-form { grid-template-columns:minmax(0,1fr); }
  .l-domains { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .l-toc { grid-template-columns:minmax(0,1fr); }
  .l-rule, .l-doc-aside, .l-doc-figure { grid-template-columns:minmax(0,1fr); }
  .l-rule > *, .l-doc-aside > *, .l-doc-figure > * { grid-column:1 / -1 !important; }
  .l-doc-aside { padding:20px; }
  .l-doc-figure img { max-width:280px; margin-bottom:12px; }
  .l-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .l-programs { grid-template-columns:minmax(0,1fr); }
  .l-entry-figure, .l-entry-copy { grid-column:1 / -1; }
  .l-entry-go { display:none; }
}

@media (max-width:380px) {
  .l-sheet tbody td { grid-template-columns:minmax(0,1fr); gap:2px; }
}

/* ---------- Ograniczony ruch i wydruk ---------- */
@media (prefers-reduced-motion:reduce) {
  .linia *, .linia *::before, .linia *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}
@media print {
  body.linia > nav, .l-tabs, .l-compare-ui, .l-form, .l-toc, .l-key-count { display:none !important; }
  .linia [role="tabpanel"][hidden], .l-pick-panel[hidden], .l-area[hidden] { display:grid !important; }
  .l-sec.l-deep { background:none; color:var(--l-ink); }
  .l-compare.is-ready .l-compare-stage { height:auto; }
  .l-compare.is-ready .l-compare-stage img { position:static; height:auto; aspect-ratio:2000 / 1124; clip-path:none; }
  .l-sheet tbody tr.is-dim { opacity:1; }
  .l-areas-figure { position:static; }
}
.l-stage + .l-wrap > .l-domains { margin-top:clamp(32px,4vw,48px); }
