/* handas.info — RTL-first styles. Logical properties keep the layout correct in both Tote (rtl) and Cyrillic (ltr). */

:root {
  --bg: #f6f9fa;
  --bg-alt: #eaf3f5;
  --surface: #ffffff;
  --ink: #10262f;
  --ink-2: #3d5560;
  --muted: #677e88;
  --line: #d7e4e8;
  --brand: #0b6e8a;
  --brand-ink: #ffffff;
  --brand-soft: #dff0f4;
  --gold: #e1a91a;
  --gold-soft: #fdf3d6;
  --ok: #1d8a54;
  --ok-soft: #e1f4ea;
  --bad: #c2462c;
  --bad-soft: #fbe7e2;
  --mid: #b7791f;
  --shadow: 0 1px 2px rgba(16, 38, 47, .06), 0 8px 24px rgba(16, 38, 47, .06);
  --radius: 18px;
  --radius-sm: 12px;
  --font-ar: "Noto Naskh Arabic", "Arial", serif;
  --font-ar-display: "Noto Naskh Arabic", "Arial", serif;
  --font-cy: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1a20;
    --bg-alt: #10232b;
    --surface: #142b34;
    --ink: #e7f1f4;
    --ink-2: #b9ccd3;
    --muted: #8ea6af;
    --line: #24414c;
    --brand: #3fb3d1;
    --brand-ink: #06202a;
    --brand-soft: #173c48;
    --gold: #f2c230;
    --gold-soft: #3a3115;
    --ok: #4cc488;
    --ok-soft: #163a2a;
    --bad: #f07a5e;
    --bad-soft: #3d1e17;
    --mid: #e0a54a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
}
html[dir="rtl"] body { font-family: var(--font-ar); font-size: 17px; line-height: 1.85; }
html[dir="ltr"] body { font-family: var(--font-cy); line-height: 1.6; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { font-family: var(--font-ar-display); line-height: 1.6; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
img { max-width: 100%; }
[hidden] { display: none !important; }

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

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
html[dir="ltr"] .arrow { display: inline-block; transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.15rem; }
.brand-domain { font-family: var(--font-cy); font-size: .75rem; color: var(--muted); direction: ltr; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.main-nav a:hover { color: var(--brand); }
.script-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line);
}
.script-switch button {
  font: inherit; font-size: .9rem; font-weight: 700; border: 0; background: transparent; color: var(--muted);
  padding: 4px 14px; border-radius: 999px; cursor: pointer; min-height: 34px;
}
.script-switch button[lang="kk-Arab"] { font-family: var(--font-ar); }
.script-switch button[lang="kk-Cyrl"] { font-family: var(--font-cy); }
.script-switch button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.ornament {
  position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230b6e8a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M60 18v24M60 78v24M18 60h24M78 60h24'/%3E%3Cpath d='M60 42c-10 0-14 8-10 13s12 3 10-4M60 42c10 0 14 8 10 13s-12 3-10-4'/%3E%3Cpath d='M60 78c-10 0-14-8-10-13s12-3 10 4M60 78c10 0 14-8 10-13s-12-3-10 4'/%3E%3Ccircle cx='60' cy='60' r='4' fill='%230b6e8a'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .95rem; margin-bottom: .6em; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; list-style: none; padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-cy); font-size: 1.9rem; color: var(--brand); line-height: 1.2; }
.hero-stats span { color: var(--muted); font-size: .92rem; }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.hero-card-title { font-weight: 800; margin-bottom: .2em; }
.hero-card-sub { color: var(--muted); font-size: .92rem; }
.example-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; font-size: .95rem; }
.example-row b { font-family: var(--font-cy); font-size: 1.5rem; }
.example-row .bad { color: var(--bad); }
.example-row .good { color: var(--ok); }
.example-bar, .bar { height: 10px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; margin-top: 6px; }
.example-bar i, .bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--bad); }
.example-bar i.ok { background: var(--ok); }
.hero-card-note { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; scroll-margin-top: 70px; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.section-lead { color: var(--ink-2); max-width: 70ch; margin-bottom: 32px; }
.muted { color: var(--muted); font-size: .93rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.steps-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold); font-family: var(--font-cy); font-weight: 800; margin-bottom: 12px;
}
.steps-grid h3 { font-size: 1.1rem; }
.steps-grid p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.calc-card { padding: 28px; }

