/* ==========================================================================
   SONIC AI — styles
   Mobile first · bez zewnętrznych fontów · bez frameworków
   ========================================================================== */

:root {
  /* Kolory */
  --bg: #121417;
  --bg-deep: #0e1012;
  --surface: #1a1d21;
  --surface-2: #20242a;
  --line: rgba(214, 190, 140, 0.11);
  --line-strong: rgba(214, 190, 140, 0.22);
  --text: #eeeae2;
  --text-2: #a09c93;
  --text-3: #8e8b83; /* było #75726b (3,5:1) — podniesione do WCAG AA 4,5:1 */
  --gold: #d2b67e;
  --gold-hi: #ebddb9;
  --gold-lo: #9a8150;
  --amber: #c99a45;
  --amber-bg: #17150f;

  /* Powierzchnie paneli (gradienty kart, terminal, pola formularzy) */
  --panel-top: #1a1d21;
  --panel-bottom: #15171a;
  --panel-bottom-2: #16181b;
  --terminal-top: #1b1e22;
  --field-bg: #0e1012;
  --card-bg: transparent;
  --partner-bg: transparent;

  /* Przyciski wypełnione złotem */
  --btn-bg: #d2b67e;
  --btn-bg-hover: #ebddb9;
  --on-gold: #17140d;

  /* Linie, poświaty, stany */
  --header-bg: rgba(18, 20, 23, 0.82);
  --ghost-bg: rgba(255, 255, 255, 0.015);
  --hover-bg: rgba(210, 182, 126, 0.04);
  --underline: rgba(210, 182, 126, 0.35);
  --selection: rgba(210, 182, 126, 0.35);
  --grid-line: rgba(214, 190, 140, 0.05);
  --glow: rgba(210, 182, 126, 0.07);
  --glow-strong: rgba(210, 182, 126, 0.08);
  --dashed: rgba(210, 182, 126, 0.45);
  --badge-border: rgba(210, 182, 126, 0.55);

  /* Wykres, paski i siatka kalkulatora */
  --chart-grid: rgba(214, 190, 140, 0.08);
  --chart-fill: #d2b67e;
  --track: rgba(255, 255, 255, 0.05);
  --cell-border: rgba(210, 182, 126, 0.35);
  --cell-hatch: rgba(210, 182, 126, 0.12);
  --swatch-border: rgba(210, 182, 126, 0.5);
  --swatch-hatch: rgba(210, 182, 126, 0.3);

  /* Blok ryzyka */
  --risk-border: rgba(201, 154, 69, 0.2);
  --risk-rule: rgba(201, 154, 69, 0.55);
  --risk-divider: rgba(201, 154, 69, 0.18);

  /* Cienie */
  --shadow-panel: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  --inset-hi: rgba(255, 255, 255, 0.04);
  --shadow-card: none;

  --search-cancel-filter: invert(0.7);
  --footer-bg: transparent;

  color-scheme: dark;

  /* Typografia */
  --font-display: ui-serif, "New York", "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Układ */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 124px);
  --header-h: 64px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* ==========================================================================
   Motyw jasny — nadpisuje wyłącznie tokeny (bez drugiego arkusza).
   Domyślny motyw (:root) pozostaje ciemny.
   ========================================================================== */
html[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f0e7;
  --bg-deep: #ece6d9;
  --surface: #fffdf8;
  --surface-2: #eae3d5;
  --line: rgba(110, 88, 50, 0.14);
  --line-strong: rgba(110, 88, 50, 0.26);
  --text: #1b1a17;
  --text-2: #5c574e;
  --text-3: #68635a;
  --gold: #7a5e2c;
  --gold-hi: #5a4520;
  --gold-lo: #d2be95;
  --amber: #a06e1e;
  --amber-bg: rgba(196, 146, 60, 0.09);

  --panel-top: #fffefa;
  --panel-bottom: #faf6ee;
  --panel-bottom-2: #faf6ee;
  --terminal-top: #fffefa;
  --field-bg: #ffffff;
  --card-bg: #fffdf8;
  --partner-bg: #eee9de;

  --btn-bg: #c2a46a;
  --btn-bg-hover: #b1945d;
  --on-gold: #17140d;

  --header-bg: rgba(246, 242, 234, 0.84);
  --ghost-bg: rgba(255, 255, 255, 0.55);
  --hover-bg: rgba(142, 110, 55, 0.06);
  --underline: rgba(122, 94, 44, 0.4);
  --selection: rgba(194, 164, 106, 0.35);
  --grid-line: rgba(122, 94, 44, 0.07);
  --glow: rgba(194, 164, 106, 0.1);
  --glow-strong: rgba(194, 164, 106, 0.12);
  --dashed: rgba(122, 94, 44, 0.4);
  --badge-border: rgba(122, 94, 44, 0.5);

  --chart-grid: rgba(122, 94, 44, 0.14);
  --chart-fill: #b1945d;
  --track: rgba(60, 45, 20, 0.08);
  --cell-border: rgba(122, 94, 44, 0.4);
  --cell-hatch: rgba(122, 94, 44, 0.12);
  --swatch-border: rgba(122, 94, 44, 0.55);
  --swatch-hatch: rgba(122, 94, 44, 0.3);

  --risk-border: rgba(160, 110, 30, 0.22);
  --risk-rule: rgba(160, 110, 30, 0.6);
  --risk-divider: rgba(160, 110, 30, 0.2);

  --shadow-panel: 0 12px 40px rgba(40, 32, 20, 0.06);
  --inset-hi: rgba(255, 255, 255, 0.8);
  --shadow-card: 0 12px 40px rgba(40, 32, 20, 0.06);

  --search-cancel-filter: none;
}

/* Header w jasnym motywie: zawsze z cienką dolną linią */
html[data-theme="light"] .site-header { border-bottom-color: var(--line); }

/* Stopka w jasnym motywie: świadomie ciemny, ciepły grafit —
   lokalnie przywraca ciemne tokeny, więc cała zawartość dziedziczy kolory. */
html[data-theme="light"] .site-footer {
  color-scheme: dark;
  --footer-bg: #1c1a16;
  --line: rgba(214, 190, 140, 0.13);
  --line-strong: rgba(214, 190, 140, 0.24);
  --text: #eeeae2;
  --text-2: #aaa69d;
  --text-3: #8e8b83;
  --gold: #d2b67e;
  --gold-hi: #ebddb9;
  color: var(--text);
  border-top-color: transparent;
}

/* Słowniczek w jasnym motywie: subtelny hover wiersza */
html[data-theme="light"] .gl-term { transition: border-color 0.2s ease; }
html[data-theme="light"] .gl-term:hover { border-bottom-color: var(--dashed); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

html.lang-pending body { opacity: 0; }

::selection { background: var(--selection); color: var(--text); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--btn-bg);
  color: var(--on-gold);
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.num { font-variant-numeric: tabular-nums lining-nums; }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.02em; }

/* Płynna zmiana motywu (bez „*”; wyłączana przez prefers-reduced-motion) */
body, .site-header::before, .snapshot, .proof, .partner, .riskblock, .contact, .site-footer,
.terminal, .sheet, .calc, .safety-card, .pp-card, .pp-network, .help-card,
.lang-switch, .theme-toggle, .input-wrap, .seg-options, .gl-search input,
.faq-item, .verify-item, .contact-link {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ---------- Typografia ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text);
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  line-height: 1.1;
}
h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 20px;
}

