/* =============================================================================
   MAR-FLIZ — style.css
   Kierunek: "dziennik budowy" (field ledger) — ciepła paleta wapienna + ochra,
   numerowane rozdziały, grube linie, kwadratowe krawędzie, realne fotografie.
   Typografia: Fraunces (display) / Archivo (tekst). Zero ściętych narożników.
   ============================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- Tokeny ---------- */
:root {
  --paper:    #F0E9DB;   /* baza: ciepły wapienny tynk */
  --paper-2:  #E8DECC;   /* pas alternatywny */
  --card:     #F8F3E9;   /* elementy wypukłe / pola */
  --ink:      #1B1712;   /* ciepła czerń */
  --ink-soft: #2C261E;
  --muted:    #5E5347;   /* tekst pomocniczy (AA na papierze) */
  --amber:    #B8791F;   /* akcent (duże elementy / dekor) */
  --amber-ink:#8A5A12;   /* akcent w tekście na jasnym (AA) */
  --amber-lite:#D69B3C;  /* akcent na ciemnym tle */
  --cream:    #EFE7D8;   /* tekst na ciemnym */
  --line:     rgba(27, 23, 18, 0.14);
  --line-2:   rgba(27, 23, 18, 0.32);
  --line-lite:rgba(239, 231, 216, 0.16); /* linie na ciemnym */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.15rem, 5vw, 3.2rem);

  --shadow: 0 24px 50px -30px rgba(27,19,14,.55);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Baza ---------- */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-weight: 700; }
