/* Pracownia Rzut - projekt przykładowy WELES, styl „Raster”.
   Istota stylu ze źródła 16-raster: siatka i rytm modułów, chowający się nagłówek, średni ruch
   (maski wierszy, kaskady, rysowane linie, lekka paralaksa, karty odwracane). Układ przeprojektowany:
   hero = siatka kadrów realizacji, nagłówek = tabelka rysunku zamiast kapsuły menu. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/Montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/Montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/PlayfairDisplay-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/PlayfairDisplay-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat Fallback"; font-weight: 400 500; src: local("Arial"); size-adjust: 113%; ascent-override: 85.7%; descent-override: 22.2%; }
@font-face { font-family: "Montserrat Fallback"; font-weight: 600 800; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 110%; ascent-override: 87%; descent-override: 22.6%; }

:root {
  --grafit: #2B2A28;        /* tekst, pas „Jak pracujemy”, stopka (13,6:1 na papierze) */
  --grafit-2: #3A3835;      /* najechanie na ciemnym */
  --grafit-3: #1F1E1C;      /* pasek WELES */
  --papier: #F3EFE8;        /* główne tło */
  --bialy: #FFFFFF;         /* pola formularza, karty opinii */
  --beton: #E4DED4;         /* pas notatek, przód kart zespołu */
  --linia: #D3CBBE;         /* linie siatki i podziały */
  --szary: #5F5A53;         /* tekst pomocniczy (6,0:1 na papierze) */
  --terakota: #A3482A;      /* jedyny akcent na jasnym (5,2:1 na papierze) */
  --terakota-2: #E08A64;    /* akcent na grafitowym (5,5:1) */
  --na-grafit: rgba(255, 255, 255, 0.78);
  --linia-grafit: rgba(255, 255, 255, 0.16);

  --font: "Montserrat", "Montserrat Fallback", Arial, sans-serif;
  --font-liczby: "Playfair Display", Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --kontener: 1280px;
  --margines: 64px;
  --odstep: 16px;           /* szczelina siatki hero i projektów */
  --promien: 2px;
  --sekcja: clamp(88px, 10vw, 152px);
  --naglowek-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  font-family: var(--font); font-size: 17px; line-height: 1.65; font-weight: 400;
  color: var(--grafit); background: var(--papier);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--terakota); outline-offset: 3px; }
.na-grafit :focus-visible { outline-color: var(--terakota-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.przeskocz { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--grafit); color: var(--bialy); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.przeskocz:focus { top: 16px; }
section[id] { scroll-margin-top: var(--naglowek-h); }

.kontener { width: 100%; max-width: calc(var(--kontener) + 2 * var(--margines)); margin: 0 auto; padding: 0 var(--margines); }

/* ---------- Pasek projektu przykładowego ---------- */
.pasek-weles { background: var(--grafit-3); color: rgba(255, 255, 255, 0.82); font-size: 13px; line-height: 1.4; }
.pasek-weles .kontener { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-block: 8px; }
.pasek-weles a { color: var(--terakota-2); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Typografia ---------- */
.h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.12; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.22; font-weight: 700; letter-spacing: -0.025em; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--szary); }
.etykieta { display: inline-block; font-size: 12px; line-height: 1.4; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--szary); }
.na-grafit .etykieta { color: var(--na-grafit); }
.liczba { font-family: var(--font-liczby); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }

/* Podkreślenie frazy kreską terakoty: rysuje się przy wejściu w widok */
.podkr { position: relative; white-space: nowrap; }
.podkr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.03em; height: 0.07em; min-height: 3px;
  background: var(--terakota); transform: scaleX(0); transform-origin: left center;
  transition: transform 900ms var(--ease-out) 250ms;
}
.na-grafit .podkr::after { background: var(--terakota-2); }
.podkr.jest::after, .bez-js .podkr::after { transform: scaleX(1); }

