/* v2/money.css — «денежные» страницы PhraseMan 2.0: /gift/, /premium/ (+ шаг оплаты из start.js), /russia/, /start/thanks/.
   зачем: владелец 2026-10-15 утвердил вариант C («живые темы») на весь сайт. Разметка и скрипты страниц не менялись —
   здесь стили цепляются за ТЕ ЖЕ классы, что генерирует start.js / лежат в HTML. Эталон — docs/design/site-2.0/c/{gift,premium,start-thanks,russia}.html.
   Только токены base.css (цвет не пишем руками); исключение — бумага сертификата подарка (физический предмет, её чернила живут в inline-стиле gift/index.html).
   Правила под .runtime-surface нужны, потому что runtime-components.css задаёт старый вид с той же специфичностью — этот файл подключён после него. */

@keyframes pmIn { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pmSk { to { background-position: -200% 0; } }

/* ---------- общие кирпичики ---------- */
.price-card, .support-card, .edition-small-cta, .gift-how article, .step-row, .russia-step,
#production-flow .qscreen, .qthanks .qcode-box, .runtime-surface .qthanks .qguarantee {
  background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow);
}
/* ссылки в тексте: цвет темы, тонкое подчёркивание */
.gift-terms a, .qpay-alt a, .qskip a, .qru a, .russia-note a, .step-row a, .faq-a a, .qsecure a, .qthanks .qpay-alt a, .runtime-surface .qthanks .qguarantee a {
  color: var(--fill) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
/* кнопки runtime-components (.btn-primary с бликом) → пилюля 2.0 без «блика» */
.runtime-surface .btn, .runtime-surface .btn-primary { min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font: 700 16px/1 var(--font); }
.runtime-surface .btn-primary, .runtime-surface .btn-gold, .runtime-surface a.btn-gold { background: var(--cta); color: var(--cta-ink); box-shadow: 0 10px 30px color-mix(in srgb, var(--cta) 22%, transparent); }
.runtime-surface .btn-primary::after { display: none; }
.runtime-surface .btn-primary:hover, .runtime-surface .btn-gold:hover { background: var(--cta); filter: brightness(1.06); }
/* вторичная кнопка: тон + тонкое кольцо, чтобы не сливалась с фоном в светлой теме */
.button.secondary, .edition-small-cta .button { box-shadow: inset 0 0 0 1px var(--track); }
.edition-small-cta .button.secondary { background: var(--cta); color: var(--cta-ink); box-shadow: 0 10px 30px color-mix(in srgb, var(--cta) 22%, transparent); }

/* поля ввода внутри runtime-поверхностей: как в 2.0 (тон, без рамки), 16px — чтобы iOS не зумил */
.runtime-surface .gift-form input, .runtime-surface .qpay-fields input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid transparent; border-radius: 14px;
  background: var(--control); color: var(--text); font: 500 16px/1.4 var(--font); outline: none;
}
.runtime-surface .gift-form input:focus, .runtime-surface .qpay-fields input:focus {
  outline: none; border-color: color-mix(in srgb, var(--fill) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fill) 16%, transparent);
}
.runtime-surface .gift-form label, .runtime-surface .qpay-fields label { display: block; margin: 0; font-size: 13px; font-weight: 600; color: var(--sec); }
.runtime-surface .gift-form .field, .runtime-surface .qpay-fields .field { display: grid; gap: 8px; margin: 0; }

/* =====================================================================
   /gift/
   ===================================================================== */
.edition-gift-top, .subhero { padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 48px); }
.edition-gift-top > .container { display: grid; gap: 22px; padding-inline: clamp(16px, 4vw, 40px); }
.edition-gift-top h1, .subhero h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1; letter-spacing: -.04em; max-width: 16ch; }
.edition-gift-top h1 em, .subhero h1 em { display: block; }
.edition-gift-top h1 br, .subhero h1 br { display: none; }
.edition-gift-top p, .subhero p { font-size: var(--t-l); color: var(--sec); max-width: 46ch; }

.gift-config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-block: clamp(8px, 2vw, 24px) clamp(40px, 6vw, 80px); }
.gift-controls { min-width: 0; }
.gift-controls > h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 18px; }
.gift-controls > .runtime-surface { display: block; }

