/* =====================================================================
   BRAMY I OGRODZENIA · cały wygląd szablonu w jednym pliku
   Kolory marki i czcionki: tylko w :root poniżej.
   Charakter branży: grafit + miedziana kreska (rysunek techniczny),
   konfigurator jak salon: jasne studio, spokojne tło, miękki cień.
   ===================================================================== */
:root {
  --miedz: #E39A63;            /* akcent: kreska rysunku, przyciski */
  --miedz-ciemna: #B8682F;
  --miedz-jasna: #F2B98A;
  --grafit-950: #0c1016;
  --grafit-900: #11161d;
  --grafit-800: #19202a;
  --grafit-700: #252e3b;
  --grafit-600: #364252;
  --papier: #f5f3ef;
  --papier-2: #ebe8e2;
  --bialy: #ffffff;
  --tekst: #141a22;
  --szary: #5c6571;
  --szary-jasny: #a3adba;
  --linia: #dedad2;
  --studio-1: #f4f3f0;         /* tło studia: środek */
  --studio-2: #d9d7d2;         /* tło studia: brzegi */
  --f-tekst: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --szer: 1360px;
  --r: 14px;
  --cien: 0 1px 2px rgba(17, 22, 29, .06), 0 8px 24px -12px rgba(17, 22, 29, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; font: 400 16px/1.55 var(--f-tekst); color: var(--tekst); background: var(--papier); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.mono { font-family: var(--f-mono); }
.kontener { width: 100%; max-width: var(--szer); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--miedz); outline-offset: 2px; }
.etyk { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--miedz); }
.etyk-kreska { width: 28px; height: 7px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }

/* ---------------- góra ---------------- */
.gl { background: var(--grafit-900); color: #e8ecf1; position: relative; z-index: 6; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.gl-w { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo-znak { flex: none; width: 42px; height: 42px; border: 1px solid rgba(var(--miedz-rgb, 227, 154, 99), .45); border-radius: 4px; display: grid; place-items: center; }
.logo-znak svg { width: 26px; height: 26px; fill: none; stroke: var(--miedz); stroke-width: 1.6; }
.logo-znak rect { fill: var(--miedz); stroke: none; }
.logo-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.logo-t strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-t small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--szary-jasny); margin-top: 4px; white-space: nowrap; }
.gl-tel { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px 18px 8px 8px; border: 1px solid rgba(var(--miedz-rgb, 227, 154, 99), .35); border-radius: 999px; transition: border-color .2s, background .2s; }
.gl-tel:hover { border-color: var(--miedz); background: rgba(var(--miedz-rgb, 227, 154, 99), .08); }
.gl-tel-ik { width: 36px; height: 36px; border-radius: 50%; background: var(--miedz); display: grid; place-items: center; flex: none; }
.gl-tel-ik svg { width: 17px; height: 17px; fill: var(--grafit-950); }
.gl-tel-t { display: flex; flex-direction: column; line-height: 1.15; }
.gl-tel-t small { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--szary-jasny); }
.gl-tel-t strong { font-size: 16px; font-weight: 600; white-space: nowrap; }

.otwarcie { position: relative; background: radial-gradient(120% 140% at 80% 0%, #1d2531 0%, var(--grafit-900) 46%, var(--grafit-950) 100%); color: #eef1f4; overflow: hidden; }
.otwarcie::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); pointer-events: none; }
.otwarcie-w { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; min-height: 236px; }
.otwarcie-t { padding: 26px 0 30px; }
.otwarcie h1 { margin: 14px 0 12px; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; }
.otwarcie h1 em { font-style: normal; color: var(--miedz); }
.otwarcie-pod { margin: 0; font-size: 11.5px; letter-spacing: .08em; color: var(--szary-jasny); }
.miedz { width: 100%; height: 236px; }

