/* ============================================================
   PASS Architekci: prototyp „Enfilada"
   Jedna rodzina pisma, jasna powierzchnia i grafit z realizacji.
   Fotografie i ruch enfilady prowadzą; interfejs pozostaje oszczędny.
   ============================================================ */
@font-face { font-family: 'Raleway'; src: url('../fonts/raleway-latin-ext.woff2') format('woff2'); font-weight: 300 500; font-style: normal; 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: 'Raleway'; src: url('../fonts/raleway-latin.woff2') format('woff2'); font-weight: 300 500; font-style: normal; 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 {
  --paper:     oklch(97% 0.005 85);
  --paper-hi:  var(--paper);
  --paper-2:   var(--paper);
  --paper-3:   oklch(89% 0.008 78);
  --ink:       oklch(19% 0.008 70);
  --ink-2:     oklch(40% 0.008 70);
  --ink-3:     oklch(50% 0.008 70);
  --graphite:  oklch(23% 0.007 70);
  --on-dark:   oklch(95% 0.006 85);
  --on-dark-2: oklch(78% 0.008 80);
  --line-light: oklch(19% 0.008 70 / 0.14);
  --line-dark:  oklch(95% 0.006 85 / 0.18);
  --oak:       var(--paper);
  --oak-2:     oklch(90% 0.005 85);
  --err:       oklch(76% 0.12 38);

  --sans:  'Raleway', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --rail: 64px;
  --pad: clamp(1.25rem, 3.4vw, 3.5rem);
  --vw: calc(100vw - var(--rail));
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--graphite);
  color: var(--ink);
  scrollbar-width: thin;
  scrollbar-color: oklch(50% 0.008 70 / 0.55) transparent;
}
body {
  margin: 0;
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.24em; }
::selection { background: var(--oak); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
input, textarea { caret-color: currentColor; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 0.7rem 1rem; background: var(--ink); color: var(--paper); font-size: 0.875rem; transform: translateY(-160%); transition: transform 0.25s var(--ease-out); }
.skip:focus { transform: none; }

.meta { font-size: 0.75rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.arrow { width: 14px; height: 14px; flex: none; }

/* ---------- Przyciski i linki ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.55rem;
  font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--oak { background: var(--oak); color: var(--ink); }
.btn--oak:hover { background: var(--oak-2); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: oklch(30% 0.008 70); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: oklch(100% 0 0); }
.btn--line { border-color: currentColor; background: transparent; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 0.3rem;
  transition: background-size 0.45s var(--ease-out);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link .arrow { transition: transform 0.35s var(--ease-out); }
.link:hover .arrow { transform: translateX(4px); }

/* ============================================================
   RAIL: na telefonie górna belka, na desktopie pionowa listwa
   ============================================================ */
.rail {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad);
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.55s var(--ease-out), color 0.55s var(--ease-out), border-color 0.55s var(--ease-out);
}
html[data-tone="dark"] .rail { background: var(--graphite); color: var(--on-dark); border-color: var(--line-dark); }
.rail__logo { display: block; line-height: 0; }
.rail__logo img { width: 78px; height: auto; transition: filter 0.55s var(--ease-out); }
html[data-tone="dark"] .rail__logo img { filter: invert(1); }
.rail__chapter { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.rail__idx { opacity: 0.6; font-variant-numeric: tabular-nums; }
.rail__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.rail__progress i { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.rail__menu {
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-content: center; gap: 6px;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.rail__menu span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.45s var(--ease-out); }
.rail__menu:hover span:first-child { transform: translateX(-3px); }
.rail__menu:hover span:last-child { transform: translateX(3px); }

.is-h .rail {
  inset: 0 auto 0 0; width: var(--rail); height: auto;
  flex-direction: column; padding: 14px 0 26px;
  border-bottom: 0; border-right: 1px solid var(--line-light);
}
.is-h[data-tone="dark"] .rail { border-right-color: var(--line-dark); }
.is-h .rail__menu { order: -1; margin: 0; }
.is-h .rail__chapter { writing-mode: vertical-rl; transform: rotate(180deg); margin-top: auto; margin-bottom: 1.25rem; }
.is-h .rail__progress { position: relative; inset: auto; width: 1px; height: 15vh; background: var(--line-light); margin-bottom: 1.5rem; }
.is-h[data-tone="dark"] .rail__progress { background: var(--line-dark); }
.is-h .rail__progress i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.is-h .rail__logo { position: relative; width: 24px; height: 80px; }
.is-h .rail__logo img { position: absolute; left: 50%; top: 50%; width: 80px; transform: translate(-50%, -50%) rotate(-90deg); }


/* ============================================================
   MENU pełnoekranowe: otwiera się jak drzwi przesuwne od listwy
   ============================================================ */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: grid; align-content: center; gap: 3rem;
  padding: 96px var(--pad) 40px;
  background: var(--graphite); color: var(--on-dark);
  clip-path: inset(0 100% 0 0);
  visibility: hidden;
  transition: clip-path 0.75s var(--ease-out), visibility 0s linear 0.75s;
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.75s var(--ease-out), visibility 0s; }
.menu__close {
  position: absolute; top: 8px; right: calc(var(--pad) - 10px);
  width: 44px; height: 44px; display: grid; place-content: center;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.menu__close span { grid-area: 1 / 1; width: 22px; height: 1.5px; background: currentColor; }
.menu__close span:first-child { transform: rotate(45deg); }
.menu__close span:last-child { transform: rotate(-45deg); }
.is-h .menu__close { left: 10px; right: auto; top: 14px; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 0.06em 0;
  font-family: var(--sans); font-size: clamp(2.2rem, min(5vw, 7.6vh), 4.75rem); line-height: 1.04;
  text-decoration: none;
  transform: translateY(100%);
  transition: transform 0.7s var(--ease-out), color 0.25s var(--ease-out);
}
.menu.is-open .menu__list a { transform: none; transition-delay: calc(0.12s + var(--i) * 45ms), 0s; }
.menu__list a small { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0; color: var(--on-dark-2); font-variant-numeric: tabular-nums; min-width: 1.6rem; }
.menu__list a span { transition: transform 0.45s var(--ease-out); }
.menu__list a:hover span, .menu__list a:focus-visible span { transform: translateX(14px); font-style: normal; }
.menu__aside { display: grid; gap: 1.6rem; align-content: end; font-size: 0.9375rem; }
.menu__aside dt { font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: var(--on-dark-2); margin-bottom: 0.2rem; font-weight: 400; }
.menu__aside a { text-decoration: none; }
.menu__aside a:hover { text-decoration: underline; }
.menu__social { display: flex; gap: 1.5rem; }
.is-h .menu { grid-template-columns: 1.35fr 1fr; align-items: end; padding: 12vh var(--pad) 10vh calc(var(--rail) + var(--pad)); }

/* ============================================================
   ENFILADA: tor pokoi. Domyślnie pionowo (telefon, brak JS,
   ograniczony ruch), w trybie .is-h poziomo.
   ============================================================ */
.enfilade { position: relative; }
.enfilade__stage { position: relative; }
.track { position: relative; display: flex; flex-direction: column; }
.ch { position: relative; }

.is-h .enfilade__stage { position: sticky; top: 0; height: 100vh; height: 100svh; margin-left: var(--rail); width: var(--vw); overflow: hidden; }
.is-h .track { flex-direction: row; height: 100%; width: max-content; will-change: transform; }
.is-h .track > .ch { flex: 0 0 auto; height: 100%; }

/* ---------- I. HERO ---------- */
.hero { background: var(--graphite); color: var(--on-dark); display: flex; flex-direction: column; }
.hero__text { display: flex; flex-direction: column; gap: 1.75rem; padding: 116px var(--pad) 40px; }
.hero__title { font-family: var(--sans); font-weight: 300; font-size: clamp(2.5rem, 10.5vw, 4.5rem); line-height: 1.06; letter-spacing: -0.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line > span { display: block; }
.hero__intro { display: grid; gap: clamp(24px, 3.5vh, 40px); }
.hero__eyebrow { font-size: 0.875rem; color: var(--on-dark-2); }
.hero__lead { max-width: 46ch; font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.6; color: var(--on-dark-2); }
.hero__bottom { display: grid; gap: clamp(24px, 5vh, 56px); }
.hero__act { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.hero__note { font-size: 0.875rem; color: var(--on-dark-2); }
.hero__rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; min-height: 44px; font-size: 0.8125rem; color: var(--on-dark-2); text-decoration: none; }
.hero__rating strong { font-weight: 500; color: var(--on-dark); }
.hero__rating:hover { color: var(--on-dark); text-decoration: underline; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 2rem; padding-top: 1.25rem; color: var(--on-dark-2); }
.hero__hint { display: none; align-items: center; gap: 0.8rem; margin-left: auto; color: var(--on-dark); }
.hint__line { position: relative; width: 52px; height: 1px; background: var(--line-dark); overflow: hidden; }
.hint__line i { position: absolute; top: 0; left: 0; width: 14px; height: 1px; background: currentColor; animation: hint 2.4s var(--ease-out) infinite; }
.is-away .hint__line i { animation-play-state: paused; }
@keyframes hint { 0% { transform: translateX(-14px); } 60%, 100% { transform: translateX(52px); } }
.hero__photo { aspect-ratio: 4 / 3; overflow: hidden; }
@media (max-width: 520px) {
  .hero__act .btn { width: 100%; justify-content: space-between; white-space: normal; text-align: left; line-height: 1.45; }
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.is-h .hero { flex-direction: row; }
.is-h .hero__text { width: calc(var(--vw) * 0.56); justify-content: center; gap: clamp(24px, 4vh, 44px); padding: clamp(28px, 7vh, 72px) var(--pad) clamp(24px, 5vh, 44px); }
.is-h .hero__title { font-size: clamp(2.6rem, min(4.6vw, 8.3vh), 6rem); margin-top: 0; }
.is-h .hero__text { position: relative; z-index: 1; }
.is-h .hero__photo { position: relative; z-index: 2; width: calc(var(--vw) * 0.7); height: 100%; aspect-ratio: auto; }
.is-h .hero__hint { display: inline-flex; }

/* wejście hero: roleta zdjęcia idzie w górę, wiersze wysuwają się z maski */
.js-anim .hero__title .line > span { transform: translateY(108%); }
.js-anim .hero__photo { clip-path: inset(100% 0 0 0); }
.js-anim .hero__bottom { opacity: 0; transform: translateY(14px); }
.js-anim.is-in .hero__title .line > span { transform: none; transition: transform 1.05s var(--ease-out) calc(0.3s + var(--i) * 85ms); }
.js-anim.is-in .hero__photo { clip-path: inset(0 0 0 0); transition: clip-path 1.35s var(--ease-out); }
.js-anim.is-in .hero__bottom { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out) 0.75s, transform 0.9s var(--ease-out) 0.75s; }

/* ---------- II. KORZYŚCI ---------- */
.benefits { background: var(--paper); display: flex; flex-direction: column; gap: 3rem; padding: 96px var(--pad) 80px; }
.benefits__title { font-family: var(--sans); font-weight: 300; font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 14ch; text-wrap: balance; }
.benefits__grid { display: grid; gap: 2rem; }
.benefit { max-width: 42rem; }
.benefit h3 { font-size: 1.125rem; font-weight: 400; line-height: 1.2; margin-bottom: 0.8rem; }
.benefit p { font-size: 0.9375rem; line-height: 1.65; color: var(--ink-2); max-width: 48ch; }
@media (min-width: 760px) {
  .benefits { display: grid; grid-template-columns: 1fr 1fr; align-content: center; column-gap: clamp(40px, 7vw, 112px); }
  .benefits__grid { gap: 2.25rem; }
}
.is-h .benefits { width: var(--vw); align-items: start; padding: clamp(32px, 9vh, 96px) var(--pad) clamp(32px, 8vh, 88px); }
.is-h .benefits__title { font-size: clamp(2.4rem, min(4vw, 7.4vh), 4.8rem); }

/* ---------- wybrane projekty ---------- */
.index { background: var(--paper-2); display: grid; gap: 2.25rem; padding: 88px var(--pad) 80px; }
.index h2 { font-family: var(--sans); font-weight: 300; font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1; letter-spacing: -0.01em; }
.index__list { border-bottom: 1px solid var(--line-light); }
.proj { display: grid; grid-template-columns: 3.1rem 1fr auto; align-items: baseline; column-gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line-light); text-decoration: none; }
.proj__num { font-size: 0.75rem; font-weight: 400; letter-spacing: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.proj__city { font-family: var(--sans); font-size: clamp(1.9rem, 7.5vw, 3rem); line-height: 1; transition: transform 0.55s var(--ease-out); }
.proj__type { font-size: 0.8125rem; color: var(--ink-2); text-align: right; }
.proj__thumb { grid-column: 1 / -1; margin-top: 0.9rem; aspect-ratio: 16 / 10; overflow: hidden; }
.proj__thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj:hover .proj__city, .proj:focus-visible .proj__city { transform: translateX(10px); font-style: normal; }
.index__cta { justify-self: start; }
.preview { display: none; }

@media (min-width: 960px) and (hover: hover) {
  .index { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); grid-template-rows: auto 1fr auto; column-gap: clamp(40px, 5.5vw, 110px); row-gap: clamp(18px, 3.5vh, 36px); align-items: center; min-height: 100vh; min-height: 100svh; padding: clamp(64px, 11vh, 130px) var(--pad); }
  .index h2 { grid-column: 1; font-size: clamp(2.6rem, min(4.2vw, 7.8vh), 4.9rem); }
  .index__list { grid-column: 1; align-self: center; }
  .index__cta { grid-column: 1; }
  .proj { padding: clamp(0.55rem, 1.6vh, 1rem) 0; }
  .proj__city { font-size: clamp(1.9rem, min(3.3vw, 5.6vh), 3.6rem); }
  .proj__thumb { display: none; }
  .preview { display: grid; gap: 0.9rem; grid-column: 2; grid-row: 1 / -1; justify-self: end; align-self: center; }
}
.preview__frame { position: relative; height: min(70vh, 660px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-3); }
.preview__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 0); transform: scale(1); transition: clip-path 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.preview__img.is-enter { clip-path: inset(100% 0 0 0); transform: scale(1.08); }
.preview__cap { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-2); }

/* ---------- IV. PRACOWNIA ---------- */
.about { background: var(--paper-hi); display: grid; gap: 2rem; padding: 88px var(--pad) 80px; }
.about__text { display: contents; }
.about__title { order: 1; font-family: var(--sans); font-weight: 300; font-size: clamp(2.4rem, 10vw, 4.2rem); line-height: 1; letter-spacing: -0.01em; max-width: 14ch; text-wrap: balance; }
.about__photo { order: 2; }
.about__body { order: 3; display: grid; gap: 1rem; }
.about__aside { order: 4; display: grid; gap: 1.5rem; }
.about__photo figure { display: flex; flex-direction: column; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 730 / 860; object-fit: cover; }
.founders { display: grid; grid-template-columns: 1fr 1fr; }
.founders div { padding: 0.8rem 0; display: grid; gap: 0.1rem; }
.founders div + div { text-align: right; }
.founders strong { font-weight: 400; font-size: 0.9375rem; }
.founders span { color: var(--ink-3); }
.about__body p { color: var(--ink-2); max-width: 60ch; }
.about__qual { color: var(--ink-2); font-size: 0.9375rem; max-width: 60ch; }
.specs h3 { color: var(--ink-3); margin-bottom: 0.75rem; }
.specs ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 1.5rem; }
.specs li { position: relative; padding: 0.3rem 0; }
.about__cta { justify-self: start; }

