/* Буран AI — стили сайта. Без сборки и внешних шрифтов. */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #0f1b2d;
  --muted: #5b6b80;
  --border: #dbe3ee;
  --brand: #0b1f3a;
  --accent: #1673e6;
  --accent-ink: #ffffff;
  --accent-soft: #e3efff;
  --ok: #138a4b;
  --warn: #b26a00;
  --err: #c62828;
  --think: #6d3fd1;
  --think-soft: #efe8ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2c;
    --surface-2: #17223a;
    --text: #e6edf7;
    --muted: #9aabc2;
    --border: #24324d;
    --brand: #e6edf7;
    --accent: #4a9bff;
    --accent-ink: #06101f;
    --accent-soft: #15284a;
    --ok: #3ccf87;
    --warn: #f0b44c;
    --err: #ff6b6b;
    --think: #c4b0ff;
    --think-soft: #2a2150;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2, .h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3, .h3 { font-size: 1.2rem; }
.h4 { font-size: 1rem; margin-bottom: .4em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; word-break: break-all; }
ul { padding-left: 1.2em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 700; }
.section { padding: 48px 16px; }
.section.alt { background: var(--surface-2); }
.page-pad { padding-top: 80px; padding-bottom: 80px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--accent); border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px;
}
.btn-ghost { background: transparent; color: var(--accent); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .925rem; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- шапка */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand-sm { font-size: 1rem; margin-bottom: 8px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--accent); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; position: relative; margin: 0 auto; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }

@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 12px; }
}

