/* ChartPass — единый стиль. Токены по docs/design/mvp-spec.md §1 */
:root {
  color-scheme: dark;
  --bg: #0D110F; --surface: #151A17; --surface-2: #1C2320;
  --line: #2A332E; --line-strong: #667369;
  --text: #ECF0E8; --text-muted: #9BA69E; --text-on-accent: #0D110F;
  --accent: #C8F25A; --accent-press: #B2DB47; --accent-soft: rgba(200,242,90,.12);
  --warn: #F2B84B; --warn-soft: rgba(242,184,75,.12);
  --danger: #FF8A7A; --danger-soft: rgba(255,138,122,.12);
  --ok: #66D68F; --ok-soft: rgba(102,214,143,.12);
  --focus: #F2F5EE;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-xs: 13px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px;
  --fs-3xl: clamp(32px, 8.5vw, 52px);
  --lh-tight: 1.15; --lh-base: 1.5;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --tap: 44px; --container: 1120px; --pad-x: 16px;
  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px rgba(0,0,0,.35);
  --t-fast: 120ms ease-out; --t-med: 200ms ease-out;
  --sticky-h: 0px;
  --safe-t: 0px; --safe-l: 0px; --safe-r: 0px; --safe-b: env(safe-area-inset-bottom, 0px);
  --bottom-ui: var(--safe-b); --tabbar-h: 56px;
}
@media (min-width: 768px) { :root { --pad-x: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--font); min-height: 100dvh;
  display: flex; flex-direction: column; overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--accent); color: var(--text-on-accent); padding: 12px 16px;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.container--narrow { max-width: calc(560px + 2 * var(--pad-x)); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }

/* ---------- header / footer ---------- */
.site-header { height: 56px; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; font-size: var(--fs-lg); font-weight: 700; min-height: var(--tap); }
.logo svg { width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: var(--s-2); }
.nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-3); text-decoration: none; color: var(--text-muted); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.nav a:hover { color: var(--text); }
.nav__extra { display: none !important; }
@media (min-width: 768px) { .nav__extra { display: inline-flex !important; } }
.site-footer { margin-top: var(--s-16); border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-10); font-size: var(--fs-xs); color: var(--text-muted); }
.site-footer .container { display: grid; gap: var(--s-3); }
.site-footer a { text-decoration: underline; display: inline-flex; align-items: center; gap: .3em; min-height: 32px; }
.site-footer .footer__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.site-footer .logo { font-size: var(--fs-md); color: var(--text); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  width: 100%; min-height: 52px; padding: 0 20px; border-radius: var(--r-md); border: 1px solid transparent;
  font-size: var(--fs-md); font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--text-on-accent); }
.btn--primary:hover { background: var(--accent-press); }
.btn--secondary { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.btn--secondary:hover { background: #232C28; }
.btn--ghost { background: transparent; color: var(--accent); width: auto; padding: 0 var(--s-3); min-height: var(--tap); }
.btn--ghost:hover { text-decoration: underline; }
.btn[aria-busy="true"], .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%;
  background: currentColor; animation: run 1.1s ease-in-out infinite;
}
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.icon-btn {
  flex: none; width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn[data-done="true"] { color: var(--ok); border-color: var(--ok); }

/* ---------- ticket ---------- */
.ticket { position: relative; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.ticket__top { padding: var(--s-5); }
.ticket__perf { position: relative; height: 20px; }
.ticket__perf::before { content: ""; position: absolute; left: 14px; right: 14px; top: 9px; border-top: 2px dashed var(--line); }
.ticket__perf::after, .ticket__perf i {
  content: ""; position: absolute; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
}
.ticket__perf::after { right: -11px; }
.ticket__perf i { left: -11px; }
.ticket__bottom { padding: var(--s-5); }

/* ---------- notice / toast / skeleton ---------- */
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface-2); font-size: var(--fs-sm); }
.notice > .ico { margin-top: 2px; }
.notice__body { flex: 1; min-width: 0; display: grid; gap: var(--s-2); justify-items: start; }
.notice--warn { background: var(--warn-soft); border-color: var(--warn); } .notice--warn > .ico { color: var(--warn); }
.notice--danger { background: var(--danger-soft); border-color: var(--danger); } .notice--danger > .ico { color: var(--danger); }
.notice--ok { background: var(--ok-soft); border-color: var(--ok); } .notice--ok > .ico { color: var(--ok); }
.notice .btn--ghost { min-height: 36px; padding: 0; }
.notice a { text-decoration: underline; }
.toasts { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 2 * var(--s-4)));
  bottom: calc(16px + var(--bottom-ui) + var(--sticky-h)); display: grid; gap: var(--s-2); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); font-size: 15px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-left: 4px solid var(--ok); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.toast--info { border-left-color: var(--line-strong); }
