/* ===== Strona sprzedażowa – Biologia Matura 2027 =====
   Paleta i czcionka jak w kartach Anki (kontekst/kontekst.md, sekcja 4). Najpierw telefon. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ec;
  --text: #1d232a;
  --muted: #6b7280;
  --line: #e6e3dc;
  --accent: #0f766e;
  --accent-hover: #0b5d57;
  --accent-soft: #e2f1ee;
  --key: #0b5d57;
  --on-accent: #ffffff;
  --matura: #b45309;
  --matura-soft: #fdf3e6;
  --note: #5b6b80;
  --note-soft: #f1f3f6;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 35, 42, .05), 0 6px 20px rgba(29, 35, 42, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --surface: #1d2025;
    --surface-2: #23272d;
    --text: #e7e9ec;
    --muted: #9aa3ad;
    --line: #2e333a;
    --accent: #4fd1c5;
    --accent-hover: #82e3d9;
    --accent-soft: #1b3431;
    --key: #82e3d9;
    --on-accent: #0d1f1d;
    --matura: #f0a35e;
    --matura-soft: #2c2318;
    --note: #9fb0c4;
    --note-soft: #22262d;
    --danger: #f97066;
    --danger-soft: #2d1a19;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.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; left: 8px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 760px; }
.section { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section-alt { background: var(--surface-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.section-head { margin-bottom: 28px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ── nagłówek ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; line-height: 1.1; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px;
  border: 0; background: transparent; color: var(--text); border-radius: 10px; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 550; border-bottom: 1px solid var(--line); }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .btn { margin-top: 12px; width: 100%; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
  .site-nav a:hover { background: var(--surface-2); }
  .site-nav .btn { margin: 0 0 0 8px; width: auto; }
  .site-nav a.btn:hover { background: var(--accent-hover); }
}

/* ── przyciski ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary, .site-nav a.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .site-nav a.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.btn-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .btn-row { flex-direction: row; flex-wrap: wrap; } }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding: 32px 0 44px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 64px 0 72px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.hero h1 .hl { color: var(--accent); }
.hero .lead { margin-bottom: 24px; }
.countdown {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; margin-bottom: 16px;
  background: var(--matura-soft); color: var(--matura); border-radius: 999px; font-size: .88rem; font-weight: 650;
}
.countdown svg { width: 16px; height: 16px; flex: none; }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.hero-card { position: relative; }
.hero-card .flip { box-shadow: 0 2px 4px rgba(29,35,42,.04), 0 24px 48px -12px rgba(15,118,110,.25); }

/* ── liczniki ─────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: .92rem; color: var(--muted); }

/* ── kafelki ──────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tile h3 { margin-bottom: .35em; }
.tile p:last-child { margin-bottom: 0; }
.tile-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
}
.tile-icon svg { width: 22px; height: 22px; }
.klasa-tile .num { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.klasa-tile ul { margin: .4em 0 0; padding-left: 1.1em; color: var(--muted); font-size: .93rem; }
.klasa-tile li { margin: .15em 0; }
.klasa-tile li::marker { color: var(--accent); }
.klasa-tile .meta { font-size: .9rem; color: var(--muted); margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin: .55em 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230f766e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ── cennik ───────────────────────────────────────────── */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1.15fr 1fr 1fr; align-items: start; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.plan h3 { font-size: 1.2rem; margin-bottom: .2em; }
.plan .price { font-size: 2.2rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .save { display: inline-block; font-size: .88rem; font-weight: 650; color: var(--accent); margin-bottom: 12px; }
.plan .checklist { font-size: .95rem; margin-bottom: 18px; }
.plan .btn { width: 100%; }
.plan-best { border: 2px solid var(--accent); box-shadow: 0 16px 40px -16px rgba(15,118,110,.35); }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 750;
  letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); margin-bottom: 10px;
}
.plan-list { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.plan-list li:last-child { border-bottom: 0; }
.plan-list b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.compare { font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* ── karty (przykłady) ────────────────────────────────── */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: .93rem; font-weight: 600; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: .93rem; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }

.deck-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 820px) { .deck-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.flip {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow);
}
.flip-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface); font-size: .8rem;
}
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 650; }
.tag-accent { background: var(--accent-soft); color: var(--key); }
.tag-matura { background: var(--matura-soft); color: var(--matura); }
.flip-side { margin-left: auto; color: var(--muted); font-weight: 600; }
.flip-face { cursor: pointer; transition: transform .18s ease, opacity .18s ease; transform-origin: center; }
.flip-face.turning { transform: perspective(900px) rotateX(8deg) scale(.985); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .flip-face { transition: none; } }
.flip-face .anki-card { min-height: 210px; }
.flip-actions { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.flip-actions .btn { flex: 1; }
.flip-hint { font-size: .8rem; color: var(--muted); }
.cloze-info { font-size: .85rem; color: var(--muted); padding: 0 14px 12px; background: var(--surface); }

/* ── zakres / FAQ: rozwijane ──────────────────────────── */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.acc > summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; position: relative; font-weight: 650; line-height: 1.35;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.acc[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.acc > summary:hover { background: var(--surface-2); }
.acc-body { padding: 0 18px 16px; }
.acc-body > :last-child { margin-bottom: 0; }
.acc .sum-meta { display: block; font-weight: 500; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.acc .acc { margin: 8px 0; border-radius: var(--radius-sm); }
.acc .acc > summary { padding: 12px 44px 12px 14px; font-size: .97rem; }
.acc .acc > summary::after { right: 16px; }
.topic-list { list-style: none; margin: 0; padding: 0 14px 10px; }
.topic-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.topic-list li:last-child { border-bottom: 0; }
.topic-list .cnt { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.klasa-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 32px 0 12px; }
.klasa-head h2 { margin: 0; font-size: 1.5rem; }
.klasa-head span { color: var(--muted); font-size: .95rem; }

/* ── instrukcja: zakładki i kroki ─────────────────────── */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; margin-bottom: 20px; }
.tabs button {
  flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tab-panel[hidden] { display: none; }
.steps { list-style: none; counter-reset: s; margin: 0 0 1em; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 46px; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--key); font-weight: 750; display: flex; align-items: center; justify-content: center;
}
.steps > li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.steps p { margin: 0 0 .4em; color: var(--muted); }
kbd, .ui {
  font-family: inherit; font-size: .9em; font-weight: 650; padding: 1px 7px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); white-space: nowrap;
}
code { font-family: Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

/* ── ramki ────────────────────────────────────────────── */
.callout { border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0; border-left: 3px solid var(--note); background: var(--note-soft); font-size: .95rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--note); margin-bottom: 4px; }
.callout-matura { border-color: var(--matura); background: var(--matura-soft); }
.callout-matura .callout-title { color: var(--matura); }
.callout-accent { border-color: var(--accent); background: var(--accent-soft); }
.callout-accent .callout-title { color: var(--accent); }

/* miejsca do uzupełnienia w config.js – widoczne, żeby nie umknęły */
.todo { background: var(--matura-soft); color: var(--matura); outline: 1px dashed var(--matura); border-radius: 4px; padding: 0 4px; font-weight: 650; }

/* ── formularz ────────────────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 28px; } }
fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 650; margin-bottom: 6px; font-size: .97rem; }
.field .hint { display: block; font-size: .86rem; color: var(--muted); margin-top: 5px; }
input[type="text"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
textarea { min-height: 90px; resize: vertical; }
input[type="file"] {
  width: 100%; padding: 12px; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1.5px dashed var(--line); border-radius: 10px; cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 650; cursor: pointer;
}
.invalid input[type="file"] { border-color: var(--danger); }
#confirm-form { margin-top: 20px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); transition: border-color .15s, background .15s;
}
.choice-box::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
  transition: border .15s;
}
.choice input:checked + .choice-box { border-color: var(--accent); background: var(--accent-soft); }
.choice input:checked + .choice-box::before { border: 6px solid var(--accent); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice-main { flex: 1; min-width: 0; }
.choice-main b { display: block; line-height: 1.3; }
.choice-main span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.choice-price { font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.choice-main .choice-flag { display: inline-block; color: var(--on-accent); line-height: 1.5; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); vertical-align: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .94rem; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.req { color: var(--danger); }
.error-msg { display: none; color: var(--danger); font-size: .88rem; margin-top: 6px; font-weight: 600; }
.invalid .error-msg { display: block; }
.invalid input[type="text"], .invalid input[type="email"], .invalid input[type="date"] { border-color: var(--danger); }
.form-alert { display: none; padding: 12px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-weight: 600; margin-bottom: 16px; }
.form-alert.show { display: block; }
.summary-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; margin: 4px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-bar b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* płatność po wysłaniu */
.pay { display: none; }
.pay.show { display: block; }
.order-no { font-family: Menlo, Consolas, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
.pay-details { display: grid; gap: 0; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.pay-row:last-child { border-bottom: 0; }
.pay-row dt { font-size: .85rem; color: var(--muted); width: 100%; }
@media (min-width: 560px) { .pay-row dt { width: auto; min-width: 140px; } }
.pay-row dd { margin: 0; font-weight: 700; flex: 1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy { flex: none; min-height: 34px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy.ok { border-color: var(--accent); background: var(--accent-soft); color: var(--key); }

/* ── treści prawne ────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.5em; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose .doc-meta { color: var(--muted); font-size: .92rem; }
.legal-box { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; background: var(--surface); }

/* ── stopka ───────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; margin-top: 24px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: var(--text); font-size: .95rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; }

/* pasek CTA na telefonie */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .25s;
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; }
.mobile-cta span { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.mobile-cta span b { display: block; color: var(--text); font-size: 1rem; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
