/* ============================================================
   GEOFIX — Usługi Geodezyjne Paweł Pająk
   Kierunek: premium inżynieryjny. Grafit + sygnałowy pomarańcz.
   Typografia self-hosted (RODO — zero zapytań do Google Fonts).
   ============================================================ */

/* ---------- 1. FONTY (self-hosted, woff2, zmienne) ----------
   Pobrane z Google Fonts i osadzone lokalnie — przeglądarka użytkownika NIE łączy
   się z serwerami Google (RODO). Pliki zawężone do zakresu Latin + Latin Extended-A
   (pełne polskie znaki) i do faktycznie używanych wag 400–700: 265 KB → 132 KB,
   4 żądania → 2.
   Archivo © The Archivo Project Authors, SIL OFL 1.1
   Source Sans 3 © Adobe, SIL OFL 1.1                                              */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url('fonts/archivo-pl.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/sourcesans3-pl.woff2') format('woff2');
}

/* ---------- 2. TOKENY ---------- */
:root {
  /* Kolor — strategia „Committed”: grafit niesie stronę, pomarańcz niesie akcję. */
  --paper:        oklch(0.985 0.004 250);   /* #f8fafd */
  --surface:      oklch(0.958 0.007 250);   /* #eef2f6 */
  --line:         oklch(0.885 0.010 250);   /* #d4dae0 */
  --line-soft:    oklch(0.925 0.008 250);

  --ink:          oklch(0.205 0.020 255);   /* #111820  17.2:1 na papierze */
  --ink-deep:     oklch(0.145 0.020 255);   /* #050a12 */
  --ink-2:        oklch(0.255 0.022 255);   /* #1c232d */
  --muted:        oklch(0.475 0.018 255);   /* #565d66  6.4:1 na papierze */
  --muted-dark:   oklch(0.760 0.016 255);   /* #aab2bb  9.2:1 na grafitcie */
  --line-dark:    oklch(0.320 0.020 255);

  /* Pomarańcz pobrany z logotypu klienta (róża wiatrów w „geofix" = #f06519).
     Odcień 43,5° zamiast wcześniejszych 58° — kolor strony zgadza się teraz
     z logo co do stopnia, zamiast być bliskim, ale widocznie innym. */
  --signal:       oklch(0.672 0.188 43.5);  /* #f06519 — 1:1 z logo, 6,2:1 z --ink-deep */
  --signal-deep:  oklch(0.545 0.160 43.5);  /* #b84700 — tekst na papierze, 5,1:1 */
  --signal-soft:  oklch(0.745 0.170 43.5);  /* #ff8148 — hover */

  /* Rytm */
  --sp-1: 0.5rem;  --sp-2: 0.875rem; --sp-3: 1.25rem; --sp-4: 2rem;
  --sp-5: 3rem;    --sp-6: 4.5rem;   --sp-7: 7rem;
  --section-y: clamp(4rem, 3rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 0.75rem + 2.4vw, 3rem);
  --maxw: 1220px;

  /* Typografia */
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Ruch */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 480ms;

  /* Warstwy — skala semantyczna */
  --z-base: 0; --z-content: 1; --z-sticky: 100; --z-nav: 200;

  --header-h: 66px;
}
@media (min-width: 900px) { :root { --header-h: 78px; } }

/* ---------- 3. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.955rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

:where(h1, h2, h3, .display) {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-stretch: 112%;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 2.8vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 1.28rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.125rem, 1.03rem + 0.42vw, 1.35rem); line-height: 1.2; letter-spacing: -0.02em; font-stretch: 106%; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--signal); color: var(--ink-deep); }

/* ---------- 4. UKŁAD ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--surface); }
.section--dark { background: var(--ink-deep); color: var(--paper); }
.section--dark h2 { color: var(--paper); }

/* Znak sekcji: linia arkusza rysunkowego z pomarańczowym odcinkiem.
   (Świadomy system marki — zamiast powtarzanych „eyebrow” nad każdym nagłówkiem.) */
.sheet-rule { height: 1px; background: var(--line); position: relative; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.sheet-rule::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 0; width: 64px; height: 3px; background: var(--signal); }
.section--dark .sheet-rule { background: var(--line-dark); }

.lede { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); max-width: 62ch; }
.section--dark .lede { color: var(--muted-dark); }

/* ---------- 5. PRZYCISKI ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--f-display); font-weight: 700; font-stretch: 108%;
  font-size: 1rem; letter-spacing: -0.01em;
  padding: 1.05rem 1.5rem; border: 1px solid transparent; border-radius: 2px; line-height: 1.25;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 220ms var(--ease), color 220ms var(--ease),
              border-color 220ms var(--ease), transform 220ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); color: var(--ink-deep); }        /* 8.0:1 */
