/* =========================================================================
   2B2T.SAHAREV.ORG — дизайн-система «Obsidian Monolith / Terminal Anarchy»
   ========================================================================= */

:root {
  /* Фон: обсидиан → бедрок */
  --bg-void: #090a0f;
  --bg-deep: #0d0f16;
  --bg-panel: #11131a;
  --bg-raise: #181b24;
  --bg-hover: #1f2431;

  /* Границы */
  --line: #1e2330;
  --line-soft: #171b25;
  --line-strong: #2b3242;

  /* Текст */
  --text: #e8edf5;
  --text-dim: #98a3b8;
  --text-mute: #626d81;

  /* Акценты */
  --prio: #00ff88;
  --prio-deep: #10b981;
  --prio-glow: rgba(0, 255, 136, 0.25);
  --warn: #f59e0b;
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.22);

  --font-display: 'Unbounded', 'Syne', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shell: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Координатная сетка + виньетка — фон всего сайта */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 30%, transparent 78%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% -8%, rgba(0, 255, 136, 0.09), transparent 60%),
    radial-gradient(ellipse 40% 30% at 88% 12%, rgba(239, 68, 68, 0.05), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--prio); color: #05130c; }

/* ---------------------------------------------------------------- Layout */

.shell {
  width: min(var(--shell), 100% - 40px);
  margin-inline: auto;
}

.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--prio);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--prio);
  box-shadow: 0 0 12px var(--prio-glow);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }

.h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  margin-bottom: 14px;
}
.lede { color: var(--text-dim); font-size: 17px; max-width: 62ch; margin: 0 0 40px; }

/* ---------------------------------------------------------------- Header */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(9, 10, 15, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: linear-gradient(160deg, var(--bg-raise), var(--bg-panel));
  color: var(--prio);
  font-size: 13px;
  box-shadow: inset 0 0 18px rgba(0, 255, 136, 0.07);
}
.logo__mark span { display: block; transform: translateY(-1px); }
.logo b { color: var(--prio); }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-dim);
}
.nav a { position: relative; padding: 4px 0; transition: color .18s; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--prio);
  transition: width .22s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-panel);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--prio);
  box-shadow: 0 0 0 0 var(--prio-glow);
  animation: pulse 2.4s infinite;
}
.dot--off { background: var(--danger); animation: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 40px; height: 38px;
  cursor: pointer;
}
.burger span { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 3px auto; }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s, box-shadow .22s, background .18s, border-color .18s;
  position: relative;
  overflow: hidden;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:not(:disabled):active { transform: translateY(1px); }

.btn--prio {
  background: linear-gradient(135deg, var(--prio), var(--prio-deep));
  color: #04150c;
  box-shadow: 0 0 20px var(--prio-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--prio:not(:disabled):hover { box-shadow: 0 0 34px rgba(0, 255, 136, 0.42); }

.btn--ghost {
  background: var(--bg-panel);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { background: var(--bg-hover); border-color: var(--prio-deep); }

.btn--wide { width: 100%; padding: 16px 22px; font-size: 14.5px; }
.btn--sm { padding: 9px 14px; font-size: 12px; }

/* Сканлайн-глитч по кнопке */
.btn--prio::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px);
  opacity: 0;
  transition: opacity .2s;
}
.btn--prio:hover::after { opacity: 1; }

/* ---------------------------------------------------------------- Hero */

.hero { padding: 64px 0 24px; position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--prio);
  text-shadow: 0 0 32px var(--prio-glow);
}
.hero__sub {
  color: var(--text-dim);
  font-size: 17.5px;
  max-width: 54ch;
  margin-bottom: 28px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 19, 26, .7);
  font-size: 13px;
  color: var(--text-dim);
}
.fact b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------- Виджет сравнения очереди */

.queue {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.queue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.queue__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.queue__live { display: inline-flex; align-items: center; gap: 7px; color: var(--prio); }

.qrow + .qrow { margin-top: 18px; }
.qrow__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 9px;
}
.qrow__label { font-size: 14px; color: var(--text-dim); }
.qrow__label b { color: var(--text); font-weight: 600; }
.qrow__val { font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.qrow--bad .qrow__val { color: var(--danger); }
.qrow--good .qrow__val { color: var(--prio); }

.bar {
  height: 12px;
  border-radius: 99px;
  background: var(--bg-void);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.bar__fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(.22, .8, .28, 1);
  position: relative;
}
.bar--bad .bar__fill {
  background: linear-gradient(90deg, #7f1d1d, var(--danger));
  box-shadow: 0 0 16px var(--danger-glow);
}
.bar--good .bar__fill {
  background: linear-gradient(90deg, var(--prio-deep), var(--prio));
  box-shadow: 0 0 18px var(--prio-glow);
}
.bar__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 8px);
}

.qrow__note { margin-top: 7px; font-size: 12.5px; color: var(--text-mute); font-family: var(--font-mono); }

.queue__verdict {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-dim);
}
.queue__verdict b { color: var(--prio); font-family: var(--font-mono); }