/* Pracownia leży między enfiladami: na desktopie zdjęcie stoi, tekst płynie w pionie */
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 120px); row-gap: clamp(24px, 4vh, 44px); align-items: start; padding: clamp(80px, 14vh, 160px) var(--pad); }
  .about__photo { grid-column: 1; grid-row: 1 / span 3; align-self: start; position: sticky; top: 92px; }
  .about__title { grid-column: 2; grid-row: 1; font-size: clamp(2.6rem, 4.4vw, 5rem); }
  .about__body { grid-column: 2; grid-row: 2; }
  .about__aside { grid-column: 2; grid-row: 3; max-width: 34rem; }
}
/* w trybie poziomym Pracownia to pierwszy pokój drugiej enfilady i MUSI zmieścić się w jednym ekranie:
   po lewej jeden tok tekstu, potem specjalizacje i kontakt; po prawej zdjęcie dopasowane do wysokości */
.is-h .about { width: var(--vw); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: clamp(40px, 5vw, 110px); row-gap: clamp(16px, 2.4vh, 24px); padding: clamp(28px, 7vh, 76px) var(--pad); }
.is-h .about__text { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: clamp(14px, 2.8vh, 30px); }
.is-h .about__title { font-size: clamp(2.2rem, min(3.6vw, 6.4vh), 4.4rem); max-width: 16ch; }
.is-h .about__body { gap: clamp(10px, 1.8vh, 16px); }
.is-h .about__aside { grid-column: 1; grid-row: 2; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2.4vh, 24px); align-items: start; }
.is-h .about__qual { grid-column: 1; }
.is-h .specs { grid-column: 1; }
.is-h .specs li { padding-top: 0.15rem; padding-bottom: 0.15rem; }
.is-h .about__cta { grid-column: 1; }
.is-h .about__photo { grid-column: 2; grid-row: 1 / span 2; align-self: center; position: static; }
.is-h .about__photo img { height: min(66vh, 700px); width: auto; }