/* ---------- Przyciski: prostokąty, nie pigułki ---------- */
.przycisk {
  display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: var(--promien); font-size: 15px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.przycisk:active { transform: scale(0.97); }
.przycisk .strzalka { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
.przycisk--grafit { background: var(--grafit); color: var(--bialy); }
.przycisk--terakota { background: var(--terakota); color: var(--bialy); }
.przycisk--obrys { border-color: var(--grafit); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .przycisk:hover .strzalka { transform: translateX(3px); }
  .przycisk--grafit:hover { background: var(--grafit-2); }
  .przycisk--terakota:hover { background: #8E3D22; }
  .przycisk--obrys:hover { background: var(--grafit); color: var(--bialy); }
}
.link-strz { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--terakota); }
.link-strz .strzalka { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }

/* Kwadratowe przyciski strzałek (pas opinii) */
.kwadrat {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--grafit); border-radius: var(--promien);
  background: transparent; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out);
}
.kwadrat svg { width: 20px; height: 20px; }
.kwadrat:active { transform: scale(0.95); }
.kwadrat:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .kwadrat:not(:disabled):hover { background: var(--grafit); color: var(--bialy); } }

/* ---------- Nagłówek: tabelka rysunku ---------- */
.naglowek {
  position: sticky; top: 0; z-index: 50; height: var(--naglowek-h);
  background: rgba(243, 239, 232, 0.96); border-bottom: 1px solid var(--linia);
  transition: transform 320ms var(--ease-out);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .naglowek { background: rgba(243, 239, 232, 0.86); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); }
}
.naglowek.schowany { transform: translateY(-100%); }
.naglowek__wnetrze { height: 100%; display: flex; align-items: stretch; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-right: 28px; flex: none; }
.logo__znak { width: 34px; height: 34px; color: var(--grafit); flex: none; }
.logo__nazwa { display: flex; flex-direction: column; line-height: 1.15; }
.logo__nazwa strong { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.logo__nazwa small { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--szary); margin-top: 3px; }
.logo--jasne .logo__znak { color: var(--bialy); }
.logo--jasne small { color: var(--na-grafit); }

.tabelka { flex: 1; display: flex; border-left: 1px solid var(--linia); }
.tabelka__menu { display: flex; flex: 1; }
.tabelka__menu li { flex: 1; border-right: 1px solid var(--linia); }
.tabelka__menu a {
  position: relative; display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 0 18px;
  font-size: 15px; font-weight: 600; text-decoration: none; line-height: 1.2; transition: background-color 200ms ease;
}
.tabelka__nr { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--terakota); margin-bottom: 4px; }
.tabelka__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--terakota);
  transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out);
}
.tabelka__menu a.aktywny::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .tabelka__menu a:hover { background: rgba(255, 255, 255, 0.55); } }
.naglowek__cta { align-self: center; margin-left: 24px; min-height: 46px; padding: 0 20px; }
.burger { display: none; }

.menu-tel {
  position: fixed; z-index: 49; left: 0; right: 0; top: var(--naglowek-h);
  background: var(--papier); border-bottom: 1px solid var(--linia); padding: 8px var(--margines) 24px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 300ms var(--ease-out), visibility 0s linear 300ms;
}
.menu-tel.otwarte { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 300ms var(--ease-out), visibility 0s; }
.menu-tel a:not(.przycisk) { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linia); font-size: 20px; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.menu-tel .przycisk { margin-top: 18px; width: 100%; justify-content: center; }
@media (min-width: 1101px) { .menu-tel { display: none; } }