/* ---------------------------------------------------------------- Карта заказа */

.order-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(0, 255, 136, .05), transparent 26%),
    linear-gradient(180deg, var(--bg-raise), var(--bg-panel));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 255, 136, .05);
  padding: 26px;
  position: sticky;
  top: 92px;
}
.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.order-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.order-card__step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: .1em;
}

.field { margin-bottom: 16px; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.input {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-void);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  transition: border-color .18s, box-shadow .18s;
}
.input::placeholder { color: #4a5468; }
.input:focus {
  outline: none;
  border-color: var(--prio-deep);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, .1);
}
.input--err { border-color: var(--danger); }

/* Ник + скин */
.nick-row { display: flex; gap: 12px; align-items: stretch; }
.nick-row .input { flex: 1; text-transform: none; }

.skin {
  width: 56px;
  min-width: 56px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg-void) center/cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--text-mute);
  font-size: 10px;
  font-family: var(--font-mono);
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
}
.skin img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.skin--ok { border-color: var(--prio-deep); box-shadow: 0 0 18px var(--prio-glow); }
.skin--err { border-color: var(--danger); }
.skin__spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--prio);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hint { font-size: 12.5px; margin-top: 8px; color: var(--text-mute); min-height: 18px; }
.hint--ok { color: var(--prio); }
.hint--err { color: var(--danger); }
.hint b { font-family: var(--font-mono); }

/* Тарифы */
.tariffs { display: grid; gap: 10px; }
.tariff {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-void);
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .12s;
  position: relative;
}
.tariff:hover { background: var(--bg-hover); }
.tariff input { position: absolute; opacity: 0; pointer-events: none; }
.tariff__radio {
  width: 18px; height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.tariff__radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--prio);
  transform: scale(0);
  transition: transform .16s;
}
.tariff__name { font-weight: 600; font-size: 15px; }
.tariff__sub { font-size: 12.5px; color: var(--text-mute); }
.tariff__price { text-align: right; font-family: var(--font-mono); font-weight: 700; font-size: 16px; }
.tariff__old {
  display: block;
  font-size: 11.5px;
  color: var(--text-mute);
  text-decoration: line-through;
  font-weight: 400;
}
.tariff.is-active {
  border-color: var(--prio-deep);
  background: rgba(0, 255, 136, .05);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, .18), 0 0 26px rgba(0, 255, 136, .08);
}
.tariff.is-active .tariff__radio { border-color: var(--prio); }
.tariff.is-active .tariff__radio::after { transform: scale(1); }
.tariff__badge {
  position: absolute;
  top: -8px; right: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--prio);
  color: #04150c;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* Промокод */
.promo-row { display: flex; gap: 10px; }
.promo-row .input { flex: 1; text-transform: uppercase; }

/* Итог */
.total {
  margin: 20px 0 16px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-void);
}
.total__row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-dim);
}
.total__row + .total__row { margin-top: 7px; }
.total__row--sum {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}
.total__row--sum b {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--prio);
  text-shadow: 0 0 24px var(--prio-glow);
}
.total__discount { color: var(--prio); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-mute);
  margin: 14px 0 16px;
  cursor: pointer;
}
.check input { margin-top: 3px; accent-color: var(--prio-deep); width: 15px; height: 15px; }
.check a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }

/* Иконки способов оплаты */
.paylist {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 14px;
}
.paychip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-void);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--text-mute);
}

.form-error {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(239, 68, 68, .4);
  border-radius: var(--r-sm);
  background: rgba(239, 68, 68, .08);
  color: #fca5a5;
  font-size: 13px;
  display: none;
}
.form-error.is-visible { display: block; }

/* ---------------------------------------------------------------- Доверие */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  padding: 22px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.stat__value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--prio);
  line-height: 1.1;
}
.stat__label { font-size: 13.5px; color: var(--text-dim); margin-top: 6px; }

.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 26px; }
.badge-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  transition: border-color .2s, background .2s;
}
.badge-link:hover { border-color: var(--prio-deep); background: var(--bg-raise); }
.badge-link__ico {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-void);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--prio);
}
.badge-link__t { font-weight: 600; font-size: 14.5px; }
.badge-link__s { font-size: 12.5px; color: var(--text-mute); font-family: var(--font-mono); }
.badge-link__go { margin-left: auto; color: var(--text-mute); font-size: 18px; }

/* ---------------------------------------------------------------- Шаги */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; counter-reset: s; }
.step {
  position: relative;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  overflow: hidden;
}
.step::before {
  counter-increment: s;
  content: '0' counter(s);
  position: absolute;
  top: 12px; right: 16px;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: rgba(255, 255, 255, .04);
  line-height: 1;
}
.step h3 { font-size: 17px; margin-bottom: 9px; }
.step p { color: var(--text-dim); font-size: 14.5px; margin: 0; }
.step code {
  font-family: var(--font-mono);
  color: var(--prio);
  background: rgba(0, 255, 136, .08);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}

