/* Przełącznik języka - segmentowany control w stylu iOS/macOS: miękki cień
   wgłębiony na torze, kulka z lekkim odbiciem (cubic-bezier z przestrzeleniem),
   scale w dół pod palcem/kursorem zamiast twardej ramki. */
.lang {
  position: relative;
  display: inline-flex;
  padding: 0; border: none; background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lang__track {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--ink-06);
  box-shadow: inset 0 1px 2px rgba(10, 15, 60, .06), inset 0 0 0 1px var(--ink-12);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .15s var(--ease);
}
.lang:hover .lang__track { background: var(--ink-12); }
.lang:active .lang__track { transform: scale(.95); }

.lang__opt {
  position: relative; z-index: 1;
  width: 34px; padding: 7px 0;
  text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  color: var(--ink-45);
  transition: color .4s var(--ease);
}
.lang[aria-checked="false"] .lang__opt[data-lang-opt="pl"],
.lang[aria-checked="true"]  .lang__opt[data-lang-opt="en"] { color: var(--ink); }

/* Kulka przesuwa się pod aktywny język, z delikatnym odbiciem na końcu ruchu */
.lang__knob {
  position: absolute; top: 3px; left: 3px;
  width: 34px; height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 1px rgba(10, 15, 60, .06), 0 4px 10px rgba(10, 15, 60, .16);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.lang[aria-checked="true"] .lang__knob { transform: translateX(34px); }

.nav.is-over-dark .lang__track {
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.nav.is-over-dark .lang:hover .lang__track { background: rgba(255, 255, 255, .16); }
.nav.is-over-dark .lang__opt { color: rgba(255, 255, 255, .5); }
.nav.is-over-dark .lang[aria-checked="false"] .lang__opt[data-lang-opt="pl"],
.nav.is-over-dark .lang[aria-checked="true"]  .lang__opt[data-lang-opt="en"] { color: var(--ink); }
.nav.is-over-dark .lang__knob { background: var(--yellow); }

/* ═══════════════════════════════════════════════════════════
   Cosmic Wave — strona główna
   Kolory i typografia zgodne z księgą znaku (Brand Guidelines 2026)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Paleta z księgi znaku */
  --ink:        #0a0f3c;   /* Tertiary  — główny kolor tekstu */
  --purple:     #7418ea;   /* Primary   — kolor marki */
  --yellow:     #f7fc29;   /* Secondary — akcent */
  --cream:      #fcfbf6;   /* Additional — tło */
  --lavender:   #ede6ff;   /* Additional — jasne powierzchnie */
  --white:      #ffffff;

  --ink-60: rgba(10, 15, 60, .60);
  --ink-45: rgba(10, 15, 60, .45);
  --ink-12: rgba(10, 15, 60, .12);
  --ink-06: rgba(10, 15, 60, .06);

  --font-display: 'Funnel Display', system-ui, sans-serif;
  --font-sans:    'Funnel Sans', system-ui, sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 56px);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 44px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Reset / baza ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  /* Nie zaciskaj mocniej niż -.01em: przy ciaśniejszym trackingu „rn"
     (np. w „internetowy") skleja się i czyta jak „m". Zmierzone na canvasie:
     przy -.03em prześwit między „r" a „n" wynosi zero. */
  letter-spacing: -.01em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0; z-index: 999;
}
.skip-link:focus { left: 0; }

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

/* Subtelne ziarno — dodaje „drogiego" charakteru jasnym powierzchniom */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Znacznik danych do uzupełnienia ─────────────────────────
   Każdy element z klasą .ph to miejsce na realną treść.
   Lista wszystkich: `grep -o 'data-ph="[^"]*"' index.html`      */
.ph {
  display: inline;
  color: var(--purple);
  background: rgba(116, 24, 234, .09);
  box-shadow: inset 0 0 0 1px rgba(116, 24, 234, .34);
  border-radius: 5px;
  padding: .05em .3em;
  font-weight: 600;
  font-style: normal;
}
.ph--light {
  color: var(--yellow);
  background: rgba(247, 252, 41, .12);
  box-shadow: inset 0 0 0 1px rgba(247, 252, 41, .38);
}

/* ── Elementy wspólne ────────────────────────────────────── */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}
.eyebrow--light { color: var(--yellow); }

.section-title { font-size: clamp(2rem, 5.2vw, 4rem); }
.section-head { margin-bottom: clamp(30px, 4vw, 56px); }
.section-head--split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: end;
}
.section-note { color: var(--ink-60); font-size: 16px; max-width: 46ch; }

/* ── Przyciski ───────────────────────────────────────────── */
.btn {
  --bg: var(--ink);
  --fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg);
  color: var(--fg);
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  /* Bez will-change - przyciski ruszają się tylko pod kursorem, a stała
     promocja do własnej warstwy trzymała je na GPU przez cały czas. */
  transition: transform .35s var(--ease), background-color .3s, color .3s, box-shadow .35s var(--ease);
}
.btn--lg { padding: 19px 36px; font-size: 17px; }
.btn--sm { padding: 11px 20px; font-size: 15px; }

.btn--primary:hover { background: var(--purple); box-shadow: 0 14px 34px rgba(116, 24, 234, .28); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--yellow:hover { box-shadow: 0 14px 34px rgba(247, 252, 41, .4); }
.btn:disabled { opacity: .55; cursor: default; }

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border: 1px solid var(--ink-12);
}
.btn--ghost:hover { background: var(--white); border-color: transparent; box-shadow: 0 10px 30px var(--ink-06); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--purple);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.link-arrow:hover { border-color: currentColor; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Wygaszony link do treści, której jeszcze nie ma (lead magnety w budowie) */
.link-arrow--soon {
  color: var(--ink-45);
  cursor: default;
  pointer-events: none;
}
.link-arrow--soon::after { opacity: .4; }
.badge-soon {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink-06);
  color: var(--ink-45);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase;
}

/* ═══════════════ NAWIGACJA ═══════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 26px 0;
  /* Bez backdrop-filter w transition: sam .nav go nie ma (rozmycie robią
     warstwy .nav__scrim), więc animowanie go było kosztowne i bezcelowe. */
  transition: padding .4s var(--ease), background-color .4s, box-shadow .4s;
}
.nav.is-stuck { padding: 14px 0; }

/* Zasłona pod paskiem — dwie rzeczy naraz:
   1) delikatna poświata w kolorze tła (gradient, sama z siebie gaśnie),
   2) progresywny blur złożony z kilku warstw.

   Jedna warstwa rozmycia przycięta maską zawsze zostawia widoczną krawędź:
   pod maską rozmycie jest pełne, tuż za nią zerowe. Dlatego warstw jest kilka —
   każda rozmywa mocniej i gaśnie wyżej, więc siła rozmycia narasta stopniowo. */
.nav::before {
  content: '';
  position: absolute; inset: -1px 0 -34px;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(252, 251, 246, .8) 30%, rgba(252, 251, 246, 0));
  transition: background .45s var(--ease);
}
.nav.is-over-dark::before {
  background: linear-gradient(to bottom, rgba(10, 15, 60, .78) 30%, rgba(10, 15, 60, 0));
}

.nav__scrim {
  position: absolute; inset: -1px 0 -34px;
  z-index: -1;
  pointer-events: none;
}
.nav__scrim i {
  position: absolute; inset: 0;
  display: block;
}
/* Każda kolejna warstwa: słabsze rozmycie, ale sięga niżej.
   Warstwy są DWIE, nie więcej: pasek jest przyklejony, więc każda z nich
   przelicza rozmycie tła w każdej klatce scrolla. Przy czterech warstwach
   wychodziło ~660 tys. px rozmycia na klatkę (72% ekranu) i Chrome się
   przy tym krztusił - Safari nie, bo ma dużo tańszy backdrop-filter. */