.progress { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 6px; }
.progress li { flex: 1; }
.progress button {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0;
  background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer;
}
.progress button:disabled { cursor: default; }
.progress .dot {
  width: 100%; height: 6px; border-radius: 99px; background: var(--line); font-size: 0; overflow: hidden;
}
.progress li.done .dot, .progress li.active .dot { background: var(--brand); }
.progress .p-label { font-size: .82rem; font-weight: 600; }
.progress li.active .p-label { color: var(--brand); }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-size: 1.35rem; font-weight: 800; margin-bottom: 18px; padding: 0; }

.field { margin-bottom: 22px; }
.field label, .label { display: block; font-weight: 700; margin-bottom: 8px; }
.hint { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.error { color: var(--bad); font-size: .88rem; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }

input[type="number"], select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit;
}
input[type="number"] { font-family: var(--font-cy); direction: ltr; text-align: start; }
html[dir="rtl"] input[type="number"] { text-align: right; }
input:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px var(--brand-soft); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
input:disabled { opacity: .5; }

.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 6px 22px; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 14px 0; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s;
}
.choice b { font-size: .98rem; }
.choice small { color: var(--muted); font-family: var(--font-cy); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.choice input:checked + span small { color: var(--brand); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--gold); }

.check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--brand); flex: none; }
.check.small { font-size: .92rem; }

.lang-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.lang-row .field { margin-bottom: 18px; }
.switch { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 46px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch-track::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: inset-inline-start .15s;
}
.switch input:checked + .switch-track { background: var(--ok); }
.switch input:checked + .switch-track::after { inset-inline-start: 23px; }
.switch input:disabled ~ * { opacity: .45; cursor: not-allowed; }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--gold); }

.callout { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--ink); font-size: .93rem; border-inline-start: 4px solid var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-height: 300px; overflow: auto; padding: 2px; }
.chip { margin: 0 !important; font-weight: 500 !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-size: .92rem; }
.chip input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); }
.tag { font-style: normal; font-family: var(--font-cy); font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--bg-alt); color: var(--muted); direction: ltr; }
.tag-oecd { background: var(--ok-soft); color: var(--ok); }
.tag-brics { background: var(--gold-soft); color: var(--mid); }
.tag-cis { background: var(--brand-soft); color: var(--brand); }

.health-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 16px; margin-bottom: 12px; }
.health-group summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.checks { padding-bottom: 8px; }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Live card */
.live-card { position: sticky; top: 88px; text-align: center; }
.live-title { font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.ring { position: relative; width: 168px; margin: 0 auto; }
.ring svg { display: block; width: 100%; transform: rotate(-90deg); }
html[dir="rtl"] .ring svg { transform: rotate(-90deg) scaleY(-1); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--bg-alt); }
.ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .5s ease, stroke .3s; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; }
.ring-pass .ring-fg { stroke: var(--ok); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--font-cy); }
.ring-label b { font-size: 2.4rem; line-height: 1; }
.ring-label span { color: var(--muted); font-size: .9rem; }
.live-status { font-weight: 700; margin: 12px 0; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .95rem; }
.live-status.is-fail { background: var(--gold-soft); color: var(--mid); }
.live-status.is-pass { background: var(--ok-soft); color: var(--ok); }
.live-list { list-style: none; margin: 0; padding: 0; text-align: start; font-size: .9rem; }
.live-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.live-list b { font-family: var(--font-cy); }