/* ---------- главная */
.hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 76px; background: linear-gradient(160deg, #0a1a33 0%, #0f356b 52%, #1a6ae0 100%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); letter-spacing: -0.02em; }
.hero .eyebrow { color: #9fd0ff; }
.hero .lead { color: #cfe0f7; }
.hero-note { color: #a9c1e0; font-size: .875rem; margin: 0; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.btn-snow { background: #fff; border-color: #fff; color: #0b1f3a; box-shadow: 0 8px 24px rgb(0 0 0 / 25%); }
.btn-ghost-light { background: transparent; border-color: rgb(255 255 255 / 55%); color: #fff; }
.btn-ghost-light:hover { background: rgb(255 255 255 / 10%); }
.hero-art { position: relative; padding: 0 0 56px 0; }
.hero-card { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 20px 60px rgb(0 0 0 / 35%); padding: 20px; transform: rotate(1.5deg); }
.hero-mascot { position: absolute; right: -36px; bottom: -52px; width: 220px; }
.chat-demo { display: flex; flex-direction: column; gap: 12px; font-size: .95rem; }
.msg { padding: 12px 14px; border-radius: 14px; max-width: 92%; }
.msg p, .msg ul { margin: 0 0 .4em; }
.msg .msg-model { font-size: .75rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.msg-ai { background: var(--surface-2); border-bottom-left-radius: 4px; }
.sources { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .85rem; }
.sources span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .75rem; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 28px; }
  .hero-in { grid-template-columns: 1fr; gap: 8px; }
  .hero-card { display: none; }
  .hero-art { padding: 0; }
  .hero-mascot { position: static; width: 170px; margin: 8px auto 0; }
}

/* метель: три слоя снежинок из градиентов, без картинок */
.snow, .snow::before, .snow::after { position: absolute; inset: 0; pointer-events: none; }
.snow::before, .snow::after { content: ""; }
.snow {
  opacity: .5;
  background-image:
    radial-gradient(2px 2px at 24px 36px, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 120px 90px, #fff 50%, transparent 52%),
    radial-gradient(2.4px 2.4px at 70px 150px, #fff 50%, transparent 52%);
  background-size: 180px 180px;
  animation: snow-a 16s linear infinite;
}
.snow::before {
  opacity: .7;
  background-image:
    radial-gradient(3px 3px at 40px 60px, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 190px 210px, #fff 50%, transparent 52%);
  background-size: 260px 260px;
  animation: snow-b 24s linear infinite;
}
.snow::after {
  opacity: .5;
  background-image: radial-gradient(1.4px 1.4px at 30px 20px, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 90px 80px, #cfe6ff 50%, transparent 52%);
  background-size: 120px 120px;
  animation: snow-c 10s linear infinite;
}
@keyframes snow-a { to { background-position: 180px 360px; } }
@keyframes snow-b { to { background-position: 260px 520px; } }
@keyframes snow-c { to { background-position: 240px 240px; } }

/* лента моделей */
.models-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.models-strip:hover .marquee { animation-play-state: paused; }
.marquee-track { display: flex; gap: 10px; margin: 0; padding: 0 5px; list-style: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .9rem; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

/* преимущества */
.why { display: grid; gap: 28px; align-items: center; margin-top: 32px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.why h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.why-text p { color: var(--muted); }
.why-text p:last-child { margin-bottom: 0; }
.why-models { grid-template-columns: 1.1fr .9fr; }
.why-vs { grid-template-columns: 210px 1fr 210px; grid-template-areas: "bad text good"; }
.why-vs .why-text { grid-area: text; text-align: center; }
.vs { margin: 0; padding: 12px 8px; text-align: center; border-radius: 20px; }
.vs-bad { grid-area: bad; background: color-mix(in srgb, var(--muted) 8%, transparent); }
.vs-good { grid-area: good; background: radial-gradient(circle at 50% 42%, var(--accent-soft), transparent 72%); }
.vs .mascot { width: 100%; max-width: 190px; height: auto; margin: 0 auto; }
.mascot.flip { transform: scaleX(-1); }
.vs figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.vs-good figcaption { color: var(--accent); font-weight: 700; }
.more { font-weight: 600; text-decoration: none; }
.counts { padding: 22px; }
.counts-title { font-weight: 700; margin-bottom: 14px; }
.count-row { display: grid; grid-template-columns: minmax(70px, auto) 1fr 32px; gap: 12px; align-items: center; margin-bottom: 12px; }
.count-row .bar { height: 12px; }
.count-row .bar-fill { background: linear-gradient(90deg, #4aa8ff, #1160d6); }
.count-name { font-weight: 600; }
.count-n { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.counts-foot { margin: 6px 0 0; }
@media (max-width: 860px) {
  .why { padding: 20px; gap: 16px; }
  .why-models { grid-template-columns: 1fr; }
  .why-vs { grid-template-columns: 1fr 1fr; grid-template-areas: "text text" "bad good"; }
  .vs .mascot { max-width: 140px; }
}

/* призыв внизу */
.cta-band { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 32px 40px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #0f356b, #1a6ae0); box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0f7; }
.cta-mascot { border-radius: 50%; background: radial-gradient(circle at 50% 55%, rgb(255 255 255 / 24%), transparent 66%); }
@media (max-width: 700px) {
  .cta-band { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; gap: 8px; }
  .cta-mascot { width: 150px; margin: 0 auto; }
}

/* персонажи: картинки с прозрачным фоном */
.mascot { display: block; width: 100%; height: auto; }
.hero-mascot .mascot, .cta-mascot .mascot { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* коротко о главном */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.trust-item img { width: 48px; height: 48px; flex: none; }
.trust-item p { margin: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.trust-item span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; } .trust-item { padding: 12px 14px; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.feature { transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); }
.feature .icon { display: block; width: 56px; height: 56px; margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }
.steps { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 16px 60px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 28px 0; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan .btn { margin-top: auto; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-current { border-color: var(--ok); }
.price { font-size: 1.9rem; font-weight: 800; margin-bottom: .4em; }
.price .small { font-weight: 500; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.badge.badge-hot { background: linear-gradient(90deg, #4aa8ff, #1160d6); }
.plan-models { align-self: flex-start; background: var(--accent-soft); color: var(--accent); font-weight: 700; border-radius: 999px; padding: 3px 12px; font-size: .85rem; margin: 0 0 14px; }

/* таблица моделей по тарифам */
.mtable-wrap { overflow-x: auto; margin-top: 24px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.mtable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mtable th, .mtable td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.mtable tbody:last-child tr:last-child > * { border-bottom: 0; }
.mtable thead th { text-align: center; font-size: .92rem; vertical-align: bottom; }
.mtable .mt-name { text-align: left; font-weight: 500; }
.mt-count { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.mt-family th { background: var(--surface-2); text-align: left; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 7px 12px; }
.mt-cell { text-align: center; width: 84px; }
.yes { color: var(--ok); font-weight: 800; }
.no { color: var(--muted); opacity: .45; }
.tag { display: inline-block; margin-left: 4px; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--think-soft); color: var(--think); white-space: nowrap; vertical-align: 1px; }
@media (max-width: 600px) {
  .mtable { font-size: .85rem; }
  .mtable th, .mtable td { padding: 8px 6px; }
  .mt-cell { width: 50px; }
  .mtable thead th { font-size: .74rem; }
  .tag { display: table; margin: 3px 0 0; }
}
.badge { position: absolute; top: -12px; left: 18px; background: var(--ok); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; margin: 0; }
.notice { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 12px; padding: 12px 16px; }

/* ---------- формы */
.auth-box { max-width: 440px; padding-top: 48px; padding-bottom: 64px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
input[type="email"], input[type="password"], input[type="text"], textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: 400 1rem/1.4 var(--font);
}
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: var(--err); }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-error { color: var(--err); margin: 0; font-size: .95rem; }
.done { padding: 8px 0; }

/* ---------- кабинет */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.account-head h1 { margin-bottom: .2em; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.account-grid .wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
.plan-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 1.1rem; }
.limits { display: grid; gap: 14px; margin: 16px 0 20px; }
.limit-top { display: flex; justify-content: space-between; font-size: .95rem; margin-bottom: 6px; }
.limit p { margin: 4px 0 0; }
.bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .6s ease; }
.bar-fill.low { background: var(--warn); }
.credits-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; margin-bottom: 14px; }
.credits-head p { margin: 0; }
.credits-balance { font-size: 1.1rem; }
.credits-balance strong { font-size: 1.8rem; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.package { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.package:hover, .package:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.package:disabled { opacity: .6; cursor: wait; }
.package-title { font-weight: 600; }
.package-credits { color: var(--muted); font-size: .95rem; }
.package-price { font-weight: 700; color: var(--accent); }
td.plus { color: var(--ok); font-weight: 600; }
td.minus { color: var(--muted); }
.sec-email, .sec-tg, .sec-pw { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }

/* ---------- вход через Telegram */
.or-sep { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--muted); font-size: .9rem; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.tg-hint { margin: 8px 0 0; }
.tg-wait { margin-top: 12px; display: grid; gap: 8px; }
.tg-wait p { margin: 0; }
.tg-login .form-error { margin-top: 12px; }
.support { display: flex; flex-direction: column; }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px; margin-bottom: 12px; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 12px; }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.bubble-user { align-self: flex-end; background: var(--accent-soft); }
.bubble-admin { align-self: flex-start; background: var(--surface-2); }
.support-form { display: flex; gap: 8px; align-items: flex-end; }
.support-form textarea { min-height: 44px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td:nth-child(3) { white-space: normal; min-width: 180px; }
@media (max-width: 600px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; white-space: normal; text-align: right; }
  .table td::before { content: attr(data-label); color: var(--muted); text-align: left; flex: none; }
  .table td:nth-child(3) { min-width: 0; }
}
.status { font-weight: 600; }
.status-fulfilled { color: var(--ok); }
.status-pending, .status-paid { color: var(--warn); }
.status-canceled, .status-failed, .status-refunded { color: var(--muted); }

/* ---------- окно оплаты */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgb(5 12 24 / 55%); }
.modal-body { padding: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.quote { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 12px; }
.quote dd { margin: 0; text-align: right; }

/* ---------- юридические страницы */
.legal h2 { font-size: 1.15rem; margin-top: 1.6em; }

/* ---------- подвал */
.footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px; background: var(--surface); }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.footer-nav a { color: var(--muted); }

/* ---------- уведомление */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--brand); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 50; max-width: calc(100vw - 32px); }
.toast.err { background: var(--err); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .mascot, .mascot *, .snow, .snow::before, .snow::after, .marquee { animation: none !important; }
  .marquee { width: auto; flex-wrap: wrap; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
}