/* ---------- V. JAK PRACUJEMY: rysunek powstaje, zanim ruszy budowa ---------- */
.process { background: var(--graphite); color: var(--on-dark); display: flex; flex-direction: column; gap: 2.75rem; padding: 88px var(--pad) 80px; }
.process h2 { font-family: var(--sans); font-weight: 300; font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 9ch; }
.stages { position: relative; }
.stages__list { display: grid; gap: 2.5rem; }
.stage { border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }
.stage__num { display: block; font-family: var(--sans); font-size: 0.875rem; line-height: 1.4; color: var(--on-dark-2); font-variant-numeric: lining-nums; }
.stage__title { font-size: 1.25rem; font-weight: 400; margin-top: 1rem; }
.stage__sub { font-family: var(--sans); font-style: normal; font-size: 1rem; line-height: 1.5; margin-top: 0.5rem; }
.stage__pts { display: grid; gap: 0.6rem; margin-top: 1.2rem; }
.stage__pts li { position: relative; padding-left: 1.35rem; font-size: 0.9375rem; line-height: 1.55; color: var(--on-dark-2); }
.stage__pts li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 0.7rem; height: 1px; background: currentColor; opacity: 0.75; }
.plan { display: none; }
.plan path { fill: none; stroke: var(--on-dark); stroke-opacity: 0.62; stroke-width: 1.25; stroke-linecap: square; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }

.is-h .process { width: auto; flex-direction: row; align-items: stretch; gap: clamp(40px, 5vw, 100px); padding: clamp(28px, 7vh, 80px) var(--pad); }
.is-h .process__head { width: calc(var(--vw) * 0.27); display: flex; flex-direction: column; justify-content: center; }
.is-h .process h2 { font-size: clamp(2.4rem, min(4vw, 7.4vh), 4.8rem); }
.is-h .stages { align-self: center; padding-top: clamp(96px, 17vh, 150px); }
.is-h .stages__list { display: flex; gap: clamp(28px, 3.4vw, 64px); }
.is-h .stage { width: calc(var(--vw) * 0.26); border-top: 0; padding-top: 0; }
.is-h .plan { display: block; position: absolute; left: 0; top: 0; width: 100%; height: clamp(96px, 17vh, 150px); overflow: visible; pointer-events: none; }
.is-h .plan path { stroke-dashoffset: 1; }

/* ---------- VI. OPINIE ---------- */
.quotes { background: var(--paper); display: grid; gap: 3rem; padding: 88px var(--pad) 88px; }
.quotes h2 { font-family: var(--sans); font-weight: 300; font-size: clamp(2.4rem, 10vw, 4.2rem); line-height: 1; }
.quotes__src { margin-top: 0.9rem; color: var(--ink-3); font-size: 0.8125rem; }
.quote blockquote p { font-family: var(--sans); font-style: normal; font-size: clamp(1.375rem, 5.5vw, 1.8rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 30ch; text-wrap: pretty; }
.quote figcaption { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 1.4rem; font-size: 0.8125rem; color: var(--ink-2); }
.quote figcaption strong { font-weight: 400; color: var(--ink); }

.is-h .quotes { width: auto; display: flex; align-items: stretch; gap: 0; padding: clamp(28px, 7vh, 80px) calc(var(--pad) * 2) clamp(28px, 7vh, 80px) var(--pad); }
.is-h .quotes__head { width: calc(var(--vw) * 0.24); display: flex; flex-direction: column; justify-content: center; padding-right: clamp(24px, 3vw, 56px); }
.is-h .quotes h2 { font-size: clamp(2.6rem, min(4.2vw, 8vh), 4.9rem); }
.is-h .quote { width: calc(var(--vw) * 0.37); display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(24px, 3.2vw, 60px); }
.is-h .quote blockquote p { font-size: clamp(1.375rem, min(1.8vw, 3.4vh), 2rem); }

/* ============================================================
   PO ZAKRĘCIE: pytania i kontakt płyną już pionowo
   ============================================================ */
.is-h .flow { padding-left: var(--rail); }

.faq { background: var(--paper-2); display: grid; gap: 2.5rem; padding: clamp(80px, 13vh, 150px) var(--pad); }
.faq h2 { font-family: var(--sans); font-weight: 300; font-size: clamp(2.4rem, min(4.4vw, 8vh), 4.9rem); line-height: 1; }
.faq__head p { margin-top: 1.1rem; color: var(--ink-2); }
.faq__list { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 400; line-height: 1.3; transition: color 0.25s var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink-2); }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.25px; background: currentColor; transition: transform 0.45s var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 2.5rem 1.6rem 0; color: var(--ink-2); max-width: 64ch; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.55s var(--ease-out), content-visibility 0.55s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (min-width: 920px) {
  .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 120px); }
  .faq__head { position: sticky; top: clamp(80px, 14vh, 140px); align-self: start; }
}

