/* Prava3D site — a plain, information-first design: light surfaces, the system font, one accent colour, no
   gradients or glow. Brand colours (SourceArt/Brand) are used sparingly: blue for actions, orange only in the logo
   and the "recommended" mark. The cabinet and the owner's panel use the same system. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;        /* section background, table heads */
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #515154;      /* secondary text */
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --accent: #0066cc;      /* links and primary buttons (a darker brand blue: readable on white) */
  --accent-2: #0055b3;
  --orange: #ff8a3d;      /* brand orange: logo, the "recommended" mark */
  --green: #1a7f37;
  --red: #c62828;
  --yellow: #8a6100;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.grad-text { color: inherit; }   /* kept for old templates: no gradients */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-2); }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.lead { font-size: 1.25rem; color: var(--text-2); max-width: 680px; line-height: 1.5; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-2); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand b { color: var(--orange); font-weight: 600; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { color: var(--text-2); font-size: .9rem; white-space: nowrap; }
.nav__links a:hover, .nav__links a.active { color: var(--text); text-decoration: none; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; color: var(--muted); font: inherit; font-size: .8rem; padding: 4px 7px;
  cursor: pointer; border-radius: 6px; }
.lang button:hover { color: var(--text); }
.lang button[aria-current="true"] { color: var(--text); font-weight: 600; background: var(--bg-2); }
.nav__link-sm { font-size: .9rem; color: var(--text-2); white-space: nowrap; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px;
  padding: 6px 10px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px;
  border-radius: 980px; border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease; color: var(--text); }