/* ---------- Przyciski i linki ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--on-gold); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: var(--ghost-bg); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-large { min-height: 58px; padding: 0 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-ext { width: 15px; height: 15px; flex: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.text-link:hover { color: var(--gold-hi); text-decoration-color: var(--gold-hi); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
/* Rozmycie na pseudo-elemencie: backdrop-filter na samym nagłówku
   tworzyłby kontener dla position: fixed i psuł menu mobilne. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.site-header.menu-open::before { background: var(--bg); }
.site-header.is-scrolled,
.site-header.menu-open { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  min-height: 44px;
}
.brand-mark { width: 28px; height: 28px; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  color: var(--text);
}

.nav { display: none; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--radius-s);
  transition: color 0.2s;
}
.nav-list a:hover { color: var(--text); }
.nav-list a[aria-current="true"] { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.lang-btn {
  min-width: 40px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color 0.2s, color 0.2s;
}
.lang-btn[aria-pressed="true"] { background: var(--surface-2); color: var(--gold-hi); }
.lang-btn:hover { color: var(--text); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle:hover { color: var(--gold-hi); border-color: var(--gold); }
.theme-toggle:focus-visible { border-radius: 999px; }
.theme-icon { width: 18px; height: 18px; pointer-events: none; }
.theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-sun { display: block; }
html[data-theme="light"] .theme-icon-moon { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: transparent;
}
.menu-icon { display: grid; gap: 6px; width: 18px; }
.menu-icon span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}
.mobile-menu nav { padding-block: 20px 40px; }
.mobile-list { margin-bottom: 28px; }
.mobile-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-list a[aria-current="true"] { color: var(--gold); }
html.menu-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 96px);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%);
}
.hero-inner {
  display: grid;
  gap: 48px;
}
.hero-title {
  font-size: clamp(2.45rem, 1.55rem + 3.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: 24px;
}
.hero-title span { display: block; }
.hero-copy .lead { max-width: 36em; color: var(--text); opacity: 0.86; }
.hero-sub {
  margin-top: 14px;
  max-width: 34em;
  color: var(--text-2);
}
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.hero-disclosure {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--text-3);
  max-width: 40em;
}

/* Terminal (panel w hero) */
.terminal {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background:
    radial-gradient(120% 80% at 100% 0%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--terminal-top), var(--panel-bottom));
  box-shadow:
    inset 0 1px 0 var(--inset-hi),
    var(--shadow-panel);
  padding: 20px;
  min-width: 0;
}
.terminal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.terminal-name {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.875rem;
}
.terminal-sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-hi);
  white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.terminal-chart {
  position: relative;
  padding-top: 18px;
}
.terminal-chart svg { width: 100%; height: auto; overflow: visible; }
.terminal-chart stop { stop-color: var(--chart-fill); }
.chart-grid line { stroke: var(--chart-grid); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.chart-dot { fill: var(--gold-hi); }
.chart-pulse { fill: var(--gold); opacity: 0; transform-origin: 480px 28.4px; transform-box: view-box; }
.terminal-chart figcaption {
  position: absolute;
  left: 0; top: 18px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

.terminal-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.terminal-metrics > div { padding: 16px 0 4px; }
.terminal-metrics > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.terminal-metrics dt { font-size: 0.75rem; color: var(--text-2); }
.terminal-metrics dd {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.35rem);
  line-height: 1.1;
  color: var(--text);
}
.terminal-metrics > div:first-child dd { color: var(--gold-hi); }
.terminal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

/* Orkiestracja wejścia hero (tylko z JS i bez reduced motion) */
.js .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .chart-area, .js .chart-dot { opacity: 0; }
.js.is-ready .chart-line { animation: draw 1.9s 0.2s var(--ease-out) forwards; }
.js.is-ready .chart-area { animation: fade 1.2s 1.1s ease forwards; }
.js.is-ready .chart-dot { animation: fade 0.4s 1.9s ease forwards; }
.js.is-ready .chart-pulse { animation: pulse 2.6s 2.1s ease-out infinite; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse {
  0% { opacity: 0.45; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(3.2); }
}

/* ---------- Snapshot (dane historyczne) ---------- */
.snapshot {
  border-block: 1px solid var(--line);
  background: var(--bg-deep);
  padding-block: clamp(40px, 6vw, 72px);
}
.snapshot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 28px;
}
.snapshot-title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}
.snapshot-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}
.snapshot-date time { color: var(--gold); }

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.metric {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px 12px 22px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.metric:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.metric dt { font-size: 0.875rem; color: var(--text-2); line-height: 1.35; }
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.metric:first-child .metric-value { color: var(--gold-hi); }

.snapshot-foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.snapshot-note {
  font-size: 0.8125rem;
  color: var(--text-2);
  max-width: 62em;
}

/* ---------- Sekcje ---------- */
.section { padding-block: var(--section-y); }
.section-tight { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }

/* Flow */
.flow {
  display: grid;
  gap: 0;
  position: relative;
}
.flow-step {
  position: relative;
  padding: 0 0 32px 48px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  /* węzeł */
  content: "";
  position: absolute;
  left: 11px; top: 5px;
  width: 11px; height: 11px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}
.flow-step::after {
  /* linia łącząca */
  content: "";
  position: absolute;
  left: 16px; top: 18px; bottom: -4px;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line-strong)) no-repeat;
  background-size: 100% 100%;
}
.flow-step:last-child::after { display: none; }
.flow-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}
.flow-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.flow-text { color: var(--text-2); margin-top: 4px; }

