/* EasyPay T-Bank Public Checkout — Quiet Editorial direction.
 *
 * Re-uses visual DNA from easypay-demo-showcase (consistent EasyPay brand):
 *  - Deep teal → emerald gradient background (06222A → 0B3B45 → 0F5C57)
 *  - Type pair: Fraunces (display, prices, italic accents) + Inter Tight (UI/body)
 *  - Numerics: JetBrains Mono, tabular
 *  - White cards on dark, 22px radius, hairline rule above CTA
 *  - One CTA-colour per surface (mint deep on light card)
 */

/* Fonts are served from this host (/fonts/, licences in /fonts/OFL.txt), not from Google Fonts.
 * Same variable woff2 files and unicode-range split as Google Fonts, only latin + latin-ext (₽) + cyrillic, upright only.
 * Fraunces has no cyrillic — Russian headings fall back to Georgia, as they did with Google Fonts. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/inter-tight-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Background (dark surface) */
  --qe-bg-1: #06222A;
  --qe-bg-2: #0B3B45;
  --qe-bg-3: #0F5C57;
  --qe-bg-glow: rgba(95, 224, 161, 0.07);

  /* Ink (on white card) */
  --qe-ink: #0A2A2F;
  --qe-ink-2: #4D6166;
  --qe-ink-3: #8FA3A8;
  --qe-line: rgba(11, 59, 69, 0.10);
  --qe-line-strong: rgba(11, 59, 69, 0.18);

  /* Foreground on dark */
  --qe-on-dark: #ffffff;
  --qe-on-dark-2: rgba(255, 255, 255, 0.72);
  --qe-on-dark-3: rgba(255, 255, 255, 0.48);
  --qe-on-dark-faint: rgba(255, 255, 255, 0.18);

  /* Accents */
  --qe-mint: #D3EBE3;
  --qe-mint-deep: #1A6B5C;
  --qe-green: #1B7F70;
  --qe-cream: #F4F1E9;
  --qe-pulse: #5FE0A1;

  /* Status */
  --qe-error: #C05454;
  --qe-error-bg: rgba(192, 84, 84, 0.10);

  /* Surface */
  --qe-surface: #ffffff;

  color-scheme: dark;
}

html, body { margin: 0; padding: 0; }

html { background: var(--qe-bg-1); }

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--qe-on-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  background:
    radial-gradient(ellipse 60% 40% at 80% 6%, var(--qe-bg-glow) 0%, transparent 60%),
    linear-gradient(168deg, var(--qe-bg-1) 0%, var(--qe-bg-2) 45%, var(--qe-bg-3) 100%);
  min-height: 100vh;
}

#app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Loading ───────────────────────────────────────── */

.tc-loading {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qe-on-dark-3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.tc-loading .spinner {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--qe-on-dark-faint);
  border-top-color: var(--qe-on-dark);
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Top bar ───────────────────────────────────────── */

.tc-top {
  padding: 32px 28px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tc-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-brand-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--qe-on-dark);
  text-align: center;
  max-width: 80vw;
}

/* У Fraunces нет кириллицы: в «Библиотека ip-katkov.ru» первое слово рисовалось Georgia, второе — Fraunces, и между ними
   выглядел провал (замечание владельца 14.10.2026, easypay-windmill Plans/ru-sbp-subscriptions.md). Имя с кириллицей —
   одним шрифтом целиком (класс ставит brandMark в dom.js); латинские имена партнёров остаются в Fraunces. */
.tc-brand-mark.tc-brand-cyr { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0; }

/* ── Main wrapper ───────────────────────────────────────── */

.tc-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 20px 60px;
}

/* ── Card ───────────────────────────────────────── */

/* Карточка белая, а страница объявляет тёмную схему: без этого галочки и поля браузер рисует тёмными квадратами на
   белом (было видно на экранах подписки) — внутри карточки схема светлая. */
.tc-card {
  color-scheme: light;
  background: var(--qe-surface);
  color: var(--qe-ink);
  border-radius: 22px;
  width: 100%;
  max-width: 460px;
  padding: 32px 28px 24px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.tc-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--qe-ink-3);
  margin-bottom: 12px;
}

.tc-product-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--qe-ink);
  letter-spacing: -0.005em;
}

.tc-product-description {
  font-size: 14px;
  line-height: 1.5;
  color: var(--qe-ink-2);
  margin: 0 0 24px;
}

