/* =========================================================
   Tomasz Plis — Inżynier budownictwa
   v2: motyw „rysunku technicznego” — siatka, wymiarowania, przekroje
   Paleta i typografia wg briefu (bez gradientów kolorystycznych)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --graphite: #252B2E;
  --graphite-deep: #1D2225;
  --graphite-2: #2F363A;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --steel: #667176;
  --concrete: #E5E2DC;
  --brick: #AF5C3F;
  --brick-dark: #91472F;
  --ink: #252B2E;
  --on-dark: #F6F4EF;
  --on-dark-muted: #A7AFB3;

  --line: rgba(37, 43, 46, 0.12);
  --line-strong: rgba(37, 43, 46, 0.22);
  --line-dark: rgba(246, 244, 239, 0.14);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max: 1200px;
  --prose: 720px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 11vw, 136px);
  --header-h: 76px;
  --bar-h: 68px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Tła rysunkowe (wzory SVG, nie gradienty) */
  --grid-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0v72' fill='none' stroke='%23F6F4EF' stroke-opacity='.07'/%3E%3C/svg%3E");
  --grid-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M72 0H0v72' fill='none' stroke='%23252B2E' stroke-opacity='.06'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 1099px) { body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ol, ul { padding: 0; margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.6vw, 62px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 28px; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

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

/* ---------- Typografia pomocnicza ---------- */
.prose { max-width: var(--prose); }
.lead {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}
.muted { color: var(--steel); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; line-height: 1;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--brick);
}
.eyebrow b { color: var(--brick); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Sekcje ---------- */
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--rule { border-top: 1px solid var(--line); }
.section--dark {
  background: var(--graphite);
  background-image: var(--grid-dark);
  color: var(--on-dark);
}
.section--dark h2 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }
.section--dark .lead { color: var(--on-dark); }
.section--dark .eyebrow { color: var(--on-dark-muted); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

/* ---------- Ozdobny numer sekcji (data-num) + akcent pod nagłówkiem ---------- */
.sec-mark { position: relative; overflow: hidden; }
.sec-mark::before {
  content: attr(data-num);
  position: absolute;
  top: calc(var(--section) * 0.35);
  left: clamp(16px, 4vw, 56px);
  font: 700 clamp(130px, 17vw, 210px)/1 var(--font-head);
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(37, 43, 46, 0.2);
  pointer-events: none;
  user-select: none;
}
.sec-mark.section--dark::before { -webkit-text-stroke-color: rgba(246, 244, 239, 0.18); }
.sec-mark > .wrap { position: relative; }
.sec-mark h2::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin-top: 28px;
  background: var(--brick);
}

/* ---------- Sekcja 01 (O mnie) ---------- */
#o-mnie h2 { margin-bottom: 0; }
#o-mnie .prose { position: relative; z-index: 1; max-width: none; padding-top: 6px; }
#o-mnie .prose .lead {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  padding-top: 40px;
  margin-bottom: 28px;
}
#o-mnie .prose .lead::before {
  content: "\201C";
  position: absolute;
  top: -22px; left: -4px;
  font: 700 96px/1 var(--font-head);
  color: var(--brick);
}
#o-mnie .prose p:not(.lead):not(.fact) {
  color: #3D464A;
  line-height: 1.8;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
#o-mnie .fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--concrete);
  color: var(--ink);
  border-radius: var(--radius);
  border-top: 0;
}
#o-mnie .fact__label {
  font: 600 12px/1.5 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
#o-mnie .fact__value {
  font: 700 clamp(32px, 3.2vw, 40px)/1.05 var(--font-head);
  letter-spacing: -0.03em;
  color: var(--brick-dark);
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 15px/1 var(--font-body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--brick); color: #fff; }
.btn--primary:hover { background: var(--brick-dark); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--ghost,
.site-header .btn--ghost { color: var(--on-dark); border-color: var(--line-dark); }
.section--dark .btn--ghost:hover { border-color: var(--on-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  color: var(--ink);
}
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.text-link:hover { color: var(--brick); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--graphite);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 36px;
  height: var(--header-h);
}
.brand {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; flex: 1; line-height: 1;
}
.brand__name {
  font: 700 16px/1 var(--font-head); letter-spacing: 0.16em; color: var(--on-dark);
}
.brand__role { font-size: 12px; color: var(--on-dark-muted); letter-spacing: 0.02em; }

.nav ul { display: flex; gap: 28px; list-style: none; }
.nav a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  color: var(--on-dark-muted); transition: color .2s;
}
/* Podkreślenie wjeżdża z lewej przy najechaniu (i zostaje na aktywnej stronie) */
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brick);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--on-dark); }

.header-call { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: 1; }
.header-call__icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.header-call__icon svg { width: 18px; height: 18px; }
.header-call__icon::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--brick); opacity: 0; transform: scale(1);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.header-call__icon:hover { background: var(--brick); border-color: var(--brick); color: #fff; transform: translateY(-1px); }
.header-call__icon:hover::after { opacity: 1; transform: scale(1.22); }
.header-call .btn {
  min-height: 44px; padding: 0 18px 0 22px; gap: 10px;
  letter-spacing: 0.02em;
  /* Obie wartości box-shadow mają tę samą strukturę (inset + zewnętrzny), żeby przejście nie migało kolorem */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 20px -8px rgba(175, 92, 63, 0);
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.header-call .btn svg { width: 16px; height: 16px; }
.header-call .btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 20px -8px rgba(175, 92, 63, .6);
}

.menu-toggle {
  display: none; align-items: center; gap: 12px;
  margin-left: auto; height: 44px; padding: 0 16px;
  background: none; border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: var(--on-dark); font: 600 14px/1 var(--font-body); cursor: pointer;
}
/* Ikona hamburgera: trzy kreski, które przy otwarciu składają się w krzyżyk */
.menu-toggle span[aria-hidden] {
  position: relative; display: block; width: 16px; height: 2px; background: currentColor;
  transition: background-color .25s var(--ease);
}
.menu-toggle span[aria-hidden]::before,
.menu-toggle span[aria-hidden]::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span[aria-hidden]::before { top: -5px; }
.menu-toggle span[aria-hidden]::after { top: 5px; }
.menu-toggle[aria-expanded="true"] span[aria-hidden] { background: transparent; }
.menu-toggle[aria-expanded="true"] span[aria-hidden]::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span[aria-hidden]::after { top: 0; transform: rotate(-45deg); }

/* Menu mobilne: wysuwa się płynnie zamiast pojawiać się nagle */
.mobile-nav {
  max-height: 0; overflow: hidden; visibility: hidden;
  background: var(--graphite);
  transition: max-height .4s var(--ease), visibility .4s;
}
.mobile-nav.is-open { max-height: 480px; visibility: visible; border-top: 1px solid var(--line-dark); }
/* Lista ma klasę .wrap, a `.site-header .wrap` (flex, wysokość nagłówka) wygrywa ze zwykłym selektorem, stąd pełna nadpisanie */
.site-header .mobile-nav ul {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; height: auto; align-items: stretch;
  max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 24px; list-style: none;
}
.mobile-nav li { min-width: 0; opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mobile-nav.is-open li { opacity: 1; transform: none; }
.mobile-nav.is-open li:nth-child(2) { transition-delay: .04s; }
.mobile-nav.is-open li:nth-child(3) { transition-delay: .08s; }
.mobile-nav.is-open li:nth-child(4) { transition-delay: .12s; }
.mobile-nav.is-open li:nth-child(5) { transition-delay: .16s; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between; width: 100%; box-sizing: border-box;
  min-height: 56px; padding: 14px 0; text-decoration: none;
  font: 600 18px/1.2 var(--font-head); color: var(--on-dark); white-space: nowrap;
  border-bottom: 1px solid var(--line-dark);
  transition: color .2s, padding-left .25s var(--ease);
}
.mobile-nav li:last-child a { border-bottom: 0; }
.mobile-nav a::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-top: 2px solid var(--brick); border-right: 2px solid var(--brick);
  transform: rotate(45deg); margin-right: 4px;
  transition: transform .25s var(--ease);
}
.mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--on-dark); padding-left: 6px; }
.mobile-nav a:hover::after { transform: translateX(3px) rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .mobile-nav li, .mobile-nav a, .menu-toggle span[aria-hidden]::before, .menu-toggle span[aria-hidden]::after { transition: none; }
}

/* ---------- Pasek kontaktu (mobile, stale na dole) ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--graphite);
  box-shadow: 0 -10px 30px rgba(37, 43, 46, 0.18);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; border-radius: var(--radius);
  border: 1px solid var(--line-dark); color: var(--on-dark);
  font: 600 15px/1 var(--font-body); text-decoration: none;
}
.call-bar a:first-child { background: var(--brick); border-color: var(--brick); }
.call-bar svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 120px); }
.hero--dark { background: var(--graphite); background-image: var(--grid-dark); color: var(--on-dark); }
.hero--light { background: var(--paper); background-image: var(--grid-light); }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero h1 { color: inherit; }
.hero--dark h1 { color: var(--on-dark); }
.hero__kicker {
  font: 600 clamp(20px, 2.2vw, 26px)/1.3 var(--font-head); letter-spacing: -0.01em;
  margin: 22px 0 26px; color: var(--on-dark);
}
.hero--light .hero__kicker { color: var(--ink); }
.hero__text p { max-width: 560px; color: var(--on-dark-muted); }
.hero--light .hero__text p { color: var(--steel); }
.hero__text p + p { margin-top: 12px; }
.hero__services {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  margin: 26px 0 0; padding: 0; list-style: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
}
.hero__services li {
  padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px;
  color: var(--on-dark);
}
.hero--light .hero__services li { border-color: var(--line-strong); color: var(--ink); }

.hero__sign { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.hero__sign strong { font: 600 18px/1.3 var(--font-head); color: var(--ink); }
.hero__sign span { font-size: 15px; color: var(--steel); }

.hero__sectors { font-size: 15px; font-weight: 500; color: var(--steel); margin-top: 20px; }

/* ---------- Hero ze zdjęciem: tekst po lewej, Tomasz po prawej, głębia ---------- */
.hero--photo {
  position: relative; min-height: min(92vh, 860px);
  background: var(--graphite); color: var(--on-dark);
  overflow: hidden; padding: 0;
}
/* Kontener zdjęcia zaczyna się nad sekcją: górna część fotki jest przycinana, postać wyżej, na wysokości tekstu */
.hero__media { position: absolute; left: 0; right: 0; bottom: 0; top: -8%; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% 35%;
  transform: scale(1.06); will-change: transform;
}
/* Przyciemnienie od lewej: czytelność tekstu, zdjęcie zostaje widoczne po prawej */
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(37, 43, 46, .96) 0%, rgba(37, 43, 46, .86) 36%, rgba(37, 43, 46, .32) 68%, rgba(37, 43, 46, .08) 100%);
}
/* Dolne dopełnienie = miejsce na nachodzącą kartę liczb (clamp) + wyrównanie do dawnej wysokości hero: 88px (akapit) + ~166px (stary pasek usług i podtytuł), żeby karta liczb nie podjechała do góry */
.hero__content { position: relative; z-index: 2; padding-top: clamp(40px, 6vw, 70px); padding-bottom: calc(clamp(88px, 11vw, 128px) + 254px); }
/* Desktop: suma dopełnień jak dawniej, ale górne jest o 72px większe od dolnego (wysokość nachodzenia karty), więc tekst jest na środku obszaru nad kartą */
@media (min-width: 721px) {
  .hero__content {
    padding-bottom: calc((clamp(40px, 6vw, 70px) + clamp(88px, 11vw, 128px) + 254px + 72px) / 2);
    padding-top: calc((clamp(40px, 6vw, 70px) + clamp(88px, 11vw, 128px) + 254px + 72px) / 2 - 72px);
  }
}
.hero__copy { max-width: 520px; }
.hero--photo h1 { color: var(--on-dark); }
.hero--photo .hero__kicker { color: var(--on-dark); }
.hero--photo .hero__text p { color: var(--on-dark-muted); }
.hero--photo .hero__services li { border-color: var(--line-dark); color: var(--on-dark); }
.hero--photo .btn--ghost { color: var(--on-dark); border-color: var(--line-dark); }
.hero--photo .btn--ghost:hover { border-color: var(--on-dark); }