@media (max-width: 1100px) {
  :root { --naglowek-h: 68px; }
  .tabelka { display: none; }
  .naglowek__wnetrze { justify-content: space-between; align-items: center; }
  .naglowek__cta { margin-left: auto; margin-right: 12px; }
  .burger {
    display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--linia);
    background: none; cursor: pointer; font-size: 15px; font-weight: 600;
  }
  .burger__ikona { position: relative; width: 22px; height: 14px; }
  .burger__ikona::before, .burger__ikona::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 240ms var(--ease-out);
  }
  .burger__ikona::before { top: 2px; } .burger__ikona::after { top: 10px; }
  .burger[aria-expanded="true"] .burger__ikona::before { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__ikona::after { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Hero: siatka kadrów ---------- */
.hero { position: relative; padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 7vw, 104px); overflow: hidden; }
.hero__siatka {
  position: relative; display: grid; gap: var(--odstep);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(210px, auto) minmax(210px, auto) 260px auto;
  grid-template-areas:
    "t t t t t a a a a b b b"
    "t t t t t a a a a b b b"
    "c c c d d e e e e f f f"
    "l l l l l l l l l l l l";
}
/* Linie kolumn siatki widoczne pod treścią: „raster” jak na kalce */
.hero__siatka::before {
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: -200px; bottom: -24px; pointer-events: none;
  --kol: calc((100% - 11 * var(--odstep)) / 12 + var(--odstep));
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), var(--linia) 0) 0 0 / var(--kol) 100%,
    linear-gradient(90deg, var(--linia) 1px, transparent 0) 0 0 / 100% 100% no-repeat;
  opacity: 0.6;
}
.hero__siatka > * { position: relative; z-index: 1; }
.hero__tekst { grid-area: t; align-self: center; padding: 8px 32px 24px 0; background: var(--papier); }
.hero .etykieta { margin-bottom: 24px; }
.hero .h1 { margin-bottom: 24px; }
.hero .lead { max-width: 500px; margin-bottom: 32px; }
.hero__przyciski { display: flex; flex-wrap: wrap; gap: 12px; }
.wiersz { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wiersz > span { display: block; }

.kadr { position: relative; display: block; overflow: hidden; background: var(--beton); text-decoration: none; }
.kadr--a { grid-area: a; } .kadr--b { grid-area: b; } .kadr--c { grid-area: c; }
.kadr--d { grid-area: d; } .kadr--e { grid-area: e; } .kadr--f { grid-area: f; }
.kadr img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--p, 0px), 0) scale(1.08); will-change: transform;
  transition: transform 1100ms var(--ease-out);
}
.kadr__podpis {
  position: absolute; left: 0; bottom: 0; display: flex; gap: 10px; align-items: baseline;
  padding: 8px 14px 8px 12px; background: var(--papier); font-size: 13px; font-weight: 600; line-height: 1.3;
  transition: transform 300ms var(--ease-out);
}
.kadr__nr { font-size: 11px; letter-spacing: 0.14em; color: var(--terakota); }
@media (hover: hover) and (pointer: fine) {
  .kadr:hover .kadr__podpis { transform: translateY(-4px); }
  .kadr:hover img { transform: translate3d(0, var(--p, 0px), 0) scale(1.12); transition-duration: 700ms; }
}

/* Liczby: jeden wiersz tabelki pod mozaiką zamiast karty nachodzącej na hero */
.hero__liczby { grid-area: l; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--grafit); border-bottom: 1px solid var(--linia); background: var(--papier); margin-top: 16px; }
.hero__liczby > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 20px 24px 22px; border-left: 1px solid var(--linia); }
.hero__liczby > div:first-child { border-left: 0; padding-left: 0; }
.hero__liczby dd { display: flex; align-items: baseline; gap: 8px; color: var(--terakota); }
.hero__liczby .liczba { font-size: clamp(40px, 3.8vw, 56px); line-height: 1; }
.hero__liczby .jedn { font-size: 16px; font-weight: 700; color: var(--grafit); }
.hero__liczby dt { font-size: 14px; font-weight: 500; color: var(--szary); line-height: 1.4; }

/* Wejście hero (raz). Bez JS wszystko widoczne. */
.js .wejscie .wiersz > span { transform: translateY(105%); }
.js .wejscie .po-wierszu { opacity: 0; transform: translateY(14px); }
.js .wejscie .kadr { clip-path: inset(100% 0 0 0); }
.js .wejscie .kadr img { transform: translate3d(0, 0, 0) scale(1.2); }
.wiersz > span, .po-wierszu { transition: transform 800ms var(--ease-out), opacity 600ms var(--ease-out); }
.wiersz > span { transition-delay: calc(var(--i, 0) * 80ms); }
.po-wierszu { transition-delay: calc(220ms + var(--i, 0) * 70ms); }
.kadr { transition: clip-path 900ms var(--ease-in-out); transition-delay: calc(120ms + var(--k, 0) * 90ms); }
.js .kadr img { transition-delay: calc(120ms + var(--k, 0) * 90ms); }
.js .kadr.gotowy img { transition-delay: 0ms; transition-duration: 500ms; }

/* ---------- Sekcje i tytuły sekcji ---------- */
.sekcja { padding: var(--sekcja) 0; }
.sekcja--beton { background: var(--beton); }
.na-grafit { background: var(--grafit); color: var(--bialy); }

