/* ==========================================================================
   ONYKS — system wizualny maciejmieso.com
   Jeden krój (Manrope), cztery tony jednego materiału, zero zaokrągleń.
   Hierarchię buduje światło, waga pisma i puste pole — nie kolor akcentowy.
   ========================================================================== */

/* ---------- 01 · Tokeny --------------------------------------------------- */
:root {
  --onyx:      #0D0D0C;
  --graphite:  #161615;
  --surface:   #1C1C1A;
  --ash:       #4A4A44;
  --bone:      #F0EEE9;

  --bg:        var(--onyx);
  --text:      var(--bone);
  --text-2:    #C6C4BD;
  --text-3:    #A5A39B;
  --text-4:    #8C8A83;
  --rule:      rgba(240, 238, 233, 0.12);
  --rule-soft: rgba(240, 238, 233, 0.06);
  --rule-hard: rgba(240, 238, 233, 0.24);
  --panel:     rgba(240, 238, 233, 0.028);
  --panel-2:   rgba(240, 238, 233, 0.05);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.91rem + 0.2vw,  1.05rem);
  --step-1:  clamp(1.06rem, 1.0rem + 0.3vw,   1.22rem);
  --step-2:  clamp(1.25rem, 1.13rem + 0.6vw,  1.6rem);
  --step-3:  clamp(1.6rem, 1.35rem + 1.2vw,   2.4rem);
  --step-4:  clamp(2.1rem, 1.6rem + 2.3vw,    3.6rem);
  --step-5:  clamp(2.4rem, 1.6rem + 3.4vw,    4.6rem);
  --step-6:  clamp(3.1rem, 1.6rem + 6.6vw,    8rem);

  --gutter:  clamp(20px, 5vw, 64px);
  --maxw:    1320px;
  --section: clamp(88px, 11vw, 168px);
  --section-sm: clamp(56px, 7vw, 104px);
  --nav-h:   72px;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Blok odwrócony: kość na onyksie. Przemapowanie tokenów, nie osobny zestaw reguł. */
.invert {
  --bg:        var(--bone);
  --text:      var(--onyx);
  --text-2:    #45443F;
  --text-3:    #56554F;
  --text-4:    #6F6D66;
  --rule:      rgba(13, 13, 12, 0.14);
  --rule-soft: rgba(13, 13, 12, 0.07);
  --rule-hard: rgba(13, 13, 12, 0.3);
  --panel:     rgba(13, 13, 12, 0.035);
  --panel-2:   rgba(13, 13, 12, 0.06);
  background: var(--bg);
  color: var(--text);
}