.nav__scrim i:nth-child(1) {
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 46%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 46%);
}
.nav__scrim i:nth-child(2) {
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  /* Pole ochronne logo z księgi znaku — logo nie może dotykać krawędzi */
  padding-inline: clamp(26px, 5vw, 60px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo { display: block; padding: 8px 0; position: relative; }
.nav__logo-img { width: clamp(148px, 13vw, 178px); height: auto; transition: opacity .45s var(--ease); }
.nav__logo-img--white { position: absolute; left: 0; top: 8px; opacity: 0; }

/* ── Pasek nad ciemną sekcją: przezroczysty, kolory odwrócone ── */
.nav.is-over-dark .nav__logo-img--color { opacity: 0; }
.nav.is-over-dark .nav__logo-img--white { opacity: 1; }
.nav.is-over-dark .nav__link { color: var(--white); }
.nav.is-over-dark .nav__link:hover { background: rgba(255, 255, 255, .12); }
.nav.is-over-dark .nav__burger {
  background: transparent;
  border-color: rgba(255, 255, 255, .4);
  color: var(--white);
}
.nav.is-over-dark .nav__burger span { background: var(--white); }
.nav.is-over-dark .nav__cta { background: var(--yellow); color: var(--ink); }
.nav.is-over-dark .nav__cta:hover { box-shadow: 0 14px 34px rgba(247, 252, 41, .35); }

.nav__links { display: flex; gap: 6px; margin-inline: auto; }
.nav__link {
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .3s, color .3s;
}
.nav__link:hover { background: var(--ink-06); }
.nav__link--dot::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--purple);
  vertical-align: middle;
}

.nav__actions { display: flex; align-items: center; gap: 10px; }


.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink-12);
  background: var(--white);
  padding: 0;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 12px;
  width: 18px; height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s;
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 18px var(--gut) 28px;
  background: rgba(252, 251, 246, .96);
  backdrop-filter: blur(18px);
}
.nav__mobile a {
  padding: 13px 0;
  font-size: 19px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink-06);
}
.nav__mobile .btn { margin-top: 18px; border: 0; justify-content: center; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  z-index: 2;
  padding: clamp(118px, 12vw, 170px) var(--gut) clamp(60px, 7vw, 96px);
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%; left: 50%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(237, 230, 255, .9) 0%, rgba(252, 251, 246, 0) 62%);
  pointer-events: none;
  z-index: -1;
}

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 1.04;
  /* Patrz uwaga przy h1-h4: mocniejszy tracking skleja „rn" w „m" */
  letter-spacing: -.01em;
  max-width: 24ch;
  margin-inline: auto;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; }
.hero__title .word { display: inline-block; }
.hero__title .accent { color: var(--purple); }

.hero__lead {
  max-width: 52ch;
  margin: clamp(28px, 4vw, 44px) auto 0;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-60);
}
.hero__cta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 34px;
}

/* ── Wachlarz kart ───────────────────────────────────────── */
.fan { position: relative; margin-top: clamp(26px, 3.4vw, 44px); perspective: 1400px; }
.fan__track { display: flex; justify-content: center; align-items: flex-start; }

.card {
  flex: 0 0 auto;
  width: clamp(104px, 10.8vw, 152px);
  aspect-ratio: 1 / 1.2;
  margin-inline: clamp(-18px, -1.35vw, -9px);
  padding: clamp(12px, 1.2vw, 18px);
  border-radius: clamp(16px, 1.7vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  box-shadow: 0 18px 44px rgba(10, 15, 60, .13), 0 2px 6px rgba(10, 15, 60, .06);
  transform-origin: 50% 120%;
  will-change: transform;
}
.card__tag {
  font-size: clamp(9px, .72vw, 11px);
  font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .62;
}
.card__metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 1.7vw, 24px);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-top: auto;
  white-space: nowrap;
}
.card__label { font-size: clamp(9.5px, .78vw, 12px); line-height: 1.35; opacity: .68; }

.card--ink    { background: var(--ink);      color: var(--white); }
.card--ink2   { background: #141a52;         color: var(--white); }
.card--purple { background: var(--purple);   color: var(--white); }
.card--yellow { background: var(--yellow);   color: var(--ink); }
.card--lav    { background: var(--lavender); color: var(--ink); }
.card--cream  { background: #f2efe6;         color: var(--ink); }
.card--white  { background: var(--white);    color: var(--ink); box-shadow: 0 18px 44px rgba(10,15,60,.13), inset 0 0 0 1.5px var(--lavender); }

.card__bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 10px; }
.card__bars i { flex: 1; height: var(--h); background: currentColor; opacity: .3; border-radius: 2px; }
.card__rings { display: flex; gap: 5px; margin-top: 10px; }
.card__rings i { width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%; opacity: .35; }
.card__rings i:first-child { opacity: .8; }
.card__spark {
  height: 26px; margin-top: 10px; opacity: .45;
  background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M2 26 L22 18 L40 22 L60 9 L80 12 L98 3'/%3E%3C/svg%3E");
}
.card__spark--alt { opacity: .55; }
.card__pin {
  width: 22px; height: 22px; margin-top: 12px;
  border: 3px solid currentColor; border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg); opacity: .5;
}

.fan__bubble {
  position: absolute;
  z-index: 20;
  padding: 9px 16px 11px;
  border-radius: 999px 999px 999px 4px;
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(10, 15, 60, .16);
}
.fan__bubble--left { left: 13%; top: -26px; background: var(--purple); color: var(--white); }
.fan__bubble--right {
  right: 13%; top: -14px;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px 999px 4px 999px;
}

/* ═══════════════ PASEK KANAŁÓW ═══════════════ */
.marquee {
  position: relative; z-index: 2;
  padding: 26px 0;
  border-top: 1px solid var(--ink-06);
  border-bottom: 1px solid var(--ink-06);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 32px; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 2vw, 26px); letter-spacing: -.03em;
  color: var(--ink-45); white-space: nowrap;
}
.marquee__track i { color: var(--purple); font-size: 13px; font-style: normal; }

/* ═══════════════ PATTERN Z KSIĘGI ZNAKU ═══════════════
   Koncentryczne pierścienie z zaokrąglonych segmentów — ten sam motyw
   co sygnet. Geometrię generuje JS (assets/js/main.js → buildPattern).   */
.pattern {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  line-height: 0;
}
.pattern svg { width: 100%; height: 100%; overflow: visible; }

/* Segmenty pierścienia: wypełnione i konturowe — rytm jak w księdze znaku */
.pattern .pr-fill { stroke: none; }
.pattern .pr-line { fill: none; stroke-width: 1.2; }

/* Jasne tło — pattern w lawendzie, ledwo widoczny */
.pattern--figures {
  top: 50%; right: -16%;
  width: min(820px, 74vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 50%, #000 48%, transparent 76%);
}
.pattern--figures .pr-fill { fill: #e8dfff; }
.pattern--figures .pr-line { stroke: rgba(116, 24, 234, .28); }

/* Ciemne tło — pattern w fiolecie marki */
.pattern--contact {
  left: -18%; bottom: -34%;
  width: min(760px, 95vw);
  aspect-ratio: 1;
  opacity: .5;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%);
}
.pattern--contact .pr-fill { fill: rgba(116, 24, 234, .8); }
.pattern--contact .pr-line { stroke: rgba(255, 255, 255, .2); }

/* ═══════════════ TWARDE DANE — slajdy ═══════════════ */
.figures { position: relative; z-index: 2; overflow: hidden; }
.figures__pin {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.figures__inner { position: relative; z-index: 1; width: 100%; }

.figures__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding-bottom: clamp(18px, 2.2vw, 30px);
  border-bottom: 1px solid var(--ink-12);
}
.figures__head .eyebrow { margin-bottom: 0; }
.figures__count {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: .02em; color: var(--ink-45);
  display: flex; gap: 3px;
}
.figures__count b { color: var(--purple); }

.figures__stage {
  position: relative;
  min-height: clamp(280px, 34vh, 360px);
  margin: clamp(24px, 3vw, 42px) 0;
}

.figure {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Na desktopie rolę tła przejmuje animowany pattern — duża cyfra
   pojawia się dopiero na kartach mobilnych (patrz media query). */
.figure__ghost {
  display: none;
  position: absolute;
  right: 2%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 26vw, 22rem);
  line-height: .8;
  letter-spacing: -.06em;
  color: var(--lavender);
  opacity: .75;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.figure__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7.2vw, 6rem);
  line-height: .95;
  letter-spacing: -.055em;
  color: var(--purple);
  white-space: nowrap;
}
.figure__label {
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  margin-top: 18px;
  max-width: 17ch;
}
.figure__note {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--ink-60);
  max-width: 34ch;
}