.tytul-sekcji {
  display: grid; grid-template-columns: minmax(64px, 1fr) 6fr 5fr; gap: 0 32px; align-items: start;
  padding-top: 24px; border-top: 2px solid var(--grafit); margin-bottom: clamp(48px, 5vw, 80px);
}
.na-grafit .tytul-sekcji { border-top-color: var(--bialy); }
.tytul-sekcji__nr { font-family: var(--font-liczby); font-weight: 700; font-size: clamp(28px, 2.4vw, 36px); line-height: 1.1; color: var(--terakota); }
.na-grafit .tytul-sekcji__nr { color: var(--terakota-2); }
.tytul-sekcji__opis { color: var(--szary); max-width: 460px; padding-top: 6px; }
.na-grafit .tytul-sekcji__opis { color: var(--na-grafit); }
.tytul-sekcji--bez-linii { grid-template-columns: 1fr; border-top: 0; padding-top: 0; margin-bottom: 24px; }
.tytul-sekcji--bez-linii .tytul-sekcji__nr { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--linia); width: 100%; }
.na-grafit .tytul-sekcji--bez-linii .tytul-sekcji__nr { border-bottom-color: var(--linia-grafit); }
.tytul-sekcji--bez-linii .tytul-sekcji__opis { margin-top: 18px; padding-top: 0; }

/* ---------- Projekty: przesunięty rytm 7/5 ---------- */
.projekty { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(56px, 6vw, 88px) var(--odstep); align-items: start; }
.projekt--szeroki { grid-column: span 7; }
.projekt--waski { grid-column: span 5; padding-left: clamp(0px, 3vw, 48px); }
.projekt:nth-child(2), .projekt:nth-child(6) { margin-top: clamp(56px, 8vw, 120px); }
.projekt__kadr { overflow: hidden; background: var(--beton); aspect-ratio: 3 / 2; }
.projekt--waski .projekt__kadr { aspect-ratio: 4 / 3; }
.projekt__kadr--pion, .projekt--waski .projekt__kadr--pion { aspect-ratio: 4 / 5; }
.projekt__kadr img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.projekt__dane { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr; border-bottom: 1px solid var(--linia); margin: 18px 0 20px; }
.projekt__dane > div { padding: 10px 14px 12px; border-left: 1px solid var(--linia); }
.projekt__dane > div:first-child { border-left: 0; padding-left: 0; }
.projekt__dane dt { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--szary); }
.projekt__dane dd { font-size: 15px; font-weight: 600; line-height: 1.35; margin-top: 2px; }
.projekt .h3 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.projekt__nr { font-family: var(--font-liczby); font-size: 0.9em; color: var(--terakota); }
.projekt__opis { color: var(--szary); max-width: 560px; }
@media (hover: hover) and (pointer: fine) { .projekt:hover .projekt__kadr img { transform: scale(1.03); } }

/* ---------- Jak pracujemy (grafit) ---------- */
.proces__gora { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(56px, 6vw, 88px); }
.proces__gora .tytul-sekcji { margin-bottom: 0; }
.proces__szkic { background: var(--papier); padding: 12px; transform: rotate(-1.2deg); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8); }
.js .proces__szkic.poj { transform: translateY(18px) rotate(0deg); }
.js .proces__szkic.poj.jest { transform: rotate(-1.2deg); }
.proces__szkic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.etapy { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: etap; }
/* Linia przez wszystkie etapy, rysowana przy wejściu w widok */
.etapy::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--terakota-2);
  transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease-in-out) 150ms;
}
.etapy.jest::before, .bez-js .etapy::before { transform: scaleX(1); }
.etap { position: relative; padding: 36px 24px 0 0; display: flex; flex-direction: column; }
.etap + .etap { padding-left: 24px; border-left: 1px solid var(--linia-grafit); }
.etap::before { content: ""; position: absolute; top: -5px; left: 0; width: 10px; height: 10px; background: var(--terakota-2); }
.etap + .etap::before { left: -5px; }
.etap__nr { font-family: var(--font-liczby); font-weight: 700; font-size: 40px; line-height: 1; color: var(--terakota-2); margin-bottom: 18px; }
.etap h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 12px; }
.etap p { font-size: 15px; color: var(--na-grafit); }
.etap .etap__wynik { margin-top: auto; padding-top: 22px; font-size: 13px; font-weight: 600; color: var(--bialy); }