.btn--signal:hover { background: var(--signal-soft); }
.btn--ghost { border-color: currentColor; color: var(--paper); background: transparent; }
.btn--ghost:hover { background: rgba(248, 250, 253, 0.1); }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost-dark:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }

/* ---------- 6. SIATKA RYSUNKU TECHNICZNEGO ---------- */
.grid-bg { position: absolute; inset: 0; z-index: var(--z-base); pointer-events: none; overflow: hidden; }
.grid-bg::before {
  content: ""; position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(170, 178, 187, 0.11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(170, 178, 187, 0.11) 1px, transparent 1px),
    linear-gradient(to right, rgba(170, 178, 187, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(170, 178, 187, 0.055) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
}

/* ---------- 7. NAGŁÓWEK (sticky) ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  height: var(--header-h);
  background: var(--ink-deep); color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(5, 10, 18, 0.85); border-bottom-color: var(--ink-2); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; color: inherit; flex-shrink: 0; min-width: 0; }

/* Logotyp klienta ma wtopione (nieprzezroczyste) tło zdjęciowe, więc nie da się go
   położyć wprost na ciemnym pasku — obramowany kafel czyta się jak świadoma płytka,
   a nie jak przypadkowy prostokąt. `object-fit: cover` w proporcji 3,3:1 kadruje
   plik do samego sygnetu, obcinając puste marginesy pliku.
   PO DOSTARCZENIU WERSJI PNG Z PRZEZROCZYSTOŚCIĄ: usuń .brand__plate (ramkę i tło),
   zostaw samo <img> o tej samej wysokości. */
.brand__plate {
  display: block; flex-shrink: 0; overflow: hidden;
  width: 132px; height: 40px; border-radius: 2px;
  border: 1px solid var(--line-dark);
  background: var(--ink);
  transition: border-color 240ms var(--ease);
}
@media (min-width: 900px) { .brand__plate { width: 150px; height: 46px; } }
.brand__plate img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.brand:hover .brand__plate { border-color: var(--signal); }

.brand__sub {
  display: none; font-size: 0.64rem; letter-spacing: 0.16em; color: var(--muted-dark);
  padding-left: 0.85rem; border-left: 1px solid var(--line-dark); line-height: 1.35; max-width: 8rem;
}
@media (min-width: 620px) { .brand__sub { display: block; } }
@media (min-width: 1040px) and (max-width: 1140px) { .brand__sub { display: none; } }

.nav { display: none; }
@media (min-width: 1040px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 0.2rem + 1.4vw, 2rem); }
  .nav a { text-decoration: none; font-size: 0.94rem; color: var(--muted-dark); position: relative; padding-block: 0.5rem; transition: color 200ms var(--ease); }
  .nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--ease); }
  .nav a:hover { color: var(--paper); }
  .nav a:hover::after { transform: scaleX(1); }
}
.header__cta { display: none; }
@media (min-width: 720px) { .header__cta { display: inline-flex; padding: 0.75rem 1.15rem; font-size: 0.94rem; } }

/* Telefon zawsze pod ręką na mobile — ikona zamiast pełnego przycisku */
.header__call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 2px;
  background: var(--signal); color: var(--ink-deep);
  transition: background-color 220ms var(--ease);
}
.header__call svg { width: 21px; height: 21px; }
.header__call:hover { background: var(--signal-soft); }
@media (min-width: 720px) { .header__call { display: none; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-dark);
  border-radius: 2px; cursor: pointer; color: var(--paper);
}
@media (min-width: 1040px) { .burger { display: none; } }
.burger__bars, .burger__bars::before, .burger__bars::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 300ms var(--ease), opacity 200ms var(--ease); }
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; }
.burger__bars::before { transform: translateY(-6px); }
.burger__bars::after { transform: translateY(6px); }
.burger { position: relative; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-nav);
  background: var(--ink-deep); border-bottom: 1px solid var(--line-dark);
  padding: var(--sp-3) var(--gutter) var(--sp-4);
  display: grid; gap: 2px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform 300ms var(--ease), opacity 220ms var(--ease), visibility 0s linear 300ms;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-nav a { text-decoration: none; padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark); color: var(--paper); font-family: var(--f-display); font-weight: 700; font-stretch: 106%; font-size: 1.05rem; }
.mobile-nav .btn { margin-top: var(--sp-3); }
@media (min-width: 1040px) { .mobile-nav { display: none; } }