.contact { background: var(--graphite); color: var(--on-dark); display: grid; gap: 3rem; padding: clamp(80px, 14vh, 170px) var(--pad) clamp(56px, 10vh, 110px); }
.contact__title { font-family: var(--sans); font-weight: 300; font-size: clamp(2.5rem, min(5.6vw, 10vh), 6rem); line-height: 1.08; letter-spacing: -0.02em; }
.contact__lead { margin-top: 1.6rem; font-size: 1.0625rem; color: var(--on-dark-2); max-width: 34ch; }
.contact__info { display: grid; gap: 1.4rem; align-content: start; }
.contact__info dt { font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--on-dark-2); margin-bottom: 0.2rem; }
.contact__info dd { font-size: 1.0625rem; }
.contact__info a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease-out); }
.contact__info a:hover { background-size: 100% 1px; }
.contact__hours { display: block; margin-top: 0.2rem; font-size: 0.8125rem; color: var(--on-dark-2); }
.contact__social { display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(48px, 7vw, 140px); row-gap: clamp(48px, 8vh, 96px); }
  .contact__head { grid-column: 1 / -1; }
}

.form { display: grid; gap: 1.7rem; }
.form__row { display: grid; gap: 1.7rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 0.35rem; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--on-dark-2); }
.field label span { text-transform: none; letter-spacing: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0;
  font-size: 1.0625rem; font-weight: 300; color: var(--on-dark);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.55; }