.figures__rail {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.figures__rail li { display: grid; gap: 10px; }
.figures__rail i {
  display: block; height: 3px; border-radius: 2px;
  background: var(--ink-12);
  position: relative; overflow: hidden;
}
.figures__rail i::after {
  content: ''; position: absolute; inset: 0;
  background: var(--purple);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.figures__rail li.is-done i::after { transform: scaleX(1); }
.figures__rail li.is-active i::after { transform: scaleX(1); }
.figures__rail span {
  font-size: 13px; font-weight: 500; color: var(--ink-45);
  transition: color .4s var(--ease);
}
.figures__rail li.is-active span { color: var(--ink); }

/* Mobile: jeden pasek postępu i etykieta aktywnego kafelka */
.figures__slider { display: none; }
.figures__track {
  height: 3px; border-radius: 2px; overflow: hidden;
  background: var(--ink-12);
}
.figures__track span {
  display: block; height: 100%; width: 25%;
  background: var(--purple); border-radius: 2px;
  transition: width .45s var(--ease);
}
.figures__label {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--ink);
  transition: opacity .3s var(--ease);
}
.figures__label.is-swapping { opacity: 0; }

/* ═══════════════ USŁUGI ═══════════════ */
.services { padding: clamp(56px, 7vw, 104px) 0 0; position: relative; z-index: 2; }
.services__layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.services__nav { position: sticky; top: 140px; }
.services__progress {
  height: 3px; background: var(--ink-12); border-radius: 2px;
  overflow: hidden; margin-bottom: 28px;
}
.services__progress span { display: block; height: 100%; width: 0%; background: var(--purple); border-radius: 2px; }
.services__index { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.services__index li {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 16px; font-weight: 500; color: var(--ink-45);
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.services__index li b {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .04em;
  color: var(--ink-12); transition: color .4s var(--ease);
}
.services__index li.is-active { color: var(--ink); transform: translateX(6px); }
.services__index li.is-active b { color: var(--purple); }

.services__panels { display: grid; gap: clamp(40px, 5vw, 76px); padding-bottom: clamp(56px, 7vw, 104px); }

.service {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: 0 4px 50px var(--ink-06);
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
}
.service::after {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  pointer-events: none;
}
.service__no {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--purple);
}
.service__title { font-size: clamp(1.7rem, 3.4vw, 2.9rem); margin: 14px 0 20px; max-width: 18ch; }
.service__lead { color: var(--ink-60); max-width: 54ch; font-size: 17px; }
.service__points {
  list-style: none; margin: 20px 0 26px; padding: 20px 0 0;
  display: grid; gap: 11px;
  border-top: 1px solid var(--ink-06);
}
.service__points li { position: relative; padding-left: 26px; font-size: 16px; color: var(--ink); }
.service__points li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(116, 24, 234, .16);
}
.service__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* Suwak postępu usług — widoczny tylko na mobile */
.services__slider { display: none; margin-top: 26px; }
.services__slider .figures__label { color: var(--ink); }

/* ═══════════════ CASE STUDIES — choreografia ═══════════════ */
.cases { position: relative; z-index: 2; }
.cases__pin {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(56px, 7vw, 96px) 0;
}
.cases__inner { width: 100%; }

.cases__head {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 40px; align-items: end;
  margin-bottom: clamp(22px, 2.8vw, 38px);
}
.cases__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  letter-spacing: -.04em; line-height: 1;
}
.cases__note { color: var(--ink-60); font-size: 15.5px; max-width: 46ch; }

.cs-stage {
  display: flex;
  gap: 24px;
  height: clamp(400px, 58vh, 580px);
  align-items: stretch;
}

/* Motyw karty. Prezentowany case jest zawsze ciemny, drugi jasny
   z fioletowym obrysem — kolory wędrują razem z uwagą użytkownika. */
.cs {
  --cs-bg: #fcfbf6;
  --cs-fg: #7418ea;
  --cs-soft: rgba(116, 24, 234, .07);
  --cs-line: rgba(116, 24, 234, .24);
  --cs-edge: inset 0 0 0 1.5px #7418ea;
  --cs-accent: #f7fc29;     /* detale: żółć marki */
  --cs-bright: #7418ea;     /* najjaśniejszy stopień tekstu */

  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--r-xl);
  background: var(--cs-bg);
  color: var(--cs-fg);
  box-shadow: var(--cs-edge), 0 4px 50px var(--ink-06);
  overflow: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
}
.cs.is-dark {
  --cs-bg: #0a0f3c;
  --cs-fg: #ede6ff;
  --cs-soft: rgba(237, 230, 255, .09);
  --cs-line: rgba(237, 230, 255, .24);
  --cs-edge: inset 0 0 0 1.5px rgba(237, 230, 255, .16);
  --cs-bright: #fcfbf6;     /* nagłówki o ton jaśniejsze od reszty */
}

/* Placeholdery muszą czytać się na obu tłach */
.cs .ph {
  color: var(--cs-fg);
  background: color-mix(in srgb, var(--cs-fg) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cs-fg) 42%, transparent);
}

/* Trzy „twarze" karty. O tym, która jest widoczna, decyduje klasa —
   GSAP zajmuje się tylko szerokością karty i wjazdem treści. */
.cs__face {
  position: absolute; inset: 0;
  padding: clamp(24px, 2.8vw, 42px);
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.cs.is-media  .cs__face--media,
.cs.is-full   .cs__face--full,
.cs.is-result .cs__face--result {
  opacity: 1; visibility: visible;
  transition: opacity .45s var(--ease), visibility 0s;
}

/* ── Twarz A: grafika marki ─────────────────────────────── */
.cs__face--media { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; }
.cs__brand { font-size: 14px; opacity: .7; }

/* ── Twarz B: pełny case ────────────────────────────────── */
.cs__face--full {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(20px, 2.6vw, 44px);
  align-items: center;
}
.cs__body { display: grid; align-content: center; min-width: 0; }
.cs__visual { min-width: 0; }

.cs__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cs__no {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cs-fg);
}
.cs__no::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cs-accent);
  flex: 0 0 auto;
}
.cs__badge {
  font-size: 12.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  background: var(--cs-accent);
  color: var(--ink);
}
/* Na żółtym tle znacznik musi zejść na ciemny — inaczej znika */
.cs__badge .ph {
  color: var(--ink);
  background: rgba(10, 15, 60, .1);
  box-shadow: inset 0 0 0 1px rgba(10, 15, 60, .38);
}
.cs__title { font-size: clamp(1.4rem, 2.7vw, 2.3rem); max-width: 20ch; color: var(--cs-bright); }
.cs__text { margin-top: 16px; font-size: 15.5px; max-width: 44ch; opacity: .82; }

.cs__facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px 22px; margin: 20px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--cs-line);
}
.cs__facts dt {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; opacity: .6; margin-bottom: 3px;
}
.cs__facts dd { margin: 0; font-size: 14.5px; font-weight: 500; }

