/* Orbita — стили сайта.
   Цвета и шрифты — из макета «Стиль и компоненты». Меняя цвет, меняй
   переменную в :root, а не значения в правилах ниже. */

/* ---------------------------------------------------------- шрифты
   Лежат на самом сайте: Google Fonts из России грузится нестабильно.
   Файлы разбиты по алфавитам, браузер скачивает только нужные.
   Знак ₽ вынесен в отдельный крошечный файл. */

@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("fonts/unbounded-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("fonts/unbounded-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("fonts/unbounded-rub-600.woff2") format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("fonts/unbounded-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("fonts/unbounded-rub-700.woff2") format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("fonts/unbounded-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("fonts/unbounded-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("fonts/unbounded-rub-800.woff2") format("woff2"); unicode-range: U+20BD; }

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("fonts/manrope-rub-400.woff2") format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("fonts/manrope-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("fonts/manrope-rub-500.woff2") format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("fonts/manrope-rub-600.woff2") format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-rub-700.woff2") format("woff2"); unicode-range: U+20BD; }

/* ---------------------------------------------------------- основа */

:root {
  --bg: #05080F;          /* Космос — фон */
  --surface: #0B111D;     /* Поверхность — карточки */
  --surface-2: #111A2B;   /* Поверхность 2 — чипы, поля */
  --surface-sel: #0F1A2E; /* выбранная карточка */
  --line: #1B2536;        /* Линии */
  --line-soft: #141C2B;
  --line-strong: #2A3854;
  --blue: #5B9BFF;        /* Орбита — акцент */
  --blue-hover: #7AAEFF;
  --blue-deep: #3563B8;   /* Глубокая орбита — графика */
  --blue-soft: #8DB8FF;
  --ink: #F3F6FC;         /* Звезда — текст */
  --ink-2: #C9D3E6;
  --mute: #A9B7D0;        /* Туманность — вторичный текст */
  --dim: #8290AA;
  --faint: #6F7D96;
  --ok: #7FE0B0;   --ok-bg: #0F2A21;   --ok-line: #1F4B3A;   --ok-dot: #3FCB8A;
  --wait: #F2C46B; --wait-bg: #2A1F0B;
  --bad: #FF9AA2;  --bad-bg: #2B1215;  --bad-line: #4A2530;

  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-sm: 8px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
  --gutter: 40px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

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

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }

p { margin: 0; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--blue); color: var(--bg);
  border-radius: var(--r); font-weight: 700;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------- типографика */

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
}

.display {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.01em;
}

.h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.15; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.3; }

.lead { font-size: 19px; line-height: 1.6; color: var(--mute); max-width: 56ch; }
.muted { color: var(--mute); }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.nums { font-variant-numeric: tabular-nums; white-space: nowrap; }

.wordmark {
  font-family: var(--display); font-weight: 800; letter-spacing: 0.02em;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.04;
}
.wordmark span { color: var(--blue); }

/* ---------------------------------------------------------- кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--r);
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { flex: none; }
.btn-primary { background: var(--blue); color: var(--bg); }
.btn-primary:hover { background: var(--blue-hover); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); font-weight: 600; }
.btn-ghost:hover { border-color: var(--blue); color: var(--ink); background: rgba(91, 155, 255, 0.08); }
.btn-danger { background: transparent; border-color: var(--bad-line); color: var(--bad); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }

.link-btn {
  background: none; border: 0; padding: 8px 4px; cursor: pointer;
  color: var(--dim); font: inherit; font-size: 15px; font-weight: 600;
}
.link-btn:hover { color: var(--ink); }

/* ---------------------------------------------------------- метки и чипы */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
  background: var(--surface-2); border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink-2);
}

.badge {
  display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 11px;
  border-radius: 13px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--surface-2); color: var(--mute);
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-info { background: transparent; border: 1px solid var(--line-strong); color: var(--blue-soft); }
.badge-wait { background: var(--wait-bg); color: var(--wait); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-live { background: transparent; border: 1px solid var(--ok-line); color: var(--ok); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok-dot); flex: none; }