.toast--warn { border-left-color: var(--warn); } .toast--danger { border-left-color: var(--danger); }
.toast > span { flex: 1; }
.toast .icon-btn { border: 0; width: 36px; height: 36px; }
.skeleton { display: block; background: var(--surface-2); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #232C28, transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- segment ---------- */
.segment { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 48px; padding: 3px; gap: 3px; background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); }
.segment:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segment label { display: flex; align-items: center; justify-content: center; gap: var(--s-2); border-radius: var(--r-pill); color: var(--text-muted); font-weight: 500; cursor: pointer; font-size: var(--fs-sm); white-space: nowrap; }
.segment input:checked + label { background: var(--accent); color: var(--text-on-accent); font-weight: 600; }
.badge { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.segment input:checked + label .badge { background: rgba(13,17,15,.14); color: var(--text-on-accent); }

/* ---------- plan card ---------- */
.plans { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin-top: var(--s-6); }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
@media (hover: hover) { .plan:hover { border-color: var(--line-strong); } }
.plan--popular { border: 1.5px solid var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 140px); padding-top: var(--s-6); }
.plan__flag { position: absolute; top: -13px; left: var(--s-5); padding: 3px 12px; border-radius: var(--r-pill); background: var(--accent); color: var(--text-on-accent); font-size: var(--fs-xs); font-weight: 700; }
.plan__title { font-size: var(--fs-xl); font-weight: 600; }
.plan__tagline { color: var(--text-muted); font-size: var(--fs-sm); }
.plan__price { min-height: 92px; }
.plan__big { font-size: 32px; font-weight: 700; line-height: 1.15; }
.plan__big small { font-size: var(--fs-md); font-weight: 500; color: var(--text-muted); }
.plan__sub { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--s-1); }
.save { display: inline-block; margin-top: var(--s-2); padding: 2px 10px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-size: var(--fs-xs); font-weight: 600; }
.features { display: grid; gap: var(--s-2); font-size: 15px; flex: 1; align-content: start; }
.features li { display: flex; gap: var(--s-2); align-items: flex-start; }
.features .ico { color: var(--accent); margin-top: 2px; }

/* ---------- landing ---------- */
.hero { padding: var(--s-8) 0 var(--s-12); display: grid; gap: var(--s-8); }
@media (min-width: 768px) { .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding: var(--s-12) 0 var(--s-16); } }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); letter-spacing: .04em; }
.hero h1 { font-size: var(--fs-3xl); font-weight: 700; line-height: var(--lh-tight); margin: var(--s-3) 0 var(--s-4); }
.hero__lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-sm); }
.chip .ico { color: var(--accent); }
.hero__cta { display: grid; gap: var(--s-3); max-width: 440px; }
@media (min-width: 768px) { .hero__cta { grid-template-columns: auto auto; justify-content: start; } .hero__cta .btn { width: auto; } }
.hero__note { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--text-muted); }
.stamp { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-top: var(--s-4); opacity: .4; }
.stamp i { flex: 1; border-radius: 2px; background: var(--ok); }
.stamp i:nth-child(3n) { background: var(--danger); }
.art-ticket .ticket__top, .art-ticket .ticket__bottom { padding: var(--s-4) var(--s-5); }
.art-ticket .nick { font-family: var(--font-mono); font-size: var(--fs-lg); margin-top: var(--s-1); }
.dot-ok { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; }
section.block { padding: var(--s-10) 0 0; }
section.block h2 { font-size: var(--fs-2xl); line-height: var(--lh-tight); font-weight: 700; margin-bottom: var(--s-2); }
.steps { display: grid; gap: 0; margin-top: var(--s-6); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-3); padding: var(--s-5) 0; border-top: 2px dashed var(--line); }
.step:first-child { border-top: 0; }
.step__n { font-family: var(--font-mono); font-size: var(--fs-2xl); font-weight: 700; color: var(--accent); }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s-1); }
.step p { color: var(--text-muted); }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .step { grid-template-columns: 1fr; align-content: start; }
  .step:first-child { border-top: 2px dashed var(--line); }
}
.plans-head { display: grid; gap: var(--s-4); }
.plans-head .segment { max-width: 360px; }
.fineprint { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--text-muted); }
.faq { margin-top: var(--s-6); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); cursor: pointer; font-weight: 600; list-style: none; padding: var(--s-2) 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform var(--t-fast); margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--text-muted); padding: 0 0 var(--s-5); max-width: 70ch; }
.last-order { margin-top: var(--s-4); }