/* Hero: większy tytuł, usługi jako lista z numeracją zamiast pigułek */
.hero--photo h1 { font-size: clamp(56px, 7.2vw, 100px); line-height: 1; letter-spacing: -0.04em; }
.hero--photo .hero__kicker { font-size: clamp(18px, 1.8vw, 21px); font-weight: 500; color: var(--on-dark-muted); margin: 18px 0 32px; }
.hero--photo .hero__text p { font-size: 17px; max-width: 480px; }
/* Usługi: poziomy pasek z krótkimi kreskami zamiast ponumerowanej listy */
.hero--photo .hero__services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px;
  max-width: 520px; margin: 0 0 40px; font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1.4;
}
.hero--photo .hero__services li {
  position: relative; padding: 18px 0 0; border: 0; border-radius: 0; color: var(--on-dark);
  border-top: 1px solid var(--line-dark);
}
.hero--photo .hero__services li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; background: var(--brick);
}
.hero--photo .btn-row { align-items: center; gap: 28px; }
/* Podstrony z hero-zdjęciem: podpis i okruszki czytelne na ciemnym tle */
.hero--photo .hero__sign strong { color: var(--on-dark); }
.hero--photo .hero__sign span { color: var(--on-dark-muted); }
/* Okruszki na podstronie z hero-zdjęciem: nad zdjęciem, bez własnego tła i bez wysokości w układzie */
.hero__crumbs { position: absolute; top: 28px; left: 0; right: 0; z-index: 2; }
.hero--photo .crumbs { padding: 0; color: var(--on-dark-muted); }
.hero--photo .crumbs a:hover { color: var(--on-dark); }
/* Dłuższy H1 (dwie linie zamiast czterech) w wąskiej kolumnie tekstu */
.hero--photo h1.hero__h1--sm { font-size: clamp(44px, 4.3vw, 62px); }
/* Kreski nad usługami: odsunięte od podpisu powyżej, bliżej etykiet pod sobą (tylko podstrona z podpisem) */
.hero__sign + .hero__text .hero__services { margin-top: 22px; }
.hero__sign + .hero__text .hero__services li { padding-top: 12px; }
.hero--photo .text-link { color: var(--on-dark); }
.hero--photo .text-link:hover { color: var(--brick); }
@media (max-width: 720px) {
  .hero--photo h1 { font-size: clamp(48px, 13vw, 60px); }
}
@media (max-width: 720px) {
  .hero__media { top: 0; bottom: auto; height: 470px; }
  .hero__media img { height: 100%; object-position: 45% 50%; transform: none; will-change: auto; }
  /* Przyciemnienie w pikselach (zdjęcie ma 470px): górna część zostaje czytelna, dół zanika w ciemne tło pod tekst */
  .hero--photo::before { background: linear-gradient(180deg, rgba(37, 43, 46, 0) 0, rgba(37, 43, 46, .12) 200px, rgba(37, 43, 46, .78) 350px, rgba(37, 43, 46, .97) 470px, rgba(37, 43, 46, 1) 100%); }
  /* Tekst zaczyna się na dolnej, przyciemnionej części zdjęcia zamiast pod nim; hero rośnie tylko do treści */
  .hero--photo { min-height: 0; }
  .hero__content { padding-top: 400px; padding-bottom: 64px; }
  /* Na mobile link „Zobacz zakres usług” w hero znika; zakres jest już pod spodem w liście usług */
  .hero--photo .text-link { display: none; }
  /* Pozostały przycisk na środku, bez rozciągania na całą szerokość */
  .hero--photo .btn-row { justify-content: center; }
  .hero--photo .btn-row .btn { width: auto; }
}
/* Wejście tekstu hero (tylko z JS) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero--photo .hero__copy > * { animation: rise .9s var(--ease) both; }
.js .hero--photo .hero__copy > :nth-child(2) { animation-delay: .08s; }
.js .hero--photo .hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .hero--photo .hero__copy > :nth-child(4) { animation-delay: .24s; }
.js .hero--photo .hero__copy > :nth-child(5) { animation-delay: .32s; }
.js .hero--photo .hero__copy > :nth-child(6) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .hero__media img { transform: none; }
  .js .hero--photo .hero__copy > * { animation: none; }
}

/* ---------- Zdjęcie / rysunek (placeholder do czasu zdjęcia) ---------- */
.photo {
  position: relative; margin: 0; aspect-ratio: 4 / 5;
  overflow: hidden; border-radius: 6px;
  background: var(--graphite-2);
  border: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
}
.hero--light .photo { background: var(--concrete); border-color: var(--line-strong); color: var(--steel); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo__drawing .ln { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.photo__drawing .ln--dim { stroke-width: 1; stroke-dasharray: 3 4; opacity: .7; }
.photo__drawing .fill-brick { fill: var(--brick); }
.photo__cap {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  font-size: 13px; line-height: 1.45;
  padding: 12px 14px; border-radius: var(--radius);
  background: rgba(37, 43, 46, .72); color: var(--on-dark);
  backdrop-filter: blur(6px);
}
.hero--light .photo__cap { background: var(--graphite); }

/* ---------- Pasek faktów ---------- */
.facts {
  background: var(--graphite-deep); color: var(--on-dark);
  border-top: 1px solid var(--line-dark);
}
.facts ul {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  list-style: none; padding: 20px var(--gutter);
  font-size: 15px; font-weight: 500;
}
.facts li { display: flex; align-items: center; gap: 12px; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--brick); transform: rotate(45deg); }

/* ---------- Liczby (strona główna) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
}
.stat {
  position: relative; padding: 28px 28px 30px 0;
  border-top: 1px solid var(--line-strong);
}
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--brick);
}
.stat + .stat::before { left: 32px; }
.stat__value {
  font: 700 clamp(40px, 4.2vw, 54px)/1 var(--font-head); letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.stat__value small { font-size: .42em; letter-spacing: -0.01em; margin-left: 6px; color: var(--steel); font-weight: 600; }
.stat__value--text { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; padding-top: 14px; }
.stat__label { margin-top: 12px; font-size: 14.5px; color: var(--steel); max-width: 26ch; }
/* Trzy sektory obok siebie; każdy trzyma się w jednej linii, a cała grupa może przejść niżej tylko przy wąskiej kolumnie */
.stat__label--list { max-width: none; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 13.5px; }
.stat__label--list span { white-space: nowrap; }
.stat__label--list span + span::before { content: "·"; margin-right: 8px; color: var(--brick); }

/* Karta statystyk: zachodzi na dolną krawędź hero i wyraźnie się od niego odcina */
.stats-band { position: relative; z-index: 3; margin-top: -72px; }
.stats-band .stats {
  background: var(--white); border-radius: 6px; padding: 8px clamp(24px, 4vw, 48px);
  box-shadow: 0 32px 64px -32px rgba(37, 43, 46, .4);
}
.stats-band .stat:first-child { padding-left: 0; }
.stats-band .stat:first-child::before { left: 0; }
@media (max-width: 720px) {
  .stats-band { margin-top: -40px; }
  .stats-band .stats { padding: 4px 24px; }
}

/* ---------- Usługi ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc {
  position: relative; display: flex; flex-direction: column;
  padding: 36px 32px 32px; min-height: 380px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 48px -28px rgba(37, 43, 46, .35); }
.svc--main { background: var(--graphite); color: var(--on-dark); border-color: var(--graphite); }
.svc--main p { color: var(--on-dark-muted); }
.svc--main h3 { color: var(--on-dark); }
.svc--main .text-link { color: var(--on-dark); }
.svc--main:hover { border-color: var(--graphite); }
.svc__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.svc__num { font: 600 13px/1 var(--font-body); letter-spacing: .14em; color: var(--steel); font-variant-numeric: tabular-nums; }
.svc--main .svc__num { color: var(--on-dark-muted); }
.svc__icon {
  width: 60px; height: 60px; padding: 13px;
  border: 1px solid var(--line-strong); border-radius: 4px;
  color: var(--brick); flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.svc--main .svc__icon { border-color: var(--line-dark); }
.svc h3 { font-size: 26px; margin-bottom: 16px; }
.svc p { font-size: 15.5px; color: var(--steel); }
.svc p + p { margin-top: 10px; }
.svc .text-link { margin-top: auto; padding-top: 28px; }

.svc__lead { font-size: 16px; color: var(--ink); font-weight: 500; line-height: 1.5; }
.svc--main .svc__lead { color: var(--on-dark); }
.svc__list { list-style: none; margin: 24px 0 0; }
.svc__list li {
  position: relative; padding: 11px 0 11px 22px;
  font-size: 15px; color: var(--steel); border-top: 1px solid var(--line);
}
.svc__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: var(--brick);
}
.svc--main .svc__list li { color: var(--on-dark-muted); border-top-color: var(--line-dark); }
.svc__link {
  margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink);
  border-top: 0; transition: color .2s;
}
.svc__link span { transition: transform .25s var(--ease); }
.svc__link:hover { color: var(--brick); }
.svc__link:hover span { transform: translateX(4px); }
.svc--main .svc__link { color: var(--on-dark); }

.services-more-title { margin: 72px 0 24px; font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.services-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.services-more > div { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.services-more h3 { font-size: 18px; margin-bottom: 8px; }
.services-more p { font-size: 15px; color: var(--steel); margin: 0; }

/* ---------- Sektory ---------- */
.sectors { counter-reset: sector; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sector {
  counter-increment: sector; position: relative; display: flex; flex-direction: column;
  padding: 44px 32px 36px; min-height: 340px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
/* Akcent jak na rysunku technicznym: ceglasta kreska przy krawędzi górnej + numer sektora w rogu */
.sector::before {
  content: ""; position: absolute; top: -1px; left: 32px; width: 56px; height: 3px; background: var(--brick);
}
.sector::after {
  content: counter(sector, decimal-leading-zero);
  position: absolute; top: 24px; right: 28px;
  font: 600 13px/1 var(--font-body); letter-spacing: .14em; color: var(--steel);
  font-variant-numeric: tabular-nums;
}
.sector:hover { border-color: var(--line-strong); box-shadow: 0 24px 48px -28px rgba(37, 43, 46, .35); }
/* Mały rysunek przekroju w każdym kafelku: rysuje się, gdy karta wejdzie w widok (.is-in z .reveal) */
.sector__drawing { width: 100%; height: auto; margin-bottom: 28px; color: var(--steel); overflow: visible; }
/* Bez vector-effect: non-scaling-stroke, bo przy nim dasharray (pathLength) liczy się w pikselach i animacja rysowania się psuje */
.sector__drawing .ln { fill: none; stroke: currentColor; stroke-width: 1.2; }
.sector__drawing .ln--dim { stroke-width: .9; opacity: .7; }
.js .sector__drawing .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sector.is-in .sector__drawing .ln { animation: draw 3.6s var(--ease) forwards; }
.js .sector.is-in .sector__drawing .ln:nth-child(2) { animation-delay: .45s; }
.js .sector.is-in .sector__drawing .ln:nth-child(3) { animation-delay: .9s; }
.sector h3 { font-size: 24px; margin-bottom: 16px; padding-right: 40px; }
.sector p { font-size: 15.5px; color: var(--steel); }
/* Środkowy sektor wyróżniony ciemnym tłem, żeby sekcja nie była jednolitą siatką */
.sector:nth-child(2) { background: var(--graphite); border-color: var(--graphite); }
.sector:nth-child(2)::after { color: var(--on-dark-muted); }
.sector:nth-child(2) h3 { color: var(--on-dark); }
.sector:nth-child(2) p { color: var(--on-dark-muted); }
.sector:nth-child(2) .sector__drawing { color: var(--on-dark-muted); }
.sector:nth-child(2):hover { border-color: var(--graphite); }

/* ---------- Statement ---------- */
.statement {
  font: 600 clamp(26px, 3.4vw, 42px)/1.22 var(--font-head);
  letter-spacing: -0.025em; max-width: 880px;
  margin: 0 0 56px; color: var(--on-dark);
}
.statement em { font-style: normal; color: var(--brick); }
.section--white .statement { color: var(--ink); }

.quote {
  margin: 0 0 56px; padding: 6px 0 6px 28px; max-width: 760px;
  border-left: 3px solid var(--brick);
  font: 600 clamp(24px, 2.8vw, 34px)/1.25 var(--font-head); letter-spacing: -0.02em;
}

/* ---------- Lista z kreską ---------- */
.bullets { list-style: none; margin: 0 0 1em; }
.bullets li { position: relative; padding-left: 28px; margin: 10px 0; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--brick); }

/* ---------- Procesy / kroki ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); list-style: none; }
.steps li {
  counter-increment: step; position: relative;
  padding: 30px 0 34px; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font: 700 14px/1 var(--font-head); letter-spacing: .08em; color: var(--brick);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--steel); margin: 0; }

.checks { counter-reset: check; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); list-style: none; }
.check { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px 16px; padding: 28px 0 30px; border-top: 1px solid var(--line); }
.check__n { font: 700 14px/1.4 var(--font-head); color: var(--brick); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.check h3 { font-size: 19px; margin-bottom: 8px; }
.check p { font-size: 15.5px; color: var(--steel); margin: 0; }

/* ---------- Przekrój: roboty zanikające ---------- */
.xsection { display: grid; gap: 0; margin: 40px 0 48px; list-style: none; }
.xrow {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.xrow:last-child { border-bottom: 1px solid var(--line); }
.xrow h3 { font: 600 clamp(19px, 1.8vw, 22px)/1.35 var(--font-head); letter-spacing: -0.015em; margin: 0 0 8px; }
.xrow__n { color: var(--brick); font-variant-numeric: tabular-nums; margin-right: 6px; }
.xrow__text p { font-size: 15.5px; color: var(--steel); margin: 0; max-width: 56ch; }

.xviz {
  position: relative; height: 128px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 4px;
}
.xviz__el { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.xviz__cover {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--cover, 60%);
  background: var(--concrete);
  border-top: 1px solid var(--steel);
  transform-origin: bottom;
  transition: transform 1.5s cubic-bezier(.65, 0, .35, 1);
}
/* Cienka ceglasta linia na linii zalewania: zostaje na górnej krawędzi betonu */
.xviz__cover::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--brick);
}
/* Kolejność: element konstrukcji rośnie od dołu, potem zalewa go beton; każdy wiersz z własnym opóźnieniem */
.xsection .xrow { --d: 0s; }
.xsection .xrow:nth-child(2) { --d: .9s; }
.xsection .xrow:nth-child(3) { --d: 1.8s; }
.xviz__el { transform-origin: bottom; }
.xsection .xviz__cover { transform: scaleY(1); }
.js .xsection:not(.is-visible) .xviz__cover { transform: scaleY(0); }
.js .xsection:not(.is-visible) .xviz__el { transform: translateX(-50%) scaleY(0); }
.js .xsection.is-visible .xviz__el { transition: transform 1s var(--ease) var(--d); }
.js .xsection.is-visible .xviz__cover { transition-delay: calc(var(--d) + .5s); }
.xrow__text { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .xsection:not(.is-visible) .xrow__text { opacity: 0; transform: translateY(10px); }
.js .xsection.is-visible .xrow__text { transition-delay: var(--d); }

.xviz--fund { --cover: 56%; }
.xviz--fund .xviz__el { width: 62%; height: 34%; border: 2px solid var(--steel); border-bottom: 0; background: var(--paper); }
.xviz--rebar { --cover: 48%; }
.xviz--rebar .xviz__el {
  width: 72%; height: 70%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='3.2' fill='%23AF5C3F'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 18px 18px; background-position: center bottom;
  border-bottom: 2px solid var(--steel);
}
.xviz--wall { --cover: 100%; }
/* Warstwy nakładają się na kostki ściany: najpierw izolacja, potem tynk; kostki częściowo prześwitują */
.xviz__layer {
  position: absolute; top: 18%; bottom: 0;
  border: 1px solid var(--steel);
  transform-origin: left;
}
.xviz__layer--ins { left: 14%; width: 72%; background: rgba(229, 226, 220, .9); }
.xviz__layer--plaster { left: 14%; width: 72%; background: rgba(246, 244, 239, .8); }
.js .xsection:not(.is-visible) .xviz__layer { transform: scaleX(0); }
.js .xsection.is-visible .xviz__layer--ins { transition: transform .9s var(--ease) calc(var(--d) + .3s); }
.js .xsection.is-visible .xviz__layer--plaster { transition: transform .9s var(--ease) calc(var(--d) + 1.1s); }
.xviz--wall .xviz__el {
  width: 72%; height: 82%; border: 1px solid var(--steel); background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 .5h48M0 12.5h48M.5 0v12M24.5 12v12' fill='none' stroke='%23667176' stroke-opacity='.5'/%3E%3C/svg%3E");
  background-size: 48px 24px;
}

/* ---------- Panel cytatu (hero odbioru) ---------- */
.panel {
  position: relative; margin: 0;
  padding: clamp(32px, 4.4vw, 56px);
  background: var(--graphite); background-image: var(--grid-dark);
  color: var(--on-dark); border-radius: 6px;
  box-shadow: 0 40px 80px -40px rgba(37, 43, 46, .55);
}
.panel::before {
  content: ""; position: absolute; top: 0; left: 40px; width: 56px; height: 3px; background: var(--brick);
}
.panel__quote {
  font: 600 clamp(26px, 3vw, 36px)/1.22 var(--font-head); letter-spacing: -0.025em;
  color: var(--on-dark); margin: 0 0 32px;
}
.panel__sign { font-size: 14px; color: var(--on-dark-muted); margin: 0; }
/* Panel wyśrodkowany na całą szerokość treści, z akcentem nad środkiem */
.panel--center { max-width: 880px; margin: 0 auto; text-align: center; }
.panel--center::before { left: 50%; transform: translateX(-50%); }
.panel--center .panel__quote { margin: 0; }

/* ---------- Pasek CTA ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px;
  margin-top: 64px; padding: 36px clamp(24px, 4vw, 48px);
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
}
.cta-band p { font: 600 clamp(20px, 2.2vw, 26px)/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--ink); margin: 0; max-width: 24ch; }
.cta-band .btn-row { margin-top: 0; }
.cta-band--wide { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 40px clamp(40px, 6vw, 96px); padding: clamp(36px, 5vw, 64px); }
.cta-band--wide .eyebrow { margin-bottom: 14px; max-width: none; font: 600 12px/1 var(--font-body); letter-spacing: 0.16em; color: var(--steel); }
.cta-band--wide h2 { margin-bottom: 18px; }
.cta-band--wide .prose p { font: 400 17px/1.65 var(--font-body); letter-spacing: 0; color: var(--steel); max-width: 52ch; margin: 0; }
.cta-band--wide .prose p + p { margin-top: 12px; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-band__actions .text-link { font-size: 16px; }
@media (max-width: 860px) { .cta-band--wide { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Zasięg (sekcja 05) ---------- */
.area {
  list-style: none; margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line-strong);
}
.area__item { padding: 32px clamp(0px, 2.5vw, 32px) 8px 0; }
.area__item + .area__item { padding-left: clamp(20px, 2.5vw, 32px); border-left: 1px solid var(--line); }
.area__label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); font-weight: 600; margin-bottom: 14px; }
.area__item h3 { font-size: 22px; margin-bottom: 12px; }
.area__item p { font-size: 15.5px; color: var(--steel); margin: 0; }
.area + .cta-band { margin-top: 48px; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font: 600 clamp(18px, 1.8vw, 20px)/1.35 var(--font-head); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--brick); border-bottom: 2px solid var(--brick);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--brick-dark); }
.faq details > div { padding: 0 48px 26px 0; max-width: 680px; color: var(--steel); }