/* ---------- 02 · Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
summary::-webkit-details-marker { display: none; }

::selection { background: var(--bone); color: var(--onyx); }
.invert ::selection { background: var(--onyx); color: var(--bone); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Ziarno — cienka warstwa materiału na całym dokumencie. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- 03 · Typografia ---------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display   { font-size: var(--step-6); }
.title-xl  { font-size: var(--step-5); }
.title     { font-size: var(--step-4); letter-spacing: -0.032em; line-height: 1.06; }
.title-sm  { font-size: var(--step-3); letter-spacing: -0.028em; line-height: 1.12; }
.title-xs  { font-size: var(--step-2); letter-spacing: -0.022em; line-height: 1.2; font-weight: 300; }

.lead {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--text-2);
  font-weight: 300;
  max-width: 62ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }
p + p { margin-top: 1.1em; }

.muted   { color: var(--text-3); }
.quiet   { color: var(--text-4); }
.strong  { color: var(--text); font-weight: 400; }

/* Fraza wyróżniona: nie kolorem, lecz zmianą klasy optycznej. */
.mark {
  color: var(--text);
  font-weight: 300;
  position: relative;
}
.mark-underline {
  /* Kazdy zawiniety wiersz dostaje wlasna kreske, nie tylko ostatni. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 1px;
  transition: background-size 1.1s var(--ease-expo);
}
.is-inview .mark-underline { background-size: 100% 1px; }

/* Śródtytuł zapowiadający listę. Zwykły nagłówek zdaniowy, nie etykieta wersalikami. */
.sub-h {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 52ch;
  text-wrap: pretty;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.note {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--text-4);
  max-width: 74ch;
}

/* ---------- 04 · Układ ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 960px; }

.section {
  padding-block: var(--section);
  position: relative;
  background: var(--bg);
  color: var(--text);
}
.section--sm { padding-block: var(--section-sm); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section + .section { border-top: 1px solid var(--rule-soft); }

.rule { height: 1px; background: var(--rule); border: 0; }
.rule--strong { background: var(--rule-hard); }

.stack   { display: grid; gap: clamp(16px, 2vw, 26px); }
.stack-s { display: grid; gap: 12px; }
.stack-l { display: grid; gap: clamp(32px, 4vw, 56px); }

/* Nagłówek sekcji: numer + tytuł + wprowadzenie, rozdzielone kreską włosową. */
.head {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  padding-top: clamp(20px, 2.6vw, 34px);
  border-top: 1px solid var(--rule);
  margin-bottom: clamp(40px, 5vw, 76px);
}
.head__title { max-width: 20ch; }
.head__body { display: grid; gap: 18px; }
.head--center { text-align: center; justify-items: center; }
.head--center .head__title { max-width: 26ch; margin-inline: auto; }

/* ---------- 05 · Przyciski ------------------------------------------------ */
.btn {
  --btn-fg: var(--onyx);
  --btn-bg: var(--bone);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 30px;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fg);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease-expo);
}
.btn:hover { color: var(--btn-bg); }
.btn:hover::before { transform: scaleY(1); }
.btn__arrow { transition: transform .5s var(--ease-expo); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--ghost {
  --btn-fg: var(--text);
  --btn-bg: transparent;
  border-color: var(--rule-hard);
}
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }

.btn--lg { padding: 21px 38px; font-size: 0.92rem; }
.btn--block { width: 100%; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Odnośnik tekstowy z podkreśleniem rysowanym od lewej. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: color .35s var(--ease), background-size .5s var(--ease-expo);
}
.link:hover {
  color: var(--text);
  background-size: 0% 1px;
  background-position: 100% 100%;
}

/* ---------- 06 · Nawigacja ------------------------------------------------ */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  z-index: 1001;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--bone);
  opacity: .8;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(13, 13, 12, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--rule-soft);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-hard);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 400;
  flex: none;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.brand:hover .brand__mark { background: var(--bone); color: var(--onyx); }
.brand__text { display: grid; line-height: 1.25; }
.brand__name { font-size: 0.9rem; font-weight: 400; letter-spacing: -0.01em; }
.brand__role { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-4); white-space: nowrap; }

.nav__links { display: none; align-items: center; gap: clamp(14px, 1.7vw, 24px); }
/* Po dodaniu linku do drugiej sciezki pasek zrobil sie ciasny i etykiety
   pekaly na dwa wiersze. Nie moga sie lamac. */
.nav__link {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding-block: 6px;
  position: relative;
  white-space: nowrap;
  transition: color .35s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s var(--ease-expo);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__link.is-active { color: var(--text); }

/* Link do drugiej sciezki oferty. Odcieta kropka odroznia go od kotwic do sekcji
   tej samej strony, ktore stoja obok. */
.nav__link--page { color: var(--text-2); display: inline-flex; align-items: center; gap: 9px; }
.nav__link--page::before { content: ""; width: 3px; height: 3px; background: currentColor; flex: none; }
.nav__link--page:hover { color: var(--text); }

/* Jedno zdanie kierujace zabladzonego odbiorce, bez odbierania pierwszenstwa
   glownej ofercie. Celowo nie jest przyciskiem. */
.hero__route { margin-top: 22px; font-size: 0.82rem; color: var(--text-3); }
.hero__route a { color: var(--text); border-bottom: 1px solid var(--rule-hard); padding-bottom: 1px; }
.hero__route a:hover { border-bottom-color: currentColor; }

/* Zapewnienia w momencie wysylki. Zbijaja wahanie tam, gdzie ono realnie
   wystepuje — przy przycisku, nie na wejsciu do formularza. */
.assure { display: grid; gap: 7px; margin: 22px 0 0; }
.assure li { position: relative; padding-left: 20px; font-size: 0.78rem; color: var(--text-3); line-height: 1.5; }
.assure li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--text-4); }