.cs__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.kpi { display: grid; gap: 5px; padding-top: 12px; border-top: 2px solid var(--cs-accent); }
.kpi__val {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem); letter-spacing: -.04em;
  line-height: 1;
}
.kpi__desc { font-size: 12.5px; line-height: 1.35; opacity: .68; }

/* ── Twarz C: wynik ─────────────────────────────────────── */
.cs__face--result { display: grid; align-content: center; gap: 12px; }
.cs__result-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -.055em; line-height: 1;
  color: var(--cs-bright);
}
.cs__result-desc { font-size: 15px; opacity: .72; max-width: 26ch; }
.cs__result-art {
  display: flex; align-items: flex-end; gap: 9px;
  height: clamp(64px, 11vh, 100px); margin-top: 20px;
}
.cs__result-art i {
  flex: 1; height: var(--h);
  background: var(--cs-fg);
  opacity: .32;
  border-radius: 7px 7px 3px 3px;
}
.cs__result-art i:last-child { background: var(--cs-accent); opacity: 1; }

.cases__rail {
  height: 3px; margin-top: clamp(22px, 3vw, 38px);
  background: var(--ink-12); border-radius: 2px; overflow: hidden;
}
.cases__rail span {
  display: block; height: 100%; width: 0%;
  background: var(--purple); border-radius: 2px;
  transition: width .5s var(--ease);
}

/* ── Wykresy: kolory dziedziczone z motywu karty ─────────── */
.chart {
  margin: 0;
  padding: clamp(16px, 2vw, 26px);
  border-radius: var(--r-lg);
  background: var(--cs-soft);
  box-shadow: inset 0 0 0 1px var(--cs-line);
}
.chart__cap { font-size: 12px; opacity: .7; margin-bottom: 12px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: var(--cs-line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart__area { fill: var(--cs-fg); opacity: .16; }
.chart__line {
  fill: none; stroke: var(--cs-fg); stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.chart__dots circle { fill: var(--cs-bg); stroke: var(--cs-fg); stroke-width: 3; }
/* Punkt końcowy — tam, gdzie kampania wylądowała */
.chart__dots circle:last-child { fill: var(--cs-accent); stroke: var(--cs-accent); }
.chart__axis {
  display: flex; justify-content: space-between;
  margin-top: 10px; font-size: 12px; opacity: .6;
}

.bars {
  display: flex; align-items: flex-end; gap: clamp(5px, .8vw, 10px);
  height: clamp(140px, 20vh, 210px);
}
.bars i {
  flex: 1; height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: var(--cs-fg);
  transform-origin: bottom;
  opacity: .32;
}
.bars i:nth-last-child(-n+3) { opacity: 1; }
.bars i:last-child { background: var(--cs-accent); }

/* ── Miejsce na grafikę ──────────────────────────────────── */
.media-slot {
  display: grid; place-content: center; gap: 6px;
  text-align: center;
  min-height: clamp(110px, 14vw, 160px);
  padding: 24px;
  border-radius: var(--r-lg);
  border: 2px dashed var(--cs-line);
  background: var(--cs-soft);
}
.media-slot--fill { min-height: 0; height: 100%; }
.media-slot__label {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px;
}
.media-slot__hint { font-size: 13px; opacity: .7; }

/* Zdjęcie zamiast placeholdera: bez ramki/tła atrapy, wypełnia kartę i kadruje się przycinaniem.
   display:block (nie grid) + img position:absolute — inaczej place-content:center z .media-slot
   zapada się do 0×0, dopóki obraz się nie wczyta i nie ma jeszcze własnego rozmiaru. */
.media-slot--photo {
  position: relative;
  display: block;
  padding: 0; border: none; background: none;
  overflow: hidden;
}
.media-slot--photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media-slot__ai-badge {
  position: absolute; left: 14px; bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 15, 60, .62);
  backdrop-filter: blur(3px);
  color: var(--white);
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
}

/* ═══════════════ JAK PRACUJEMY — podróż ═══════════════ */
.journey {
  position: relative;
  z-index: 2;
  background: radial-gradient(120% 90% at 70% 15%, #1b1160 0%, var(--ink) 55%);
  color: var(--white);
  overflow: hidden;
}
.journey__pin {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(56px, 7vw, 96px) 0;
}
.journey__space { position: absolute; inset: -12% 0; pointer-events: none; overflow: hidden; }
.stars { position: absolute; inset: 0; will-change: transform; }
/* Bez will-change: gwiazdek jest ~90, a każda dostawała własną warstwę
   kompozytora. Mruganiem i tak steruje GSAP, który promuje element sam
   na czas animacji. Warstwę trzyma tylko kontener .stars (paralaksa). */
.stars i {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
}
.stars--far  i { opacity: .2; }
.stars--mid  i { opacity: .38; }
.stars--near i { opacity: .6; box-shadow: 0 0 6px rgba(255, 255, 255, .55); }

/* Gwiazdy z rozbłyskiem — cztery promienie zamiast kropki */
.stars i.is-spark {
  border-radius: 0;
  background: none;
}
.stars i.is-spark::before,
.stars i.is-spark::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
}
.stars i.is-spark::before { width: 1.2px; height: 100%; }
.stars i.is-spark::after  { width: 100%; height: 1.2px; }
.journey__inner { position: relative; z-index: 1; width: 100%; }

.journey__head { margin-bottom: clamp(20px, 2.6vw, 34px); }
.journey__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3.3rem);
  letter-spacing: -.04em; line-height: 1;
}

.journey__scene { margin: clamp(18px, 2.4vw, 30px) 0 clamp(24px, 3vw, 38px); }
.journey__scene svg { width: 100%; height: auto; overflow: visible; }