.js .flow[data-reveal] .flow-step::after { background-size: 100% 0%; transition: background-size 0.7s var(--ease-out); }
.js .flow[data-reveal] .flow-step::before { transform: scale(0.4); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.4s; }
.js .flow.is-in .flow-step::after { background-size: 100% 100%; }
.js .flow.is-in .flow-step::before { transform: none; opacity: 1; }
.js .flow.is-in .flow-step:nth-child(2)::before, .js .flow.is-in .flow-step:nth-child(1)::after { transition-delay: 0.2s; }
.js .flow.is-in .flow-step:nth-child(3)::before, .js .flow.is-in .flow-step:nth-child(2)::after { transition-delay: 0.45s; }
.js .flow.is-in .flow-step:nth-child(4)::before, .js .flow.is-in .flow-step:nth-child(3)::after { transition-delay: 0.7s; }

/* Dlaczego */
.why-grid {
  display: grid;
  border-top: 1px solid var(--line);
}
.why-cell {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.why-icon {
  width: 30px; height: 30px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-cell h3 { margin-bottom: 8px; }
.why-cell p { color: var(--text-2); max-width: 34em; }

/* Proof / Myfxbook */
.proof { background: var(--bg-deep); border-block: 1px solid var(--line); }
.proof-grid { display: grid; gap: 48px; }
.proof-copy h2 { margin-bottom: 22px; }
.proof-copy .lead { color: var(--text); opacity: 0.86; margin-bottom: 14px; }
.proof-copy > p:not(.lead):not(.eyebrow) { color: var(--text-2); max-width: 36em; }
.proof-copy .btn { margin-top: 30px; width: 100%; }
.checklist {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.checklist-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 12px; }
.checklist li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.checklist li + li { margin-top: 6px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.55em;
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

.sheet {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom-2));
  box-shadow: var(--shadow-card);
  padding: 20px;
  align-self: start;
  min-width: 0;
}
.sheet-head {
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.sheet-title { font-weight: 600; }
.sheet-date {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-2);
}
.sheet-date time { color: var(--gold); }
.sheet-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row dt { color: var(--text-2); font-size: 0.9375rem; }
.sheet-row dd { text-align: right; font-weight: 600; }
.sheet-row-bar dd.num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.1;
}
.sheet-row-bar:first-child dd.num { color: var(--gold-hi); }
.bar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--track);
  border-radius: 4px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  min-width: 3px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold));
  border-radius: 4px;
  transition: width 1.2s var(--ease-out);
}
.bar-muted span { background: var(--text-2); }
.js .sheet:not(.is-in) .bar span { width: 0; }
.sheet-scale {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
}