.nav__cta { display: none; }
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}

/* Przełącznik menu — dwie kreski zamieniające się w krzyż. */
.burger {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  gap: 0;
  border: 1px solid var(--rule-hard);
  position: relative;
  flex: none;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span {
  position: absolute;
  left: 13px;
  width: 20px; height: 1px;
  background: currentColor;
  transition: transform .45s var(--ease-expo), opacity .3s;
}
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
.burger.is-open span:nth-child(1) { transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: rotate(-45deg); }

.menu {
  visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--onyx);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: grid;
  align-content: space-between;
  gap: 32px;
  clip-path: inset(0 0 100% 0);
  overflow-y: auto;
  /* visibility z opóźnieniem: menu znika z kolejności tabulacji dopiero po animacji */
  transition: clip-path .7s var(--ease-expo), visibility 0s linear .7s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s, 0s; }
@media (min-width: 1000px) { .menu { display: none; } }
.menu__list { display: grid; gap: 4px; }
.menu__item { border-bottom: 1px solid var(--rule-soft); }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 18px;
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  font-weight: 200;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-4);
  font-weight: 400;
}
.menu__foot { display: grid; gap: 18px; }

/* ---------- 07 · Hero ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + clamp(32px, 6vh, 76px));
  padding-bottom: clamp(28px, 4vh, 52px);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  filter: contrast(1.04) saturate(1.06) brightness(.82);
  transform: scale(1.08);
  animation: heroPan 2.4s var(--ease-expo) forwards;
}
@keyframes heroPan { to { transform: scale(1); } }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, var(--onyx) 0%, rgba(13,13,12,.93) 32%, rgba(13,13,12,.52) 60%, rgba(13,13,12,.2) 100%),
    linear-gradient(to top, var(--onyx) 2%, rgba(13,13,12,0) 42%),
    linear-gradient(to bottom, rgba(13,13,12,.85) 0%, rgba(13,13,12,0) 30%);
}
@media (max-width: 860px) {
  .hero__media img { object-position: 68% 28%; filter: contrast(1.04) saturate(1.04) brightness(.62); }
  .hero__scrim { background: linear-gradient(to top, var(--onyx) 12%, rgba(13,13,12,.72) 55%, rgba(13,13,12,.6) 100%); }
}

.hero__grid { display: grid; gap: clamp(24px, 3.4vw, 44px); }
/* 62ch to dobra miara dla tekstu, ale para przyciskow sie w niej nie miescila
   i zawijala na dwa wiersze. Akapity maja wlasne ograniczenia (.lead, .note),
   wiec poszerzenie kolumny nie psuje dlugosci wiersza. */
.hero__body { max-width: 72ch; display: grid; gap: clamp(14px, 1.8vw, 22px); }
.hero__title { font-size: var(--step-5); }
.hero__title .sub {
  display: block;
  color: var(--text-3);
  font-size: 0.5em;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-top: 0.35em;
}
.hero__note { font-size: var(--step--1); color: var(--text-4); }