.hero-title, .chapter-title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
p { text-wrap: pretty; }
strong { font-weight: 700; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- Focus / dostępność ---------- */
:focus-visible { outline: 3px solid var(--amber-ink); outline-offset: 3px; }
.section-dark :focus-visible { outline-color: var(--amber-lite); }
.skip-link {
  position: absolute; left: 1rem; top: -3.5rem;
  background: var(--ink); color: var(--cream);
  padding: .7rem 1.1rem; z-index: 200;
  transition: top .2s var(--ease); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Przyciski ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  letter-spacing: .005em;
  padding: .85em 1.5em; border: 1.5px solid var(--btn-bd); border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-solid  { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-bd: var(--ink); }
.btn-solid:hover  { background: var(--amber-ink); border-color: var(--amber-ink); color: #fff; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn-outline:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-accent { --btn-bg: var(--amber-lite); --btn-fg: var(--ink); --btn-bd: var(--amber-lite); }
.btn-accent:hover { background: #E7AC4E; border-color: #E7AC4E; color: var(--ink); }
.btn-light  { --btn-bg: var(--cream); --btn-fg: var(--ink); --btn-bd: var(--cream); }
.btn-light:hover  { background: #fff; border-color: #fff; color: var(--ink); }
.section-dark .btn-outline { --btn-fg: var(--cream); --btn-bd: var(--line-lite); }
.section-dark .btn-outline:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(9px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-2); background: color-mix(in srgb, var(--paper) 95%, transparent); }
.header-inner { display: flex; align-items: center; gap: 1.4rem; height: 70px; }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--amber); color: var(--ink);
  font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.logo-word { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; letter-spacing: -0.01em; }
.logo-amp { color: var(--amber-ink); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 1.7rem; padding: 0; }
.main-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink); padding: .4rem 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.phone-link { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.phone-link svg { color: var(--amber-ink); }
.phone-link:hover { color: var(--amber-ink); }

.nav-toggle { display: none; }

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(3.6rem, 8vw, 7.5rem); position: relative; }
.section-paper { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark .chapter-title { color: var(--cream); }

/* Nagłówek rozdziału: numer + etykieta + gruba linia (spójny motyw całej strony) */
.chapter {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: .9rem; margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 2px solid var(--ink);
}
.section-dark .chapter, .chapter--light { border-bottom-color: var(--cream); }
.chapter-idx {
  font-family: var(--font-display); font-weight: 900; font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1; color: var(--amber-ink);
}
.section-dark .chapter-idx, .chapter--light .chapter-idx { color: var(--amber-lite); }
.chapter-label {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; color: var(--muted);
}
.section-dark .chapter-label { color: color-mix(in srgb, var(--cream) 74%, transparent); }

.chapter-title { font-weight: 600; font-size: clamp(1.75rem, 4vw, 2.9rem); max-width: 20ch; margin-bottom: 1.1rem; }
.chapter-lead { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 52ch; }
.section-dark .chapter-lead { color: color-mix(in srgb, var(--cream) 80%, transparent); }
.chapter-lead a, .kontakt-lead a { color: var(--amber-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.section-dark .chapter-lead a { color: var(--amber-lite); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.6rem, 6vw, 4.5rem); padding-bottom: 0; }
.eyebrow {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: .8rem; color: var(--amber-ink);
  display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--amber); }

.hero-title {
  font-weight: 900;
  font-size: clamp(2.6rem, 7.6vw, 5.4rem);
  max-width: 15ch; margin-bottom: .5rem;
}
.hero-pillars {
  display: flex; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  color: var(--amber-ink);
  margin: 0 0 1.8rem;
}
.pillar { white-space: nowrap; }
.pillar:not(:last-child)::after {
  content: ""; display: inline-block;
  width: 4px; height: .68em; margin: 0 .65rem;
  background: var(--amber); vertical-align: middle; transform: translateY(-.05em);
}
.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;
}

.hero-body { display: grid; gap: 1.8rem; max-width: 60rem; }
.hero-lead { font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: var(--muted); max-width: 46rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-facts {
  list-style: none; padding: 1.6rem 0 0; margin-top: 2.4rem;
  border-top: 2px solid var(--ink);
  display: grid; gap: 1.1rem;
}
.hero-facts li {
  display: flex; align-items: baseline; gap: .9rem;
  font-size: 1rem; font-weight: 500; color: var(--ink);
}
.fact-mark {
  font-family: var(--font-display); font-weight: 900; font-variant-numeric: tabular-nums;
  color: var(--amber-ink); font-size: 1.05rem; flex: none; min-width: 1.8rem;
}

/* Pas fotografii — pełna szerokość, flush do krawędzi */
.hero-strip {
  margin-top: clamp(2.6rem, 6vw, 4.5rem);
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 3px; overflow-x: auto; scroll-snap-type: x mandatory;
  background: var(--ink);
  scrollbar-width: thin;
}
.strip-cell { margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; overflow: hidden; }
.strip-cell img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- DLACZEGO / obawy (Q&A) ---------- */
.qa-list { display: grid; gap: 0; margin-top: .5rem; }
.qa { padding: clamp(1.4rem, 3vw, 2rem) 0; border-top: 1px solid var(--line-2); }
.qa:first-child { border-top: none; }
.qa-q {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.2; color: var(--amber-ink);
  margin-bottom: .7rem; max-width: 26ch;
}
.qa-a { font-size: 1.06rem; color: var(--ink); max-width: 60ch; }
.qa-a strong { color: var(--ink); box-shadow: inset 0 -0.5em 0 color-mix(in srgb, var(--amber) 26%, transparent); }

/* ---------- ZAKRES (sześć rzędów) ---------- */
.scope { list-style: none; padding: 0; margin-top: .5rem; }
.scope-row {
  display: grid; gap: 1rem 0;
  grid-template-columns: 1fr;
  align-items: start;
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0;
  border-top: 1px solid var(--line-lite);
}
.scope-row:first-child { border-top: none; }
.scope-idx {
  font-family: var(--font-display); font-weight: 900; font-variant-numeric: tabular-nums;
  font-size: 1.4rem; color: var(--amber-lite); line-height: 1;
}
.scope-text h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.4rem; margin-bottom: .5rem; letter-spacing: -0.01em; }
.scope-text p { color: color-mix(in srgb, var(--cream) 80%, transparent); max-width: 52ch; }
.scope-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.scope-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02); }

/* ---------- PROCES ---------- */
.process { list-style: none; padding: 0; display: grid; gap: 0; margin-top: .5rem; }
.process-step { padding: clamp(1.4rem, 3vw, 1.9rem) 0; border-top: 1px solid var(--line-2); }
.process-step:first-child { border-top: none; }
.process-num {
  display: block; font-family: var(--font-display); font-weight: 900; font-variant-numeric: tabular-nums;
  font-size: 1.6rem; color: var(--amber-ink); margin-bottom: .7rem; line-height: 1;
}
.process-step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.22rem; margin-bottom: .45rem; }
.process-step p { color: var(--muted); font-size: .98rem; max-width: 34ch; }