/* ---------- forms ---------- */
.page-title { font-size: var(--fs-2xl); line-height: var(--lh-tight); font-weight: 700; margin-top: var(--s-4); }
.page-sub { color: var(--text-muted); margin-top: var(--s-1); font-size: var(--fs-sm); }
.form { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
.field { display: grid; gap: var(--s-2); }
.field > label, .field__label { font-size: var(--fs-sm); font-weight: 500; }
.field__label span, .field > label span { color: var(--text-muted); font-weight: 400; }
.input { width: 100%; height: 52px; padding: 0 var(--s-4); background: var(--surface-2); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); font-size: var(--fs-md); }
.input::placeholder { color: var(--text-muted); opacity: .8; }
.field[data-state="exists"] .input { border-color: var(--ok); }
.field[data-state="not_found"] .input, .field[data-state="invalid"] .input { border-color: var(--danger); }
.field[data-state="unknown"] .input { border-color: var(--warn); }
.field__msg { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); min-height: 21px; }
.field__msg .ico { margin-top: 2px; }
.field[data-state="exists"] .field__msg { color: var(--ok); }
.field[data-state="not_found"] .field__msg, .field[data-state="invalid"] .field__msg { color: var(--danger); }
.field[data-state="unknown"] .field__msg { color: var(--warn); }
.field__msg .skeleton { width: 120px; height: 12px; margin-top: 5px; }
.details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.details summary { min-height: var(--tap); display: flex; align-items: center; padding: 0 var(--s-4); cursor: pointer; font-size: var(--fs-sm); font-weight: 500; }
.details p { padding: 0 var(--s-4) var(--s-4); color: var(--text-muted); font-size: var(--fs-sm); }
.tiles { display: grid; gap: var(--s-2); }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile label { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 64px; padding: var(--s-2) var(--s-4); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; }
.tile input:checked + label { border-color: var(--accent); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface); }
.tile input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile__name { font-weight: 600; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.tile__tag { color: var(--text-muted); font-size: var(--fs-xs); font-weight: 400; display: block; }
.tile__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tiles--skel .skeleton { height: 64px; border-radius: var(--r-md); }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check label { display: flex; gap: var(--s-3); align-items: flex-start; min-height: 56px; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; font-size: var(--fs-sm); }
.check__box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.check__box svg { width: 16px; height: 16px; stroke: var(--text-on-accent); stroke-width: 3; fill: none; opacity: 0; }
.check input:checked + label .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + label .check__box svg { opacity: 1; }
.check input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.check[data-error="true"] label, .check[data-error="true"] .check__box { border-color: var(--danger); }
.check__err { display: flex; color: var(--danger); font-size: var(--fs-sm); margin-top: var(--s-1); gap: var(--s-2); align-items: center; }
.check__err:empty { display: none; }
.summary-list { display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.summary-list div { display: flex; justify-content: space-between; gap: var(--s-4); }
.summary-list dt { color: var(--text-muted); }
.summary-list dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.total { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--fs-2xl); font-weight: 700; margin-top: var(--s-3); }
.order-actions { display: grid; gap: var(--s-3); }
.hint { font-size: var(--fs-xs); color: var(--text-muted); }
.sticky-bar { display: none; }
@media (max-width: 767px) {
  body.has-sticky main { padding-bottom: calc(var(--sticky-h) + var(--s-4)); }
  .sticky-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: var(--s-3);
    padding: var(--s-3) var(--pad-x) calc(var(--s-3) + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line-strong); }
  .sticky-bar__sum { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-lg); line-height: 1.2; }
  .sticky-bar__sum small { display: block; font-family: var(--font); font-weight: 400; font-size: var(--fs-xs); color: var(--text-muted); }
  .sticky-bar .btn { width: auto; flex: none; }
  .order-actions__main { display: none; }
  .btn, .field, .check, .tile { scroll-margin-bottom: calc(var(--sticky-h) + 16px); }
}