/* Wiersz tytułu wjeżdża zza maski.
   Interlinia (1.04) jest ciaśniejsza niż krój (asc+desc ≈ 1.18 em), więc ogonki
   liter g, y, ą, ę wychodziły poza maskę i były obcinane. Dopełnienie poszerza
   obszar przycięcia w dół, a ujemny margines je cofa — odstępy bez zmian. */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.line > span {
  display: block;
  /* Musi być więcej niż 100%, inaczej góra tekstu wystaje w poszerzonej masce. */
  transform: translateY(120%);
  animation: lineUp 1.05s var(--ease-expo) forwards;
}
@keyframes lineUp { to { transform: translateY(0); } }

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .9s var(--ease-expo) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Pasek faktów pod hero — siatka rozdzielona kreskami. */
.facts {
  display: grid;
  border-top: 1px solid var(--rule);
  gap: 0;
}
@media (min-width: 760px) {
  .facts { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .facts__item + .facts__item { border-left: 1px solid var(--rule); }
}
.facts__item {
  padding: 20px clamp(14px, 2vw, 26px) 6px 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
@media (min-width: 760px) { .facts__item + .facts__item { padding-left: clamp(18px, 2.4vw, 30px); } }
@media (max-width: 759px) { .facts__item + .facts__item { border-top: 1px solid var(--rule-soft); } }
.facts__k { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-4); }
.facts__v { font-size: var(--step--1); color: var(--text-2); line-height: 1.45; }

/* ---------- 08 · Ujawnianie przy przewijaniu ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .95s var(--ease-expo), transform .95s var(--ease-expo);
  transition-delay: var(--d, 0ms);
}
.reveal.is-inview { opacity: 1; transform: none; }

.reveal-mask { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-expo); transition-delay: var(--d, 0ms); }
.reveal-mask.is-inview { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .line > span, .fade-up { opacity: 1; transform: none; clip-path: none; }
  .reveal-mask { clip-path: none; }
}

/* ---------- 09 · Listy i siatki ------------------------------------------ */
.list { display: grid; gap: 2px; }
.list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-block: 11px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--text-2);
  font-size: var(--step--1);
  line-height: 1.55;
}
.list li::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--text-4);
  transform: translateY(-4px);
}
.list--check li::before {
  content: "";
  width: 9px; height: 9px;
  border: 1px solid var(--text-4);
  transform: translateY(0);
}
.list--num { counter-reset: l; }
.list--num li::before {
  counter-increment: l;
  content: counter(l, decimal-leading-zero);
  width: auto; height: auto;
  background: none;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-4);
  transform: none;
}
.list--cols { }
@media (min-width: 760px) {
  .list--cols { grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 3vw, 48px); }
}

.grid { display: grid; gap: clamp(20px, 2.4vw, 34px); }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .split--wide-l { grid-template-columns: 1.25fr 1fr; }
  .split--wide-r { grid-template-columns: 1fr 1.25fr; }
  .split--sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* ---------- 10 · Karty ---------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  display: grid;
  gap: 14px;
  align-content: start;
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease-expo);
}
.card:hover { background: var(--panel-2); border-color: var(--rule); }
.card__n {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--text-4);
}
.card__title { font-size: var(--step-2); font-weight: 200; letter-spacing: -0.024em; line-height: 1.15; }
.card__body { font-size: var(--step--1); color: var(--text-2); line-height: 1.62; }
.card--flat { background: none; border: 0; border-top: 1px solid var(--rule); padding: clamp(20px,2.2vw,28px) 0 0; }
.card--flat:hover { background: none; }

/* Kafel z dużą liczbą — wynik kampanii. */
.stat {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(24px, 2.8vw, 40px);
  border: 1px solid var(--rule);
  background: var(--panel);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.2s var(--ease-expo);
}
.stat.is-inview::after { transform: scaleX(1); }
.stat__k { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-4); }
.stat__v {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.stat__v small { font-size: 0.42em; letter-spacing: -0.02em; color: var(--text-3); }
.stat__d { font-size: var(--step--1); color: var(--text-2); }

/* ---------- 11 · Kroki (sticky index + treść) ---------------------------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.step {
  display: grid;
  gap: clamp(14px, 2vw, 26px);
  padding-block: clamp(30px, 3.6vw, 52px);
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
@media (min-width: 860px) {
  .step {
    grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: clamp(24px, 3.6vw, 60px);
  }
}
.step__n {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-4);
  padding-top: 8px;
  transition: color .5s var(--ease);
}
.step:hover .step__n { color: var(--text); }
.step__title { font-size: var(--step-3); font-weight: 200; letter-spacing: -0.03em; line-height: 1.1; }
.step__body { display: grid; gap: 14px; color: var(--text-2); font-size: var(--step--1); line-height: 1.65; }

/* Oś czasu z pionową kreską. */
.timeline { display: grid; gap: 0; }
.tl {
  position: relative;
  padding: clamp(26px, 3vw, 40px) 0 clamp(26px, 3vw, 40px) clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: 14px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
}
.tl::after {
  content: "";
  position: absolute;
  left: -3px; top: clamp(30px, 3.2vw, 46px);
  width: 7px; height: 7px;
  background: var(--bg);
  border: 1px solid var(--text-3);
}
.tl__k { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-4); }
.tl__title { font-size: var(--step-2); font-weight: 200; letter-spacing: -0.024em; }