/* Amplify */
.amplify-grid { display: grid; gap: 44px; }
.amplify-copy h2 { margin-bottom: 22px; }
.amplify-copy .lead { color: var(--text); opacity: 0.86; margin-bottom: 14px; }
.amplify-copy > p:not(.lead):not(.eyebrow) { color: var(--text-2); max-width: 36em; }
.code-line {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.code-value {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 10px;
  border: 1px dashed var(--gold);
  border-radius: var(--radius-s);
  color: var(--gold-hi);
  user-select: all;
}
.verify-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.calc {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  min-width: 0;
}
.calc-field label, .seg legend {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  padding: 0;
}
.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--field-bg);
  transition: border-color 0.2s;
}
.input-wrap:focus-within { border-color: var(--gold); }
.input-prefix {
  padding-left: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-3);
}
.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 16px 0 8px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.input-wrap input:focus { outline: none; }
.calc-hint { margin-top: 6px; font-size: 0.75rem; color: var(--text-3); }

.seg { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.seg-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--field-bg);
}
.seg-option { position: relative; display: block; }
.seg-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.seg-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.seg-option input:checked + .seg-face { background: var(--btn-bg); color: var(--on-gold); }
.seg-option input:focus-visible + .seg-face { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.seg-option:hover input:not(:checked) + .seg-face { color: var(--text); }
.seg-captions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 8px;
  padding-inline: 4px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-3);
}
.seg-badge {
  justify-self: center;
  padding: 3px 9px;
  border: 1px solid var(--badge-border);
  border-radius: 999px;
  color: var(--gold-hi);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.calc-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.calc-out > div { padding-top: 16px; min-width: 0; }
.calc-out > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.calc-out dt { font-size: 0.75rem; color: var(--text-2); }
.calc-out dd {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.calc-alloc { color: var(--gold-hi); }

.alloc { margin-top: 22px; }
.alloc-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 12), 1fr);
  gap: 4px;
}
.alloc-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  border: 1px solid var(--cell-border);
  background: repeating-linear-gradient(135deg, var(--cell-hatch) 0 2px, transparent 2px 5px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.alloc-cell.is-own { background: var(--btn-bg); border-color: var(--btn-bg); }
.alloc-cell.is-off { opacity: 0; transform: scale(0.6); }
.alloc[data-state="std"] .alloc-cell.is-extra { display: none; }
.alloc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-2);
}
.alloc-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.sw-own { background: var(--btn-bg); }
.sw-amp { border: 1px solid var(--swatch-border); background: repeating-linear-gradient(135deg, var(--swatch-hatch) 0 2px, transparent 2px 4px); }

