/* =========================================================================
   MDJ Media — wspólny arkusz stylów (single source of truth)
   Paleta z logo: czarne tło + kremowy #F5EDE0.
   NIE powielaj stylów w plikach HTML — wszystko tutaj.
   ========================================================================= */

/* ---------- 1. Zmienne / paleta ---------- */
:root {
  --bg:        #0a0a0a;   /* główne tło */
  --bg-2:      #121212;   /* sekcje naprzemienne */
  --surface:   #161616;   /* karty */
  --surface-2: #1d1d1d;   /* karty hover / podniesione */
  --cream:     #f5ede0;   /* tekst / akcent (z logo) */
  --muted:     rgba(245, 237, 224, 0.62); /* tekst drugorzędny */
  --faint:     rgba(245, 237, 224, 0.42); /* tekst trzeciorzędny */
  --line:      rgba(245, 237, 224, 0.12); /* obrysy / separatory */
  --line-2:    rgba(245, 237, 224, 0.22);
  --red:       #ff3d2e;   /* akcent punktowy (słowo-akcent kursywą) */
  --red-2:     #ff5a4d;   /* hover */

  --font-head:   'Anton', 'Arial Narrow', system-ui, sans-serif;   /* grube, mocne słowa nagłówków */
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif; /* ozdobny akcent — kursywa */
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;     /* tekst, paragrafy, UI */

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-sm: 10px;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }   /* clip TAKŻE na html — Android/Chrome używa html jako głównego scrollera, sam clip na body go nie blokuje (na iOS wystarczał). clip nie robi z html scrollera, więc window.scrollY działa. */
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* ucina poziome wystawanie, ale (w przeciwieństwie do hidden) NIE robi z body scrollera — window.scrollY działa */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Typografia ----------
   MIX (styl inBokeh): Anton = grube słowa nagłówka, Playfair Display italic =
   pojedyncze słowo-akcent (klasa .accent, kolor czerwony — czerwień punktowo). */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;            /* Anton ma tylko 400 — i tak jest bardzo grube */
  line-height: 1.14;           /* zapas na polskie ogonki + słowo-akcent kursywą (nie nachodzi na linię niżej) */
  letter-spacing: 0.01em;
  text-transform: uppercase;   /* mocny, plakatowy charakter Anton */
}
.h-display { font-size: clamp(2.7rem, 8vw, 6.4rem); line-height: 1.06; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: 0.005em; }

/* Słowo-akcent: elegancka kursywa Playfair Display, na czerwono, 1 słowo w nagłówku */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  text-transform: none;        /* serif czytamy małymi literami */
  letter-spacing: 0;
  color: var(--red);
  font-size: 1.02em;           /* Playfair jest optycznie mniejszy od Anton, lekko powiększony */
}

p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); }

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 10vw, 130px); }
/* płynne przejście: krawędzie sekcji wtapiają się w kolor otoczenia (--bg), środek = --bg-2 → bez twardych kresek */
.section--alt { background: linear-gradient(to bottom, var(--bg) 0, var(--bg-2) 200px, var(--bg-2) calc(100% - 200px), var(--bg) 100%); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--line-2); }

/* ---------- 5. Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 100px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cream); color: #0a0a0a; }
.btn--primary:hover { background: #fff; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(245,237,224,0.06); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===========================================================
   HEADER (wstrzykiwany przez main.js)
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10,10,10,0);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* chowanie nagłówka przy scrollu w dół (wjeżdża z powrotem przy scrollu w górę) */
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled {
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.brand span.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 100px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.97rem;
  color: var(--muted); transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--cream); background: rgba(245,237,224,0.05); }
.main-nav a[aria-current="page"] { color: var(--cream); }

.header-cta { display: flex; align-items: center; gap: 14px; }

/* tap-to-call: ukryty na desktopie (jest numer w stopce/kontakcie), widoczny na mobile */
.header-call { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--cream); }
.header-call svg { width: 20px; height: 20px; }
.header-call:hover { border-color: var(--cream); }

