/* Okna Jaworek · demo budstrony.pl nr 3
   System: biel PVC, szkło, granat „noc za szybą”, jeden sygnał: krawędź szyby. Rama 10 px, skrzydło / przycisk / pole 6 px.
   Krój: Encode Sans, nagłówki zwężone (wdth 75–82), tekst 100. Plan: dema-plany/okna/PLAN-DEMA.md */

@font-face {
  font-family: "Encode Sans";
  src: url(fonts/encode-sans-latin-ext.woff2) format("woff2");
  font-weight: 400 800; font-stretch: 75% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Encode Sans";
  src: url(fonts/encode-sans-latin.woff2) format("woff2");
  font-weight: 400 800; font-stretch: 75% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pvc: #F5F7F6;
  --glass: #E3ECEB;
  --white: #FFFFFF;
  --ink: #121A20;
  --stone: #4E5B63;
  --night: #11263A;
  --night2: #1A3550;
  --edge: #8FD6CB;
  --edge-dp: #0E6A66;
  --frost: #B7C9D8;
  --line: #C9D3D3;
  --field: #6B7A82;
  --err: #A4282B;

  --r-frame: 10px;
  --r: 6px;
  --r-ic: 4px;

  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --top: 108px; /* pasek demo + nawigacja */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pvc); color: var(--ink);
  font: 400 17px/1.55 "Encode Sans", system-ui, sans-serif; font-stretch: 100%;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
:focus-visible { outline: 2px solid var(--edge-dp); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--night); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------- typografia ---------- */
.h2 {
  font-size: clamp(30px, 3.5vw, 48px); line-height: 1.04; font-weight: 660; font-stretch: 78%;
  letter-spacing: -.02em; text-wrap: balance;
}
.h3 { font-size: 21px; line-height: 1.2; font-weight: 620; font-stretch: 90%; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--edge-dp); margin-bottom: 14px; }
small { font-size: .8em; color: var(--stone); }

/* ---------- przyciski: skrzydło 6 px, ikona w kwadracie 4 px ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 6px 6px 6px 20px; border-radius: var(--r); border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ic); transition: transform .5s var(--ease); }
.btn:hover .btn__ic { transform: translateX(3px); }
.btn--night { background: var(--night); color: #fff; }
.btn--night .btn__ic { background: var(--edge); color: var(--night); }
.btn--night:hover { background: var(--night2); }
.btn--edge { background: var(--edge); color: var(--night); }
.btn--edge .btn__ic { background: var(--night); color: var(--edge); }
.btn--ghost { padding: 6px 20px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--white); }
.btn--line { padding: 6px 18px; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { min-height: 44px; font-size: 15px; padding-left: 16px; }
.btn--sm .btn__ic { width: 34px; height: 34px; }

/* ---------- pasek demo ---------- */
.demobar {
  display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap;
  background: var(--ink); color: #E6ECEE; font-size: 14px; padding: 9px var(--gut); text-align: center;
}
.demobar a { display: inline-flex; align-items: center; gap: 6px; color: var(--edge); font-weight: 600; text-underline-offset: 3px; min-height: 28px; }

/* ---------- nawigacja ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 246, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .3s var(--ease); }
.nav.is-solid { box-shadow: 0 1px 0 var(--line); }
.nav__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 68px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__word { font-weight: 680; font-stretch: 80%; font-size: 22px; letter-spacing: -.01em; }
.logo__mark { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 26px; height: 30px; padding: 3px; border-radius: 4px; background: var(--night); }
.logo__mark i { border-radius: 1.5px; background: #3E6A8E; }
.logo__mark i:last-child { background: linear-gradient(160deg, #3E6A8E 0 60%, var(--edge) 60%); }
.logo__mark--sm { width: 18px; height: 22px; padding: 2px; gap: 2px; border-radius: 3px; }
.nav__links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; padding: 8px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--edge-dp); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__menu-tel { display: none; }
.nav__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: var(--night); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.nav.is-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   1 · HERO: kinowe ujęcie z oknami, rolety na prawdziwych oknach
   ========================================================= */
