/* =============================================================================
   GoHighAgency — landing „Test Recepcji Kliniki 360°”
   Samodzielny system wizualny wg GHA Brand Book:
     GHA Black #050607 · Panel Dark #090D12 · GHA Cyan #10C6F8 · White #FFFFFF
     Typografia: Inter. Dużo czerni, jasne bloki, cyan jako kierunkowskaz/akcent.
   ========================================================================== */

:root {
  color-scheme: dark;

  --black: #050607;
  --panel: #090d12;
  --panel-2: #0e151d;
  --panel-3: #131c26;

  --cyan: #10c6f8;
  --cyan-soft: rgba(16, 198, 248, 0.14);
  --cyan-line: rgba(16, 198, 248, 0.38);

  --white: #ffffff;
  --fog: #aeb9c4;
  --fog-2: #808b98;

  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);

  --ok: #37d39b;
  --err: #ff6b6b;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --section-y: clamp(56px, 9vw, 116px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* subtelna siatka techniczna — jak na stronach brand booka, ledwie widoczna */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 64px 100%,
    radial-gradient(1100px 600px at 78% -8%, rgba(16, 198, 248, 0.07), transparent 70%);
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--cyan); color: var(--black); }
[hidden] { display: none !important; }

/* --------------------------------------------------------------- helpers */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--panel); border-block: 1px solid var(--line); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  background: var(--cyan);
  color: var(--black);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 1.1rem;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
}
.kicker--plain::before { display: none; }

.h1 { font-size: clamp(1.7rem, 3.8vw, 2.75rem); line-height: 1.09; }
.h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
.h3 { font-size: clamp(1.12rem, 2vw, 1.45rem); }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--fog);
  max-width: 54ch;
}
.muted { color: var(--fog); }
.muted-2 { color: var(--fog-2); }
.tiny { font-size: 0.82rem; line-height: 1.5; }

.section-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 0.8rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--cyan);
  --btn-fg: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0.8em 1.6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius-sm);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease),
    border-color 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(16, 198, 248, 0.6);
}
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(135deg, #10c6f8, #57dcff);
  border-color: transparent;
}
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: var(--line-2);
}
.btn--outline:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: none; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fog);
  border-color: transparent;
  min-height: 44px;
  padding-inline: 0.6em;
}
.btn--ghost:hover { color: var(--white); box-shadow: none; transform: none; }
.btn--sm { min-height: 42px; padding: 0.55em 1.1em; font-size: 0.86rem; }
.btn--wide { width: 100%; }
.btn--lg { min-height: 58px; font-size: 1rem; padding-inline: 1.9em; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-note { font-size: 0.85rem; color: var(--fog-2); margin: 0.9rem 0 0; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--black) 82%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}
.site-header[data-scrolled="true"] { background: color-mix(in srgb, var(--black) 95%, transparent); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 44px;
}
/* Oficjalne logo GHA (transparentne PNG, dostarczone przez klienta). Bez tła,
   proporcje z pliku (width:auto) — nie modyfikujemy znaku. */
.brand__logo { height: 46px; width: auto; display: block; }
.site-footer__brand .brand__logo { margin-bottom: 0.2rem; }
.site-header .btn { flex-shrink: 0; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 92px);
}
.hero__title { margin: 0.1em 0 0.6em; max-width: 20ch; }
.hero__title .accent {
  display: block;
  margin-top: 0.12em;
  color: var(--white);
}
.hero__sub { max-width: 52ch; }
.hero .btn-row { margin-top: 1.8rem; }

/* panel poglądowy zamiast zdjęcia stockowego (brand book: ekrany/procesy).
   Bez wymyślonych metryk i wyników. */
.syspanel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.4vw, 26px);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.syspanel__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog-2);
  font-weight: 700;
}
.syspanel__bar::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  flex-shrink: 0;
}
.syspanel__row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.syspanel__row + .syspanel__row { margin-top: 8px; }
.syspanel__row--flag { border-color: var(--cyan-line); background: var(--cyan-soft); }
.syspanel__row svg { width: 20px; height: 20px; color: var(--fog-2); }
.syspanel__row--flag svg { color: var(--cyan); }
.syspanel__row b { font-weight: 600; font-size: 0.92rem; }
.syspanel__row small { display: block; color: var(--fog-2); font-size: 0.78rem; }
.syspanel__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog-2);
  white-space: nowrap;
}
.syspanel__row--flag .syspanel__tag { color: var(--cyan); }
.syspanel__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--fog-2);
}