/* ---------- order status page ---------- */
.order-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); flex-wrap: wrap; }
.order-head h1 { font-size: var(--fs-xl); font-weight: 700; }
.chip-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 500; }
.chip-status--warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.chip-status--ok { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); }
.chip-status--danger { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.chip-status--accent { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.stack { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.view { display: grid; gap: var(--s-4); animation: fade var(--t-med); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.pay-label { color: var(--text-muted); font-size: var(--fs-sm); }
.amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: clamp(28px, 9vw, 36px); line-height: 1.15; margin: var(--s-1) 0 var(--s-3); white-space: nowrap; }
.amount .kop { background: var(--accent-soft); color: var(--accent); border-bottom: 3px solid var(--accent); padding: 0 2px; }
.amount-row { display: grid; gap: var(--s-2); }
@media (min-width: 480px) { .amount-row { grid-template-columns: 1fr auto; align-items: end; } .amount-row .btn { width: auto; } }
.req { display: grid; gap: var(--s-3); margin: 0; }
.req__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.req__row dt { color: var(--text-muted); font-size: var(--fs-xs); }
.req__row dd { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 600; word-break: break-word; user-select: all; }
.timer-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.timer { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--fs-xl); font-weight: 700; }
.bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin: var(--s-2) 0; }
.bar > i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transition: transform 1s linear; }
.timer-wrap[data-tone="warn"] .bar > i { background: var(--warn); }
.timer-wrap[data-tone="danger"] .bar > i { background: var(--danger); }
.timer-wrap[data-tone="warn"] .timer { color: var(--warn); }
.timer-wrap[data-tone="danger"] .timer { color: var(--danger); }
.status-view { display: grid; gap: var(--s-3); justify-items: start; }
.status-view h2 { font-size: var(--fs-xl); }
.status-view p { color: var(--text-muted); }
.status-view p b { color: var(--text); font-weight: 600; }
.status-ico { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid currentColor; }
.status-ico .ico { width: 28px; height: 28px; }
.status-ico--ok { color: var(--ok); } .status-ico--warn { color: var(--warn); } .status-ico--danger { color: var(--danger); } .status-ico--accent { color: var(--accent); }
.livebar { width: 100%; height: 2px; background: var(--surface-2); position: relative; overflow: hidden; }
.livebar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; background: var(--accent); animation: run 1.6s ease-in-out infinite; }
.how-list { list-style: decimal; padding-left: var(--s-6); display: grid; gap: var(--s-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); }
.card h2 { font-size: var(--fs-lg); margin-bottom: var(--s-4); }
.timeline { display: grid; }
.tl { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); padding-bottom: var(--s-5); min-height: 24px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl--done::before { background: var(--ok); }
.tl__node { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; background: var(--bg); }
.tl__node svg { width: 12px; height: 12px; stroke: var(--text-on-accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tl--done .tl__node { background: var(--ok); border-color: var(--ok); }
.tl--current .tl__node { background: var(--accent); border-color: var(--accent); animation: pulse 1.2s infinite; }
.tl--fail .tl__node { background: var(--danger); border-color: var(--danger); }
.tl--fail-warn .tl__node { background: var(--warn); border-color: var(--warn); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,242,90,.5); } 100% { box-shadow: 0 0 0 8px rgba(200,242,90,0); } }
.tl__name { font-size: var(--fs-md); line-height: 20px; }
.tl--current .tl__name { font-weight: 600; }
.tl--future .tl__name { color: var(--text-muted); }
.tl__time { display: block; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.3; }
.tg-block { display: grid; gap: var(--s-2); }
.tg-block .lead { font-size: var(--fs-sm); }
.tg-block small { font-size: var(--fs-xs); color: var(--text-muted); }
.details-list { display: grid; gap: var(--s-3); }
.details-list div { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; }
.details-list dt { color: var(--text-muted); font-size: var(--fs-sm); }
.details-list dd { text-align: right; min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: var(--s-2); justify-content: flex-end; }
.details-list .icon-btn { width: 36px; height: 36px; }
.support-line { font-size: var(--fs-sm); color: var(--text-muted); }
.support-line a { text-decoration: underline; color: var(--text); }
.center-page { display: grid; gap: var(--s-4); justify-items: start; margin-top: var(--s-10); }
.center-page h1 { font-size: var(--fs-2xl); }
.skel-stack { display: grid; gap: var(--s-3); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 1280px) {
  .plan__big small { display: block; }
  .plan__price { min-height: 120px; }
}