.runtime-surface .gift-options { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.runtime-surface .gift-option {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 18px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--edge); box-shadow: none; color: var(--text); cursor: pointer;
  transition: transform 240ms var(--spring), background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.runtime-surface .gift-option:hover { transform: none; filter: none; background: color-mix(in srgb, var(--fill) 7%, var(--card-solid)); }
.runtime-surface .gift-option:active { transform: scale(.985); }
.runtime-surface .gift-option.selected { background: color-mix(in srgb, var(--fill) 14%, var(--card-solid)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fill) 70%, transparent); border-color: transparent; }
:root[data-mode="light"] .runtime-surface .gift-option { box-shadow: var(--shadow); }
:root[data-mode="light"] .runtime-surface .gift-option.selected { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fill) 70%, transparent), var(--shadow); }
/* круглый «радио» слева — чтобы выбор читался и без цвета */
.runtime-surface .gift-option::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--control); box-shadow: inset 0 0 0 1px var(--track); }
.runtime-surface .gift-option.selected::before { background: radial-gradient(circle, var(--cta-ink) 0 3.5px, var(--cta) 4px); box-shadow: none; }
.runtime-surface .gift-option .opt-info { flex: 1; min-width: 0; }
.runtime-surface .gift-option .opt-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.runtime-surface .gift-option .opt-sub { font-size: 13px; color: var(--sec); margin-top: 2px; }
/* зачем (замер контраста 18.10; Ревизор 3.79): на тёмной карточке --sec давал 4,33:1 при цели 4,5 — светлее только в тёмном режиме;
   литерал на все режимы перебивал светлый токен (#5C5C63) и ронял подпись до 2,27:1 на белой карточке */