/* ── Price row ───────────────────────────────────────── */

.tc-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--qe-line);
  border-bottom: 1px solid var(--qe-line);
}

.tc-price-main {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--qe-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

.tc-price-original {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--qe-ink-3);
}

/* ── Form ───────────────────────────────────────── */

.tc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.tc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tc-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--qe-ink-2);
  letter-spacing: -0.002em;
}

.tc-required {
  color: var(--qe-green);
  margin-left: 2px;
}
.tc-optional {
  color: var(--qe-ink-3);
  font-weight: 400;
  font-size: 12px;
}

.tc-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--qe-line-strong);
  border-radius: 10px;
  background: #FCFDFD;
  color: var(--qe-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.tc-input:focus {
  outline: none;
  border-color: var(--qe-mint-deep);
  box-shadow: 0 0 0 3px rgba(26, 107, 92, 0.15);
}
.tc-input[readonly] {
  background: #F4F6F6;
  color: var(--qe-ink-2);
  cursor: not-allowed;
}
.tc-input-amount {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
/* Remove number input spinners */
.tc-input-amount::-webkit-outer-spin-button,
.tc-input-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tc-input-amount[type=number] { -moz-appearance: textfield; }

.tc-hint {
  font-size: 11px;
  color: var(--qe-ink-3);
  margin-top: 2px;
}

.tc-form-error {
  min-height: 18px;
  font-size: 13px;
  color: var(--qe-error);
  padding: 0;
  border-radius: 8px;
  transition: padding 0.15s;
}
.tc-form-error:not(:empty) {
  background: var(--qe-error-bg);
  padding: 8px 12px;
  border-left: 2px solid var(--qe-error);
}

/* ── Submit ───────────────────────────────────────── */

.tc-submit {
  margin-top: 6px;
  width: 100%;
  padding: 16px 24px;
  background: var(--qe-mint-deep);
  color: var(--qe-on-dark);
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  font-variant-numeric: tabular-nums;
}
.tc-submit:hover:not(:disabled) { background: #145443; }
.tc-submit:active:not(:disabled) { transform: translateY(1px); }
.tc-submit:disabled {
  background: var(--qe-ink-3);
  cursor: not-allowed;
}

/* Выбор способа разовой оплаты (tbank_form, pay-choice.js): форма банка — основная кнопка, СБП — вторая, контурная */
.tc-pay-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--qe-ink-2);
  font-variant-numeric: tabular-nums;
}
.tc-pay-choices { display: flex; flex-direction: column; gap: 10px; }
.tc-pay-choices .tc-submit { margin-top: 0; }
.tc-submit-alt {
  background: transparent;
  color: var(--qe-mint-deep);
  box-shadow: inset 0 0 0 1.5px var(--qe-mint-deep);
}
.tc-submit-alt:hover:not(:disabled) { background: rgba(26, 107, 92, 0.06); }
.tc-submit-alt:disabled { background: transparent; color: var(--qe-ink-3); box-shadow: inset 0 0 0 1.5px var(--qe-ink-3); }

/* QR-экран / экран повтора при tbank_form: тот же платёж — на форме банка */
.tc-alt-row {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--qe-ink-2);
}
.tc-alt-method {
  color: var(--qe-mint-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Trust ───────────────────────────────────────── */

.tc-trust {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--qe-line);
}
.tc-trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--qe-ink-3);
}
.tc-trust-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--qe-pulse);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(95, 224, 161, 0.15);
}

/* ── Footer ───────────────────────────────────────── */

.tc-footer {
  padding: 24px 28px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--qe-on-dark-3);
  text-align: center;
}

/* ── Error screen (no-order / not-found / etc) ─────── */

.tc-error-screen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 20px;
  min-height: 100vh;
}
.tc-error-card {
  background: var(--qe-surface);
  color: var(--qe-ink);
  border-radius: 22px;
  width: 100%;
  max-width: 420px;
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4);
}
.tc-error-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--qe-cream);
  color: var(--qe-mint-deep);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.tc-error-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--qe-ink);
  line-height: 1.2;
}
.tc-error-message {
  font-size: 14px;
  line-height: 1.5;
  color: var(--qe-ink-2);
  margin: 0;
}

/* Success / fail icons on thank-you.html and fail.html */
.tc-success-icon,
.tc-fail-icon {
  display: inline-flex;
  margin-bottom: 20px;
}

