/* kino-domowe.waw.pl, kierunek „Scena Film”: strona to salon, który wieczorem staje się kinem.
   Góra strony to dzień, niżej zmierzch i noc; nocą jedynym światłem jest biel ekranu.
   Kontrakt: sites/kino-domowe.waw.pl/.impeccable/surfaces/src-templates-pages-home-html-j2.md */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  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: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  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;
}

/* ---------- Tokeny ---------- */
:root {
  /* Światło dnia w salonie: chłodny biały tynk, nie krem. */
  --c-day: #eef0f0;
  --c-noon: #dfe4e8;
  /* Zmierzch i noc w salonie: błękit i grafit, nigdy czysta czerń ani złoto. */
  --c-dusk: #2b3a55;
  --c-night: #1b2232;
  --c-deep: #12161f;
  /* Biel ekranu: jedyne światło nocą. */
  --c-screen: #fafafa;
  --c-ink: #151a24;

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --fs-h1: clamp(2.6rem, 1.5rem + 4.6vw, 4.9rem);
  --fs-h1-page: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-lead: clamp(1.15rem, 1.05rem + .45vw, 1.35rem);
  --fs-body: 1.125rem;
  --fs-small: .95rem;

  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-section: clamp(3.75rem, 2.5rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, .5rem + 3vw, 2.5rem);
  --max: 76rem;
  --radius: 6px;
  /* D3: rama ekranu to cienki brzeg bieli, nie passe-partout. */
  --frame: 3px;
  /* D2: granica dwóch tonów to przejście tej wysokości w kolor następnego tonu. */
  --fade: 140px;

  /* Ruch: 200–400 ms, jedno wejście ekranu 700 ms. */
  --d-fast: 160ms;
  --d-ui: 240ms;
  --d-enter: 400ms;
  --d-roll: 700ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* Tony pól: każde pole ustawia tło, tekst, linie, przyciski i fokus. */
.tone-day, .tone-noon, .screen-panel {
  --bg: var(--c-day);
  --ink: var(--c-ink);
  --ink-2: #3d4452;
  --line: #c3c9cf;
  --slot: var(--c-ink);
  --focus: var(--c-ink);
  --field: #ffffff;
  --field-line: #7b8492;
  background: var(--bg);
  color: var(--ink);
}
.tone-noon { --bg: var(--c-noon); --ink-2: #363d4a; --line: #b6bec6; }
.screen-panel { --bg: var(--c-screen); --line: #d5d9de; }
.tone-dusk, .tone-night, .tone-deep {
  --bg: var(--c-dusk);
  --ink: #f2f4f7;
  --ink-2: #ccd4e1;
  --line: #4b5b78;
  --slot: #6f82a6;
  --focus: var(--c-screen);
  background: var(--bg);
  color: var(--ink);
}
.tone-night { --bg: var(--c-night); --ink-2: #bcc5d4; --line: #36425a; }
.tone-deep { --bg: var(--c-deep); --ink-2: #b2bccb; --line: #2b3446; }

/* D2: ostatnia sekcja tonu (klasa to-*) kończy się przejściem w kolor następnego tonu.
   Dolny odstęp jest co najmniej tak wysoki jak przejście, więc tekst nigdy nie stoi na gradiencie. */
.to-noon, .to-dusk, .to-night, .to-deep {
  --to: var(--c-noon);
  background: linear-gradient(to bottom, var(--bg) 0, var(--bg) calc(100% - var(--fade)), var(--to) 100%);
}
/* Selektor z elementem: wygrywa z odstępami sekcji (np. .page-head), żeby tekst nie wchodził na przejście. */
section:is(.to-noon, .to-dusk, .to-night, .to-deep) { padding-bottom: max(var(--sp-section), calc(var(--fade) + var(--sp-3))); }
.to-dusk { --to: var(--c-dusk); }
.to-night { --to: var(--c-night); }
.to-deep { --to: var(--c-deep); }
/* Werdykt 2 (r3-1, r3-2): przejście zachodzi 1 px na następną sekcję (bez jasnego szwu przy ułamkowych wysokościach),
   a sekcja po przejściu ma krótszy górny odstęp, bo przejście już oddziela sekcje. */
section:is(.to-noon, .to-dusk, .to-night, .to-deep) { margin-bottom: -1px; position: relative; z-index: 0; }
section:is(.to-noon, .to-dusk, .to-night, .to-deep) + section, section:is(.to-noon, .to-dusk, .to-night, .to-deep) + .site-foot { padding-top: var(--sp-3); }

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; scrollbar-color: #5b6578 var(--c-day); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  background: var(--c-day);
  color: var(--c-ink);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
::selection { background: var(--c-ink); color: var(--c-screen); }
.tone-dusk ::selection, .tone-night ::selection, .tone-deep ::selection { background: var(--c-screen); color: var(--c-ink); }
:focus-visible { outline: 3px solid var(--focus, var(--c-ink)); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -3rem; z-index: 50; background: var(--c-ink); color: var(--c-screen); padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: .75rem; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--max); } .wrap--narrow > * { max-width: 52rem; }
.tone-noon + .tone-noon, .tone-dusk + .tone-dusk, .tone-night + .tone-night { margin-top: -1px; }
section { padding-block: var(--sp-section); }

.h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.02em; font-weight: 700; }
.hero .h1 span { display: block; }
@media (min-width: 64rem) { .hero .h1 { font-size: clamp(3.4rem, 1rem + 4.2vw, 4.6rem); } .hero .h1 span { white-space: nowrap; } }
.h1--page { font-size: var(--fs-h1-page); line-height: 1.05; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.012em; margin-bottom: var(--sp-3); max-width: 24ch; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 650; margin-bottom: .5rem; }
.lead-txt { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.note { font-size: var(--fs-small); color: var(--ink-2); margin-top: var(--sp-3); }

/* ---------- Sufit ze szczeliną: z niej zjeżdża ekran; ta sama linia otwiera sekcje ---------- */
.ceiling { position: relative; height: 0; border-top: 2px solid var(--line); }
.ceiling__slot { position: absolute; left: 0; top: -4px; width: 5.5rem; height: 6px; background: var(--slot); border-radius: 0 0 2px 2px; }
.ceiling--rule { margin-bottom: var(--sp-4); }
/* D5: linia sufitu tylko w pierwszej sekcji każdego tonu; w następnej sekcji tego samego tonu jej nie ma. */
.tone-day + .tone-day .ceiling--rule, .tone-noon + .tone-noon .ceiling--rule,
.tone-dusk + .tone-dusk .ceiling--rule, .tone-night + .tone-night .ceiling--rule { display: none; }

/* ---------- Ekran: rama każdego zdjęcia ---------- */
.screen { margin: 0; }
.screen__frame {
  background: var(--c-screen);
  padding: var(--frame);
  border-radius: 2px;
  box-shadow: 0 22px 40px -24px rgb(10 14 22 / .55);
}
.screen__frame img { width: 100%; border-radius: 1px; }
.screen figcaption { margin-top: .75rem; font-size: var(--fs-small); color: var(--ink-2); max-width: 52ch; }
.screen--hang .ceiling { margin-bottom: 0; }
.screen--hang .ceiling__slot { left: 4%; width: 92%; }
.screen--hang .screen__frame { margin-inline: 5%; transform-origin: top; }

/* Sygnatura: ekran rozwija się raz ze szczeliny po wczytaniu (bez JS widoczny od razu). */
@keyframes roll { from { clip-path: inset(0 -3rem 100% -3rem); } to { clip-path: inset(0 -3rem -4rem -3rem); } }
.js [data-roll] { animation: roll var(--d-roll) var(--ease) 180ms both; }

/* Wejście sekcji: raz, opacity + 8 px. */
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--d-enter) var(--ease-out), transform var(--d-enter) var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Przyciski-pigułki ---------- */
.pill {
  --pill-bg: var(--ink);
  --pill-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 999px; border: 1.5px solid var(--pill-bg);
  background: var(--pill-bg); color: var(--pill-fg);
  font: inherit; font-size: 1.02rem; font-weight: 650; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.pill:active { transform: translateY(1px); }
.pill[disabled], .pill[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.pill--big { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.08rem; }
.pill--line { --pill-bg: transparent; --pill-fg: var(--ink); border-color: var(--ink); }
.pill--screen { --pill-bg: var(--c-screen); --pill-fg: var(--c-ink); border-color: var(--c-screen); }
@media (hover: hover) and (pointer: fine) {
  .pill--ink:hover { --pill-bg: var(--ink-2); border-color: var(--ink-2); }
  .pill--line:hover { --pill-bg: var(--ink); --pill-fg: var(--bg); }
  .pill--screen:hover { --pill-bg: #dfe3ea; border-color: #dfe3ea; }
  .screen__frame img { transition: filter var(--d-fast) var(--ease); }
  .screen:hover .screen__frame img { filter: brightness(1.06); }
}
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--sp-3); }
.ctas__short { display: none; }
/* D4: w hero strony głównej na telefonie jeden rząd: pigułka telefonu i obok link tekstowy do formularza. */
@media (max-width: 47.99rem) {
  .ctas--compact { flex-wrap: nowrap; align-items: center; gap: 1.25rem; margin-top: var(--sp-2); }
  .ctas--compact .pill--big { min-height: 52px; padding-inline: 1.25rem; }
  .ctas--compact .ctas__form { min-height: 48px; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1.5px; white-space: nowrap; }
  .ctas--compact .ctas__long { display: none; }
  .ctas--compact .ctas__short { display: inline; }
}
.more { display: inline-block; margin-top: 1rem; font-weight: 650; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- Nagłówek ---------- */
/* D4: pełne, nieprzezroczyste tło nagłówka. */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--c-day); border-bottom: 1px solid #d3d8dc; }
.site-head__in { max-width: var(--max); margin-inline: auto; padding: .7rem var(--gutter); display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--c-ink); margin-right: auto; }
.logo { min-width: 0; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; overflow: hidden; }
.logo__txt strong { font-size: 1.12rem; font-weight: 700; }
.logo__txt span { font-size: .8rem; color: #4a5260; }
.logo--night { color: var(--ink); }
.logo--night .logo__txt span { color: var(--ink-2); }
.nav ul { list-style: none; display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 550; color: var(--c-ink); padding-block: .5rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.head-tel { --ink: var(--c-ink); --bg: var(--c-day); --ink-2: #3d4452; white-space: nowrap; }
.menu-btn { display: none; }

@media (max-width: 63.99rem) {
  .site-head__in { gap: .75rem; }
  .head-tel { min-height: 44px; padding: .55rem 1rem; font-size: .98rem; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .9rem;
    background: none; border: 1.5px solid var(--c-ink); border-radius: 999px; font: inherit; font-weight: 650; color: var(--c-ink); cursor: pointer;
    min-width: 6.4rem; justify-content: center;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-day); border-bottom: 1px solid #c3c9cf;
    padding: .5rem var(--gutter) 1.25rem;
    transform: translateY(-.5rem); opacity: 0; visibility: hidden;
    transition: opacity var(--d-ui) var(--ease), transform var(--d-ui) var(--ease), visibility 0s linear var(--d-ui);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: .8rem 0; font-size: 1.15rem; border-bottom: 1px solid #d3d8dc; }
}
@media (max-width: 26rem) {
  .logo__txt span { display: none; }
  /* Logo, telefon i stałej szerokości „Menu/Zamknij” mieszczą się obok siebie bez ucinania nazwy. */
  .site-head__in { gap: .5rem; }
  .logo { gap: .5rem; }
  .logo__txt strong { font-size: 1rem; }
  .head-tel { padding-inline: .85rem; }
}

/* ---------- Hero ---------- */
/* Slider zdjęć realizacji (decyzja właściciela 2026-10-28, „jak na video.com.pl”): wieczór na całą szerokość,
   tekst na przyciemnieniu zdjęcia. Pod sliderem pas zaufania wraca do dnia, dalej tony idą już tylko w dół.
   Telefon: zdjęcie 16:10 nad tekstem (D4), tekst na nocy, kropki w rogu zdjęcia. */
.hero { position: relative; isolation: isolate; padding: 0; overflow: hidden; }
.hero__slides { position: relative; aspect-ratio: 16 / 10; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 900ms var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--c-night) 0, rgb(27 34 50 / 0) 40%); }
.hero__cap { display: none; }
.hero__copy { position: relative; padding-block: 0 2.5rem; margin-top: -1.25rem; }
.hero__copy .h1 { color: var(--c-screen); }
.hero__copy .lead-txt { margin: var(--sp-2) 0 var(--sp-1); max-width: 34rem; color: var(--ink); }
.hero__price { font-size: var(--fs-h3); font-weight: 650; margin: 0; }
.hero__nav { position: absolute; top: .5rem; inset-inline: 0; margin-inline: auto; display: flex; justify-content: flex-end; align-items: center; gap: .25rem; z-index: 2; }
.hero__dot { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero__dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: rgb(250 250 250 / .45); transition: background-color var(--d-fast) var(--ease); }
.hero__dot[aria-current="true"]::before { background: var(--c-screen); }
.hero__pause { width: 36px; height: 36px; margin-left: .35rem; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid rgb(250 250 250 / .6); background: rgb(18 22 31 / .45); color: var(--c-screen); cursor: pointer; }
.hero__pause svg { width: 16px; height: 16px; fill: currentColor; }
.hero__pause .i-play, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
@media (hover: hover) and (pointer: fine) { .hero__dot:hover::before { background: rgb(250 250 250 / .8); } }
@media (max-width: 47.99rem) {
  .hero .h1 { font-size: 2.45rem; }
  .hero__copy .lead-txt { font-size: 1.05rem; line-height: 1.45; }
  .hero__price { font-size: 1.15rem; }
}
@media (min-width: 48rem) {
  .hero { min-height: clamp(34rem, 82svh, 50rem); display: grid; align-items: center; }
  .hero__slides { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
  .hero__slide::after { background: linear-gradient(90deg, rgb(18 22 31 / .9) 0, rgb(18 22 31 / .72) 34%, rgb(18 22 31 / .12) 72%, rgb(18 22 31 / 0) 100%), linear-gradient(to top, rgb(18 22 31 / .55) 0, rgb(18 22 31 / 0) 28%); }
  .hero__slide img { object-position: 70% 50%; }
  .hero__copy { margin: 0 auto; padding-block: clamp(4rem, 2rem + 6vw, 7rem) 6rem; width: 100%; }
  .hero__copy > * { max-width: 36rem; }
  .hero__cap { display: block; position: absolute; right: var(--gutter); bottom: 1.6rem; z-index: 1; max-width: 38ch; margin: 0; text-align: right; font-size: .9rem; line-height: 1.45; color: #dfe4ec; text-shadow: 0 1px 2px rgb(0 0 0 / .6); }
  .hero__nav { top: auto; bottom: 1.25rem; justify-content: flex-start; max-width: var(--max); }
}
@media (min-width: 64rem) {
  .hero .h1 { font-size: clamp(3.4rem, 1rem + 4.2vw, 4.6rem); }
  .hero__copy .lead-txt { margin: var(--sp-3) 0 var(--sp-2); }
}
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* D7: pas zaufania pod hero, 4 duże znaki z podpisami (telefon 2×2), na dniu, tekst w kolorze tuszu. */
section.hero-trust { padding: 0; }
.hero__trust { padding: var(--sp-4) 0 var(--sp-5); }
.trust { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.trust__item { display: grid; align-content: start; gap: .2rem; border-top: 2px solid var(--line); padding-top: var(--sp-2); }
.trust__item a { display: grid; gap: .2rem; text-decoration: none; }
.trust__big { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.trust__small { font-size: var(--fs-small); color: var(--ink); line-height: 1.4; }
.trust__item a .trust__small { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.trust__item a:hover .trust__small { text-decoration-thickness: 2px; }
@media (min-width: 48rem) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Dwie drogi ---------- */
.paths { padding-top: 0; }
.paths__grid { display: grid; gap: var(--sp-3); }
.path { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius); }
.path--main { background: var(--c-screen); box-shadow: 0 22px 40px -28px rgb(10 14 22 / .4); }
.path--side { border: 1.5px solid var(--line); }
.path__price { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); font-weight: 700; margin-bottom: .75rem; letter-spacing: -.01em; }
.path .pill { margin-top: .5rem; }
.ticks { list-style: none; margin: 0 0 1.25rem; display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .9rem; height: 6px; background: var(--slot); border-radius: 1px; }
@media (min-width: 56rem) { .paths__grid { grid-template-columns: 1.45fr 1fr; align-items: start; } }

/* ---------- Pary: co robimy ---------- */
.shop__head { display: grid; gap: .5rem var(--sp-5); margin-bottom: var(--sp-4); }
.pairs { margin: 0; display: grid; gap: var(--sp-4) var(--sp-5); }
.pairs__row dt { font-weight: 650; font-size: var(--fs-h3); line-height: 1.25; margin-bottom: .4rem; }
.pairs__row dd { margin: 0; color: var(--ink-2); }
@media (min-width: 48rem) { .pairs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .shop__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .pairs { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Tabela porównawcza: telewizor ze sklepu / kino w salonie (D6) ---------- */
.vs { width: 100%; border-collapse: collapse; }
.vs th, .vs td { text-align: left; vertical-align: top; padding: 1.1rem 1.25rem; }
.vs thead th { font-size: var(--fs-small); font-weight: 650; color: var(--ink-2); padding-block: .75rem; border-bottom: 2px solid var(--line); }
.vs thead .vs__us { color: var(--c-ink); }
.vs tbody th { font-size: var(--fs-h3); font-weight: 650; line-height: 1.3; padding-left: 0; width: 22%; }
.vs tbody td { color: var(--ink-2); width: 32%; }
.vs .vs__us { background: var(--c-screen); }
.vs tbody td.vs__us { color: var(--c-ink); width: 46%; }
.vs tbody tr + tr > * { border-top: 1px solid var(--line); }
.vs tbody tr + tr > .vs__us { border-top-color: #d5d9de; }
@media (max-width: 47.99rem) {
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; width: auto; }
  .vs tbody tr { padding-block: 1.25rem; }
  .vs tbody tr + tr { border-top: 1px solid var(--line); }
  .vs tbody tr + tr > * { border-top: 0; }
  .vs tbody th, .vs tbody td { width: auto; padding: 0; }
  .vs tbody th { margin-bottom: .5rem; }
  .vs tbody td { padding-block: .35rem; }
  .vs tbody td.vs__us { width: auto; margin-top: .5rem; padding: .75rem 1rem; border-radius: var(--radius); }
  .vs td::before { content: attr(data-label); display: block; font-size: .85rem; font-weight: 650; color: var(--ink-2); }
  .vs td.vs__us::before { color: #3d4452; }
}

/* ---------- Tekst i zdjęcie ---------- */
.split__grid { display: grid; gap: var(--sp-4); align-items: center; }
.split__copy p { color: var(--ink-2); }
.split__copy .pill { margin-top: .75rem; }
.tone-noon + .tone-noon { padding-top: 0; }
@media (min-width: 64rem) {
  .split__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
}
@media (max-width: 63.99rem) {
  .split--flip .screen { order: 2; }
}

/* ---------- Przed wykończeniem: zdjęcie i lista ---------- */
.prep__grid { display: grid; gap: var(--sp-4); align-items: start; }
.prep__copy p { color: var(--ink-2); }
.prep__list { margin-bottom: 1.25rem; }
.prep__copy .pill { margin-top: .5rem; }
@media (min-width: 64rem) { .prep__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-5); } }
@media (max-width: 63.99rem) { .prep__grid .screen { order: 2; } }

/* ---------- Kroki: jedna oś czasu (D6) ---------- */
/* Telefon i tablet: pionowa linia łączy cyfry. Desktop: kroki w jednym rzędzie, cyfry na wspólnej linii sufitu ze szczelinami. */
.tone-dusk + .tone-dusk { padding-top: 0; }
.steps { list-style: none; counter-reset: s; position: relative; display: grid; gap: var(--sp-4); }
.steps__item { counter-increment: s; position: relative; padding-left: 3.75rem; }
.steps__item::before {
  content: counter(s);
  position: absolute; left: 0; top: -.1rem; width: 2.5rem; text-align: center;
  font-size: 2.1rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.steps__item:not(:last-child)::after {
  content: ""; position: absolute; left: calc(1.25rem - 1px); top: 2.6rem; bottom: calc(-1 * var(--sp-4) + .5rem);
  width: 2px; background: var(--line);
}
.steps__item .h3 { margin-bottom: .35rem; }
.steps__item p { color: var(--ink-2); margin: 0; }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--sp-3); }
  .steps::before { content: ""; position: absolute; left: 0; right: 0; top: 3.6rem; border-top: 2px solid var(--line); }
  .steps__item { padding: 5rem 0 0; }
  .steps__item::before { top: 0; width: auto; text-align: left; font-size: 3.25rem; }
  .steps__item::after, .steps__item:not(:last-child)::after {
    content: ""; position: absolute; left: 0; top: calc(3.6rem - 4px); bottom: auto;
    width: 3rem; height: 6px; background: var(--slot); border-radius: 0 0 2px 2px;
  }
  .steps__item .h3 { font-size: clamp(1.15rem, .9rem + .45vw, 1.35rem); }
  .steps__item p { font-size: 1.02rem; }
}

/* ---------- Ceny ---------- */
.levels__table { width: 100%; border-collapse: collapse; margin-top: var(--sp-3); }
.levels__table th, .levels__table td { text-align: left; vertical-align: top; padding: 1.25rem 1.5rem 1.25rem 0; }
.levels__table thead th { font-size: var(--fs-small); font-weight: 550; color: var(--ink-2); padding-bottom: .5rem; border-bottom: 2px solid var(--line); }
.levels__table tbody th { font-size: var(--fs-h3); font-weight: 650; width: 28%; }
.levels__price { font-size: var(--fs-h3); font-weight: 700; white-space: nowrap; width: 26%; }
.levels__table tbody td:last-child { color: var(--ink-2); }
.levels__table tbody tr + tr > * { border-top: 1px solid var(--line); }
@media (max-width: 47.99rem) {
  .levels__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .levels__table, .levels__table tbody, .levels__table tr, .levels__table th, .levels__table td { display: block; width: auto; }
  .levels__table tr { padding-block: 1rem; }
  .levels__table th, .levels__table td { padding: .15rem 0; }
  .levels__price { white-space: normal; }
  .levels__table tbody th, .levels__table .levels__price { width: auto; }
  .levels__table tbody tr + tr > * { border-top: 0; }
  .levels__table tbody tr + tr { border-top: 1px solid var(--line); }
}

/* ---------- Realizacje: zdjęcia jako jedyne światło ---------- */
.work { padding-top: 0; }
.work__grid { display: grid; gap: var(--sp-4) var(--sp-3); margin-top: var(--sp-4); }
@media (min-width: 48rem) { .work__grid { grid-template-columns: repeat(2, 1fr); } .work__item--wide { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .work__grid { grid-template-columns: repeat(6, 1fr); align-items: start; } .work__item, .work__item--wide { grid-column: span 2; } .work__item:nth-child(-n+2) { grid-column: span 3; } }
.work__grid .screen__frame img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { padding-top: var(--sp-section); } .tone-night + .faq.tone-night { padding-top: 0; }
.faq__list { border-top: 2px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.25rem 3rem 1.25rem 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 1.1rem; height: 2px; background: var(--ink);
  transition: transform var(--d-ui) var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover { text-decoration: underline; text-underline-offset: .3em; } }
.faq__a { padding: 0 0 1.5rem; color: var(--ink-2); max-width: 66ch; }

/* ---------- Formularz: jasny ekran w nocy ---------- */
.form-scene { padding-top: var(--sp-section); } .tone-night + .form-scene { padding-top: 0; }
.form-scene__grid { display: grid; gap: var(--sp-4); align-items: start; }
.form-scene__aside .lead-txt { color: var(--ink-2); }
.or-call { font-weight: 650; }
.or-call a { white-space: nowrap; }
.screen-panel { border-radius: var(--radius); padding: clamp(1.25rem, .75rem + 2.5vw, 2.5rem); }
@media (min-width: 64rem) { .form-scene__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: var(--sp-5); } .form-scene__aside { position: sticky; top: 6.5rem; } }

.qform { display: grid; gap: 1.25rem; }
.row2 { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .choice legend { font-weight: 650; font-size: 1rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--field-line); border-radius: var(--radius);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.field input[aria-invalid="true"] { border-color: #a3261b; box-shadow: 0 0 0 1px #a3261b; }
.field input:disabled, .field textarea:disabled { background: #eceef0; cursor: not-allowed; }
.field small { color: var(--ink-2); font-size: .9rem; }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem;
  border: 1.5px solid var(--field-line); border-radius: 999px; font-size: .98rem; font-weight: 550; background: var(--field);
  transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.chip input:hover + span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--c-screen); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip input:disabled + span { opacity: .5; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; font-size: .98rem; }
.consent input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--c-ink); }
.consent input[aria-invalid="true"] { outline: 2px solid #a3261b; outline-offset: 2px; }
.req-note { font-size: .9rem; color: var(--ink-2); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform .pill { justify-self: start; }
.field__err { margin: .1rem 0 0; font-size: .92rem; font-weight: 600; color: #a3261b; }
.field__err::before { content: "Błąd: "; }
.notice { display: none; padding: 1rem 1.15rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.notice:target, .notice.is-on { display: block; }
.notice:focus { outline: none; }
.notice--ok { background: #e3f1e6; color: #12391d; border: 1.5px solid #2e6b3d; }
.notice--err { background: #f8e4e1; color: #5c140c; border: 1.5px solid #a3261b; }

/* ---------- Podstrony ---------- */
.page-head { padding-block: clamp(2.25rem, 1.5rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head .lead-txt { margin-top: var(--sp-3); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-small); color: var(--ink-2); margin-bottom: var(--sp-3); }
.crumbs a { color: var(--ink-2); }

/* ---------- Stopka ---------- */
.site-foot { padding-block: var(--sp-5) var(--sp-3); }
.site-foot__grid { display: grid; gap: var(--sp-4); }
.site-foot__lead p { color: var(--ink-2); margin-top: 1rem; max-width: 36ch; }
.foot-h { font-size: 1rem; font-weight: 650; margin-bottom: .75rem; }
.foot-h--gap { margin-top: var(--sp-3); }
.foot-list { list-style: none; display: grid; gap: .45rem; font-style: normal; color: var(--ink-2); line-height: 1.5; }
.foot-list a { color: var(--ink); display: inline-block; padding-block: .3rem; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
@media (min-width: 56rem) { .site-foot__grid { grid-template-columns: 1.25fr .85fr 1.25fr 1.15fr; } }
.foot-list a[href^="mailto"] { overflow-wrap: anywhere; }

/* ---------- Pasek połączenia (telefon) ---------- */
.dock { display: none; }
@media (max-width: 63.99rem) {
  .dock {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: var(--c-day); border-top: 1px solid #c3c9cf;
    --ink: var(--c-ink); --bg: var(--c-day); --ink-2: #3d4452;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform var(--d-ui) var(--ease), visibility 0s linear var(--d-ui);
  }
  .dock.is-on { transform: none; visibility: visible; transition-delay: 0s; }
  html { scroll-padding-bottom: 5.5rem; }
  .dock .pill { min-height: 50px; padding-inline: .75rem; font-size: 1rem; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ---------- Ograniczenie ruchu: stan końcowy od razu ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-roll] { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