:root:not([data-mode="light"]) .runtime-surface .gift-option .opt-sub { color: #A9ACB4; }
.runtime-surface .gift-option .opt-price { flex: none; min-width: 72px; text-align: right; font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.runtime-surface .gift-option .opt-price[data-price-pending] {
  color: transparent; min-height: 22px; border-radius: 999px;
  background: linear-gradient(90deg, var(--control) 0%, var(--track) 50%, var(--control) 100%); background-size: 220% 100%; animation: pmSk 1.4s linear infinite;
}
.runtime-surface .gift-option .tag {
  position: absolute; top: -11px; right: 16px; display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px;
  background: var(--cta); color: var(--cta-ink); font-size: 11px; font-weight: 800; letter-spacing: .02em;
}

.runtime-surface .gift-form { display: grid; gap: 16px; }
.runtime-surface .gift-err { margin: 0; min-height: 0; color: var(--bad); font-size: 14px; font-weight: 600; }
.runtime-surface .gift-err:empty { display: none; }
.runtime-surface .gift-form #cardBtn { width: 100%; }
.runtime-surface .gift-form #cardBtn[disabled], .runtime-surface .gift-form #cardBtn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.runtime-surface .gift-form #paypal-buttons { margin-top: 0; }
.runtime-surface .gift-terms { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* сертификат: бумага и чернила остаются «настоящими» (inline-стиль страницы); здесь — только рамка/тень/положение */
.gift-canvas { min-width: 0; }
.gift-canvas .cert { top: calc(env(safe-area-inset-top, 0px) + 110px); border: 0; border-radius: 22px; box-shadow: 0 30px 80px color-mix(in srgb, #000 42%, transparent); }
.gift-canvas .cert .cert-body { border: 0; }

.gift-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-bottom: clamp(24px, 4vw, 48px); }
.gift-how article { padding: 26px; border-radius: 26px; display: grid; gap: 10px; align-content: start; }
.gift-how article > span { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--fill); font-variant-numeric: tabular-nums; }
.gift-how h3 { font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.2; }
.gift-how p { color: var(--sec); font-size: var(--t-s); }

@media (max-width: 980px) {
  .gift-config, .gift-how { grid-template-columns: minmax(0, 1fr); }
  .gift-canvas { order: -1; }
  /* relative, не static: иначе блик ::after (absolute) выходит за overflow сертификата и даёт горизонтальный скролл */
  .gift-canvas .cert { position: relative; top: auto; }
}

/* =====================================================================
   /premium/ — тарифы
   ===================================================================== */
.subhero.center { text-align: center; }
.subhero.center h1, .subhero.center p { margin-inline: auto; }
/* зачем: владелец 15.10 убрал тариф «навсегда» — две карточки по центру, а не 2 из 3 колонок */
.edition-pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 14px; align-items: stretch; padding-bottom: 8px; }
.price-card { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: 26px; transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.price-card:hover { transform: translateY(-4px); }
.price-card.yearly { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fill) 60%, transparent), var(--shadow); }
.price-card .eyebrow { font-size: 12px; }
.price-card h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.price-card .price-amount { font-size: clamp(36px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-card > p { margin-top: -6px; font-size: 14px; color: var(--sec); font-weight: 600; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-card li { position: relative; padding-left: 28px; font-size: 15px; color: var(--sec); }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: var(--fill);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price-card .button { width: 100%; margin-top: 6px; }
.pricing-note { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }

.edition-small-cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 8px; align-items: center; margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(24px, 4vw, 40px); border-radius: 30px; max-width: calc(var(--wrap) - 2 * clamp(16px, 4vw, 40px)); width: calc(100% - 2 * clamp(16px, 4vw, 40px));
}
.edition-small-cta h2 { grid-column: 1; font-size: clamp(28px, 3.4vw, 40px); }
.edition-small-cta p { grid-column: 1; color: var(--sec); font-size: var(--t-l); }
.edition-small-cta .button { grid-column: 2; grid-row: 1 / span 2; }

@media (max-width: 980px) { .edition-pricing { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .edition-small-cta { grid-template-columns: minmax(0, 1fr); }
  .edition-small-cta .button { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
}

/* =====================================================================
   /premium/ — шаг оплаты (start.js, режим paywall) в #production-flow
   ===================================================================== */
#production-flow { scroll-margin-top: 110px; padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 96px); }
#production-flow #quiz-progress-fill { display: none; }
#production-flow .quiz-root { max-width: 720px; margin-inline: auto; padding: 0; }
#production-flow .qscreen { display: grid; gap: 18px; padding: clamp(22px, 4vw, 40px); border-radius: 30px; animation: pmIn 420ms var(--ease); }
#production-flow .qscreen > * { margin: 0; min-width: 0; }
#production-flow .qscreen h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.05; }
.gold-accent { color: var(--fill); }
#production-flow .qscreen .sub { color: var(--sec); font-size: var(--t-m); line-height: 1.55; max-width: 56ch; }
.runtime-surface .qpersonal { padding: 14px 16px; border: 0; border-radius: 18px; background: var(--control); color: var(--text); font-size: 15px; line-height: 1.5; }

/* сравнение «Бесплатно / Premium» */
.runtime-surface .qcompare { padding: 4px 0; border: 0; border-radius: 20px; background: var(--control); overflow: hidden; }
.runtime-surface .qcompare-row { grid-template-columns: minmax(0, 1fr) 96px 96px; gap: 10px; padding: 12px 18px; font-size: 15px; border-top: 1px solid var(--track); }
.runtime-surface .qcompare-row:first-child { border-top: 0; }
.runtime-surface .qcompare-row > span:nth-child(2), .runtime-surface .qcompare-row > span:nth-child(3) { justify-self: center; font-size: 13px; font-weight: 600; }
.runtime-surface .qcompare-head { background: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sec); }
.runtime-surface .qcompare-dim { color: var(--sec); }
.runtime-surface .qcompare-gold { color: var(--fill); font-weight: 700; }

/* выбор тарифа */
.runtime-surface .qplans { display: grid; gap: 14px; margin: 0; }
.runtime-surface .qplan-opt {
  position: relative; color: var(--text); /* base.css красит все <label> в --sec */ display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 0; border-radius: 18px; background: var(--control); cursor: pointer;
  transition: transform 240ms var(--spring), background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.runtime-surface .qplan-opt:active { transform: scale(.985); }
.runtime-surface .qplan-opt::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card-solid); box-shadow: inset 0 0 0 1px var(--track); }
.runtime-surface .qplan-opt.selected { background: color-mix(in srgb, var(--fill) 14%, var(--card-solid)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fill) 70%, transparent); }
.runtime-surface .qplan-opt.selected::before { background: radial-gradient(circle, var(--cta-ink) 0 3.5px, var(--cta) 4px); box-shadow: none; }
.runtime-surface .qplan-opt:has(input:focus-visible) { outline: 2px solid var(--fill); outline-offset: 3px; }
.runtime-surface .qplan-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.runtime-surface .qplan-name small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--sec); }
.runtime-surface .qplan-price { flex: none; text-align: right; display: grid; justify-items: end; }
.runtime-surface .qplan-price b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.runtime-surface .qplan-price small { font-size: 12px; font-weight: 500; color: var(--sec); white-space: nowrap; }
.runtime-surface .qplan-badge {
  top: -11px; left: 18px; display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px;
  background: var(--cta); color: var(--cta-ink); font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: none;
}