.jpath { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.jpath--ghost { stroke: rgba(255, 255, 255, .17); stroke-dasharray: 5 11; }
.jpath--live  { stroke: var(--yellow); }

/* ── Planety: Ziemia, Księżyc, Jowisz, czarna dziura ─────────
   Wszystkie o tej samej średnicy i w tym samym języku graficznym:
   płaska bryła, detal w bieli o niskiej alfie, akcent w żółci.     */
.jnode { transition: opacity .5s var(--ease); }
.jnode__halo { fill: rgba(247, 252, 41, .08); opacity: 0; transition: opacity .5s var(--ease); }
.jnode.is-active .jnode__halo { opacity: 1; }

.jnode__body {
  fill: #241a5e;
  stroke: rgba(255, 255, 255, .38);
  stroke-width: 1.6;
  transition: fill .5s var(--ease), stroke .5s var(--ease);
}
.jnode.is-done   .jnode__body { fill: #33257e; }
.jnode.is-active .jnode__body { fill: var(--purple); stroke: var(--yellow); }

.jnode__detail { fill: rgba(255, 255, 255, .2); transition: fill .5s var(--ease); }
.jnode.is-active .jnode__detail { fill: rgba(255, 255, 255, .34); }

.jnode__ring {
  fill: none;
  stroke: rgba(255, 255, 255, .32);
  stroke-width: 1.6;
  transition: stroke .5s var(--ease);
}
.jnode.is-active .jnode__ring { stroke: var(--yellow); }

.jnode__spot { fill: rgba(247, 252, 41, .45); transition: fill .5s var(--ease); }
.jnode.is-active .jnode__spot { fill: var(--yellow); }

/* Czarna dziura — ciemny horyzont zdarzeń i rozświetlony dysk */
.jnode__void { fill: #05061a; stroke: rgba(255, 255, 255, .18); stroke-width: 1.2; }
.jnode__disc {
  fill: none;
  stroke: rgba(247, 252, 41, .45);
  stroke-width: 3.4;
  stroke-linecap: round;
  transition: stroke .5s var(--ease), stroke-width .5s var(--ease);
}
.jnode.is-active .jnode__disc { stroke: var(--yellow); stroke-width: 4.4; }
.jnode__lens {
  fill: none;
  stroke: rgba(247, 252, 41, .28);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke .5s var(--ease);
}
.jnode.is-active .jnode__lens { stroke: rgba(247, 252, 41, .8); }

.jnode__label {
  fill: rgba(255, 255, 255, .45);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  text-anchor: middle;
  transition: fill .5s var(--ease);
}
.jnode.is-active .jnode__label { fill: var(--white); }

.jcomet__core { fill: var(--yellow); }

/* ── Panel etapu ─────────────────────────────────────────── */
.journey__steps {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  min-height: clamp(215px, 26vh, 255px);
}
/* Etapy leżą na sobie. O tym, który jest widoczny, decyduje wyłącznie
   klasa `is-active` — a ma ją zawsze dokładnie jeden etap. GSAP animuje
   już tylko wjazd treści, więc nie da się skończyć z dwoma tekstami
   naraz ani z żadnym. */
.jstep { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.jstep.is-active { opacity: 1; visibility: visible; }
/* Gdyby JS nie wystartował, pierwszy etap i tak zostaje widoczny.
   Reguła działa tylko bez klasy `js`, żeby nie konkurowała z `is-active`. */
html:not(.js) .jstep:first-child { opacity: 1; visibility: visible; }

.jstep__head {
  display: flex; align-items: center; gap: 16px;
  width: 100%; padding: 0;
  background: none; border: 0; text-align: left;
  cursor: default;
}
.jstep__orb { display: none; }
.jstep__no {
  font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: .14em; color: var(--yellow);
}
.jstep__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  letter-spacing: -.035em; line-height: 1;
}
.jstep__body > div { min-height: 0; }
.jstep__body p {
  margin-top: 14px;
  max-width: 58ch;
  color: rgba(255, 255, 255, .66);
  font-size: clamp(15px, 1.6vw, 17px);
}

/* Fakty jako liczby, nie kolejne zdania */
.jstep__facts {
  list-style: none; margin: clamp(18px, 2.2vw, 26px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3.4vw, 44px);
}
.jstep__facts li {
  display: grid; gap: 3px;
  font-size: 13px; color: rgba(255, 255, 255, .5);
  padding-left: 16px;
  border-left: 2px solid rgba(247, 252, 41, .45);
}
.jstep__facts b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  letter-spacing: -.03em; color: var(--white);
}

.journey__rail {
  height: 3px; margin-top: clamp(26px, 3.4vw, 44px);
  background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden;
}
.journey__rail span {
  display: block; height: 100%; width: 0%;
  background: var(--yellow); border-radius: 2px;
  transition: width .5s var(--ease);
}

/* ═══════════════ FAQ ═══════════════ */
.faq { position: relative; z-index: 2; }
.faq__pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(56px, 7vw, 104px) 0;
}
.faq__wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq .section-head { margin-bottom: 0; }

.faq__list { display: grid; }

/* Wszystkie pytania przechodzą tą samą krzywą i w tym samym czasie —
   lista rusza się jak jeden organizm, zamiast pięciu osobnych animacji. */
.qa {
  position: relative;
  border-radius: var(--r-md);
  padding-inline: clamp(0px, 1.6vw, 22px);
  background: transparent;
  transition: background-color .55s var(--ease), box-shadow .55s var(--ease);
}
.qa::before {
  content: '';
  position: absolute; left: clamp(0px, 1.6vw, 22px); right: clamp(0px, 1.6vw, 22px); top: 0;
  height: 1px; background: var(--ink-12);
  transition: opacity .4s var(--ease);
}
.qa:last-child::after {
  content: '';
  position: absolute; left: clamp(0px, 1.6vw, 22px); right: clamp(0px, 1.6vw, 22px); bottom: 0;
  height: 1px; background: var(--ink-12);
  transition: opacity .4s var(--ease);
}

/* Otwarte pytanie podświetlone lawendą z fioletowym obrysem */
.qa.is-open {
  background: var(--lavender);
  box-shadow: inset 0 0 0 1px rgba(116, 24, 234, .2);
}
.qa.is-open::before,
.qa.is-open + .qa::before,
.qa.is-open:last-child::after { opacity: 0; }

.qa__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  background: none; border: 0; text-align: left;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.05rem, 1.75vw, 1.4rem); letter-spacing: -.025em;
  transition: color .45s var(--ease);
}
.qa__q:hover { color: var(--purple); }
.qa.is-open .qa__q { color: var(--purple); }
.qa__q i {
  position: relative; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink-06);
  transition: background-color .35s, transform .45s var(--ease);
}
.qa__q i::before, .qa__q i::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 13px; height: 1.8px; background: var(--ink); border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .45s var(--ease), background-color .35s;
}
.qa__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa.is-open .qa__q i { background: var(--purple); transform: rotate(180deg); }
.qa.is-open .qa__q i::before, .qa.is-open .qa__q i::after { background: var(--white); }
.qa.is-open .qa__q i::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Rozwijanie przez grid-template-rows 0fr → 1fr: jedna właściwość,
   jedna krzywa, bez przeliczania wysokości w JS. */
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease);
}
.qa__a > div { min-height: 0; overflow: hidden; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }

.qa__a p {
  padding-bottom: 28px;
  max-width: 62ch;
  color: var(--ink-60);
  font-size: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.qa.is-open .qa__a p {
  opacity: 1;
  transform: none;
  transition-delay: .12s;
}

/* ═══════════════ KONTAKT ═══════════════ */
.contact {
  position: relative; z-index: 2;
  margin: 0 var(--gut);
  padding: clamp(48px, 6vw, 84px) 0;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute; left: -10%; bottom: -40%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 24, 234, .55) 0%, transparent 65%);
  pointer-events: none;
}
.contact__wrap {
  position: relative;
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__title { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.contact__lead { margin-top: 26px; color: rgba(255, 255, 255, .68); max-width: 40ch; }

.contact__unlock {
  margin-top: 40px; padding: 26px 30px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}
.contact__unlock-label { font-size: 14px; color: var(--yellow); font-weight: 600; }
.contact__phone {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.03em;
}
.contact__unlock-note { font-size: 13.5px; color: rgba(255, 255, 255, .5); margin-top: 8px; }

.contact__whatsapp {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 14px; font-weight: 600; color: var(--white);
  transition: background-color .25s, border-color .25s;
}
.contact__whatsapp:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }

/* ── Formularz krok po kroku ─────────────────────────────── */
.quiz {
  padding: clamp(26px, 3.2vw, 42px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  /* Bez backdrop-filter: za kartą jest jednolity granat (fioletowa poświata
     sekcji siedzi w lewym dolnym rogu, karta stoi po prawej), więc rozmycie
     nic nie zmieniało wizualnie, a kosztowało ~520 tys. px na klatkę. */
}

.quiz__top { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(24px, 3vw, 34px); }
.quiz__progress {
  flex: 1; height: 4px; border-radius: 2px; overflow: hidden;
  background: rgba(255, 255, 255, .14);
}
.quiz__progress span {
  display: block; height: 100%; width: 20%;
  background: var(--yellow); border-radius: 2px;
  transition: width .55s var(--ease);
}
.quiz__counter { font-size: 13px; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.quiz__counter b { color: var(--yellow); }

.quiz__stage { position: relative; }

.qstep {
  border: 0; margin: 0; padding: 0;
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.qstep.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; }

.qstep__q {
  display: block; padding: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  letter-spacing: -.02em; line-height: 1.1;
  margin-bottom: 8px;
}
.qstep__hint { font-size: 14px; color: rgba(255, 255, 255, .5); margin-bottom: 18px; }
.qstep__opts { display: grid; gap: 10px; margin-top: 22px; }
.qstep__opts--tight { gap: 8px; }

.opt {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; text-align: left;
  padding: 15px 18px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 15, 60, .42);
  color: var(--white);
  font-size: 16px; font-weight: 600;
  transition: transform .3s var(--ease), border-color .3s, background-color .3s;
}
.opt small { font-weight: 400; font-size: 13px; color: rgba(255, 255, 255, .52); }
.opt:hover { transform: translateX(5px); border-color: var(--purple); background: rgba(116, 24, 234, .22); }
.opt.is-selected { border-color: var(--yellow); background: rgba(247, 252, 41, .12); }

.quiz__summary { display: grid; gap: 7px; margin: 20px 0 26px; }
.quiz__summary div {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13.5px; color: rgba(255, 255, 255, .6);
}
.quiz__summary dt { color: rgba(255, 255, 255, .4); min-width: 82px; }
.quiz__summary b { color: var(--white); font-weight: 600; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 15, 60, .45);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  transition: border-color .3s, background-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); background: rgba(10, 15, 60, .7);
}
.field input.is-invalid { border-color: #ff6b6b; }

.checkbox {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13.5px; color: rgba(255, 255, 255, .62); line-height: 1.5;
  margin: 18px 0 24px;
}
.checkbox input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--purple); flex: 0 0 auto; }
.checkbox a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.checkbox.is-invalid span { color: #ff9f9f; }

.quiz__submit { width: 100%; }
/* Stan po udanej wysyłce - trwały, nie "wyłączony". Przycisk zostaje w tym
   stanie na stałe (JS już go nie odblokowuje), więc musi wyglądać na
   celowo zakończony, a nie zablokowany/szary jak zwykły :disabled. */
.form__note { font-size: 13px; color: rgba(255, 255, 255, .45); margin-top: 14px; text-align: center; }

.quiz__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  min-height: 46px;
}
.quiz__back {
  background: none; border: 0; padding: 6px 0;
  font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .6);
  transition: color .3s;
}
.quiz__back:hover { color: var(--white); }
.form__status { font-size: 14px; font-weight: 600; color: var(--yellow); text-align: right; }