/* ---------- 12 · Cytat, wideo, media ------------------------------------- */
.quote {
  font-size: var(--step-3);
  font-weight: 200;
  line-height: 1.32;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}
.quote--sm { font-size: var(--step-2); line-height: 1.42; }
.cite {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--step--1);
  color: var(--text-3);
  font-style: normal;
}
.cite::before { content: ""; width: 26px; height: 1px; background: var(--rule-hard); flex: none; }

.media {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
  border: 1px solid var(--rule-soft);
}
.media img, .media video { width: 100%; display: block; }
.media--portrait { aspect-ratio: 3 / 4; }
.media--portrait img { height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 10; }
.media--wide img { height: 100%; object-fit: cover; }
.media img { filter: contrast(1.03) saturate(1.04); transition: filter .9s var(--ease), transform 1.2s var(--ease-expo); }
.media:hover img { filter: contrast(1.02) saturate(1.08) brightness(1.03); transform: scale(1.03); }

.player {
  position: relative;
  background: #000;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 9;
}
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* Materiały nagrane telefonem są pionowe. Kadr 16:9 obcinał im głowę. */
.player--portrait {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  width: 100%;
}
.player__poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.76) saturate(1.02);
  transition: opacity .6s var(--ease);
}
.player__btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* Bez tego dwa wiersze siatki rozciagaja sie na cala wysokosc i ikona
     ladowala w gornej polowie, a podpis w dolnej. */
  align-content: center;
  gap: 14px;
  color: var(--bone);
  transition: opacity .5s var(--ease);
}
/* Kadr pod przyciskiem bywa jasny i ruchliwy — bez tego podkladu ikona
   i podpis gubia sie w tle. */
.player__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(13,13,12,.58) 0%, rgba(13,13,12,.3) 45%, rgba(13,13,12,0) 72%);
  pointer-events: none;
}
.player__btn i, .player__btn span { position: relative; }
.player__btn i {
  width: 76px; height: 76px;
  border: 1px solid rgba(240,238,233,.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease-expo);
}
.player__btn i::after {
  content: "";
  border-left: 12px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 4px;
}
.player__btn:hover i { background: var(--bone); color: var(--onyx); transform: scale(1.06); }
.player--portrait .player__btn i { width: 62px; height: 62px; }
.player__btn span { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(13,13,12,.9); }
.player.is-playing .player__poster,
.player.is-playing .player__btn { opacity: 0; pointer-events: none; }

/* Zrzut ekranu w ramce — dowód, nie dekoracja. */
.shot {
  border: 1px solid var(--rule);
  background: var(--graphite);
  padding: 10px;
}
.shot img { width: 100%; }
.shot figcaption {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 12px 4px 2px;
}

/* ---------- 13 · Marquee -------------------------------------------------- */
.marquee {
  --dur: 42s;
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: clamp(16px, 2vw, 26px);
  -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);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide var(--dur) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding-right: clamp(28px, 4vw, 60px);
}
.marquee__item {
  font-size: var(--step-2);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  white-space: nowrap;
}
.marquee__item::after { content: ""; width: 5px; height: 5px; background: var(--text-4); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 14 · Akordeon ------------------------------------------------- */
.acc { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule-soft); }
.acc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 20px;
  align-items: center;
  text-align: left;
  padding-block: clamp(20px, 2.2vw, 28px);
  font-size: var(--step-1);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text-2);
  transition: color .4s var(--ease);
}
.acc__btn:hover { color: var(--text); }
.acc__btn[aria-expanded="true"] { color: var(--text); }
.acc__icon {
  position: relative;
  width: 14px; height: 14px;
  justify-self: end;
  flex: none;
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform .5s var(--ease-expo), opacity .3s;
}
.acc__icon::before { inset: 6px 0 auto; height: 1px; }
.acc__icon::after  { inset: 0 6px auto; width: 1px; height: 14px; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(90deg); opacity: 0; }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease-expo);
}
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner > div {
  padding-bottom: clamp(22px, 2.4vw, 32px);
  max-width: 74ch;
  color: var(--text-2);
  font-size: var(--step--1);
  line-height: 1.7;
  display: grid;
  gap: 12px;
}