.hero {
  position: relative; overflow: hidden; background: #15120F; color: #fff;
  min-height: max(560px, calc(100svh - var(--top))); display: grid; align-items: end;
}
/* scena w proporcjach zdjęcia: szeroki ekran = pełna szerokość, wąski = pełna wysokość (jak object-fit: cover) */
.hero__stage { position: absolute; left: 50%; top: 24%; width: 100%; aspect-ratio: 2600 / 1740; transform: translate(-50%, -24%); }
@media (max-aspect-ratio: 2600/1740) { .hero__stage { width: auto; height: 100%; top: 0; transform: translateX(-50%); } }
.hero__img, .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* rolety: pozycje zmierzone na zdjęciu (lewe, środkowe, prawe okno), lamele z pancerza PCV */
.roll { position: absolute; top: 15%; height: 63%; overflow: hidden; }
.roll--l { left: 9.2%; width: 12.4%; }
.roll--c { left: 37%; width: 26%; }
.roll--r { left: 78.6%; width: 11.4%; }
.roll::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, #CBD3D4 0 13px, #AEB8BA 13px 15px, #DCE2E3 15px 16px);
  box-shadow: inset 0 -6px 0 #8F9A9D; transform: translateY(-102%);
}
.hero__dusk { position: absolute; inset: 0; pointer-events: none; background: #0B0907; opacity: 0; }
/* czytelność tekstu: ciemny dół kadru (ława) wzmocniony gradientem */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 9, 7, 0) 45%, rgba(11, 9, 7, .78) 82%, rgba(11, 9, 7, .9)); }
.hero__copy {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px 56px; align-items: end;
  padding-top: 40px; padding-bottom: clamp(28px, 5vh, 56px);
}
.hero__h { font-size: clamp(44px, min(6.4vw, 11.5vh), 104px); line-height: .95; font-weight: 700; font-stretch: 75%; letter-spacing: -.03em; }
.hero__h .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__h .ln > span { display: block; }
.hero__h .ln--2 { color: var(--edge); }
.hero__lead { font-size: 18px; color: #E4ECEE; max-width: 36ch; margin-bottom: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--glass { padding: 6px 20px; color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.btn--glass:hover { background: rgba(255, 255, 255, .16); }

/* choreografia wejścia: rolety w dół → zwijają się kolejno (środek, lewe, prawe), pokój jaśnieje, nagłówek wysuwa się z maski */
.is-motion .roll::before { animation: rollOpen 1.5s var(--ease) both; }
.is-motion .roll--c::before { animation-delay: .35s; }
.is-motion .roll--l::before { animation-delay: .6s; }
.is-motion .roll--r::before { animation-delay: .75s; }
@keyframes rollOpen { from { transform: translateY(0); } to { transform: translateY(-102%); } }
.is-motion .hero__dusk { animation: dawn 2.2s var(--ease) .2s both; }
@keyframes dawn { from { opacity: .72; } to { opacity: 0; } }
.is-motion .hero__img img { animation: settle 2.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.is-motion .hero__h .ln > span { animation: lineUp 1s var(--ease) both; }
.is-motion .hero__h .ln--2 > span { animation-delay: .12s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.is-motion .hero__side { animation: up .9s var(--ease) .3s both; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================
   2 · NAKLEJKA Z SZYBY
   ========================================================= */
.label-band { background: var(--glass); padding: 40px 0; }
.sticker {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 40px;
  background: var(--white); border-radius: var(--r); padding: 18px 24px;
  box-shadow: 0 1px 0 rgba(18, 26, 32, .06), 0 12px 30px -18px rgba(17, 38, 58, .35);
  position: relative;
}
.sticker::after { /* odklejony róg */
  content: ""; position: absolute; right: 0; top: 0; width: 22px; height: 22px; border-radius: 0 var(--r) 0 4px;
  background: linear-gradient(225deg, var(--glass) 0 50%, #D3DCDC 50%);
}
.sticker__brand { display: flex; align-items: center; gap: 10px; font-weight: 680; font-stretch: 80%; font-size: 19px; padding-right: 32px; border-right: 1px solid var(--line); min-height: 52px; }
.sticker__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; }
.sticker__grid dt { font-size: 13px; color: var(--stone); font-weight: 500; }
.sticker__grid dd { font-weight: 620; font-size: 18px; line-height: 1.25; }
.is-motion .sticker.rv { transform: rotate(-1.6deg) translateY(10px); opacity: 0; transition: transform .9s var(--ease), opacity .6s var(--ease); }
.is-motion .sticker.rv.in { transform: none; opacity: 1; }

/* =========================================================
   3 · PRODUKTY
   ========================================================= */
.products { padding: clamp(56px, 8vw, 96px) 0; }
.products__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.products__copy .h2 { max-width: 14ch; margin-bottom: 28px; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: var(--frame-r, 10px); background: var(--glass); width: max-content; max-width: 100%; margin-bottom: 26px; }
.tab {
  min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r); background: transparent; cursor: pointer;
  font-size: 18px; font-weight: 600; font-stretch: 88%; color: var(--stone); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--night); color: #fff; }
.panel__lead { font-size: 19px; max-width: 46ch; margin-bottom: 24px; }
.is-motion .panel:not([hidden]) { animation: up .6s var(--ease) both; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.spec > div { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.spec > div:nth-last-child(-n+2) { border-bottom: 0; }
.spec dt { font-size: 14px; color: var(--stone); }
.spec dd { font-weight: 600; font-size: 18px; line-height: 1.3; }
.spec dd small { display: block; font-weight: 400; font-size: 13px; margin-top: 2px; }
.veneer { border: 0; padding: 0; margin: 26px 0 0; }
.veneer legend { font-size: 14px; color: var(--stone); margin-bottom: 10px; padding: 0; }
.veneer legend span { color: var(--ink); font-weight: 600; margin-left: 6px; }
.veneer__row { display: flex; gap: 10px; }
.sw { position: relative; width: 48px; height: 48px; border-radius: var(--r); background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(18, 26, 32, .18); transition: transform .4s var(--ease); }
.sw input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.sw:has(input:checked) { box-shadow: inset 0 0 0 1px rgba(18, 26, 32, .18), 0 0 0 2px var(--pvc), 0 0 0 4px var(--night); }
.sw:has(input:focus-visible) { outline: 2px solid var(--edge-dp); outline-offset: 6px; }
.sw:hover { transform: translateY(-2px); }
.veneer__note { font-size: 14px; color: var(--stone); margin-top: 10px; }

.products__media { position: relative; }
/* podwójna rama: rama 10 px + skrzydło 6 px (Double-Bezel jako okno) */
.bezel { padding: 8px; border-radius: var(--r-frame); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(17, 38, 58, .45); }
.bezel__in { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--glass); box-shadow: inset 0 0 0 1px rgba(18, 26, 32, .1); }
.pimg { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease), transform 1.2s var(--ease); transform: scale(1.04); }
.pimg.is-on { opacity: 1; transform: none; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.wincard {
  position: absolute; left: -32px; bottom: 36px; display: flex; align-items: center; gap: 16px;
  background: var(--night); color: #fff; padding: 14px 20px 14px 14px; border-radius: var(--r-frame);
  box-shadow: 0 24px 40px -24px rgba(17, 38, 58, .7); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.wincard.is-off { opacity: 0; transform: translateY(10px); pointer-events: none; }
.wincard svg { width: 62px; height: 78px; }
.wc-frame { fill: var(--veneer, #3B4146); stroke: rgba(255, 255, 255, .35); stroke-width: 1; transition: fill .5s var(--ease); }
.wc-glass { fill: #9EC3D9; opacity: .85; }
.wc-open { fill: none; stroke: rgba(17, 38, 58, .55); stroke-width: 1.2; stroke-dasharray: 3 3; }
.wc-handle { fill: #D9DEE0; }
.wincard figcaption { display: grid; font-weight: 620; font-size: 18px; line-height: 1.2; }
.wincard figcaption small { color: var(--frost); font-weight: 400; font-size: 14px; }

/* =========================================================
   4 · SYGNATURA: pakiet szybowy
   ========================================================= */
.pack { background: var(--night); color: #fff; position: relative; }
.pack__stick { padding: clamp(64px, 9vw, 110px) 0; }
.pack .eyebrow { color: var(--edge); }
.pack__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px 64px; align-items: center; }
.pack__lead { color: var(--frost); font-size: 18px; max-width: 42ch; margin: 18px 0 26px; }
.layers { counter-reset: l; display: grid; gap: 2px; margin-bottom: 26px; }
.layers li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(183, 201, 216, .18); font-size: 17px; }
.layers li::before {
  counter-increment: l; content: counter(l); display: grid; place-items: center; width: 28px; height: 28px; flex: none;
  border-radius: var(--r-ic); background: var(--night2); color: var(--edge); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pack__law { font-size: 16px; color: var(--frost); max-width: 46ch; padding: 14px 16px; border-radius: var(--r); background: var(--night2); }
.pack__law strong { color: #fff; font-weight: 640; }

.pack__stage { position: relative; height: min(560px, 62vh); perspective: 1600px; display: grid; place-items: center; }
.glazing { position: relative; width: min(300px, 64%); aspect-ratio: 3 / 4.2; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-38deg); }
.g {
  position: absolute; inset: 0; border-radius: 4px; transform-style: preserve-3d;
  background: linear-gradient(135deg, rgba(190, 228, 236, .34), rgba(143, 214, 203, .12) 55%, rgba(190, 228, 236, .28));
  box-shadow: inset 0 0 0 1.5px rgba(143, 214, 203, .7);
}
.g::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 40%, transparent 50%); }
.g--mid::before { /* powłoka niskoemisyjna */
  content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(160deg, rgba(143, 214, 203, .22), rgba(126, 160, 200, .18));
}
.spacer { position: absolute; inset: 0; border-radius: 3px; box-shadow: inset 0 0 0 9px #2B4660; opacity: .95; }
/* stan rozsunięty (koniec animacji, ?static, brak wsparcia) */
.g--out { transform: translateZ(150px); }
.spacer--a { transform: translateZ(75px); }
.g--mid { transform: translateZ(0); }
.spacer--b { transform: translateZ(-75px); }
.g--in { transform: translateZ(-150px); }

@supports (animation-timeline: view()) {
  .is-motion .pack { height: 230vh; view-timeline: --pack block; }
  .is-motion .pack__stick { position: sticky; top: 68px; min-height: calc(100dvh - 68px); display: grid; align-items: center; padding: 32px 0; }
  .is-motion .g--out { animation: zOut linear both; animation-timeline: --pack; animation-range: contain 0% contain 55%; }
  .is-motion .spacer--a { animation: zA linear both; animation-timeline: --pack; animation-range: contain 0% contain 55%; }
  .is-motion .spacer--b { animation: zB linear both; animation-timeline: --pack; animation-range: contain 0% contain 55%; }
  .is-motion .g--in { animation: zIn linear both; animation-timeline: --pack; animation-range: contain 0% contain 55%; }
  .is-motion .glazing { animation: turn linear both; animation-timeline: --pack; animation-range: contain 0% contain 70%; }
  .is-motion .layers li { animation: lit linear both; animation-timeline: --pack; animation-range: contain calc(var(--n) * 11%) contain calc(var(--n) * 11% + 9%); }
  .is-motion .pack__law { animation: lit linear both; animation-timeline: --pack; animation-range: contain 64% contain 74%; }
}
@keyframes zOut { from { transform: translateZ(4px); } to { transform: translateZ(150px); } }
@keyframes zA { from { transform: translateZ(2px); opacity: 0; } to { transform: translateZ(75px); opacity: .95; } }
@keyframes zB { from { transform: translateZ(-2px); opacity: 0; } to { transform: translateZ(-75px); opacity: .95; } }
@keyframes zIn { from { transform: translateZ(-4px); } to { transform: translateZ(-150px); } }
@keyframes turn { from { transform: rotateX(4deg) rotateY(-12deg); } to { transform: rotateX(8deg) rotateY(-38deg); } }
@keyframes lit { from { opacity: .28; } to { opacity: 1; } }

/* =========================================================
   5 · MODUŁ: zapytanie z wymiarami
   ========================================================= */
.ask { background: var(--glass); padding: clamp(56px, 8vw, 96px) 0; }
.ask__head { max-width: 760px; margin-bottom: 30px; }
.ask__head p { font-size: 18px; color: var(--stone); margin-top: 14px; max-width: 58ch; }
.frame { padding: 10px; border-radius: var(--r-frame); background: var(--night); }
.frame__in { background: var(--pvc); border-radius: var(--r); padding: clamp(18px, 3vw, 34px); }
.steps { display: flex; gap: 8px 26px; flex-wrap: wrap; margin-bottom: 26px; font-size: 15px; font-weight: 500; color: var(--stone); }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-ic); background: var(--glass); color: var(--stone); font-size: 14px; font-variant-numeric: tabular-nums; }
.steps li.is-on { color: var(--ink); font-weight: 600; }
.steps li.is-on b { background: var(--night); color: var(--edge); }
.steps li.is-done b { background: var(--edge-dp); color: #fff; }
.ask__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 40px; align-items: start; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step__nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 24px; }
.step__nav > :only-child { margin-left: auto; }

.holes { display: grid; margin-bottom: 16px; }
.hole { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hole:first-child { padding-top: 0; }
.is-motion .hole.is-new { animation: up .5s var(--ease) both; }
.hole__draw { display: grid; place-items: center; background: var(--glass); border-radius: var(--r); aspect-ratio: 1; align-self: start; }
.hole__draw svg { width: 100%; height: 100%; overflow: visible; }
.hd-frame { fill: var(--night); }
.hd-glass { fill: #B9D9E3; }
.hd-line { fill: none; stroke: rgba(17, 38, 58, .5); stroke-width: 1; stroke-dasharray: 2.5 2.5; }
.hd-roll { fill: #9AA8AE; }
.hd-dim { font: 600 9px "Encode Sans", sans-serif; fill: var(--edge-dp); }
.hd-tick { stroke: var(--edge-dp); stroke-width: 1; }
.hole__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 620; margin-bottom: 8px; }
.hole__del { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--stone); font-size: 14px; border-radius: var(--r); cursor: pointer; }
.hole__del:hover { color: var(--err); background: var(--pvc); }
.hole__row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) 76px; gap: 10px; }

.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--stone); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--field); background: var(--white);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--night); box-shadow: 0 0 0 3px rgba(14, 106, 102, .25); }
.field--num input, .field--qty input { font-variant-numeric: tabular-nums; }
.field [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.field__err { display: flex; align-items: flex-start; gap: 6px; color: var(--err); font-size: 14px; font-weight: 500; margin-top: 6px; }
.field__err[hidden] { display: none; }
.field .check, .check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 400; min-height: 44px; padding-top: 10px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--night); flex: none; }
.check--sm { padding-top: 8px; min-height: 40px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.field--wide { grid-column: 1 / -1; }
textarea { resize: vertical; }

.photos { display: grid; gap: 12px; }
.drop {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-frame); cursor: pointer;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--field); font-size: 15px; transition: box-shadow .2s;
}
.drop:hover, .photos:focus-within .drop { box-shadow: inset 0 0 0 2px var(--night); }
.drop .ic { width: 30px; height: 30px; color: var(--edge-dp); }
.drop strong { display: block; font-size: 17px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.thumbs li { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--glass); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: var(--r-ic); background: rgba(17, 38, 58, .82); color: #fff; cursor: pointer; }
.thumbs button::before { content: ""; position: absolute; inset: -6px; }

.sum { position: sticky; top: 92px; background: var(--night); color: #fff; border-radius: var(--r-frame); padding: 22px; }
.sum__top { padding-bottom: 16px; border-bottom: 1px solid rgba(183, 201, 216, .2); margin-bottom: 6px; }
.sum__big { display: grid; font-size: 54px; line-height: 1; font-weight: 640; font-stretch: 80%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--edge); }
.sum__big small { font-size: 15px; letter-spacing: 0; color: var(--frost); font-weight: 400; margin-top: 6px; font-stretch: 100%; }
.sum__count { color: var(--frost); font-size: 15px; margin-top: 6px; }
.sum__list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(183, 201, 216, .14); font-size: 15px; }
.sum__list dt { color: var(--frost); }
.sum__list dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum__src { font-size: 13px; color: var(--frost); margin: 12px 0 16px; }
.sum__grant { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; min-height: 48px; border-radius: var(--r); background: var(--night2); text-decoration: none; font-size: 15px; transition: background-color .3s var(--ease); }
.sum__grant:hover { background: #22426A; }
.sum__grant strong { color: var(--edge); font-variant-numeric: tabular-nums; }

.step--done:focus { outline: 0; }
.step--done .h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.done__note { font-size: 15px; padding: 12px 14px; border-radius: var(--r); background: var(--glass); margin-bottom: 14px; }
.mail { white-space: pre-wrap; font: 14px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--white); border-radius: var(--r); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); margin: 0 0 12px; overflow-wrap: anywhere; }
.thumbs--done button { display: none; }

