/* funnel.css — общий кит клиентской воронки ПОСЛЕ клика «Подключить»: pay.html, fail.html, success.html, account.html
   (v2: одна ширина карточки 460 на всех четырёх страницах, одна шапка .fn-header, один футер .fn-foot, H1 карточки 28px).
   Токены 1:1 из home.css (главная и окно заказа живут на нём), чтобы человек шёл по одному продукту:
   фон #F3F0E9 · стекло/hairline · мята --acc · Inter локально (/fonts/InterVariable.woff2) · радиусы 10/16/20.

   Компоненты: .fn-header (шапка с вордмарком) · .card (стекло 20) · .steps («Заказ → Оплата → Доступ») ·
   .order-summary (глиф бренда · тариф · срок · цена, строка промокода «было → стало») · .field 48 · .btn 48/52 (+.loading) ·
   .alert (error/ok/warn/info) · .next-steps («Что дальше», 3 шага) · .pay-guarantee · .consent-note · .pay-methods ·
   .nf (карточка «заказ не найден»/ошибка) · .skel (скелетон). Никаких внешних шрифтов и CDN. */

@font-face { font-family: 'Manrope'; src: url('fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #FAF7F0; --bg-2: #FAF7F0;
  --surface: #FFFFFF; --surface-2: #F3F0E9; --surface-3: #F3F0E9; --input: #FFFFFF;
  --line-in: rgba(20,18,14,.06); --line: rgba(20,18,14,.10); --line-2: rgba(20,18,14,.18);
  --tx: #14120E; --tx-2: rgba(20,18,14,.72); --tx-3: rgba(20,18,14,.55); --mut-2: rgba(20,18,14,.42);
  --acc: #FFC61E; --acc-2: #F0B60A; --acc-3: #F0B60A; --acc-ink: #14120E;
  --acc-soft: rgba(255,198,30,.20); --acc-line: rgba(20,18,14,.18); --danger: #C7402B; --danger-soft: rgba(199,64,43,.10); --danger-line: rgba(199,64,43,.35);
  --warn: #B4700A; --warn-soft: rgba(255,198,30,.18); --warn-line: rgba(20,18,14,.20);
  --r-sm: 12px; --r: 16px; --r-lg: 18px;
  --shadow-card: none;
  --shadow-float: none;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(.2,.8,.2,1); --dur-1: .16s; --dur-2: .2s;
  --grad-acc: #FFC61E;
  --sh-acc: none; --sh-acc-hover: none;
  --glass: rgba(20,18,14,.04); --glass-hover: rgba(20,18,14,.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
  background: var(--bg);
  color: var(--tx); font-size: 15px; line-height: 22px;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
/* зерно как на главной — только на «голом» фоне */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; font-feature-settings: inherit; }
img, svg { display: block; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.icn { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 2px; box-shadow: none; }

/* ---------- Шапка: вордмарк одним цветом (Inter 700, как на главной) + подпись справа ---------- */
.fn-header {
  position: sticky; top: 0; z-index: 200; height: 64px;
  background: #FAF7F0;
  border-bottom: 1px solid var(--line);
}
.fn-header .container { height: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 44px; justify-content: center; font-size: 20px; color: var(--tx);
  transition: opacity var(--dur-2) var(--ease-out); }
.logo:hover { opacity: .85; }
.lt-chat { font-weight: 600; }
.lt-gpt { font-weight: 700; }
.fn-header-note { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--tx-3); white-space: nowrap; }
.fn-header-note svg { width: 15px; height: 15px; color: var(--tx-3); }
.fn-header-r { display: flex; align-items: center; gap: 6px; }
.fn-header-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--tx-2); border: 1px solid transparent; transition: color var(--dur-2), background var(--dur-2), border-color var(--dur-2); }
.fn-header-link:hover { color: var(--tx); background: var(--glass); border-color: var(--line); }