.field select { appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23eeebe5' stroke-width='1.25'/%3E%3C/svg%3E") right 2px center / 12px 8px no-repeat; padding-right: 1.5rem; }
.field select option { background: var(--graphite); color: var(--on-dark); }
.field input::placeholder, .field textarea::placeholder { color: oklch(95% 0.006 85 / 0.62); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--on-dark); box-shadow: 0 1px 0 var(--on-dark); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field.is-err input, .field.is-err textarea, .field.is-err select { border-color: var(--err); box-shadow: 0 1px 0 var(--err); }
.field__err { min-height: 0; margin-top: 0.45rem; font-size: 0.8125rem; color: var(--err); }
.field__err:empty { display: none; }
.file { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.1rem; margin-top: 0.4rem; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file__btn { color: var(--on-dark); }
.file__btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.file input:focus-visible + .file__btn { outline: 2px solid var(--on-dark); outline-offset: 4px; }
.file__name { font-size: 0.875rem; color: var(--on-dark-2); }
.file__hint { flex-basis: 100%; font-size: 0.8125rem; color: var(--on-dark-2); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 0.4rem; }
.form__submit[aria-busy="true"] { opacity: 0.72; cursor: progress; }
.form__demo { font-size: 0.75rem; color: var(--on-dark-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { display: grid; gap: 0.6rem; align-content: start; outline: none; }
.form-ok p:first-child { font-family: var(--sans); font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1; }
.form-ok p + p { color: var(--on-dark-2); font-size: 1.0625rem; }

.foot { background: var(--graphite); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 26px var(--pad) 104px; font-size: 0.8125rem; }
.foot img { width: 70px; filter: invert(1); opacity: 0.88; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-dark); text-decoration: underline; }
.is-h .foot { padding-bottom: 26px; }

/* Niższy ekran: szersze kolumny zamiast pomniejszania tekstu procesu. */
@media (max-height: 700px) {
  .is-h .hero__intro { gap: 18px; }
  .is-h .hero__text { gap: 20px; }
  .is-h .hero__bottom { gap: 16px; }
  .is-h .about { column-gap: 32px; row-gap: 16px; padding-top: 28px; padding-bottom: 28px; }
  .is-h .about__title { font-size: 2rem; max-width: none; line-height: 1.08; }
  .is-h .about__text { gap: 16px; }
  .is-h .about__body { font-size: 0.9375rem; line-height: 1.5; }
  .is-h .about__qual { line-height: 1.5; }
  .is-h .about__photo img { height: 54vh; }
  .is-h .about__aside { gap: 12px; }
  .is-h .about .specs h3 { margin-bottom: 4px; }
  .is-h .about .specs ul { row-gap: 0; }
  .is-h .about__cta { padding: 0.75rem 1.25rem; }
  .is-h .stage { width: max(320px, calc(var(--vw) * 0.3)); }
  .is-h .stages { padding-top: 72px; }
  .is-h .plan { height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

.form__status { margin: 0; font-size: 0.875rem; color: var(--err); }
.form__status:empty { display: none; }

/* ============================================================
   TELEFON I TABLET (bez trybu poziomego), poprawki z 19.10.2026
   ============================================================ */
/* Belka: sama nazwa rozdziału, bez licznika */
html:not(.is-h) .rail__idx { display: none; }

/* Menu mieści się na ekranie: od góry, mniejsze pozycje, dane kontaktowe w dwóch kolumnach */
html:not(.is-h) .menu { align-content: start; gap: 1.75rem; padding: 72px var(--pad) 28px; }
html:not(.is-h) .menu__list a { font-size: clamp(1.75rem, 8.4vw, 2.75rem); line-height: 1.12; }
html:not(.is-h) .menu__aside { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; font-size: 0.875rem; }
html:not(.is-h) .menu__aside > div { grid-column: 1 / -1; }
html:not(.is-h) .menu__aside > div:nth-child(2), html:not(.is-h) .menu__aside > div:nth-child(3) { grid-column: auto; }
html:not(.is-h) .menu__aside .btn { width: 100%; justify-content: space-between; }

/* Formularz jako wyraźny panel z własnym nagłówkiem */
.contact__form { background: oklch(27% 0.007 70); border: 1px solid var(--line-dark); padding: clamp(24px, 4vw, 48px); }
.form__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; }
.form__intro { margin: 0.6rem 0 1.8rem; color: var(--on-dark-2); font-size: 0.9375rem; }
.field input, .field select, .field textarea { border-bottom-color: oklch(95% 0.006 85 / 0.42); }
@media (max-width: 639px) { .form__submit { width: 100%; justify-content: space-between; } }

/* Ruch na telefonie: każda sekcja po przeczytaniu zostaje w miejscu, a następna nasuwa się na nią.
   W hero tekst stoi, a zdjęcie wjeżdża na niego. Pozycję zatrzymania (top) liczy enfilada.js. */
html.js-anim:not(.is-h) .enfilade,
html.js-anim:not(.is-h) .enfilade__stage,
html.js-anim:not(.is-h) .track,
html.js-anim:not(.is-h) .flow { display: contents; }
html.js-anim:not(.is-h) :is(.hero, .benefits, .index, .about, .process, .quotes, .faq) {
  position: sticky; top: 60px;
  box-shadow: 0 -1px 0 var(--line-light), 0 -24px 48px -24px oklch(19% 0.008 70 / 0.45);
}
html.js-anim:not(.is-h) .hero { box-shadow: none; }
html.js-anim:not(.is-h) .hero__text { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; justify-content: center; }
html.js-anim:not(.is-h) .hero__photo { position: relative; z-index: 1; aspect-ratio: auto; height: calc(100svh - 60px); }
/* kontakt nie jest przyklejony, ale musi przykryć przyklejone pytania */
html.js-anim:not(.is-h) :is(.contact, .foot) { position: relative; }
/* stopka na telefonie: bez zapasu na pływający przycisk (przy kontakcie i tak jest schowany) */
html:not(.is-h) .contact { padding-bottom: 40px; }
html:not(.is-h) .foot { padding: 20px var(--pad) 24px; gap: 0.75rem 1.5rem; }
html:not(.is-h) .foot nav { gap: 0.5rem 1.25rem; }

/* ============================================================
   UKŁAD PIONOWY NA KAŻDYM EKRANIE (tryb bez przewijania w bok)
   Tła sekcji na całą szerokość, treść w środkowej kolumnie (max ok. 1280 px, rośnie z literami).
   Litery i odstępy w rem: do 1920 px stałe (jak XTB), potem rosną płynnie do 2880 px (+25%).
   ============================================================ */
html:not(.is-h) { font-size: clamp(16px, calc(8px + 0.4167vw), 24px); /* do 1920 px dokładnie jak XTB (16), potem rośnie do 20 px przy 2880 px */ --maxw: 80rem; --gut: max(var(--pad), calc((100vw - var(--maxw)) / 2)); }
html:not(.is-h) :is(.rail, .hero__text, .benefits, .index, .about, .process, .quotes, .faq, .contact, .foot) { padding-left: var(--gut); padding-right: var(--gut); }

@media (min-width: 760px) {
  html:not(.is-h) .stages__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
}
@media (min-width: 1024px) {
  html:not(.is-h) .menu { grid-template-columns: 1.35fr 1fr; align-items: end; align-content: center; padding: 12vh var(--gut) 10vh; }
  html:not(.is-h) .menu__list a { font-size: clamp(2.2rem, min(5vw, 7.6vh), 4.75rem); line-height: 1.04; }
  html:not(.is-h) .menu__aside { font-size: 0.9375rem; }
  html:not(.is-h) .menu__aside .btn { width: auto; }

  html:not(.is-h) .hero__title { font-size: clamp(3rem, min(5.2vw, 9vh), 6.5rem); }
  html:not(.is-h) .hero__lead { font-size: 1.125rem; }
  html:not(.is-h) .hero__hint { display: inline-flex; }
  html:not(.is-h) .hero__photo { max-height: calc(100svh - 60px); aspect-ratio: auto; height: 80vh; }

  html:not(.is-h) .process { display: grid; gap: 3rem; }
  html:not(.is-h) .stages__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 2.5vw, 48px); }

  html:not(.is-h) .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 4vw, 72px); align-items: start; }
  html:not(.is-h) .quotes__head { grid-column: 1 / -1; }
  html:not(.is-h) .quote blockquote p { font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
}

/* ============================================================
   PAUZA MIĘDZY DZIAŁAMI (układ pionowy z nasuwaniem)
   Każdy dział zajmuje cały ekran; gdy dojdzie do końca, stoi jeszcze przez --hold przewijania,
   dopiero potem nasuwa się następny („jedno pyknięcie” kółkiem).
   ============================================================ */
:root { --hold: 160px; }
html.js-anim:not(.is-h) :is(.benefits, .index, .about, .process, .quotes, .faq) {
  min-height: calc(100svh - 60px);
  justify-content: center; align-content: center;
  margin-bottom: var(--hold);
}
html.js-anim:not(.is-h) .hero { margin-bottom: var(--hold); }

/* ============================================================
   WARIANTY HERO DO OCENY (?hero=a | b | c)
   ============================================================ */
html:is(.hero-a, .hero-b, .hero-c):not(.is-h) .hero__text { position: relative; min-height: 0; }
html:is(.hero-a, .hero-b, .hero-c):not(.is-h) .hero__photo { height: auto; max-height: none; }

/* A: zdjęcie na cały ekran, ciemny overlay, tekst na zdjęciu (u dołu po lewej) */
html.hero-a:not(.is-h) .hero { position: relative; min-height: 100vh; min-height: 100svh; justify-content: flex-end; }
html.hero-a:not(.is-h) .hero__photo { position: absolute; inset: 0; z-index: 0; aspect-ratio: auto; }
html.hero-a:not(.is-h) .hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(15% 0.008 70 / 0.88) 0%, oklch(15% 0.008 70 / 0.55) 45%, oklch(15% 0.008 70 / 0.3) 100%); }
html.hero-a:not(.is-h) .hero__text { z-index: 1; padding-top: 120px; padding-bottom: clamp(32px, 6vh, 64px); }
html.hero-a:not(.is-h) .hero__lead, html.hero-a:not(.is-h) .hero__eyebrow, html.hero-a:not(.is-h) .hero__note, html.hero-a:not(.is-h) .hero__rating, html.hero-a:not(.is-h) .hero__meta { color: oklch(88% 0.006 85); }

/* B: rozkładówka. Komputer: tekst po lewej na graficie, zdjęcie po prawej na całą wysokość. Telefon: zdjęcie u góry, tekst pod nim. */
html.hero-b:not(.is-h) .hero__photo { order: -1; margin-top: 60px; height: 34svh; aspect-ratio: auto; }
html.hero-b:not(.is-h) .hero__text { padding-top: 2rem; }
@media (min-width: 1024px) {
  html.hero-b:not(.is-h) .hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100svh; }
  html.hero-b:not(.is-h) .hero__text { grid-column: 1; grid-row: 1; justify-content: center; padding-right: clamp(32px, 4vw, 80px); padding-top: 100px; }
  html.hero-b:not(.is-h) .hero__photo { grid-column: 2; grid-row: 1; margin-top: 0; height: 100%; min-height: 100svh; }
  html.hero-b:not(.is-h) .hero__title { font-size: clamp(2.8rem, min(4.4vw, 8.5vh), 6rem); }
}