/* ---------------------------------------------------------- шапка */

.top { border-bottom: 1px solid var(--line-soft); position: relative; z-index: 20; }
.top-in { min-height: 80px; display: flex; align-items: center; gap: 40px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; }
.brand-word span { color: var(--blue); }

.nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.top-actions form { margin: 0; }

.balance-pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  background: var(--surface-2); border-radius: var(--r);
  color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums;
}
.balance-pill:hover { color: var(--ink); background: #16223A; }

/* меню на телефоне — <details>, работает без скриптов */
.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--blue); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 12px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.menu-panel a:not(.btn) { padding: 12px 0; color: var(--ink); font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.menu-panel .btn { margin-top: 12px; }
.menu-panel form { margin: 0; }

/* ---------------------------------------------------------- разделы */

.section { padding-top: 96px; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.section-rule { border-top: 1px solid var(--line-soft); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
}

/* ---------------------------------------------------------- главная: первый экран */

.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: 48px; padding: 88px 0 96px;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hero-pay { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; color: var(--dim); }
.hero-pay b { color: var(--ink-2); font-weight: 500; }

.hero-art { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 460; justify-self: end; }
.hero-art svg { width: 100%; height: 100%; }
.planet-tag {
  position: absolute; display: flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.planet-tag:hover { color: var(--ink); border-color: var(--blue); }
.planet-tag small { font-size: 11px; font-weight: 600; color: var(--blue-soft); }
.planet-tag.is-market { left: 73.5%; top: 20.8%; }
.planet-tag.is-work { left: 4.3%; top: 34.3%; color: var(--ink-2); }

/* ---------------------------------------------------------- главная: сервисы */

.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc {
  padding: 40px; display: flex; flex-direction: column; gap: 24px; min-height: 460px;
}
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-num { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--dim); }
.svc p { font-size: 17px; color: var(--mute); max-width: 48ch; }
.svc .link-arrow { margin-top: auto; font-size: 16px; }

/* ---------------------------------------------------------- главная: преимущества и шаги */

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { font-size: 15px; color: var(--mute); }

.icon-box {
  width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--r);
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 14px; border-radius: var(--r-lg); }
.step-num { font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--blue); line-height: 1; }
.step h3 { font-size: 19px; font-weight: 700; }
.step p { font-size: 15px; color: var(--mute); }

.band {
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  border-radius: 24px;
}
.band-text { display: flex; flex-direction: column; gap: 12px; }
.band-text p { font-size: 17px; color: var(--mute); }
.band .h2 { font-size: clamp(22px, 2.4vw, 32px); }

/* ---------------------------------------------------------- подвал */

.foot { margin-top: 96px; border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 64px 0 48px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-title { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 24px 0 40px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--dim);
}
.foot-bottom p { max-width: 70ch; }

/* ---------------------------------------------------------- шапка страниц */

.page-head { padding: 56px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------------------------------------------------------- каталог */

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-nav[hidden] { display: none; }
.cat-nav button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.cat-nav button:hover { border-color: var(--line-strong); color: var(--ink); }
.cat-nav button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 700; }
.p-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: -6px; }
.products li[hidden] { display: none; }

.cat-group { scroll-margin-top: 24px; }
.cat-group + .cat-group { margin-top: 56px; }
.cat-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.cat-title h2 { font-family: var(--display); font-weight: 600; font-size: 24px; }
.cat-title span { font-size: 14px; color: var(--dim); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.product {
  height: 100%; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); transition: border-color .15s;
}
.product:hover { border-color: var(--blue); color: var(--ink); }
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-icon {
  width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: 12px;
  font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink-2);
}
.product-name { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.product-desc {
  font-size: 15px; line-height: 1.55; color: var(--mute);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-size: 15px; color: var(--ink-2); }
.price b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.product-go {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--r); font-size: 14px; font-weight: 600;
}
.product:hover .product-go { background: var(--blue); border-color: var(--blue); color: var(--bg); }