/* ---------- KALKULATOR ---------- */
.calc { display: grid; gap: 0; margin-top: .5rem; border: 1.5px solid var(--ink); background: var(--card); }
.calc-inputs { display: grid; gap: 1.7rem; padding: clamp(1.4rem, 4vw, 2.3rem); }
.field { display: grid; gap: .8rem; }
.field-label { font-weight: 600; font-size: .96rem; }
.field-note { font-weight: 400; color: var(--muted); font-size: .82rem; }

.range-row { display: grid; gap: 1rem; grid-template-columns: 1fr auto; align-items: center; }
.range-value { display: inline-flex; align-items: baseline; gap: .3rem; border: 1.5px solid var(--line-2); padding: .35rem .6rem; background: var(--paper); }
.range-value input { width: 3.4rem; border: none; background: transparent; font-weight: 700; font-size: 1.15rem; text-align: right; font-variant-numeric: tabular-nums; }
.range-value input:focus { outline: none; }
.range-value .unit { color: var(--muted); font-size: .9rem; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; background: var(--line-2); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; background: var(--ink); border: 3px solid var(--card); border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); transition: transform .15s var(--ease), background .15s var(--ease); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); background: var(--amber-ink); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; background: var(--ink); border: 3px solid var(--card); border-radius: 50%; }