/* Animacja FAQ: pytania wsuwają się kolejno, a odpowiedź płynnie się rozwija */
.js .faq details { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .25s; }
.js .faq.is-in details { opacity: 1; transform: none; }
.js .faq.is-in details:nth-child(1) { transition-delay: .15s; }
.js .faq.is-in details:nth-child(2) { transition-delay: .25s; }
.js .faq.is-in details:nth-child(3) { transition-delay: .35s; }
.js .faq.is-in details:nth-child(4) { transition-delay: .45s; }
.js .faq.is-in details:nth-child(5) { transition-delay: .55s; }
.js .faq.is-in details:nth-child(6) { transition-delay: .65s; }
.faq details[open] > div { animation: faqOpen .45s var(--ease) both; }
.faq details[open] summary { color: var(--brick-dark); }
.faq summary::after { transition: transform .35s var(--ease), border-color .25s; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .faq details { opacity: 1; transform: none; transition: none; }
  .faq details[open] > div { animation: none; }
  .faq summary::after { transition: none; }
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact h2 { color: var(--on-dark); }
.contact .prose p { font-size: 18px; max-width: 44ch; }

/* Lista kanałów kontaktu: karty z ikoną, etykietą i wartością */
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 8px; }
.contact__item {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px;
  color: var(--on-dark); text-decoration: none;
  background: rgba(246, 244, 239, 0.04);
  border: 1px solid var(--line-dark); border-radius: 10px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
a.contact__item:hover { border-color: rgba(175, 92, 63, .7); background: rgba(246, 244, 239, .07); }
a.contact__item:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
.contact__icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brick); color: var(--white);
}
.contact__icon svg { width: 16px; height: 16px; }
.contact__text { display: flex; flex-direction: column; min-width: 0; }
.contact__label { font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 3px; }
.contact__value { font: 600 clamp(15px, 1.5vw, 17px)/1.25 var(--font-head); letter-spacing: -0.01em; color: var(--on-dark); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact__arrow { flex: none; margin-left: auto; width: 14px; height: 14px; color: var(--on-dark-muted); transition: transform .25s var(--ease), color .25s var(--ease); }
a.contact__item:hover .contact__arrow { transform: translateX(3px); color: var(--brick); }

.contact__person { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.contact__avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; object-position: 50% 30%;
  border: 2px solid var(--on-dark);
}
.contact__person strong { display: block; font: 600 18px/1.3 var(--font-head); color: var(--on-dark); }
.contact__person span { display: block; font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); }

/* Formularz: biała karta z akcentem, większe pola, czytelny przycisk */
.form {
  position: relative;
  background: var(--white); color: var(--ink);
  padding: clamp(28px, 4vw, 48px); border-radius: 14px;
  border-top: 3px solid var(--brick);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.form__title { font: 700 24px/1.25 var(--font-head); letter-spacing: -0.015em; margin-bottom: 28px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--steel); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 54px; padding: 14px 16px;
  font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: #FAF9F6; border: 1px solid #D9D5CC; border-radius: 8px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input:hover, .field textarea:hover { border-color: #B9B3A7; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--brick); box-shadow: 0 0 0 4px rgba(175, 92, 63, .16);
}
.field input[aria-invalid="true"] { border-color: var(--brick-dark); }
.field__error { display: block; min-height: 0; margin-top: 6px; font-size: 13.5px; color: var(--brick-dark); }
.field__error:empty { display: none; }
.form .btn { width: 100%; min-height: 58px; margin-top: 10px; border-radius: 8px; font-size: 16px; }
.form__legal { margin-top: 20px; font-size: 13px; color: var(--steel); line-height: 1.5; }
.form__legal a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__success { display: none; }
/* Pola zostają w układzie (niewidoczne), więc karta nie zmienia rozmiaru; potwierdzenie na środku karty */
.form.is-sent .form__fields { visibility: hidden; }
.form.is-sent .form__success {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  position: absolute; inset: 0; padding: clamp(28px, 4vw, 48px);
}
.form__success p { max-width: 420px; }
.form__success h3 { font-size: 24px; margin-bottom: 12px; }
.form__success p { color: var(--steel); margin: 0; }
.form__success a { color: var(--ink); font-weight: 600; }