/* przycisk "Porozmawiajmy" w liście nav jest TYLKO dla mobilnego drawera —
   na desktopie ukryty (tam jest osobny przycisk w .header-cta) */
.main-nav .nav-cta { display: none; }

/* hamburger */
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 24px; height: 2px; background: var(--cream); transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--cream); transition: .3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; padding-top: clamp(70px, 14vh, 150px); padding-bottom: clamp(70px, 12vh, 140px); overflow: hidden; }
.hero::before { /* subtelna poświata */
  content: ""; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; max-width: 120vw;
  background: radial-gradient(ellipse at center, rgba(245,237,224,0.07), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .static-word { display: block; color: var(--cream); }

/* rotator — słowo-akcent Playfair Display italic na czerwono.
   Wysoka interlinia + zapas, żeby maska (overflow:hidden) nie ucinała ogonków
   kursywy (np. „j" w rozwój). Słowo i tak znika przez opacity, gdy wyjeżdża. */
.rotator {
  display: inline-block; position: relative;
  height: 1.5em; line-height: 1.5em; overflow: hidden; vertical-align: bottom;
}
/* rolka: pionowa kolumna wszystkich słów, przesuwana o jedno słowo (płynny obrót, bez przerwy, bez przycinania) */
.rotator__reel { display: block; }
.rotator__word {
  display: block; height: 1.5em; line-height: 1.5em; white-space: nowrap;
  font-family: var(--font-accent);
  font-style: italic; font-weight: 600; text-transform: none;
  letter-spacing: 0; color: var(--red);
}

.hero .lead { max-width: 600px; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Trust strip — płynący ticker ---------- */
.trust { border-block: 1px solid var(--line); padding-block: 22px; background: var(--bg); overflow: hidden; }
.trust-marquee {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.trust-track { display: flex; width: max-content; animation: trust-scroll 40s linear infinite; }
.trust:hover .trust-track { animation-play-state: paused; }
.trust-set { display: flex; align-items: center; }
.trust-item {
  display: inline-flex; align-items: center; gap: 11px; padding: 0 16px; white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.trust-item svg { width: 19px; height: 19px; flex: none; color: var(--cream); opacity: .9; }
.trust-star { color: var(--red); font-size: 0.72rem; padding: 0 4px; }
@keyframes trust-scroll { to { transform: translateX(-50%); } }

/* ===========================================================
   Karty / siatki
   =========================================================== */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 3vw, 38px);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.97rem; }
.card .card-num { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; color: var(--faint); letter-spacing: .1em; margin-bottom: 18px; }

/* "Dlaczego my" — karta korzyści */
.feature { position: relative; overflow: hidden; }
/* czerwona linia rysowana wzdłuż górnej krawędzi na hover */
.feature::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--red); transition: width .45s var(--ease); }
.feature:hover::after { width: 100%; }

.feature .feature-ico {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  display: grid; place-items: center; background: rgba(245,237,224,0.07); border: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.feature .feature-ico svg { width: 26px; height: 26px; color: var(--cream); transition: color .3s var(--ease); }
.feature:hover .feature-ico { border-color: var(--line-2); }
.feature:hover .feature-ico svg { color: var(--red); }

/* górny rząd: ikona + numer porządkowy (tylko karty z .feature-head — np. strona główna) */
.feature-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.feature-head .feature-ico { margin-bottom: 0; }
.feature-no {
  font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px var(--line); transition: -webkit-text-stroke-color .35s var(--ease);
}
.feature:hover .feature-no { -webkit-text-stroke-color: var(--line-2); }



/* Usługi — kafelki linkujące */
.service-card { display: flex; flex-direction: column; min-height: 220px; }
.service-card .service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service-card .service-arrow {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  border: 1px solid var(--line-2); display: grid; place-items: center;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.service-card:hover .service-arrow { background: var(--cream); color: #0a0a0a; transform: rotate(-45deg); }
.service-card .service-arrow svg { width: 18px; height: 18px; }
.service-card p { margin-top: auto; padding-top: 16px; }

/* karta "Kampania 360°" na całą szerokość siatki (parasol nad usługami) */
.service-card--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; min-height: 0; background: linear-gradient(160deg, #1a1a1a, #0c0c0c); border-color: rgba(255,61,46,0.45); }
.service-card--wide .service-wide-text p { margin-top: 6px; padding-top: 0; max-width: 72ch; }
.service-card--wide .service-arrow { margin-left: auto; flex: none; }
@media (max-width: 720px) {
  .service-card--wide { flex-direction: column; align-items: flex-start; }
  .service-card--wide .service-arrow { margin-left: 0; }
}

/* Jak pracujemy — OŚ PROCESU (timeline) */
.timeline { position: relative; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); }
/* pozioma linia łącząca węzły — tło, zasłaniane przez krążki (zostaje widoczna tylko w przerwach) */
.timeline::before { content: ""; position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-2); z-index: 0; }
.tstep { position: relative; text-align: center; }
.tnode {
  position: relative; z-index: 1; display: grid; place-items: center; margin: 0 auto 26px;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-family: var(--font-head); font-size: 1.5rem; color: var(--cream); letter-spacing: .02em;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tstep:hover .tnode { border-color: var(--red); color: var(--red); transform: scale(1.08); box-shadow: 0 0 0 6px rgba(255,61,46,0.06); }
/* fala przy scrollu (mobile/pion): aktywny krok = czerwony węzeł + jaśniejszy tytuł */
.tstep--active .tnode { border-color: var(--red); color: var(--red); transform: scale(1.08); box-shadow: 0 0 0 6px rgba(255,61,46,0.08); }
.tstep--active .tbody h3 { color: #fff; }
.tbody h3 { margin-bottom: 10px; transition: color .3s var(--ease); }
.tbody p { font-size: 0.96rem; max-width: 30ch; margin-inline: auto; }

@media (max-width: 900px) {
  /* oś pionowa: krążki po lewej, linia łączy je w pionie */
  .timeline { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .timeline::before { top: 46px; bottom: 46px; left: 31px; right: auto; width: 2px; height: auto; }
  .tstep { text-align: left; display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: 14px 0; }
  .tnode { margin: 0; }
  .tbody p { max-width: none; margin-inline: 0; }
}

/* O nas — zajawka */
.about-teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-teaser .about-visual {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 20%, #1c1c1c, #0c0c0c);
  display: grid; place-items: center; padding: 40px;
}
.about-teaser .about-visual img { width: min(70%, 320px); opacity: .92; }

/* ===========================================================
   FAQ (akordeon)
   =========================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left; padding: 26px 0; font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--cream);
}
.faq-q .faq-ico { position: relative; width: 20px; height: 20px; flex: none; }
.faq-q .faq-ico::before, .faq-q .faq-ico::after {
  content: ""; position: absolute; background: var(--cream); transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-q .faq-ico::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-q .faq-ico::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item.open .faq-q .faq-ico::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-a p { padding-bottom: 26px; max-width: 70ch; }

/* ===========================================================
   Finalne CTA
   =========================================================== */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before { /* subtelna poświata — reflektor na domknięciu (jak w hero) */
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 760px; height: 440px; max-width: 120vw;
  background: radial-gradient(ellipse at center, rgba(245,237,224,0.07), transparent 66%);
  pointer-events: none;
}
.cta-band .cta-inner {
  background: linear-gradient(160deg, #1a1a1a, #0c0c0c);
  border: 1px solid var(--line); border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 20px; }
.cta-band p { max-width: 520px; margin: 0 auto 34px; }

/* ===========================================================
   FOOTER (wstrzykiwany przez main.js)
   =========================================================== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding-block: clamp(56px, 7vw, 88px) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand img { height: 56px; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; font-weight: 600; }
.footer-col li { margin-bottom: 12px; }
.footer-col a, .footer-col span { color: var(--muted); font-size: 0.97rem; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-socials { display: flex; gap: 12px; margin-top: 8px; }
.footer-socials a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
  transition: color .25s, border-color .25s, background .25s;
}
.footer-socials a:hover { color: #0a0a0a; background: var(--cream); border-color: var(--cream); }
.footer-socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer-bottom, .footer-bottom a { color: var(--faint); font-size: 0.88rem; }

/* ===========================================================
   Scroll-fade (animacja wejścia)
   =========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ===========================================================
   RESPONSYWNOŚĆ (priorytet mobile)
   =========================================================== */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .about-teaser { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  /* eyebrow mieści się w 2 liniach, bez wiszącej kreski */
  .eyebrow { letter-spacing: 0.1em; font-size: 0.74rem; gap: 9px; }
  .eyebrow::before { width: 20px; }

  /* mniejsza przerwa pod paskiem nagłówka a hero (na desktopie vh dawało za dużo) */
  .hero { padding-top: clamp(24px, 4vh, 44px); padding-bottom: clamp(48px, 9vh, 90px); }
  /* większe hero + ciaśniejsze przerwy, żeby nie było pustki przy rotującym słowie */
  .h-display { font-size: clamp(3rem, 13vw, 4rem); }
  .hero h1 { margin-bottom: 16px; }
  .hero .rotator { height: 1.32em; line-height: 1.32em; }
  .hero .rotator__word { line-height: 1.32em; height: 1.32em; }
  .hero .lead { margin-bottom: 30px; }

  /* nawigacja → drawer */
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .header-call { display: inline-flex; }   /* tap-to-call na mobile (szybki kontakt = hot lead) */
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: #0a0a0a;   /* PEŁNE tło, żeby treść nie prześwitywała przez menu */
    transform: translateX(100%); transition: transform .4s var(--ease);
    padding: 32px var(--gutter);
    overflow-y: auto; -webkit-overflow-scrolling: touch;   /* gdyby menu było wyższe niż ekran — przewija się SAMO menu, nie tło */
  }
  body.nav-open .main-nav { transform: translateX(0); }
  /* Blokada scrolla tła. `overflow:hidden` na body NIE działa na iOS Safari — dlatego
     zamrażamy body przez position:fixed (JS ustawia `top: -scrollY`, po zamknięciu przywraca). */
  body.nav-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
  /* WAŻNE: po przewinięciu header ma backdrop-filter (is-scrolled) / transform (is-hidden),
     a filtr/transform tworzy containing block dla position:fixed dziecka (drawera) — przez co
     menu pozycjonowało się względem paska, prześwitywało i rozjeżdżało się. Przy otwartym menu
     zerujemy je, żeby drawer znów kotwiczył się do okna i krył cały ekran. */
  body.nav-open .site-header {
    transform: none;
    background: #0a0a0a;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    transition: none;   /* NATYCHMIAST zdejmij filtr (bez 0.3s fade), inaczej drawer prześwituje przez pół sekundy */
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 16px 18px; font-size: 1.25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-cta { display: block; margin-top: 24px; }
  .main-nav .nav-cta a { background: var(--cream); color: #0a0a0a; text-align: center; border-radius: 100px; border: none; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }

}

/* ===========================================================
   PODSTRONY — nagłówek strony, treść, układy
   =========================================================== */
.page-hero { position: relative; padding-top: clamp(28px, 5vh, 56px); padding-bottom: clamp(40px, 7vw, 78px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: -30%; left: 70%; transform: translateX(-50%);
  width: 760px; height: 520px; max-width: 120vw;
  background: radial-gradient(ellipse at center, rgba(245,237,224,0.06), transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); line-height: 1.16; margin-bottom: clamp(16px, 2vw, 24px); }
.page-hero .lead { max-width: 620px; }
.page-hero .hero-actions { margin-top: clamp(30px, 4vw, 46px); }
/* Podstrony usług: podciągnij treść ("Co robimy") bliżej hero — bez wielkiej pustki.
   Tylko zwykła sekcja po hero; gradientowe .section--alt (o-nas/realizacje/usługi) zostają. */
.page-hero + section:not(.section--alt) { padding-top: clamp(8px, 2.5vw, 28px); }

/* mikrocopy oferty pod CTA (redukuje lęk, wzmacnia hak) */
.offer-line { margin-top: 18px; font-size: 0.9rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.offer-line span + span::before { content: "•"; color: var(--red); margin-right: 14px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--faint); margin-bottom: 22px; }
.breadcrumb a { color: var(--faint); transition: color .2s; }
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb span { color: var(--line-2); }

/* Blok treści tekstowej */
.prose { max-width: 720px; }
.prose > p { margin-bottom: 1.25em; }
.prose h2 { margin: 1.4em 0 .5em; }
.prose h3 { margin: 1.2em 0 .4em; }
.ticks { display: grid; gap: 14px; margin: 8px 0 4px; }
.ticks li { position: relative; padding-left: 36px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(245,237,224,0.07); border: 1px solid var(--line-2);
}
.ticks li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 4px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.ticks li strong { color: var(--cream); font-weight: 600; }

/* Układ treść + boczne CTA (podstrony usług) */
.split { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.aside-cta { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 36px); }
.aside-cta h3 { margin-bottom: 12px; }
.aside-cta p { font-size: 0.95rem; margin-bottom: 22px; }
.aside-cta .btn { width: 100%; justify-content: center; }
.aside-cta .aside-phone { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-family: var(--font-body); font-weight: 600; color: var(--cream); }
.aside-cta .aside-phone svg { width: 18px; height: 18px; color: var(--red); }

/* Karty "Wkrótce" / realizacje (powtarzalna karta) */
.badge-soon { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-2); border-radius: 100px; padding: 7px 14px; }
.badge-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.case-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.case-thumb { aspect-ratio: 16/10; background: radial-gradient(circle at 30% 25%, #1c1c1c, #0c0c0c); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.case-thumb img { width: min(55%, 200px); opacity: .85; }
.case-body { padding: clamp(22px, 2.5vw, 30px); }
.case-body .case-tag { font-size: 0.8rem; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.case-body h3 { margin-bottom: 8px; }

/* ===========================================================
   FORMULARZ KONTAKTOWY
   =========================================================== */
.contact-layout { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact-info .info-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:first-of-type { border-top: 1px solid var(--line); }
.contact-info .info-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(245,237,224,0.06); border: 1px solid var(--line); }
.contact-info .info-ico svg { width: 20px; height: 20px; color: var(--cream); }
.contact-info .info-label { font-size: 0.82rem; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.contact-info .info-val { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--cream); }
.contact-info .info-val a:hover { color: var(--red); }

.contact-form fieldset { border: none; padding: 0; margin: 0 0 26px; }
.contact-form legend { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--cream); margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--muted); font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--cream); color: var(--cream); }
.chip.is-active { background: var(--cream); border-color: var(--cream); color: #0a0a0a; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.field label .req { color: var(--red); }
.field input, .field textarea {
  font: inherit; color: var(--cream); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; width: 100%; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cream); background: var(--surface-2); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.form-note { font-size: 0.85rem; color: var(--faint); }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status.is-ok { display: block; background: rgba(245,237,224,0.07); border: 1px solid var(--line-2); color: var(--cream); }
.form-status.is-err { display: block; background: rgba(255,61,46,0.1); border: 1px solid var(--red); color: var(--red-2); }

/* Kontakt: mniej pustej przestrzeni między nagłówkiem a formularzem (podsunięte do góry) */
[data-page="kontakt"] .page-hero { padding-bottom: clamp(8px, 2vw, 18px); }
[data-page="kontakt"] .section--alt { padding-top: clamp(22px, 3.5vw, 38px); }

/* Responsywność podstron */
@media (max-width: 900px) {
  .split, .contact-layout { grid-template-columns: 1fr; }
  .aside-cta { position: static; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  /* chipsy w równą siatkę 2 kolumn, żeby nie stackowały się nierówno */
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .chip { justify-content: center; text-align: center; padding: 12px 10px; font-size: 0.9rem; }
}

/* ===========================================================
   MAPA MYŚLI USŁUG → KAMPANIA 360°
   =========================================================== */
.mindmap { position: relative; width: 100%; max-width: 940px; height: 560px; margin: 0 auto; }
.mm-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.mm-line { stroke: rgba(245,237,224,0.16); stroke-width: 1.5; fill: none; stroke-dasharray: 4 8; stroke-linecap: round; animation: mm-flow 2.4s linear infinite; }
.mm-line.is-hot { stroke: var(--red); stroke-width: 2.5; stroke-dasharray: none; animation: none; }
@keyframes mm-flow { to { stroke-dashoffset: -24; } }

.mm-node {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 13px 20px 13px 13px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.mm-node:hover, .mm-node.is-hot { background: var(--surface-2); border-color: var(--red); box-shadow: 0 12px 30px rgba(0,0,0,.45); transform: translate(-50%,-50%) scale(1.05); }
.mm-ico { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(245,237,224,0.06); border: 1px solid var(--line); transition: color .3s, border-color .3s; }
.mm-ico svg { width: 19px; height: 19px; color: var(--cream); transition: color .3s; }
.mm-node:hover .mm-ico, .mm-node.is-hot .mm-ico { border-color: var(--red); }
.mm-node:hover .mm-ico svg, .mm-node.is-hot .mm-ico svg { color: var(--red); }
.mm-label { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--cream); }

/* pozycje 6 węzłów wokół centrum (heksagon) */
.mm-node--1 { top: 7%;  left: 50%; }
.mm-node--2 { top: 30%; left: 86%; }
.mm-node--3 { top: 72%; left: 86%; }
.mm-node--4 { top: 93%; left: 50%; }
.mm-node--5 { top: 72%; left: 14%; }
.mm-node--6 { top: 30%; left: 14%; }

.mm-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 3;
  width: 224px; height: 224px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center;
  background: radial-gradient(circle at 50% 32%, #1e1e1e, #0b0b0b);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 10px rgba(255,61,46,0.05), 0 24px 60px rgba(0,0,0,.55);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.mm-hub:hover { border-color: var(--red); transform: translate(-50%,-50%) scale(1.04); box-shadow: 0 0 0 12px rgba(255,61,46,0.09), 0 24px 60px rgba(0,0,0,.6); }
.mm-hub-eyebrow { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.mm-hub-title { font-family: var(--font-head); text-transform: uppercase; font-size: 1.9rem; line-height: 1; color: var(--cream); }
.mm-hub-360 { font-family: var(--font-accent); font-style: italic; font-weight: 600; color: var(--red); font-size: 2.7rem; line-height: 0.95; }
.mm-hub-cta { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--cream); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.mm-hub-cta .arrow { transition: transform .25s var(--ease); }
.mm-hub:hover .mm-hub-cta .arrow { transform: translateX(4px); }

/* MAPA MYŚLI — mobile: pionowa lista usług → czerwony baner-cel „Kampania 360°" */
@media (max-width: 760px) {
  .mindmap { height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 460px; margin-inline: auto; }
  .mm-lines { display: none; }
  /* bulletproof: nic nie wyjedzie poza szerokość ekranu */
  .mm-node, .mm-hub { position: static; transform: none; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .mm-node { width: 100%; justify-content: flex-start; transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease); }
  .mm-node:hover, .mm-node.is-hot { transform: none; }

  /* EFEKT FALI — aktywny kafelek (w centrum ekranu podczas scrollu) */
  .mm-node--active { transform: scale(1.035); border-color: var(--red); background: var(--surface-2); box-shadow: 0 0 0 1px rgba(255,61,46,0.25), 0 16px 36px rgba(0,0,0,.5); }
  .mm-node--active .mm-ico { border-color: var(--red); }
  .mm-node--active .mm-ico svg { color: var(--red); }
  .mm-node--active .mm-label { color: #fff; }
  .mm-hub {
    width: 100%; height: auto; border-radius: var(--radius); padding: 30px 22px; margin-top: 50px;
    position: relative; inset: auto;   /* WAŻNE: zeruje odziedziczone z desktopu top/left:50% */
    /* domyślnie OSADZONY (normalny) — jak osadzone kafelki nad nim */
    border-color: rgba(255,61,46,0.45);
    box-shadow: 0 0 0 1px rgba(255,61,46,0.18), 0 18px 42px rgba(0,0,0,.5);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  }
  /* WEJŚCIE (ta sama strefa/fala co kafelki): powiększony + mocna poświata */
  .mm-hub--active {
    transform: scale(1.04);
    border-color: rgba(255,61,46,0.78);
    box-shadow: 0 0 0 1px rgba(255,61,46,0.35), 0 16px 55px rgba(255,61,46,0.22);
  }
  /* na telefonie dotyk wyzwala :hover z desktopu (translate -50% = ucieczka w lewo) — zerujemy,
     żeby hub został w miejscu i po prostu się klikał */
  .mm-hub:hover { transform: none; }
  .mm-hub::before { content: "↓"; position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-size: 26px; line-height: 1; color: var(--red); }
  /* tekst huba dopasowany do telefonu (nie wystaje) */
  .mm-hub-eyebrow { font-size: 0.66rem; }
  .mm-hub-title { font-size: 1.7rem; }
  .mm-hub-360 { font-size: 2.2rem; }
}

/* ===========================================================
   BUFOR PRZEJŚCIA MIĘDZY STRONAMI (adaptacyjny — patrz initPageTransition)
   =========================================================== */
.page-loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: rgba(10,10,10,0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s var(--ease);
}
.page-loader.is-on { opacity: 1; visibility: visible; }
.page-loader img { width: clamp(150px, 40vw, 200px); opacity: .9; animation: loader-pulse 1.1s ease-in-out infinite; }
@keyframes loader-pulse { 0%, 100% { opacity: .4; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }

/* ===========================================================
   COOKIES / RODO
   =========================================================== */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1100;
  max-width: 940px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between;
  background: rgba(18,18,18,0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: translateY(150%); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.cookie-bar.is-on { transform: none; opacity: 1; }
.cookie-bar__text { flex: 1 1 320px; }
.cookie-bar__text strong { font-family: var(--font-body); font-weight: 600; color: var(--cream); display: block; margin-bottom: 4px; }
.cookie-bar__text p { font-size: 0.9rem; margin: 0; }
.cookie-bar__text a { color: var(--cream); text-decoration: underline; }
.cookie-bar__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar__btns .btn { padding: 12px 20px; font-size: 0.92rem; }

.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.form-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.form-consent a { color: var(--cream); text-decoration: underline; }

.footer-legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--faint); transition: color .2s; }
.footer-legal a:hover { color: var(--cream); }

@media (max-width: 600px) {
  .cookie-bar {
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px;
    left: 8px; right: 8px; bottom: 8px; padding: 15px 16px;
  }
  /* KLUCZOWE: w kolumnie flex-basis:320px stawał się WYSOKOŚCIĄ tekstu (stąd wielka dziura).
     Zerujemy, żeby blok tekstu miał wysokość swojej treści. */
  .cookie-bar__text { flex: 0 0 auto; }
  .cookie-bar__text strong { margin-bottom: 2px; font-size: 0.95rem; }
  .cookie-bar__text p { font-size: 0.82rem; line-height: 1.45; }
  .cookie-bar__btns { width: 100%; gap: 8px; }
  .cookie-bar__btns .btn { flex: 1; justify-content: center; padding: 11px 12px; font-size: 0.88rem; }
}

/* Dostępność: szanuj wyłączone animacje */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  /* ticker zatrzymany → statyczny, wyśrodkowany, zawijany rząd (jedna kopia) */
  .trust-marquee { -webkit-mask-image: none; mask-image: none; }
  .trust-track { width: 100%; }
  .trust-set { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .trust-set[aria-hidden="true"] { display: none; }
}