/* ---------- 8. HERO ---------- */
.hero { position: relative; background: var(--ink-deep); color: var(--paper); overflow: hidden; padding-block: clamp(2.75rem, 1.9rem + 4.4vw, 4.5rem) clamp(2.75rem, 2rem + 3.6vw, 4.25rem); }
.hero__inner { position: relative; z-index: var(--z-content); }
@media (min-width: 1000px) { .hero__content { max-width: 40rem; } }

/* Zdjęcie tła hero. Absolutne pozycjonowanie + object-fit: cover — obraz nigdy
   nie wpływa na wysokość sekcji, więc nie ma przeskoku layoutu. */
.hero__media { position: absolute; inset: 0; z-index: var(--z-base); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }

/* Wygaszenie. Zdjęcie jest jasne (wschód słońca + biała płyta), a tekst biały —
   bez tego kontrast leci poniżej progu. Wartości dobrane pomiarem jasności
   pikseli pod tekstem, nie na oko. */
.hero__scrim { position: absolute; inset: 0; z-index: var(--z-base); pointer-events: none; }
.hero__scrim::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, oklch(0.145 0.020 255 / 0.92) 0%, oklch(0.145 0.020 255 / 0.88) 46%, oklch(0.145 0.020 255 / 0.93) 100%);
}
@media (min-width: 1000px) {
  .hero__scrim::before {
    background:
      linear-gradient(to right,
        oklch(0.145 0.020 255 / 0.96) 0%,
        oklch(0.145 0.020 255 / 0.94) 40%,
        oklch(0.145 0.020 255 / 0.76) 68%,
        oklch(0.145 0.020 255 / 0.50) 100%),
      linear-gradient(to bottom, oklch(0.145 0.020 255 / 0.42) 0%, oklch(0.145 0.020 255 / 0) 34%);
  }
}

.hero h1 { color: var(--paper); max-width: 19ch; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero__sub { margin-top: var(--sp-3); color: var(--muted-dark); font-size: clamp(1.05rem, 0.98rem + 0.42vw, 1.28rem); line-height: 1.62; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); }
.hero__cta .btn { flex: 1 1 260px; }
@media (min-width: 560px) { .hero__cta .btn { flex: 0 0 auto; } }

.trust { list-style: none; padding: 0; margin: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem) 0 0; display: grid; gap: 1px; background: var(--line-dark); border-block: 1px solid var(--line-dark); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { background: var(--ink-deep); padding: 0.95rem 0.25rem 0.95rem 1.75rem; position: relative; font-size: 0.95rem; color: var(--paper); }
@media (min-width: 760px) { .trust li { padding: 1.15rem 0.6rem 1.15rem 1.6rem; font-size: 0.92rem; } }
.trust li::before { content: ""; position: absolute; left: 0; top: 1.35em; width: 9px; height: 9px; border: 2px solid var(--signal); border-radius: 50%; }

/* ---------- 9. USŁUGI — matryca jak karta katalogowa przyrządu ---------- */
.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service { background: var(--paper); padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); position: relative; transition: background-color 260ms var(--ease); }
.service::before, .service::after {
  content: ""; position: absolute; background: var(--signal);
  opacity: 0; transition: opacity 260ms var(--ease), transform 380ms var(--ease);
}
.service::before { top: 0; left: 0; width: 26px; height: 3px; transform: translateX(-8px); }
.service::after  { top: 0; left: 0; width: 3px; height: 26px; transform: translateY(-8px); }
.service:hover { background: var(--surface); }
.service:hover::before, .service:hover::after { opacity: 1; transform: none; }
.service__mark { width: 34px; height: 34px; color: var(--ink); margin-bottom: var(--sp-3); transition: color 260ms var(--ease); }
.service:hover .service__mark { color: var(--signal-deep); }
.service h3 { margin-bottom: 0.6rem; min-height: 2.4em; }
@media (max-width: 639px) { .service h3 { min-height: 0; } }
.service p { color: var(--muted); font-size: 0.985rem; line-height: 1.6; }

/* ---------- 10. O FIRMIE ---------- */
.about { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4rem); align-items: start; }
@media (min-width: 980px) { .about { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.about__prose p { max-width: 68ch; color: var(--ink); }
.about__prose p + p { margin-top: var(--sp-3); }
.about__prose strong { font-weight: 700; }

.spec { background: var(--ink-deep); color: var(--paper); border-radius: 2px; overflow: hidden; }
.spec__head { padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--line-dark); font-family: var(--f-display); font-weight: 700; font-stretch: 110%; font-size: 1.05rem; }
.spec dl { margin: 0; }
.spec__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem; padding: 0.85rem 1.35rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 420px) { .spec__row { grid-template-columns: 10.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; } }
.spec__row:last-child { border-bottom: 0; }
.spec dt { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted-dark); }
.spec dd { margin: 0; font-family: var(--f-display); font-weight: 700; font-stretch: 104%; font-size: 1rem; font-variant-numeric: tabular-nums; }
.spec dd a { text-decoration: none; }
.spec dd a:hover { color: var(--signal); }