.segmented { display: grid; gap: .6rem; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  background: var(--paper); border: 1.5px solid var(--line-2); color: var(--ink);
  padding: .9rem 1rem; text-align: left; cursor: pointer; font-weight: 600; font-size: .98rem;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.seg-btn .seg-hint { font-weight: 400; font-size: .78rem; color: var(--muted); }
.seg-btn:hover { border-color: var(--ink); }
.seg-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.seg-btn.is-active .seg-hint { color: color-mix(in srgb, var(--cream) 76%, transparent); }

.field-split { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stepper-field { display: grid; gap: .8rem; }
.stepper { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: stretch; border: 1.5px solid var(--line-2); background: var(--paper); }
.step-btn { background: transparent; border: none; cursor: pointer; font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1; display: grid; place-items: center; transition: background .14s var(--ease), color .14s var(--ease); }
.step-btn:hover { background: var(--ink); color: var(--cream); }
.stepper input { border: none; background: transparent; text-align: center; font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; border-inline: 1.5px solid var(--line); }
.stepper input:focus { outline: none; background: color-mix(in srgb, var(--amber) 12%, transparent); }
/* ukryj natywne strzałki number */
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type=number] { -moz-appearance: textfield; }

/* Panel wyniku — ciemny, kontrastowy */
.calc-result { background: var(--ink); color: var(--cream); padding: clamp(1.6rem, 4vw, 2.3rem); align-self: stretch; }
.result-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 600; color: var(--amber-lite); margin-bottom: .7rem; }
.result-value {
  font-family: var(--font-display); font-weight: 900; font-variant-numeric: tabular-nums;
  font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1; letter-spacing: -0.02em;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .12em; color: var(--cream);
}
.result-dash { color: var(--amber-lite); }
.result-unit { font-size: .42em; color: var(--amber-lite); font-weight: 700; }
.result-split {
  display: grid; gap: 1px; margin: 1.4rem 0 0; padding: 0;
  border: 1px solid var(--line-lite); background: var(--line-lite);
}
.result-split > div { background: var(--ink); padding: .85rem 1rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.result-split dt { font-size: .88rem; color: color-mix(in srgb, var(--cream) 78%, transparent); }
.result-split dd { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-details { margin-top: 1.1rem; border-top: 1px solid var(--line-lite); padding-top: 1rem; }
.result-details summary { cursor: pointer; font-size: .82rem; letter-spacing: .04em; color: var(--amber-lite); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
.result-details summary::-webkit-details-marker { display: none; }
.result-details summary::before { content: "+"; font-size: 1rem; }
.result-details[open] summary::before { content: "–"; }
.result-breakdown { list-style: none; padding: .9rem 0 0; margin: 0; display: grid; gap: .5rem; }
.result-breakdown li { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: color-mix(in srgb, var(--cream) 74%, transparent); font-variant-numeric: tabular-nums; }
.result-breakdown li span:last-child { color: var(--cream); white-space: nowrap; }
.result-note { font-size: .82rem; line-height: 1.55; color: color-mix(in srgb, var(--cream) 74%, transparent); margin: 1.3rem 0; }

/* Kalkulator + formularz jako jeden element — 3 etapy w jednym <form> */
.result-gate-lead { font-size: .95rem; color: color-mix(in srgb, var(--cream) 84%, transparent); margin-bottom: 1.3rem; max-width: 40ch; }
.calc-result label { font-size: .86rem; font-weight: 600; color: var(--cream); }
.calc-result input, .calc-result select, .calc-result textarea {
  width: 100%; background: color-mix(in srgb, var(--cream) 9%, transparent);
  border: 1.5px solid var(--line-lite); padding: .74rem .85rem; border-radius: 0;
  font-size: 1rem; color: var(--cream); font-family: inherit;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.calc-result textarea { resize: vertical; }
.calc-result input::placeholder { color: color-mix(in srgb, var(--cream) 50%, transparent); }
.calc-result input:focus, .calc-result select:focus, .calc-result textarea:focus {
  outline: none; border-color: var(--amber-lite); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber-lite) 26%, transparent);
}
.calc-result .form-check label { color: color-mix(in srgb, var(--cream) 80%, transparent); }
.calc-result .form-check a { color: var(--amber-lite); }
.calc-result .form-status.is-error { color: #E8A26B; }
.calc-result .form-status.is-success { color: var(--amber-lite); }
.calc-result .form-fineprint { color: color-mix(in srgb, var(--cream) 65%, transparent); }

/* Walidacja — błędy na czerwono/koralowo, widoczne na ciemnym tle */
.field-error { display: none; font-size: .82rem; margin-top: .4rem; color: #E8A26B; }
.is-invalid { border-color: #E8A26B !important; box-shadow: 0 0 0 3px rgba(232,162,107,.25) !important; }
.is-invalid + .field-error { display: block; }
.form-check.is-invalid label { color: #E8A26B; }
.form-check.is-invalid input { outline: 2px solid #E8A26B; outline-offset: 2px; }

.calc-stage[hidden] { display: none; }
.success-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--cream); margin-bottom: .7rem; }
.success-text { color: color-mix(in srgb, var(--cream) 86%, transparent); font-size: 1.02rem; max-width: 38ch; }

/* ---------- GALERIA / realizacje ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; align-items: start;
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-top: .5rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 1rem;
  scrollbar-width: thin;
}
.gallery-item { margin: 0; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line-2); }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-item--tall img { aspect-ratio: 3 / 4; }
.gallery-item figcaption { display: flex; align-items: baseline; gap: .6rem; padding: .85rem 1rem; font-size: .92rem; font-weight: 600; border-top: 1px solid var(--line-2); }
.gc-num { font-family: var(--font-display); font-weight: 900; font-variant-numeric: tabular-nums; color: var(--amber-ink); }
.gallery-footnote { margin-top: 1.3rem; font-size: .84rem; color: var(--muted); max-width: 62ch; }

/* ---------- KONTAKT ---------- */
.kontakt-info { max-width: 34rem; }
.kontakt-info .chapter-title { margin-bottom: 1.1rem; }
.kontakt-lead { color: color-mix(in srgb, var(--cream) 80%, transparent); margin-bottom: 2rem; max-width: 34ch; }
.kontakt-details { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.kontakt-details li { display: grid; gap: .25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-lite); }
.kd-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--amber-lite); font-weight: 600; }
.kontakt-details a { text-decoration: none; font-size: 1.15rem; font-weight: 600; color: var(--cream); }
.kontakt-details a:hover { color: var(--amber-lite); }

.form-row { display: grid; gap: .4rem; margin-bottom: 1.05rem; }
.form-grid { display: grid; gap: 0 1.05rem; grid-template-columns: 1fr 1fr; }
.req { color: var(--amber-ink); }
.opt { color: var(--muted); font-weight: 400; }
.form-check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; margin: .4rem 0 1.3rem; }
.form-check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--amber-ink); flex: none; }
.form-check label { font-size: .84rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.form-check a { color: var(--amber-ink); }
.form-status { margin-top: 1rem; font-size: .9rem; font-weight: 600; }
.form-status.is-error { color: #A63A16; }
.form-status.is-success { color: var(--amber-ink); }
.form-fineprint { margin-top: .8rem; font-size: .78rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--cream) 82%, transparent); padding-block: clamp(2.6rem, 6vw, 4rem) 2rem; }
.footer-top { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-lite); }
.logo--footer { color: var(--cream); }
.logo--footer .logo-word { color: var(--cream); }
.footer-tag { margin-top: .9rem; font-size: .9rem; max-width: 34ch; color: color-mix(in srgb, var(--cream) 64%, transparent); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.7rem; align-content: start; }
.footer-nav a { text-decoration: none; font-size: .92rem; color: color-mix(in srgb, var(--cream) 76%, transparent); }
.footer-nav a:hover { color: var(--amber-lite); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-top: 1.6rem; font-size: .82rem; color: color-mix(in srgb, var(--cream) 58%, transparent); }
.footer-credit a { color: var(--amber-lite); text-decoration: none; font-weight: 600; }
.footer-privacy { max-width: var(--wrap); margin: 1.4rem auto 0; padding-inline: var(--gutter); font-size: .74rem; color: color-mix(in srgb, var(--cream) 44%, transparent); line-height: 1.55; }