/* ---------- Сцена ---------- */
.fn-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px 48px; }
.fn-wrap { width: 100%; max-width: 460px; }
.fn-foot { text-align: center; padding: 0 20px 28px; font-size: 13px; line-height: 18px; color: var(--tx-3); }
.fn-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 10px auto 0; padding: 0 14px; font-size: 14px; color: var(--tx-3); transition: color var(--dur-2) var(--ease-out); }
.fn-back svg { width: 16px; height: 16px; }
.fn-back:hover { color: var(--tx); }
.fn-back-row { display: flex; justify-content: center; }

/* ---------- Карточка: стекло + hairline + мягкая тень (как модалка главной) ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: none; overflow: hidden;
}
.card-body { padding: 24px 28px 28px; }
.card-head { padding: 24px 28px 0; }
.card h1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.025em; }
.card h2 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.02em; }
.card .lead { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--tx-2); }
.hr { height: 1px; background: var(--line-in); margin: 18px 0; }

/* ---------- Индикатор шагов «Заказ → Оплата → Доступ» (1:1 с success.html/account.html) ----------
   Точка 22px (номер / галочка у пройденного), подпись 13px, коннектор 1px; активный — мятное кольцо; .is-error — красный. */
.steps { display: flex; align-items: center; justify-content: center; list-style: none; margin: 0 auto 20px; padding: 0; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--tx-3); white-space: nowrap; }
.step + .step::before { content: ''; width: clamp(20px, 7vw, 56px); height: 1px; background: var(--line-2); margin: 0 12px; }
.step.is-done + .step::before { background: var(--acc-line); }
.step-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--tx-3); font-size: 11px; font-weight: 700; transition: background var(--dur-2), border-color var(--dur-2), box-shadow var(--dur-2); }
.step-dot svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; display: none; }
.step-dot i { font-style: normal; }
.step.is-done { color: var(--tx-2); }
.step.is-done .step-dot { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.step.is-done .step-dot svg { display: block; } .step.is-done .step-dot i { display: none; }
.step.is-active { color: var(--tx); font-weight: 600; }
.step.is-active .step-dot { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); box-shadow: none; }
.step.is-error { color: var(--danger); font-weight: 600; }
.step.is-error .step-dot { border-color: var(--danger); color: var(--danger); box-shadow: none; }
.step.is-error + .step::before { background: var(--danger-line); }