/* Order-id readout below success/fail message */
.tc-order-id {
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--qe-cream);
  color: var(--qe-ink-2);
  border-radius: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  word-break: break-all;
}

/* ── SBP-only QR screen (payment_flow=sbp_qr) ─────── */

.tc-qr-amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--qe-line);
  margin-bottom: 18px;
}

.tc-bank-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 4px;
}

.tc-qr-details { border-top: 1px solid var(--qe-line); margin-top: 14px; padding-top: 12px; }
.tc-qr-summary {
  font-size: 13px;
  color: var(--qe-ink-2);
  cursor: pointer;
}
.tc-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 0 6px;
}
.tc-qr-frame {
  background: #fff;
  border: 1px solid var(--qe-line-strong);
  border-radius: 16px;
  padding: 14px;
  line-height: 0;
}
.tc-qr-frame canvas { image-rendering: pixelated; display: block; }
.tc-qr-caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--qe-ink-2);
  text-align: center;
  max-width: 30ch;
}

.tc-qr-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--qe-line);
  font-size: 12.5px;
  color: var(--qe-ink-3);
}
.tc-qr-wait .tc-trust-dot { animation: tc-pulse 1.6s ease-in-out infinite; }
@keyframes tc-pulse { 50% { box-shadow: 0 0 0 6px rgba(95, 224, 161, 0.06); } }
@media (prefers-reduced-motion: reduce) {
  .tc-qr-wait .tc-trust-dot { animation: none; }
}

.tc-retry-btn { margin-top: 20px; max-width: 280px; }