/* C: jasny, „galeryjny”. Papier, ciemny tekst, zdjęcie w kadrze w kolumnie treści, hasło nachodzi na zdjęcie. */
html.hero-c:not(.is-h) .hero { background: var(--paper); color: var(--ink); padding-bottom: clamp(32px, 6vh, 72px); }
html.hero-c:not(.is-h) .hero__text { padding-top: 110px; padding-bottom: 0; z-index: 1; }
html.hero-c:not(.is-h) :is(.hero__eyebrow, .hero__lead, .hero__note, .hero__rating, .hero__meta) { color: var(--ink-2); }
html.hero-c:not(.is-h) .hero__rating strong { color: var(--ink); }
html.hero-c:not(.is-h) .hero .btn--oak { background: var(--ink); color: var(--paper); }
html.hero-c:not(.is-h) .hero__photo { margin: clamp(2rem, 4vh, 3.5rem) var(--gut) 0; aspect-ratio: 16 / 9; max-height: 70svh; }
@media (min-width: 1024px) {
  html.hero-c:not(.is-h) .hero__text { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); column-gap: clamp(40px, 6vw, 120px); align-items: end; }
  html.hero-c:not(.is-h) .hero__bottom { padding-bottom: 0.5rem; }
  html.hero-c:not(.is-h) .hero__title { font-size: clamp(3rem, min(6vw, 11vh), 8rem); }
  html.hero-c:not(.is-h) .hero__meta { display: none; }
}

/* ============================================================
   SKALA PISMA WG XTB (zmierzone na xtb.com/pl 20.10.2026)
   1440 px: h1 72, h2 48, h3 20, tekst 16, przycisk 14, plakietka 12.  375 px: h1 48, h2 38, h3 24, tekst 14.
   Pomiędzy płynnie; powyżej 1440 rośnie razem z rem (układ pionowy). Grubości zostają lekkie (Raleway 300/400).
   ============================================================ */
:root {
  --fs-h1: clamp(3rem, 2.472rem + 2.2535vw, 4.5rem);
  --fs-h2: clamp(2.375rem, 2.155rem + 0.939vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.538rem - 0.376vw, 1.5rem);
  --fs-body: clamp(0.875rem, 0.831rem + 0.188vw, 1rem);
  --fs-btn: 0.875rem;
  --fs-chip: 0.75rem;
}
html:not(.is-h) .hero__title { font-size: var(--fs-h1); line-height: 1.03; }
html:not(.is-h) :is(.benefits__title, .index h2, .about__title, .process h2, .quotes h2, .faq h2, .contact__title, .form-ok p:first-child) { font-size: var(--fs-h2); line-height: 1.04; }
html:not(.is-h) :is(.benefit h3, .stage__title, .form__title) { font-size: var(--fs-h3); line-height: 1.4; }
html:not(.is-h) .faq summary { font-size: var(--fs-h3); line-height: 1.4; }
html:not(.is-h) .proj__city { font-size: calc(var(--fs-h2) * 0.75); }
html:not(.is-h) .quote blockquote p { font-size: var(--fs-h3); line-height: 1.5; max-width: 34ch; }
html:not(.is-h) :is(.hero__lead, .benefit p, .about__body p, .about__qual, .stage__sub, .stage__pts li, .faq__a, .faq__head p, .contact__lead, .contact__info dd, .form__intro, .specs li) { font-size: var(--fs-body); line-height: 1.5; }
html:not(.is-h) .btn { font-size: var(--fs-btn); }

/* ============================================================
   HERO v2 (podglądy ?hero=a|b|c): plakietki, hasło, opis, przycisk
   ============================================================ */
.hero__text--v2 { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero__proof li, .hero__proof a { display: inline-flex; align-items: center; gap: 0.3rem; }
.hero__proof li { padding: 0.2rem 0.65rem; border: 1px solid currentColor; border-radius: 2rem; font-size: var(--fs-chip); font-weight: 500; line-height: 1.25; letter-spacing: 0.01em; opacity: 0.85; }
.hero__proof a { text-decoration: none; }
.hero__proof a:hover { text-decoration: underline; }
.hero__text--v2 .hero__title { margin-top: 0.5rem; }
.hero__text--v2 .hero__bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.hero__text--v2 .hero__lead { max-width: 40ch; }
.js-anim .hero__proof { opacity: 0; transform: translateY(10px); }
.js-anim.is-in .hero__proof { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out) 0.2s, transform 0.9s var(--ease-out) 0.2s; }
html.hero-c .hero__proof li { opacity: 1; color: var(--ink-2); }
@media (min-width: 1024px) {
  html.hero-c:not(.is-h) .hero__text--v2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); grid-template-areas: "proof proof" "title bottom"; align-items: end; column-gap: clamp(40px, 6vw, 120px); row-gap: 1.75rem; }
  html.hero-c:not(.is-h) .hero__proof { grid-area: proof; }
  html.hero-c:not(.is-h) .hero__text--v2 .hero__title { grid-area: title; margin: 0; }
  html.hero-c:not(.is-h) .hero__text--v2 .hero__bottom { grid-area: bottom; padding-bottom: 0.4rem; }
}
/* A: hero musi zostać przyklejone (sticky też trzyma zdjęcie absolutne), inaczej odjeżdża i odsłania pauzę */
html.hero-a.js-anim:not(.is-h) .hero { position: sticky; }
/* A: tekst wyżej, nie przy samej krawędzi (ok. 15% wysokości ekranu oddechu pod przyciskiem) */
html.hero-a:not(.is-h) .hero__text { padding-bottom: clamp(56px, 15vh, 180px); }

/* ============================================================
   KONTAKT NA KOMPUTERZE: pozioma karta mieszcząca się na jednym ekranie
   lewo: nagłówek + dane (2 kolumny); prawo: formularz w ramce, zagęszczony w 2 kolumny
   ============================================================ */