/* ---------- страница «Мои заказы» ---------- */
.order-list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.order-card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: var(--s-4) var(--s-5); transition: border-color var(--t-fast), transform var(--t-fast); }
.order-card:active { transform: translateY(1px); }
@media (hover: hover) { .order-card:hover { border-color: var(--line-strong); } }
.order-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.order-card__num { font-size: var(--fs-lg); font-weight: 700; }
.order-card__plan { margin-top: var(--s-1); font-size: var(--fs-sm); }
.order-card__perf { border-top: 2px dashed var(--line); margin: var(--s-3) calc(-1 * var(--s-5)) var(--s-3); }
.order-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.order-card--simple .order-card__bottom { margin: 0; }
.order-card__sum { font-weight: 700; font-size: var(--fs-md); }
.order-card__meta { font-size: var(--fs-xs); margin-top: 2px; }
.order-card__go { flex: none; width: 20px; height: 20px; stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.empty { display: grid; justify-items: start; gap: var(--s-3); margin-top: var(--s-6); }
.empty h2 { font-size: var(--fs-xl); }
.empty .btn:not(.btn--ghost) { max-width: 320px; }
.bot-card { margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.bot-card h2 { margin: 0; }

/* ---------- Telegram Mini App ---------- */
.tabbar { display: none; }
html.tma { overscroll-behavior-y: none; --safe-t: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-l: max(var(--tg-safe-area-inset-left, 0px), env(safe-area-inset-left, 0px)); --safe-r: max(var(--tg-safe-area-inset-right, 0px), env(safe-area-inset-right, 0px));
  --safe-b: calc(max(var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px)); }
html.tma-tabs { --bottom-ui: calc(var(--tabbar-h) + var(--safe-b)); }
html.tma-main { --bottom-ui: calc(76px + var(--safe-b)); }
.tma body { padding: var(--safe-t) var(--safe-r) var(--bottom-ui) var(--safe-l); -webkit-tap-highlight-color: transparent; }
.tma .site-header, .tma .skip-link, .tma .site-footer .logo, .tma .footer__links, .tma .hero__art, .tma .hero__note,
.tma .hero__cta .btn--ghost, .tma .sticky-bar, .tma #submit-main, .tma #last-order { display: none !important; }
.tma .site-footer { margin-top: var(--s-8); padding: var(--s-5) 0 var(--s-4); }
.tma .tabbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l); background: var(--surface); border-top: 1px solid var(--line-strong); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  color: var(--text-muted); font-size: var(--fs-xs); font-weight: 500; min-height: var(--tap); }
.tab .ico { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: -1px; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tab + .tab::after { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; border-left: 2px dashed var(--line); }
/* витрина плотнее и короче */
.tma .hero { padding: var(--s-4) 0 var(--s-6); gap: var(--s-4); }
.tma .hero h1 { font-size: 26px; margin: var(--s-2) 0 var(--s-3); }
.tma .hero__lead { font-size: var(--fs-md); }
.tma .chips { margin-top: var(--s-3); }
.tma .hero__cta { margin-top: var(--s-4); }
.tma section.block { padding-top: var(--s-6); }
.tma section.block h2 { font-size: var(--fs-xl); }
.tma .page-title { margin-top: var(--s-4); }
@media (max-width: 767px) { .tma .toasts { bottom: calc(16px + var(--bottom-ui)); } }