/* Десктоп: QR — главный объект (details раскрыт из JS), кнопка банка → текстовая ссылка. */
@media (min-width: 640px) {
  .tc-qr-details { border-top: none; margin-top: 0; padding-top: 0; }
  .tc-qr-summary { display: none; }
  .tc-bank-cta {
    background: none;
    color: var(--qe-mint-deep);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0 0;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  /* :not(:disabled) уравнивает специфичность с .tc-submit:hover:not(:disabled)
     (0-3-0); наше правило позже в файле → побеждает, пилюля не возвращается. */
  .tc-bank-cta:hover:not(:disabled) { background: none; color: #145443; }
}

/* ── Mobile ───────────────────────────────────────── */

@media (max-width: 480px) {
  .tc-top { padding: 24px 16px 16px; }
  .tc-main { padding: 16px 12px 40px; }
  .tc-card { padding: 24px 20px 20px; border-radius: 18px; }
  .tc-product-name { font-size: 24px; }
  .tc-price-main { font-size: 30px; }
  .tc-footer { padding: 20px 16px 28px; font-size: 10px; }
}

/* ── Единый чекаут (/c/<slug>) ─────────────────────── */
/* Дизайн согласован владельцем 2026-08-09 (Drafts/unified-checkout-mock.html):
   один экран, метод — в один тап, цена у каждого метода своя.
   Plan: easypay-n8n-automations/Plans/unified-checkout.md */

.uc-brand {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.uc-brand-dot {
  background: var(--qe-pulse);
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.uc-brand-label {
  color: var(--qe-ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.uc-image {
  border-radius: 14px;
  display: block;
  height: 110px;
  margin-bottom: 18px;
  object-fit: cover;
  width: 100%;
}

.uc-rule {
  background: var(--qe-line-strong);
  height: 1px;
  margin: 2px 0 14px;
}

.uc-choose {
  color: var(--qe-ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

/* Метод — ссылка, а не кнопка: переход идёт через go-hop на сервере, поэтому он
   переживает отключённый JS и открывается в новой вкладке штатным способом. */
.uc-method {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--qe-line-strong);
  border-radius: 14px;
  color: inherit;
  display: flex;
  gap: 13px;
  margin-bottom: 10px;
  padding: 14px 15px;
  text-decoration: none;
  transition: border-color 0.15s;
  width: 100%;
}

.uc-method:hover { border-color: var(--qe-mint-deep); }
.uc-method:active { transform: translateY(1px); }

.uc-method-icon {
  align-items: center;
  background: var(--qe-mint);
  border-radius: 10px;
  display: flex;
  flex: none;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.uc-method-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.uc-method-title {
  color: var(--qe-ink);
  font-size: 15px;
  font-weight: 600;
}

.uc-method-sub {
  color: var(--qe-ink-2);
  font-size: 12.5px;
  margin-top: 2px;
}

.uc-method-price {
  color: var(--qe-mint-deep);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.uc-method-arrow {
  color: var(--qe-ink-3);
  flex: none;
  font-size: 16px;
}

.uc-banner {
  align-items: flex-start;
  background: rgba(244, 215, 160, 0.28);
  border: 1px solid rgba(185, 138, 60, 0.35);
  border-radius: 12px;
  color: #6B5320;
  display: flex;
  font-size: 13px;
  gap: 10px;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 11px 13px;
}

.uc-banner-icon { flex: none; }

/* U-price: бейдж «Оплата заказа №» + строка «для email» (квотный режим ?q=) */
.uc-qbadge {
  align-items: center;
  background: var(--qe-mint, #D3EBE3);
  border-radius: 999px;
  color: var(--qe-mint-deep, #1A6B5C);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  margin: 0 0 6px;
  padding: 5px 12px;
}

.uc-qfor {
  color: var(--qe-ink-3);
  font-size: 12px;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

/* U-price: интерстициал Stripe-минта («Готовим оплату…», 1–3 с) */
.uc-inter {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: 30px 10px;
  text-align: center;
}

.uc-inter-title {
  color: var(--qe-ink);
  font-family: var(--qe-font-serif, serif);
  font-size: 20px;
  font-weight: 500;
  margin: 18px 0 8px;
}

.uc-inter-text {
  color: var(--qe-ink-2);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.uc-footer {
  align-items: center;
  border-top: 1px solid var(--qe-line);
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
}

.uc-footer-sec,
.uc-footer-pow {
  color: var(--qe-ink-3);
  font-size: 11.5px;
}

@media (max-width: 480px) {
  .uc-method { padding: 13px 13px; }
  .uc-method-icon { height: 34px; width: 34px; }
  .uc-method-title { font-size: 14.5px; }
}

/* Инвойс-форма: /c/<slug>/invoice — «Счёт для организации» */
.uc-back {
  background: none; border: none; color: var(--qe-ink-3); cursor: pointer;
  display: inline-flex; font-family: inherit; font-size: 13px; gap: 6px;
  margin: 0 0 12px; padding: 0; text-decoration: none;
}
.uc-inv-title { color: var(--qe-ink); font-family: var(--qe-font-serif, serif); font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.uc-inv-desc { color: var(--qe-ink-2); font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }
.uc-steps { display: flex; gap: 6px; margin: 0 0 8px; }
.uc-step { background: var(--qe-line-strong); border-radius: 2px; flex: 1; height: 4px; }
.uc-step.on { background: var(--qe-mint-deep, #1A6B5C); }
.uc-steptext { color: var(--qe-ink-3); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; margin: 0 0 14px; text-transform: uppercase; }
.uc-inv-sum { align-items: baseline; border: 1px dashed var(--qe-line-strong); border-radius: 12px; display: flex; justify-content: space-between; margin: 0 0 16px; padding: 11px 14px; }
.uc-inv-sum-l { color: var(--qe-ink-2); font-size: 12.5px; }
.uc-inv-sum-v { color: var(--qe-mint-deep, #1A6B5C); font-family: monospace; font-size: 15px; font-weight: 600; }
.uc-fld { margin: 0 0 12px; }
.uc-fld label { color: var(--qe-ink-3); display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; margin: 0 0 5px; text-transform: uppercase; }
.uc-fld-req { color: #C05454; }
.uc-fld input { background: #fff; border: 1.5px solid var(--qe-line-strong); border-radius: 12px; color: var(--qe-ink); font-family: inherit; font-size: 14px; padding: 11px 13px; width: 100%; }
.uc-fld input:focus { border-color: var(--qe-mint-deep, #1A6B5C); outline: none; }
.uc-fld-hint { color: var(--qe-ink-3); font-size: 11.5px; margin: 4px 2px 0; }
.uc-inv-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.uc-inv-cta { background: var(--qe-mint-deep, #1A6B5C); border: none; border-radius: 14px; color: #fff; cursor: pointer; display: block; font-family: inherit; font-size: 15px; font-weight: 600; margin-top: 4px; padding: 14px; text-align: center; text-decoration: none; width: 100%; }
.uc-inv-cta[disabled] { opacity: .6; }
.uc-inv-done { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 220px; padding: 26px 12px; text-align: center; }
.uc-inv-done-ico { align-items: center; background: var(--qe-mint, #D3EBE3); border-radius: 50%; color: var(--qe-mint-deep, #1A6B5C); display: flex; font-size: 24px; height: 52px; justify-content: center; margin-bottom: 16px; width: 52px; }

/* ── Единый чекаут: крипто-экран /c/<slug>/crypto (фаза U-crypto, state 5 мока) ── */
.uc-cry-title { color: var(--qe-ink); font-family: var(--qe-font-serif, serif); font-size: 20px; font-weight: 500; margin: 0 0 12px; }
.uc-cry-tokens { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.uc-cry-tok { background: #fff; border: 1.5px solid var(--qe-line-strong, #E3DCD2); border-radius: 999px; color: var(--qe-ink2, #5B564E); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; }
.uc-cry-tok.on { background: var(--qe-mint, #D3EBE3); border-color: var(--qe-mint-deep, #1A6B5C); color: var(--qe-mint-deep, #1A6B5C); }
.uc-cry-sum { align-items: baseline; border: 1px dashed var(--qe-line-strong, #E3DCD2); border-radius: 12px; display: flex; justify-content: space-between; margin: 0 0 8px; padding: 11px 14px; }
.uc-cry-sum-l { color: var(--qe-ink2, #5B564E); font-size: 12.5px; }
.uc-cry-sum-v { color: var(--qe-mint-deep, #1A6B5C); font-family: var(--qe-font-mono, monospace); font-size: 15px; font-weight: 600; }
.uc-cry-net { color: var(--qe-ink3, #8A847A); font-size: 12px; margin: 0 0 14px; text-align: center; }
.uc-cry-qrwrap { align-items: center; display: flex; flex-direction: column; margin: 0 0 14px; }
.uc-cry-qr { background: #fff; border: 1px solid var(--qe-line-strong, #E3DCD2); border-radius: 14px; height: 168px; margin-bottom: 12px; padding: 10px; width: 168px; }
.uc-cry-addr { align-items: center; background: var(--qe-cream, #FAF6F0); border-radius: 10px; color: var(--qe-ink); display: flex; font-family: var(--qe-font-mono, monospace); font-size: 12px; gap: 8px; max-width: 100%; padding: 9px 12px; }
.uc-cry-addr-text { overflow-wrap: anywhere; }
.uc-cry-copy { background: none; border: none; cursor: pointer; font-size: 14px; padding: 0; }
.uc-cry-poll { align-items: center; color: var(--qe-ink2, #5B564E); display: flex; font-size: 12.5px; gap: 9px; justify-content: center; margin: 0 0 6px; }
.uc-cry-poll-dot { animation: uc-cry-pl 1.2s ease-in-out infinite; background: var(--qe-pulse, #E0A458); border-radius: 50%; height: 8px; width: 8px; }
@keyframes uc-cry-pl { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.uc-cry-load { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 220px; padding: 26px 12px; }
.uc-cry-load-text { color: var(--qe-ink2, #5B564E); font-size: 13px; margin: 14px 0 0; }
.uc-cry-done { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 220px; padding: 26px 12px; text-align: center; }
.uc-cry-done-ico { align-items: center; background: var(--qe-mint, #D3EBE3); border-radius: 50%; color: var(--qe-mint-deep, #1A6B5C); display: flex; font-size: 24px; height: 52px; justify-content: center; margin-bottom: 16px; width: 52px; }
.uc-cry-retry { background: var(--qe-mint-deep, #1A6B5C); border: none; border-radius: 14px; color: #fff; cursor: pointer; display: block; font-family: inherit; font-size: 15px; font-weight: 600; margin-top: 8px; padding: 14px; text-align: center; width: 100%; }

/* Публичная оферта: /oferta (статическая страница oferta.html) + ссылки на неё в подвалах */
.tc-footer-text a,
.uc-footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.uc-footer-legal { color: var(--qe-ink-3); font-size: 11.5px; margin: 10px 0 0; text-align: center; }
.of-card { max-width: 760px; padding: 36px 36px 32px; line-height: 1.6; font-size: 15px; }
.of-title { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.25; margin: 0 0 8px; }
.of-edition { color: var(--qe-ink-2); font-size: 13px; margin: 0 0 20px; }
.of-card h2 { font-size: 17px; font-weight: 600; margin: 28px 0 10px; }
.of-card p { margin: 0 0 10px; }
.of-card ul { margin: 0 0 12px; padding-left: 22px; }
.of-card li { margin: 0 0 4px; }
.of-card a { color: var(--qe-mint-deep); }
.of-req { color: var(--qe-ink-2); }
/* /oferta-uslugi: приложение с формой письма и таблицей позиций заказа */
.of-appendix { margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--qe-line, rgba(0,0,0,.12)); }
.of-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: 13.5px; }
.of-table th, .of-table td { border: 1px solid var(--qe-line, rgba(0,0,0,.18)); padding: 6px 8px; text-align: left; vertical-align: top; }
.of-table th { font-weight: 600; }
@media (max-width: 480px) {
  .of-card { padding: 24px 18px 20px; font-size: 14.5px; }
  .of-title { font-size: 21px; }
}
.tc-form-legal { color: var(--qe-ink-3); font-size: 12px; line-height: 1.45; margin: 12px 0 0; text-align: center; }
.tc-form-legal a { color: var(--qe-ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ── Подписка и управление (6д/6ж) ─────────────────────────────────────────────
 * easypay-windmill Plans/ru-subscriptions.md: страница оформления подписки (subscription.js), экран «Подписка
 * оформлена» (thank-you.js) и страница управления /manage/<token> (manage.js). Классы — из согласованных макетов
 * subscription-mock.html (06.10.2026) и manage-mock.html (07.10.2026), значения перенесены как есть. */
.tc-sub-period { font-size: 15px; font-weight: 500; color: var(--qe-ink-2, #33494d); margin-left: 4px; }
.tc-sub-plan { background: var(--qe-mint, #D3EBE3); border-radius: 12px; padding: 12px 14px; margin: 4px 0 18px; font-size: 14px; line-height: 1.5; color: var(--qe-ink, #0A2A2F); }
.tc-sub-plan p { margin: 0 0 6px; }
.tc-sub-plan p:last-child { margin: 0; }
.tc-sub-plan b { font-weight: 600; }
.tc-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: 13px; line-height: 1.45; color: var(--qe-ink, #0A2A2F); cursor: pointer; }
.tc-check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--qe-green, #1B7F70); }
.tc-check a { color: var(--qe-mint-deep, #1A6B5C); }
.tc-check input[aria-invalid="true"] { outline: 2px solid var(--qe-error); outline-offset: 2px; }
.tc-sub-note { font-size: 12px; line-height: 1.45; color: var(--qe-ink-3, #5b6e72); margin: 10px 0 0; }
.tc-sub-contacts { border-top: 1px solid var(--qe-line, rgba(11,59,69,.1)); margin-top: 16px; padding-top: 12px; font-size: 12px; line-height: 1.5; color: var(--qe-ink-3, #5b6e72); }
.tc-sub-contacts a { color: var(--qe-mint-deep, #1A6B5C); }
.tc-sub-done-list { margin: 12px 0 16px; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--qe-ink, #0A2A2F); }
.tc-sub-done-list li { padding: 8px 0; border-bottom: 1px solid var(--qe-line, rgba(11,59,69,.1)); display: flex; justify-content: space-between; gap: 12px; }
.tc-sub-done-list li span:first-child { color: var(--qe-ink-3, #5b6e72); }
.tc-sub-done-list li span:last-child { text-align: right; overflow-wrap: anywhere; }
.tc-sub-status { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--qe-mint, #D3EBE3); color: var(--qe-mint-deep, #1A6B5C); margin-bottom: 10px; }
.tc-sub-status.off { background: rgba(11,59,69,.08); color: var(--qe-ink-2, #33494d); }
.tc-sub-status.warn { background: var(--qe-error-bg); color: var(--qe-error); }
.tc-btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tc-btn-secondary { display: block; width: 100%; text-align: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--qe-line-strong, rgba(11,59,69,.18)); background: #fff; color: var(--qe-ink, #0A2A2F); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
/* В макете было `font: 600 15px var(--qe-font, inherit)` — inherit внутри сокращения делает правило недействительным, и кнопка брала шрифт браузера. */
.tc-btn-secondary:disabled { color: var(--qe-ink-3); cursor: not-allowed; }
.tc-btn-danger { background: var(--qe-error, #C05454); }
.tc-btn-danger:hover:not(:disabled) { background: #A84646; }
/* Смена карты (6з): «Отменить подписку» второстепенной кнопкой, когда главная — «Привязать другую карту» */
.tc-btn-danger-text { color: var(--qe-error, #C05454); }
.tc-card-checks { margin: 4px 0 8px; }
.tc-sub-text { font-size: 14px; line-height: 1.55; color: var(--qe-ink, #0A2A2F); margin: 0 0 12px; overflow-wrap: anywhere; }
.tc-sub-history { font-size: 13px; color: var(--qe-ink-3, #5b6e72); margin: 0 0 4px; }
.tc-sub-error:empty { display: none; }
.tc-sub-error { margin-bottom: 10px; }

/* ── Подписка через СБП (easypay-windmill Plans/ru-sbp-subscriptions.md, моки 01–11, ack владельца 14.10.2026) ── */
/* Пояснение под главной кнопкой */
.tc-cta-hint { margin: 10px 0 0; text-align: center; font-size: 13px; line-height: 1.45; color: var(--qe-ink-2); }
/* Шаги на экране ожидания подтверждения */
.tc-steps { margin: 4px 0 20px; padding: 0; list-style: none; counter-reset: s; }
.tc-steps li { position: relative; padding: 0 0 10px 34px; font-size: 14px; line-height: 1.5; color: var(--qe-ink); }
.tc-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  border-radius: 999px; background: var(--qe-mint); color: var(--qe-mint-deep); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; }
/* Экраны СБП-подписки: статус ожидания — строкой с воздухом; QR на телефоне — свёрнутая подсказка по центру */
.tc-sbp-sub .tc-qr-wait { margin: 20px 0 0; padding: 14px 0 0; }
.tc-sbp-sub .tc-qr-details { text-align: center; border-top: none; }
.tc-sbp-sub .tc-qr-summary { display: inline-block; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px;
  color: var(--qe-mint-deep); font-weight: 500; list-style: none; }
.tc-sbp-sub .tc-qr-summary::-webkit-details-marker { display: none; }
.tc-sbp-sub .tc-qr-details[open] .tc-qr-summary { margin-bottom: 12px; }
.tc-sbp-sub .tc-trust-row { align-items: flex-start; }
.tc-sbp-sub .tc-trust-row .tc-trust-dot { margin-top: 5px; }
@media (min-width: 640px) {
  .tc-sbp-sub .tc-qr-summary { display: none; }
}
/* Вторичное действие («Оформить картой») — отдельный блок с отступом и разделителем, кнопка-контур на всю ширину */
.tc-alt-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--qe-line); text-align: center; }
.tc-alt-label { margin: 0 0 10px; font-size: 13px; color: var(--qe-ink-3); }
.tc-alt-block .tc-btn-secondary { text-decoration: none; }
/* Экраны-итоги (отказ, время вышло, банк молчит) — карточка сверху, как у остальных экранов, а не по центру экрана */
.tc-result { text-align: center; }
.tc-result .tc-error-icon { margin: 4px auto 16px; }
.tc-result .tc-product-name { margin-bottom: 10px; }
.tc-result .tc-sub-text { color: var(--qe-ink-2); }
.tc-result .tc-submit { margin-top: 8px; }
/* пустая строка ошибки под кнопкой не занимает места */
.tc-result .tc-form-error:empty, .tc-alt-block .tc-form-error:empty { display: none; }

/* Ссылка оформления подписки партнёра /sub/<id> (easypay-windmill Plans/ru-subscription-partner-api.md, шаг 5; макет v2):
   состав корзины строками чека и строка о правообладателе. */
.tc-sub-items { list-style: none; margin: 4px 0 14px; padding: 0; border-top: 1px solid var(--qe-line, rgba(11,59,69,.1)); }
.tc-sub-items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--qe-line, rgba(11,59,69,.1)); font-size: 14px; line-height: 1.4; color: var(--qe-ink, #0A2A2F); }
.tc-sub-items .q { display: block; color: var(--qe-ink-3, #5b6e72); font-size: 13px; margin-top: 2px; }
.tc-sub-items .s { white-space: nowrap; font-weight: 600; }
.tc-provider { font-size: 13px; line-height: 1.5; color: var(--qe-ink-3, #5b6e72); margin: 0 0 14px; }