.empty { padding: 40px; text-align: center; color: var(--mute); border-radius: var(--r-lg); }

/* ---------------------------------------------------------- карточка услуги */

.service-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: start;
  padding-bottom: 8px;
}
.service-info { display: flex; flex-direction: column; gap: 20px; padding-top: 8px; }
.service-price { font-size: 17px; color: var(--ink-2); }
.service-price b { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--ink); }
.service-desc { font-size: 17px; line-height: 1.65; color: var(--mute); white-space: pre-line; max-width: 62ch; }

.how-mini { list-style: none; margin: 12px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.how-mini li { display: flex; gap: 16px; align-items: flex-start; }
.how-mini b { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--blue); min-width: 28px; line-height: 1.6; }
.how-mini span { font-size: 15px; color: var(--mute); }
.how-mini strong { color: var(--ink); font-weight: 700; }

.checkout { position: sticky; top: 24px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.checkout-head { display: flex; flex-direction: column; gap: 6px; }
.checkout-head h2 { font-family: var(--display); font-weight: 600; font-size: 22px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-hint { font-size: 13px; color: var(--dim); }
.field-hint.is-warn { color: var(--wait); }
.input {
  width: 100%; min-height: 48px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r);
  color: var(--ink); font: inherit; font-size: 16px;
}
.input::placeholder, textarea::placeholder { color: var(--faint); }
.input:hover { border-color: #3A4A6B; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91, 155, 255, 0.18); }
.input-num { font-weight: 700; font-variant-numeric: tabular-nums; }

.fixed-qty { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; }
.fixed-qty b { font-variant-numeric: tabular-nums; }

.pay-methods { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pay-methods legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.radio-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.radio-card:hover { border-color: var(--line-strong); }
.radio-card input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--blue); }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--surface-sel); }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.radio-text { display: flex; flex-direction: column; gap: 2px; }
.radio-text b { font-size: 15px; font-weight: 600; }
.radio-text span { font-size: 13px; color: var(--mute); line-height: 1.45; }

.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.total span { font-size: 16px; font-weight: 600; }
.total output { font-family: var(--display); font-weight: 700; font-size: 28px; font-variant-numeric: tabular-nums; }

.form-note { font-size: 13px; line-height: 1.55; color: var(--dim); }

.form-error {
  padding: 12px 16px; background: var(--bad-bg); border: 1px solid var(--bad-line);
  border-radius: var(--r); color: var(--bad); font-size: 15px;
}

.notice-out { padding: 12px 16px; background: var(--wait-bg); border-radius: var(--r); color: var(--wait); font-size: 15px; }

/* ---------------------------------------------------------- страница заказа */

.order-page { padding-top: 56px; display: flex; flex-direction: column; gap: 24px; }
.order-title { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.order-sub { font-size: 17px; color: var(--mute); }

.panel { padding: 28px; display: flex; flex-direction: column; gap: 16px; border-radius: var(--r-lg); }
.panel-title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.panel-row { display: flex; flex-wrap: wrap; gap: 10px; }
.panel-row form { margin: 0; }

.pay-amount { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pay-details {
  font-family: var(--mono); font-size: 17px; word-break: break-word; user-select: all;
  padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
}
.pay-warn { font-size: 14px; color: var(--wait); }

.guest-note {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  background: var(--surface-sel); border: 1px solid #22385F; border-radius: 12px;
  font-size: 15px; color: var(--ink-2);
}
.guest-note svg { flex: none; margin-top: 2px; }

.state { display: flex; gap: 16px; align-items: flex-start; }
.state-icon {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--surface-2);
}
.state-ok .state-icon { background: var(--ok-bg); }
.state-bad .state-icon { background: var(--bad-bg); }
.state h2 { font-family: var(--display); font-weight: 600; font-size: 22px; margin-bottom: 6px; }
.state p { color: var(--mute); }

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.confirm-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 16px; font-size: 16px; }
.confirm-grid dt { color: var(--dim); }
.confirm-grid dd { margin: 0; font-weight: 700; word-break: break-word; }