/* поля, плашка РФ, гарантия */
.runtime-surface .qpay-fields { display: grid; gap: 14px; }
.runtime-surface .qru, .runtime-surface .qguarantee { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--control); font-size: 14px; line-height: 1.45; color: var(--sec); }
#production-flow .qguarantee { box-shadow: none; }
.runtime-surface .qru b { color: var(--text); }
.runtime-surface .qru a { white-space: normal; }
.runtime-surface .qru-flag { font-size: 20px; line-height: 1; flex: none; }

/* оплата */
.runtime-surface .qpay-buttons { display: grid; gap: 10px; margin: 0; }
.runtime-surface .qpay-buttons #paypal-buttons { margin: 0; min-height: 0; }
.runtime-surface #qpay-card-btn { width: 100%; }
.runtime-surface #qpay-card-btn[disabled] { opacity: .6; pointer-events: none; }
.runtime-surface .qpay-methods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; }
.runtime-surface .qpay-methods span { padding: 6px 10px; border: 0; border-radius: 999px; background: var(--control); color: var(--sec); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.runtime-surface .qerr { margin: 0; padding: 12px 16px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); font-size: 14px; font-weight: 600; line-height: 1.45; }
.runtime-surface .qpay-alt, .runtime-surface .qskip { margin: 0; text-align: center; font-size: 14px; color: var(--sec); }
.runtime-surface .qsecure { margin: 0; text-align: center; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* вопросы-ответы внутри карточки: тоном, а не второй карточкой */
.runtime-surface .qfaq-mini { margin: 0; padding: 2px 0; border: 0; border-radius: 20px; background: var(--control); box-shadow: none; }
.runtime-surface .qfaq-mini details { margin: 0 18px; padding: 0; border-bottom: 1px solid var(--track); }
.runtime-surface .qfaq-mini details:last-child { border-bottom: 0; }
.runtime-surface .qfaq-mini summary { padding: 16px 0; font-size: 15px; font-weight: 700; color: var(--text); }
.runtime-surface .qfaq-mini summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--card-solid); display: grid; place-items: center;
  font-size: 18px; font-weight: 500; line-height: 1; color: var(--text); transition: transform 300ms var(--ease);
}
.runtime-surface .qfaq-mini details[open] summary::after { transform: rotate(45deg); }
.runtime-surface .qfaq-mini p { margin: 0; padding: 0 44px 18px 0; font-size: 15px; line-height: 1.6; color: var(--sec); }

/* «Назад» — тихая кнопка-пилюля, видна на карточке */
.runtime-surface .qback { justify-self: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--control); color: var(--sec); font: 600 14px/1 var(--font); }
.runtime-surface .qback:hover { color: var(--text); }

@media (max-width: 540px) {
  #production-flow .qscreen { padding: 18px; }
  .runtime-surface .qcompare-row { grid-template-columns: minmax(0, 1fr) 66px 66px; padding: 11px 12px; font-size: 14px; gap: 8px; }
  .runtime-surface .qcompare-row > span:nth-child(2), .runtime-surface .qcompare-row > span:nth-child(3) { font-size: 12px; text-align: center; }
  .runtime-surface .qfaq-mini details { margin: 0 14px; }
  .runtime-surface .qfaq-mini p { padding-right: 0; }
}

/* =====================================================================
   /russia/
   ===================================================================== */
.subhero.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.subhero.split > div:first-child { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.subhero .small-note { font-size: 14px; color: var(--muted); max-width: 44ch; }
.support-card { min-width: 0; padding: clamp(24px, 3.4vw, 36px); border-radius: 28px; display: grid; gap: 20px; }
.support-card h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.support-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: r; }
.support-card li { display: flex; gap: 14px; align-items: center; font-weight: 600; color: var(--text); }
.support-card li::before { counter-increment: r; content: counter(r); flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--tile); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.support-card .text-link { justify-self: start; }