/* ---------- 12. OPINIE ---------- */
.reviews__top { margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem); }
.score { display: flex; align-items: baseline; gap: 0.55rem; }
.score__num { font-family: var(--f-display); font-weight: 700; font-stretch: 118%; font-size: clamp(3rem, 2rem + 4vw, 4.5rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--signal-deep); font-variant-numeric: tabular-nums; }
.score__txt { color: var(--ink); font-size: 1.05rem; max-width: 26ch; line-height: 1.4; }
.score__txt strong { white-space: nowrap; }
/* Podziałka poleceń — 17 kresek jak na łacie niwelacyjnej. Koduje realną liczbę
   (17 z 17), a nie wymyśloną ocenę gwiazdkową, której Facebook w ogóle nie zbiera. */
.tally { display: flex; align-items: flex-end; gap: 5px; height: 26px; margin-bottom: 0.95rem; }
.tally span { display: block; width: 3px; background: var(--signal-deep); }
.tally span:nth-child(5n+1) { height: 26px; }
.tally span:not(:nth-child(5n+1)) { height: 16px; }

.quotes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--paper); padding: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); display: flex; flex-direction: column; gap: var(--sp-2); }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 700; font-stretch: 104%; font-size: 1.02rem; line-height: 1.45; letter-spacing: -0.015em; text-wrap: pretty; }
.quote figcaption { color: var(--muted); font-size: 0.92rem; margin-top: auto; }
.quote figcaption span { display: block; font-size: 0.78rem; letter-spacing: 0.04em; margin-top: 0.15rem; }

/* ---------- 13. GALERIA ---------- */
/* Galeria: 5 zdjęć. Sześciokolumnowa siatka, każdy kafel na 2 kolumny → 3 w górnym
   rzędzie, a dwa ostatnie przesunięte o jedną kolumnę, żeby wyszły wyśrodkowane. */
.gallery { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: 1fr; margin: 0; }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery > * { grid-column: span 2; }
  .gallery > :nth-child(4) { grid-column: 2 / span 2; }
  .gallery > :nth-child(5) { grid-column: 4 / span 2; }
}

.tile { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); border-radius: 2px; }
.tile img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}
.tile:hover img { transform: scale(1.035); }
/* Podpis leży na zdjęciu, więc dostaje własne wygaszenie — inaczej biały tekst
   wpada na jasne fragmenty kadru. */
.tile figcaption {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: 2.75rem 1rem 0.95rem;
  font-family: var(--f-display); font-weight: 700; font-stretch: 106%;
  font-size: 0.95rem; letter-spacing: -0.01em; color: var(--paper);
  background: linear-gradient(to top, oklch(0.145 0.02 255 / 0.92) 0%, oklch(0.145 0.02 255 / 0.72) 42%, oklch(0.145 0.02 255 / 0) 100%);
}
.tile figcaption::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 14px; height: 2px; background: var(--signal); margin-right: 0.6rem;
}

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 62rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; position: relative;
  font-family: var(--f-display); font-weight: 700; font-stretch: 106%;
  font-size: clamp(1.05rem, 1rem + 0.32vw, 1.22rem); line-height: 1.3; letter-spacing: -0.02em;
  transition: color 200ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--signal-deep); }
.faq summary::after, .faq summary::before {
  content: ""; position: absolute; right: 8px; top: 50%; background: var(--signal-deep);
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}
.faq summary::before { width: 15px; height: 2px; transform: translateY(-50%); }
.faq summary::after  { width: 2px; height: 15px; right: 14px; transform: translateY(-50%); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq__a { padding: 0 3rem 1.5rem 0; color: var(--muted); max-width: 68ch; }
.faq details[open] .faq__a { animation: fade-up 400ms var(--ease) both; }

/* ---------- 15. KONTAKT ---------- */
.contact { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4rem); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.nap { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: 1px; background: var(--line-dark); border-block: 1px solid var(--line-dark); }
.nap li { background: var(--ink-deep); padding: 1.05rem 0; display: grid; gap: 0.2rem; }
.nap dt, .nap__k { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted-dark); }
.nap__v { font-family: var(--f-display); font-weight: 700; font-stretch: 106%; font-size: clamp(1.08rem, 1rem + 0.5vw, 1.35rem); letter-spacing: -0.01em; }
.nap__v a { text-decoration: none; transition: color 200ms var(--ease); }
.nap__v a:hover { color: var(--signal); }