/* Rozwijana transkrypcja. */
.disclose summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-4);
  padding-block: 10px;
  transition: color .35s var(--ease);
}
.disclose summary:hover { color: var(--text); }
.disclose summary::after { content: "+"; font-size: 0.9rem; }
.disclose[open] summary::after { content: "–"; }
.disclose__body {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  font-size: var(--step--1);
  color: var(--text-3);
  line-height: 1.7;
  max-width: 70ch;
}

/* ---------- 15 · Formularze ---------------------------------------------- */
.form {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: clamp(24px, 3.2vw, 52px);
  display: grid;
  gap: clamp(22px, 2.4vw, 32px);
}
.field { display: grid; gap: 10px; }
.field > label, .fieldset__legend {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 400;
}
.field__hint { font-size: var(--step--1); color: var(--text-4); line-height: 1.55; }
.opt { text-transform: none; letter-spacing: 0.02em; color: var(--text-4); font-size: 0.68rem; }

.input, .select, .textarea {
  width: 100%;
  padding: 15px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-hard);
  color: var(--text);
  font-size: var(--step-0);
  font-weight: 300;
  transition: border-color .4s var(--ease);
  border-radius: 0;
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-bottom-color: var(--text); }
.textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 8px center, right 3px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}
.select option { background: var(--graphite); color: var(--bone); }
.invert .select option { background: #fff; color: var(--onyx); }

.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }

/* Odpowiedź jako klikalna płyta, nie okrągły radio button. */
.choice {
  display: grid;
  gap: 8px;
}
.choice__opt {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 16px;
  border: 1px solid var(--rule-soft);
  background: transparent;
  cursor: pointer;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--text-2);
  transition: border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.choice__opt:hover { border-color: var(--rule-hard); color: var(--text); }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  width: 16px; height: 16px;
  border: 1px solid var(--text-4);
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: border-color .3s, background .3s;
}
.choice__box::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--onyx);
  transform: scale(0);
  transition: transform .3s var(--ease-expo);
}
.choice__opt input:checked ~ .choice__box { background: var(--bone); border-color: var(--bone); }
.choice__opt input:checked ~ .choice__box::after { transform: scale(1); }
.choice__opt:has(input:checked) { border-color: var(--rule-hard); background: var(--panel-2); color: var(--text); }
.choice__opt input:focus-visible ~ .choice__box { outline: 2px solid currentColor; outline-offset: 2px; }
@media (min-width: 700px) { .choice--2 { grid-template-columns: 1fr 1fr; } }

/* Kreator: pasek etapów + panele. */
.wizard { display: grid; gap: clamp(24px, 3vw, 40px); }
.wsteps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-top: 1px solid var(--rule);
}
.wstep {
  padding-top: 14px;
  display: grid;
  gap: 6px;
  position: relative;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
  transition: color .4s var(--ease);
}
.wstep::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .7s var(--ease-expo);
}
.wstep.is-done::before, .wstep.is-current::before { transform: scaleX(1); }
.wstep.is-current, .wstep.is-done { color: var(--text); }
.wstep b { font-weight: 400; }
.wstep span { display: none; }
@media (min-width: 620px) { .wstep span { display: block; font-size: 0.68rem; letter-spacing: 0.02em; text-transform: none; color: inherit; } }

.panel[hidden] { display: none; }
.panel { display: grid; gap: clamp(22px, 2.6vw, 32px); animation: panelIn .6s var(--ease-expo); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.panel__head { display: grid; gap: 10px; }
.form__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }

.price-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
}
@media (min-width: 700px) { .price-grid { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.price {
  padding: clamp(18px, 2.2vw, 26px);
  display: grid;
  gap: 8px;
  align-content: start;
}
@media (min-width: 700px) { .price + .price { border-left: 1px solid var(--rule); } }
@media (max-width: 699px) { .price + .price { border-top: 1px solid var(--rule); } }
.price__k { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-4); }
.price__v { font-size: var(--step-2); font-weight: 200; letter-spacing: -0.02em; }

.form__consent { font-size: 0.76rem; color: var(--text-4); line-height: 1.6; }
.form__consent a { border-bottom: 1px solid var(--rule-hard); }
.error { font-size: 0.76rem; color: var(--text); border-left: 1px solid var(--text); padding-left: 12px; }
.error[hidden] { display: none; }

.is-invalid { border-bottom-color: var(--text) !important; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.result {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 3vw, 46px);
  border: 1px solid var(--rule-hard);
  background: var(--panel-2);
}
.result[hidden] { display: none; }

/* ---------- 16 · Stopka i pasy ------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 150px);
  text-align: center;
  border-top: 1px solid var(--rule);
}
.cta-band__inner {
  display: grid;
  /* minmax(0,1fr) — bez tego długi przycisk rozpycha kolumnę ponad szerokość kontenera */
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 2.6vw, 34px);
  justify-items: center;
}
.cta-band__inner > * { max-width: 100%; }
.cta-band__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}

.footer {
  padding-block: clamp(52px, 6vw, 84px) clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: clamp(32px, 4vw, 52px);
}
.footer__top { display: grid; gap: clamp(28px, 3.4vw, 44px); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__k { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-4); }
.footer__link { font-size: 0.88rem; color: var(--text-3); transition: color .35s var(--ease); width: fit-content; }
.footer__link:hover { color: var(--text); }
.footer__mail {
  font-size: var(--step-2);
  font-weight: 200;
  letter-spacing: -0.02em;
  width: fit-content;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .6s var(--ease-expo);
}
.footer__mail:hover { background-size: 100% 1px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--rule-soft);
  font-size: 0.72rem;
  color: var(--text-4);
}

/* Belka mobilna — dostępna zawsze, znika przy stopce. */
.dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 900;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(13,13,12,.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--rule-soft);
  transform: translateY(110%);
  transition: transform .55s var(--ease-expo);
}
.dock.is-visible { transform: none; }
@media (min-width: 1000px) { .dock { display: none; } }