.btn:hover { text-decoration: none; }
.btn--primary, .btn--blue { background: var(--accent); color: #fff; }
.btn--primary:hover, .btn--blue:hover { background: var(--accent-2); }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: #b8b8bf; background: var(--bg-2); }
.btn--sm { padding: 7px 14px; font-size: .875rem; }
.btn--danger { background: var(--surface); border-color: #e3b3b3; color: var(--red); }
.btn--danger:hover { background: #fdf3f3; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-link { font-size: 1rem; }
.btn-link::after { content: " ›"; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; }
.hero h1 { max-width: 860px; margin-left: auto; margin-right: auto; }
.hero .lead { margin: 0 auto; }
.hero__grid { display: block; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 18px; align-items: center; }
.hero .hero__cta, .center .hero__cta { justify-content: center; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; color: var(--muted); font-size: .9rem; }
.tag { color: var(--muted); font-size: .9rem; }
.tag i { display: none; }
.scene { display: none; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.grid--one { max-width: 560px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; }
.section--alt .card { border-color: transparent; }
.card h3 { margin-top: 14px; }
.card p { color: var(--text-2); margin: 0; }
.icon { width: 36px; height: 36px; display: grid; place-items: center; }
.icon svg { width: 28px; height: 28px; stroke: var(--text); fill: none; stroke-width: 1.5; stroke-linecap: round;
  stroke-linejoin: round; }
.head { margin-bottom: 48px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; padding-top: 4px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px;
  height: 32px; border-radius: 50%; font-weight: 600; font-size: .95rem; color: var(--text);
  border: 1px solid var(--line); margin-bottom: 14px; }
.step p { color: var(--text-2); margin: 0; font-size: .97rem; }
.section--alt .step::before { background: var(--surface); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; color: var(--text-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/16px no-repeat; }

.panel { border-radius: var(--radius); padding: 32px; background: var(--surface); border: 1px solid var(--line-2); }

/* pricing */
.price { display: flex; flex-direction: column; position: relative; }
.price__value { font-size: 2.1rem; font-weight: 600; margin: 8px 0 2px; letter-spacing: -.02em; }
.price__value small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.price--best { border-color: var(--text); }
.badge--best { position: absolute; top: -11px; left: 28px; background: var(--text); color: #fff; border-color: var(--text); }
.tiers { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: .95rem; }
.tiers th, .tiers td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.tiers td:last-child, .tiers th:last-child { text-align: right; }
.tiers th { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 2px 0; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex;
  justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); padding-bottom: 14px; margin: 0; }

.cta { text-align: center; padding: 56px 32px; border-radius: var(--radius); background: var(--bg-2); }
.cta .hero__cta { justify-content: center; margin-bottom: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form fieldset { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; margin: 0; display: grid;
  gap: 16px; background: var(--surface); }
.form legend { padding: 0 8px; font-weight: 600; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea, .toolbar input, .toolbar select, .inline-form input, .inline-form select,
.form input[type=file] {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus,
.inline-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 102, 204, .15); }
.field input[type="checkbox"] { width: auto; margin-right: 8px; accent-color: var(--accent); }
.field--check label { display: flex; align-items: flex-start; font-weight: 400; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .errors, .form-errors { color: var(--red); font-size: .85rem; margin-top: 4px; }
.form-errors { background: #fdf3f3; border: 1px solid #f0c8c8; border-radius: var(--radius-sm); padding: 12px 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px;
  border-radius: var(--radius); background: var(--bg-2); }
.total strong { font-size: 1.5rem; font-weight: 600; }
.form input[type=file] { max-width: 100%; padding: 8px; }

/* ---------- messages ---------- */
.messages { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.messages li { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); }
.messages .success { border-color: #b7dfc2; background: #f1f9f3; }
.messages .error { border-color: #f0c8c8; background: #fdf3f3; }
.messages .warning { border-color: #ecd9a6; background: #fdf8ea; }

/* ---------- cabinet / panel ---------- */
.cab { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding: 32px 0 80px; align-items: start; }
.side { position: sticky; top: 80px; display: grid; gap: 2px; }
.side__school { padding: 4px 12px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.side__school b { display: block; }
.side a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: .95rem; }
.side a:hover { background: var(--bg-2); color: var(--text); text-decoration: none; }
.side a.active { background: var(--bg-2); color: var(--text); font-weight: 600; }
.cab__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px; }
.cab__head h1 { font-size: 1.9rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--bg-2); }
.stat b { display: block; font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 500; font-size: .8rem; background: var(--bg-2); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .03em; font-weight: 500; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.badge--awaiting, .badge--pending, .badge--proof-new { color: var(--yellow); background: #fdf8ea; border-color: #ecd9a6; }
.badge--completed, .badge--available, .badge--verified, .badge--proof-accepted { color: var(--green); background: #f1f9f3; border-color: #b7dfc2; }
.badge--assigned { color: var(--accent); background: #eef5fc; border-color: #bfd7f0; }
.badge--redeemed { color: var(--text); }
.badge--cancelled, .badge--revoked, .badge--blocked, .badge--proof-rejected { color: var(--red); background: #fdf3f3; border-color: #f0c8c8; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; padding: 8px 12px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; max-width: 100%; }
.inline-form input, .inline-form select { width: auto; max-width: 100%; padding: 6px 10px; font-size: .875rem; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.note { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-2); color: var(--text-2); }
.note--warn { background: #fdf8ea; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.auth { max-width: 440px; margin: 64px auto 96px; }
.bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar i.bar--mid { background: #c58a00; }
.bar i.bar--low { background: var(--red); }
.bar i.bar--done { background: var(--green); }
select[multiple] { min-height: 160px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-2); padding: 44px 0 28px; background: var(--bg-2); font-size: .85rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer__bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); }

/* ---------- legal ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }

/* ---------- player account ---------- */
.account { max-width: 760px; margin: 0 auto; padding: 48px 0 96px; }
.account__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.plan-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line-2); }
.plan-row:last-child { border-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .grid--3, .grid--4, .steps, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cab { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .side { position: static; grid-auto-flow: column; overflow-x: auto; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
  .side__school { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .nav__links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line-2); padding: 8px 22px 16px; margin: 0; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 0; font-size: 1rem; }
  .nav__toggle { display: block; }
  .nav__link-sm { display: none; }
  .nav__right { gap: 8px; }
  .nav__right .btn { padding: 6px 12px; font-size: .8rem; }
  .grid--3, .grid--4, .grid--2, .steps, .row, .stats, .account__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- invoice (print) ---------- */
.invoice-page { background: #fff; color: #111; }
.invoice { max-width: 860px; margin: 24px auto; padding: 40px; background: #fff; color: #111; font-size: 14px;
  font-family: Arial, "Helvetica Neue", sans-serif; }
.invoice h1 { font-size: 22px; margin-bottom: 4px; }
.invoice table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.invoice th, .invoice td { border: 1px solid #999; padding: 8px 10px; text-align: left; vertical-align: top; }
.invoice .r { text-align: right; }
.invoice .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; }
.invoice .parties h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #555; }
.invoice .purpose { padding: 12px 14px; border: 2px dashed #555; border-radius: 8px; margin: 18px 0; }
.invoice .sign { display: flex; justify-content: space-between; margin-top: 48px; }
.invoice .toolbar-print { display: flex; gap: 10px; margin-bottom: 24px; }
.invoice .warn { background: #fff5e6; border: 1px solid #f5b83d; padding: 10px 12px; border-radius: 8px; }
@media print {
  .invoice .toolbar-print, .invoice .warn { display: none; }
  .invoice { margin: 0; padding: 0; }
  @page { margin: 16mm; }
}
.show-m { display: none; }
@media (max-width: 760px) {
  .hide-m { display: none !important; }
  .show-m { display: inline; }
  .nav__links .show-m { display: block; }
  .brand span { display: none; }
}
.nowrap { white-space: nowrap; }

/* ======================================================================================================
   v2: illustrations, calm motion, dark theme. Still one accent colour; motion only when the visitor allows it.
   ====================================================================================================== */
:root {
  --road: #4a4a50; --ground: #e7efe3; --mark: #ffffff; --glass: rgba(255, 255, 255, .85);
  --green-soft: #e3f4e8; --accent-soft: #e5f0fb; --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 24px rgba(0, 0, 0, .06);
}

/* hero with a picture on the right (stacked on phones) */
.hero--split { text-align: left; padding: 72px 0 64px; }
.hero--split .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero--split h1, .hero--split .lead { margin-left: 0; }
.hero--split .hero__cta, .hero--split .hero__tags { justify-content: flex-start; }
.split--art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* illustrations (inline SVG, colours from the theme) */
.art { width: 100%; height: auto; display: block; }
.art--hero { max-width: 560px; margin-left: auto; }
.a-surface { fill: var(--surface); } .a-bg { fill: var(--bg-2); } .a-stroke { stroke: var(--line-2); stroke-width: 1.5; }
.a-line { fill: var(--line); } .a-text { fill: var(--text-2); } .a-road { fill: var(--road); } .a-ground { fill: var(--ground); }
.a-mark rect { fill: var(--mark); } .a-glass { fill: var(--glass); }
.a-accent { fill: var(--accent); } .a-accent-soft { fill: var(--accent-soft); } .a-orange { fill: var(--orange); }
.a-green { fill: var(--green); } .a-green-soft { fill: var(--green-soft); } .a-red { fill: #e5484d; } .a-off { fill: #2c2c30; }
.a-dark { fill: #1d1d1f; } .a-star { fill: #ffd27a; }
.a-check { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.a-arrow { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 4 5; }
.a-arrow-head { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-box { padding: 28px; border-radius: 22px; background: var(--bg-2); }
.section--alt .art-box { background: var(--surface); }

/* calm motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .card, .price { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  a.card:hover, .grid .card:hover, .price:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .a-car-move { animation: car-to-line 7s ease-in-out infinite; }
  @keyframes car-to-line { 0% { transform: translateY(34px); } 35%, 75% { transform: translateY(0); } 100% { transform: translateY(34px); } }
  .btn { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
  .btn:active { transform: scale(.98); }
}

/* keyboard focus is always visible */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* "Try a ticket" */
.quiz { max-width: 720px; margin: 0 auto; }
.quiz__card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; }
.quiz__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .875rem; margin-bottom: 10px; }
.quiz__q { font-size: 1.25rem; font-weight: 600; line-height: 1.35; margin: 0 0 18px; }
.quiz__answers { display: grid; gap: 10px; }
.quiz__answer { text-align: left; width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.quiz__answer:hover { border-color: var(--accent); }
.quiz__answer[aria-pressed="true"].is-right, .quiz__answer.is-right { border-color: var(--green); background: var(--green-soft); }
.quiz__answer.is-wrong { border-color: var(--red); background: #fdf3f3; }
.quiz__answer[disabled] { cursor: default; }
.quiz__explain { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--bg-2); color: var(--text-2); }
.quiz__explain b { color: var(--text); }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.quiz__dots { display: flex; gap: 6px; }
.quiz__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.quiz__dots i.on { background: var(--accent); }

/* small bar chart (owner's panel) */
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; height: 180px;
  padding: 16px; border-radius: var(--radius); background: var(--bg-2); }
.chart__col { display: grid; gap: 6px; align-content: end; text-align: center; font-size: .75rem; color: var(--muted); height: 100%; }
.chart__bar { background: var(--accent); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.chart__bar--2 { background: var(--orange); }

@media (max-width: 1000px) {
  .hero--split .wrap, .split--art { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero--split { text-align: center; }
  .hero--split .hero__cta, .hero--split .hero__tags { justify-content: center; }
  .hero--split .lead { margin: 0 auto; }
  .art--hero { margin: 0 auto; max-width: 460px; }
}

/* ---------- dark theme (follows the device setting; the printed invoice stays light) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-2: #161617; --surface: #1c1c1e; --text: #f5f5f7; --text-2: #c7c7cc; --muted: #8e8e93;
    --line: #3a3a3c; --line-2: #2c2c2e; --accent: #2997ff; --accent-2: #0a84ff; --green: #30d158; --red: #ff6961;
    --yellow: #ffd60a; --road: #3a3a3e; --ground: #1f2a1f; --glass: rgba(255, 255, 255, .8);
    --green-soft: #12301b; --accent-soft: #10263d; color-scheme: dark;
  }
  .nav { background: rgba(0, 0, 0, .78); }
  .btn--dark { background: #f5f5f7; color: #000; } .btn--dark:hover { background: #fff; }
  .badge--best { background: #f5f5f7; color: #000; border-color: #f5f5f7; }
  .messages .success, .badge--completed, .badge--available, .badge--verified, .badge--proof-accepted { background: #12301b; border-color: #1f5130; }
  .messages .error, .form-errors, .badge--cancelled, .badge--revoked, .badge--blocked, .badge--proof-rejected,
  .quiz__answer.is-wrong, .btn--danger:hover { background: #3a1416; border-color: #6b2226; }
  .messages .warning, .note--warn, .badge--awaiting, .badge--pending, .badge--proof-new { background: #33280a; border-color: #5c4710; }
  .badge--assigned { background: #10263d; border-color: #1d4570; }
  .btn--danger { background: var(--surface); border-color: #6b2226; }
  .icon svg { stroke: var(--text); }
  .checklist li::before { filter: invert(1); }
  .a-dark { fill: #000; }
  .invoice-page { background: #fff; color: #111; }
}
.steps--list { list-style: none; padding: 0; margin: 24px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
@media (max-width: 760px) { .steps--list { grid-template-columns: minmax(0, 1fr); } }