.calc-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
}
.calc-note-aff { color: var(--gold-hi); }
.calc-note-aff + .calc-note { margin-top: 8px; }

/* Jak zacząć */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold);
}
.step h3 { margin-bottom: 6px; font-size: 1.125rem; }
.step p { color: var(--text-2); max-width: 32em; }
.step .text-link { margin-top: 4px; }

.help-card {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  padding: 26px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background:
    radial-gradient(90% 120% at 0% 0%, var(--glow-strong), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-card);
}
.help-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.help-card p { color: var(--text-2); }

/* Bezpieczeństwo */
.safety-cards { display: grid; gap: 14px; }
.safety-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.safety-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 20px;
}
.safety-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.safety-card p { color: var(--text-2); }
.reg-data { margin-top: 18px; border-top: 1px solid var(--line); }
.reg-data > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.reg-data dt { color: var(--text-2); }
.reg-data dd { color: var(--gold-hi); }
.safety-note { margin-top: 14px; font-size: 0.875rem; color: var(--text) !important; }
.card-cta { margin-top: auto; padding-top: 24px; }
.btn-card { width: 100%; min-height: 48px; }
.card-hint { margin-bottom: 10px; font-size: 0.8125rem; color: var(--text-3) !important; }
.card-hint .mono { color: var(--text-2); }

.verify {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}
.verify-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.verify-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.verify-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  text-decoration: none;
  background: var(--card-bg);
  transition: border-color 0.2s, background-color 0.2s;
}
.verify-item:hover { border-color: var(--gold); background: var(--hover-bg); }
.verify-q { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.25; }
.verify-a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
}

@media (max-width: 399px) {
  .verify-list { grid-template-columns: 1fr; }
  .verify-item { flex-direction: row; align-items: center; min-height: 60px; }
}

/* Ważne: ryzyko CFD */
.riskblock {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--amber-bg);
  border-block: 1px solid var(--risk-border);
}
.riskblock-inner { display: grid; gap: 24px; }
/* Ikona jest dekoracją poza normalnym flow: miejsce na nią rezerwuje
   padding-left rodzica (26px ikona + 14px odstępu), więc nawet przy
   błędzie stylów/animacji nie może zająć wysokości sekcji. */
.riskblock-head { position: relative; min-height: 32px; padding-left: 40px; }
.riskblock-icon {
  position: absolute;
  left: 0; top: 6px;
  width: 26px; height: 26px;
  pointer-events: none;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.riskblock h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.4rem); }
.riskblock-body {
  max-width: 44rem;
  padding-left: 20px;
  border-left: 2px solid var(--risk-rule);
}
.riskblock-body p { color: var(--text-2); }
.riskblock-body p + p { margin-top: 14px; }
.riskblock-body strong { color: var(--text); font-weight: 600; }
.riskblock-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--text) !important;
}
.riskblock-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 18px !important;
}
.riskblock-more {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--risk-divider);
  display: grid;
  gap: 8px;
}
.riskblock-more li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-2);
}
.riskblock-more li::before {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 0; top: 0.72em;
  width: 10px; height: 1.5px;
  background: var(--amber);
}