/* ---------- Сводка заказа: глиф бренда · тариф · срок · цена (везде один компонент) ---------- */
.order-summary { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; column-gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); text-align: left; }
.os-mark { width: 40px; height: 40px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; background: rgba(20,18,14,.05); color: var(--tx); }
.os-mark svg { width: 20px; height: 20px; display: none; }
.os-mark[data-brand="gpt"] .os-g-gpt, .os-mark[data-brand="claude"] .os-g-claude, .os-mark[data-brand="gemini"] .os-g-gemini, .os-mark[data-brand="other"] .os-g-other { display: block; }
.os-mark[data-brand="claude"] { background: rgba(20,18,14,.05); color: var(--tx); }
.os-mark[data-brand="gemini"] { background: rgba(20,18,14,.05); color: var(--tx); }
.os-mark[data-brand="other"] { background: var(--acc-soft); color: var(--tx); }
.os-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.os-title { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-sub { font-size: 13px; line-height: 18px; color: var(--tx-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-price { font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.os-price .os-was { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--tx-3); text-decoration: line-through; }
.os-price .os-now { color: var(--tx); }
.os-price.is-discount .os-now { color: var(--tx); }
/* строка скидки под сводкой: «Промокод CODE · −10% · −269 ₽» */
.os-promo { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--acc-soft); border: 1px solid var(--acc-line); color: #147D5E; font-size: 13px; line-height: 18px; }
.os-promo b { color: var(--tx); font-weight: 700; letter-spacing: .03em; }
.os-promo .grow { flex: 1; min-width: 0; }
/* снять промокод — один контрол в окне заказа и на pay: текстовая ссылка «убрать», тап-зона 44 */
.os-promo-drop { flex: none; margin: -13px -8px -13px auto; min-height: 44px; padding: 0 8px; color: var(--tx-3); font: inherit; font-size: 13px; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; transition: color var(--dur-2) var(--ease-out); }
.os-promo-drop:hover { color: var(--danger); }
/* мета-строка под сводкой (внутри рамки): «№ …0f76e4 ⧉ · 23 авг. 2026» */
.os-meta { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-in); font-size: 13px; line-height: 18px; color: var(--tx-3); font-variant-numeric: tabular-nums lining-nums; }
.os-meta .oid { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* кнопка копирования № — тап-зона 44×44 (отрицательные поля держат строку 18px), иконка 15 */
.copy { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -13px -8px; border-radius: 10px; color: var(--tx-3); flex: none; transition: color var(--dur-2), background var(--dur-2); }
.copy:hover { color: var(--tx); background: var(--glass-hover); }
.copy svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy.is-ok { color: var(--tx, #14120E); }

/* детали (почта/Telegram) — тихие строки под сводкой */
.rows { margin-top: 14px; border-top: 1px solid var(--line-in); }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-in); font-size: 14px; line-height: 20px; }
.row .lbl { color: var(--tx-3); } .row .val { font-weight: 500; text-align: right; overflow-wrap: anywhere; color: var(--tx-2); }
.row.is-empty { display: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; font-size: 15px; font-weight: 600; }
.total .val { font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.total .was { display: inline; margin-right: 8px; font-size: 14px; font-weight: 500; color: var(--tx-3); text-decoration: line-through; letter-spacing: 0; }

/* ---------- Поля 48 с фокус-кольцом; ошибка — под полем, красным, с иконкой ---------- */
.field-label { display: block; margin: 0 0 6px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--tx-2); }
.field-label .hint { color: var(--tx-3); font-weight: 400; }
.field {
  width: 100%; height: 48px; padding: 0 16px; background: var(--input); border: 0; box-shadow: inset 0 0 0 1.5px var(--field, rgba(20,18,14,.18)); border-radius: var(--r-sm);
  color: var(--tx); font-family: inherit; font-size: 16px; outline: none;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow .25s var(--ease-out), background var(--dur-2) var(--ease-out);
}
.field::placeholder { color: rgba(20,18,14,.45); }
.field:hover { border-color: rgba(20,18,14,.10); }
.field:focus { border-color:#F0B60A;box-shadow: none; background: var(--input); }
.field:disabled { opacity: .6; }
.field.is-invalid, .field.is-invalid:focus { border-color: var(--danger); box-shadow: none; animation: fn-shake .3s var(--ease-out) 1; }
@keyframes fn-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 60% { transform: translateX(4px); } 85% { transform: translateX(-2px); } }
.field-err { display: none; margin-top: 8px; padding-left: 22px; position: relative; font-size: 13px; line-height: 18px; color: var(--danger); }
.field-err.show { display: block; }
.field-err::before { content: ''; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7402B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16.5v.1'/%3E%3C/svg%3E") center / 16px no-repeat; }
.field-row { display: flex; gap: 8px; align-items: stretch; }
.field-row .field { flex: 1 1 auto; min-width: 0; }
.field-row .btn { flex: 0 0 auto; }
.field--code { text-transform: uppercase; letter-spacing: .04em; }
.field--code::placeholder { text-transform: none; letter-spacing: 0; }

/* ---------- Кнопки (1:1 с главной): primary — мятный градиент + свечение; secondary — стекло; .loading — спиннер ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
  text-decoration: none !important; position: relative; isolation: isolate; overflow: hidden;
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out), opacity var(--dur-2) var(--ease-out), filter var(--dur-2) var(--ease-out);
}
.btn > svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--dur-2) var(--ease-out); }
.btn-primary { background: var(--grad-acc); color: var(--acc-ink); box-shadow: none; }
.btn-primary::before { display: none; }
.btn-secondary { background: var(--glass); color: var(--tx); border-color: var(--line-2); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--tx-2); border-color: transparent; }
.btn-tg > svg { color: #2aabee; }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-1px); box-shadow: none; filter: saturate(1.06) brightness(1.04); }
  .btn-primary:hover::before { animation: btn-shine .6s var(--ease-out) 1; }
  .btn-secondary:hover { background: var(--glass-hover); border-color: rgba(20,18,14,.72); transform: translateY(-1px); box-shadow: none; }
  .btn-ghost:hover { color: var(--tx); background: rgba(20,18,14,.05); }
}
@keyframes btn-shine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.btn-primary:active, .btn-secondary:active { transform: scale(.98); transition-duration: .08s; }
.btn-primary:active { filter: brightness(.96); }
.btn[disabled]:not(.loading), .btn.is-disabled:not(.loading) { background: var(--surface-3); color: var(--tx-3); box-shadow: none; cursor: default; transform: none; filter: none; pointer-events: none; }
.btn[disabled] { pointer-events: none; cursor: default; }
.btn[disabled]::before { display: none; }
/* загрузка: вариант сохраняется, текст прозрачный, спиннер по центру; кнопка не кликабельна */
.btn.loading { color: transparent !important; cursor: default; pointer-events: none; transform: none !important; }
.btn.loading > svg { opacity: 0; }
.btn.loading::before { display: none; }
.btn-primary.loading, .btn-primary.loading[disabled] { background: var(--grad-acc); color: transparent !important; filter: saturate(.8) brightness(.95); box-shadow: none !important; }
.btn-secondary.loading, .btn-secondary.loading[disabled] { background: var(--glass); border-color: var(--line-2); color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(4,21,15,.18); border-top-color: var(--acc-ink); border-radius: 50%; animation: fn-spin .7s linear infinite; }
.btn-secondary.loading::after, .btn-ghost.loading::after { border-color: rgba(20,18,14,.10); border-top-color: var(--tx); }
@keyframes fn-spin { to { transform: rotate(360deg); } }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-full { width: 100%; }
.btn-stack { display: grid; gap: 10px; }

/* ---------- Алерты: один компонент на все состояния (иконка слева) ---------- */
.alert { display: none; position: relative; margin-top: 14px; padding: 11px 13px 11px 40px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 19px; border: 1px solid; }
.alert.show { display: block; }
.alert::before { content: ''; position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; background-position: center; background-repeat: no-repeat; background-size: 18px; }
.alert a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.alert--error { background: var(--danger-soft); border-color: var(--danger-line); color: #C7402B; }
.alert--error::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7402B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.alert--ok { background: var(--acc-soft); border-color: var(--acc-line); color: #147D5E; }
.alert--ok::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314120E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.alert--warn { background: var(--warn-soft); border-color: var(--warn-line); color: #14120E; }
.alert--warn::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7402B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16.5v.1'/%3E%3C/svg%3E"); }
.alert--info { background: var(--glass); border-color: var(--line-2); color: var(--tx-2); }
.alert--info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.5v.1'/%3E%3C/svg%3E"); }

/* ---------- «Что дальше» — три шага ---------- */
.next-steps { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-in); }
.next-steps .ns-t { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 10px; }
.next-steps ol { display: grid; gap: 8px; counter-reset: ns; }
.next-steps li { position: relative; padding-left: 32px; font-size: 13.5px; line-height: 19px; color: var(--tx-2); counter-increment: ns; min-height: 22px; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--glass); border: 1px solid var(--line-2); color: var(--tx-2); font-size: 11px; line-height: 20px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.next-steps li b { color: var(--tx); font-weight: 600; }
.next-steps li.is-now::before { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.next-steps li.is-now { color: var(--tx); }

/* ---------- Хвост карточки: гарантия (одна строка) · согласие · платёжки ---------- */
.pay-guarantee { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--tx-2); }
.pay-guarantee svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--tx); margin-top: 1px; }
.consent-note { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--tx-3); }
.consent-note a { color: var(--tx-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(20,18,14,.72); transition: color var(--dur-2) var(--ease-out); }
.consent-note a:hover { color: var(--tx); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-in); }
.pay-methods-note { font-size: 12px; line-height: 18px; color: var(--tx-3); margin-right: 4px; }
.pay-mark { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0; color: rgba(20,18,14,.62); }
.pay-mark svg { display: block; height: 14px; width: auto; }
.pay-mark[title="МИР"] svg { height: 12px; }
.pay-mark[title="Visa"] svg { height: 11px; }
.pay-mark[title="Mastercard"] svg { height: 15px; }
.pay-mark svg * { fill: rgba(20,18,14,.62); }
.pay-mark[title="Mastercard"] svg circle { fill: rgba(20,18,14,.55); }
.pay-mark[title="Mastercard"] svg path { fill: rgba(20,18,14,.30); }
.pm-t { font-weight: 600; font-size: 12px; color: rgba(20,18,14,.62); letter-spacing: .01em; }
.pay-crypto { font-size: 12px; font-weight: 600; }
.pay-crypto svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pay-crypto svg * { fill: none; }
.pay-methods .secure { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 12px; line-height: 16px; color: var(--tx-3); white-space: nowrap; }
.pay-methods .secure svg { width: 13px; height: 13px; }

/* ---------- Состояния «не найден» / ошибка / ожидание — одна карточка ---------- */
.nf { padding: 36px 28px 28px; text-align: center; }
.nf-ico { width: 56px; height: 56px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; color: var(--tx-2); }
.nf-ico svg { width: 24px; height: 24px; stroke-width: 2; }
.nf-ico--error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.nf-ico--ok { background: var(--acc-soft); border-color: var(--acc-line); color: var(--tx); }
.nf-ico--wait { background: var(--glass); }
.nf h1 { font-size: 28px; line-height: 34px; }
.nf h2 { font-size: 22px; line-height: 28px; }
.nf p { margin: 8px auto 0; max-width: 34ch; font-size: 14px; line-height: 20px; color: var(--tx-2); text-wrap: pretty; }
.nf .btn-stack { margin-top: 22px; }
.nf .order-summary { margin-top: 18px; }
.reasons { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); text-align: left; }
.reasons .t { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 8px; }
.reasons li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 19px; color: var(--tx-2); margin-bottom: 4px; }
.reasons li:last-child { margin-bottom: 0; }
.reasons li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--tx-3); }
.fn-support { margin-top: 14px; font-size: 13px; line-height: 18px; color: var(--tx-3); text-align: center; }
.fn-support a { color: var(--tx-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(20,18,14,.72); }
.fn-support a:hover { color: var(--tx); }

/* ---------- Скелетон (загрузка черновика) ---------- */
.skel { position: relative; overflow: hidden; background: rgba(20,18,14,.05); border-radius: 8px; color: transparent !important; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(20,18,14,.05), transparent); animation: fn-skel 1.4s ease-in-out infinite; }
@keyframes fn-skel { to { transform: translateX(100%); } }
.is-hidden { display: none !important; }

