/* Rozloženie: úzky stĺpec textu, výrazná "pečiatka zo skúšky" v úvode, formulár ako hlavný cieľ stránky. */
:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --ink: #14213d;
  --muted: #56627d;
  --line: #dde2ec;
  --accent: #c8382c;        /* farba pečiatky */
  --accent-ink: #ffffff;
  --accent-soft: #fbe9e6;
  --ok: #1d7f53;
  --warn: #9a5b00;
  --focus: #2f6fdb;
  --radius: 14px;
  --card-radius: 14px;
  --btn-radius: 999px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display-font: var(--font);
  --hl-color: var(--accent);
  --hl-bg: none;
  --theme-color: #14213d;
  color-scheme: light;
}

/* Variant A má aj tmavý režim podľa telefónu; B je zámerne svetlý, C zámerne tmavý. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="b"]):not([data-theme="c"]) {
    --theme-color: #0d1424;
    --bg: #0d1424;
    --surface: #151f35;
    --ink: #eef2fb;
    --muted: #a6b1c9;
    --line: #26324c;
    --accent: #ff6a58;
    --accent-ink: #1a0905;
    --accent-soft: #3a1a17;
    --ok: #5ad19a;
    --warn: #f0b351;
    --focus: #7fa8ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 850; font-family: var(--display-font); }
h2 { font-family: var(--display-font); }
.hl { color: var(--hl-color); background: var(--hl-bg); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0; }
a { color: inherit; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }

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

/* ---------- hlavička ---------- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); font-weight: 900; font-size: 0.85rem;
}
.header-nav { display: flex; gap: 18px; margin-left: auto; }
.header-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.header-nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 0.85rem;
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

@media (max-width: 640px) {
  .header-nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- úvod ---------- */

.hero { padding-block: clamp(40px, 8vw, 88px) clamp(28px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 18px; max-width: 34rem; }
.eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 32rem; }
.hero-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* výber krajiny a skúšky */
.picker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}
.picker-title { flex-basis: 100%; font-size: 0.85rem; font-weight: 750; color: var(--muted); }
.market-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.market-seg button, .exam-chip {
  font: inherit; font-weight: 750; font-size: 0.9rem; cursor: pointer; border-radius: 999px; min-height: 36px;
}
.market-seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 14px; }
.market-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.exam-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.exam-chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 6px 12px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.exam-chip:hover { border-color: var(--accent); }
.exam-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.exam-chip[aria-pressed="true"]::before { content: "✓ "; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .exam-chip { transition: none; } }

/* V mobile je výber nižší: krajina na celú šírku, skúšky v jednom riadku (posúvajú sa do strany). */
@media (max-width: 640px) {
  .hero { padding-top: 18px; }
  .hero-text { gap: 14px; }
  .picker { padding: 8px; gap: 6px; }
  .picker-title { font-size: 0.78rem; padding-left: 4px; }
  .market-seg { display: flex; width: 100%; }
  .market-seg button { flex: 1; min-height: 34px; padding: 4px 10px; }
  .exam-chips { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .exam-chips::-webkit-scrollbar { display: none; }
  .exam-chip { flex: none; min-height: 34px; padding: 4px 12px; font-size: 0.85rem; white-space: nowrap; }
}

.btn {
  display: inline-block; border: 0; border-radius: var(--btn-radius); cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 800;
  padding: 15px 26px; text-decoration: none; text-align: center;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-full { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* pečiatka */
.stamp { display: grid; place-items: center; }
.stamp-ring {
  width: min(300px, 70vw); aspect-ratio: 1; max-width: 100%; border-radius: 50%;
  border: 6px double var(--accent); color: var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transform: rotate(-9deg); background: var(--accent-soft);
  font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase;
}
.stamp-top, .stamp-bottom { font-size: clamp(0.9rem, 2.4vw, 1.05rem); }
.stamp-big { font-size: clamp(4.2rem, 12vw, 6.2rem); line-height: 1; letter-spacing: 0.02em; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .stamp { order: -1; justify-items: start; }
  .stamp-ring { width: 150px; border-width: 4px; }
  .stamp-big { font-size: 3.2rem; }
  .stamp-top, .stamp-bottom { font-size: 0.72rem; }
}

/* ---------- čísla ---------- */

.facts { padding-block: 8px 40px; }
.section-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; margin-bottom: 14px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 16px; min-width: 0; }
.fact dt { font-size: 1.45rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.fact dd { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.source { margin-top: 10px; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- funkcie a kroky ---------- */

.features, .steps, .faq { padding-block: 40px; }
.features h2, .steps h2, .faq h2 { margin-bottom: 22px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature p { color: var(--muted); }
.feature-icon {
  width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; gap: 22px; } }

.step-list { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 40rem; }
.step-list li {
  counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius);
}
.step-list li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 0.95rem;
}

/* ---------- čakacia listina ---------- */

.waitlist { padding-block: 40px 56px; }
.waitlist-card {
  max-width: 640px; display: flex; flex-direction: column; gap: 14px;
}
.waitlist-card > h2 { margin-top: 6px; }
form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--card-radius) + 4px); padding: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 650; font-size: 0.98rem; }
input[type="email"], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
input::placeholder { color: var(--muted); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 500; font-size: 0.95rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 12px 14px; border-radius: 10px; background: var(--bg); font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.error, .form-status.warn { color: var(--warn); }

/* ---------- otázky ---------- */

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 46rem; }
.faq summary { cursor: pointer; font-weight: 700; list-style-position: outside; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* ---------- pre jazykové školy ---------- */

.schools { padding-block: 8px 48px; }
.schools-card {
  max-width: 46rem; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--card-radius); padding: 18px 20px;
}
.schools-card h2 { font-size: 1.1rem; }
.schools-card p { color: var(--muted); }
.schools-mail { color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }

/* ---------- dizajnové varianty ---------- */

/* B · Výsledok: svieža zelená ako „prešiel“, zaoblené tvary, zvýraznenie fixkou */
:root[data-theme="b"] {
  --bg: #eef6f2;
  --surface: #ffffff;
  --ink: #0e3426;
  --muted: #4a6a5c;
  --line: #d3e6dc;
  --accent: #15895a;
  --accent-ink: #ffffff;
  --accent-soft: #dcf2e7;
  --ok: #15895a;
  --warn: #9a5b00;
  --focus: #1d6fd1;
  --radius: 20px;
  --card-radius: 20px;
  --btn-radius: 16px;
  --display-font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --hl-color: inherit;
  --hl-bg: linear-gradient(transparent 58%, #ffe27a 58%);
  --theme-color: #eef6f2;
  color-scheme: light;
}

/* B v tmavom režime telefónu: tmavá zelená, zvýraznenie fixkou stlmené */
@media (prefers-color-scheme: dark) {
  :root[data-theme="b"] {
    --bg: #0b1914;
    --surface: #11241c;
    --ink: #e8f5ee;
    --muted: #9db8aa;
    --line: #1f3a2e;
    --accent: #3fcf8e;
    --accent-ink: #04140c;
    --accent-soft: #173728;
    --ok: #3fcf8e;
    --warn: #f0b351;
    --focus: #7fb2ff;
    --hl-bg: linear-gradient(transparent 60%, rgba(255, 214, 90, 0.38) 60%);
    --theme-color: #0b1914;
    color-scheme: dark;
  }
}

/* C · Chat: tmavá appka s jantárovým akcentom, ukazuje rozhovor s AI skúšajúcim */
:root[data-theme="c"] {
  --bg: #0a0f1d;
  --surface: #131a2e;
  --ink: #f3f5fb;
  --muted: #99a3bf;
  --line: #222b46;
  --accent: #ffb21e;
  --accent-ink: #1b1300;
  --accent-soft: #2b2310;
  --ok: #46d08b;
  --warn: #ffb21e;
  --focus: #86a8ff;
  --radius: 14px;
  --card-radius: 14px;
  --btn-radius: 12px;
  --hl-color: var(--accent);
  --hl-bg: none;
  --theme-color: #0a0f1d;
  color-scheme: dark;
}

/* obrázok v úvode: každý variant ukáže svoj */
.visual { display: none; }
:root[data-theme="a"] .visual-stamp { display: grid; }
:root[data-theme="b"] .visual-sheet { display: block; }
:root[data-theme="c"] .visual-chat { display: flex; }

.visual-sheet {
  margin: 0; width: 100%; max-width: 360px; justify-self: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px;
  box-shadow: 0 18px 40px rgba(14, 52, 38, 0.12); transform: rotate(1.5deg);
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 14px; }
.sheet-tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-weight: 700;
}
.sheet-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sheet-rows li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 3.2em; gap: 10px; align-items: center; font-size: 0.95rem; }
.bar { height: 10px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.sheet-rows b { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-badge {
  margin-top: 16px; display: inline-flex; gap: 8px; align-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 8px 14px; border-radius: 999px;
}

.visual-chat {
  margin: 0; width: 100%; max-width: 360px; justify-self: center; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.chat-head { display: flex; align-items: center; gap: 8px; font-weight: 800; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat-head .sheet-tag { margin-left: auto; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.bubble { margin: 0; padding: 10px 14px; border-radius: 18px; max-width: 88%; line-height: 1.45; font-size: 0.98rem; }
.bubble-ai { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble-me { background: var(--accent); color: var(--accent-ink); align-self: flex-end; border-bottom-right-radius: 6px; font-weight: 600; }
.bubble-tip { border: 1px dashed var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  :root[data-theme="c"] .bubble { animation: bubble-in 0.45s ease both; }
  :root[data-theme="c"] .bubble-me { animation-delay: 0.3s; }
  :root[data-theme="c"] .bubble-tip { animation-delay: 0.6s; }
}
@keyframes bubble-in { from { transform: translateY(8px); } to { transform: none; } }

@media (max-width: 760px) {
  .visual-sheet, .visual-chat { max-width: none; justify-self: stretch; transform: none; }
}

/* ---------- interaktívne časti ---------- */

/* jemné farebné svetlá za úvodom (len variant B) */
:root[data-theme="b"] .hero {
  background:
    radial-gradient(38% 55% at 88% 18%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    radial-gradient(32% 45% at 8% 85%, rgba(255, 226, 122, 0.32), transparent 72%);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="b"] .hero {
    background:
      radial-gradient(38% 55% at 88% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%),
      radial-gradient(32% 45% at 8% 85%, rgba(255, 214, 90, 0.10), transparent 72%);
  }
}

/* hlavička po posunutí dostane tieň */
.site-header { transition: box-shadow 0.2s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); }

/* tlačidlá reagujú na myš aj dotyk */
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 34%, transparent); }
.btn-small { padding: 10px 18px; font-size: 0.95rem; }
.btn-ghost {
  font: inherit; font-weight: 700; cursor: pointer; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 13px 20px;
}
.btn-ghost:hover { border-color: var(--accent); }

/* výsledková listina: pruhy sa pri načítaní naplnia */
@media (prefers-reduced-motion: no-preference) {
  .bar > span { transform-origin: left center; animation: bar-grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  .sheet-rows li:nth-child(2) .bar > span { animation-delay: 0.12s; }
  .sheet-rows li:nth-child(3) .bar > span { animation-delay: 0.24s; }
  .sheet-rows li:nth-child(4) .bar > span { animation-delay: 0.36s; }
}
@keyframes bar-grow { from { transform: scaleX(0.04); } to { transform: none; } }

/* ukážkové úlohy */
.quiz-section { padding-block: 8px 40px; }
.quiz-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--card-radius) + 6px);
  padding: clamp(18px, 4vw, 32px); box-shadow: 0 20px 50px rgba(14, 52, 38, 0.08);
  display: flex; flex-direction: column; gap: 20px;
}
.quiz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.quiz-top h2 { margin-bottom: 6px; }
@media (max-width: 520px) {
  .quiz-top { flex-direction: column; gap: 10px; }
  .quiz-top .quiz-progress { padding-top: 0; }
}
.quiz-progress { display: flex; gap: 6px; padding-top: 10px; flex: none; }
.quiz-progress span { width: 26px; height: 8px; border-radius: 999px; background: var(--line); transition: background 0.25s ease, width 0.25s ease; }
.quiz-progress span.now { background: var(--ink); width: 34px; }
.quiz-progress span.ok { background: var(--accent); }
.quiz-progress span.bad { background: #e0675a; }
.quiz { display: flex; flex-direction: column; gap: 16px; }
.q-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-weight: 650; font-size: 0.92rem; }
.q-kind { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; }
.q-sign {
  align-self: flex-start; font-weight: 800; letter-spacing: 0.02em; padding: 12px 16px; border-radius: 10px;
  background: var(--bg); border: 2px solid var(--ink); font-variant-numeric: tabular-nums;
}
.q-prompt { font-size: clamp(1.3rem, 3.6vw, 1.7rem); font-weight: 750; line-height: 1.35; font-family: var(--display-font); }
.blank { display: inline-block; min-width: 3.2em; text-align: center; border-bottom: 3px solid var(--accent); color: var(--muted); }
.blank.filled { color: var(--ink); animation: pop 0.3s ease both; }
.blank.filled.bad { border-color: #e0675a; text-decoration: line-through; text-decoration-color: #e0675a; }
.q-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.q-opt {
  font: inherit; font-size: 1.1rem; font-weight: 750; cursor: pointer; min-height: 56px; padding: 12px 10px;
  border-radius: calc(var(--btn-radius) - 2px); border: 2px solid var(--line); background: var(--bg); color: var(--ink);
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}
.q-opt:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.q-opt:disabled { cursor: default; opacity: 0.55; }
.q-opt.is-correct { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.q-opt.is-correct::after { content: " ✓"; color: var(--accent); }
.q-opt.is-wrong { opacity: 1; border-color: #e0675a; background: color-mix(in srgb, #e0675a 14%, var(--bg)); }
.q-opt.is-wrong::after { content: " ✗"; color: #e0675a; }
.q-feedback { border-radius: var(--card-radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; animation: rise 0.3s ease both; }
.q-feedback.ok { background: var(--accent-soft); }
.q-feedback.bad { background: color-mix(in srgb, #e0675a 12%, var(--surface)); }
.q-verdict { font-weight: 850; font-size: 1.05rem; }
.quiz-done { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; animation: rise 0.35s ease both; }
.quiz-score { font-family: var(--display-font); font-weight: 900; line-height: 1; }
.quiz-score b { font-size: 3.6rem; color: var(--accent); }
.quiz-score span { font-size: 1.6rem; color: var(--muted); }
.quiz-done-title { font-weight: 800; font-size: 1.15rem; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 520px) { .q-options { grid-template-columns: 1fr; } }
.q-article {
  margin: 0; padding: 14px 16px; line-height: 1.6; background: var(--bg);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px;
}
.q-options-long { grid-template-columns: 1fr; }
.q-options-long .q-opt { font-size: 1rem; text-align: left; padding: 12px 16px; border-radius: 14px; }
@keyframes pop { from { transform: scale(0.85); } to { transform: none; } }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .blank.filled, .q-feedback, .quiz-done { animation: none; }
  .q-opt, .quiz-progress span { transition: none; }
}

/* kalkulačka plánu */
.calc-section { padding-block: 40px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.calc-intro { display: flex; flex-direction: column; gap: 14px; max-width: 30rem; }
.calc-field input {
  width: 100%; font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 52px;
}
.calc-field input:focus { border-color: var(--accent); }
.calc-out {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--card-radius) + 6px);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.calc-tag { position: absolute; top: 16px; right: 16px; }
.calc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--card-radius); background: var(--bg); }
.calc-stat b { font-family: var(--display-font); font-size: 2.4rem; line-height: 1.05; font-weight: 900; font-variant-numeric: tabular-nums; }
.calc-stat span { color: var(--muted); font-weight: 650; font-size: 0.92rem; }
.calc-plan-title { font-weight: 800; margin-top: 4px; }
.calc-bar { display: flex; gap: 4px; height: 12px; }
.calc-bar .seg { border-radius: 999px; transition: flex 0.35s ease; }
.seg1 { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.seg2 { background: color-mix(in srgb, var(--accent) 72%, var(--surface)); }
.seg3 { background: var(--accent); }
.calc-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.calc-phases li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.calc-phases .dot { width: 12px; height: 12px; border-radius: 50%; }
.ph-name { font-weight: 650; }
.ph-date { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.92rem; white-space: nowrap; }
.calc-msg { font-weight: 650; color: var(--warn); }
.calc-note { font-weight: 650; color: var(--ok); }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; gap: 20px; } }

/* odhalenie sekcií pri posúvaní (len kde to prehliadač vie, obsah je viditeľný vždy) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes reveal-up { from { transform: translateY(28px); opacity: 0.55; } to { transform: none; opacity: 1; } }

/* otázky sa otvárajú plynulo (novšie prehliadače) */
.faq summary::after { content: "+"; float: right; font-weight: 800; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 0.3s ease, content-visibility 0.3s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* pevné tlačidlo na mobile */
.sticky-cta {
  position: fixed; z-index: 15; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)); animation: rise 0.25s ease both;
}
.sticky-cta[hidden] { display: none; }
@media (min-width: 761px) { .sticky-cta { display: none !important; } }

/* prepínač dizajnov (len pri skúšaní, návštevníci ho nevidia) */
.design-switcher {
  position: fixed; z-index: 20;
  left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 24px); display: flex; flex-direction: column; gap: 8px;
  background: #111827; color: #f9fafb; border-radius: 14px; padding: 10px 12px; font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.design-switcher[hidden] { display: none; }
@media (max-width: 760px) {
  .design-switcher { bottom: auto; top: calc(70px + env(safe-area-inset-top, 0px)); left: auto; right: max(12px, env(safe-area-inset-right, 0px)); }
}
.ds-title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: #9ca3af; }
.ds-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.design-switcher button {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px; padding: 6px 10px;
  border: 1px solid #374151; background: #1f2937; color: #f9fafb;
}
.design-switcher button[aria-pressed="true"] { background: #f9fafb; color: #111827; }
.design-switcher .ds-hide { align-self: flex-start; background: transparent; border: 0; color: #9ca3af; padding: 2px 0; }

/* ---------- päta ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.brand-line { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-title { font-size: 0.95rem; font-weight: 800; }
.privacy-more summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--accent); }
.privacy-list { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