/* ---------------------------------------------------------- кабинет */

.cab-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; border-radius: var(--r-lg); }
.tile span { font-size: 14px; color: var(--dim); }
.tile strong { font-family: var(--display); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }

.topup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.topup .field { flex: 1 1 220px; max-width: 320px; }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.orders { width: 100%; border-collapse: collapse; font-size: 15px; }
.orders th {
  text-align: left; padding: 16px 20px 12px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); white-space: nowrap;
}
.orders td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.orders td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.orders a { font-weight: 700; }

/* ---------------------------------------------------------- вход и служебные */

.auth-card { max-width: 520px; margin: 72px auto 0; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.tg-widget { min-height: 48px; }

.notice { max-width: 620px; margin: 88px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.notice p { color: var(--mute); font-size: 17px; }

/* ---------------------------------------------------------- документы */

.legal { padding-top: 56px; max-width: 76ch; }
.legal h1 { margin-bottom: 28px; }
.legal-body { white-space: pre-wrap; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-body b, .legal-body strong { color: var(--ink); }

/* ---------------------------------------------------------- Ворк */

.work-hero { padding: 72px 0 24px; display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.work-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-col { padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.work-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.work-steps li { display: flex; gap: 16px; }
.work-steps b { font-family: var(--display); font-weight: 700; color: var(--blue); min-width: 28px; }
.work-steps span { color: var(--mute); }

/* ---------------------------------------------------------- адаптив */

@media (max-width: 1120px) {
  .nav { gap: 24px; }
  .hero { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero-art { justify-self: center; max-width: 480px; }
  .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav, .top-actions { display: none; }
  .menu { display: block; }
  .top-in { min-height: 64px; }
  .section { padding-top: 64px; }
  .section-head { margin-bottom: 28px; }
  .svc-grid, .work-cols { grid-template-columns: 1fr; }
  .svc { min-height: 0; padding: 28px; }
  .band { flex-direction: column; align-items: stretch; padding: 32px 24px; }
  .foot { margin-top: 64px; }
  .foot-grid { grid-template-columns: 1fr 1fr; padding: 48px 0 32px; }
  .service-layout { grid-template-columns: 1fr; }
  .checkout { position: static; padding: 24px; }
  .cab-tiles { grid-template-columns: 1fr 1fr; }
  .lead { font-size: 17px; }
}

@media (max-width: 560px) {
  .features, .steps, .cab-tiles { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .products { grid-template-columns: 1fr; }
  .product { padding: 22px; }
  .panel { padding: 22px; }
  .panel-row > form, .panel-row > .btn { flex: 1 1 100%; }
  .panel-row .btn { width: 100%; padding: 0 14px; font-size: 15px; }
  .auth-card { padding: 28px 22px; margin-top: 40px; }
  .confirm-grid { grid-template-columns: 1fr; gap: 2px; }
  .confirm-grid dd { margin-bottom: 10px; }
  .work-col { padding: 26px; }
  .planet-tag { height: 28px; font-size: 12px; padding: 0 10px; }
}

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


/* Готовые номиналы и ступени цены.  маркер_правки: pricing_v1 */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(255, 255, 255, .14));
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.chip b { font-size: .95rem; }
.chip span { font-size: .8rem; opacity: .7; }
.chip:hover { border-color: var(--accent, #8b7dff); }
.chip.is-on {
  border-color: var(--accent, #8b7dff);
  box-shadow: 0 0 0 1px var(--accent, #8b7dff) inset;
}
.tier-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: .9rem;
  opacity: .8;
}
.tier-list li { margin: 2px 0; }