.form { display: grid; gap: var(--sp-2); }
.form__intro {
  color: var(--paper); font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  line-height: 1.5; margin-bottom: 1.15rem; text-wrap: pretty;
}
.form__cta { margin-bottom: var(--sp-3); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.86rem; letter-spacing: 0.05em; color: var(--muted-dark); }
.field input, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-dark); border-radius: 2px;
  padding: 0.9rem 1rem; color: var(--paper); font-size: 1rem;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.66 0.016 255); } /* 4.6:1 na --ink */
.field input:hover, .field textarea:hover { border-color: oklch(0.44 0.02 255); }
.field input:focus, .field textarea:focus { border-color: var(--signal); outline: none; background: var(--ink-2); }
.form__row { display: grid; gap: var(--sp-2); }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form__note { font-size: 0.82rem; color: var(--muted-dark); line-height: 1.5; }
.form__status { font-size: 0.95rem; padding: 0.85rem 1rem; border-radius: 2px; border: 1px solid var(--line-dark); }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { border-color: var(--signal); background: rgba(240, 101, 25, 0.11); color: var(--paper); }
.form__status[data-state="err"] { border-color: oklch(0.65 0.18 25); background: rgba(232, 90, 70, 0.12); color: var(--paper); }

.map { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); border: 1px solid var(--line-dark); border-radius: 2px; overflow: hidden; background: var(--ink); }
.map iframe { width: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(0.94); aspect-ratio: 12 / 5; }
@media (max-width: 720px) { .map iframe { aspect-ratio: 4 / 3; } }

/* ---------- 16. STOPKA ---------- */
.footer { background: var(--ink); color: var(--muted-dark); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-top: 1px solid var(--line-dark); font-size: 0.94rem; }
.footer__grid { display: grid; gap: var(--sp-4); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.footer address { font-style: normal; line-height: 1.7; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--signal); }
.footer__h { font-family: var(--f-display); font-size: 0.82rem; letter-spacing: 0.12em; color: var(--paper); margin-bottom: 0.85rem; font-weight: 700; font-stretch: 100%; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer__bottom { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 0.5rem var(--sp-3); justify-content: space-between; font-size: 0.86rem; }
.footer__logo { width: 150px; height: 46px; margin-bottom: 1rem; }

/* ---------- 17. RUCH ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Domyślnie wszystko jest widoczne. Ukrywamy dopiero, gdy JS działa
   i użytkownik nie prosił o ograniczenie animacji — brak ryzyka pustej sekcji. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); }
  .js .reveal.is-in { opacity: 1; transform: none; transition: opacity 620ms var(--ease), transform 720ms var(--ease); }
  .js .reveal.is-in > * { animation: none; }
  .js .stagger.is-in > * { animation: fade-up 620ms var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- 18. POMOCNICZE ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: var(--gutter); z-index: 300; background: var(--signal); color: var(--ink-deep); padding: 0.75rem 1.1rem; border-radius: 2px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0.5rem; }
@media print { .header, .mobile-nav, .map, .hero__cta { display: none !important; } body { color: #000; background: #fff; } }

/* ---------- 19. PODSTRONA PRAWNA (polityka prywatności) ---------- */
.legal { padding-block: calc(var(--section-y) * 0.75) var(--section-y); }
.legal__lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); max-width: 62ch; margin-top: 1rem; }
.legal__meta { color: var(--muted); font-size: 0.88rem; margin-top: 0.75rem; }

.legal__body { max-width: 68ch; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.legal__body h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  margin-top: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body h3 { font-size: 1.05rem; margin-top: 1.75rem; }
.legal__body p { margin-top: 0.85rem; color: var(--ink); }
.legal__body ul { margin: 0.85rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.legal__body li { color: var(--ink); }
.legal__body a { color: var(--signal-deep); text-underline-offset: 3px; }
.legal__body a:hover { text-decoration: none; }

/* Dane administratora — blok wyróżniony hairline'em, bez ramki ostrzegawczej */
.legal__card { border: 1px solid var(--line); background: var(--surface); padding: 1.35rem 1.5rem; border-radius: 2px; margin-top: 1.25rem; }
.legal__card p { margin-top: 0; }
.legal__card p + p { margin-top: 0.5rem; }

.legal__back { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-stretch: 106%; color: var(--ink); }
.legal__back:hover { color: var(--signal-deep); }

/* Odnośnik do polityki pod formularzem */
.form__note a { color: var(--signal); text-underline-offset: 3px; }
.form__note a:hover { color: var(--signal-soft); }
