/* ==========================================================================
   Expo Home — tynki maszynowe
   Wspólny arkusz stylów dla wszystkich podstron.

   1. Zmienne i podstawy      6. Karty, zdjęcia, listy
   2. Typografia              7. Kroki i procesy
   3. Przyciski i ikony       8. Pasy CTA
   4. Nagłówek strony         9. FAQ i formularz
   5. Hero i sekcje          10. Stopka
                             11. Widoki tabletowe i mobilne
   ========================================================================== */

/* 1. Zmienne i podstawy --------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { margin: 0; }

.page {
  --navy: #132838;
  --navy-deep: #0f2130;
  --ink: #0f2233;
  --text: #3f4a55;
  --yellow: #fdcb23;
  --yellow-light: #ffd95a;
  --warm: #332c26;
  --bg: #f7f6f2;
  --soft: #f1efea;
  --line: #dedbd3;
  --rule: var(--line);
  --radius: 10px;
  --shadow: 0 12px 32px rgba(15, 34, 51, .08);
  --container: 1240px;
  --gutter: clamp(20px, 5.5vw, 80px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --header-h: 91px; /* wysokość nagłówka leżącego na hero (zmienia się w widokach węższych) */

  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid #1f7ae0; outline-offset: 3px; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* Treść tylko dla czytników ekranu. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Ciemne tła: nagłówki i linie przechodzą na jasne. */
.stage--warm,
.stage--navy,
.section--navy {
  --ink: #fff;
  --rule: rgba(255, 255, 255, .22);
  color: #dde3e9;
}

/* 2. Typografia ----------------------------------------------------------- */

.h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5.1vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.022em;
}
.h1--caps { font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; }
.h1--md { font-size: clamp(2.1rem, 4vw, 3.5rem); }