/* ── Ekran sukcesu po wysłaniu formularza ────────────────── */
.quiz__done { text-align: center; padding: 8px 0 4px; }
.quiz__done-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  font-size: 24px; font-weight: 700;
  margin-bottom: 20px;
}
.quiz__done-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.03em;
  margin-bottom: 10px;
}
.quiz__done-text { color: rgba(255, 255, 255, .65); max-width: 40ch; margin: 0 auto 28px; }

.quiz__done-call {
  text-align: left;
  padding: 24px 26px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}
.quiz__done-call-label { font-size: 14px; color: var(--yellow); font-weight: 600; }
.quiz__done-phone {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.03em;
  color: var(--white);
}
.quiz__done-call-note { font-size: 13.5px; color: rgba(255, 255, 255, .5); margin-top: 8px; }
.quiz__done-whatsapp {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 14px; font-weight: 600; color: var(--white);
  transition: background-color .25s, border-color .25s;
}
.quiz__done-whatsapp:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }

/* ═══════════════ STOPKA ═══════════════ */
.footer {
  position: relative; z-index: 2;
  margin-top: clamp(48px, 6vw, 84px);
  padding: clamp(48px, 6vw, 76px) 0 30px;
  background: var(--ink); color: var(--white);
}
.footer__wrap { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: clamp(30px, 4vw, 60px); }
.footer__brand img { width: 180px; margin-bottom: 20px; }
.footer__brand p { color: rgba(255, 255, 255, .5); font-size: 15px; max-width: 34ch; }
.footer__legal {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid; gap: 4px;
}
.footer__legal p { color: rgba(255, 255, 255, .35); font-size: 13px; max-width: none; }
.footer__legal-name { color: rgba(255, 255, 255, .5) !important; font-weight: 600; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h4 {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow); font-weight: 600; margin-bottom: 4px;
}
.footer__col a { font-size: 15px; color: rgba(255, 255, 255, .68); transition: color .3s; }
.footer__col a:hover { color: var(--white); }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  margin-top: clamp(50px, 6vw, 80px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px; color: rgba(255, 255, 255, .45);
}
.footer__social { display: flex; gap: 22px; }
.footer__social a:hover { color: var(--white); }