/* ---------- Usługi: komórki siatki ---------- */
.uslugi { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.uslugi__bok { position: sticky; top: calc(var(--naglowek-h) + 32px); }
.uslugi__materialy { margin-top: 32px; }
.uslugi__materialy img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.uslugi__materialy figcaption { font-size: 14px; color: var(--szary); margin-top: 12px; line-height: 1.5; }
.uslugi__komorki { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linia); border: 1px solid var(--linia); }
.usluga { position: relative; display: flex; flex-direction: column; background: var(--papier); padding: 32px 32px 36px; min-height: 330px; transition: background-color 240ms ease; }
.usluga__nr { font-size: 44px; line-height: 1; color: var(--terakota); margin-bottom: 40px; }
.usluga .h3 { margin-bottom: 14px; }
.usluga__wymiana { display: grid; }
.usluga__wymiana > * { grid-area: 1 / 1; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.usluga__opis { color: var(--szary); font-size: 16px; }
.sytuacje { opacity: 0; transform: translateY(8px); }
.sytuacje li { position: relative; padding: 8px 0 8px 20px; font-size: 15px; font-weight: 600; line-height: 1.4; border-top: 1px solid var(--linia); }
.sytuacje li:first-child { border-top: 0; padding-top: 0; }
.sytuacje li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; background: var(--terakota); }
.sytuacje li:first-child::before { top: 7px; }
.usluga--cta { background: var(--grafit); color: var(--bialy); text-decoration: none; }
.usluga--cta .usluga__nr { font-family: var(--font-liczby); font-weight: 700; color: var(--terakota-2); }
.usluga--cta .usluga__opis { color: var(--na-grafit); margin-bottom: 24px; }
.usluga--cta .link-strz { margin-top: auto; color: var(--terakota-2); }
@media (hover: hover) and (pointer: fine) {
  .usluga:not(.usluga--cta):hover { background: var(--bialy); }
  .usluga:not(.usluga--cta):hover .usluga__opis { opacity: 0; transform: translateY(-8px); }
  .usluga:hover .sytuacje { opacity: 1; transform: none; }
  .usluga--cta:hover { background: var(--grafit-2); }
  .usluga--cta:hover .strzalka { transform: translateX(3px); }
}
@media (hover: none), (pointer: coarse) {
  .usluga__wymiana > * { grid-area: auto; }
  .sytuacje { opacity: 1; transform: none; margin-top: 16px; }
}