/* Po wysłaniu: kreślona „pieczątka odbioru”, potem tekst */
.sent-stamp { display: block; width: 88px; height: 88px; margin-bottom: 24px; fill: none; stroke: var(--brick); stroke-linecap: round; stroke-linejoin: round; }
.sent-stamp__ring { stroke-width: 3; stroke-dasharray: 277; stroke-dashoffset: 277; transform: rotate(-90deg); transform-origin: 48px 48px; }
.sent-stamp__dash { stroke-width: 1.2; stroke-dasharray: 3 5; opacity: 0; }
.sent-stamp__check { stroke-width: 5; stroke-dasharray: 60; stroke-dashoffset: 60; }
.form.is-sent .sent-stamp { animation: stamp-press .5s var(--ease) both; }
.form.is-sent .sent-stamp__ring { animation: stamp-draw .7s var(--ease) .1s forwards; }
.form.is-sent .sent-stamp__dash { animation: stamp-fade .4s ease .6s forwards; }
.form.is-sent .sent-stamp__check { animation: stamp-draw .45s var(--ease) .65s forwards; }
.form.is-sent .form__success h3 { animation: success-up .5s var(--ease) .9s both; }
.form.is-sent .form__success p { animation: success-up .5s var(--ease) 1.05s both; }
@keyframes stamp-press { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stamp-draw { to { stroke-dashoffset: 0; } }
@keyframes stamp-fade { to { opacity: .55; } }
@keyframes success-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Wysyłanie: kręcący się znacznik w przycisku */
.form .btn.is-loading { position: relative; color: transparent; }
.form .btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .form.is-sent .sent-stamp, .form.is-sent .sent-stamp__ring, .form.is-sent .sent-stamp__dash, .form.is-sent .sent-stamp__check,
  .form.is-sent .form__success h3, .form.is-sent .form__success p { animation: none; }
  .sent-stamp__ring, .sent-stamp__check { stroke-dashoffset: 0; }
  .sent-stamp__dash { opacity: .55; }
  .form .btn.is-loading::after { animation-duration: 1.6s; }
}

/* ---------- Stopka ---------- */
.site-footer { background: var(--graphite-deep); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 48px; }
.site-footer strong { display: block; font: 700 15px/1 var(--font-head); letter-spacing: .16em; color: var(--on-dark); margin-bottom: 16px; }
.site-footer p { max-width: 36ch; margin: 0; }
.site-footer p.site-footer__firm { margin-top: 16px; font-size: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .legal {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 13.5px;
}
.site-footer .legal__links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer .legal__links button {
  padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; transition: color .2s;
}
.site-footer .legal__links button:hover { color: var(--on-dark); }

/* ---------- Okruszki ---------- */
.crumbs { padding: 28px 0 0; font-size: 13.5px; color: var(--steel); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Rysowanie przekroju przy wejściu ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
.js .photo__drawing .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease) forwards; }
.js .photo__drawing .ln:nth-child(2) { animation-delay: .25s; }
.js .photo__drawing .ln:nth-child(3) { animation-delay: .5s; }
.js .photo__drawing .ln:nth-child(4) { animation-delay: .8s; }
.js .photo__drawing .ln:nth-child(5) { animation-delay: 1.1s; }
.js .photo__drawing .ln:nth-child(6) { animation-delay: 1.4s; }
.js .photo__drawing .ln:nth-child(7) { animation-delay: 1.7s; }
.js .photo__drawing .fill-brick circle { animation: fadeIn .6s ease 2s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Lista kontrolna do odbioru ---------- */
.ck-head { max-width: 720px; margin-bottom: 40px; }
.ck-head p:not(.eyebrow) { font-size: 17px; max-width: 620px; }
.ck-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; margin-bottom: 8px; border: 1px solid var(--line-dark); border-radius: 4px; }
.ck-count { font: 600 15px/1 var(--font-body); color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.ck-count strong { color: var(--on-dark); font-size: 22px; font-family: var(--font-head); }
.section--dark .btn--ghost.ck-print { color: var(--on-dark); border-color: var(--line-dark); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-bottom: 1px solid var(--line-dark); }
.ck { position: relative; border-top: 1px solid var(--line-dark); }
.ck__label { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; cursor: pointer; }
.ck input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ck__box {
  flex: none; width: 24px; height: 24px; margin-top: 1px;
  border: 1.5px solid var(--on-dark-muted); border-radius: 3px;
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.ck__label:hover .ck__box { border-color: var(--on-dark); }
.ck__box::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .2s var(--ease);
}
.ck input:checked + .ck__box { background: var(--brick); border-color: var(--brick); }
.ck input:checked + .ck__box::after { transform: rotate(45deg) scale(1); }
.ck input:focus-visible + .ck__box { outline: 2px solid var(--brick); outline-offset: 3px; }
.ck__text { font: 600 18px/1.35 var(--font-head); letter-spacing: -0.01em; color: var(--on-dark); }
.ck__text small { display: block; margin-top: 4px; font: 400 15px/1.5 var(--font-body); color: var(--on-dark-muted); letter-spacing: 0; }
@media (max-width: 720px) {
  .checklist { grid-template-columns: 1fr; }
  .ck-bar { padding: 16px; }
}

@media print {
  body.print-checklist .skip-link,
  body.print-checklist .site-header,
  body.print-checklist .site-footer,
  body.print-checklist .call-bar,
  body.print-checklist main > section:not(#lista) { display: none !important; }
  body.print-checklist #lista { background: none; padding: 0; margin: 0; }
  body.print-checklist #lista * { color: #000 !important; }
  body.print-checklist #lista .reveal { opacity: 1 !important; transform: none !important; }
  body.print-checklist #lista .btn, body.print-checklist #lista .eyebrow { display: none !important; }
  body.print-checklist #lista .ck__box { border: 1.5px solid #000; }
  body.print-checklist #lista .ck input:checked + .ck__box { background: #000; }
  body.print-checklist #lista .ck__box::after { border-color: #fff; }
  body.print-checklist #lista .ck-bar, body.print-checklist #lista .checklist { border-color: #000; }
}

/* ---------- Animacja wejścia (tylko z JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .xviz__cover, .xviz__el, .xviz__layer, .xrow__text { transition: none !important; }
  .js .photo__drawing .ln, .js .photo__drawing .fill-brick circle { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .sector__drawing .ln { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .svc:hover { transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1099px) {
  .nav, .header-call { display: none; }
  .menu-toggle { display: inline-flex; }
  .call-bar { display: grid; }
}

@media (max-width: 920px) {
  .hero__grid, .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .photo { aspect-ratio: 4 / 4.2; max-width: 520px; }
  .services, .sectors, .area { grid-template-columns: minmax(0, 1fr); }
  .area__item, .area__item + .area__item { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .sector { min-height: 0; }
  .services-more, .steps, .checks { grid-template-columns: minmax(0, 1fr); }
  .xrow { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .sec-mark::before { top: 24px; left: 16px; font-size: 110px; }
}

@media (max-width: 720px) {
  /* Każdy wiersz: wyraźna wartość, pod nią opis; wiersze rozdziela cienka linia, akcent jak na desktopie */
  .stats-band .stats { padding: 6px 22px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 18px 0 18px 18px; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child, .stats-band .stat:first-child { border-top: 0; padding-left: 18px; }
  .stat::before, .stat + .stat::before, .stats-band .stat:first-child::before {
    top: 20px; bottom: 20px; left: 0; width: 3px; height: auto;
  }
  .stat__value { font-size: 34px; line-height: 1; letter-spacing: -0.03em; }
  .stat__value small { font-size: .42em; margin-left: 5px; }
  .stat__value--text { font-size: 22px; line-height: 1.2; padding-top: 0; }
  .stat__label { margin-top: 6px; font-size: 14px; line-height: 1.45; max-width: none; }
  /* Sektory jako zwykłe wyliczenie po przecinku – kropka nie wypada wtedy na początek nowej linii */
  .stat__label--list { display: block; font-size: 14px; }
  .stat__label--list span + span::before { content: none; }
  .stat__label--list span { display: inline-block; margin-right: .3em; }
  .stat__label--list span:not(:last-child)::after { content: ","; }
  .facts ul { justify-content: flex-start; }
  .cta-band { padding: 28px 24px; }
  .xviz { height: 120px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn-row .btn { width: 100%; }
  .svc { padding: 28px 24px; min-height: 0; }
  .svc__top { margin-bottom: 36px; }
  .faq details > div { padding-right: 0; }
}

/* --- Baner cookies (RODO): okno na środku ekranu, tło przyciemnione do czasu wyboru --- */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(37, 43, 46, 0.55);
}
.cookie-banner {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; background: var(--white); color: var(--ink);
  border-top: 3px solid var(--brick); border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.cookie-banner:focus { outline: none; }
.cookie-banner p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--steel); }
.cookie-banner .cookie-banner__title { font: 700 22px/1.25 var(--font-head); letter-spacing: -0.015em; color: var(--ink); }
.cookie-banner a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner__actions .btn { flex: 1; height: 48px; padding: 0 18px; font-size: 15px; }
@media (max-width: 720px) {
  .cookie-banner { padding: 20px; gap: 12px; }
  .cookie-banner .cookie-banner__title { font-size: 19px; }
  .cookie-banner p { font-size: 13.5px; line-height: 1.45; }
}

/* --- Polityka prywatności --- */
.policy { max-width: 760px; }
.policy h1 { font-size: clamp(36px, 4.5vw, 52px); line-height: 1.08; margin: 16px 0 12px; }
.policy h2 { font-size: 22px; line-height: 1.3; margin: 44px 0 12px; }
.policy p, .policy li { font-size: 16px; line-height: 1.65; color: var(--ink); }
.policy p { margin: 0 0 14px; }
.policy ul { margin: 0 0 14px; padding-left: 22px; }
.policy li { margin-bottom: 6px; }
.policy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.policy a:hover { color: var(--brick); }
.policy__date { color: var(--steel) !important; font-size: 15px !important; margin-bottom: 8px !important; }
.policy__table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.policy__table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.policy__table th, .policy__table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.policy__table th { font-weight: 600; background: var(--paper); }
.policy__table tr:last-child td { border-bottom: 0; }

/* =========================================================
   Poprawki v3 (październik 2026)
   ========================================================= */
/* O mnie: podpis pod nagłówkiem */
.about-name { margin: 28px 0 0; font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }

/* O mnie: lewa kolumna z uprawnieniami i listą pełnionych funkcji (wypełnia pustą przestrzeń pod nagłówkiem) */
#o-mnie .fact { margin-top: 32px; }
.roles { margin-top: 28px; }
.roles__title { margin: 0 0 12px; font: 600 12px/1.5 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.roles__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles__list li { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font: 600 14px/1.2 var(--font-head); color: var(--ink); background: var(--white); }
.roles__list li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: middle; background: var(--brick); transform: rotate(45deg) translateY(-1px); }

/* Doświadczenie zawodowe: ciemny pas z kafelkami realizacji w stylu rysunku technicznego */
.projects-band { padding: clamp(64px, 8vw, 104px) 0; }
.projects-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(32px, 4vw, 48px); }
.projects-head h2 { margin: 0; }
.projects-head__note { margin: 0; font-size: 15px; max-width: 32ch; }
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.proj {
  position: relative; display: flex; flex-direction: column; min-height: 188px;
  padding: 24px 24px 22px; border: 1px solid var(--line-dark); border-radius: 4px;
  background: rgba(246, 244, 239, .03);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
/* Znaczniki narożników jak na rysunku */
.proj::before, .proj::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--brick); border-style: solid; transition: width .3s var(--ease), height .3s var(--ease); }
.proj::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.proj::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }
.proj:hover { border-color: rgba(246, 244, 239, .28); background: rgba(246, 244, 239, .06); transform: translateY(-3px); }
.proj:hover::before, .proj:hover::after { width: 22px; height: 22px; }
.proj__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.proj__n { font: 700 13px/1 var(--font-head); letter-spacing: .08em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.proj__role { padding: 6px 10px; border: 1px solid rgba(175, 92, 63, .55); border-radius: 999px; font: 600 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #E39A7D; white-space: nowrap; }
.proj__name { font: 600 clamp(18px, 1.6vw, 20px)/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--on-dark); margin: 0; }
.section--dark .proj__city { display: flex; align-items: center; gap: 6px; margin: auto 0 0; padding-top: 14px; font-size: 14px; color: var(--on-dark-muted); }
.proj__city svg { width: 14px; height: 14px; flex: none; color: var(--brick); }
/* Wyróżniona realizacja: największa inwestycja, podwójna szerokość, duża liczba */
.proj--featured { grid-column: span 2; grid-row: span 2; background: var(--brick); border-color: var(--brick); min-height: 0; }
.proj--featured::before, .proj--featured::after { border-color: var(--on-dark); }
.proj--featured:hover { background: var(--brick-dark); border-color: var(--brick-dark); }
.proj--featured .proj__n { color: rgba(246, 244, 239, .75); }
.proj--featured .proj__role { border-color: rgba(246, 244, 239, .55); color: var(--on-dark); }
.proj--featured .proj__name { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; max-width: 14ch; }
.section--dark .proj--featured .proj__city { margin-top: 12px; padding-top: 0; color: rgba(246, 244, 239, .85); }
.proj--featured .proj__city svg { color: var(--on-dark); }
.section--dark .proj__big { margin: auto 0 0; padding-top: 28px; font: 600 18px/1 var(--font-head); color: var(--on-dark); }
.proj__big strong { display: block; font-size: clamp(64px, 7vw, 96px); line-height: .9; letter-spacing: -0.05em; margin-bottom: 6px; }
/* Kafelek z zachętą do kontaktu domyka ostatni rząd siatki */
.proj--cta { grid-column: span 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 0; border-style: dashed; background: transparent; }
.proj--cta::before, .proj--cta::after { display: none; }
.proj--cta:hover { transform: none; background: transparent; }
.section--dark .proj__cta-title { margin: 0; font: 600 clamp(20px, 1.9vw, 24px)/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--on-dark); max-width: 18ch; }
@media (max-width: 1099px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj--featured { grid-row: auto; }
}
@media (max-width: 600px) {
  .projects { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .proj--featured, .proj--cta { grid-column: auto; }
  .proj { min-height: 0; }
  .proj__top { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .proj, .proj::before, .proj::after { transition: none; } .proj:hover { transform: none; } }

/* Pozostałe usługi: tytuły w kolorze ceglastym */
#uslugi .services-more h3 { color: var(--brick); }

/* Kontakt: lista miejscowości pod „Obszar” */
.contact__sub { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--on-dark-muted); }

/* Kroki: wariant zwarty (4 w rzędzie) i 3 w rzędzie */
.steps--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.steps--compact li { padding: 24px 0 26px; }
.steps--compact h3 { font-size: 18px; }
.steps--compact p { font-size: 15px; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 56px); }
.steps + .cta-band { margin-top: 48px; }
@media (max-width: 1099px) { .steps--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 920px) { .steps--compact, .steps--3 { grid-template-columns: minmax(0, 1fr); } }