/* ---------------- konfigurator ---------------- */
.konfigurator { background: var(--papier); border-bottom: 1px solid var(--linia); }
.kf { display: grid; grid-template-columns: minmax(0, 1fr) 470px; align-items: start; max-width: 1600px; margin: 0 auto; }
.kf[data-ekran="dziekujemy"] { grid-template-columns: minmax(0, 1fr) 470px; }
.kf-scena { position: sticky; top: 0; height: max(560px, min(100svh, 900px)); padding: 12px 0 12px 12px; }
.st { position: relative; height: 100%; border-radius: 18px; overflow: hidden; background: radial-gradient(90% 75% at 50% 42%, var(--studio-1) 0%, #e8e6e2 55%, var(--studio-2) 100%); isolation: isolate; transition: background .8s; }
.st::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(transparent, rgba(0,0,0,.035)); pointer-events: none; z-index: 0; }
.st[data-jasny="1"]:not([data-pora="wieczor"]) { background: radial-gradient(90% 75% at 50% 40%, #6b737c 0%, #474e56 55%, #2f343a 100%); }
.st[data-jasny="1"]:not([data-pora="wieczor"])[data-tryb="3d"] .st-tytul { background: rgba(28,33,40,.6); color: #dde3ea; }
.st[data-jasny="1"]:not([data-pora="wieczor"]) .st-podpowiedz { color: #b9c0c8; }
.kf-gora { display: flex; justify-content: flex-end; margin: -4px 0 2px; }
.kf-nowy { border: 0; background: none; padding: 6px 2px; min-height: 32px; font: inherit; font-size: 13px; color: var(--tekst-2, #6b6f75); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.kf-nowy:hover { color: var(--miedz); }
.st[data-pora="wieczor"] { background: radial-gradient(90% 75% at 50% 40%, #2a313b 0%, #161b22 60%, #0b0e13 100%); }
.st-3d, .st-2d { position: absolute; inset: 0; z-index: 1; }
.st-3d canvas { width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.st-3d canvas:active { cursor: grabbing; }
.st-2d { display: grid; place-items: center; padding: 64px 22px 84px; background: #fbfaf7; opacity: 0; transition: opacity .35s; pointer-events: none; }
.st-2d svg { width: 100%; height: 100%; max-height: 100%; }
.st[data-tryb="2d"] .st-2d { opacity: 1; pointer-events: auto; z-index: 2; }
.st[data-tryb="2d"] .st-3d { visibility: hidden; }
.st-gora { position: absolute; z-index: 4; top: 14px; left: 16px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.st-tytul { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #4c5561; padding: 8px 12px; background: rgba(255,255,255,.72); backdrop-filter: blur(8px); border-radius: 999px; max-width: 64%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st[data-pora="wieczor"][data-tryb="3d"] .st-tytul { background: rgba(20,25,32,.66); color: #c9d1db; }
.st-tryb, .st-pora { pointer-events: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.8); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.st-tryb button, .st-pora button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #4c5561; min-height: 36px; }
.st-tryb button[aria-pressed="true"], .st-pora button[aria-pressed="true"] { background: var(--grafit-900); color: #fff; }
.st-tryb button:disabled { opacity: .4; cursor: not-allowed; }
.st-dol { position: absolute; z-index: 4; left: 16px; right: 16px; top: 64px; display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; }
.st-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 10px 16px 10px 12px; min-height: 44px; border-radius: 999px; background: rgba(255,255,255,.86); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; color: var(--tekst); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 6px 18px -10px rgba(0,0,0,.25); transition: transform .15s, background .2s; }
.st-btn:hover { transform: translateY(-1px); background: #fff; }
.st-otworz { background: var(--grafit-900); color: #fff; }
.st-otworz:hover { background: var(--grafit-800); }
.st-ik { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--miedz); }
.st-ik::before { content: ""; width: 10px; height: 8px; border: 1.5px solid var(--grafit-950); border-top-width: 0; border-bottom-width: 0; background: linear-gradient(var(--grafit-950), var(--grafit-950)) center/100% 1.5px no-repeat; }
.st-ik-foto { background: var(--papier-2); }
.st-ik-foto::before { width: 11px; height: 8px; border: 1.5px solid var(--tekst); border-radius: 2px; background: radial-gradient(circle, var(--tekst) 1.4px, transparent 1.6px); }
.st-miejsce { position: absolute; z-index: 4; left: 50%; top: 122px; transform: translateX(-50%); margin: 0; max-width: min(92%, 560px); padding: 10px 16px; border-radius: 12px; background: rgba(17,22,29,.88); color: #f3e2d3; font-size: 14px; line-height: 1.4; text-align: center; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); border: 1px solid rgba(var(--miedz-rgb, 227, 154, 99),.35); animation: wejscie .35s ease; }
.st-podpowiedz { position: absolute; z-index: 3; right: 18px; top: 76px; font-size: 10.5px; letter-spacing: .1em; color: #7a828d; pointer-events: none; transition: opacity .6s; }
.st[data-tryb="2d"] .st-podpowiedz, .st[data-tryb="2d"] .st-pora { display: none; }
.st[data-pora="wieczor"] .st-podpowiedz { color: #6c7583; }
.st-laduje { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--szary); padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.8); }
.st-laduje::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border: 1.5px solid var(--miedz); border-right-color: transparent; border-radius: 50%; animation: kreci 1s linear infinite; vertical-align: -1px; }
@keyframes kreci { to { transform: rotate(360deg); } }
@keyframes wejscie { from { opacity: 0; transform: translate(-50%, -8px); } }

/* panel kroków */
.kf-panel { position: relative; z-index: 1; isolation: isolate; display: flex; flex-direction: column; min-height: max(560px, min(100svh, 900px)); padding: 18px 28px 0 30px; }
.kf-postep ol { list-style: none; margin: 0 0 4px; padding: 0 0 12px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; position: relative; }
.kf-postep ol::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: var(--miedz); transition: width .4s; }
.kf-postep ol::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--linia); }
.kf-postep button { width: 100%; border: 0; background: none; padding: 6px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 44px; }
.kf-postep button:disabled { cursor: default; }
.kf-nr { font-size: 10.5px; color: var(--szary-jasny); letter-spacing: .06em; }
.kf-postep-n { font-size: 12.5px; font-weight: 600; color: var(--szary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
[data-stan="biezacy"] .kf-nr, [data-stan="zrobiony"] .kf-nr { color: var(--miedz-ciemna); }
[data-stan="biezacy"] .kf-postep-n { color: var(--tekst); }
[data-stan="przyszly"] .kf-postep-n { color: #9aa2ad; }
.kf-krok { flex: 1; outline: none; padding-bottom: 20px; }
.kf-krok-n { padding: 14px 0 12px; }
.kf-krok-nr { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--miedz-ciemna); }
.kf-krok-h { margin: 4px 0 0; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.kf-rada { margin: 6px 0 0; font-size: 11px; color: var(--miedz-ciemna); letter-spacing: .08em; }
.kf-wejscie-p { animation: krokP .4s cubic-bezier(.2,.7,.2,1); }
.kf-wejscie-t { animation: krokT .4s cubic-bezier(.2,.7,.2,1); }
@keyframes krokP { from { opacity: 0; transform: translateX(18px); } }
@keyframes krokT { from { opacity: 0; transform: translateX(-18px); } }

/* doradca */
.kf-doradca { margin: 0 0 18px; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--bialy); border-radius: var(--r); box-shadow: var(--cien); border: 1px solid #ece9e3; }
.kf-twarz { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; }
.kf-twarz img { width: 100%; height: 100%; object-fit: cover; }
.kf-twarz svg { width: 100%; height: 100%; }
.tw-tlo { fill: var(--grafit-900); }
.tw-k { fill: none; stroke: var(--miedz); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.kf-doradca figcaption { min-width: 0; }
.kf-doradca-kto { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--szary); margin-bottom: 3px; }
.kf-doradca-t { display: block; font-size: 15px; line-height: 1.45; quotes: "„" "”"; color: var(--tekst); }
.kf-mowi .kf-doradca-t { animation: mowi .45s ease; }
@keyframes mowi { from { opacity: 0; transform: translateY(4px); } }

/* pola */
.kf-etyk { display: block; font-size: 11px; font-family: var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--szary); margin: 18px 0 8px; }
.kf-krok-t > .kf-etyk:first-child, .kf-krok-t > .kf-grupa:first-child .kf-etyk { margin-top: 2px; }
.kf-kafle { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kf-k3 { grid-template-columns: repeat(3, 1fr); }
.kf-kafel { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 12px 14px 13px; border: 1px solid var(--linia); border-radius: var(--r); background: var(--bialy); transition: border-color .2s, box-shadow .2s, transform .15s; min-height: 44px; }
.kf-kafel:hover { border-color: #c9c3b8; transform: translateY(-1px); }
.kf-kafel[aria-checked="true"] { border-color: var(--grafit-900); box-shadow: inset 0 0 0 1px var(--grafit-900), var(--cien); }
.kf-ikona { width: 100%; height: 44px; color: #8a929c; margin-bottom: 8px; }
.kf-ikona svg { height: 100%; width: auto; }
.kf-kafel[aria-checked="true"] .kf-ikona { color: var(--miedz-ciemna); }
.kf-nazwa { font-weight: 650; font-size: 15px; line-height: 1.2; }
.kf-opis { font-size: 12.5px; color: var(--szary); margin-top: 2px; line-height: 1.3; }
.kf-polecane { position: absolute; top: 10px; right: 10px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--miedz-ciemna); }
.kf-k3 .kf-kafel { padding: 10px 10px 11px; }
.kf-k3 .kf-ikona { height: 36px; }
.kf-k3 .kf-polecane { position: static; order: -1; margin: -2px 0 4px; }
.kf-segment { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; padding: 3px; border-radius: 12px; background: var(--papier-2); }
.kf-segment button { border: 0; background: transparent; border-radius: 9px; padding: 9px 6px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--szary); transition: background .2s, color .2s; }
.kf-segment button[aria-checked="true"] { background: var(--bialy); color: var(--tekst); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px -4px rgba(0,0,0,.2); }
.kf-segment button:disabled { opacity: .35; cursor: not-allowed; }
.kf-segment small { display: block; font-size: 11px; font-weight: 400; color: var(--szary); }
.kf-wiersz { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linia); min-height: 56px; }
.kf-wiersz-t { display: flex; flex-direction: column; min-width: 0; }
.kf-wiersz-t strong { font-size: 15px; font-weight: 600; }
.kf-wiersz-t small { font-size: 12.5px; color: var(--szary); }
.kf-licznik { display: flex; align-items: center; gap: 4px; flex: none; }
.kf-licznik button, .kf-liczba button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linia); background: var(--bialy); font-size: 20px; line-height: 1; }
.kf-licznik button:hover, .kf-liczba button:hover { border-color: var(--grafit-900); }
.kf-licznik output { min-width: 30px; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.kk-przelacz { cursor: pointer; position: relative; }
.kk-przelacz input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kf-tor { flex: none; width: 46px; height: 28px; border-radius: 999px; background: #cfcac1; position: relative; transition: background .2s; }
.kf-tor::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.kk-przelacz input:checked + .kf-tor { background: var(--grafit-900); }
.kk-przelacz input:checked + .kf-tor::after { transform: translateX(18px); background: var(--miedz-jasna); }
.kk-przelacz input:focus-visible + .kf-tor { outline: 2px solid var(--miedz); outline-offset: 2px; }
.kf-liczba-g { padding: 2px 0 4px; }
.kf-liczba { display: flex; align-items: center; gap: 10px; }
.kf-liczba-pole { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 4px 10px; border-bottom: 1px solid var(--linia); }
.kf-liczba-pole input { width: 4.2ch; border: 0; background: transparent; text-align: right; font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding: 0; -moz-appearance: textfield; }
.kf-liczba-pole input::-webkit-outer-spin-button, .kf-liczba-pole input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kf-liczba-pole input:focus { outline: none; }
.kf-liczba-pole span { font-size: 15px; color: var(--szary); font-weight: 600; }
.kf-suwak { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 8px 0 2px; }
.kf-suwak::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--miedz) var(--p), var(--linia) var(--p)); }
.kf-suwak::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--miedz) var(--p), var(--linia) var(--p)); }
.kf-suwak::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9.5px; border-radius: 50%; background: var(--bialy); border: 2px solid var(--grafit-900); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.kf-suwak::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bialy); border: 2px solid var(--grafit-900); }
.kf-zakres { display: block; font-size: 11px; color: var(--szary); letter-spacing: .02em; }

/* wachlarz kart RAL */
.kf-wachlarz { position: relative; z-index: 0; isolation: isolate; height: 222px; margin: 4px 0 0; }
.kf-karta { --kat: calc((var(--i) - (var(--n) - 1) / 2) * 8.5deg); position: absolute; left: calc(50% - 32px); bottom: 26px; width: 64px; height: 180px; border: 0; padding: 0; border-radius: 7px; background: var(--k); color: var(--t); transform-origin: 50% 132%; transform: rotate(var(--kat)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1px rgba(0,0,0,.08), -5px 8px 16px -10px rgba(0,0,0,.5); transition: transform .45s cubic-bezier(.2,.8,.2,1.15), box-shadow .3s; z-index: var(--i); overflow: hidden; }
.kf-karta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: rgba(255,255,255,.9); }
.kf-karta-kod { position: absolute; left: 7px; top: 10px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9.5px; letter-spacing: .08em; line-height: 1; opacity: .9; white-space: nowrap; }
.kf-karta-nazwa { position: absolute; left: 6px; bottom: 5px; z-index: 1; font-size: 8.5px; font-weight: 700; letter-spacing: .02em; color: #2a2f35; white-space: nowrap; text-transform: uppercase; }
.kf-karta:hover { transform: rotate(var(--kat)) translateY(-10px); }
.kf-karta[aria-checked="true"] { transform: rotate(var(--kat)) translateY(-28px); box-shadow: 0 0 0 2px var(--grafit-900), 0 18px 30px -14px rgba(0,0,0,.55); z-index: 15; }
.kf-karta-drewno { background: repeating-linear-gradient(94deg, #a86f3b 0 5px, #93602f 5px 7px, #b67c45 7px 12px, #9c6634 12px 14px); }
.kf-karta-metal { background: linear-gradient(135deg, #c7ccd0, #9aa1a7 45%, #d6dadd 60%, #a7adb2); }
.kf-wachlarz-os { position: absolute; left: calc(50% - 7px); bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #b8bec5 60%, #7f868e); box-shadow: 0 1px 3px rgba(0,0,0,.3); z-index: 20; }
.kf-faktura { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; margin-top: 10px; }
.kf-lupa { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 0 0 5px var(--bialy), 0 0 0 6px var(--linia), 0 14px 26px -12px rgba(0,0,0,.45); }
.kf-wybrany { display: block; font-size: 16px; }
.kf-wybrany .mono { font-size: 12px; color: var(--szary); }
.kf-faktura .kf-etyk { margin-top: 8px; }
.kf-segment-pion button { font-size: 13px; padding: 7px 4px; line-height: 1.2; }

/* karta projektu */
.kf-spec { margin: 0 0 14px; padding: 2px 16px; background: var(--bialy); border: 1px solid #ece9e3; border-radius: var(--r); }
.kf-spec div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #efece6; }
.kf-spec div:last-child { border-bottom: 0; }
.kf-spec dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--szary); padding-top: 3px; }
.kf-spec dd { margin: 0; font-size: 14px; line-height: 1.4; }
.kf-cena { display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--r); background: var(--grafit-900); color: #fff; margin: 0 0 12px; }
.kf-cena span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--miedz-jasna); }
.kf-cena strong { font-size: 26px; }
.kf-cena small { color: var(--szary-jasny); }
.kf-pdf { width: 100%; justify-content: center; margin-bottom: 6px; }
.kf-pracuje { opacity: .6; pointer-events: none; }
.kf-formularz .kf-etyk { margin-top: 14px; }
.kf-pola2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.kf-pole { display: flex; flex-direction: column; margin-bottom: 8px; }
.kf-cale { grid-column: 1 / -1; }
/* salon po kodzie pocztowym (24.11.2026) */
.kf-salon { grid-column: 1 / -1; margin: -2px 0 10px; padding: 9px 12px; border-radius: 10px; background: rgba(var(--miedz-rgb, 227, 154, 99), .12); font-size: 13.5px; line-height: 1.4; }
.kf-salon b { font-weight: 700; }
.kf-salon-dzieki { display: inline-block; margin: 4px 0 8px; }
.kf-pole label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.kf-pole input, .kf-pole select, .kf-pole textarea { width: 100%; border: 1px solid var(--linia); border-radius: 10px; background: var(--bialy); padding: 10px 12px; min-height: 46px; font-size: 16px; }
.kf-pole input:focus, .kf-pole select:focus, .kf-pole textarea:focus { outline: none; border-color: var(--grafit-900); box-shadow: 0 0 0 3px rgba(var(--miedz-rgb, 227, 154, 99),.25); }
.kf-zle input, .kf-zle select { border-color: #b3261e; }
.kf-blad { font-size: 12.5px; color: #b3261e; min-height: 0; }
.kf-blad:empty { display: none; }
.kf-wiecej { margin: 4px 0 10px; }
.kf-wiecej summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 10px 0; min-height: 44px; color: var(--szary); }
.kf-plik { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed #c9c3b8; border-radius: 12px; cursor: pointer; background: var(--bialy); }
.kf-plik input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kf-plik-ik { width: 36px; height: 36px; border-radius: 50%; background: var(--papier-2); display: grid; place-items: center; font-size: 20px; flex: none; }
.kf-plik span { display: flex; flex-direction: column; font-size: 14px; }
.kf-plik small { color: var(--szary); font-size: 12.5px; }
.kf-zdjecie-ok { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--linia); border-radius: 12px; background: var(--bialy); }
.kf-zdjecie-ok img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.kf-zdjecie-ok span { flex: 1; display: flex; flex-direction: column; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kf-zdjecie-ok small { color: var(--szary); }
.kf-maly { border: 1px solid var(--linia); background: none; border-radius: 999px; padding: 8px 14px; min-height: 44px; }
.kf-zgoda { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--szary); cursor: pointer; padding: 8px 0; min-height: 44px; }
.kf-zgoda input { width: 20px; height: 20px; accent-color: var(--grafit-900); margin: 1px 0 0; flex: none; }

/* nawigacja */
.kf-nav { pointer-events: none; position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 14px 0 18px; background: var(--papier); }
.kf-nav > * { pointer-events: auto; }
.kf-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--linia); background: var(--bialy); border-radius: 999px; padding: 12px 20px; min-height: 50px; font-weight: 650; font-size: 15px; color: var(--tekst); transition: background .2s, border-color .2s, transform .15s; }
.kf-btn:hover { border-color: var(--grafit-900); }
.kf-wstecz { width: 50px; padding: 0; justify-content: center; font-size: 18px; }
.kf-tekst { border-color: transparent; background: transparent; padding: 12px 10px; color: var(--szary); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--miedz); font-weight: 600; }
.kf-tekst:hover { border-color: transparent; color: var(--tekst); }
.kf-krotki { display: none; }
.kf-glowny { white-space: nowrap; margin-left: auto; background: var(--grafit-900); border-color: var(--grafit-900); color: #fff; padding: 12px 24px; }
.kf-glowny:hover { background: var(--grafit-700); border-color: var(--grafit-700); transform: translateY(-1px); }
.kf-glowny span[aria-hidden] { color: var(--miedz-jasna); }
.kf[data-krok="kontakt"] .kf-glowny span[aria-hidden] { color: var(--grafit-950); }
.kf-glowny:disabled { opacity: .6; }
.kf[data-krok="kontakt"] .kf-glowny { background: var(--miedz); border-color: var(--miedz); color: var(--grafit-950); }
.kf[data-krok="kontakt"] .kf-glowny:hover { background: var(--miedz-jasna); }

/* dziękujemy */
.kf-dzieki { padding: 40px 30px; outline: none; }
.kf-dzieki-ik svg { width: 56px; height: 56px; fill: none; stroke: var(--miedz-ciemna); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kf-dzieki h2 { font-size: 32px; letter-spacing: -.02em; margin: 14px 0 8px; }
.kf-dzieki p { color: var(--szary); margin: 0 0 8px; }
.kf-szary { font-size: 12px; letter-spacing: .08em; }
.kf-dzieki-btn { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.kf-dzieki-btn .kf-glowny { margin-left: 0; }
.kf-json { margin-top: 18px; font-size: 12px; }
.kf-json pre { white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; background: var(--bialy); padding: 12px; border-radius: 10px; }
.kf-toast { position: fixed; z-index: 40; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; background: var(--grafit-900); color: #fff; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); max-width: calc(100% - 32px); }

/* ---------------- sekcje pod konfiguratorem ---------------- */
.sekcja { padding: 72px 0; }
.sekcja-papier { background: var(--papier-2); }
.sekcja-ciemna { background: var(--grafit-900); color: #eef1f4; }
.sekcja-n { margin-bottom: 28px; }
.sekcja-n h2 { margin: 10px 0 0; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.025em; line-height: 1.05; }
.realizacje { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.realizacje figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--bialy); box-shadow: var(--cien); }
.realizacje img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--papier-2); }
.realizacje figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.realizacje figcaption span { font-size: 11.5px; color: var(--szary); letter-spacing: .04em; }
.uwaga-szablon { font-size: 11px; color: var(--szary); margin: 16px 0 0; letter-spacing: .04em; }
.pytania-w { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; }
.faq details { border-bottom: 1px solid #d6d1c7; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-size: 18px; font-weight: 650; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--miedz-ciemna); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 18px; color: var(--szary); max-width: 62ch; }
.kontakt-w { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: end; }
.kontakt-w .sekcja-n { margin: 0; }
.kontakt-dane { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--r); overflow: hidden; }
.kontakt-dane > * { background: var(--grafit-900); padding: 18px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.kontakt-dane a:hover { background: var(--grafit-800); }
.kontakt-dane small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--miedz); }
.kontakt-dane strong { font-size: 17px; font-weight: 600; }
.stopka { background: var(--grafit-950); color: var(--szary-jasny); font-size: 13px; padding: 22px 0 26px; }
.stopka-w { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.stopka-podpis { flex-basis: 100%; margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11.5px; letter-spacing: .02em; color: rgba(255,255,255,.42); }
.stopka-podpis a { color: rgba(255,255,255,.62); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.stopka-podpis a:hover { color: #fff; border-bottom-color: var(--miedz); }   /* WS-DEMO · szablon: Wojciech Suszyński */

/* ---------------- przymiarka na zdjęciu ---------------- */
.pm { position: fixed; inset: 0; z-index: 60; background: rgba(8,11,15,.94); color: #eef1f4; display: grid; grid-template-rows: auto 1fr auto; }
.pm-gora { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.pm-gora strong { font-size: 16px; }
.pm-gora small { display: block; color: var(--szary-jasny); font-size: 12.5px; }
.pm-zamknij { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font-size: 20px; flex: none; }
.pm-scena { position: relative; overflow: hidden; touch-action: none; display: grid; place-items: center; }
.pm-scena canvas { max-width: 100%; max-height: 100%; }
.pm-puste { text-align: center; padding: 24px; max-width: 420px; }
.pm-puste p { color: var(--szary-jasny); }
.pm-dol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 12px 16px 18px; }
.pm-dol label.kf-btn, .pm-dol .kf-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.pm-dol .kf-glowny { background: var(--miedz); border-color: var(--miedz); color: var(--grafit-950); margin-left: 0; }
.pm input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-puste .kf-btn { cursor: pointer; }
.pm-puste .kf-glowny { margin: 6px auto 0; }
.pm-skala { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--szary-jasny); }
.pm-skala input { width: 140px; accent-color: var(--miedz); }

/* ---------------- telefon i tablet ---------------- */
@media (max-width: 1100px) {
  .kf { grid-template-columns: minmax(0, 1fr) 420px; }
  .kf-panel { padding: 16px 18px 0 22px; }
  .kf-krok-h { font-size: 26px; }
}
@media (max-width: 900px) {
  .gl-w { min-height: 58px; }
  .logo-znak { width: 36px; height: 36px; }
  .logo-t strong { font-size: 15px; }
  .logo-t small { font-size: 8.5px; letter-spacing: .16em; }
  .gl-tel { padding: 4px; border-color: transparent; }
  .gl-tel-t { display: none; }
  .gl-tel-ik { width: 44px; height: 44px; }
  .otwarcie-w { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .otwarcie-t { padding: 14px 0 0; }
  .otwarcie .etyk { display: none; }
  .otwarcie h1 { font-size: clamp(25px, 6.6vw, 34px); margin: 8px 0 0; }
  .otwarcie-pod { display: none; }
  .miedz { height: 122px; margin: 0 -16px; width: calc(100% + 32px); }
  .kf, .kf[data-ekran="dziekujemy"] { grid-template-columns: 1fr; }
  .kf-scena { top: 0; z-index: 5; height: 33svh; min-height: 250px; max-height: 360px; padding: 0; }
  .st { border-radius: 0; }
  .st-2d { padding: 46px 8px 54px; }
  .st-gora { top: 8px; left: 8px; right: 8px; }
  .st-tytul { display: none; }
  .st-tryb button, .st-pora button { padding: 6px 11px; font-size: 12.5px; min-height: 44px; min-width: 44px; }
  .st-tryb, .st-pora { padding: 2px; }
  .st-dol { left: 8px; right: 8px; top: auto; bottom: 8px; gap: 6px; justify-content: flex-start; flex-wrap: nowrap; }
  .st-btn { padding: 6px 12px 6px 8px; min-height: 44px; min-width: 44px; font-size: 12.5px; }
  .st-btn span:last-child { white-space: nowrap; }
  .st-podpowiedz { display: none; }
  .st-miejsce { top: auto; bottom: 54px; font-size: 12.5px; padding: 8px 12px; }
  .kf-panel { min-height: 0; padding: 10px 16px 0; }
  .kf-postep ol { gap: 2px; padding-bottom: 8px; }
  .kf-postep button { align-items: center; text-align: center; min-height: 44px; padding: 2px 0; }
  .kf-postep-n { font-size: 10.5px; }
  .kf-krok-n { padding: 10px 0 8px; }
  .kf-krok-h { font-size: 24px; }
  .kf-doradca { padding: 10px 12px; margin-bottom: 14px; gap: 10px; }
  .kf-twarz { width: 40px; height: 40px; }
  .kf-doradca-t { font-size: 14px; line-height: 1.4; }
  .kf-doradca-kto { display: none; }
  .kf-nav { padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); margin: 0 -16px; padding-left: 16px; padding-right: 16px; background: var(--papier); }
  .kf-tekst { font-size: 13.5px; padding: 12px 4px; white-space: nowrap; }
  .kf-toast { bottom: auto; top: 12px; }
  .kf-glowny { padding: 12px 18px; }
  .kf-dzieki { padding: 28px 16px; }
  .pytania-w, .kontakt-w { grid-template-columns: 1fr; gap: 10px; }
  .realizacje { grid-template-columns: 1fr; }
  .kontakt-dane { grid-template-columns: 1fr; }
  .kontakt-dane strong { white-space: nowrap; }
  .sekcja { padding: 52px 0; }
}
@media (max-width: 900px) {
  .st-pora { margin-left: auto; }
  .st-dol .st-btn[data-akcja="przymiarka"] span:last-child { display: none; }
  .st-dol .st-btn[data-akcja="przymiarka"] { padding: 6px; }
}
@media (max-width: 420px) {
  .kf-dlugi { display: none; }
  .kf-krotki { display: inline; }
  .kf-kafle { gap: 8px; }
  .kf-k3 { grid-template-columns: repeat(2, 1fr); }
  .kf-kafel { padding: 10px 11px 11px; }
  .kf-ikona { height: 36px; margin-bottom: 6px; }
  .kf-nazwa { font-size: 14.5px; }
  .kf-karta { --kat: calc((var(--i) - (var(--n) - 1) / 2) * 8deg); width: 56px; left: calc(50% - 28px); height: 160px; }
  .kf-wachlarz { height: 204px; }
  .kf-faktura { grid-template-columns: 96px 1fr; gap: 14px; }
  .kf-lupa { width: 96px; height: 96px; }
  .kf-pola2 { grid-template-columns: 1fr; }
  .kf-spec div { grid-template-columns: 92px 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print {
  .gl, .otwarcie, .sekcja, .stopka, .kf-nav, .kf-postep, .st-gora, .st-dol, .kf-formularz, .kf-pdf, .kf-doradca { display: none !important; }
  .kf { display: block; } .kf-scena { position: static; height: 120mm; padding: 0; } .st { background: #fff; } .st-2d { opacity: 1; padding: 0; }
}

/* 17.11: podpowiedź po „Otwórz bramę” krótsza (6 s zamiast 9 s) i nie zasłania bramy: na telefonie mały pasek u góry pod zakładkami */
.st-miejsce { pointer-events: none; }
@media (max-width: 700px) {
  .st-miejsce { top: 60px; bottom: auto; left: 10px; right: 10px; transform: none; max-width: none; padding: 6px 10px; font-size: 11.5px; line-height: 1.35; text-align: left; border-radius: 10px; background: rgba(17,22,29,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-color: rgba(var(--miedz-rgb, 227, 154, 99),.25); box-shadow: none; animation: st-pojaw .3s ease; }
}
@keyframes st-pojaw { from { opacity: 0; } to { opacity: 1; } }

/* puste dane firmy (e-mail, adres) nie zostawiają pustego pola */
.kontakt-dane > [hidden] { display: none; }