/* ═══════════════ RESPONSYWNOŚĆ (mobile-first priorytet) ═══════════════ */
@media (max-width: 1080px) {
  .nav { padding: 16px 0; }
  .nav.is-stuck { padding: 12px 0; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  /* Bez widocznej listy linków znika jej `margin: auto`, więc akcje
     trzeba dosunąć do prawej krawędzi ręcznie */
  .nav__actions { margin-left: auto; }
  .nav.is-open .nav__mobile { display: flex; }

  .faq__wrap { grid-template-columns: 1fr; }
  .contact__wrap { grid-template-columns: 1fr; }
  .footer__wrap { grid-template-columns: 1fr 1fr; }

  /* ── Efekty: jeden case pod drugim ──────────────────────────
     `flex: 1 1 0` w kolumnie o wysokości auto zwija karty do zera,
     dlatego tutaj muszą dostać rozmiar z treści. */
  .cases__pin { min-height: auto; padding: clamp(48px, 7vw, 76px) 0; }
  .cases__head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .cs-stage { flex-direction: column; height: auto; gap: 16px; }
  .cs { flex: 0 0 auto; overflow: hidden; box-shadow: var(--cs-edge); }
  .cs__face {
    position: static; opacity: 1; visibility: visible;
    transition: none;
    padding: clamp(22px, 5vw, 30px);
  }
  .cs__face--media { display: none; }
  .cs__face--full { grid-template-columns: 1fr; gap: 20px; }
  .cs__face--result { padding-top: 0; }
  .cs__face--result::before {
    content: ''; display: block; height: 1px;
    background: var(--cs-line); margin-bottom: 24px;
  }
  .cs__part { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .cases__rail { display: none; }

  /* Domyślnie widać hak: numer, nagłówek i liczby. Reszta pod przyciskiem. */
  .cs.is-collapsed [data-cs-part="2"],
  .cs.is-collapsed .cs__visual { display: none; }
  .cs__toggle {
    width: 100%;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--cs-line);
    background: transparent;
    color: var(--cs-fg);
    font-size: 15px; font-weight: 600;
  }
}

@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }

  /* ── Twarde dane: karuzela z przyciąganiem ──────────────── */
  .figures__pin { min-height: auto; padding: clamp(56px, 8vw, 84px) 0 16px; }
  .figures__stage {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    margin-inline: calc(var(--gut) * -1);
    padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .figures__stage::-webkit-scrollbar { display: none; }
  .figure {
    position: static;
    flex: 0 0 min(78%, 320px);
    scroll-snap-align: center;
    max-width: none;
    padding: 26px 24px;
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: 0 2px 30px var(--ink-06);
  }
  .figure__ghost { display: block; font-size: 7rem; right: 14px; opacity: .5; }
  .pattern--figures { display: none; }
  /* Cztery osobne paski zastępuje jeden suwak z etykietą */
  .figures__rail { display: none; }
  .figures__slider { display: block; }

  /* ── Usługi: karuzela przesuwana w lewo, jak „Musisz o tym wiedzieć" ── */
  .services { padding-top: 0; }
  .services__pin { padding: 24px 0 0; }
  .services__layout { grid-template-columns: 1fr; }
  .services__nav { display: none; }

  .services__panels {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(var(--gut) * -1);
    padding: 4px var(--gut);
  }
  .services__panels::-webkit-scrollbar { display: none; }

  .service {
    flex: 0 0 min(84%, 330px);
    scroll-snap-align: center;
    opacity: 1; visibility: visible;
    padding: clamp(24px, 5.5vw, 32px);
  }

  .services .section-head { margin-bottom: 22px; }
  .services .section-title { font-size: clamp(1.6rem, 6.6vw, 2rem); }
  .service__no { font-size: 12px; }
  .service__title { font-size: clamp(1.4rem, 6vw, 1.8rem); margin: 10px 0 14px; }
  .service__lead { font-size: 15px; line-height: 1.5; }
  .service__points { margin: 16px 0 20px; padding-top: 16px; gap: 9px; }
  .service__points li { font-size: 14.5px; padding-left: 22px; }
  .service__foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .service__foot .btn { width: 100%; }
  .service__foot .link-arrow { justify-content: center; }

  .services__slider { display: block; }

  /* ── Jak pracujemy: pionowa roadmapa ─────────────────────── */
  .journey__pin { min-height: auto; padding: clamp(56px, 8vw, 84px) 0; }
  .journey__scene { display: none; }

  .journey__steps {
    position: relative;
    min-height: 0;
    display: grid;
    padding-left: 62px;
  }
  /* Oś roadmapy i jej wypełnienie postępem */
  .journey__steps::before,
  .journey__steps::after {
    content: '';
    position: absolute; left: 21px; top: 26px; bottom: 26px;
    width: 2px; border-radius: 2px;
  }
  .journey__steps::before { background: rgba(255, 255, 255, .16); }
  .journey__steps::after {
    background: var(--yellow);
    height: var(--road, 0%);
    bottom: auto;
    transition: height .6s var(--ease);
  }

  /* Wszystkie punkty rozwinięte; pasek postępu podąża za scrollem
     i rozświetla kolejne etapy po dotarciu do ich znacznika. */
  .jstep {
    position: static; visibility: visible;
    padding: 6px 0 22px;
    opacity: .42;
    transition: opacity .5s var(--ease);
  }
  .jstep.is-lit { opacity: 1; }

  .jstep__head { padding: 8px 0; cursor: default; gap: 12px; align-items: center; }
  .jstep__orb {
    display: block;
    position: absolute; left: 0;
    z-index: 1;              /* planeta nad osią, nie pod nią */
    width: 44px; height: 44px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--ink);
    transition: transform .45s var(--ease);
  }
  .jstep__orb svg { width: 100%; height: 100%; overflow: visible; }
  .jstep.is-active .jstep__orb { transform: scale(1.14); }

  .jstep__title { font-size: 1.15rem; flex: 1; }
  .jstep__no { font-size: 11px; }

  .jstep__body { display: block; opacity: 1; }
  .jstep__body p { margin-top: 0; padding-bottom: 4px; font-size: 15px; }
  .jstep__facts { flex-direction: column; gap: 10px; margin: 16px 0 6px; }
  .jstep__facts li { font-size: 12.5px; }
  .journey__rail { display: none; }

  /* ── FAQ: więcej powietrza i oddechu w odpowiedziach ────── */
  .faq__pin { min-height: auto; padding: clamp(56px, 8vw, 84px) 0; }
  .faq .section-head { margin-bottom: 30px; }
  .qa { padding-inline: 18px; }
  .qa__q { padding: 22px 0; font-size: 1.05rem; gap: 16px; line-height: 1.25; }
  .qa__q i { width: 30px; height: 30px; }
  .qa__a p {
    padding: 2px 0 26px;
    font-size: 15.5px;
    line-height: 1.65;
    max-width: none;
  }

  /* ── Stopka: cztery kolumny to za dużo na telefon ───────── */
  .footer { padding: clamp(40px, 7vw, 60px) 0 24px; }
  .footer__wrap {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand img { width: 150px; margin-bottom: 12px; }
  .footer__brand p { font-size: 14px; max-width: 40ch; }
  .footer__col { gap: 9px; }
  .footer__col h4 { font-size: 11px; margin-bottom: 2px; }
  .footer__col a { font-size: 14px; }
  .footer__bottom {
    margin-top: 30px; padding-top: 20px;
    gap: 10px; font-size: 12.5px;
    flex-direction: column; align-items: flex-start;
  }
  .footer__social { gap: 18px; }
}

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

  .hero { padding-top: 120px; }
  .hero__title { font-size: clamp(2.4rem, 12vw, 3.4rem); letter-spacing: -.01em; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  /* Nagłówek łamie się na trzy linie — wachlarz potrzebuje zapasu,
     żeby dymek nie wchodził pod ostatnią linię */
  .fan { margin-top: 36px; }

  /* Wachlarz: na telefonie 5 kart, węższych, żeby zmieścił się w szerokości ekranu */
  /* Jawna wysokość zamiast proporcji: treść i tak przerastała aspect-ratio,
     więc karty miały różne wysokości. min-width:0 zdejmuje automatyczne
     minimum elementu flex, żeby szerokość była zawsze dotrzymana. */
  .card {
    width: 78px; min-width: 0;
    aspect-ratio: auto; height: 106px;
    margin-inline: -12px; padding: 10px; border-radius: 14px;
  }
  .card:nth-child(n+6) { display: none; }
  .card__metric { font-size: 15px; }
  .card__tag { font-size: 8px; }
  .card__label { font-size: 9px; }
  .card__bars, .card__spark { height: 18px; margin-top: 7px; }
  .card__rings { margin-top: 7px; }
  .card__rings i { width: 10px; height: 10px; }
  .card__pin { width: 16px; height: 16px; margin-top: 8px; }

  .fan__bubble { font-size: 11px; padding: 6px 11px 8px; }
  .fan__bubble--left { left: 2%; top: -18px; }
  .fan__bubble--right { right: 2%; top: -10px; }

  /* Statystyki: mniejsza liczba, żeby „2,4 mln zł" nie łamało się w pół */
  .stat { padding: 22px 12px; }
  .stat__num { font-size: 1.75rem; }
  .stat__desc { font-size: 13.5px; }

  .cs__facts { grid-template-columns: 1fr 1fr; }
  .cs__kpis { grid-template-columns: 1fr; gap: 14px; }
  .cs__result-art { height: 60px; }

  .form__row { grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
  .footer__wrap { grid-template-columns: 1fr 1fr; }

  /* Formularz: mniej powietrza, żeby krok mieścił się bez przewijania */
  .contact { margin-inline: 12px; padding: clamp(36px, 6vw, 56px) 0; }
  .contact__title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .contact__lead { margin-top: 16px; font-size: 15px; }
  .quiz { padding: clamp(18px, 4.5vw, 26px); }
  .quiz__top { margin-bottom: 18px; }
  .qstep__q { font-size: 1.15rem; }
  .qstep__hint { font-size: 13px; margin-bottom: 12px; }
  .qstep__opts { gap: 8px; margin-top: 16px; }
  .opt { padding: 12px 15px; font-size: 15px; }
  .opt small { font-size: 12px; }
  .field label { font-size: 12.5px; }
  .field input, .field select, .field textarea { padding: 12px 14px; font-size: 15.5px; }
  .checkbox { margin: 14px 0 18px; font-size: 12.5px; }
  .quiz__nav { margin-top: 16px; padding-top: 14px; }
}

/* ═══════════════ CENNIK: usługa, potem plan ═══════════════ */
.pricing { padding: clamp(56px, 7vw, 104px) 0; position: relative; z-index: 2; }

/* KROK 1: siatka usług do wyboru - kolory po tych samych motywach co karty hero */
.pricing__picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.pricing__pick {
  text-align: left;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 190px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 4px 20px rgba(10, 15, 60, .05);
}
.pricing__pick:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(10, 15, 60, .16); }
.pricing__pick-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.15; }
.pricing__pick-blurb { font-size: 13.5px; opacity: .74; line-height: 1.45; }
.pricing__pick-from { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; opacity: .85; }