#payment-instructions { scroll-margin-top: 100px; animation: pmIn 420ms var(--ease); padding-bottom: clamp(24px, 4vw, 48px); }
/* !important: runtime-components.css на телефоне принудительно ставит .wrap по 20px — поля уже даёт .container */
#payment-instructions > .wrap { max-width: 820px; margin-inline: auto; padding-left: 0 !important; padding-right: 0 !important; }
#payment-instructions .section-pad { padding: clamp(24px, 4vw, 40px) 0 0; }
.runtime-surface .section-alt::before { display: none; }
.steps-rail { display: grid; gap: 12px; }
.step-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 22px; border-radius: 22px; }
.step-row .num { width: 44px; height: 44px; border-radius: 13px; background: var(--tile); color: var(--text); display: grid; place-items: center; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.step-row strong { display: block; margin-top: 10px; font-size: 17px; line-height: 1.3; }
.step-row p { margin-top: 4px; color: var(--sec); font-size: var(--t-s); }
.step-row p b { color: var(--text); }
#payment-instructions .reveal[style*="center"] { margin-top: 24px; }
.runtime-surface .tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font: 700 16px/1.2 var(--font); text-decoration: none; box-shadow: 0 10px 30px color-mix(in srgb, var(--cta) 22%, transparent); transition: transform 240ms var(--spring), filter 160ms; }
.runtime-surface .tg-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.runtime-surface .tg-btn:hover { filter: brightness(1.06); }
.runtime-surface .tg-btn:active { transform: scale(.97); }
.russia-note { display: grid; gap: 10px; margin-top: 24px; justify-items: center; text-align: center; }
.russia-note p { font-size: 14px; color: var(--muted); max-width: 60ch; }
.russia-note p + p { font-size: var(--t-s); color: var(--sec); }
.section-head { text-align: left; margin: 0; }
.runtime-surface .section-head { max-width: none; margin: 0 0 24px; text-align: left; }
.runtime-surface .section-head h2 { font-size: var(--t-h2); letter-spacing: -.03em; line-height: 1.05; margin: 0; }

/* FAQ России: тот же вид, что у .faq-list на других страницах; ответы раскрываем через grid — не зависят от замера высоты (блок скрыт при загрузке) */
.runtime-surface .faq-list { display: block; max-width: none; margin: 0; padding: 6px 0; border-radius: 26px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.runtime-surface .faq-item { margin: 0 24px; border: 0; border-bottom: 1px solid var(--track); border-radius: 0; background: none; overflow: visible; }
.runtime-surface .faq-item:last-child { border-bottom: 0; }
.runtime-surface .faq-q { padding: 22px 0; gap: 20px; font: 700 var(--t-m)/1.35 var(--font); color: var(--text); background: none; }
.runtime-surface .faq-q:hover { filter: none; }
.runtime-surface .faq-q .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--control); display: grid; place-items: center; font-size: 18px; font-weight: 500; line-height: 1; color: var(--text); transition: transform 300ms var(--ease); }
.runtime-surface .faq-item.open .plus { transform: rotate(45deg); }
.runtime-surface .faq-a { display: grid; grid-template-rows: 0fr; max-height: none !important; overflow: visible; transition: grid-template-rows 300ms var(--ease); }
.runtime-surface .faq-item.open .faq-a { grid-template-rows: 1fr; }
.runtime-surface .faq-a > p { min-height: 0; overflow: hidden; padding: 0; color: var(--sec); font-size: var(--t-s); line-height: 1.6; max-width: 70ch; visibility: hidden; transition: visibility 0s linear 300ms; }
.runtime-surface .faq-item.open .faq-a > p { visibility: visible; transition-delay: 0s; }
.runtime-surface .faq-a > p::after { content: ""; display: block; height: 22px; }

@media (max-width: 980px) { .subhero.split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 540px) {
  .runtime-surface .faq-item { margin: 0 18px; }
  .step-row { padding: 18px; gap: 14px; }
  .runtime-surface .tg-btn { width: 100%; white-space: normal; text-align: center; }
}

/* =====================================================================
   /start/thanks/
   ===================================================================== */