/* ---------- Спиннер ожидания ---------- */
.spinner { width: 28px; height: 28px; border: 2.5px solid rgba(20,18,14,.10); border-top-color: var(--tx); border-radius: 50%; animation: fn-spin .8s linear infinite; margin: 0 auto; }

@media (max-width: 560px) {
  .fn-header { height: 56px; }
  .fn-header .container { padding: 0 16px; }
  .logo { font-size: 17px; }
  .fn-main { padding: 20px 12px 36px; }
  .card-body { padding: 20px 18px 22px; }
  .card-head { padding: 20px 18px 0; }
  .card h1, .nf h1 { font-size: 24px; line-height: 30px; }
  .card h2, .nf h2 { font-size: 20px; line-height: 26px; }
  .order-summary { padding: 10px 12px; }
  .fn-header-link { height: 44px; }
  .nf { padding: 30px 18px 22px; }
  .btn { height: 52px; }
  .btn-sm { height: 44px; }
  .field-row .btn { height: 48px; }
  .step + .step::before { margin: 0 8px; }
  .field { font-size: 16px; }
  .pay-methods .secure { margin-left: 0; width: 100%; }
  .pay-methods-note { width: 100%; margin: 0 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .btn.loading::after, .spinner { animation-duration: .7s !important; }
}

/* ── «Ещё подключить» (xsell.js): success.html после привязки заказа, account.html под списком заказов ── */
.xsell { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-in); }
.xsell[hidden] { display: none; }
.xs-t { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 10px; }
.xs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xs-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--glass); color: var(--tx); text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.xs-card:hover { border-color: rgba(255,198,30,.22); background: var(--glass-hover, rgba(20,18,14,.05)); transform: translateY(-1px); }
.xs-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: none; }
.xs-card.is-claude .xs-dot { background: var(--acc); box-shadow: none; }
.xs-card.is-gemini .xs-dot { background: var(--acc); box-shadow: none; }
.xs-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.xs-title { font-size: 14px; line-height: 18px; font-weight: 600; }
.xs-sub { font-size: 12px; line-height: 16px; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xs-price { font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--tx); }
.xs-note { margin: 10px 0 0; font-size: 12px; line-height: 16px; color: var(--tx-3); }
@media (max-width: 520px) { .xs-grid { grid-template-columns: 1fr; } }