@media (min-width: 1024px) {
  html:not(.is-h) .contact {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-content: center; column-gap: clamp(40px, 5vw, 96px); row-gap: 2.5rem;
    min-height: calc(100vh - 60px); min-height: calc(100svh - 60px);
    padding-top: clamp(32px, 5vh, 64px); padding-bottom: clamp(32px, 5vh, 64px);
  }
  html:not(.is-h) .contact__lead { margin-top: 1rem; }
  html:not(.is-h) .contact__form { grid-area: form; align-self: center; padding: clamp(24px, 2.4vw, 40px); }
  html:not(.is-h) .form__intro { margin: 0.4rem 0 1.25rem; }
  html:not(.is-h) .form { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; row-gap: 1.1rem; }
  html:not(.is-h) .form__row { display: contents; }
  html:not(.is-h) .form .field:has(#f-message) { grid-column: 1 / -1; order: 2; }
  html:not(.is-h) .form .cf-turnstile { grid-column: 1 / -1; order: 3; }
  html:not(.is-h) .form__foot { grid-column: 1 / -1; order: 4; margin-top: 0.25rem; }
  html:not(.is-h) .field input, html:not(.is-h) .field select, html:not(.is-h) .field textarea { padding: 0.5rem 0; }
  html:not(.is-h) .field textarea { min-height: 4.75rem; }
  html:not(.is-h) .file { margin-top: 0.25rem; gap: 0.5rem 0.9rem; }
  html:not(.is-h) .file__btn { padding: 0.6rem 1rem; }
  html:not(.is-h) .file__hint { font-size: 0.75rem; }
}
/* Kontakt: kompozycja wyśrodkowana w pionie, równy oddech u góry i u dołu (wiersze auto, nie 1fr) */
@media (min-width: 1024px) {
  html:not(.is-h) .contact { grid-template-rows: auto auto; align-content: center; padding-top: clamp(56px, 9vh, 120px); padding-bottom: clamp(56px, 9vh, 120px); }
  html:not(.is-h) .contact__head { align-self: start; }
}

/* Kontakt (23.10): formularz zaraz pod nagłówkiem, obok krótka alternatywa telefoniczna, adres i sieci niżej */
.contact__call { display: grid; gap: 0.4rem; align-content: start; }
.contact__call-title { font-size: var(--fs-h3, 1.25rem); font-weight: 300; margin-bottom: 0.3rem; }
.contact__call a { display: inline-flex; gap: 0.6rem; align-items: baseline; min-height: 44px; align-items: center; text-decoration: none; font-size: var(--fs-body, 1rem); color: var(--on-dark); }
.contact__call a span { color: var(--on-dark-2); min-width: 3.5rem; }
.contact__call a:hover { text-decoration: underline; }
.contact__info { padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
@media (min-width: 1024px) {
}

/* Przegląd na telefonie 23.10: poprawki rytmu */
html:not(.is-h) .process h2 { max-width: 15ch; }
.founders .nw { white-space: nowrap; }
@media (max-width: 759px) {
  html:not(.is-h) .quote blockquote p { font-size: 1.25rem; }
  html:not(.is-h) .faq summary { font-size: 1.125rem; }
  html:not(.is-h) .contact { padding-top: 72px; }
  html:not(.is-h) .founders strong { font-size: 0.875rem; }
}

/* Kontakt (23.10, poprawka gridu): jedna siatka w lewej kolumnie. Kolumna etykiet ma stałą szerokość,
   telefony, e-mail, adres i linki do sieci zaczynają się w tej samej linii. */
.contact { --lab: 6.5rem; }
.contact__call, .contact__info { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); column-gap: 1rem; row-gap: 0.75rem; align-items: baseline; }
.contact__call-title { grid-column: 1 / -1; margin-bottom: 0.25rem; }
.contact__call a { display: grid; grid-column: 1 / -1; grid-template-columns: var(--lab) minmax(0, 1fr); column-gap: 1rem; align-items: baseline; min-height: 0; }
.contact__call a span { min-width: 0; color: var(--on-dark-2); font-size: var(--fs-body, 1rem); }
.contact__call a { color: var(--on-dark); }
.contact__info > div { display: contents; }
.contact__info dt { margin: 0; font-size: var(--fs-body, 1rem); color: var(--on-dark-2); }
.contact__info dd { margin: 0; font-size: var(--fs-body, 1rem); }
.contact__info .contact__social { display: flex; grid-column: 2; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.5rem; }
.contact__info { padding-top: 1.75rem; }
@media (min-width: 1024px) {
  html:not(.is-h) .contact__info { grid-template-columns: var(--lab) minmax(0, 1fr); gap: 0.75rem 1rem; }
}
@media (min-width: 1024px) {
  html:not(.is-h) .contact__form { align-self: start; margin-top: 0.6rem; } /* górna krawędź ramki na linii nagłówka */
}

/* 4K (23.10): lewa kolumna kontaktu to jeden blok (.contact__side), obie kolumny wyśrodkowane razem;
   Realizacje zgrupowane w środku zamiast rozciągnięte na całą wysokość ekranu */
.contact__side { display: grid; gap: 2.25rem; align-content: start; }
@media (min-width: 1024px) {
  html:not(.is-h) .contact { grid-template-areas: "side form"; grid-template-rows: auto; align-items: start; align-content: center; }
  html:not(.is-h) .contact__side { grid-area: side; }
  html:not(.is-h) .contact__form { grid-area: form; margin-top: 0.6rem; }
}
@media (min-width: 960px) and (hover: hover) {
  html:not(.is-h) .index { grid-template-rows: auto auto auto; align-content: center; }
}
@media (max-width: 1023px) {
  .contact__side { display: contents; }
  .contact__head { order: 1; } .contact__form { order: 2; } .contact__call { order: 3; } .contact__info { order: 4; }
}
@media (min-width: 1024px) {
}

/* Bardzo wysokie ekrany (ponad 1500 px, np. 4K przy skali 100%): zwykłe przewijanie bez kart.
   Karta niższa niż ekran odsłaniałaby przyklejony dział pod spodem, a pełnoekranowa dawałaby pustkę. JS (stack) też to pomija. */
@media (min-height: 1501px) {
  html.js-anim:not(.is-h) :is(.hero, .benefits, .index, .about, .process, .quotes, .faq) { position: relative; margin-bottom: 0; box-shadow: none; }
  html.js-anim:not(.is-h) :is(.benefits, .index, .about, .process, .quotes, .faq) { min-height: 0; padding-top: 7rem; padding-bottom: 7rem; }
  html:not(.is-h) .contact { min-height: 0; padding-top: 7rem; padding-bottom: 7rem; }
  html:not(.is-h) .index { min-height: 0; }
  html.hero-a.js-anim:not(.is-h) .hero { position: relative; }
  html.js-anim:not(.is-h) .hero__text { position: relative; }
}
/* Hero A (23.10): blok tekstu wyśrodkowany w pionie pod belką, w tym samym miejscu na każdym ekranie
   (wcześniej przyklejony do dołu: 55% wysokości na laptopie, 78% na 4K) */
html.hero-a:not(.is-h) .hero { justify-content: center; }
html.hero-a:not(.is-h) .hero__text { padding-top: calc(60px + 2rem); padding-bottom: 2rem; }

/* Wspólna siatka (23.10): każdy dział dwukolumnowy dzieli się tak samo, więc prawe kolumny
   (Korzyści, Realizacje, Pracownia, Pytania, Kontakt) zaczynają się w jednej linii na każdym ekranie */
html:not(.is-h) { --col-gap: clamp(40px, 6vw, 7.5rem); }
@media (min-width: 1024px) {
  html:not(.is-h) :is(.benefits, .index, .about, .faq, .contact) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--col-gap); }
  html:not(.is-h) .index .preview { justify-self: start; }
  html:not(.is-h) .about__photo, html:not(.is-h) .about__photo img { width: 100%; }
}
/* X w menu dokładnie w miejscu przycisku menu (na linii siatki, nie przy krawędzi ekranu) */
html:not(.is-h) .menu__close { right: calc(var(--gut) - 10px); }

/* Prawa kolumna (23.10): bloki sięgają prawej krawędzi siatki, tekst ma jedną miarę (ok. 68 znaków) */
@media (min-width: 1024px) {
  html:not(.is-h) .index .preview { justify-self: stretch; }
  html:not(.is-h) .preview__frame { width: 100%; height: min(72vh, 46rem); aspect-ratio: auto; }
  html:not(.is-h) :is(.benefit p, .about__body p, .about__qual) { max-width: 68ch; }
  html:not(.is-h) .benefit { max-width: none; }
}