.runtime-surface .quiz-root { max-width: 760px; margin-inline: auto; }
.runtime-surface .qthanks { display: grid; justify-items: center; gap: 16px; padding: 0; text-align: center; animation: pmIn 420ms var(--ease); }
.runtime-surface .qthanks > * { margin: 0; min-width: 0; }
.runtime-surface .quiz-root { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.runtime-surface .qthanks h1, .runtime-surface .qthanks .qstate-title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; max-width: 18ch; color: var(--text); text-wrap: balance; }
.runtime-surface .qthanks .sub { max-width: 52ch; color: var(--sec); font-size: var(--t-m); line-height: 1.55; }
.runtime-surface .qthanks .icon { width: 72px; height: 72px; margin: 0; border-radius: 20px; box-shadow: var(--shadow); }
.runtime-surface .qthanks .kicker { justify-content: center; }
.runtime-surface #state-waiting { padding: clamp(32px, 6vw, 64px) 24px; border-radius: 30px; background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.runtime-surface .qbuild-ring { width: 40px; height: 40px; margin: 0; border-radius: 50%; border: 3px solid var(--track); border-top-color: var(--fill); }

/* код активации */
.qthanks .qcode-box { width: 100%; max-width: 420px; margin: 4px 0 0; padding: 20px 16px; border-radius: 24px; display: grid; gap: 10px; }
.qthanks .qcode { margin: 0; padding: 18px 12px; border-radius: 16px; background: var(--control); color: var(--text); -webkit-text-fill-color: currentColor; font: 800 clamp(24px, 6vw, 34px)/1.1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .08em; user-select: all; word-break: break-all; }
.runtime-surface .qthanks .qcode-copy { display: flex; width: 100%; max-width: none; margin: 0; }
.qthanks #deeplink-btn { margin-bottom: 0 !important; }
/* на телефоне видны обе кнопки: «Активировать» главная, «Скопировать» — вторая */
.qthanks #deeplink-btn:not([style*="display:none"]):not([style*="display: none"]) ~ #copy-code-btn { background: var(--control); color: var(--text); box-shadow: inset 0 0 0 1px var(--track); }
.qthanks #copy-code-btn[disabled] { opacity: .6; }
.runtime-surface .qthanks .qsecure { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 40ch; margin-inline: auto; }

/* шаги */
.runtime-surface .qthanks-steps { width: 100%; max-width: 560px; margin: 8px 0 0; gap: 12px; text-align: left; }
.runtime-surface .russia-step { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 22px; }
.runtime-surface .russia-step-num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tile); color: var(--text); display: grid; place-items: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.runtime-surface .russia-step strong { display: block; margin: 0 0 4px; font-size: 17px; line-height: 1.3; color: var(--text); }
.runtime-surface .russia-step p { font-size: var(--t-s); color: var(--sec); }
.runtime-surface .russia-step p b { color: var(--text); }
.runtime-surface .qthanks .qguarantee { width: 100%; max-width: 560px !important; padding: 16px 20px; border-radius: 22px; text-align: left; font-size: var(--t-s); color: var(--sec); }

/* магазины и помощь */
.qthanks .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.runtime-surface .store-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px; border-radius: 999px; background: var(--control); color: var(--text); text-align: left; box-shadow: inset 0 0 0 1px var(--track); transition: transform 240ms var(--spring), filter 160ms; }
.runtime-surface .store-badge[data-store="ios"] { background: var(--cta); color: var(--cta-ink); box-shadow: 0 10px 30px color-mix(in srgb, var(--cta) 22%, transparent); }
.runtime-surface .store-badge:hover { filter: brightness(1.08); transform: none; }
.runtime-surface .store-badge:active { transform: scale(.97); }
.runtime-surface .store-badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.runtime-surface .store-badge small { display: block; font-size: 11px; font-weight: 600; line-height: 1.1; color: inherit; opacity: .75; }
.runtime-surface .store-badge b { display: block; font-size: 16px; line-height: 1.15; }
.runtime-surface .qthanks .qpay-alt { margin: 0 !important; max-width: 52ch; font-size: var(--t-s); color: var(--sec); text-align: center; }

@media (max-width: 540px) {
  .runtime-surface .qthanks h1, .runtime-surface .qthanks .qstate-title { max-width: none; }
  .runtime-surface .russia-step { padding: 16px; gap: 14px; }
  .runtime-surface .qthanks .actions .store-badge { width: 100%; justify-content: center; }
}