/* =========================================================
   6 · DOTACJA: trzy szyby 40 / 70 / 100%
   ========================================================= */
.grant { padding: clamp(56px, 8vw, 96px) 0; }
.grant__head { max-width: 760px; margin-bottom: 34px; }
.grant__lead { font-size: 18px; color: var(--stone); margin-top: 14px; max-width: 60ch; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; }
.tier { display: grid; grid-template-rows: 300px auto auto auto; }
.tier__glass {
  align-self: end; height: var(--h); border-radius: var(--r-frame) var(--r-frame) 0 0; position: relative;
  background: linear-gradient(160deg, #CFE6EA, #A9D3D2 70%); box-shadow: inset 0 0 0 1.5px rgba(14, 106, 102, .35);
  transform-origin: bottom; overflow: hidden;
}
.tier__glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 40%, transparent 50%); }
.tier:nth-child(3) .tier__glass { background: linear-gradient(160deg, #1A3550, var(--night) 70%); box-shadow: inset 0 0 0 1.5px rgba(143, 214, 203, .6); }
.tier__pct { position: absolute; left: 20px; top: 14px; font-weight: 640; font-stretch: 82%; font-size: 22px; color: var(--night); }
.tier:nth-child(3) .tier__pct { color: var(--edge); }
.tier__name { font-size: 16px; font-weight: 600; color: var(--stone); padding-top: 14px; border-top: 2px solid var(--night); }
.tier__val { font-size: 17px; margin-top: 4px; }
.tier__val b { display: block; font-size: clamp(44px, 5vw, 68px); line-height: 1; font-weight: 640; font-stretch: 80%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tier__door { font-size: 15px; color: var(--stone); margin-top: 4px; }
.is-motion .tier.rv .tier__glass { transform: scaleY(.15); transition: transform 1.2s var(--ease); }
.is-motion .tier.rv.in .tier__glass { transform: none; }
.is-motion .tier.rv:nth-child(2) .tier__glass { transition-delay: .12s; }
.is-motion .tier.rv:nth-child(3) .tier__glass { transition-delay: .24s; }

.mine { margin: 30px 0 0; padding: 20px 22px; border-radius: var(--r-frame); background: var(--glass); display: grid; gap: 8px; }
.mine__label { font-size: 17px; }
.mine__label strong { font-variant-numeric: tabular-nums; }
.mine__row { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 16px; color: var(--stone); }
.mine__row b { color: var(--ink); font-size: 22px; font-weight: 640; font-stretch: 85%; margin-left: 6px; font-variant-numeric: tabular-nums; }
.mine__note { font-size: 14px; color: var(--stone); }

.terms { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px 56px; align-items: start; }
.terms .h3 { font-size: clamp(24px, 2.4vw, 30px); font-stretch: 82%; }
.terms__side { display: grid; gap: 18px; justify-items: start; }
.terms__list { display: grid; gap: 12px; }
.terms li { display: flex; gap: 12px; font-size: 16px; }
.terms li .ic { color: var(--edge-dp); margin-top: 3px; }
.terms__src { font-size: 14px; color: var(--stone); max-width: 44ch; }
.terms__src a { color: var(--edge-dp); font-weight: 600; text-underline-offset: 3px; }

/* =========================================================
   7 · MONTAŻ: taśma kadrów
   ========================================================= */
.film { background: var(--glass); padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.film__head { display: grid; gap: 14px; margin-bottom: 30px; }
.film__head p { font-size: 18px; color: var(--stone); max-width: 62ch; }
.film__strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 340px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  padding: 4px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 18px;
  scrollbar-width: thin; scrollbar-color: var(--field) transparent;
}
.film__strip:focus-visible { outline-offset: -2px; }
.shot { scroll-snap-align: start; }
.shot picture { display: block; aspect-ratio: 4 / 5; border-radius: var(--r-frame); overflow: hidden; background: var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot h3 { font-size: 20px; font-weight: 620; font-stretch: 88%; margin: 14px 0 4px; }
.shot p { font-size: 15px; color: var(--stone); }
.is-motion .shot.rv { opacity: 0; transform: translateX(28px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.is-motion .shot.rv.in { opacity: 1; transform: none; }

/* =========================================================
   8 · PYTANIA
   ========================================================= */
.faq { padding: clamp(56px, 8vw, 96px) 0; }
.faq .h2 { margin-bottom: 28px; }
.faq__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .4s var(--ease); color: var(--edge-dp); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 0 18px; color: var(--stone); max-width: 60ch; }

/* =========================================================
   9 · STOPKA
   ========================================================= */
.foot { background: var(--night); color: #fff; padding: clamp(56px, 7vw, 88px) 0 32px; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px 64px; }
.foot__h { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 620; font-stretch: 88%; margin-bottom: 16px; }
.foot__h .ic { color: var(--edge); }
.foot__tel { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(34px, 4vw, 52px); font-weight: 640; font-stretch: 80%; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.foot__tel .ic { color: var(--edge); width: .8em; height: .8em; }
.foot__hours { display: flex; align-items: center; gap: 8px; color: var(--frost); margin: 8px 0 22px; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 8px 12px; border-radius: var(--r); background: var(--night2); color: #E6EEF4; font-size: 15px; }
.foot__word {
  font-size: clamp(80px, 27vw, 420px); line-height: .8; font-weight: 700; font-stretch: 75%; letter-spacing: -.04em;
  color: var(--night2); margin: 48px 0 24px; white-space: nowrap; user-select: none;
}
.is-motion .foot__word { clip-path: inset(100% 0 0 0); transform: translateY(20px); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); }
.is-motion .foot__word.in { clip-path: inset(0 0 0 0); transform: none; }
.foot__demo { font-size: 14px; color: var(--frost); }
.foot__demo a { color: var(--edge); }

/* ---------- dolny pasek na telefonie ---------- */
.mbar { display: none; }

/* ---------- odsłanianie ---------- */
.is-motion .rv:not(.sticker):not(.tier):not(.shot) { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.is-motion .rv.in:not(.sticker):not(.tier):not(.shot) { opacity: 1; transform: none; }

/* =========================================================
   Do 1100 px
   ========================================================= */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
  .nav__tel span { display: none; }
  .ask__grid { grid-template-columns: 1fr; }
  .sum { position: static; }
  .wincard { left: 16px; }
}

/* =========================================================
   Do 900 px: menu w burgerze, kolumny w stos
   ========================================================= */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav__tel { display: none; }
  .nav__links {
    position: fixed; inset: 68px 0 0; flex-direction: column; gap: 0; padding: 18px var(--gut);
    background: var(--pvc); font-size: 26px; font-weight: 620; font-stretch: 85%;
    visibility: hidden; opacity: 0; transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
  .nav.is-open .nav__links a { opacity: 1; transform: none; }
  .nav.is-open .nav__links a:nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nav__links a:nth-child(3) { transition-delay: .08s; }
  .nav.is-open .nav__links a:nth-child(4) { transition-delay: .12s; }
  .nav.is-open .nav__links a:nth-child(5) { transition-delay: .16s; }
  .nav.is-open .nav__links a:nth-child(6) { transition-delay: .2s; }
  .nav.is-open .nav__links a:nth-child(7) { transition-delay: .24s; }
  .nav__menu-tel { display: block; color: var(--edge-dp); }
  .nav__links a::after { display: none; }

  .hero__copy { grid-template-columns: 1fr; }
  .products__grid, .pack__grid, .terms, .foot__grid { grid-template-columns: 1fr; }
  .products__media { max-width: 560px; }
  .sticker { grid-template-columns: 1fr; }
  .sticker__brand { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; min-height: 0; }
  .sticker__grid { grid-template-columns: 1fr 1fr; }
  .pack__stage { height: 380px; order: -1; }
  .faq__cols { grid-template-columns: 1fr; }
}

/* =========================================================
   TELEFON ≤ 760 px: mniej czytania, przyciski na całą szerokość
   ========================================================= */
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .demobar span { display: none; }
  .nav__cta { display: none; }
  .hero__h { font-size: clamp(40px, 12vw, 64px); }
  .hero__lead { font-size: 17px; }
  .hero__cta .btn { width: 100%; justify-content: space-between; }
  .hero__cta .btn--glass { justify-content: center; }
  .hero { min-height: calc(100svh - 112px); }
  .hero__stage { top: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 9, 7, 0) 30%, rgba(11, 9, 7, .82) 62%, rgba(11, 9, 7, .94)); }
  .label-band { padding: 24px 0; }
  .sticker { padding: 16px; }
  .sticker__grid dd { font-size: 16px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 10px; }
  .spec { grid-template-columns: 1fr; }
  .spec > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .wincard { left: 12px; bottom: 12px; padding: 10px 14px 10px 10px; }
  .wincard svg { width: 44px; height: 56px; }
  .pack__stage { height: 300px; }
  .is-motion .pack { height: 260vh; }
  .is-motion .pack__stick { padding: 16px 0; }
  .is-motion .pack__stage { height: 220px; }
  .pack__lead { margin: 12px 0 16px; font-size: 16px; }
  .layers li { padding: 8px 0; font-size: 15px; }
  .hole { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .hole__row { grid-template-columns: 1fr 1fr 70px; }
  .field--type { grid-column: 1 / -1; }
  .fields { grid-template-columns: 1fr; }
  .step__nav .btn { width: 100%; justify-content: space-between; }
  .step__nav .btn--line { justify-content: center; }
  .tiers { gap: 10px; }
  .tier { grid-template-rows: 170px auto auto auto; }
  .tier__pct { left: 10px; font-size: 17px; }
  .tier__name { font-size: 13px; }
  .tier__val { font-size: 13px; }
  .tier__val b { font-size: 30px; }
  .tier__door { font-size: 12px; }
  .film__strip { grid-auto-columns: 72vw; }
  .faq summary { font-size: 17px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--night); box-shadow: 0 -10px 30px -16px rgba(17, 38, 58, .6);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
  .mbar__tel { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(183, 201, 216, .5); }
  .mbar__cta { background: var(--edge); color: var(--night); }
}

/* ---------- reduced motion: na wszelki wypadek po stronie CSS ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