/* ---------------------------------------------------------------- Отзывы */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.review { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-panel); padding: 20px; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__ava {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--bg-void) center/cover;
  border: 1px solid var(--line-strong);
  image-rendering: pixelated;
}
.review__nick { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; }
.review__meta { font-size: 11.5px; color: var(--text-mute); }
.review__stars { margin-left: auto; color: var(--warn); font-size: 13px; letter-spacing: 1px; }
.review p { margin: 0; font-size: 14.5px; color: var(--text-dim); }

/* ---------------------------------------------------------------- FAQ */

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-panel); overflow: hidden; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 500;
  transition: background .18s;
}
.faq__q:hover { background: var(--bg-raise); }
.faq__q::before {
  content: '>';
  font-family: var(--font-mono);
  color: var(--prio);
  transition: transform .2s;
}
.faq__item.is-open .faq__q::before { transform: rotate(90deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--text-dim);
  font-size: 14.5px;
}
.faq__a > div { padding: 0 20px 18px 46px; }
.faq__item.is-open .faq__a { max-height: 340px; }

/* ---------------------------------------------------------------- Footer */

.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
  padding: 52px 0 34px;
  margin-top: 40px;
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: var(--text-dim); font-size: 14px; transition: color .16s; }
.footer a:hover { color: var(--prio); }
.footer__note { color: var(--text-mute); font-size: 12.5px; margin-top: 14px; max-width: 46ch; }
.footer__bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------------- Order page */

.track { max-width: 780px; margin-inline: auto; padding: 48px 0 24px; }
.track__card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-raise), var(--bg-panel));
  padding: 30px;
}
.track__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.track__ava {
  width: 64px; height: 64px;
  border-radius: 12px;
  border: 1px solid var(--prio-deep);
  background: var(--bg-void) center/cover;
  box-shadow: 0 0 22px var(--prio-glow);
  image-rendering: pixelated;
}
.track__id { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: .1em; }
.track__nick { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.pill {
  margin-left: auto;
  padding: 8px 15px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: var(--bg-void);
  color: var(--text-dim);
  white-space: nowrap;
}
.pill--paid { color: var(--warn); border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .1); }
.pill--done { color: var(--prio); border-color: rgba(0, 255, 136, .45); background: rgba(0, 255, 136, .09); }
.pill--dead { color: var(--danger); border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .09); }

.progress { display: grid; gap: 0; margin: 8px 0 26px; }
.pstep { display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.pstep__rail { display: grid; justify-items: center; }
.pstep__dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg-void);
  margin-top: 4px;
  transition: all .3s;
}
.pstep__line { width: 2px; flex: 1; background: var(--line); min-height: 30px; margin: 4px 0; }
.pstep:last-child .pstep__line { display: none; }
.pstep__body { padding-bottom: 20px; }
.pstep__t { font-weight: 600; font-size: 15px; }
.pstep__d { font-size: 13.5px; color: var(--text-mute); }
.pstep.is-done .pstep__dot { border-color: var(--prio); background: var(--prio); box-shadow: 0 0 14px var(--prio-glow); }
.pstep.is-done .pstep__line { background: linear-gradient(180deg, var(--prio-deep), var(--line)); }
.pstep.is-current .pstep__dot {
  border-color: var(--prio);
  background: var(--bg-void);
  animation: pulse 1.8s infinite;
}
.pstep.is-current .pstep__t { color: var(--prio); }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; }
.kv__item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-void); padding: 13px 15px; }
.kv__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); }
.kv__v { font-size: 15px; font-weight: 600; margin-top: 4px; word-break: break-word; }

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--prio-deep);
  border-radius: var(--r-sm);
  background: rgba(0, 255, 136, .045);
  padding: 15px 17px;
  font-size: 14px;
  color: var(--text-dim);
  margin: 18px 0;
}
.note code {
  font-family: var(--font-mono);
  color: var(--prio);
  background: rgba(0, 255, 136, .1);
  padding: 2px 7px;
  border-radius: 5px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------------------------------------------------------------- Admin */

.admin-wrap { padding: 36px 0; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.admin-bar .input { width: auto; flex: 1; min-width: 180px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 880px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--bg-panel);
}
tbody tr:hover { background: var(--bg-panel); }
td.mono { font-family: var(--font-mono); font-size: 13px; }
select.input { padding: 8px 10px; font-size: 13px; }

/* ---------------------------------------------------------------- Прочее */

.legal { max-width: 820px; margin-inline: auto; padding: 48px 0; }
.legal h1 { font-size: 30px; margin-bottom: 10px; }
.legal h2 { font-size: 19px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; }

.center { text-align: center; }
.skeleton {
  background: linear-gradient(90deg, var(--bg-raise) 25%, var(--bg-hover) 50%, var(--bg-raise) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
  color: transparent;
}
@keyframes shimmer { to { background-position: -200% 0; } }

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

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .order-card { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(var(--shell), 100% - 28px); }
  .section { padding: 60px 0; }
  .nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    gap: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .burger { display: block; margin-left: auto; }
  .header__inner { gap: 12px; }
  .status-chip { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .track__card { padding: 22px 18px; }
}

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