/* ============================================================
   Реферальная программа — дизайн-система AI.ЦЕХ v1.0
   Спека: design-preview/«AI.ЦЕХ — ДИЗАЙН-СИСТЕМА (один файл).md»

   Чёрный — это материал, а не «тёмная тема»; оранжевый — направление
   луча (только действие), не украшение. Радиусы только 28/18/10/99,
   рамка всегда волосяная, тень одна — посадочная, кривая движения одна.
   Компоненты, которых нет в системе (таблицы, шелл админки, статусы),
   дособраны в её языке: те же радиусы, рамка, тень; акцент — на действии.
   ============================================================ */

/* ---------- 1. Токены (раздел 2 спеки, значения не менять) ---------- */
:root {
  --ink: #060606;
  --panel: #0C0C0E;
  --paper: #F4F1EA;
  --acc: #FF6B35;
  --acc-hot: #FF8254;
  --acc-ink: #160801;
  --line: rgba(244,241,234,0.14);
  --mute: rgba(244,241,234,0.58);
  --faint: rgba(244,241,234,0.38);
  --ember-lit: #D9622A;
  --ember-bright: #C2410C;
  --ember: #9A3412;
  --ember-deep: #5C1F0A;
  --r-lg: 28px;
  --r: 18px;
  --r-sm: 10px;
  --r-pill: 99px;
  --sh-rest: 0 20px 44px -30px rgba(0,0,0,0.9);
  --sh-choice: 0 40px 90px -40px rgba(255,107,53,0.4);
  --sh-deep: 0 40px 110px -44px rgba(0,0,0,0.95);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --f-display: 'Unbounded', 'Gilroy', sans-serif;
  --f-body: 'Golos Text', 'Gilroy', sans-serif;
  --f-label: 'Onest', 'Gilroy', sans-serif;
  --f-meter: 'JetBrains Mono', ui-monospace, monospace;

  /* текстуры рисуются кодом, картинками их подменять нельзя */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --grid24: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M24 0H0v24' fill='none' stroke='rgba(244,241,234,0.05)' stroke-width='1'/%3E%3C/svg%3E");

  --bg-dawn: radial-gradient(135% 115% at 74% -6%, #C2410C 0%, #9A3412 26%, #6B2408 48%, #2A1006 70%, #0B0503 88%);
  --bg-sunrise: linear-gradient(178deg, #180A04 0%, #5C1F0A 14%, #9A3412 34%, #C2410C 56%, #D9622A 74%, #C2410C 92%, #8A2F10 100%);
  --bg-wedge: linear-gradient(212deg, #D9622A 0%, #C2410C 22%, #8A2F10 44%, #3A1207 66%, #0B0503 84%);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.hidden { display: none !important; }

/* Зерно на всю страницу: без него чернота читается «плоским CSS-фоном» */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0;
  pointer-events: none; background: var(--grain); opacity: .55;
}
body > * { position: relative; z-index: 1; }

/* ---------- 3. Типографические роли (раздел 3 спеки) ---------- */
.display, .headline, .title {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.display  { font-size: clamp(2rem, 4.2vw, 4rem); }
.headline { font-size: clamp(1.7rem, 3.2vw, 3rem); }
.title    { font-size: clamp(1.3rem, 2vw, 1.9rem); }

.kicker {
  font-family: var(--f-label);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--acc); margin: 0;
}
.lead {
  font-family: var(--f-body);
  font-size: 16px; line-height: 1.625;
  color: var(--mute); max-width: 46ch; margin: 0;
}
.meter {
  font-family: var(--f-meter);
  font-size: 11px; letter-spacing: 0.14em; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.label {
  font-family: var(--f-label);
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  margin: 0;
}
.mute { color: var(--mute); }

/* Градиент текста — точечно, не больше 2–3 объектов на носитель */
.grad-text {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 36%, #B6B2AA 78%, #8F8B84 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-head {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 44%, #C7C3BB 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 4. Кнопки ---------- */
.btn {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  overflow: hidden; border: 0; cursor: pointer;
  border-radius: var(--r); padding: 16px 32px;
  font-family: var(--f-display); font-weight: 900; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  transition: transform 120ms var(--ease);
}
.btn:hover { text-decoration: none; }
.btn--lg { padding: 20px 40px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn--acc { background: var(--acc); color: var(--acc-ink); }
.btn--ghost {
  background: transparent; color: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn--ghost:hover { border-color: var(--acc); }
.btn--strong { border: 2px solid var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }

/* Компактное действие в строке таблицы: вторичное — значит тише основного */
.btn--sm {
  padding: 9px 16px; font-size: 11px; border-radius: var(--r-sm);
  font-family: var(--f-label); font-weight: 700; letter-spacing: 0.1em;
}
.btn--ghost.btn--sm { color: var(--mute); }
.btn--ghost.btn--sm:hover { color: var(--paper); }

.btn__dot {
  position: absolute; left: 18px; top: 50%;
  width: 8px; height: 8px; transform: translateY(-50%);
  border-radius: 4px; transition: all 500ms var(--ease); pointer-events: none;
}
.btn--acc .btn__dot { background: var(--acc-hot); }
.btn--ghost .btn__dot { background: var(--acc); }
.btn:hover .btn__dot {
  left: 0; top: 0; width: 100%; height: 100%;
  transform: translateY(0) scale(1.6); border-radius: 0;
}
.btn__rest {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover .btn__rest { transform: translateX(32px); opacity: 0; }
.btn__go {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--acc-ink); opacity: 0; transform: translateX(-32px);
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover .btn__go { transform: translateX(0); opacity: 1; }

/* ---------- 5. Чипы и статусы ---------- */
.chip {
  display: inline-block; padding: 6px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: rgba(244,241,234,0.03); color: var(--mute);
  font-family: var(--f-label); font-weight: 700; font-size: 10px;
  line-height: 1; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
.chip--acc {
  border-color: rgba(255,107,53,0.5);
  background: color-mix(in srgb, var(--acc) 10%, transparent);
  color: var(--acc);
}
/* Статусы денег без второго акцентного цвета: оранжевый достаётся ровно
   тому состоянию, которое требует действия (payable), остальные —
   ступени бумаги: закрыто ярче, отменено тише. */
.chip--done { color: var(--paper); border-color: rgba(244,241,234,0.3); }
.chip--off  { color: var(--faint); }
.chip--lg   { font-size: 11px; padding: 9px 14px; letter-spacing: 0.16em; }

/* ---------- 6. Карточки и плиты ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: rgba(244,241,234,0.045);
  box-shadow: var(--sh-rest); padding: 28px;
}
.card--quiet { background: rgba(244,241,234,0.02); }
.card--acc { background: color-mix(in srgb, var(--acc) 10%, transparent); border-color: rgba(255,107,53,0.45); }
.card--choice { border: 2px solid var(--acc); box-shadow: var(--sh-choice); }
/* Вертикальный набор плит — только в колонке страницы: внутри сеток
   отступ даёт gap, иначе соседние карточки уезжают вниз по строке. */
.page > .card + .card { margin-top: 18px; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

/* ---------- 7. Поля и формы ---------- */
.form-row { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 8px;
  font-family: var(--f-label); font-weight: 700; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.form-label .opt { color: rgba(244,241,234,0.24); }

.field {
  width: 100%; height: 56px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(6,6,6,0.5); color: var(--paper);
  font-family: var(--f-body); font-size: 16px;
}
.field::placeholder { color: var(--faint); }
.field:focus {
  outline: none; border-color: var(--acc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 40%, transparent);
}
.field--sm { height: 40px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }

/* Согласие на обработку данных: мелкая строка, но обязательная — оформляем
   читаемо, а не «серым по чёрному». */
.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.5; color: var(--mute); cursor: pointer;
}
.consent input[type="checkbox"] {
  flex: none; width: 18px; height: 18px; margin: 2px 0 0;
  accent-color: var(--acc); cursor: pointer;
}
.consent a { color: var(--acc); }

/* Выбор файла (скриншот-пруф выплаты). Нативная кнопка браузера — единственный
   светлый прямоугольник на тёмном экране админки, поэтому перекрашиваем её саму,
   а не прячем поле: подмена лейблом ломает клавиатурный доступ и имя файла. */
.field[type="file"] {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 12px 0 0; color: var(--mute); font-size: 13px;
}
.field[type="file"]::file-selector-button {
  height: 100%; margin-right: 10px; padding: 0 14px;
  border: 0; border-right: 1px solid var(--line);
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: transparent; color: var(--mute); cursor: pointer;
  font-family: var(--f-label); font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.field[type="file"]:hover::file-selector-button { color: var(--paper); background: rgba(244,241,234,0.06); }
select.field {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--faint) 50%),
    linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 22px) 54%, calc(100% - 17px) 54%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
select.field option { background: var(--panel); color: var(--paper); }

.form-message { margin: 14px 0 0; min-height: 20px; font-size: 15px; color: var(--mute); }
.form-message--ok { color: var(--paper); }
.form-message--err { color: var(--acc); }

/* ---------- 8. Пруф-цифры ---------- */
.stat__value {
  font-family: var(--f-display); font-weight: 900;
  line-height: 1; letter-spacing: -0.03em; color: var(--paper);
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  font-variant-numeric: tabular-nums;
}
.stat__value--acc { color: var(--acc); }
.stat__label {
  font-family: var(--f-body); font-size: 12px; line-height: 1.3;
  color: var(--mute); max-width: 18ch; margin-top: 8px;
}
/* 180px — чтобы тройка «начислено / к выплате / выплачено» вставала в один ряд
   и внутри узкой колонки кабинета: на 210px третья плитка срывалась на вторую
   строку и оставляла дыру в сетке. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
/* В плитке цифра берёт ступень Title и не переносится: сумма с ₽ — одно
   измерение, разрыв «148000 / ₽» читается ошибкой.
   .stats--big — там, где цифра и есть содержание экрана (дашборд). */
.stat .stat__value { font-size: clamp(1.3rem, 2vw, 1.9rem); white-space: nowrap; }
.stats--big .stat__value { font-size: clamp(1.7rem, 3.2vw, 3rem); }
.stat {
  padding: 24px; border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(244,241,234,0.03); box-shadow: var(--sh-rest);
}
.stat--acc { border-color: rgba(255,107,53,0.45); background: color-mix(in srgb, var(--acc) 8%, transparent); }
/* Служебный ключ метрики под цифрой (accrued/payable/…) — это рубрика, а не
   измерение, поэтому Onest-метка, а не моно: моно в системе занято числами. */
.stat .label { display: block; margin-top: 10px; }

/* ---------- 8.1 Вывод средств (кабинет) и заявки (админка) ----------
   Блок выплаты — единственное место кабинета, где партнёр совершает денежное
   действие, поэтому здесь и живёт единственная акцентная кнопка экрана. */
.payout {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
}
.payout__state { min-width: 0; }
.payout__sum {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--paper);
  font-variant-numeric: tabular-nums; margin: 10px 0 12px;
}
.payout .form-message { flex: 1 0 100%; margin: 0; }

/* Реквизиты в заявке: пары «подпись — значение», подписи мелкой меткой. */
.payout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.req { margin: 8px 0 0; display: grid; gap: 6px; }
.req dt { margin: 0; }
.req dd { margin: 0 0 6px; font-size: 15px; word-break: break-all; }

/* ---------- 9. Медиа-слот (честная незакрытая позиция / пустое состояние) ---------- */
.slot {
  position: relative; display: flex; align-items: flex-end;
  overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--grain), var(--grid24), var(--panel);
  min-height: 132px;
}
.slot--translucent { background: var(--grain), var(--grid24), color-mix(in srgb, var(--panel) 34%, transparent); }
.slot__corner { position: absolute; width: 24px; height: 24px; border-color: var(--line); pointer-events: none; }
.slot__corner--tl { left: 16px; top: 16px; border-left: 1px solid; border-top: 1px solid; border-top-left-radius: 8px; }
.slot__corner--tr { right: 16px; top: 16px; border-right: 1px solid; border-top: 1px solid; border-top-right-radius: 8px; }
.slot__corner--bl { left: 16px; bottom: 16px; border-left: 1px solid; border-bottom: 1px solid; border-bottom-left-radius: 8px; }
.slot__corner--br { right: 16px; bottom: 16px; border-right: 1px solid; border-bottom: 1px solid; border-bottom-right-radius: 8px; }
.slot__label { position: relative; width: 100%; padding: 24px; }

/* ---------- 10. Гигант-подложка и зерно ---------- */
.giant {
  position: absolute; z-index: 0;
  font-family: var(--f-display); font-weight: 900;
  line-height: 0.76; letter-spacing: -0.04em; text-transform: uppercase;
  white-space: nowrap; color: rgba(244,241,234,0.062);
  user-select: none; pointer-events: none;
  font-size: clamp(6rem, 17vw, 15rem);
}
.giant--on-light { color: rgba(255,255,255,0.13); }
/* Гигант позиционирован, поэтому без этого правила он рисуется ПОВЕРХ обычного
   текста холста (позиционированный элемент кроется выше непозиционированного даже
   при z-index:0). Контент холста поднимается на слой выше — как в сплите
   сертификата. */
/* Гигант живёт только на публичных экранах: в админке слово-подложка ничего не
   объясняет оператору и читается декорацией. */
.page > *:not(.giant) { position: relative; z-index: 1; }
.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--grain); }

/* ---------- 11. Заметка-предупреждение ----------
   Охра здесь работает подложкой (шкала фонов), а не элементом интерфейса:
   вес долгу даёт залив, а не второй акцентный цвет. */
.note {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(244,241,234,0.03);
  box-shadow: var(--sh-rest); font-size: 15px; color: var(--mute);
}
.note b { color: var(--paper); font-weight: 700; }
.note--debt {
  border-color: rgba(154,52,18,0.55);
  background: linear-gradient(100deg, rgba(92,31,10,0.55) 0%, rgba(92,31,10,0.16) 62%, rgba(244,241,234,0.03) 100%);
}
.note__body { min-width: 0; }
.note .chip { flex: none; margin-top: 2px; }

/* ---------- 12. Таблица (дособрана в языке системы) ---------- */
.table-plate {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: rgba(244,241,234,0.03); box-shadow: var(--sh-rest);
  overflow-x: auto;
}
table.data { width: 100%; border-collapse: collapse; min-width: 680px; }
table.data thead th {
  text-align: left; padding: 16px 20px;
  font-family: var(--f-label); font-weight: 700; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data tbody td {
  padding: 16px 20px; font-size: 15px; vertical-align: middle;
  border-bottom: 1px solid var(--line); color: var(--paper);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(244,241,234,0.025); }
td.cell-mute { color: var(--mute); }
td.cell-num { font-family: var(--f-meter); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; white-space: nowrap; }
.inline-form { display: inline; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.json-dump {
  font-family: var(--f-meter); font-size: 11px; line-height: 1.5;
  color: var(--faint); word-break: break-all; display: block; max-width: 260px;
}

/* ---------- 13. Раскладки публичных страниц ---------- */
/* overflow скрыт, чтобы гигант-подложка уходила в край холста, а не в скролл */
.page { max-width: 1120px; margin: 0 auto; padding: 56px 32px 96px; position: relative; overflow: hidden; }
.page--narrow { max-width: 760px; }
/* Нижняя полоса под гигант-подложку: без неё слово уходит целиком за карточки и
   читается не масштабом, а серыми пятнами сквозь полупрозрачные плиты. */
.page--floor { padding-bottom: 240px; }
/* Холст одиночной плиты (сертификат, служебные страницы). position/overflow-x —
   ради гиганта-подложки: слову разрешено уходить только в край холста, а край
   здесь — край экрана; clip (а не hidden) не создаёт скролл-контейнер и не ломает
   вертикальную прокрутку формы на узких экранах. */
.center-screen {
  position: relative; overflow-x: clip;
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px;
}
/* Safari < 16 не знает clip: там hidden по горизонтали (на body он всплывает во
   вьюпорт и вертикальную прокрутку не отбирает). */
@supports not (overflow-x: clip) {
  .center-screen { overflow-x: hidden; }
}

/* minmax(0, …) в первой колонке обязателен: у дисплейного заголовка min-content
   больше половины холста, и обычный 1fr раздувал текстовую колонку, выталкивая
   карточку регистрации за правый край страницы (форма обрезалась). */
.hero {
  position: relative; display: grid; gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); align-items: center;
  padding: 24px 0 64px;
}
.hero__proof { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 44px; }

.pagehead { margin-bottom: 36px; }
.pagehead .lead { margin-top: 18px; }

/* Ссылка-сертификат: измерение, значит моно */
.copybar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(6,6,6,0.5);
}
.copybar a {
  flex: 1; min-width: 220px; word-break: break-all;
  font-family: var(--f-meter); font-size: 13px; letter-spacing: 0.02em;
  color: var(--paper);
}
.copybar a:hover { color: var(--acc); text-decoration: none; }

/* ---------- 14. Сертификат: сплит-плита ---------- */
.split {
  width: 100%; max-width: 980px;
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--panel); overflow: hidden; box-shadow: var(--sh-deep);
}
/* Кадр автора в брендовой половине сертификата. Путь относительный: CSS лежит
   в public/, поэтому url() резолвится и на корне, и под монтированием /ref —
   basePath здесь не нужен. Скрим сверху держит контраст кикера над светлым
   фоном кадра, снизу — под −10% и списком выгод. «Заря» остаётся нижним слоем:
   если картинка не доедет, панель не станет дырой. */
.split__brand {
  position: relative; padding: 48px 44px;
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(6,6,6,0.3) 0%, rgba(6,6,6,0.12) 26%, rgba(6,6,6,0.58) 62%, rgba(6,6,6,0.9) 100%),
    url('img/nick.jpg') 86% top / cover no-repeat,
    var(--bg-dawn);
  border-right: 1px solid var(--line);
}
.split__brand > *:not(.giant) { position: relative; z-index: 1; }
.split__discount { margin: auto 0 0; }
.split__form { padding: 48px 44px; }
.perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: rgba(244,241,234,0.82); }
.perks li::before {
  content: ''; flex: none; width: 6px; height: 6px; border-radius: 3px;
  background: var(--paper); transform: translateY(-2px);
}

.cert-card {
  width: 100%; max-width: 520px; text-align: center;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: rgba(244,241,234,0.045); box-shadow: var(--sh-rest);
  padding: 48px 44px;
}

/* ---------- 15. Шелл админки ---------- */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 28px 16px; background: var(--panel);
  border-right: 1px solid var(--line);
}
.side__brand {
  display: flex; align-items: center; gap: 10px; padding: 0 12px 28px;
  font-family: var(--f-display); font-weight: 900; font-size: 13px;
  letter-spacing: -0.02em; text-transform: uppercase; color: var(--paper);
}
.side__brand .mark { width: 10px; height: 10px; border-radius: 5px; background: var(--acc); flex: none; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; border-radius: var(--r-sm);
  font-family: var(--f-label); font-weight: 700; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.menu a:hover { color: var(--paper); background: rgba(244,241,234,0.045); text-decoration: none; }
.menu a.active { color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.menu .badge {
  font-family: var(--f-meter); font-size: 10px; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,107,53,0.5); color: var(--acc);
}
.side__foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--line); }
.main { padding: 44px 44px 88px; min-width: 0; position: relative; }
.stack { display: grid; gap: 12px; margin-bottom: 32px; }
.section-title { margin: 40px 0 16px; }

/* ---------- 16. Движение: одна кривая, один выход ---------- */
.rise { animation: rise 900ms var(--ease) both; }
.rise:nth-child(2) { animation-delay: 60ms; }
.rise:nth-child(3) { animation-delay: 120ms; }
.rise:nth-child(4) { animation-delay: 180ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 17. Адаптив ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
  .giant { font-size: clamp(4.5rem, 26vw, 9rem); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 8px; overflow-x: auto; padding: 14px 16px;
  }
  .side { scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side__brand { padding: 0 12px 0 0; }
  .side__foot { display: none; }
  .menu { flex-direction: row; }
  .main { padding: 32px 20px 72px; }
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; max-width: 520px; }
  .split__brand { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 28px; }
  .split__discount { margin-top: 28px; }
  .split__form { padding: 36px 28px; }
  .page { padding: 36px 20px 72px; }
  .card { padding: 24px 20px; }
}