/* ============================================================
   OPINIE (26.10): podpis nad cytatem na wspólnej linii, cytat skrócony do 6 linii z „Czytaj całą opinię”,
   źródło jako link do wszystkich opinii w Google. Kolumny zaczynają się i kończą podobnie mimo różnych długości.
   ============================================================ */
.quote { display: grid; gap: 1rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line-light); }
.quote .quote__by { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; font-size: 0.875rem; color: var(--ink-3); }
.quote .quote__by strong { font-weight: 500; color: var(--ink); }
.quote__text p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.quote.is-open .quote__text p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.quote__more { justify-self: start; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: 0.875rem; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
.quote__more:hover { color: var(--ink-2); }
.quotes__src a { color: var(--ink-2); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.quotes__src a:hover { color: var(--ink); }
html:not(.is-h) .quote blockquote p { line-height: 1.55; max-width: none; }
@media (min-width: 1024px) {
  html:not(.is-h) .quotes { row-gap: 3rem; }
  html:not(.is-h) .quote blockquote p { font-size: 1.125rem; }
}

/* ============================================================
   SKALA PISMA wg działu Korzyści (26.10.2026, zatwierdzona w SZKIC-DESIGN/podglad-wp/index-pismo.html)
   7 rozmiarów, każdy z jedną rolą. Wartości w rem: do 1920 px 1rem = 16 px, wyżej rośnie razem z układem.
   Grubości: 300 tylko duże tytuły i cytaty, 400 wszystko inne, 500 tylko etykiety 12 px.
   ============================================================ */
html.uklad-pion {
  --t-hero:  clamp(3rem, 2.472rem + 2.2535vw, 4.5rem);   /* 48 -> 72 px: hasło h1 */
  --t-h2:    clamp(2.375rem, 2.155rem + 0.939vw, 3rem);   /* 38 -> 48 px: tytuł działu */
  --t-index: calc(var(--t-h2) * 0.75);                     /* 28 -> 36 px: miasta w Realizacjach (jedyny wyjątek) */
  --t-h3:    1.25rem;                                       /* 20 px: nagłówek */
  --t-body:  1rem;                                          /* 16 px: tekst, także na telefonie */
  --t-small: 0.875rem;                                      /* 14 px: przyciski, podpisy, listwa */
  --t-label: 0.75rem;                                       /* 12 px: plakietki, numery projektów */
}

/* Hasło */
html.uklad-pion:not(.is-h) .hero__title { font-size: var(--t-hero); }

/* Tytuły działów (już były wspólne, zostają) */
html.uklad-pion:not(.is-h) :is(.benefits__title, .index h2, .about__title, .process h2, .quotes h2, .faq h2, .contact__title, .form-ok p:first-child) { font-size: var(--t-h2); font-weight: 300; }

/* Indeks realizacji */
html.uklad-pion:not(.is-h) .proj__city { font-size: var(--t-index); font-weight: 300; }

/* Nagłówki: jeden rozmiar i jedna grubość wszędzie (wcześniej 18 do 23 px i dwie grubości) */
html.uklad-pion:not(.is-h) :is(.benefit h3, .stage__title, .form__title, .contact__call-title) { font-size: var(--t-h3); font-weight: 400; line-height: 1.4; letter-spacing: 0; }
/* pytania FAQ: rozmiar tekstu, bo 14 pozycji to spis do przejrzenia, nie 14 nagłówków; cała lista mieści się na ekranie */
html.uklad-pion:not(.is-h) .faq summary { font-size: var(--t-body); font-weight: 400; line-height: 1.4; padding: 0.9rem 0; }
/* cytaty: rozmiar nagłówka, lżej, bo to głos klienta */
html.uklad-pion:not(.is-h) .quote blockquote p { font-size: var(--t-h3); font-weight: 300; line-height: 1.55; letter-spacing: 0; }

/* Tekst ciągły: 16 px na każdym ekranie */
html.uklad-pion:not(.is-h) :is(.hero__lead, .benefit p, .about__body p, .about__qual, .stage__sub, .stage__pts li, .faq__a, .faq__head p,
  .contact__lead, .contact__info dt, .contact__info dd, .contact__call a, .contact__call a span, .form__intro, .specs li, .founders strong,
  .field input, .field select, .field textarea, .form-ok p + p) { font-size: var(--t-body); }

/* Drobny: przyciski, podpisy, listwa, opisy pomocnicze */
html.uklad-pion:not(.is-h) :is(.btn, .rail__chapter, .rail__name, .rail__idx, .proj__type, .quotes__src, .quote .quote__by, .quote__more,
  .meta, .stage__num, .preview__cap, .field label, .field__err, .file__name, .file__hint, .contact__hours, .form__status, .skip,
  .foot, .foot a, .hero__hint, .menu__list a small, .menu__aside dt) { font-size: var(--t-small); }
html.uklad-pion:not(.is-h) .quote .quote__by strong { font-weight: 400; }

/* Etykieta: tylko plakietki w hero i numery projektów */
html.uklad-pion:not(.is-h) :is(.hero__proof li, .proj__num) { font-size: var(--t-label); font-weight: 500; }

/* ============================================================
   POLISH (impeccable polish, 26.10.2026)
   ============================================================ */

/* Łamanie: nagłówki równymi liniami (bez jednego słowa na końcu), akapity bez sierot */
html.uklad-pion :is(h1 .line > span, h2, h3, .faq summary, .contact__title) { text-wrap: balance; }
html.uklad-pion :is(p, li, dd, .faq__a) { text-wrap: pretty; }

/* Pola dotyku na telefonie: min. 44 px (WCAG 2.5.8).
   Telefony to główna akcja na komórce, więc dostają pełną wysokość wiersza. */
@media (pointer: coarse) {
  html.uklad-pion .contact__call a { min-height: 44px; align-items: center; }
  /* reszta małych linków: niewidzialne pole wokół, układ się nie zmienia */
  html.uklad-pion :is(.rail__logo, .hero__proof a, .quotes__src a, .contact__info dd a, .contact__social a, .foot a) { position: relative; }
  html.uklad-pion :is(.rail__logo, .hero__proof a, .quotes__src a, .contact__info dd a, .contact__social a, .foot a)::after {
    content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%);
  }
}

/* Podpisy założycielek: imiona od góry, „Architektka wnętrz” zawsze w jednej linii u dołu,
   nawet gdy „Skóra-Turewicz” złamie się na telefonie do drugiej linii */
html.uklad-pion .founders div { grid-template-rows: auto 1fr; }
html.uklad-pion .founders div > :last-child { align-self: end; }
/* nazwisko w nierozdzielnym <span class="nw"> łapało szary kolor podpisu roli */
html.uklad-pion .founders strong .nw { color: inherit; }

/* Menu na telefonie: nawigacja u góry, kontakt i „Zapytaj o wycenę” na dole ekranu (pod kciukiem).
   Wolne miejsce idzie między dwie grupy zamiast pod przycisk; na niskich telefonach min. 3rem odstępu. */
@media (max-width: 1023px) {
  html.uklad-pion:not(.is-h) .menu { grid-template-rows: auto 1fr; row-gap: 3rem; }
  html.uklad-pion:not(.is-h) .menu__aside { align-self: end; }
}