/* ---------- Opinie: pas na tle milimetrówki ---------- */
.opinie {
  background-color: var(--papier);
  background-image:
    linear-gradient(rgba(163, 72, 42, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 72, 42, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(43, 42, 40, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 42, 40, 0.05) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
  border-top: 1px solid var(--linia); border-bottom: 1px solid var(--linia);
}
.opinie .tytul-sekcji { grid-template-columns: minmax(64px, 1fr) 6fr 5fr; align-items: center; }
.pas__sterowanie { display: flex; gap: 10px; justify-content: flex-end; }
.pas { display: flex; gap: var(--odstep); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(var(--margines), calc((100vw - var(--kontener)) / 2));
  padding: 4px max(var(--margines), calc((100vw - var(--kontener)) / 2)) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pas::-webkit-scrollbar { display: none; }
.opinia {
  flex: 0 0 clamp(280px, 30vw, 400px); scroll-snap-align: start; display: flex; flex-direction: column; min-height: 320px;
  background: var(--bialy); border: 1px solid var(--linia); padding: 32px;
}
.opinia__typ { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terakota); margin-bottom: 28px; }
.opinia blockquote { font-size: 19px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.opinia figcaption { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--szary); border-top: 1px solid var(--linia); }
.opinia blockquote + figcaption { margin-top: auto; }

/* ---------- Zespół ---------- */
.zespol__gora { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(56px, 6vw, 88px); }
.zespol__kadr { overflow: hidden; background: var(--beton); }
.zespol__kadr img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.zespol__tekst > p { color: var(--szary); margin-bottom: 28px; }
.zasady { counter-reset: z; }
.zasady li { counter-increment: z; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--linia); font-size: 16px; color: var(--szary); }
.zasady li::before { content: counter(z, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--font-liczby); font-weight: 700; color: var(--terakota); }
.zasady strong { color: var(--grafit); }

.osoby { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--odstep); }
.flip { position: relative; perspective: 1400px; -webkit-perspective: 1400px; min-height: 420px; }
.flip__wnetrze { position: relative; height: 100%; min-height: inherit; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform 640ms var(--ease-in-out); }
.flip.obrocona .flip__wnetrze { transform: rotateY(180deg); }
/* Zabezpieczenie, gdy przeglądarka nie respektuje backface-visibility: strona znika w połowie obrotu */
.flip__przod, .flip__tyl { transition: visibility 0s linear 320ms; }
.flip__tyl { visibility: hidden; }
.flip.obrocona .flip__tyl { visibility: visible; }
.flip.obrocona .flip__przod { visibility: hidden; }
.flip__strona { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; }
.flip__przod { background: var(--bialy); border: 1px solid var(--linia); transform: rotateY(0deg) translateZ(1px); }
.flip__tyl { background: var(--grafit); color: var(--bialy); transform: rotateY(180deg) translateZ(1px); padding: 28px 24px 24px; }
.flip__inicjaly {
  display: grid; place-items: center; aspect-ratio: 4 / 3; background-color: var(--beton);
  background-image: linear-gradient(rgba(43, 42, 40, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 42, 40, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  font-family: var(--font-liczby); font-weight: 700; font-size: clamp(56px, 5vw, 76px); letter-spacing: 0.02em; color: var(--grafit);
}
.flip__opis { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.flip__imie { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.flip__spec { font-size: 14px; color: var(--szary); margin-top: 6px; line-height: 1.4; }
.flip__obroc {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--terakota); background: none;
  border-radius: var(--promien); padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 200ms ease;
}
.flip__obroc:active { transform: scale(0.97); }
.flip__obroc svg { width: 16px; height: 16px; }
.flip__tyl .flip__obroc { border-color: var(--terakota-2); color: var(--bialy); }
.flip__tyl .etykieta { font-size: 11px; color: var(--terakota-2); margin-bottom: 10px; letter-spacing: 0.18em; }
.flip__tyl h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.flip__rola { font-size: 14px; color: var(--na-grafit); margin: 8px 0 16px; line-height: 1.45; }
.flip__projekty li { position: relative; padding: 11px 0 11px 18px; border-top: 1px solid var(--linia-grafit); font-size: 14px; line-height: 1.45; }
.flip__projekty li::before { content: ""; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; background: var(--terakota-2); }
.flip__tyl-dol { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; font-size: 13px; color: var(--na-grafit); }
@media (hover: hover) and (pointer: fine) { .flip__obroc:hover { background: var(--papier); } .flip__tyl .flip__obroc:hover { background: var(--grafit-2); } }

/* ---------- Notatki ---------- */
.notatki { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: 0 clamp(32px, 4vw, 64px); }
.notatka { display: flex; flex-direction: column; text-decoration: none; padding: 28px 0; border-top: 1px solid var(--szary); }
.notatka--glowna { grid-row: 1 / span 2; padding-top: 0; border-top: 0; }
.notatka__kadr { display: block; overflow: hidden; margin-bottom: 24px; background: var(--papier); }
.notatka__kadr img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 700ms var(--ease-out); }
.notatka__meta { display: flex; gap: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--szary); margin-bottom: 12px; }
.notatka__meta span:first-child { color: var(--terakota); }
.notatka__tytul { font-size: 22px; line-height: 1.28; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.notatka--glowna .notatka__tytul { font-size: clamp(24px, 2.2vw, 32px); }
.notatka__lead { color: var(--szary); font-size: 16px; margin-bottom: 18px; }
@media (hover: hover) and (pointer: fine) {
  .notatka:hover .notatka__kadr img { transform: scale(1.03); }
  .notatka:hover .strzalka { transform: translateX(3px); }
  .notatka:hover .notatka__tytul { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
}

/* ---------- Kontakt ---------- */
.kontakt__siatka { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.kontakt__tekst > p { color: var(--szary); margin-bottom: 32px; max-width: 460px; }
.kontakt__dane > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--linia); }
.kontakt__dane > div:last-child { border-bottom: 1px solid var(--linia); }
.kontakt__dane dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--szary); padding-top: 3px; }
.kontakt__dane dd { font-weight: 600; }
.kontakt__dane a { text-decoration: none; background: linear-gradient(var(--terakota), var(--terakota)) 0 100% / 0 2px no-repeat; transition: background-size 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .kontakt__dane a:hover { background-size: 100% 2px; } }
.formularz { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(24px, 3vw, 40px); background: var(--bialy); border: 1px solid var(--linia); border-top: 3px solid var(--terakota); }
.pole { display: flex; flex-direction: column; gap: 6px; }
.pole--cale, .formularz__dol { grid-column: 1 / -1; }
.pole label { font-size: 14px; font-weight: 600; }
.pole input, .pole select, .pole textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #B9B0A2; border-radius: var(--promien); background: var(--papier);
  font-size: 16px; transition: border-color 200ms ease, background-color 200ms ease;
}
.pole textarea { resize: vertical; min-height: 120px; }
.pole input:focus, .pole select:focus, .pole textarea:focus { outline: 2px solid var(--terakota); outline-offset: 0; border-color: var(--terakota); background: var(--bialy); }
.pole input[aria-invalid="true"] { border-color: var(--terakota); }
.pole__blad { font-size: 14px; color: var(--terakota); font-weight: 600; }
.formularz__dol { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.formularz__info { font-size: 15px; font-weight: 600; color: var(--grafit); }

/* ---------- Stopka ---------- */
.stopka { padding: clamp(56px, 6vw, 88px) 0 32px; }
.stopka__siatka { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--linia-grafit); }
.stopka .logo { padding: 0; margin-bottom: 20px; }
.stopka__siatka p { color: var(--na-grafit); font-size: 15px; max-width: 440px; }
.stopka__kol h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--na-grafit); margin-bottom: 16px; }
.stopka__kol li { font-size: 15px; }
.stopka__kol li + li { margin-top: 10px; }
.stopka__kol a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .stopka__kol a:hover { color: var(--terakota-2); } }
.stopka__dol { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; font-size: 14px; color: var(--na-grafit); }
.stopka__dol a { color: var(--terakota-2); font-weight: 600; }