/* Przekrój: panel tuż pod wierszami */
.xsection + .panel { margin-top: 0; }

/* Podstrona odbioru: mniejsze odstępy, mniej „rozciągnięta” */
.page-compact .section { padding: clamp(56px, 7vw, 92px) 0; }
.page-compact .sec-mark::before { font-size: clamp(110px, 13vw, 160px); top: calc(clamp(56px, 7vw, 92px) * .35); }
.page-compact h2 { margin-bottom: 22px; }
.page-compact .sec-mark h2::after { margin-top: 20px; }
.page-compact .check { padding: 20px 0 22px; }
.page-compact .ck-head { margin-bottom: 28px; }
.page-compact .ck__label { padding: 14px 0; }
.page-compact .area__item { padding-top: 24px; }
.page-compact .area + .cta-band { margin-top: 36px; }
.page-compact .statement { margin-bottom: 20px; }

/* Nadzór inwestorski */
.note-strong { margin-top: 28px; padding: 22px 26px; border-left: 3px solid var(--brick); background: var(--concrete); font: 600 18px/1.5 var(--font-head); letter-spacing: -0.01em; color: var(--ink); border-radius: 0 var(--radius) var(--radius) 0; }
.section > .wrap > .muted { margin: -8px 0 24px; font-size: 17px; }
.scope-note { margin-top: 32px; max-width: 760px; font-size: 15.5px; color: var(--steel); }
/* Nadzór 04: schemat ról na budowie (kto kontroluje, kto prowadzi) */
.roles-map {
  display: grid; margin-top: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(88px, .5fr) minmax(140px, .6fr) minmax(88px, .5fr) minmax(0, 1fr);
  grid-template-areas:
    "sl . . . sr"
    "ty . . . ek"
    "lt . . . le"
    "in ai site ak kb";
  align-items: center;
}
.roles-map__side { margin: 0 0 14px; font: 600 15px/1.3 var(--font-head); color: var(--on-dark-muted); }
.section--dark .roles-map__side { color: var(--on-dark-muted); }
.roles-map__side--l { grid-area: sl; }
.roles-map__side--r { grid-area: sr; }
.rm-node--ty { grid-area: ty; }
.rm-link--ty { grid-area: lt; }
.rm-node--insp { grid-area: in; }
.rm-link--insp { grid-area: ai; }
.rm-site { grid-area: site; }
.rm-link--kb { grid-area: ak; }
.rm-node--kb { grid-area: kb; }
.rm-link--ekipy { grid-area: le; }
.rm-node--ekipy { grid-area: ek; }