.h2 {
  color: var(--ink);
  font-size: clamp(1.8rem, 3.3vw, 2.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.h3 {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.accent { color: var(--yellow); }
.block { display: block; }

.lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.35; }
.lead--xl { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }
.lead strong { color: var(--ink); }

/* Mały żółty napis nad nagłówkiem hero. */
.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kicker {
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* 3. Przyciski i ikony ---------------------------------------------------- */

.ico {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: .8125rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .ico { width: 18px; height: 18px; stroke-width: 2.2; }

.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { background: var(--yellow-light); }

.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: #21405a; }

.btn--outline { border-color: var(--yellow); background: #fff; color: var(--navy); }
.btn--outline:hover { background: var(--yellow); }

.btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .75rem; }
.btn--wide { min-width: 220px; }
.btn--block { width: 100%; }

/* Przyciski pisane zwykłym zdaniem (bez wersalików). */
.btn--soft {
  min-height: 58px;
  padding-inline: 30px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px 16px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.logo__mark {
  flex: none;
  width: 46px;
  height: 37px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.logo__tag {
  margin-top: 5px;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
}
.logo--chip { padding: 10px 18px 10px 14px; border-radius: 8px; background: #fff; }
.logo--light { color: #fff; }
.logo--lg .logo__mark { width: 60px; height: 48px; }
.logo--lg .logo__name { font-size: 1.85rem; }
.logo--lg .logo__tag { font-size: .7rem; }

/* 4. Nagłówek strony ------------------------------------------------------
   Jeden, identyczny nagłówek na wszystkich podstronach. Szyna .header-rail ma
   zerową wysokość i leży nad hero, więc nagłówek nie zajmuje miejsca w układzie,
   a zmiana jego wyglądu nie przesuwa treści. script.js dodaje szynie .is-sticky
   (position: sticky), a nagłówkowi .is-stuck, gdy strona jest przewinięta.
   Bieżącą podstronę oznacza aria-current="page" na linku w menu. */

.header-rail { position: relative; z-index: 10; height: 0; }
.header-rail.is-sticky { position: sticky; top: 0; }

.site-header { transition: background-color .22s ease, box-shadow .22s ease; }
.site-header.is-stuck { background: #fff; box-shadow: 0 1px 0 var(--line); }

.site-header__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px clamp(20px, 3.6vw, 60px);
  padding-block: 16px;
  transition: padding .22s ease;
}
.site-header__in > .btn { margin-left: auto; }

.site-header .logo--chip { transition: padding .22s ease; }
.site-header.is-stuck .logo--chip { padding: 0; }

.nav { display: flex; gap: 4px clamp(16px, 2.4vw, 34px); }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .22s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 5px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Nad ciemnym hero linki są białe, dopóki nagłówek nie jest przyklejony. */
.page--dark-top .site-header:not(.is-stuck) .nav a { color: #fff; }

/* 5. Hero i sekcje -------------------------------------------------------- */

.stage { position: relative; isolation: isolate; }
/* --tint: kolor przyciemnienia zdjęcia w tle (składowe RGB). */
.stage--warm { --tint: 38, 32, 27; background: var(--warm); }
.stage--navy { --tint: 19, 40, 56; background: var(--navy); }
.stage--light { --tint: 244, 241, 236; background: #f4f1ec; }

.hero { position: relative; }
.hero__img {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
          mask-image: linear-gradient(to right, transparent, #000 30%);
}
/* Hero pod nagłówkiem: zdjęcie zaczyna się pod nim i łagodnie wchodzi w tło
   także od góry. */
.stage--under .hero__img {
  top: var(--header-h);
  height: calc(100% - var(--header-h));
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to bottom, transparent, #000 12%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 30%), linear-gradient(to bottom, transparent, #000 12%);
          mask-composite: intersect;
}

/* Zdjęcie na całą szerokość sceny, także pod nagłówkiem (strona główna).
   Przyciemnienie z lewej utrzymuje czytelność tekstu. */
.stage--photo .hero { position: static; }
/* Wyższe hero i luźniejszy tekst — na szerokich ekranach widać więcej zdjęcia. */
.stage--photo .hero__in {
  min-height: clamp(400px, 41vw, 940px);
  padding-block: clamp(44px, 6vw, 112px) clamp(56px, 8vw, 150px);
}
.stage--photo .hero__copy { gap: clamp(22px, 2.2vw, 34px); width: min(100%, 40rem, 42vw); }
.stage--photo .eyebrow { margin-bottom: clamp(16px, 1.5vw, 24px); }

/* Scena zaczyna się pod przyklejanym nagłówkiem: treść hero jest odsunięta
   o jego wysokość, żeby układ startowy został bez zmian. */
.stage--under .hero__in {
  min-height: calc(var(--header-h) + clamp(400px, 42vw, 620px));
  padding-top: calc(var(--header-h) + clamp(36px, 5vw, 72px));
}
.stage--under .hero__in--short { min-height: calc(var(--header-h) + clamp(340px, 34vw, 460px)); }
.stage--under.stage--photo .hero__in {
  min-height: calc(var(--header-h) + clamp(400px, 41vw, 940px));
  padding-top: calc(var(--header-h) + clamp(44px, 6vw, 112px));
}
.stage--photo .hero__img {
  z-index: -2;
  top: 0;
  width: 100%;
  height: 100%;
  object-position: 72% 10%;
  -webkit-mask-image: none;
          mask-image: none;
}
.stage--photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to right, rgba(var(--tint), .85), rgba(var(--tint), .8) 30%, rgba(var(--tint), .55) 48%, rgba(var(--tint), 0) 64%),
    linear-gradient(to bottom, rgba(var(--tint), .4), rgba(var(--tint), 0) 22%);
}
/* Kadr trzymany przy prawym dolnym rogu (hero bez postaci, np. Usługi). */
.stage--photo .hero__img--low { object-position: 85% 75%; }
/* Zdjęcie zaczyna się dopiero pod nagłówkiem — gdy postać sięga górnej
   krawędzi kadru (np. O mnie). */
.stage--photo .hero__img--clear {
  top: var(--header-h);
  height: calc(100% - var(--header-h));
  object-position: 72% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 4%);
          mask-image: linear-gradient(to bottom, transparent, #000 4%);
}

.hero__in {
  display: flex;
  align-items: center;
  min-height: clamp(400px, 42vw, 620px);
  padding-block: clamp(36px, 5vw, 72px) clamp(44px, 6vw, 88px);
}
.hero__in--short { min-height: clamp(340px, 34vw, 460px); }
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: min(100%, 40rem, 52vw);
}
.hero__copy > p { max-width: 31rem; }
.hero__copy > .actions { margin-top: 8px; }

.trust { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 4px; }
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
}
.trust .ico { width: 34px; height: 34px; color: var(--yellow); stroke-width: 1.6; }
.trust--2col { display: grid; grid-template-columns: repeat(2, max-content); gap: 16px 36px; }

.note {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 26rem;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 8px;
  font-size: .9375rem;
  line-height: 1.4;
}
.note .ico { width: 28px; height: 28px; }

.section { padding-block: clamp(48px, 6.5vw, 92px); }
.section--tight { padding-block: clamp(36px, 4.5vw, 60px); }
.section--white { background: #fff; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); }

.section__head { margin-bottom: clamp(28px, 3.6vw, 48px); }
.section__head--center { text-align: center; }
.section__head p { margin-top: 10px; font-size: 1.125rem; }
.section__foot { display: flex; justify-content: center; margin-top: clamp(28px, 3.6vw, 44px); }

.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Dwie połowy: zdjęcie + treść. */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--bg); }
.split--white { background: #fff; }
.split--soft { background: var(--soft); }
.split__media { position: relative; min-height: clamp(260px, 30vw, 440px); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Kadr trzymany przy prawej krawędzi zdjęcia. */
.split__media--right img { object-position: 100% 50%; }
/* Zdjęcie pionowe (portret): węższa i wyższa kolumna ze zdjęciem. */
.split--portrait { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--portrait .split__media { min-height: clamp(380px, 46vw, 640px); }
.split--portrait .split__media img { object-position: 50% 6%; }
.split__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: clamp(40px, 6vw, 88px) var(--edge) clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
}
.split__body > p { max-width: 32rem; }
.split--rev .split__media { order: 2; }
.split--rev .split__body { padding-inline: var(--edge) clamp(28px, 5vw, 72px); }

/* Wariant „karta” — wiersze usług. */
.split--card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.split--card + .split--card { margin-top: clamp(16px, 2vw, 24px); }
.split--card .split__media { min-height: clamp(240px, 24vw, 340px); }
.split--card .split__body,
.split--card.split--rev .split__body { gap: 12px; padding: clamp(24px, 3.4vw, 48px); }
.split__no { color: var(--yellow); font-size: 1.25rem; font-weight: 800; line-height: 1; }

/* Pas „autoryzowany wykonawca”: ikona, pionowa linia i tekst. */
.auth { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); }
.auth--center { justify-content: center; }
.auth > .ico { width: 92px; height: 92px; color: var(--navy); stroke-width: 1.3; }
.auth__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: clamp(20px, 4vw, 48px);
  border-left: 1px solid var(--navy);
}
.auth__body p:last-child { max-width: 28rem; }

/* 6. Karty, zdjęcia, listy ------------------------------------------------ */

.card { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.card__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.card__body { display: flex; align-items: flex-start; gap: 18px; padding: 22px 24px 26px; }
.card__body .ico { width: 46px; height: 46px; color: var(--yellow); stroke-width: 1.5; }
.card__title { color: var(--ink); font-size: 1.1875rem; font-weight: 700; line-height: 1.2; }
.card__text { margin-top: 8px; font-size: 1rem; line-height: 1.45; }

.shot { position: relative; overflow: hidden; border-radius: var(--radius); background: #e6e2da; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.shot--wide img { aspect-ratio: 2 / 1; }

.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(15, 34, 51, .82);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Kolumny z ikoną; pionowe linie między kolumnami rysuje cień, który
   kontener przycina przy lewej krawędzi (działa dla dowolnej liczby kolumn). */
.features {
  --pad: clamp(16px, 2.6vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: clamp(28px, 4vw, 48px);
  overflow: hidden;
}
.features--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-inline: var(--pad);
  box-shadow: -1px 0 0 var(--rule);
}
/* Pierwsza kolumna równo z krawędzią kontenera. */
.features--stack { margin-inline: calc(var(--pad) * -1); }
.feature > .ico { width: 52px; height: 52px; color: var(--yellow); stroke-width: 1.5; }
.feature__title { color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.feature__text { margin-top: 6px; font-size: .9875rem; line-height: 1.45; }
.features--stack .feature { flex-direction: column; gap: 16px; }
.features--center .feature { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
/* Jedna kolumna, bez linii — lista punktów z ikoną. */
.features.features--list { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
.features--list .feature { padding-inline: 0; box-shadow: none; }

/* Lista z żółtymi ikonami. */
.ticks { display: grid; gap: 14px; }
.ticks li { display: flex; align-items: flex-start; gap: 16px; color: var(--ink); font-weight: 500; line-height: 1.35; }
.ticks .ico { width: 30px; height: 30px; margin-top: -3px; color: var(--yellow); }
.ticks strong { display: block; }
.ticks span { display: block; margin-top: 2px; color: var(--text); font-size: .9375rem; font-weight: 400; }
.ticks--lg { gap: 20px; }

/* Realizacje: galeria zdjęć w kolumnach (zdjęcia w naturalnych proporcjach). */
.album { columns: 3; column-gap: clamp(18px, 2.4vw, 32px); }
.album__item { break-inside: avoid; margin-bottom: clamp(26px, 3vw, 40px); }
.album__link { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #e6e2da; cursor: zoom-in; }
.album__link img { width: 100%; height: auto; transition: transform .4s ease; }
.album__link:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .album__link img { transition: none; }
}
.album__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}
.album__title::before { content: ""; flex: none; width: 26px; height: 4px; border-radius: 2px; background: var(--yellow); }
.album__text { margin-top: 4px; padding-left: 38px; font-size: .9375rem; line-height: 1.45; }

/* Powiększenie zdjęcia (okno dialogowe tworzone w script.js). */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 20, 30, .94);
  color: #fff;
}
.lightbox::backdrop { background: rgba(10, 20, 30, .6); }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100%; padding: 56px 72px 28px; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 6px; }
.lightbox__cap { font-size: 1rem; font-weight: 600; text-align: center; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}
.lightbox__btn:hover { background: var(--yellow); color: var(--ink); }
.lightbox__btn .ico { width: 24px; height: 24px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { top: 50%; left: 12px; transform: translateY(-50%); }
.lightbox__next { top: 50%; right: 12px; transform: translateY(-50%); }

/* Kadr zdjęcia hero trzymany na środku (pionowe zdjęcie realizacji). */
.hero__img--mid { object-position: 50% 45%; }

.detail__body { display: flex; align-items: flex-start; gap: 18px; margin-top: 20px; }
.detail__body .ico { width: 44px; height: 44px; color: var(--yellow); stroke-width: 1.5; }

/* 7. Kroki i procesy ------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 32px;
  overflow: hidden;
}
.step { position: relative; padding-inline: clamp(16px, 2.2vw, 32px); box-shadow: -1px 0 0 var(--rule); }
.step > .ico { width: 46px; height: 46px; margin-bottom: 14px; color: var(--yellow); stroke-width: 1.5; }
.step__title { padding-right: 34px; color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.step__text { margin-top: 6px; font-size: .9375rem; line-height: 1.45; }
.step > .step__arrow {
  position: absolute;
  top: 60px;
  right: 14px;
  width: 22px;
  height: 22px;
  margin: 0;
  color: var(--ink);
  stroke-width: 1.8;
}

/* Wariant z numerami w kółkach (na ciemnym tle). */
.steps--num { overflow: visible; }
.steps--num .step { box-shadow: none; text-align: center; }
.step__head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.step__no {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2.5px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}
.step__head .ico { width: 38px; height: 38px; color: #fff; stroke-width: 1.5; }
.steps--num .step__title { padding-right: 0; font-size: 1.125rem; }
.steps--num .step > .step__arrow { top: 66px; right: -11px; }
.steps--num .step:nth-child(4n) > .step__arrow { display: none; }

/* Proces ze zdjęciami (realizacje). */
.flow {
  --flow-gap: clamp(40px, 6vw, 84px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px var(--flow-gap);
}
.flow__media { position: relative; }
.flow__arrow {
  position: absolute;
  top: 50%;
  left: calc(100% + var(--flow-gap) / 2 - 13px);
  width: 26px;
  height: 26px;
  margin-top: -13px;
  color: var(--text);
}
.flow__head { display: flex; align-items: flex-start; gap: 16px; margin-top: 18px; }
.flow__no {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  line-height: 1;
}
.flow__title { color: var(--ink); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.flow__text { margin-top: 6px; font-size: .9375rem; line-height: 1.45; }

/* 8. Pasy CTA ------------------------------------------------------------- */

.cta { position: relative; background: var(--yellow); color: var(--navy); }
.cta__in {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 48px);
}
.cta__in > .btn { margin-left: auto; }
.cta__copy { flex: 1 1 300px; }
.cta__title {
  color: var(--navy);
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
}
.cta__title--rule { padding-left: 22px; border-left: 5px solid var(--navy); }
.cta__title .light { color: #fff; }
.cta__text { flex: 1 1 260px; font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.cta__copy .cta__text { margin-top: 8px; }
.cta__copy .btn { margin-top: 20px; }
.cta__mark {
  flex: none;
  width: 78px;
  height: 63px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 4.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Wariant ze zdjęciem Kamila — głowa wystaje ponad pas. */
.cta--photo .cta__in { min-height: clamp(210px, 20vw, 290px); }
.cta__img { position: absolute; bottom: 0; width: auto; max-width: none; pointer-events: none; }
.cta--photo-l .cta__img { left: 5%; height: 118.6%; }
.cta--photo-l .cta__copy { margin-left: 53%; }

/* Sekcja na tle zdjęcia na całą szerokość: treść po lewej, motyw zdjęcia po
   prawej. Wariant domyślny jest jasny (ciemny tekst na jasnej ścianie). */
.photo-band { position: relative; isolation: isolate; background: #e6dfd5; }
.photo-band__img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 80%;
}
.photo-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to right, rgba(247, 246, 242, .78), rgba(247, 246, 242, .5) 38%, rgba(247, 246, 242, 0) 60%);
}
.photo-band__in {
  display: flex;
  align-items: center;
  min-height: clamp(340px, 36vw, 580px);
  padding-block: clamp(48px, 6vw, 96px);
}
.photo-band__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: min(100%, 34rem, 46vw);
}
.photo-band__copy .btn { margin-top: 10px; }

/* Wariant ciemny: zdjęcie przyciemnione z lewej, jasny tekst. */
.photo-band--dark { --ink: #fff; background: var(--warm); color: #dde3e9; }
.photo-band--dark::before {
  background: linear-gradient(to right, rgba(38, 32, 27, .82), rgba(38, 32, 27, .6) 36%, rgba(38, 32, 27, 0) 60%);
}
.photo-band__img--top { object-position: 85% 0; }

/* Wariant granatowy: węższa kolumna treści, żeby nie nachodziła na motyw zdjęcia. */
.photo-band--navy { --ink: #fff; background: var(--navy); color: #dde3e9; }
.photo-band--navy::before {
  background: linear-gradient(to right, rgba(19, 40, 56, .9), rgba(19, 40, 56, .7) 38%, rgba(19, 40, 56, 0) 62%);
}
.photo-band--navy .photo-band__copy { width: min(100%, 30rem, 40vw); }
.photo-band__copy .features { margin-top: 14px; }

/* 9. FAQ i formularz ------------------------------------------------------ */

/* Pytania i odpowiedzi — zawsze widoczne karty (bez zwijania). */
.faq { display: grid; gap: 12px; }
.faq__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 34, 51, .05);
}
.faq__item > .ico { width: 34px; height: 34px; margin-top: -1px; color: var(--yellow); }
.faq__item > .ico + div { padding-top: 5px; }
.faq__q { color: var(--ink); font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.faq__a { margin-top: 6px; font-size: .9875rem; }
/* Wariant dwukolumnowy dla dłuższych list pytań; na wąskich ekranach jedna kolumna. */
/* Link w treści karty usługi (np. do FAQ). */
.split__body p a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.split__body p a:hover { text-decoration-color: currentColor; }
.faq--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

.contact {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(24px, 3.6vw, 48px);
}
.contact__intro { margin-top: 14px; font-size: 1.125rem; }

.info { display: grid; gap: 12px; margin-top: 28px; }
.info li { display: flex; align-items: flex-start; gap: 20px; padding: 18px 20px; border-radius: 12px; background: var(--bg); }
.info__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy);
}
.info__ico .ico { width: 28px; height: 28px; }
.info__title { color: var(--ink); font-size: 1.0625rem; font-weight: 700; }
.info__text { margin-top: 2px; font-size: .9875rem; line-height: 1.45; }
.info__text a { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.info__text a:hover { text-decoration: underline; }

.form-card {
  padding: clamp(22px, 3vw, 40px);
  border-radius: 14px;
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 16px); /* kotwica #formularz nie chowa się pod nagłówkiem */
}
.form-card > p { margin-top: 12px; font-size: 1rem; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.field { position: relative; }
.field--full,
.form .check,
.form .btn { grid-column: 1 / -1; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 26px 16px 8px;
  border: 1px solid #cbc8c0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 150px; padding-top: 30px; resize: vertical; }
.field textarea::placeholder { color: #6b747d; }
.field input:focus,
.field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(253, 203, 35, .6); outline-offset: 0; }
.field label {
  position: absolute;
  top: 19px;
  left: 17px;
  color: #56606a;
  font-size: .9375rem;
  line-height: 1.4;
  pointer-events: none;
  transition: top .15s, font-size .15s;
}
/* Etykieta odsuwa się do góry, gdy pole ma fokus lub treść. */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea + label { top: 8px; font-size: .75rem; }
.field > .ico { position: absolute; top: 20px; right: 16px; width: 20px; height: 20px; color: #56606a; pointer-events: none; }

.check { display: flex; align-items: flex-start; gap: 12px; margin-block: 6px; font-size: .9375rem; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }

/* 10. Stopka -------------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: #d3dae1; font-size: .9375rem; }
.site-footer__in {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1.25fr);
  padding-block: clamp(36px, 4.6vw, 60px);
}
.site-footer__col { padding-inline: clamp(24px, 4.6vw, 72px); border-left: 1px solid rgba(255, 255, 255, .18); }
.site-footer__col:first-child { padding-left: 0; border-left: 0; }
.site-footer__col:last-child { padding-right: 0; }
.site-footer__tag { margin-top: 20px; color: #fff; font-size: 1.0625rem; line-height: 1.4; }
.site-footer__company { margin-top: 16px; font-size: .875rem; line-height: 1.55; }
.site-footer__title {
  margin-bottom: 8px;
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; font-weight: 500; }
.footer-nav a:hover { color: var(--yellow); }
.footer-nav a[aria-current="page"] { color: var(--yellow); font-weight: 700; }
.footer-contact li { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.footer-contact .ico { width: 22px; height: 22px; color: #fff; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; font-weight: 500; }
.footer-contact a:hover { color: var(--yellow); }

/* 11. Widoki tabletowe i mobilne ------------------------------------------ */

@media (max-width: 1040px) {
  /* Nagłówek w wersji zwartej — wszystko mieści się w jednym rzędzie. */
  .page { --header-h: 80px; }
  .site-header .logo { gap: 8px; }
  .site-header .logo__mark { width: 36px; height: 29px; }
  .site-header .logo__name { font-size: 1.2rem; }
  .site-header .logo__tag { font-size: .5rem; }
  .logo--chip { padding: 8px 10px 8px 8px; }
  .site-header__in { gap: 8px 20px; }
  .nav { gap: 4px 16px; }
  .site-header__in > .btn { padding-inline: 14px; font-size: .6875rem; }
  .site-header__in > .btn .ico { display: none; }
}

@media (max-width: 960px) {
  .features,
  .features--5,
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step__arrow { display: none; }
  .step__title { padding-right: 0; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .album { columns: 2; }
}

@media (max-width: 860px) {
  /* Nagłówek: logo i przycisk w pierwszym rzędzie, menu w drugim. */
  .page { --header-h: 116px; }
  .site-header__in { gap: 8px 12px; padding-block: 12px 4px; }
  .site-header__in > .btn { padding-inline: 12px; }
  .site-header.is-stuck .site-header__in { padding-block: 8px 2px; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 18px; overflow-x: auto; }
  .nav a { font-size: .875rem; }

  /* Hero: zdjęcie pod treścią. */
  .hero { display: flex; flex-direction: column; }
  .hero__img,
  .stage--under .hero__img,
  .stage--photo .hero__img {
    position: static;
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero__in,
  .stage--photo .hero__in,
  .stage--under .hero__in,
  .stage--under.stage--photo .hero__in { min-height: 0; }
  .stage--photo::before { display: none; }
  /* Usługi: kadr przy prawej krawędzi, żeby agregat mieścił się w całości. */
  .stage--photo .hero__img--low { object-position: 96% 50%; }
  .hero__copy,
  .stage--photo .hero__copy { width: 100%; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split,
  .split--portrait { grid-template-columns: minmax(0, 1fr); }
  .split--portrait .split__media { min-height: clamp(380px, 110vw, 520px); }
  .split__body,
  .split--rev .split__body { padding: 40px var(--gutter); }

  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow__arrow { display: none; }

  /* Pas CTA ze zdjęciem Kamila: zdjęcie w obiegu, u dołu pasa. */
  .cta--photo .cta__in { min-height: 0; padding-bottom: 0; }
  .cta--photo-l .cta__copy { flex-basis: 100%; max-width: none; margin-left: 0; }
  .cta--photo-l .cta__img { position: static; order: 3; width: min(100%, 400px); height: auto; margin-inline: auto; }

  /* Sekcja kontaktowa na tle zdjęcia: tekst nad zdjęciem. */
  .photo-band { display: flex; flex-direction: column; background: var(--bg); }
  .photo-band--dark { background: var(--warm); }
  .photo-band--navy { background: var(--navy); }
  .photo-band--navy .photo-band__copy { width: 100%; }
  .photo-band::before { display: none; }
  .photo-band__img { position: static; order: 2; height: auto; aspect-ratio: 16 / 10; object-position: 100% 100%; }
  .photo-band__in { min-height: 0; }
  .photo-band__copy { width: 100%; }

  .site-footer__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .site-footer__col { padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); border-left: 0; }
  .site-footer__col:first-child { padding-top: 0; border-top: 0; }
}

@media (max-width: 600px) {
  .grid--2,
  .grid--3,
  .features,
  .features--5,
  .steps,
  .form { grid-template-columns: minmax(0, 1fr); }
  .features { --pad: 0px; }
  .feature,
  .step { padding-inline: 0; box-shadow: none; }
  .steps--num .step { text-align: left; }
  .step__head { justify-content: flex-start; }
  .auth { flex-direction: column; align-items: flex-start; }
  .auth__body { padding-left: 0; border-left: 0; }
  .auth--center,
  .auth--center .auth__body { align-items: center; text-align: center; }
  .actions .btn,
  .section__foot .btn,
  .cta .btn { width: 100%; }
  .album { columns: 1; }
  .lightbox__fig { padding: 64px 12px 20px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
}