/* ---------- Pojawianie się przy przewijaniu ---------- */
.js .poj { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .poj.jest { opacity: 1; transform: none; }
.js .etap.poj { transition-delay: calc(300ms + var(--i, 0) * 120ms); }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
  :root { --margines: 40px; }
  .hero__siatka {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto 300px 220px 220px auto;
    grid-template-areas:
      "t t t t t t"
      "a a a a b b"
      "c c c d d d"
      "e e e f f f"
      "l l l l l l";
  }
  .hero__siatka::before { --kol: calc((100% - 5 * var(--odstep)) / 6 + var(--odstep)); }
  .hero__tekst { padding: 0 0 16px; max-width: 720px; }
  .hero__liczby { grid-template-columns: 1fr 1fr; }
  .hero__liczby > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__liczby > div:nth-child(n+3) { border-top: 1px solid var(--linia); }
  .tytul-sekcji, .opinie .tytul-sekcji { grid-template-columns: 64px 1fr; }
  .tytul-sekcji__opis { grid-column: 2; margin-top: 16px; }
  .opinie .pas__sterowanie { grid-column: 2; justify-content: flex-start; margin-top: 20px; }
  .tytul-sekcji--bez-linii { grid-template-columns: 1fr; }
  .tytul-sekcji--bez-linii .tytul-sekcji__opis { grid-column: 1; }
  .projekt--szeroki, .projekt--waski { grid-column: span 6; padding-left: 0; }
  .projekt:nth-child(2), .projekt:nth-child(6) { margin-top: 0; }
  .projekt:nth-child(even) { margin-top: 64px; }
  .projekt--waski .projekt__kadr, .projekt__kadr { aspect-ratio: 4 / 3; }
  .projekt__kadr--pion, .projekt--waski .projekt__kadr--pion { aspect-ratio: 4 / 5; }
  .etapy { grid-template-columns: 1fr; }
  .etapy::before { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .etapy.jest::before, .bez-js .etapy::before { transform: scaleY(1); }
  .etap, .etap + .etap { padding: 0 0 36px 36px; border-left: 0; }
  .etap::before, .etap + .etap::before { left: -5px; top: 4px; }
  .etap .etap__wynik { padding-top: 12px; }
  .uslugi { grid-template-columns: 1fr; }
  .uslugi__bok { position: static; display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: end; }
  .uslugi__materialy { margin-top: 0; }
  .osoby { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stopka__siatka { grid-template-columns: 1fr 1fr; }
  .stopka__siatka > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --margines: 20px; --odstep: 10px; }
  body { font-size: 16px; }
  .naglowek__cta { display: none; }
  .logo { padding-right: 0; }
  .h1 { font-size: min(44px, 11vw); }
  .hero { padding-top: 28px; }
  .hero__siatka {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 230px 220px 150px 150px auto;
    grid-template-areas:
      "t t"
      "a a"
      "b d"
      "c c"
      "e f"
      "l l";
  }
  .hero__siatka::before { --kol: calc((100% - var(--odstep)) / 2 + var(--odstep)); }
  .hero__przyciski .przycisk { flex: 1 1 auto; justify-content: center; }
  .kadr__podpis { font-size: 12px; padding: 6px 10px; }
  .hero__liczby > div { padding: 16px 12px 16px 14px; }
  .hero__liczby > div:nth-child(odd) { padding-left: 0; }
  .hero__liczby dt { font-size: 13px; }
  .tytul-sekcji, .opinie .tytul-sekcji { grid-template-columns: 1fr; }
  .tytul-sekcji__nr { margin-bottom: 10px; }
  .tytul-sekcji__opis, .opinie .pas__sterowanie { grid-column: 1; }
  .projekty { grid-template-columns: 1fr; gap: 56px; }
  .projekt--szeroki, .projekt--waski { grid-column: auto; }
  .projekt:nth-child(even) { margin-top: 0; }
  .projekt__kadr--pion, .projekt--waski .projekt__kadr--pion { aspect-ratio: 4 / 4.4; }
  .projekt__dane { grid-template-columns: 1.5fr 1fr 0.8fr; }
  .projekt__dane > div { padding: 8px 10px 10px; }
  .proces__gora, .zespol__gora, .kontakt__siatka, .notatki { grid-template-columns: 1fr; }
  .proces__szkic { padding: 8px; }
  .uslugi__bok { grid-template-columns: 1fr; gap: 0; }
  .uslugi__materialy { margin-top: 8px; }
  .uslugi__materialy img { aspect-ratio: 16 / 10; }
  .uslugi__komorki { grid-template-columns: 1fr; }
  .usluga { min-height: 0; padding: 26px 22px 28px; }
  .usluga__nr { margin-bottom: 20px; font-size: 36px; }
  .opinia { flex-basis: 84vw; min-height: 280px; padding: 24px; }
  .opinia blockquote { font-size: 17px; }
  .osoby { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--margines)); padding: 0 var(--margines) 8px; scroll-padding-left: var(--margines); scrollbar-width: none; }
  .osoby::-webkit-scrollbar { display: none; }
  .flip { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; }
  .notatka--glowna { grid-row: auto; padding-bottom: 28px; }
  .formularz { grid-template-columns: 1fr; }
  .kontakt__dane > div { grid-template-columns: 90px 1fr; }
  .stopka__siatka { grid-template-columns: 1fr; gap: 32px; }
  .przycisk { white-space: normal; }
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 180ms !important; transition-delay: 0ms !important; animation: none !important; }
  .js .wejscie .wiersz > span, .js .wejscie .po-wierszu, .js .poj { transform: none !important; }
  .js .wejscie .kadr { clip-path: none; opacity: 0; }
  .kadr { transition-property: opacity !important; }
  .kadr img, .js .wejscie .kadr img { transform: scale(1.04) !important; }
  .flip__wnetrze { transform: none !important; transition: none !important; }
  .flip__strona { transition: opacity 200ms ease !important; }
  .flip__tyl { transform: none; opacity: 0; visibility: hidden; }
  .flip.obrocona .flip__tyl { opacity: 1; visibility: visible; }
  .flip.obrocona .flip__przod { opacity: 0; }
  .podkr::after, .etapy::before { transform: none !important; }
  .proces__szkic, .js .proces__szkic.poj, .js .proces__szkic.poj.jest { transform: none !important; }
}