.pricing__pick--yellow   { background: var(--yellow);   color: var(--ink); }
.pricing__pick--cream    { background: #f2efe6;         color: var(--ink); }
.pricing__pick--purple   { background: var(--purple);   color: var(--white); }
.pricing__pick--ink      { background: var(--ink);      color: var(--white); }
.pricing__pick--lavender { background: var(--lavender); color: var(--ink); }

/* KROK 2: plany po wyborze usługi */
.pricing__back {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: none; cursor: pointer; padding: 0;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--purple);
  margin-bottom: 28px;
  transition: transform .25s var(--ease);
}
.pricing__back:hover { transform: translateX(-3px); }

.pricing__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 32px;
}
.pricing__service-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); }

.pricing__switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ink-06); border: 1px solid var(--ink-12); }
.pricing__switch button {
  border: none; background: none; cursor: pointer;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--ink-60);
  display: flex; align-items: center; gap: 6px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.pricing__switch button.is-active { background: var(--ink); color: var(--white); }
.pricing__save { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--yellow); color: var(--ink); }

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.pricing__card {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--ink-12);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.pricing__card:hover { box-shadow: inset 0 0 0 1.5px var(--purple); transform: translateY(-4px); }
.pricing__card--custom { background: var(--ink); color: var(--white); box-shadow: none; }
.pricing__card--custom .pricing__card-desc { color: rgba(255, 255, 255, .68); }
.pricing__card--custom .pricing__card-price span { color: rgba(255, 255, 255, .55); }
.pricing__card--custom .pricing__card-features li { color: rgba(255, 255, 255, .88); }
.pricing__card--custom .pricing__card-features li::before { color: var(--yellow); }

.pricing__card-tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px;
  background: var(--lavender); color: var(--purple);
  margin-bottom: 16px;
}
.pricing__card--custom .pricing__card-tag { background: rgba(255, 255, 255, .14); color: var(--white); }

.pricing__card-desc { font-size: 14px; color: var(--ink-60); line-height: 1.5; margin-bottom: 20px; }

.pricing__card-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.pricing__card-price b { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; }
.pricing__card-price span { font-size: 13px; color: var(--ink-45); }

.pricing__card-features { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.pricing__card-features li { font-size: 14px; line-height: 1.4; padding-left: 24px; position: relative; }
.pricing__card-features li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--purple); font-weight: 700; }

.pricing__cta { margin-top: auto; width: 100%; }

@media (max-width: 640px) {
  .pricing__top { flex-direction: column; align-items: flex-start; }
  .pricing__switch { width: 100%; }
  .pricing__switch button { flex: 1; justify-content: center; }
}

/* ═══════════════ ZGODA NA COOKIES (blokująca) ═══════════════
   Domyślnie ukryta (display: none) — pokazuje ją wyłącznie
   html.consent-pending, ustawiane synchronicznie przez inline-skrypt
   w <head>, zanim cokolwiek zdąży się wyrenderować. Reszta strony
   (#page) jest wtedy inert i ma zablokowany scroll — patrz niżej. */
html.consent-pending,
html.consent-pending body { overflow: hidden; }
html.consent-pending #page { pointer-events: none; }

.consent {
  display: none;
  position: fixed; inset: 0; z-index: 600;
  align-items: center; justify-content: center;
  padding: 24px;
}
html.consent-pending .consent,
.consent.is-closing { display: flex; }
.consent[hidden] { display: none; }

.consent__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 15, 60, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.consent.is-closing .consent__backdrop { opacity: 0; transition: opacity .32s var(--ease); }

.consent__panel {
  position: relative; z-index: 1;
  width: min(480px, 100%);
  /* Po rozwinięciu „Dostosuj" treść potrafi przekroczyć wysokość niskiego
     telefonu - bez tego przyciski wyjeżdżają poza ekran i nie da się ich kliknąć. */
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px rgba(10, 15, 60, .35);
  padding: clamp(26px, 4vw, 36px);
}
.consent.is-closing .consent__panel {
  opacity: 0; transform: translateY(14px) scale(.97);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

.consent__text { color: var(--ink-60); font-size: 15px; line-height: 1.55; margin: 0 0 24px; }
.consent__text a { color: var(--ink); text-decoration: underline; }

/* Panel „Dostosuj" - rozwijany, domyślnie ukryty i z wyłączonymi przełącznikami */
.consent__options {
  display: grid; gap: 14px;
  margin-bottom: 22px; padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--ink-06);
  border: 1px solid var(--ink-12);
  text-align: left;
}
.consent__options[hidden] { display: none; }
.consent__opt { display: grid; gap: 4px; }
label.consent__opt { cursor: pointer; }
.consent__opt-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.consent__opt-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.consent__opt-always { font-size: 12.5px; color: var(--ink-60); white-space: nowrap; }
.consent__opt-desc { font-size: 13px; line-height: 1.45; color: var(--ink-60); margin: 0; max-width: 46ch; }
.consent__opt input[type="checkbox"] {
  width: 20px; height: 20px; flex: 0 0 auto;
  accent-color: var(--purple); cursor: pointer;
}

.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* „Dostosuj" i „Zapisz wybór" są celowo mniej wyeksponowane niż dwie główne
   opcje, ale siedzą w tym samym rzędzie - odmowa zostaje jednym kliknięciem. */
.consent__btn--quiet { flex: 0 0 auto; border-color: transparent; color: var(--ink-60); }
.consent__btn--quiet:hover { background: var(--ink-06); color: var(--ink); }
.consent__btn[hidden] { display: none; }
.consent__btn {
  flex: 1 1 auto;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
  border: 1px solid var(--ink-12); background: transparent; color: var(--ink);
}
.consent__btn:hover { background: var(--ink-06); }
.consent__btn--accept { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.consent__btn--accept:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ═══════════════ MODAL: bezpłatna konsultacja ═══════════════ */
.booking {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.booking[hidden] { display: none; }

.booking__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 15, 60, .55);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.booking.is-open .booking__backdrop { opacity: 1; }

.booking__panel {
  position: relative; z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px rgba(10, 15, 60, .35);
  padding: clamp(24px, 4vw, 40px);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
.booking.is-open .booking__panel { opacity: 1; transform: translateY(0) scale(1); }

.booking__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--ink-12); background: var(--white);
  font-size: 22px; line-height: 1; color: var(--ink);
  cursor: pointer; transition: background-color .25s, border-color .25s;
}
.booking__close:hover { background: var(--ink-06); }

.booking__lead { color: var(--ink-60); font-size: 15px; margin: 0 0 20px; max-width: 44ch; }

.booking__frame { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--ink-12); }
.booking__frame iframe { display: block; width: 100%; height: 600px; }

html.no-scroll, html.no-scroll body { overflow: hidden; }

@media (max-width: 640px) {
  .booking { padding: 12px; }
  .booking__panel { padding: 20px; padding-top: 56px; }
  .booking__frame iframe { height: 65vh; }
}

/* ═══════════════ DOSTĘPNOŚĆ: ograniczony ruch ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* Bez animacji pokazujemy wszystkie etapy i slajdy naraz */
  .figures__pin, .journey__pin, .faq__pin, .cases__pin, .services__pin {
    min-height: auto; padding: 80px 0;
  }
  .services__panels { position: static; min-height: 0; display: grid; gap: 24px; }
  .service { position: static; opacity: 1; visibility: visible; }
  .cs-stage { flex-direction: column; height: auto; }
  .cs__face { position: static; opacity: 1; visibility: visible; }
  .cs__face--media { display: none; }
  .cs__part { opacity: 1 !important; visibility: visible !important; }
  .figures__stage { position: static; display: grid; gap: 40px; min-height: 0; }
  .figure { position: static; }
  .journey__steps { position: static; min-height: 0; display: grid; gap: 34px; }
  .jstep { position: static; opacity: 1; visibility: visible; }
  .jstep__body { grid-template-rows: 1fr; opacity: 1; }
  .journey__scene { display: none; }
}