/* Program partnerski */
.partner { background: var(--partner-bg); }
.pp-lead2 { margin-top: 14px; color: var(--text-2); max-width: 40em; }
.pp-cards { display: grid; gap: 12px; }
.pp-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  min-width: 0;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}
.pp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.pp-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
}
.pp-icon {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pp-card h3 { margin-bottom: 8px; font-size: 1.125rem; }
.pp-card p { color: var(--text-2); font-size: 0.9375rem; line-height: 1.55; }
.pp-note { margin-top: 14px; font-size: 0.8125rem; color: var(--text-3); }

.pp-network {
  margin-top: clamp(40px, 6vw, 64px);
  padding: 28px 22px 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background:
    radial-gradient(80% 120% at 100% 0%, var(--glow), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-card);
}
.pp-network-head { max-width: 40rem; margin-bottom: 28px; }
.pp-network-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.pp-network-head p { color: var(--text-2); }
.pp-flow .flow-step::before { background: var(--surface); }
.pp-flow .flow-step { padding-bottom: 24px; }
.pp-flow .flow-step:last-child { padding-bottom: 0; }
.pp-flow .flow-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
}
.pp-flow .flow-text { font-size: 0.9375rem; margin-top: 2px; }

.pp-benefit {
  display: grid;
  gap: 22px;
  margin-top: 16px;
  padding: 26px 22px;
  border: 1px dashed var(--dashed);
  border-radius: var(--radius-l);
}
.pp-benefit h3 { font-size: 1.125rem; margin-bottom: 8px; }
.pp-benefit-copy p { color: var(--text-2); }
.pp-sides { display: grid; gap: 10px; }
.pp-sides > div {
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--field-bg);
  border: 1px solid var(--line);
}
.pp-sides dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.pp-sides dd { color: var(--text); font-size: 0.9375rem; line-height: 1.45; }

.pp-cta { margin-top: 16px; }
.pp-actions { display: grid; gap: 10px; }
.pp-disclosure { margin-top: 14px; font-size: 0.8125rem; color: var(--text-3); max-width: 52em; }

/* Słowniczek */
.glossary { position: relative; }
.anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.gl-search { position: relative; max-width: 30rem; }
.gl-search-icon {
  position: absolute;
  left: 16px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
  stroke-linecap: round;
  pointer-events: none;
}
.gl-search input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--field-bg);
  font-size: 1rem;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s;
}
.gl-search input::placeholder { color: var(--text-3); opacity: 1; }
.gl-search input:focus { outline: none; border-color: var(--gold); }
.gl-search input:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.gl-search input::-webkit-search-cancel-button { filter: var(--search-cancel-filter); }
.gl-status {
  min-height: 1.5em;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
.gl-list {
  display: grid;
  column-gap: 40px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.gl-term {
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.gl-term dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.gl-term dt:focus { outline: none; }
.gl-alt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gold);
}
.gl-alt:empty { display: none; }
.gl-term dd {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-2);
}
.gl-empty { padding: 28px 0; color: var(--text-2); }
.gl-more { margin-top: 28px; width: 100%; }
.icon-chev { width: 16px; height: 16px; flex: none; }
.glossary.is-expanded .gl-more,
.glossary.is-searching .gl-more { display: none; }
@media (max-width: 1079px) {
  .js .glossary:not(.is-expanded):not(.is-searching) .gl-term:not(.is-core) { display: none; }
}

/* FAQ */
.faq-grid { display: grid; gap: 8px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 16px 44px 16px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-hi); }
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 14px; height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s var(--ease-out);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-a { padding: 0 44px 22px 0; }
.faq-a p { color: var(--text-2); max-width: 42em; }
.faq-item[open] .faq-a { animation: faq-in 0.3s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* Kontakt */
.contact { border-top: 1px solid var(--line); background: var(--bg-deep); }
.contact-inner { display: grid; gap: 32px; }
.contact .lead { margin-top: 18px; max-width: 34em; }
.contact-links { display: grid; gap: 10px; align-content: start; }
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  text-decoration: none;
  background: var(--card-bg);
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s;
}
.contact-link:hover { border-color: var(--gold); background: var(--hover-bg); }
.contact-link .icon-ext { color: var(--gold); }
.contact-link-primary { background: var(--btn-bg); color: var(--on-gold); border-color: var(--btn-bg); }
.contact-link-primary .icon-ext { color: var(--on-gold); }
.contact-link-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.contact-empty { color: var(--text-3); font-size: 0.875rem; }