/* --------------------------------------------------------------- feature grids */
.grid { display: grid; gap: clamp(14px, 2.4vw, 22px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.8vw, 30px);
}
.card__n {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.9rem;
}
.card h3 { font-size: 1.06rem; margin-bottom: 0.45rem; }
.card p { margin: 0; color: var(--fog); font-size: 0.95rem; }

.steps { counter-reset: step; }
.steps .card { position: relative; }
.steps .card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

/* case LuxDent */
.case {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.case__cell { background: var(--panel); padding: clamp(20px, 3vw, 34px); }
.case__value {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
}
.case__label { margin-top: 0.5rem; font-size: 0.92rem; color: var(--fog); }
.case__note { margin: 1rem 0 0; font-size: 0.82rem; color: var(--fog-2); }

/* limits / trust strip */
.note-strip {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: clamp(18px, 2.6vw, 26px);
}
.note-strip svg { width: 22px; height: 22px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.note-strip p { margin: 0; color: var(--fog); }

/* --------------------------------------------------------------- form / test */
.test-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.test-intro { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .test-intro { position: static; } }
.test-intro ul { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.test-intro li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--fog);
}
.test-intro li svg { width: 18px; height: 18px; color: var(--cyan); margin-top: 3px; }

.form-card {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 40px);
}

.progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.6rem;
}
.progress__step {
  flex: 1;
  height: 4px;
  border-radius: 100px;
  background: var(--line-2);
  transition: background 0.3s var(--ease);
}
.progress__step[data-on="true"] { background: var(--cyan); }
.progress__label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog-2);
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.fstep { display: none; }
.fstep[data-active="true"] { display: block; animation: fade 0.28s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
}
.field input[type="text"],
.field input[type="url"],
.field input[type="tel"],
.field input[type="email"] {
  background: var(--black);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  color: var(--white);
  min-height: 52px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.field input::placeholder { color: var(--fog-2); }
.field input:focus { outline: none; border-color: var(--cyan); }
.field[data-invalid="true"] input { border-color: var(--err); }
.field__hint { font-size: 0.8rem; color: var(--fog-2); }
.field__error { font-size: 0.82rem; color: #ff9a9a; min-height: 1em; }

fieldset { border: 0; margin: 0 0 20px; padding: 0; }
fieldset legend {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 10px;
  padding: 0;
}
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; flex: 1 1 auto; min-width: max-content; }
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fog);
  text-align: center;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}