.rm-node { align-self: stretch; padding: 20px 24px 22px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--graphite); }
.rm-node h3 { font-size: 19px; color: var(--on-dark); margin-bottom: 6px; }
.section--dark .rm-node p { font-size: 15px; line-height: 1.5; margin: 0; }
.rm-node--insp { border-color: var(--brick); background: #3A3330; box-shadow: inset 3px 0 0 var(--brick); }
.rm-node--ty, .rm-node--ekipy { background: transparent; border-style: dashed; }

.rm-site { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 8px; }
.rm-site svg { width: 100%; max-width: 120px; height: auto; fill: none; stroke: var(--on-dark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rm-site__ground { stroke: var(--on-dark-muted); stroke-width: 1.5; }
.rm-site strong { font: 600 15px/1.3 var(--font-head); color: var(--on-dark); text-align: center; }

/* Połączenia: linia (::before), grot (::after), podpis (span) */
.rm-link { position: relative; align-self: stretch; min-height: 64px; }
.rm-link span { position: absolute; font-size: 13.5px; line-height: 1.3; color: var(--on-dark-muted); white-space: nowrap; }
.rm-link::before { content: ""; position: absolute; background: var(--on-dark-muted); transition: transform .7s var(--ease) var(--d, 0s); }
.rm-link::after { content: ""; position: absolute; width: 0; height: 0; border: 6px solid transparent; transition: opacity .3s var(--ease) calc(var(--d, 0s) + .6s); }
.rm-link--v::before { left: 50%; top: 0; bottom: 0; width: 1px; transform-origin: top; }
.rm-link--v span { left: calc(50% + 14px); top: 50%; transform: translateY(-50%); }
.rm-link--v::after { display: none; }
.rm-link--arrow::before { top: 50%; left: 10px; right: 10px; height: 1px; }
.rm-link--arrow span { left: 0; right: 0; bottom: calc(50% + 10px); text-align: center; }
.rm-link--insp::before { height: 0; background: none; border-top: 2px dashed var(--brick); transform-origin: left; }
.rm-link--insp::after { right: 0; top: 50%; margin-top: -6px; border-left: 9px solid var(--brick); border-right: 0; }
.rm-link--insp span { color: #E39A7D; font-weight: 600; }
.rm-link--kb::before { transform-origin: right; }
.rm-link--kb::after { left: 0; top: 50%; margin-top: -6px; border-right: 9px solid var(--on-dark-muted); border-left: 0; }
.rm-link--ty { --d: .3s; }
.rm-link--insp { --d: .6s; }
.rm-link--kb { --d: 1.1s; }
.rm-link--ekipy { --d: 1.4s; }
/* Jedna sekwencja przy wejściu w widok: najpierw strona inwestora, potem strona realizacji */
.js .roles-map:not(.is-in) .rm-link--v::before { transform: scaleY(0); }
.js .roles-map:not(.is-in) .rm-link--arrow::before { transform: scaleX(0); }
.js .roles-map:not(.is-in) .rm-link::after { opacity: 0; }
.compare__after { margin-top: 56px; }

@media (max-width: 920px) {
  .roles-map { display: flex; flex-direction: column; align-items: stretch; max-width: 520px; }
  .roles-map__side { display: none; }
  .rm-link, .rm-link--arrow { min-height: 56px; }
  .rm-link--arrow::before { top: 0; bottom: 0; left: 50%; right: auto; width: 1px; height: auto; }
  .rm-link--insp::before { width: 0; border-top: 0; border-left: 2px dashed var(--brick); transform-origin: top; }
  .rm-link--kb::before { transform-origin: bottom; }
  .rm-link--arrow span { left: calc(50% + 14px); right: auto; top: 50%; bottom: auto; transform: translateY(-50%); text-align: left; }
  .rm-link--insp::after { right: auto; left: 50%; top: auto; bottom: 0; margin: 0 0 0 -5.5px; border: 6px solid transparent; border-top: 9px solid var(--brick); border-bottom: 0; }
  .rm-link--kb::after { left: 50%; top: 0; margin: 0 0 0 -6px; border: 6px solid transparent; border-bottom: 9px solid var(--on-dark-muted); border-top: 0; }
  .js .roles-map:not(.is-in) .rm-link--arrow::before { transform: scaleY(0); }
  .rm-site { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-link::before, .rm-link::after { transition: none; }
}
.cta-band__person { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.cta-band__person strong { display: block; font: 600 17px/1.3 var(--font-head); color: var(--ink); }
.cta-band__person span { font-size: 14.5px; color: var(--steel); }
/* Nadzór: szersza wersja zdjęcia (dobudowana ściana), postać po prawej, dół kadru zachowany */
.hero--nadzor .hero__media img { object-position: 85% 100%; }

/* Nadzór: przekrój z punktami kontroli (etapy jako zakładki) */
.insp { --p: 0; margin: 36px 0 0; }
.insp__track { display: none; }
.js .insp__track {
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 28px;
}
/* Linia osi: szara całość + ceglasty postęp do aktywnego etapu (środki skrajnych kropek = 10% i 90%) */
.js .insp__track::before,
.js .insp__track::after {
  content: ""; position: absolute; top: 8px; left: 10%; height: 2px; background: var(--line-strong);
}
.js .insp__track::before { right: 10%; }
.js .insp__track::after { width: calc(80% * var(--p)); background: var(--brick); transition: width .6s var(--ease); }
.insp__track button {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 0 4px 10px; border: 0; background: none; cursor: pointer;
  font: 600 17px/1.25 var(--font-head); letter-spacing: -0.01em; color: var(--steel);
  transition: color .25s var(--ease);
}
.insp__track button:hover { color: var(--ink); }
.insp__track button[aria-selected="true"] { color: var(--ink); }
.insp__dot {
  width: 18px; height: 18px; margin-bottom: 12px; border-radius: 50%;
  border: 2px solid var(--steel); background: var(--white);
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.insp__track button.is-done .insp__dot { background: var(--steel); }
.insp__track button[aria-selected="true"] .insp__dot { border-color: var(--brick); background: var(--brick); box-shadow: 0 0 0 5px rgba(175, 92, 63, .18); }
.insp__step { font: 500 13px/1.3 var(--font-body); letter-spacing: 0; color: var(--steel); }

.insp__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.insp__fig {
  margin: 0; padding: clamp(16px, 2.5vw, 28px) clamp(16px, 2.5vw, 28px) 18px;
  background: var(--paper); background-image: var(--grid-light);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.insp__fig svg { width: 100%; height: auto; overflow: visible; }
.insp__fig figcaption { margin-top: 14px; font-size: 13.5px; line-height: 1.5; color: var(--steel); }
.insp__earth-ln { stroke: #667176; stroke-opacity: .32; stroke-width: 1; }
.insp__hatch-bg { fill: #FFFFFF; }
.insp__hatch-ln { stroke: #AF5C3F; stroke-opacity: .5; stroke-width: 1.4; }
.insp__ground { stroke: var(--ink); stroke-width: 1.5; }

/* Stany warstw: wykonane (beton), sprawdzane teraz (ceglaste kreskowanie), jeszcze niewykonane (przerywane) */
.lyr { transition: opacity .5s var(--ease); }
.lyr .sh { fill: var(--concrete); stroke: var(--steel); stroke-width: 1.5; stroke-linejoin: round; transition: fill .4s var(--ease), stroke .4s var(--ease); }
.lyr .sh-ln { stroke: var(--steel); stroke-width: 1.5; transition: stroke .4s var(--ease); }
.lyr .win { fill: var(--white); stroke: var(--steel); stroke-width: 1; }
.lyr .rb circle { fill: var(--steel); transition: fill .4s var(--ease); }
.lyr.is-active .sh { fill: url(#insp-hatch); stroke: var(--brick); stroke-width: 2; }
.lyr.is-active .sh-ln { stroke: var(--brick); stroke-width: 2; }
.lyr.is-active .rb circle { fill: var(--brick-dark); }
.lyr.is-todo { opacity: .5; }
.lyr.is-todo .sh { fill: var(--paper); stroke-dasharray: 5 4; stroke-width: 1.2; }
.lyr.is-todo .sh-ln { stroke-dasharray: 5 4; stroke-width: 1.2; }
.lyr.is-todo .rb, .lyr.is-todo .win { opacity: 0; }

.pin { opacity: 0; transition: opacity .3s var(--ease); }
.lyr.is-active .pin { opacity: 1; }
.pin__dot { fill: var(--brick); }
.pin__ring { fill: none; stroke: var(--brick); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.lyr.is-active .pin__ring { animation: pinPulse 1.4s var(--ease) 2; }
.pin text { fill: #fff; font: 700 13px/1 var(--font-head); text-anchor: middle; }
@keyframes pinPulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }

/* Pieczątka odbioru: przybija się przy wejściu w etap 5 */
.stamp { fill: none; stroke: var(--brick); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform-box: fill-box; transform-origin: center; }
.stamp__in { stroke-width: 1; }
.stamp path { stroke-width: 4.5; }
.lyr--stamp.is-active .stamp { animation: stampIn .5s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes stampIn { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: scale(1); } }

.insp__panel + .insp__panel { margin-top: 40px; }
.js .insp__panel + .insp__panel { margin-top: 0; }
.insp__panel:not([hidden]) { animation: panelIn .45s var(--ease) both; }
.insp__panel:focus-visible { outline-offset: 8px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.insp__panel h3 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.025em; margin-bottom: 10px; }
.insp__when { font-size: 16px; color: var(--brick-dark); margin-bottom: 22px; }
.insp__when b { font-weight: 600; }
.insp__list { list-style: none; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.insp__list li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
/* Pole wyboru z protokołu kontroli */
.insp__list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border: 1.5px solid var(--brick); border-radius: 3px; }
.insp__list li::after { content: ""; position: absolute; left: 6px; top: 18px; width: 5px; height: 9px; border: solid var(--brick); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.insp__why { font-size: 15.5px; color: var(--steel); margin: 0; }
.insp__next {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 0;
  border: 0; background: none; cursor: pointer;
  font: 600 16px/1.4 var(--font-head); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.insp__next span { display: inline-block; transition: transform .25s var(--ease); }
.insp__next:hover { color: var(--brick-dark); }
.insp__next:hover span { transform: translateX(4px); }
.section > .wrap > .insp__after { margin: 72px 0 4px; }

@media (prefers-reduced-motion: reduce) {
  .lyr, .lyr .sh, .pin, .js .insp__track::after { transition: none; }
  .lyr.is-active .pin__ring { animation: none; }
  .lyr--stamp.is-active .stamp { animation: none; opacity: 1; }
  .insp__panel:not([hidden]) { animation: none; }
}
@media (max-width: 920px) {
  .insp__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .insp__step { display: none; }
  .insp__track button { font-size: 14px; padding: 0 0 8px; }
  .js .insp__track { margin: 0 -6px 22px; }
}
@media (max-width: 420px) {
  .insp__track button { font-size: 12.5px; letter-spacing: -0.02em; }
}

@media (max-width: 720px) {
  .hero--nadzor .hero__media img { object-position: 62% 40%; }
}

.mobile-nav.is-open li:nth-child(6) { transition-delay: .2s; }

/* Nadzór: schemat zasięgu (okręgi odległości wokół Olsztyna) */
.area-map { align-items: start; }
.amap {
  width: 100%; max-width: 480px; justify-self: end;
  margin: 0; padding: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) 18px;
  background: var(--white); background-image: var(--grid-light);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.amap svg { width: 100%; height: auto; }
.amap figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--steel); }
.amap__rings circle { fill: none; stroke: var(--steel); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 4 5; }
.amap__rings circle:first-child { fill: rgba(175, 92, 63, .07); stroke: var(--brick); stroke-opacity: .6; stroke-dasharray: none; }
.amap__dim path { fill: none; stroke: var(--steel); stroke-width: 1; }
.amap__dim text { font: 500 12px/1 var(--font-body); fill: var(--steel); text-anchor: middle; }
.amap__north path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.amap__north text { font: 700 13px/1 var(--font-head); fill: var(--ink); text-anchor: middle; }
.amap__towns circle { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.amap__towns text { font: 500 15px/1 var(--font-body); fill: var(--ink); paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
.amap__center circle { fill: var(--brick); }
.amap__center .amap__halo { fill: none; stroke: var(--brick); stroke-width: 1.5; stroke-opacity: .5; }
.amap__center text { font: 700 17px/1 var(--font-head); fill: var(--ink); letter-spacing: -0.01em; paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }

/* Jedno wejście: okręgi rozchodzą się od Olsztyna, potem pojawiają się miejscowości */
.amap__rings circle { transform-origin: 230px 200px; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.amap__rings circle:nth-child(2) { transition-delay: .12s; }
.amap__rings circle:nth-child(3) { transition-delay: .24s; }
.amap__rings circle:nth-child(4) { transition-delay: .36s; }
.amap__towns g { transition: opacity .5s var(--ease) calc(.6s + var(--i) * .08s); }
.js .amap:not(.is-in) .amap__rings circle { transform: scale(.3); opacity: 0; }
.js .amap:not(.is-in) .amap__towns g { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .amap__rings circle, .amap__towns g { transition: none; }
}
@media (max-width: 920px) {
  .amap { justify-self: start; }
}

/* Legenda pod schematem zasięgu (w tej samej ramce): znaczki takie jak na mapie */
.amap-legend { list-style: none; margin: 10px 0 0; border-bottom: 1px solid var(--line); }
.amap-legend li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.amap-legend h3 { font-size: 15.5px; margin: 0 0 2px; }
.amap-legend p { font-size: 14px; line-height: 1.5; color: var(--steel); margin: 0; }
.amap-legend__key { justify-self: center; margin-top: 3px; border-radius: 50%; }
.amap-legend__key--main { width: 12px; height: 12px; background: var(--brick); box-shadow: 0 0 0 3px var(--white), 0 0 0 4.5px rgba(175, 92, 63, .5); }
.amap-legend__key--near { width: 8px; height: 8px; margin-top: 5px; background: var(--ink); }
.amap-legend__key--region { width: 18px; height: 18px; margin-top: 0; border: 1.5px dashed var(--steel); }

/* Odbiór 03: wycena na ciemnym tle + karta zapytania przenosząca dane do formularza */
.quote-split { align-items: center; }
.section--dark .quote-split__call { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 16px; }
.quote-split__call a { color: var(--on-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brick); text-underline-offset: 5px; }
.quote-split__call a:hover { color: #E39A7D; }

.qcard {
  position: relative; color: var(--ink);
  padding: clamp(26px, 3.4vw, 40px); background: var(--white); border-radius: 6px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
}
.qcard::before { content: ""; position: absolute; top: 0; left: clamp(26px, 3.4vw, 40px); width: 56px; height: 3px; background: var(--brick); }
.section--dark .qcard p { color: var(--steel); }
.section--dark .qcard .qcard__title { font: 700 22px/1.25 var(--font-head); letter-spacing: -0.015em; color: var(--ink); margin: 0 0 22px; }
.qcard .field { margin-bottom: 18px; }
.qcard__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.qcard__unit { position: relative; }
.qcard__unit input { padding-right: 44px; }
.qcard__unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--steel); pointer-events: none; }

.qcard__type { border: 0; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.qcard__type legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.qcard__type label { position: relative; cursor: pointer; }
.qcard__type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qcard__type span {
  display: flex; align-items: center; justify-content: center; height: 48px;
  border: 1px solid var(--line-strong); font: 600 15.5px/1 var(--font-head); color: var(--steel);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.qcard__type label:first-of-type span { border-radius: 8px 0 0 8px; }
.qcard__type label:last-of-type span { border-radius: 0 8px 8px 0; margin-left: -1px; }
.qcard__type label:hover span { color: var(--ink); }
.qcard__type input:checked + span { position: relative; z-index: 1; background: var(--graphite); border-color: var(--graphite); color: var(--on-dark); }
.qcard__type input:focus-visible + span { outline: 2px solid var(--brick); outline-offset: 2px; }
.qcard .btn { width: 100%; min-height: 54px; margin-top: 6px; border-radius: 8px; }
.section--dark .qcard .qcard__note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; text-align: center; }
@media (max-width: 480px) { .qcard__row { grid-template-columns: minmax(0, 1fr); } }

/* Odbiór: usterki – tło „papieru milimetrowego” + arkusz protokołu z przykładowymi wpisami */
.section--grid { background: var(--paper); background-image: var(--grid-light); border-top: 1px solid var(--line); }
.defects { align-items: center; }
.defects__statement { font: 600 clamp(22px, 2.3vw, 28px)/1.3 var(--font-head); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 20px; }

.protocol {
  margin: 0; padding: clamp(24px, 3vw, 36px);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 30px 60px -36px rgba(37, 43, 46, .35);
}
.protocol__head { padding-bottom: 16px; border-bottom: 3px double var(--line-strong); }
.protocol__title { margin: 0; font: 700 20px/1.25 var(--font-head); letter-spacing: -0.015em; color: var(--ink); }
.protocol__sub { margin: 4px 0 0; font-size: 14px; color: var(--steel); }
.protocol__list { list-style: none; margin: 0; padding: 0; }
.protocol__list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.protocol__n { font: 700 14px/1.5 var(--font-head); color: var(--brick); font-variant-numeric: tabular-nums; }
.protocol__what { margin: 0; font: 600 16px/1.4 var(--font-head); letter-spacing: -0.01em; color: var(--ink); }
.protocol__why { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--steel); }

.tag {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px;
  font: 600 12.5px/1.2 var(--font-body); color: var(--ink); background: var(--white);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag--cost { color: var(--brick-dark); border-color: rgba(175, 92, 63, .45); background: rgba(175, 92, 63, .06); }
.tag--use { color: var(--steel); }
.tag--quality { color: var(--ink); }

.protocol__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.protocol__sign span { padding-top: 8px; border-top: 1px dashed var(--steel); font-size: 12.5px; color: var(--steel); }
.protocol figcaption { margin-top: 18px; font-size: 13px; color: var(--steel); }

/* Wpisy pojawiają się po kolei, jak dopisywane do protokołu */
.protocol__list li { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.protocol__list li:nth-child(2) { transition-delay: .15s; }
.protocol__list li:nth-child(3) { transition-delay: .3s; }
.protocol__list li:nth-child(4) { transition-delay: .45s; }
.js .protocol:not(.is-in) .protocol__list li { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .protocol__list li { transition: none; } }

@media (max-width: 560px) {
  .protocol__list li { grid-template-columns: 24px minmax(0, 1fr); }
  .protocol__list .tag { grid-column: 2; justify-self: start; margin-top: 6px; }
  .protocol__sign { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* Odbiór: dodatkowe usługi (dom, rynek wtórny) jako dwie karty z rysunkiem */
.extra-head { max-width: 720px; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.extra {
  display: flex; flex-direction: column; padding: clamp(26px, 3vw, 36px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.extra__drawing { width: 100%; max-width: 220px; height: auto; margin-bottom: 26px; color: var(--steel); }
.extra__drawing .ln { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.extra__drawing .ln--ground { stroke: var(--ink); }
.extra__drawing .ln--dim { stroke-width: 1; opacity: .7; }
.extra__drawing .ln--accent { stroke: var(--brick); stroke-width: 2.4; }
.extra h3 { font-size: 22px; margin-bottom: 12px; }
.extra p { font-size: 15.5px; color: var(--steel); }
.extra__link {
  margin-top: auto; padding-top: 24px; align-self: flex-start;
  font: 600 16px/1.4 var(--font-head); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.extra__link span { display: inline-block; transition: transform .25s var(--ease); }
.extra__link:hover { color: var(--brick-dark); }
.extra__link:hover span { transform: translateX(4px); }
@media (max-width: 720px) { .extras { grid-template-columns: minmax(0, 1fr); } }
.extra__drawing .ln--lens { fill: var(--paper); stroke: var(--brick); stroke-width: 2.4; }
.extra__drawing .ln--accent { stroke-width: 1.6; }
.extra__drawing .ln--handle { stroke: var(--brick); stroke-width: 6; }

/* Odbiór 02: rzut mieszkania z zaznaczeniem miejsc kontroli + lista punktów (jeden rozwinięty) */
.scope { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 8px; }
.scope__fig {
  margin: 0; padding: clamp(16px, 2.4vw, 28px) clamp(16px, 2.4vw, 28px) 18px;
  background: var(--paper); background-image: var(--grid-light);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.plan { width: 100%; height: auto; }
.scope__fig figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--steel); }
.plan__hatch-bg { fill: #FFFFFF; }
.plan__hatch-ln { stroke: #AF5C3F; stroke-opacity: .45; stroke-width: 1.4; }

.plan__wall { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: square; }
.plan__wall--in { stroke-width: 3.5; }
.plan__label { font: 500 12px/1 var(--font-body); fill: var(--steel); }

.hl * { transition: fill .3s var(--ease), stroke .3s var(--ease); }
.hl--area rect, .hl--area > path:not(.drop):not(.plan__rail) { fill: var(--white); stroke: none; }
.hl--area[data-k="3"] rect { fill: var(--paper); }
.hl--wet rect { fill: transparent; }
.plan__rail { fill: none; stroke: var(--steel); stroke-width: 2; }
.drop { fill: none; stroke: var(--steel); stroke-width: 1.4; }
.hl--line * { fill: none; stroke: var(--steel); stroke-width: 1.4; }
.hl--dim path { fill: none; stroke: var(--steel); stroke-width: 1; }
.plan__inset { stroke-dasharray: 5 4; }

.hl--area.is-on rect, .hl--area.is-on > path:not(.drop):not(.plan__rail) { fill: url(#plan-hatch); }
.hl--area.is-on .plan__rail { stroke: var(--brick); stroke-width: 2.4; }
.hl--wet.is-on .drop { fill: var(--brick); stroke: var(--brick); }
.hl--line.is-on * { stroke: var(--brick); stroke-width: 2.2; }
.hl--dim.is-on path { stroke: var(--brick); stroke-width: 2; }

.pp { cursor: pointer; }
.pp circle { fill: var(--white); stroke: var(--steel); stroke-width: 1.5; transition: fill .25s var(--ease), stroke .25s var(--ease); }
.pp text { font: 700 12px/1 var(--font-head); fill: var(--steel); text-anchor: middle; pointer-events: none; }
.pp:hover circle { stroke: var(--ink); }
.pp.is-on circle { fill: var(--brick); stroke: var(--brick); }
.pp.is-on text { fill: #fff; }

.scope__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.scope__item { border-bottom: 1px solid var(--line); }
.scope__btn {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 0;
  border: 0; background: none; cursor: pointer; text-align: left;
  font: 600 17px/1.35 var(--font-head); letter-spacing: -0.01em; color: var(--ink);
}
.scope__btn:hover .scope__t { color: var(--brick-dark); }
.scope__n {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--steel); font: 700 13px/1 var(--font-head); color: var(--steel);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.scope__btn[aria-expanded="true"] .scope__n { background: var(--brick); border-color: var(--brick); color: #fff; }
.scope__d { margin: 0 0 18px 42px; font-size: 15.5px; line-height: 1.55; color: var(--steel); }
.js .scope__btn[aria-expanded="false"] + .scope__d { display: none; }
.js .scope__btn[aria-expanded="true"] + .scope__d { animation: panelIn .4s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .hl *, .pp circle, .scope__n { transition: none; }
  .js .scope__btn[aria-expanded="true"] + .scope__d { animation: none; }
}
@media (max-width: 920px) { .scope { grid-template-columns: minmax(0, 1fr); } }

/* Odbiór: lista kontrolna – panel postępu po lewej (przyklejony), lista w jednej kolumnie po prawej */
.ck-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ck-side { align-self: center; }
.section--dark .ck-side > p:not(.eyebrow):not(.ck-note) { font-size: 17px; }
.ck-progress, .ck-actions, .ck-note { display: none; }
.js .ck-progress { display: block; margin-top: 32px; padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--radius); transition: border-color .3s var(--ease); }
.js .ck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.js .ck-note { display: block; }
.section--dark .ck-count { margin: 0; font: 600 15px/1.2 var(--font-body); color: var(--on-dark-muted); }
.ck-count strong { font: 700 52px/1 var(--font-head); letter-spacing: -0.04em; color: var(--on-dark); margin-right: 6px; font-variant-numeric: tabular-nums; }
.ck-meter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 18px 0 14px; }
.ck-meter span { height: 8px; border-radius: 2px; background: var(--line-dark); transition: background .3s var(--ease); }
.ck-meter span.is-on { background: var(--brick); }
.section--dark .ck-status { margin: 0; font-size: 15px; color: var(--on-dark); }
.ck-progress.is-done { border-color: var(--brick); }
.ck-reset { padding: 0; border: 0; background: none; cursor: pointer; font: 600 15px/1.4 var(--font-body); color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 4px; }
.ck-reset:hover { color: var(--on-dark); }
.section--dark .ck-note { margin-top: 16px; font-size: 13.5px; color: var(--on-dark-muted); }

#lista .checklist { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line-dark); }
#lista .ck { transition: background .2s var(--ease); }
#lista .ck__label { padding: 22px 20px; }
#lista .ck:hover { background: rgba(246, 244, 239, .04); }
#lista .ck:has(input:checked) { background: rgba(175, 92, 63, .12); }
@media (prefers-reduced-motion: reduce) { .ck-meter span, #lista .ck { transition: none; } }
@media (max-width: 920px) {
  .ck-layout { grid-template-columns: minmax(0, 1fr); }
  .ck-side { align-self: start; }
}
@media print {
  body.print-checklist #lista .ck-progress,
  body.print-checklist #lista .ck-note,
  body.print-checklist #lista .ck-reset { display: none !important; }
  body.print-checklist #lista .ck-layout { display: block; }
}

/* FAQ: karta „Nie ma tu Twojego pytania?” + pytania z przyciskiem plus/minus, otwarte jako karta */
.faq-ask {
  display: flex; align-items: flex-start; gap: 16px; margin-top: 36px; max-width: 400px;
  padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.faq-ask img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.faq-ask p { margin: 0; }
.faq-ask__title { font: 600 17px/1.3 var(--font-head); letter-spacing: -0.01em; color: var(--ink); }
.faq-ask__text { margin-top: 4px !important; font-size: 15px; line-height: 1.5; color: var(--steel); }
.faq-ask__phone {
  display: inline-block; margin-top: 10px; font: 700 18px/1.2 var(--font-head); color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 2px; text-underline-offset: 5px;
  font-variant-numeric: tabular-nums;
}
.faq-ask__phone:hover { color: var(--brick-dark); }

.faq { border-bottom: 0; }
.faq details {
  border-top: 1px solid var(--line); padding: 0 22px; margin: 0 -22px;
  border-radius: var(--radius); transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq details[open] { background: var(--paper); box-shadow: inset 3px 0 0 var(--brick); border-top-color: transparent; }
.faq details[open] + details { border-top-color: transparent; }
.faq details[open]:last-child { border-bottom-color: transparent; }
.faq summary::after {
  width: 34px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 50%; transform: none;
  background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23AF5C3F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
}
.faq summary:hover::after { border-color: var(--brick); }
.faq details[open] summary::after {
  transform: rotate(180deg); background-color: var(--brick); border-color: var(--brick);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h12' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq details[open] summary { color: var(--ink); }
.faq details > div { padding: 0 56px 26px 0; }
@media (prefers-reduced-motion: reduce) { .faq details { transition: none; } }
@media (max-width: 600px) {
  .faq details { padding: 0 12px; margin: 0 -12px; }
  .faq details > div { padding-right: 0; }
}

/* Zasięg: wezwanie do kontaktu pod tekstem (zamiast osobnej ramki pod mapą) */
.area-cta { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.area-cta__q { margin: 0 0 18px !important; font: 600 clamp(20px, 2vw, 24px)/1.3 var(--font-head); letter-spacing: -0.015em; color: var(--ink); }

/* Odbiór: na szerokim ekranie zdjęcie zaczyna się dalej od lewej (osoby na środku kadru wchodziły pod tekst); lewa krawędź wygaszona */
@media (min-width: 721px) {
  .hero--odbior .hero__media {
    left: 24%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  }
  .hero--odbior .hero__media img { object-position: 62% 35%; }
}
@media (min-width: 721px) and (max-width: 1199px) {
  .hero--odbior .hero__media { left: 40%; }
  .hero--odbior .hero__media img { object-position: 58% 35%; }
}

/* Okruszki na zdjęciu w hero: ciemna „pigułka” dla czytelności na jasnym tle + widoczny ukośnik */
.hero--photo .crumbs ol {
  display: inline-flex; padding: 7px 14px; border-radius: 999px;
  background: rgba(29, 34, 37, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero--photo .crumbs li + li::before { color: rgba(246, 244, 239, .55); }
.hero--photo .crumbs a { color: var(--on-dark-muted); }
.hero--photo .crumbs [aria-current="page"] { color: var(--on-dark); }
@media (max-width: 720px) {
  .hero__crumbs { top: 16px; }
  .hero--photo .crumbs { font-size: 13px; }
}

/* =========================================================
   Nadzór inwestorski v2: karty korzyści, samosprawdzenie, karty zakresu, oś współpracy
   ========================================================= */
/* Wstęp: akapit podstawowy w kolorze treści */
.intro p:not(.lead) { color: #3D464A; line-height: 1.8; }
.intro .btn-row { margin-top: 28px; }

/* Ikony kreskowe wspólne dla kart (ceglasty akcent = .ac) */
.perk__ico, .scope-card__ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perk__ico .ac, .scope-card__ico .ac { stroke: var(--brick); stroke-width: 2.4; }

/* 01: siatka kart korzyści (3 kolumny, pierwsza karta ciemna na dwie kolumny) */
.perks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.perk {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.perk::before, .perk::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--brick); border-style: solid; transition: width .3s var(--ease), height .3s var(--ease); }
.perk::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: var(--radius); }
.perk::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: var(--radius); }
.perk:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(37, 43, 46, .35); }
.perk:hover::before, .perk:hover::after { width: 24px; height: 24px; }
.perk__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.perk__n { font: 700 14px/1 var(--font-head); letter-spacing: .08em; color: var(--brick); font-variant-numeric: tabular-nums; }
.perk__ico { width: 44px; height: 44px; color: var(--steel); transition: transform .4s var(--ease); }
.perk:hover .perk__ico { transform: rotate(-6deg) scale(1.06); }
.perk h3 { font-size: 20px; margin-bottom: 10px; }
.perk p { font-size: 15.5px; color: var(--steel); margin: 0; }

.perk--featured { grid-column: span 2; background: var(--graphite); background-image: var(--grid-dark); border-color: var(--graphite); }
.perk--featured::before, .perk--featured::after { width: 18px; height: 18px; }
.perk--featured:hover { border-color: var(--graphite); }
.perk--featured .perk__top { margin-bottom: auto; padding-bottom: 40px; }
.perk--featured .perk__n { color: #E39A7D; }
.perk--featured .perk__ico { width: 64px; height: 64px; color: var(--on-dark); }
.perk--featured h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; color: var(--on-dark); max-width: 18ch; }
.perk--featured p { font-size: 17px; color: var(--on-dark-muted); max-width: 56ch; }
@media (max-width: 1099px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .perks { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .perk--featured { grid-column: auto; }
  .perk__top { margin-bottom: 20px; }
}

/* 02: samosprawdzenie – panel wyniku po lewej, karty sytuacji po prawej */
.fit-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fit-side .lead { margin-bottom: 0; }
.fit-result { display: none; }
.js .fit-result {
  display: block; margin-top: 32px; padding: 24px; max-width: 420px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.fit-result.is-hot { border-color: var(--brick); box-shadow: inset 3px 0 0 var(--brick); }
.fit-result__count { margin: 0; font: 600 15px/1.2 var(--font-body); color: var(--steel); }
.fit-result__count strong { font: 700 52px/1 var(--font-head); letter-spacing: -0.04em; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.fit-meter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 18px 0 14px; }
.fit-meter span { height: 8px; border-radius: 2px; background: var(--concrete); transition: background .3s var(--ease); }
.fit-meter span.is-on { background: var(--brick); }
.fit-result__msg { margin: 0; font: 600 16px/1.45 var(--font-head); letter-spacing: -0.01em; color: var(--ink); }
.fit-result__cta { margin-top: 20px; }
.fit-result__cta[hidden] { display: none; }
.fit-result__cta:not([hidden]) { animation: panelIn .4s var(--ease) both; }

.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fit {
  position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.fit:hover { border-color: var(--steel); transform: translateX(4px); }
.fit input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fit__box {
  flex: none; width: 24px; height: 24px; margin-top: 1px; display: grid; place-items: center;
  border: 1.5px solid var(--steel); border-radius: 3px; transition: background-color .2s, border-color .2s;
}
.fit__box::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .2s var(--ease);
}
.fit input:checked + .fit__box { background: var(--brick); border-color: var(--brick); }
.fit input:checked + .fit__box::after { transform: rotate(45deg) scale(1); }
.fit input:focus-visible + .fit__box { outline: 2px solid var(--brick); outline-offset: 3px; }
.fit__text { font: 600 17px/1.45 var(--font-head); letter-spacing: -0.01em; color: var(--ink); }
.fit:has(input:checked) { border-color: var(--brick); background: #FBF3EF; }
/* Puenta pod listą: cytat z ceglastym cudzysłowem, bez ramki */
.fit-quote { position: relative; margin: 40px 0 0; padding: 32px 0 0 64px; border-top: 1px solid var(--line-strong); }
.fit-quote::before {
  content: "\201C"; position: absolute; left: -4px; top: 26px;
  font: 700 88px/1 var(--font-head); color: var(--brick);
}
.fit-quote p { margin: 0; font: 600 clamp(20px, 2vw, 24px)/1.4 var(--font-head); letter-spacing: -0.02em; color: var(--steel); }
.fit-quote em { font-style: normal; color: var(--ink); }
@media (max-width: 560px) { .fit-quote { padding-left: 48px; } .fit-quote::before { font-size: 68px; } }
@media (max-width: 920px) {
  .fit-layout { grid-template-columns: minmax(0, 1fr); }
  .js .fit-result { max-width: none; }
}

/* 03: cztery karty zakresu pod przekrojem */
.scope-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scope-card {
  position: relative; padding: 28px 24px 26px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.scope-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brick); transform: scaleX(.2); transform-origin: left; transition: transform .45s var(--ease); }
.scope-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.scope-card:hover::before { transform: scaleX(1); }
.scope-card__ico { width: 40px; height: 40px; margin-bottom: 22px; color: var(--steel); }
.scope-card h3 { font-size: 18px; margin-bottom: 8px; }
.scope-card p { font-size: 15px; color: var(--steel); margin: 0; }
@media (max-width: 1099px) { .scope-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .scope-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* 05: oś współpracy – linia z węzłami (rysuje się przy wejściu), karty pod spodem */
.flow { list-style: none; margin: 16px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Linia od środka pierwszego do środka ostatniego węzła: kolumna = (100% - 2 × 20px) / 3 */
.flow::before, .flow::after { content: ""; position: absolute; top: 23px; left: 24px; right: calc((100% - 40px) / 3 - 24px); height: 2px; }
.flow::before { background: var(--line-strong); }
.flow::after { background: var(--brick); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.flow__step { position: relative; display: flex; flex-direction: column; }
.flow__node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px;
  border-radius: 50%; border: 2px solid var(--brick); background: var(--paper);
  font: 700 18px/1 var(--font-head); color: var(--brick);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.flow__step:nth-child(1) .flow__node { transition-delay: .2s; }
.flow__step:nth-child(2) .flow__node { transition-delay: .8s; }
.flow__step:nth-child(3) .flow__node { transition-delay: 1.4s; }
.flow.is-in .flow__node { background: var(--brick); color: #fff; box-shadow: 0 0 0 6px rgba(175, 92, 63, .15); }
.flow__card {
  flex: 1; padding: 26px 26px 28px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.flow__card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(37, 43, 46, .3); }
.flow__tag { margin: 0 0 12px; font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brick-dark); }
.flow__card h3 { font-size: 20px; margin-bottom: 10px; }
.flow__card p:not(.flow__tag) { font-size: 15.5px; color: var(--steel); margin: 0; }
.js .flow:not(.is-in)::after { transform: scaleX(0); }
@media (max-width: 920px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* Pionowo: odcinek od węzła do następnego węzła w każdym kroku (ostatni bez odcinka) */
  .flow::before, .flow::after { display: none; }
  .flow__step:not(:last-child)::before {
    content: ""; position: absolute; left: 23px; top: 48px; bottom: -16px; width: 2px;
    background: var(--brick); transform-origin: top; transition: transform .6s var(--ease);
  }
  .flow__step:nth-child(2)::before { transition-delay: .6s; }
  .js .flow:not(.is-in) .flow__step::before { transform: scaleY(0); }
  .flow__step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 18px; align-items: start; }
  .flow__node { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .perk, .perk::before, .perk::after, .perk__ico, .fit, .fit-meter span, .scope-card, .scope-card::before, .flow::after, .flow__step::before, .flow__node, .flow__card { transition: none; }
  .perk:hover, .scope-card:hover, .flow__card:hover, .fit:hover { transform: none; }
  .perk:hover .perk__ico { transform: none; }
  .fit-result__cta:not([hidden]) { animation: none; }
}

/* =========================================================
   Kierownik budowy v2: oś z 4 krokami, karta wyceny
   ========================================================= */
/* Oś z czterema krokami (kolumna = (100% - 3 × 20px) / 4) */
.flow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow--4::before, .flow--4::after { right: calc((100% - 60px) / 4 - 24px); }
.flow--4 .flow__step:nth-child(4) .flow__node { transition-delay: 2s; }
.flow--4 .flow__card { padding: 24px 22px 26px; }
.flow--4 .flow__card h3 { font-size: 19px; }
@media (min-width: 921px) and (max-width: 1099px) {
  .flow--4 .flow__card { padding: 22px 18px 24px; }
  .flow--4 .flow__card h3 { font-size: 17.5px; }
}
@media (max-width: 920px) {
  .flow--4 { grid-template-columns: minmax(0, 1fr); }
  .flow__step:nth-child(3)::before { transition-delay: 1.2s; }
}
.flow + .cta-band { margin-top: 48px; }

/* Lista wyboru w karcie wyceny – wygląd jak pola tekstowe, własna strzałka */
.field select {
  display: block; width: 100%; min-height: 54px; padding: 14px 44px 14px 16px;
  font: 400 16px/1.4 var(--font-body); color: var(--ink); cursor: pointer;
  background: #FAF9F6 right 16px center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23AF5C3F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border: 1px solid #D9D5CC; border-radius: 8px; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select:hover { border-color: #B9B3A7; }
.field select:focus { outline: none; background-color: var(--white); border-color: var(--brick); box-shadow: 0 0 0 4px rgba(175, 92, 63, .16); }
@media (max-width: 420px) { .qcard__type span { font-size: 14px; padding: 0 6px; text-align: center; } }

/* Kierownik: na szerokim ekranie zdjęcie zaczyna się dalej od lewej, postać po prawej stronie tekstu; lewa krawędź wygaszona */
@media (min-width: 721px) {
  .hero--kierownik .hero__media {
    left: 22%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  }
  .hero--kierownik .hero__media img { object-position: 40% 35%; }
}
@media (min-width: 721px) and (max-width: 1199px) {
  .hero--kierownik .hero__media { left: 36%; }
  .hero--kierownik .hero__media img { object-position: 52% 35%; }
}

/* Hero ze zdjęciem: przy pierwszym wejściu karta liczb zaczyna się pod dolną krawędzią ekranu.
   Wysokość = ekran − nagłówek + 72px (nachodzenie karty) + 24px zapasu; tekst wyśrodkowany w pionie */
@media (min-width: 721px) {
  .hero--photo {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100vh - var(--header-h) + 96px);
    min-height: calc(100svh - var(--header-h) + 96px);
  }
  .hero--photo .hero__content { width: 100%; }
}

/* Pole daty: Safari na iOS nadaje mu własną minimalną szerokość (wychodziło poza kartę wyceny) i centruje tekst */
.field input[type="date"] {
  -webkit-appearance: none; appearance: none;
  min-width: 0; max-width: 100%; text-align: left;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="date"]::-webkit-calendar-picker-indicator { margin-left: auto; cursor: pointer; }
.qcard .field { min-width: 0; }