/* Stopka */
.site-footer {
  background: var(--footer-bg);
  padding-block: 48px 36px;
  border-top: 1px solid var(--line);
}
.footer-top { display: grid; gap: 28px; }
.footer-brand p {
  margin-top: 10px;
  max-width: 30em;
  font-size: 0.875rem;
  color: var(--text-3);
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.875rem;
  color: var(--text-2);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--gold-hi); }
.footer-risk {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-2);
}
.footer-meta {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ==========================================================================
   Breakpointy
   ========================================================================== */
/* Wąskie telefony: header z przełącznikiem motywu mieści się bez ściskania logo */
@media (max-width: 374px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .brand { gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-name { font-size: 0.8125rem; letter-spacing: 0.1em; }
  .lang-btn { min-width: 34px; padding: 0 7px; }
  .menu-toggle { width: 40px; height: 40px; }
}
@media (max-width: 339px) {
  .brand-name {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (min-width: 480px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .proof-copy .btn { width: auto; }
}

@media (min-width: 720px) {
  body { font-size: 1.0625rem; }
  .terminal, .sheet, .calc { padding: 26px; }
  .metrics { grid-template-columns: repeat(4, 1fr); }
  .metric { padding: 26px 20px 26px 0; }
  .metric:nth-child(n+2) { padding-left: 20px; border-left: 1px solid var(--line); }
  .snapshot-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .snapshot-foot .btn { flex: none; }

  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-cell { padding: 32px 28px 32px 0; }
  .why-cell:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }

  .safety-card { padding: 30px 28px; }

  .help-card { grid-template-columns: 1fr auto; align-items: center; padding: 32px; }
  .gl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gl-more { width: auto; }
  .pp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pp-network { padding: 36px 32px 38px; }
  .pp-benefit { padding: 30px 32px; }
  .pp-sides { grid-template-columns: 1fr 1fr; }
  .help-card.pp-cta { grid-template-columns: 1fr; }
  .pp-actions { grid-auto-flow: column; justify-content: start; }
  .riskblock-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 48px; }
  .riskblock-body { padding-left: 28px; }
  .footer-top { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .flow-step { padding: 34px 0 0; }
  .flow-step::before { left: 0; top: 0; }
  .flow-step::after {
    left: 18px; right: -18px; top: 5px; bottom: auto;
    width: auto; height: 1px;
    background-size: 100% 100%;
  }
  .js .flow[data-reveal] .flow-step::after { background-size: 0% 100%; }
  .js .flow.is-in .flow-step::after { background-size: 100% 100%; }
  .flow-step:last-child::after { display: none; }

  .step { grid-template-columns: 80px 1fr; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .step:nth-child(1) { grid-column: 1 / -1; }

  .safety-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pp-flow { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .pp-flow .flow-step { padding: 34px 0 0; }
  .pp-flow .flow-step::after { right: -16px; }
  .verify-list { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .verify-item { padding: 20px; min-height: 120px; }
  .faq-grid { grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .contact-inner { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
}

@media (min-width: 1080px) {
  :root { --header-h: 72px; }
  .nav { display: block; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .gl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pp-benefit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
  .help-card.pp-cta { grid-template-columns: minmax(0, 1fr) auto; }
  .gl-more { display: none; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    align-items: center;
    gap: 56px;
  }
  .proof-grid, .amplify-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
  .steps { grid-template-columns: repeat(5, 1fr); column-gap: 28px; border-top: 0; }
  .step {
    grid-column: auto !important;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 16px;
    padding: 24px 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-strong);
  }
}

@media (min-width: 1080px) and (max-width: 1279px) {
  .header-inner { gap: 12px; }
  .brand-name { font-size: 0.875rem; letter-spacing: 0.12em; }
  .nav-list { gap: 0; }
  .nav-list a { padding-inline: 8px; font-size: 0.8125rem; }
}
@media (min-width: 1280px) {
  .nav-list a { padding-inline: 12px; }
}

/* ---------- Reduced motion ---------- */
@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;
    transition-delay: 0s !important;
  }
  .js .chart-line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .chart-area, .js .chart-dot { opacity: 1; }
  .chart-pulse { display: none; }
}

/* ---------- Druk ---------- */
@media print {
  .site-header, .hero-bg, .calc, .contact-links, .gl-search, .gl-more { display: none; }
  body { background: #fff; color: #000; }
}