/* Baner zgód. */
.consent {
  position: fixed;
  z-index: 1002;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  max-width: 460px;
  padding: 24px;
  background: var(--graphite);
  border: 1px solid var(--rule);
  display: grid;
  gap: 16px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease-expo);
}
.consent.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.consent p { font-size: 0.78rem; color: var(--text-3); line-height: 1.6; }
/* Tytuł banera jest jego dostępną nazwą (aria-labelledby) — musi odstawać od treści. */
.consent .consent__title { font-size: 0.9rem; color: var(--text); letter-spacing: -0.01em; margin-bottom: 2px; }
.consent a { border-bottom: 1px solid var(--rule-hard); }
.consent__row { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { padding: 12px 22px; font-size: 0.72rem; }
/* Na mobile baner musi stac nad przyklejona belka CTA, nie na niej. */
@media (max-width: 999px) { .consent { bottom: calc(var(--gutter) + 78px); } }

/* ---------- 17 · Tekst ciągły (polityka prywatności) --------------------- */
.prose { max-width: 76ch; display: grid; gap: 20px; color: var(--text-2); }
.prose h2 { font-size: var(--step-3); margin-top: 1.4em; }
.prose h3 { font-size: var(--step-2); font-weight: 300; margin-top: .8em; }
.prose ul { display: grid; gap: 8px; }
/* Treść w tych <li> to zwykły tekst z linkami i wyróżnieniami, bez opakowania.
   Przy siatce każdy element inline stawał się osobnym polem i lądował w kolumnie
   znacznika, łamiąc się po jednym znaku. Znacznik jest więc pozycjonowany absolutnie. */
.prose ul li { position: relative; padding-left: 26px; font-size: var(--step--1); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 10px;
  height: 1px;
  background: var(--text-4);
}
.prose a { border-bottom: 1px solid var(--rule-hard); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.prose th { font-weight: 400; color: var(--text); }
.prose table a { overflow-wrap: break-word; }
/* Dwukolumnowa tabela klucz–wartość nie zmieści się obok siebie na telefonie.
   Poniżej 560 px każdy wiersz układa się pionowo. */
@media (max-width: 560px) {
  .prose table, .prose tbody, .prose tr, .prose th, .prose td { display: block; width: 100%; }
  .prose tr { border-bottom: 1px solid var(--rule-soft); padding-block: 10px; }
  .prose th { padding: 0 0 2px; border-bottom: 0; color: var(--text-4); font-size: 0.72rem; }
  .prose td { padding: 0; border-bottom: 0; }
}

/* ---------- 18 · Narzędzia ----------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 1100;
  padding: 12px 20px;
  background: var(--bone);
  color: var(--onyx);
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.center { text-align: center; }
.mw-sm { max-width: 52ch; }
.mw-md { max-width: 66ch; }
.mw-lg { max-width: 78ch; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.mt-m { margin-top: clamp(20px, 2.4vw, 32px); }
.nowrap { white-space: nowrap; }

@media print {
  body::after, .nav, .dock, .consent, .progress, .hero__media, .hero__scrim { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Atrybut hidden musi wygrywać z display:grid komponentów. */
[hidden] { display: none !important; }

/* Grupa odpowiedzi bez wyboru po próbie przejścia dalej. */
[data-required-group].is-missing .choice__opt { border-color: var(--rule-hard); }
[data-required-group].is-missing > .fieldset__legend,
[data-required-group].is-missing > legend { color: var(--text); }
[data-required-group].is-missing::after {
  content: "Wybierz jedną odpowiedź.";
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ---------- 19 · Dokument prawny ----------------------------------------- */
/* Długie adresy (facebook.com/legal/controller_addendum) rozpychały siatkę
   na telefonie — element siatki musi móc zejść poniżej swojej szerokości min-content. */
.legal { display: grid; gap: clamp(32px, 4vw, 64px); }
.legal > * { min-width: 0; }
.legal a, .prose a { overflow-wrap: break-word; }
@media (min-width: 1000px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .toc { position: sticky; top: calc(var(--nav-h) + 40px); max-height: calc(100vh - var(--nav-h) - 80px); overflow-y: auto; }
}
.toc { display: grid; gap: 2px; border-top: 1px solid var(--rule); padding-top: 16px; }
.toc__k { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-4); margin-bottom: 8px; }
.toc a {
  font-size: 0.82rem;
  color: var(--text-4);
  padding-block: 7px;
  border-bottom: 1px solid var(--rule-soft);
  transition: color .3s var(--ease), padding-left .35s var(--ease);
}
.toc a:hover { color: var(--text); padding-left: 6px; }
.legal__section { padding-top: clamp(28px, 3.4vw, 44px); }
.legal__section + .legal__section { border-top: 1px solid var(--rule-soft); margin-top: clamp(28px, 3.4vw, 44px); }
.legal__n { font-size: 0.66rem; letter-spacing: 0.24em; color: var(--text-4); }

@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding-inline: 24px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
}

/* Znak firmowy w stopce: prawdziwe logo zamiast inicjalow, barwione maska. */
.brand__mark--logo {
  border: 0;
  width: 58px;
  height: 40px;
  background: currentColor;
  -webkit-mask: url("../img/mm-logo.svg") no-repeat center / contain;
  mask: url("../img/mm-logo.svg") no-repeat center / contain;
  transition: opacity .4s var(--ease);
}
.brand:hover .brand__mark--logo { background: currentColor; opacity: .68; }

/* W pasku nawigacji znak siedzi niżej — 72 px wysokości paska nie zniesie pełnej skali. */
.nav .brand__mark--logo { width: 48px; height: 33px; }
@media (max-width: 520px) { .nav .brand__mark--logo { width: 42px; height: 29px; } }


/* Przy 320 px rola marki (nowrap) razem ze znakiem i hamburgerem nie mieści
   się w pasku. Na najwęższych ekranach zostaje samo nazwisko. */
@media (max-width: 359px) {
  .brand__role { display: none; }
}