/* ---------- Result ---------- */
#result:focus { outline: none; }
.result-hero { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; border-width: 2px; }
.result-hero.pass { border-color: var(--ok); background: linear-gradient(135deg, var(--ok-soft), var(--surface) 60%); }
.result-hero.fail { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-soft), var(--surface) 60%); }
.result-hero h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.ring-lg { width: 190px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-actions .btn { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.share-msg { margin: 10px 0 0; color: var(--ok); font-weight: 600; word-break: break-all; }
.share-msg:empty { display: none; }

.result-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.breakdown { list-style: none; padding: 0; margin: 0; }
.bd-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bd-row:last-child { border-bottom: 0; }
.bd-head { display: flex; justify-content: space-between; gap: 12px; }
.bd-label { font-weight: 700; }
.bd-val { font-family: var(--font-cy); white-space: nowrap; }
.bd-val small { color: var(--muted); font-weight: 500; }
.bd-row .bar i { background: var(--brand); }
.bd-row.zero .bar i { background: transparent; }
.bd-row.zero .bd-label { color: var(--muted); }
.bd-row.warn .bd-val { color: var(--bad); }
.bd-detail { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }

.plan-card { border-color: var(--brand); }
.plan { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.plan li { counter-increment: p; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.plan li > div { display: flex; flex-direction: column; gap: 4px; }
.plan li > div::before { content: counter(p); font-family: var(--font-cy); font-weight: 800; color: var(--brand); }
.plan p { margin: 0; font-weight: 600; }
.plus { font-family: var(--font-cy); color: var(--ok); font-size: 1.15rem; white-space: nowrap; direction: ltr; }
.plan-total { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.plan-total b { font-family: var(--font-cy); font-size: 1.6rem; }

.effort { display: inline-block; width: fit-content; font-size: .76rem; font-weight: 700; padding: 1px 10px; border-radius: 99px; }
.effort.fast { background: var(--ok-soft); color: var(--ok); }
.effort.mid { background: var(--gold-soft); color: var(--mid); }
.effort.long { background: var(--bad-soft); color: var(--bad); }

.recs-title { margin-top: 40px; font-size: 1.35rem; }
.recs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.rec h4 { font-size: 1.05rem; margin-bottom: 6px; }
.rec-opts { display: flex; flex-direction: column; gap: 8px; }
.rec-opt { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg-alt); }
.rec-opt.best { outline: 2px solid var(--ok); background: var(--ok-soft); }
.opt-name { font-weight: 700; }

/* ---------- Criteria ---------- */
.crit header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.crit h3 { font-size: 1.1rem; margin: 0; }
.crit .max { font-size: .8rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
.crit.highlight { border-color: var(--gold); }
.crit.highlight .max { color: var(--mid); background: var(--gold-soft); }
.mini-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.mini-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table td:last-child { text-align: end; font-family: var(--font-cy); font-weight: 700; white-space: nowrap; padding-inline-start: 12px; }
.crit-note { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert { position: relative; }
.cert-tag { position: absolute; top: 20px; inset-inline-end: 20px; font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-family: var(--font-cy); }
.cert h3 { padding-inline-end: 90px; }
.cert p { color: var(--ink-2); font-size: .95rem; }
.cert ul { margin: 0; padding-inline-start: 20px; font-size: .93rem; }
.cert li { margin: 4px 0; }
.disclaimer-inline { margin-top: 24px; color: var(--muted); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-cy); font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--ink-2); padding-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d8dd; padding: 48px 0 32px; }
@media (prefers-color-scheme: dark) { .site-footer { background: #071217; } }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; }
.footer-title { font-weight: 700; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { color: #9fd6e6; }
.footer-disclaimer { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; margin: 8px 0 0; font-size: .85rem; color: #93a8af; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .result-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .live-card {
    position: sticky; top: auto; bottom: 12px; display: flex; align-items: center; gap: 14px; text-align: start; padding: 12px 16px; z-index: 20;
  }
  .live-card .live-title, .live-card .live-list { display: none; }
  .live-card .ring { width: 72px; margin: 0; flex: none; }
  .live-card .ring-label b { font-size: 1.15rem; }
  .live-card .ring-label span { display: none; }
  .live-card .live-status { margin: 0; flex: 1; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 56px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .calc-card { padding: 20px; }
  .progress .p-label { display: none; }
  .lang-row { grid-template-columns: 1fr; gap: 0; }
  .switch { margin-bottom: 18px; }
  .result-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .result-actions { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .recs-grid { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero, #how, #calculator, #certificates, #faq, .result-actions, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; break-inside: avoid; }
  .site-footer { background: none; color: #444; padding: 12px 0; }
  .footer-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