/* ---------- Mobilny pasek ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal (subtelny) ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* =============================================================================
   BREAKPOINTY — projektowane od telefonu w górę
   ============================================================================= */

/* ——— Telefon: pasek akcji + menu pełnoekranowe ——— */
@media (max-width: 899px) {
  .main-nav {
    position: fixed; inset: 70px 0 auto 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line-2);
    max-height: 0; overflow: hidden; transition: max-height .32s var(--ease);
  }
  .main-nav.is-open { max-height: 78vh; overflow-y: auto; box-shadow: var(--shadow); }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.4rem; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 1rem 0; font-size: 1.08rem; }
  .main-nav a::after { display: none; }

  .header-actions { margin-left: auto; }
  .header-actions .btn-sm { display: none; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; background: transparent; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform .28s var(--ease), opacity .2s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 95%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line-2);
  }
  .mobile-bar-btn { padding: .82em 1em; }
  body { padding-bottom: 4.8rem; }
}

/* ——— Powyżej telefonu ——— */
@media (min-width: 620px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .hero-facts li { flex-direction: column; gap: .5rem; }
  .process { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
  .process-step, .process-step:first-child { border-top: 2px solid var(--line-2); }
  .gallery { grid-auto-columns: 48%; }
  .field-split { gap: 1.6rem; }
}

@media (min-width: 900px) {
  /* Hero: pas fotografii jako pełnoszerokościowy rząd */
  .hero-strip {
    grid-auto-flow: row; grid-template-columns: 1.7fr 1fr 1fr;
    grid-auto-columns: auto; overflow: visible; scroll-snap-type: none;
    height: clamp(300px, 34vw, 460px);
  }
  .strip-cell { aspect-ratio: auto; height: 100%; }

  /* Zakres: numer | tekst | zdjęcie w jednym rzędzie */
  .scope-row {
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 40%);
    gap: 2.4rem; align-items: center;
  }
  .scope-photo { aspect-ratio: 3 / 2; }
  .scope-row--note { grid-template-columns: 3.5rem minmax(0, 1fr); }

  .process { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

  /* Kalkulator: pola | wynik obok siebie */
  .calc { grid-template-columns: 1.1fr .9fr; }
  .calc-inputs { border-right: 1.5px solid var(--ink); }

  .gallery {
    grid-auto-flow: row; grid-auto-columns: auto; align-items: stretch;
    grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr;
    overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; gap: 1.1rem;
  }
  .gallery-item--tall { grid-row: span 2; }
  .gallery-item--tall img { aspect-ratio: 3 / 4; height: 100%; }
  .gallery-item { display: flex; flex-direction: column; }
  .gallery-item img { flex: 1; }

  .footer-top { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 1100px) {
  .hero-title { font-size: clamp(3.4rem, 6vw, 5.6rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