.choice input:hover + span { border-color: var(--line-2); color: var(--white); }
.choice input:checked + span {
  border-color: var(--cyan);
  color: var(--white);
  background: var(--cyan-soft);
}
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
fieldset[data-invalid="true"] .choices { outline: 1px solid var(--err); outline-offset: 6px; border-radius: 4px; }

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.86rem;
  color: var(--fog);
  line-height: 1.5;
  cursor: pointer;
  margin-top: 4px;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--black);
  display: grid;
  place-content: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.check input::before {
  content: "";
  width: 11px;
  height: 11px;
  transform: scale(0);
  transition: transform 0.15s var(--ease);
  box-shadow: inset 1em 1em var(--black);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input:checked { background: var(--cyan); border-color: var(--cyan); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.check a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.check[data-invalid="true"] span { color: #ff9a9a; }

.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.form-actions .btn { flex: 1; }
.form-actions .btn--ghost { flex: 0 0 auto; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  font-size: 0.9rem;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
  margin-top: 16px;
}
.form__status[data-tone="error"] { border-color: var(--err); color: #ffd7d7; }
.form__status[data-tone="info"] { border-color: var(--line-2); color: var(--fog); }
.form__status[data-tone="success"] { border-color: var(--cyan-line); color: var(--white); }
.form__status a { color: var(--white); text-decoration: underline; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- result */
.result { display: none; }
.result[data-active="true"] { display: block; animation: fade 0.3s var(--ease); }
.result__head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.6rem; }
.result__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan-line);
  border-radius: 100px;
  padding: 5px 12px;
}
.result h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 0.5rem; }
.result__lead { color: var(--fog); margin-bottom: 1.6rem; }

.result__value {
  background: var(--panel-2);
  border: 1px solid var(--cyan-line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  margin-bottom: 1.6rem;
}
.result__value .num {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.result__value .formula { font-size: 0.9rem; color: var(--fog); margin-top: 0.5rem; }
.result__value .disclaimer { font-size: 0.8rem; color: var(--fog-2); margin: 0.7rem 0 0; }

.reco { list-style: none; margin: 0 0 1.7rem; padding: 0; display: grid; gap: 10px; }
.reco li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  color: var(--fog);
}
.reco li svg { width: 18px; height: 18px; color: var(--cyan); margin-top: 3px; }

.result__cta { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.result__free { margin: 1rem 0 0; font-size: 0.86rem; color: var(--fog-2); }
.result__email { margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.result__email .field { margin-bottom: 10px; }
.result__email-row { display: flex; gap: 10px; flex-wrap: wrap; }
.result__email-row .field { flex: 1 1 220px; margin: 0; }

/* --------------------------------------------------------------- final cta */
.final-cta { text-align: center; }
.final-cta .h2 { max-width: 20ch; margin: 0 auto 0.8rem; }

/* ----------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding-block: clamp(40px, 6vw, 64px) 28px;
}
.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer__brand { max-width: 34ch; }
.site-footer__brand p { color: var(--fog-2); font-size: 0.88rem; margin: 0.9rem 0 0; }
.site-footer h4 { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fog-2); margin-bottom: 0.8rem; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.site-footer nav a,
.site-footer nav span { color: var(--fog); font-size: 0.9rem; padding-block: 5px; transition: color 0.15s var(--ease); }
.site-footer nav a:hover { color: var(--white); }
.site-footer__bottom {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--fog-2);
  font-size: 0.82rem;
}

/* --------------------------------------------------------- cookie banner */
.cookie {
  position: fixed;
  left: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 250;
  max-width: 540px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  transform: translateY(180%);
  transition: transform 0.35s var(--ease);
  max-height: calc(100vh - 2 * clamp(12px, 3vw, 28px));
  overflow-y: auto;
}
.cookie[data-show="true"] { transform: translateY(0); }
.cookie__title { font-size: 1rem; margin: 0 0 8px; }
.cookie__text { font-size: 0.86rem; color: var(--fog); margin: 0 0 16px; line-height: 1.55; }
.cookie__text a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.cookie__row { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__row + .cookie__row { margin-top: 10px; }
.cookie__settings { margin: 4px 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cookie__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--panel);
}
.cookie__opt + .cookie__opt { border-top: 1px solid var(--line); }
.cookie__opt-name { display: block; font-weight: 600; font-size: 0.9rem; }
.cookie__opt-desc { display: block; font-size: 0.78rem; color: var(--fog-2); margin-top: 2px; }
.cookie__switch, .cookie__switch-input {
  --w: 42px; --h: 24px;
  flex-shrink: 0;
  width: var(--w);
  height: var(--h);
  border-radius: 100px;
  position: relative;
  border: 1px solid var(--line-2);
  background: var(--black);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.cookie__switch::after, .cookie__switch-input::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fog);
  transform: translateY(-50%);
  transition: transform 0.16s var(--ease), background 0.16s var(--ease);
}
.cookie__switch-input { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; }
.cookie__switch-input:checked { background: var(--cyan); border-color: var(--cyan); }
.cookie__switch-input:checked::after { transform: translateY(-50%) translateX(18px); background: var(--black); }
.cookie__switch-input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.cookie__switch--locked {
  background: color-mix(in srgb, var(--cyan) 45%, var(--black));
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--black));
  opacity: 0.7;
}
.cookie__switch--locked::after { transform: translateY(-50%) translateX(18px); background: var(--black); }

/* --------------------------------------------------------------- prose (legal) */
.prose { max-width: 70ch; }
.prose h2 { margin: 2em 0 0.5em; font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.prose h3 { margin: 1.5em 0 0.4em; font-size: 1.02rem; }
.prose p, .prose li { color: var(--fog); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; display: flex; flex-direction: column; gap: 0.35em; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--white); }

/* Wyróżnienie „do uzupełnienia” — używane w treści polityki prywatności,
   zarówno wewnątrz .prose jak i w banerze ostrzegawczym nad nią. */
mark {
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid var(--cyan-line);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 0.94em;
  font-weight: 600;
}

/* --------------------------------------------------------------- reveal fx */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }

/* --------------------------------------------------------------- breakpoints */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { max-width: 26ch; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .test-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 100%; }
  .choice { flex: 1 1 100%; }
  .syspanel__row { grid-template-columns: 20px 1fr; row-gap: 4px; }
  .syspanel__row .syspanel__tag { grid-column: 2; }
  .btn { font-size: 0.9rem; }
  .brand__logo { height: 36px; }
}
@media (max-width: 440px) {
  .site-header__inner { gap: 10px; }
  .site-header .btn--sm { padding: 0.5em 0.85em; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