/* ── Экран неудачной оплаты: номер заказа и что попробовать ── */
.fail-help { margin: 16px 0 20px; }
.fail-order { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm, 12px); background: var(--glass, rgba(20,18,14,.05)); font-size: 13.5px; color: var(--tx-2); }
.fail-order[hidden] { display: none; }
.fail-order b { font-family: Consolas, 'SF Mono', monospace; font-size: 12.5px; color: var(--tx); word-break: break-all; }
.fail-copy { margin-left: auto; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--tx-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.fail-copy:hover { color: var(--tx); border-color: var(--tx); }
.fail-tips { margin: 12px 0 0; font-size: 13.5px; line-height: 19px; color: var(--tx-3); text-wrap: pretty; }
.fail-tips b { color: var(--tx-2); }

/* Подсказка под выданными данными в кабинете */
.dl-tip { margin: 10px 0 0; font-size: 13px; line-height: 18px; color: var(--tx-3); text-wrap: pretty; }

/* Главный шаг экрана — капсулой, как на главной: он должен читаться первым */
.btn-lg, .btn-full.btn-lg, .cta-lk { border-radius: 999px; }

/* ══ МИНИМАЛИСТИЧНЫЙ СЛОЙ ═════════════════════════════════════════════════
   Карточка страницы оплаты была рамкой в рамке: панель, внутри неё сводка
   заказа, внутри — блок причин. Оставляем одну поверхность и тонкие линии. */
.pay-card, .fin-card, .card { border: 0 !important; box-shadow: none !important; }
.order-summary { background: rgba(20,18,14,.05) !important; border: 0 !important; }
.reasons { background: none !important; border: 0 !important; padding: 14px 0 0 !important;
  border-top: 1px solid var(--line) !important; border-radius: 0 !important; }
.fail-tips, .dl-tip { background: none !important; border: 0 !important; padding-left: 0 !important; }
.btn-primary { box-shadow: none !important; }
.btn-secondary { background: rgba(20,18,14,.05); border: 0; }
.btn-secondary:hover { background: rgba(20,18,14,.10); }
h1 { letter-spacing: -.03em; }

/* Автозаполнение браузера не должно белить поля на тёмном фоне.
   Chrome игнорирует background у автозаполненных полей — перекрываем тенью внутрь. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--tx, #14120E);
  -webkit-box-shadow: none;
  box-shadow: none;
  caret-color: var(--tx, #14120E);
  transition: background-color 9999s ease-out 0s;
}

/* Знак бренда: один файл /brand.svg на все страницы, цвет наследуется от текста */

/* Обещания, которые спека требует повторять на каждом экране оплаты. */
.pay-promise { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--tx-2); }

/* Обещания, которые спека требует повторять на каждом экране. */
.fn-foot--promise { margin-bottom: 4px; }

/* Формы входа и регистрации: белая карточка, чтобы поля не висели на фоне. */
/* Форма входа и регистрации живёт на карточке: набор полей на голом фоне
   не читается как единый объект. */
/* Белую плоскость несёт сама форма (.auth .card), а контейнер — только сетка:
   иначе правая колонка «что в кабинете» оказывалась внутри окна входа. */
#authView.auth, .auth { background: none; border-radius: 0; padding: 0; box-shadow: none; }
