/* Оплата для России (/help/payment, /pay). Палитра и размеры — из приложения: src/constants/theme.ts (светлая «крем» и тёмная),
   блок пейвола повторяет src/app/paywall.tsx (31/37 заголовок, пункты 17, карточки 88/74 r22 border 1.5, пилюли 34, кнопки 56 r28). */
:root {
  --app-bg: #F4F2EB; --app-surface: #FBFAF6; --app-sep: #E8E6DD; --app-text: #1E1F1A; --app-strong: #0F1613; --app-sec: #7C8A83;
  --app-primary: #43C181; --app-on: #FFFFFF; --app-tint: rgba(67,193,129,0.05); --app-laurel: #C9A227;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --app-bg: #101314; --app-surface: #1B1F21; --app-sep: #313537; --app-text: #FCFEFF; --app-strong: #FCFEFF; --app-sec: #929E9F;
  --app-primary: #42BF80; --app-on: #0E1512; --app-tint: rgba(66,191,128,0.08);
}}
:root[data-theme="dark"] {
  --app-bg: #101314; --app-surface: #1B1F21; --app-sep: #313537; --app-text: #FCFEFF; --app-strong: #FCFEFF; --app-sec: #929E9F;
  --app-primary: #42BF80; --app-on: #0E1512; --app-tint: rgba(66,191,128,0.08);
}
body.pay-body { background: var(--app-bg); color: var(--app-text); letter-spacing: 0; }
body.pay-body .brand span { color: var(--app-text); }
.pay { padding: 4px 16px 56px; max-width: 720px; margin: 0 auto; }
.pay-narrow { max-width: 430px; padding-left: 0; padding-right: 0; }

/* ---------- веб-пейвол, 1:1 с приложением ---------- */
.pw-hero { position: relative; height: 300px; overflow: hidden; }
.pw-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.pw-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 30%; bottom: 0; background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--app-bg) 80%, transparent) 60%, var(--app-bg) 86%); }
.pw-body { padding: 0 16px; margin-top: -44px; position: relative; }
.pw-h1 { font-size: 31px; line-height: 37px; font-weight: 700; letter-spacing: -0.7px; color: var(--app-text); margin: 0; text-wrap: balance; }
.pw-h1 em { font-style: normal; color: #2A8A55; }
.pw-perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.pw-perks li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 22px; color: var(--app-strong); }
.pw-perks svg.chk { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--app-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pw-perks .pk { display: none; }
.pw-trust { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 16px; font-size: 17px; font-weight: 400; color: var(--app-strong); }
.pw-trust svg { width: 34px; height: 34px; flex: none; color: var(--app-laurel); }
.pw-trust span { white-space: nowrap; }
@media (max-width: 360px) { .pw-trust { font-size: 15px; } }
.pw-trust svg path { stroke-width: 1.4; }
.pw-trust svg.r { transform: scaleX(-1); }
.pw-plans { margin-top: 22px; position: relative; }
.pw-plan { position: relative; display: flex; align-items: center; justify-content: space-between; height: 88px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--app-sep); background: var(--app-surface); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.pw-plan:active { transform: scale(.98); }
.pw-plan.on { border-color: var(--app-primary); background: var(--app-tint); }
.pw-plan.month { height: 74px; margin-top: 14px; }
.pw-plan input { position: absolute; opacity: 0; pointer-events: none; }
.pw-name { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; color: var(--app-text); display: block; }
.pw-price { font-size: 17px; font-weight: 400; color: var(--app-sec); margin-top: 2px; display: block; font-variant-numeric: tabular-nums; }
.pw-disc { margin-left: auto; margin-right: 14px; height: 34px; padding: 0 16px; border-radius: 17px; background: var(--app-primary); color: var(--app-on); font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; }
.pw-right { text-align: right; }
.pw-big { font-size: 19px; font-weight: 600; color: var(--app-text); display: block; font-variant-numeric: tabular-nums; }
.pw-per { font-size: 14px; color: var(--app-sec); margin-top: 1px; display: block; }
.pw-badge-wrap { position: absolute; right: 11px; top: -20px; padding: 3px; border-radius: 20px; background: var(--app-bg); pointer-events: none; }
.pw-badge { height: 34px; padding: 0 16px; border-radius: 17px; background: var(--app-primary); color: var(--app-on); font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; }
.pw-who { font-size: 14px; color: var(--app-sec); text-align: center; margin: 16px 0 0; }
.pw-who b { color: var(--app-text); font-weight: 600; }
.pw-warn { color: #B85C3A; }
.pw-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border-radius: 28px; border: 0; margin-top: 12px; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, opacity .12s ease; }
.pw-btn:active { transform: scale(.97); }
.pw-btn[disabled] { opacity: .7; cursor: default; }
.pw-btn.main { background: var(--app-primary); color: var(--app-on); box-shadow: 0 6px 12px rgba(67,193,129,0.28); }
.pw-btn.alt { background: var(--app-surface); color: var(--app-text); border: 1.5px solid var(--app-sep); }
.pw-btn .sbp { width: 22px; height: 22px; }
.pw-cancel { font-size: 13px; color: var(--app-sec); text-align: center; margin: 12px 0 0; }
.pw-links { font-size: 13px; color: var(--app-sec); text-align: center; margin: 10px 0 0; }
.pw-links a { color: inherit; text-decoration: none; }

/* ---------- справка /help/payment, в духе экранов приложения ---------- */
.pay-hero { text-align: center; padding: 14px 0 22px; }
.pay-mascot { width: auto; height: 96px; aspect-ratio: 604 / 797; object-fit: contain; margin: 0 auto 12px; display: block; }
.pay-hero h1 { font-size: 31px; line-height: 37px; font-weight: 700; letter-spacing: -0.7px; margin: 0 0 10px; color: var(--app-text); text-wrap: balance; }
.pay-lead { font-size: 17px; line-height: 22px; color: var(--app-sec); margin: 0 auto; max-width: 48ch; }
.pay-who { font-size: 14px; color: var(--app-sec); margin: 12px 0 0; }
.pay-who b { color: var(--app-text); font-weight: 600; }
.pay-warn { color: #B85C3A; }
.pcard { background: var(--app-surface); border: 1px solid var(--app-sep); border-radius: 22px; padding: 18px 18px 18px; margin: 0 0 12px; }
.pcard-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.pcard-ic { flex: none; width: 40px; height: 40px; border-radius: 14px; background: rgba(67,193,129,0.12); display: grid; place-items: center; }
.pcard-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--app-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard-step { display: block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--app-sec); margin-bottom: 2px; }
.pcard h2 { margin: 0; font-size: 20px; line-height: 24px; letter-spacing: -0.3px; font-weight: 700; color: var(--app-text); }
.pcard p { margin: 8px 0 0; font-size: 16px; line-height: 22px; color: var(--app-sec); }
.pcard-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 4px; }
.pp { border: 1.5px solid var(--app-sep); border-radius: 16px; padding: 12px 14px; }
.pp.on { border-color: var(--app-primary); background: var(--app-tint); }
.pp b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.3px; color: var(--app-text); font-variant-numeric: tabular-nums; }
.pp span { font-size: 13px; color: var(--app-sec); }
.pbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border-radius: 28px; border: 1.5px solid var(--app-sep); background: var(--app-surface); color: var(--app-text); font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; margin-top: 12px; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, opacity .12s ease; }
.pbtn:active { transform: scale(.97); }
.pbtn-main { background: var(--app-primary); color: var(--app-on); border-color: transparent; box-shadow: 0 6px 12px rgba(67,193,129,0.28); }
.psteps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: s; }
.psteps li { position: relative; padding: 7px 0 7px 38px; font-size: 16px; line-height: 22px; color: var(--app-sec); counter-increment: s; }
.psteps li b { color: var(--app-text); font-weight: 600; }
.psteps li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(67,193,129,0.12); color: var(--app-primary); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.pfaq { margin-top: 12px; }
.pfaq h2 { font-size: 20px; letter-spacing: -0.3px; margin: 0 0 4px; color: var(--app-text); }
.pfaq details { border-bottom: 1px solid var(--app-sep); padding: 12px 0; }
.pfaq summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--app-text); }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: "+"; color: var(--app-sec); font-weight: 400; font-size: 22px; }
.pfaq details[open] summary::after { content: "−"; }
.pfaq p { margin: 8px 0 0; font-size: 16px; line-height: 22px; color: var(--app-sec); }
.pfaq a { color: var(--app-text); }
body.pay-body footer { border-top-color: var(--app-sep); }
@media (max-width: 420px) { .pcard-prices { grid-template-columns: 1fr 1fr; } }

/* первый блок справки — как у CalZen: плитка с иконкой, заголовок, чип, текст, две кнопки */
.pcard-first { padding: 22px 20px 20px; }
.pcard-row { display: flex; gap: 14px; align-items: flex-start; }
.pcard-emoji { flex: none; width: 60px; height: 60px; border-radius: 18px; background: rgba(67,193,129,0.12); display: grid; place-items: center; font-size: 30px; line-height: 1; }
.pcard-first h2 { font-size: 22px; line-height: 27px; letter-spacing: -0.4px; }
.pchip { display: inline-block; margin-top: 8px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--app-primary); color: var(--app-on); font-size: 14px; font-weight: 600; line-height: 28px; }
.pcard-first p { font-size: 17px; line-height: 23px; margin-top: 14px; }
.pcard-first .pbtn-main { margin-top: 18px; }
.pbtn-grey { background: rgba(60,60,67,0.06); border-color: transparent; color: var(--app-text); }
:root[data-theme="dark"] .pbtn-grey { background: rgba(255,255,255,0.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pbtn-grey { background: rgba(255,255,255,0.08); } }

/* остальные блоки справки: плитки с эмодзи в своих оттенках, шаги, серая/голубая плашка */
.tint-violet { background: rgba(124,92,191,0.12); }
.tint-orange { background: rgba(227,139,62,0.14); }
.tint-blue { background: rgba(47,107,176,0.12); }
.pchip.orange { background: #E38B3E; color: #fff; }
.pchip.blue { background: #3B82D1; color: #fff; }
.pcard-first .psteps { margin-top: 14px; }
.pcard-first .psteps li { color: var(--app-text); }
.psteps.grey li::before { background: rgba(60,60,67,0.08); color: var(--app-sec); }
.pnote { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(60,60,67,0.06); font-size: 15px; line-height: 21px; color: var(--app-sec); }
.pnote b { color: var(--app-text); font-weight: 600; }
.pnote.blue { background: rgba(59,130,209,0.10); color: #2F6BB0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pnote { background: rgba(255,255,255,0.07); } :root:not([data-theme="light"]) .pnote.blue { background: rgba(59,130,209,0.16); color: #8FBCF0; } }
:root[data-theme="dark"] .pnote { background: rgba(255,255,255,0.07); } :root[data-theme="dark"] .pnote.blue { background: rgba(59,130,209,0.16); color: #8FBCF0; }

/* шапка справки как у экрана приложения: иконка + имя слева, заголовок слева */
.pay-brand { display: flex; align-items: center; gap: 12px; padding: 22px 4px 0; }
.pay-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; }
.pay-brand span { font-family: "Montserrat Alternates", -apple-system, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.2px; color: var(--app-text); }
.pay-intro { padding: 26px 4px 20px; }
.pay-intro h1 { font-size: 31px; line-height: 37px; font-weight: 700; letter-spacing: -0.7px; margin: 0 0 10px; color: var(--app-text); text-wrap: balance; }
.pay-intro .pay-lead { margin: 0; max-width: none; }

/* без цветных заливок: плитки иконок и кружки шагов нейтральные */
.pcard-emoji, .tint-violet, .tint-orange, .tint-blue, .pcard-ic { background: rgba(60,60,67,0.06); }
.psteps li::before, .psteps.grey li::before { background: rgba(60,60,67,0.08); color: var(--app-sec); }
.pcard-ic svg { stroke: var(--app-sec); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pcard-emoji, :root:not([data-theme="light"]) .pcard-ic { background: rgba(255,255,255,0.08); } :root:not([data-theme="light"]) .psteps li::before { background: rgba(255,255,255,0.10); } }
:root[data-theme="dark"] .pcard-emoji, :root[data-theme="dark"] .pcard-ic { background: rgba(255,255,255,0.08); } :root[data-theme="dark"] .psteps li::before { background: rgba(255,255,255,0.10); }

/* вопросы: раскрытие с анимацией высоты, плюс поворачивается в минус */
.pq { border-bottom: 1px solid var(--app-sep); }
.pq:last-child { border-bottom: 0; }
.pq:last-child .pq-q { padding-bottom: 6px; }
.pfaq .ph2 { margin-bottom: 2px; }
.pq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit; font-size: 17px; font-weight: 600; line-height: 22px; color: var(--app-text); -webkit-tap-highlight-color: transparent; }
.pq-q i { flex: none; position: relative; width: 30px; height: 30px; border-radius: 15px; background: #EEF0EC; transition: background .25s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.pq.open .pq-q i { background: #E4F1E0; transform: rotate(180deg); }
.pq-q i::before, .pq-q i::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 2px; border-radius: 1px; background: var(--app-text); transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
.pq-q i::after { transform: rotate(90deg); }
.pq.open .pq-q i::after { transform: rotate(0deg); opacity: 0; }
.pq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.2,.8,.2,1); }
.pq-a > div { overflow: hidden; }
.pq-a p { margin: 0 0 14px; font-size: 16px; line-height: 22px; color: var(--app-sec); opacity: 0; transform: translateY(-4px); transition: opacity .22s ease .05s, transform .28s cubic-bezier(.2,.8,.2,1) .05s; }
.pq.open .pq-a { grid-template-rows: 1fr; }
.pq.open .pq-a p { opacity: 1; transform: none; }
.pq.open .pq-q i::before { background: #2A8A55; }
@media (prefers-reduced-motion: reduce) { .pq-a, .pq-a p, .pq-q i::before, .pq-q i::after { transition: none; } }

/* плитки иконок: сплошные цвета без прозрачности, залитые глифы; подзаголовки вместо чипов; шаги и плашки сплошные */
.ptile { flex: none; width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; }
.ptile svg { width: 28px; height: 28px; fill: currentColor; }
.ptile.green { background: #E4F1E0; color: #2A8A55; }
.ptile.violet { background: #ECE7F6; color: #6B55B5; }
.ptile.orange { background: #F8EBDD; color: #D27A2D; }
.ptile.blue { background: #E3ECF7; color: #2F6BB0; }
.psub { display: block; margin-top: 4px; font-size: 15px; line-height: 20px; color: var(--app-sec); }
.pcard-row { align-items: center; }
.psteps li::before, .psteps.grey li::before { background: #EEF0EC; color: #6E756F; }
.pnote, .pnote.blue { background: #F0F1EC; color: #6E756F; }
.pnote.blue { background: #E3ECF7; color: #2F6BB0; }
.pnote.orange { background: #FBEBD9; color: #A2581C; margin-top: 10px; }
.pnote.orange b { color: #8A4512; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pnote.orange { background: #3A2A1B; color: #F0B37A; } :root:not([data-theme="light"]) .pnote.orange b { color: #F7C896; } }
:root[data-theme="dark"] .pnote.orange { background: #3A2A1B; color: #F0B37A; } :root[data-theme="dark"] .pnote.orange b { color: #F7C896; }
.pbtn-grey { background: #EEF0EC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ptile.green { background: #20372F; color: #5CCC9D; } :root:not([data-theme="light"]) .ptile.violet { background: #2A2540; color: #B8A6F0; } :root:not([data-theme="light"]) .ptile.orange { background: #3A2B1C; color: #F0A35A; } :root:not([data-theme="light"]) .ptile.blue { background: #1E2B3C; color: #8FBCF0; } :root:not([data-theme="light"]) .psteps li::before, :root:not([data-theme="light"]) .pnote, :root:not([data-theme="light"]) .pbtn-grey { background: #262B2E; color: #B9C3C4; } :root:not([data-theme="light"]) .pnote.blue { background: #1E2B3C; color: #8FBCF0; } }
:root[data-theme="dark"] .ptile.green { background: #20372F; color: #5CCC9D; } :root[data-theme="dark"] .ptile.violet { background: #2A2540; color: #B8A6F0; } :root[data-theme="dark"] .ptile.orange { background: #3A2B1C; color: #F0A35A; } :root[data-theme="dark"] .ptile.blue { background: #1E2B3C; color: #8FBCF0; } :root[data-theme="dark"] .psteps li::before, :root[data-theme="dark"] .pnote, :root[data-theme="dark"] .pbtn-grey { background: #262B2E; color: #B9C3C4; } :root[data-theme="dark"] .pnote.blue { background: #1E2B3C; color: #8FBCF0; }

/* кнопки: текст в одну строку с отступами, на узких экранах чуть мельче */
.pbtn, .pw-btn { padding: 0 18px; white-space: nowrap; }
@media (max-width: 380px) { .pbtn, .pw-btn { font-size: 16px; } }

/* кнопки спокойнее: 600 вместо 700 */
.pbtn, .pw-btn { font-weight: 500; }
/* иконки Fluent (filled) в плитках */
.ptile .fi { width: 30px; height: 30px; fill: currentColor; }
/* логотипы платёжных систем */
.pfoot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.pfoot > span { font-size: 13.5px; line-height: 18px; color: var(--app-sec); }
.plogos { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 360px; }
.pchip { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 10px; border-radius: 11px; background: #FBFAF6; display: grid; place-items: center; }
.plogos img { height: 14px; width: auto; max-width: 100%; display: block; object-fit: contain; }
.plogos img[alt="СБП"] { height: 26px; }
.plogos img[alt="Mastercard"] { height: 20px; }
@media (max-width: 360px) { .plogos { gap: 6px; } .pchip { padding: 0 6px; height: 32px; } .plogos img { height: 12px; } .plogos img[alt="СБП"] { height: 22px; } .plogos img[alt="Mastercard"] { height: 18px; } }
/* шаги активации: квадрат-иконка, заголовок, подпись, разделители */
.ph2 { margin: 0 0 6px; font-size: 22px; line-height: 27px; letter-spacing: -0.4px; font-weight: 700; color: var(--app-text); }
.pst { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--app-sep); }
.pst:last-child { border-bottom: 0; padding-bottom: 2px; }
.pst .psq { width: 48px; height: 48px; border-radius: 14px; background: #EEF0EC; color: #2A8A55; display: grid; place-items: center; }
.pst .psq .fi { width: 26px; height: 26px; fill: currentColor; }
.pst b { display: block; font-size: 17px; line-height: 22px; font-weight: 600; color: var(--app-text); }
.pst span { display: block; font-size: 14.5px; line-height: 19px; color: var(--app-sec); margin-top: 1px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pst .psq { background: #262B2E; color: #5CCC9D; }  }
:root[data-theme="dark"] .pst .psq { background: #262B2E; color: #5CCC9D; } 

/* первый блок: рисованная карта на сплошной зелёной шапке */
.pcard-art { padding: 0; overflow: hidden; }
.pcard-art .part { background: #E4F1E0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 16px 18px; }
.pcard-art .pbank { width: 200px; height: 118px; border-radius: 16px; background: #2A8A55; position: relative; box-shadow: 0 10px 24px rgba(42,138,85,.3); }
.pcard-art .pbank i { position: absolute; left: 18px; top: 28px; width: 38px; height: 28px; border-radius: 6px; background: #CFE8D2; }
.pcard-art .pbank b { position: absolute; left: 18px; bottom: 16px; width: 110px; height: 10px; border-radius: 5px; background: #9ED9BC; }
.pcard-art .pbank em { position: absolute; right: 16px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; background: #F4F2EB; }
.pcard-art .pbody { padding: 18px 20px 20px; }
.pcard-art h2 { margin: 0; }
.pcard-art .psub { display: block; margin-top: 4px; }
.pcard-art .pbtn-main { margin-top: 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pcard-art .part { background: #20372F; } :root:not([data-theme="light"]) .pcard-art .pbank { background: #3AA86F; box-shadow: 0 10px 24px rgba(0,0,0,.35); } :root:not([data-theme="light"]) .pcard-art .pbank em { background: #101314; } }
:root[data-theme="dark"] .pcard-art .part { background: #20372F; } :root[data-theme="dark"] .pcard-art .pbank { background: #3AA86F; box-shadow: 0 10px 24px rgba(0,0,0,.35); } :root[data-theme="dark"] .pcard-art .pbank em { background: #101314; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pq-q i { background: #262B2E; } :root:not([data-theme="light"]) .pq.open .pq-q i { background: #20372F; } :root:not([data-theme="light"]) .pq.open .pq-q i::before { background: #5CCC9D; } }
:root[data-theme="dark"] .pq-q i { background: #262B2E; } :root[data-theme="dark"] .pq.open .pq-q i { background: #20372F; } :root[data-theme="dark"] .pq.open .pq-q i::before { background: #5CCC9D; }

/* кнопки первого блока должны быть видны при первом открытии на телефоне */
.pcard-art .pbtn-main { margin-top: 14px; }
.pcard-art .pafter { margin: 14px 0 0; font-size: 15px; line-height: 20px; }
@media (max-width: 699px) {
  .pay-brand { padding-top: 14px; }
  .pay-brand img { width: 36px; height: 36px; border-radius: 10px; }
  .pay-brand span { font-size: 19px; }
  .pay-intro { padding: 16px 4px 14px; }
  .pay-intro h1 { font-size: 26px; line-height: 31px; margin-bottom: 6px; }
  .pay-intro .pay-lead { font-size: 15px; line-height: 20px; }
  .pcard-art .part { padding: 14px 14px 12px; gap: 12px; }
  .pcard-art .pbank { width: 150px; height: 88px; border-radius: 13px; box-shadow: 0 8px 18px rgba(42,138,85,.28); }
  .pcard-art .pbank i { left: 13px; top: 20px; width: 28px; height: 20px; border-radius: 5px; }
  .pcard-art .pbank b { left: 13px; bottom: 12px; width: 80px; height: 8px; }
  .pcard-art .pbank em { right: 12px; bottom: 10px; width: 22px; height: 22px; }
  .pchip { height: 30px; border-radius: 9px; padding: 0 8px; }
  .plogos img { height: 12px; }
  .plogos img[alt="СБП"] { height: 22px; }
  .plogos img[alt="Mastercard"] { height: 17px; }
  .pcard-art .pbody { padding: 16px 16px 16px; }
  .pcard-art h2 { font-size: 19px; line-height: 23px; letter-spacing: -0.3px; }
  .pcard-art .psub { margin-top: 3px; font-size: 14px; line-height: 18px; }
  .pcard-art .pbtn-main { margin-top: 20px; }
  .pay-intro { padding: 14px 4px 12px; }
  .pcard-art .part { padding: 12px 14px 12px; gap: 10px; }
  .pcard-art .pbtn { height: 52px; border-radius: 26px; }
  .pcard-art .pbtn-grey { margin-top: 8px; }
}

/* номер способа у заголовка */
.pcard-row-num { align-items: flex-start; }
.pcard-row-num > div { flex: 1; min-width: 0; }
.pnum { flex: none; width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-top: 2px; }
.pcard-row-num .ptile.orange ~ .pnum { background: #FBEBD9; color: #D9731A; }
.pcard-row-num .ptile.blue ~ .pnum { background: #E3ECF7; color: #2F6BB0; }
/* таймлайн шагов */
.ptl { margin-top: 14px; position: relative; }
.ptl::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 16px; width: 2px; background: var(--app-sep); }
.ptli { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: flex-start; padding: 8px 0; position: relative; }
.ptli:first-child { padding-top: 0; }
.ptli:last-child { padding-bottom: 0; }
.ptl::before { top: 10px; bottom: 20px; }
.pdot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; box-shadow: 0 0 0 3px var(--app-surface); position: relative; }
.ptl.or .pdot { background: #FBEBD9; color: #D9731A; }
.ptl.bl .pdot { background: #E3ECF7; color: #2F6BB0; }
.ptl.or .ptli.last .pdot { background: #D9731A; color: #fff; }
.ptl.bl .ptli.last .pdot { background: #3B82D1; color: #fff; }
.ptl .ptli.last .pdot .fi { width: 20px; height: 20px; fill: currentColor; }
.ptli b { display: block; font-size: 16px; line-height: 21px; font-weight: 600; color: var(--app-text); }
.ptli div > span { display: block; font-size: 14px; line-height: 19px; color: var(--app-sec); margin-top: 2px; }
.pshops { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.pshops span { display: inline-block; background: #EEF0EC; border-radius: 9px; padding: 5px 10px; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--app-text); margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pshops span { background: #262B2E; } :root:not([data-theme="light"]) .ptl.or .pdot { background: #3A2A1B; color: #F0B37A; } :root:not([data-theme="light"]) .ptl.bl .pdot { background: #1E2B3A; color: #8FBCF0; } :root:not([data-theme="light"]) .pcard-row-num .ptile.orange ~ .pnum { background: #3A2A1B; color: #F0B37A; } :root:not([data-theme="light"]) .pcard-row-num .ptile.blue ~ .pnum { background: #1E2B3A; color: #8FBCF0; } }
:root[data-theme="dark"] .pshops span { background: #262B2E; } :root[data-theme="dark"] .ptl.or .pdot { background: #3A2A1B; color: #F0B37A; } :root[data-theme="dark"] .ptl.bl .pdot { background: #1E2B3A; color: #8FBCF0; } :root[data-theme="dark"] .pcard-row-num .ptile.orange ~ .pnum { background: #3A2A1B; color: #F0B37A; } :root[data-theme="dark"] .pcard-row-num .ptile.blue ~ .pnum { background: #1E2B3A; color: #8FBCF0; }

.ptli .pkey { font-style: normal; font-weight: 600; color: var(--app-text); }

.foot-req { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.req-line { display: block; height: 18px; width: auto; max-width: 100%; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ptl.or .ptli.last .pdot { background: #E08A3C; color: #1B1F21; } :root:not([data-theme="light"]) .ptl.bl .ptli.last .pdot { background: #5B9BE0; color: #1B1F21; } }
:root[data-theme="dark"] .ptl.or .ptli.last .pdot { background: #E08A3C; color: #1B1F21; } :root[data-theme="dark"] .ptl.bl .ptli.last .pdot { background: #5B9BE0; color: #1B1F21; }

/* тёмная тема: без свечения кнопок, цветные плитки и узлы нейтральные с ярким цветом иконки/цифры */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pbtn-main, :root:not([data-theme="light"]) .pw-btn.main, :root:not([data-theme="light"]) .pcard-art .pbank { box-shadow: none; }
  :root:not([data-theme="light"]) .ptile.orange, :root:not([data-theme="light"]) .ptile.blue, :root:not([data-theme="light"]) .ptile.green, :root:not([data-theme="light"]) .ptile.violet { background: #262B2E; }
  :root:not([data-theme="light"]) .ptile.orange { color: #F2A65A; } :root:not([data-theme="light"]) .ptile.blue { color: #86B8F2; } :root:not([data-theme="light"]) .ptile.green { color: #5CCC9D; } :root:not([data-theme="light"]) .ptile.violet { color: #B8A6F0; }
  :root:not([data-theme="light"]) .ptl.or .pdot, :root:not([data-theme="light"]) .ptl.bl .pdot, :root:not([data-theme="light"]) .pcard-row-num .ptile ~ .pnum { background: #262B2E; }
  :root:not([data-theme="light"]) .ptl.or .pdot, :root:not([data-theme="light"]) .pcard-row-num .ptile.orange ~ .pnum { color: #F2A65A; }
  :root:not([data-theme="light"]) .ptl.bl .pdot, :root:not([data-theme="light"]) .pcard-row-num .ptile.blue ~ .pnum { color: #86B8F2; }
  :root:not([data-theme="light"]) .ptl.or .ptli.last .pdot { background: #F2A65A; color: #1B1F21; } :root:not([data-theme="light"]) .ptl.bl .ptli.last .pdot { background: #86B8F2; color: #1B1F21; }
  :root:not([data-theme="light"]) .ptl::before { background: #313537; }
  :root:not([data-theme="light"]) .pq.open .pq-q i { background: #262B2E; } }
:root[data-theme="dark"] .pbtn-main, :root[data-theme="dark"] .pw-btn.main, :root[data-theme="dark"] .pcard-art .pbank { box-shadow: none; }
:root[data-theme="dark"] .ptile.orange, :root[data-theme="dark"] .ptile.blue, :root[data-theme="dark"] .ptile.green, :root[data-theme="dark"] .ptile.violet { background: #262B2E; }
:root[data-theme="dark"] .ptile.orange { color: #F2A65A; } :root[data-theme="dark"] .ptile.blue { color: #86B8F2; } :root[data-theme="dark"] .ptile.green { color: #5CCC9D; } :root[data-theme="dark"] .ptile.violet { color: #B8A6F0; }
:root[data-theme="dark"] .ptl.or .pdot, :root[data-theme="dark"] .ptl.bl .pdot, :root[data-theme="dark"] .pcard-row-num .ptile ~ .pnum { background: #262B2E; }
:root[data-theme="dark"] .ptl.or .pdot, :root[data-theme="dark"] .pcard-row-num .ptile.orange ~ .pnum { color: #F2A65A; }
:root[data-theme="dark"] .ptl.bl .pdot, :root[data-theme="dark"] .pcard-row-num .ptile.blue ~ .pnum { color: #86B8F2; }
:root[data-theme="dark"] .ptl.or .ptli.last .pdot { background: #F2A65A; color: #1B1F21; } :root[data-theme="dark"] .ptl.bl .ptli.last .pdot { background: #86B8F2; color: #1B1F21; }
:root[data-theme="dark"] .ptl::before { background: #313537; }
:root[data-theme="dark"] .pq.open .pq-q i { background: #262B2E; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pcard-row-num .ptile.orange ~ .pnum, :root:not([data-theme="light"]) .pcard-row-num .ptile.blue ~ .pnum { background: #262B2E; } }
:root[data-theme="dark"] .pcard-row-num .ptile.orange ~ .pnum, :root[data-theme="dark"] .pcard-row-num .ptile.blue ~ .pnum { background: #262B2E; }

/* пейвол на телефоне: без шапки сайта (как в приложении), компактнее, чтобы тарифы и кнопка влезали без прокрутки */
@media (max-width: 699px) {
  body.pay-body header.top { display: none; }
  .pw-hero { height: 230px; }
  .pw-hero img { object-position: 50% 30%; }
  .pw-body { margin-top: -40px; }
  .pw-h1 { font-size: 27px; line-height: 32px; letter-spacing: -0.6px; }
  .pw-perks { margin-top: 12px; gap: 7px; }
  .pw-perks li { font-size: 16px; line-height: 21px; }
  .pw-perks svg { width: 20px; height: 20px; }
  .pw-trust { margin-top: 12px; font-size: 16px; }
  .pw-trust svg { width: 30px; height: 30px; }
  .pw-plans { margin-top: 16px; }
  .pw-plan { height: 80px; }
  .pw-plan.month { height: 68px; }
  .pw-btn { height: 54px; border-radius: 27px; margin-top: 10px; }
}
/* низкие экраны (iPhone SE): верх крупнее, подпись под кнопкой уходит под прокрутку */
@media (max-width: 699px) and (max-height: 720px) {
  .pw-hero { height: 215px; }
  .pw-body { margin-top: -38px; }
  .pw-h1 { font-size: 26px; line-height: 30px; }
  .pw-perks { margin-top: 10px; gap: 6px; }
  .pw-perks li { font-size: 15.5px; line-height: 20px; gap: 10px; }
  .pw-perks svg { width: 19px; height: 19px; }
  .pw-trust { margin-top: 8px; font-size: 15px; }
  .pw-trust svg { width: 28px; height: 28px; }
  .pw-plans { margin-top: 18px; }
  .pw-plan { height: 72px; border-radius: 18px; }
  .pw-plan.month { height: 62px; margin-top: 8px; }
  .pw-btn { height: 50px; border-radius: 25px; margin-top: 8px; }
  .pw-who { margin-top: 8px; font-size: 13px; line-height: 17px; }
  .pw-cancel { margin-top: 8px; }
}
  .pw-body { margin-top: -36px; }
  .pw-h1 { font-size: 24px; line-height: 28px; }
  .pw-perks { margin-top: 10px; gap: 4px; }
  .pw-perks li { font-size: 15px; line-height: 20px; gap: 10px; }
  .pw-perks svg { width: 18px; height: 18px; }
  .pw-trust { margin-top: 6px; font-size: 15px; }
  .pw-trust svg { width: 26px; height: 26px; }
  .pw-plans { margin-top: 18px; }
  .pw-plan { height: 72px; border-radius: 18px; }
  .pw-plan.month { height: 62px; margin-top: 8px; }
  .pw-btn { height: 50px; border-radius: 25px; margin-top: 8px; }
  .pw-who { margin-top: 8px; font-size: 13px; line-height: 17px; }
  .pw-cancel { margin-top: 6px; font-size: 12px; }
}

/* телефоны: бейджи и цифры в тарифах мельче */
@media (max-width: 699px) {
  .pw-disc { height: 30px; padding: 0 13px; border-radius: 15px; font-size: 15px; margin-right: 12px; }
  .pw-badge { height: 30px; padding: 0 13px; border-radius: 15px; font-size: 15px; }
  .pw-badge-wrap { top: -18px; }
}
@media (max-width: 699px) and (max-height: 720px) {
  .pw-disc { height: 26px; padding: 0 11px; border-radius: 13px; font-size: 13px; margin-right: 10px; }
  .pw-badge { height: 26px; padding: 0 11px; border-radius: 13px; font-size: 13px; }
  .pw-badge-wrap { top: -16px; right: 10px; }
}

/* фон под статус-баром и при оверскролле (белая полоса сверху на iPhone) */
html:has(body.pay-body) { background: var(--app-bg); }

/* десктоп: две колонки, фото слева карточкой, тарифы справа */
@media (min-width: 700px) {
  .pay-narrow { max-width: 1040px; padding: 24px 24px 64px; }
  .pay-narrow [data-view="plans"] { display: grid; grid-template-columns: minmax(280px, 460px) minmax(320px, 1fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
  .pw-hero { height: auto; min-height: 480px; border-radius: 28px; }
  .pw-hero::after { display: none; }
  .pw-hero img { object-position: 50% 35%; }
  .pw-hero::after { top: 55%; border-radius: 0 0 28px 28px; background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--app-bg) 55%, transparent) 60%, color-mix(in srgb, var(--app-bg) 85%, transparent) 100%); }
  .pw-body { margin-top: 0; padding: 0; align-self: center; }
  .pw-h1 { font-size: 36px; line-height: 42px; }
  .pw-perks { margin-top: 20px; gap: 11px; }
  .pw-trust { justify-content: flex-start; margin-top: 22px; }
  .pw-plans { margin-top: 26px; }
  .pw-who, .pw-cancel, .pw-links { text-align: left; }
  .pw-btn { margin-top: 16px; }
  .pay-narrow [data-view="done"] { max-width: 480px; margin: 40px auto 0; }
}

/* десктоп: преимущества строками через hairline, монохромные зелёные иконки без плашек */
@media (min-width: 700px) {
  .pw-perks { display: block; margin-top: 18px; }
  .pw-perks li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--app-sep); font-size: 16px; line-height: 21px; font-weight: 400; color: var(--app-text); }
  .pw-perks li:last-child { border-bottom: 0; }
  .pw-perks svg.chk { display: none; }
  .pw-perks .pk { display: grid; place-items: center; flex: none; width: 24px; height: 24px; color: #2A8A55; background: none; border-radius: 0; }
  .pw-perks .pk svg { width: 24px; height: 24px; fill: currentColor; }
  .pw-trust { margin-top: 18px; font-size: 16px; color: var(--app-text); font-weight: 400; }
  .pw-trust svg { width: 30px; height: 30px; }
}
@media (min-width: 700px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-perks .pk { color: #5CCC9D; } }
@media (min-width: 700px) { :root[data-theme="dark"] .pw-perks .pk { color: #5CCC9D; } }

/* строка доверия: пять золотых звёзд вместо лавров */
.pw-trust .stars { display: inline-flex; gap: 2px; flex: none; }
.pw-trust .stars .st { width: 19px; height: 19px; fill: #FF9500; color: #FF9500; }
.pw-trust > svg { display: none; }
@media (max-width: 699px) { .pw-trust { gap: 8px; } .pw-trust .stars .st { width: 16px; height: 16px; } }
@media (min-width: 700px) { .pw-trust { gap: 10px; } .pw-trust .stars .st { width: 18px; height: 18px; } }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-trust .stars .st { fill: #FF9F0A; color: #FF9F0A; } }
:root[data-theme="dark"] .pw-trust .stars .st { fill: #FF9F0A; color: #FF9F0A; }

/* преимущества везде как на десктопе: строки через hairline, монохромные зелёные иконки */
.pw-perks { display: block; margin-top: 14px; gap: 0; }
.pw-perks li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--app-sep); font-size: 16px; line-height: 21px; font-weight: 400; color: var(--app-text); }
.pw-perks li:last-child { border-bottom: 0; }
.pw-perks svg.chk { display: none; }
.pw-perks .pk { display: grid; place-items: center; flex: none; width: 24px; height: 24px; color: #2A8A55; background: none; border-radius: 0; }
.pw-perks .pk svg { width: 24px; height: 24px; fill: currentColor; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-perks .pk { color: #5CCC9D; } }
:root[data-theme="dark"] .pw-perks .pk { color: #5CCC9D; }
.pw-trust { color: var(--app-text); font-weight: 400; }

/* телефон: фото карточкой со скруглением вместо растворения в фон */
@media (max-width: 699px) {
  .pw-hero { height: 210px; margin: 10px 16px 0; border-radius: 22px; }
  .pw-hero::after { display: none; }
  .pw-hero img { object-position: 50% 46%; }
  .pw-body { margin-top: 16px; }
  .pw-perks { margin-top: 16px; }
  .pw-perks li { padding: 11px 0; font-size: 15.5px; line-height: 20px; }
  .pw-perks .pk, .pw-perks .pk svg { width: 22px; height: 22px; }
  .pw-trust { justify-content: center; margin-top: 18px; }
  .pw-plans { margin-top: 34px; }
}
@media (max-width: 699px) and (max-height: 720px) {
  .pw-hero { height: 150px; margin-top: 6px; border-radius: 18px; }
  .pw-hero img { object-position: 50% 47%; }
  .pw-body { margin-top: 10px; }
  .pw-h1 { font-size: 23px; line-height: 27px; }
  .pw-perks { margin-top: 10px; }
  .pw-perks li { padding: 7px 0; font-size: 15px; line-height: 20px; }
  .pw-perks .pk, .pw-perks .pk svg { width: 20px; height: 20px; }
  .pw-trust { margin-top: 12px; font-size: 14.5px; }
  .pw-trust .stars .st { width: 15px; height: 15px; }
  .pw-plans { margin-top: 30px; }
  .pw-plan { height: 66px; }
  .pw-plan.month { height: 58px; margin-top: 8px; }
  .pw-who { margin-top: 6px; }
  .pw-btn { margin-top: 6px; height: 48px; border-radius: 24px; }
}

@media (min-width: 700px) { .pw-plans { margin-top: 36px; } }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-h1 em { color: #5CCC9D; } }
:root[data-theme="dark"] .pw-h1 em { color: #5CCC9D; }

/* телефон: вместо фото скриншот камеры приложения в рамке справа от заголовка (вариант F) */
@media (max-width: 699px) {
  .pay-narrow [data-view="plans"] { position: relative; }
  .pw-hero { position: absolute; right: 24px; top: 14px; width: 118px; height: 236px; margin: 0; border-radius: 22px; border: 4px solid #1E1F1A; background: #1E1F1A; transform: rotate(6deg); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
  .pw-hero img { object-position: 50% 0; border-radius: 18px; }
  .pw-body { margin-top: 14px; }
  .pw-h1 { display: block; max-width: 205px; min-height: 236px; padding-top: 70px; font-size: 29px; line-height: 34px; letter-spacing: -0.7px; box-sizing: border-box; }
  .pw-perks { margin-top: 18px; }
}
@media (max-width: 699px) and (max-height: 720px) {
  .pw-hero { width: 104px; height: 208px; top: 10px; border-radius: 20px; }
  .pw-hero img { border-radius: 16px; }
  .pw-h1 { min-height: 208px; padding-top: 58px; font-size: 26px; line-height: 31px; max-width: 215px; }
  .pw-perks { margin-top: 12px; }
}
@media (max-width: 699px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-hero { border-color: #3A3F42; background: #3A3F42; box-shadow: 0 10px 24px rgba(0,0,0,.45); } }
@media (max-width: 699px) { :root[data-theme="dark"] .pw-hero { border-color: #3A3F42; background: #3A3F42; box-shadow: 0 10px 24px rgba(0,0,0,.45); } }

/* телефон: звёзды и «доверяют» под заголовком слева, чтобы не пустовало рядом с телефоном */
@media (max-width: 699px) {
  .pw-body { display: flex; flex-direction: column; }
  .pw-body > * { order: 2; }
  .pw-body .pw-h1 { order: 0; min-height: 0; padding-top: 48px; }
  .pw-body .pw-trust { order: 1; justify-content: flex-start; flex-wrap: wrap; gap: 6px 8px; max-width: 205px; margin-top: 14px; font-size: 15px; line-height: 20px; color: var(--app-sec); }
  .pw-body .pw-trust .stars .st { width: 17px; height: 17px; }
  .pw-body .pw-trust > span:last-child { display: block; max-width: 170px; white-space: normal; }
  .pw-body .pw-perks { margin-top: 40px; }
}
@media (max-width: 699px) and (max-height: 720px) {
  .pw-body .pw-h1 { padding-top: 36px; }
  .pw-body .pw-trust { margin-top: 10px; font-size: 14px; }
  .pw-body .pw-perks { margin-top: 30px; }
}

/* телефон: преимущества чуть крупнее */
@media (max-width: 699px) {
  .pw-perks li { font-size: 16.5px; line-height: 22px; padding: 12px 0; }
  .pw-perks .pk, .pw-perks .pk svg { width: 24px; height: 24px; }
}
@media (max-width: 699px) and (max-height: 720px) {
  .pw-perks li { font-size: 16px; line-height: 21px; padding: 9px 0; }
}

/* телефон: заголовок чуть крупнее */
@media (max-width: 699px) {
  .pw-body .pw-h1 { font-size: 32px; line-height: 37px; letter-spacing: -0.8px; max-width: 215px; padding-top: 40px; }
  .pw-body .pw-trust { margin-top: 12px; }
}
@media (max-width: 699px) and (max-height: 720px) {
  .pw-body .pw-h1 { font-size: 28px; line-height: 33px; padding-top: 30px; }
}

/* планшет / узкий десктоп: та же двухколоночная раскладка, но компактнее */
@media (min-width: 700px) and (max-width: 899px) {
  .pay-narrow { padding-left: 16px; padding-right: 16px; }
  .pw-h1 { font-size: 30px; line-height: 35px; }
  .pw-perks li { font-size: 15px; }
  .pw-trust { font-size: 15px; flex-wrap: wrap; }
  .pw-trust span { white-space: normal; }
  .pw-hero { min-height: 440px; }
}

/* шапка справки: карта светлее и спокойнее */
.pcard-art .part { background: #EAF3E7; }
.pcard-art .pbank { background: #9ED9BC; box-shadow: 0 8px 20px rgba(42,138,85,.14); }
.pcard-art .pbank i { background: #E4F1E0; }
.pcard-art .pbank b { background: #D6ECDC; }
.pcard-art .pbank em { background: #FBFAF6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pcard-art .part { background: #1F2A26; } :root:not([data-theme="light"]) .pcard-art .pbank { background: #2F6B4C; box-shadow: none; } :root:not([data-theme="light"]) .pcard-art .pbank i { background: #4F8F6E; } :root:not([data-theme="light"]) .pcard-art .pbank b { background: #5FA37F; } :root:not([data-theme="light"]) .pcard-art .pbank em { background: #1B1F21; } }
:root[data-theme="dark"] .pcard-art .part { background: #1F2A26; } :root[data-theme="dark"] .pcard-art .pbank { background: #2F6B4C; box-shadow: none; } :root[data-theme="dark"] .pcard-art .pbank i { background: #4F8F6E; } :root[data-theme="dark"] .pcard-art .pbank b { background: #5FA37F; } :root[data-theme="dark"] .pcard-art .pbank em { background: #1B1F21; }

/* атрибут hidden сильнее display: flex у кнопок и строк */
[hidden] { display: none !important; }

/* вторая кнопка справки: контурная, как в приложении, чтобы читалась как отдельная кнопка */
.pbtn-grey { background: transparent; border: 1.5px solid #4E5F57; color: #4E5F57; margin-top: 10px; }
.pbtn-grey:active { background: rgba(60,60,67,0.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pbtn-grey { background: transparent; border-color: #9AA6A0; color: #C9D1CC; } }
:root[data-theme="dark"] .pbtn-grey { background: transparent; border-color: #9AA6A0; color: #C9D1CC; }

/* телефон на пейволе: заметная мягкая тень, как у настоящего устройства над страницей */
@media (max-width: 699px) {
  .pw-hero { box-shadow: 0 22px 44px rgba(30,31,26,.28), 0 6px 14px rgba(30,31,26,.14); }
}
@media (max-width: 699px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-hero { box-shadow: 0 22px 44px rgba(0,0,0,.6), 0 6px 14px rgba(0,0,0,.35); } }
@media (max-width: 699px) { :root[data-theme="dark"] .pw-hero { box-shadow: 0 22px 44px rgba(0,0,0,.6), 0 6px 14px rgba(0,0,0,.35); } }

/* переключение тарифа: мягкая смена рамки и фона, как в приложении (220 мс, out cubic) */
.pw-plan { transition: border-color .22s cubic-bezier(.33,1,.68,1), background-color .22s cubic-bezier(.33,1,.68,1), transform .12s ease; }
.pw-plan .pw-name, .pw-plan .pw-big { transition: color .22s ease; }
[data-amount] { transition: opacity .18s ease; }
[data-amount].swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .pw-plan, .pw-plan .pw-name, .pw-plan .pw-big, [data-amount] { transition: none; } }

/* СБП первым: главная кнопка ведёт сразу в СБП, остальные способы — ссылкой под ней */
.pw-btn .sbp-mark { width: 22px; height: 27px; flex: none; }
/* .pw-alt больше не используется (способ выбирается в шторке) */
.pw-alt { display: block; width: 100%; margin-top: 10px; padding: 8px 0; background: none; border: 0; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--app-sec); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--app-sec) 45%, transparent); cursor: pointer; }
.pw-alt:active { opacity: .6; }
.pw-alt[disabled] { opacity: .5; }
@media (min-width: 700px) { .pw-alt { text-align: left; } }

/* шторка выбора способа оплаты */
.pm { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.38); opacity: 0; transition: opacity .26s cubic-bezier(.33,1,.68,1); }
.pm-sheet { position: relative; width: 100%; max-width: 480px; background: var(--app-bg); border-radius: 28px 28px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .32s cubic-bezier(.22,1,.36,1); box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.pm.open .pm-backdrop { opacity: 1; }
.pm.open .pm-sheet { transform: none; }
.pm-grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(60,60,67,.25); margin: 0 auto 10px; }
.pm-head { display: flex; align-items: center; justify-content: space-between; }
.pm-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: var(--app-text); }
.pm-x { width: 36px; height: 36px; border-radius: 18px; border: 0; background: #EEF0EC; display: grid; place-items: center; cursor: pointer; }
.pm-x svg { width: 16px; height: 16px; fill: none; stroke: var(--app-text); stroke-width: 2.2; stroke-linecap: round; }
.pm-sum { margin: 4px 0 14px; font-size: 15px; color: var(--app-sec); }
.pm-sum b { color: var(--app-text); font-weight: 600; }
.pm-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 12px 16px; margin-top: 8px; border-radius: 18px; border: 1.5px solid var(--app-sep); background: var(--app-surface); font-family: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, border-color .2s ease; }
.pm-row:active { transform: scale(.98); }
.pm-row[disabled] { opacity: .55; }
.pm-row[hidden], .pm-more[hidden] { display: none; }
.pm-main { border-color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 6%, var(--app-surface)); }
.pm-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.pm-ic svg { width: 40px; height: 40px; }
.pm-sbp { border-radius: 11px; background: #FFFFFF; border: 1px solid var(--app-sep); }
.pm-sbp svg { width: 22px; height: 27px; }
.pm-tx { flex: 1; min-width: 0; }
.pm-tx b { display: block; font-size: 17px; line-height: 22px; font-weight: 600; color: var(--app-text); }
.pm-tx span { display: block; font-size: 14px; line-height: 18px; color: var(--app-sec); margin-top: 1px; }
.pm-tag { flex: none; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--app-primary); color: var(--app-on); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; }
.pm-chev { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--app-sec); border-top: 2px solid var(--app-sec); transform: rotate(45deg); margin-right: 4px; opacity: .7; }
/* условия подписки в шторке способа оплаты (21.11): шторка может открыться сама и закрыть текст под кнопкой */
/* у подписки строки с суммой сверху нет (22.11): способы сразу под заголовком, с нормальным отступом, а не вплотную */
.pm-sum[hidden] + .pm-row { margin-top: 16px; }
.pm-terms { margin: 14px 4px 0; font-size: 12px; line-height: 16px; color: var(--app-sec); text-align: center; }
.pm-terms:empty { display: none; }
.pm-terms a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pm-more { display: block; margin: 14px auto 0; background: none; border: 0; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--app-sec); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (min-width: 700px) { .pm { align-items: center; } .pm-sheet { border-radius: 28px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .26s cubic-bezier(.22,1,.36,1), opacity .2s ease; } .pm.open .pm-sheet { transform: none; opacity: 1; } .pm-grab { display: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pm-x { background: #262B2E; } :root:not([data-theme="light"]) .pm-grab { background: rgba(255,255,255,.25); } }
:root[data-theme="dark"] .pm-x { background: #262B2E; } :root[data-theme="dark"] .pm-grab { background: rgba(255,255,255,.25); }
@media (prefers-reduced-motion: reduce) { .pm-backdrop, .pm-sheet { transition: none; } }

/* экран после оплаты: индикатор и действия, если платёж не завершён */
.pd-spin { display: block; width: 26px; height: 26px; margin: 18px auto 0; border-radius: 50%; border: 3px solid var(--app-sep); border-top-color: var(--app-primary); animation: pd-rot .8s linear infinite; }
.pd-spin[hidden] { display: none; }
@keyframes pd-rot { to { transform: rotate(360deg); } }
.pd-actions { margin-top: 22px; }
.pd-actions .pw-btn { text-decoration: none; }
.pd-actions .pw-btn.alt { margin-top: 10px; }
.pd-note { margin: 14px 4px 0; font-size: 14px; line-height: 19px; color: var(--app-sec); text-align: center; }
@media (prefers-reduced-motion: reduce) { .pd-spin { animation-duration: 2.4s; } }

/* иконки способов: одинаковые белые плитки с рамкой, внутри официальные знаки */
.pm-tile { width: 44px; height: 44px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--app-sep); }
.pm-tile svg { width: 26px; height: 26px; }
.pm-tile.pm-sbp svg { width: 22px; height: 27px; }
.pm-card { color: #1E1F1A; }
.pm-card svg { width: 26px; height: 26px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pm-tile { border-color: transparent; } }
:root[data-theme="dark"] .pm-tile { border-color: transparent; }

/* главная кнопка оплаты на телефоне крупнее; на низких экранах (iPhone SE) прежний размер, чтобы всё влезало */
@media (max-width: 699px) {
  .pw-btn.main { height: 62px; border-radius: 31px; font-size: 19px; margin-top: 12px; }
}
@media (max-width: 699px) and (max-height: 720px) {
  .pw-btn.main { height: 52px; border-radius: 26px; font-size: 17px; margin-top: 8px; }
}

/* шторка тянется пальцем: вертикальный жест не прокручивает страницу под ней */
.pm-sheet { touch-action: none; user-select: none; -webkit-user-select: none; }

/* карточки тарифов на телефоне: на высоких экранах крупнее, на низких (iPhone SE) без изменений */
@media (max-width: 699px) and (min-height: 721px) {
  .pw-plan { height: 92px; padding: 0 20px; border-radius: 24px; }
  .pw-plan.month { height: 78px; margin-top: 14px; }
  .pw-name { font-size: 18px; }
  .pw-price { font-size: 17px; }
  .pw-big { font-size: 21px; }
  .pw-per { font-size: 14.5px; }
}

/* мягкое цветовое пятно за шапкой, как в приложении: зелёное у телефона и тёплое у заголовка */
@media (max-width: 699px) {
  .pay-narrow [data-view="plans"] { isolation: isolate; }
  .pay-narrow [data-view="plans"]::before {
    content: ""; position: absolute; z-index: -1; top: -60px; left: 0; right: 0; height: 520px; pointer-events: none;
    background:
      radial-gradient(62% 46% at 80% 40%, rgba(67,193,129,.26), rgba(67,193,129,0) 100%),
      radial-gradient(55% 40% at 10% 36%, rgba(244,194,107,.2), rgba(244,194,107,0) 100%);
  }
}
@media (max-width: 699px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pay-narrow [data-view="plans"]::before {
    background:
      radial-gradient(62% 46% at 80% 40%, rgba(66,191,128,.2), rgba(66,191,128,0) 100%),
      radial-gradient(55% 40% at 10% 36%, rgba(244,194,107,.09), rgba(244,194,107,0) 100%);
  }
}
@media (max-width: 699px) {
  :root[data-theme="dark"] .pay-narrow [data-view="plans"]::before {
    background:
      radial-gradient(62% 46% at 80% 40%, rgba(66,191,128,.2), rgba(66,191,128,0) 100%),
      radial-gradient(55% 40% at 10% 36%, rgba(244,194,107,.09), rgba(244,194,107,0) 100%);
  }
}

/* поле почты для покупки с сайта */
.pw-mail { margin-top: 16px; }
.pw-mail-field { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-radius: 16px; background: var(--app-surface); border: 1.5px solid var(--app-sep); transition: border-color .2s ease; }
.pw-mail-field:focus-within { border-color: var(--app-primary); }
.pw-mail.bad .pw-mail-field { border-color: #D9534F; }
.pw-mail-field span { flex: none; font-size: 16px; font-weight: 500; color: var(--app-sec); }
.pw-mail-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 17px; color: var(--app-text); text-align: right; }
.pw-mail-field input::placeholder { color: var(--app-sec); opacity: .6; }
.pw-mail-hint { margin: 8px 4px 0; font-size: 13.5px; line-height: 18px; color: var(--app-sec); }
.pw-mail.bad .pw-mail-hint { color: #C0392B; }
@media (min-width: 700px) { .pw-mail-hint { text-align: left; } }

/* поле почты в шторке — как в приложении: подпись внутри поля всплывает вверх при вводе */
.fl { position: relative; display: block; height: 60px; margin-top: 4px; border-radius: 16px; border: 1.5px solid var(--app-sep); background: var(--app-surface); cursor: text; transition: border-color .2s ease; }
.fl:focus-within { border-color: var(--app-primary); }
.fl.bad { border-color: #D9534F; }
.fl-label { position: absolute; left: 16px; top: 19px; font-size: 15px; font-weight: 500; color: var(--app-sec); pointer-events: none; transition: top .2s cubic-bezier(.33,1,.68,1), font-size .2s cubic-bezier(.33,1,.68,1), color .2s ease; }
.fl.filled .fl-label, .fl:focus-within .fl-label { top: 8px; font-size: 12px; }
.fl:focus-within .fl-label { color: #2A8A55; }
.fl.bad .fl-label { color: #D9534F; }
.fl input { position: absolute; left: 16px; right: 16px; top: 22px; bottom: 6px; width: calc(100% - 32px); border: 0; outline: 0; padding: 0; margin: 0; background: transparent; font-family: inherit; font-size: 17px; color: var(--app-text); -webkit-appearance: none; appearance: none; }
.fl-err { margin: 8px 4px 0; font-size: 14px; color: #C0392B; }
.ms-go { margin-top: 18px; }
.pm-mailnote { font-size: 13.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fl:focus-within .fl-label { color: #5CCC9D; } }
:root[data-theme="dark"] .fl:focus-within .fl-label { color: #5CCC9D; }

/* автозаполнение Safari красит поле в голубой — оставляем цвет поля и текста как есть */
.fl input:-webkit-autofill, .fl input:-webkit-autofill:hover, .fl input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--app-surface) inset; box-shadow: 0 0 0 1000px var(--app-surface) inset;
  -webkit-text-fill-color: var(--app-text); caret-color: var(--app-text); transition: background-color 99999s ease 0s;
}
.fl:has(input:-webkit-autofill) .fl-label { top: 8px; font-size: 12px; }

.pm-apphint { margin: -6px 0 12px; padding: 10px 12px; border-radius: 12px; background: #FBEBD9; color: #8A4512; font-size: 14px; line-height: 19px; }
.pm-err { margin: 12px 4px 0; font-size: 14px; line-height: 19px; color: #C0392B; text-align: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pm-apphint { background: #3A2A1B; color: #F7C896; } }
:root[data-theme="dark"] .pm-apphint { background: #3A2A1B; color: #F7C896; }

/* без зелёного свечения под главными кнопками — во всех темах */
.pw-btn.main, .pbtn-main { box-shadow: none; }

/* экран после оплаты: персонаж на мятной подложке и реагирует на состояние; экран по центру по высоте */
[data-view="done"] .pw-body { min-height: calc(100svh - 80px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.pd-mascot { position: relative; width: 156px; height: 156px; margin: 0 auto 22px; display: grid; place-items: center; }
.pd-blob { position: absolute; inset: 0; border-radius: 50%; background: #E4F1E0; transition: background-color .5s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.pd-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #E4F1E0; opacity: 0; }
.pd-mascot .pay-mascot { position: relative; height: 112px; margin: 6px 0 0; transform-origin: 50% 90%; }
.pd-spark { position: absolute; width: 12px; height: 12px; background: #43C181; opacity: 0; transform: scale(0) rotate(45deg); border-radius: 2px; }
.pd-spark.s1 { top: 10px; right: 6px; } .pd-spark.s2 { top: 52px; left: -6px; width: 9px; height: 9px; background: #F2A65A; } .pd-spark.s3 { bottom: 14px; right: -4px; width: 8px; height: 8px; background: #86B8F2; }
/* проверяем: мягко покачивается и «дышит» */
[data-state="wait"] .pay-mascot { animation: pd-float 2.4s ease-in-out infinite; }
[data-state="wait"] .pd-ring { animation: pd-pulse 2.4s ease-out infinite; }
/* не завершена: задумчиво наклонился */
[data-state="pending"] .pay-mascot { animation: pd-think 3.2s ease-in-out infinite; }
/* оплачено: подпрыгнул, подложка ярче, разлетелись искорки */
[data-state="paid"] .pd-blob { background: #CDEBD6; transform: scale(1.04); }
[data-state="paid"] .pay-mascot { animation: pd-pop .7s cubic-bezier(.22,1.4,.36,1) both, pd-float 2.8s ease-in-out .7s infinite; }
[data-state="paid"] .pd-spark { animation: pd-spark .9s cubic-bezier(.22,1,.36,1) .25s both; }
[data-state="paid"] .pd-spark.s2 { animation-delay: .35s; } [data-state="paid"] .pd-spark.s3 { animation-delay: .45s; }
/* не прошла / возврат: тёплая подложка, персонаж спокоен */
[data-state="fail"] .pd-blob { background: #FBEBD9; }
[data-state="fail"] .pay-mascot { transform: rotate(-6deg); transition: transform .4s ease; }
@keyframes pd-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes pd-pulse { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes pd-think { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(-3deg) translateY(-2px); } }
@keyframes pd-pop { 0% { transform: scale(.7) translateY(10px); } 60% { transform: scale(1.08) translateY(-8px); } 100% { transform: scale(1) translateY(0); } }
@keyframes pd-spark { 0% { opacity: 0; transform: scale(0) rotate(45deg); } 50% { opacity: 1; transform: scale(1.2) rotate(135deg); } 100% { opacity: 1; transform: scale(1) rotate(180deg); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pd-blob { background: #20372F; } :root:not([data-theme="light"]) .pd-ring { border-color: #20372F; } :root:not([data-theme="light"]) [data-state="paid"] .pd-blob { background: #24473A; } :root:not([data-theme="light"]) [data-state="fail"] .pd-blob { background: #3A2A1B; } }
:root[data-theme="dark"] .pd-blob { background: #20372F; } :root[data-theme="dark"] .pd-ring { border-color: #20372F; } :root[data-theme="dark"] [data-state="paid"] .pd-blob { background: #24473A; } :root[data-theme="dark"] [data-state="fail"] .pd-blob { background: #3A2A1B; }
@media (prefers-reduced-motion: reduce) { .pd-mascot *, .pd-mascot .pay-mascot { animation: none !important; } [data-state="paid"] .pd-spark { opacity: 1; transform: scale(1) rotate(45deg); } }

/* экран после оплаты, итог: по центру на мятном круге Вилкин только пока проверяем; оплачено и не прошла: выглядывает из-за правого края
   у заголовка, текст влево; не завершена: без Вилкина */
/* режет край окна, а не колонки: на телефоне выглядывает из-за края, на широком экране стоит целиком рядом с заголовком */
html:has([data-view="done"]:is([data-state="paid"],[data-state="fail"])), html:has([data-view="done"]:is([data-state="paid"],[data-state="fail"])) body { overflow-x: hidden; overflow-x: clip; }
[data-view="done"]:is([data-state="paid"],[data-state="pending"],[data-state="fail"]) .pay-hero { position: relative; text-align: left; padding: 14px 0 22px; }
[data-view="done"]:is([data-state="paid"],[data-state="pending"],[data-state="fail"]) .pay-hero h1 { font-size: 34px; line-height: 40px; letter-spacing: -0.8px; max-width: 240px; margin: 0 0 12px; }
[data-view="done"][data-state="pending"] .pay-hero h1 { max-width: none; }
[data-view="done"]:is([data-state="paid"],[data-state="pending"],[data-state="fail"]) .pay-lead { margin: 0; max-width: 330px; text-wrap: pretty; }
[data-view="done"]:is([data-state="paid"],[data-state="pending"],[data-state="fail"]) .pd-note { text-align: left; margin: 14px 0 0; }
[data-view="done"][data-state="pending"] .pd-mascot { display: none; }
[data-view="done"]:is([data-state="paid"],[data-state="fail"]) .pd-blob,
[data-view="done"]:is([data-state="paid"],[data-state="fail"]) .pd-ring { display: none; }
[data-view="done"]:is([data-state="paid"],[data-state="fail"]) .pd-mascot { position: absolute; top: -32px; right: -64px; width: 133px; height: 176px; margin: 0; display: block; pointer-events: none; animation: pd-edge-in .7s cubic-bezier(.22,1.25,.36,1) both; }
[data-view="done"]:is([data-state="paid"],[data-state="fail"]) .pd-mascot .pay-mascot { height: 176px; margin: 0; transform-origin: 40% 41%; transform: rotate(-36deg); transition: none; }
/* оплачено: высунулся, наклонился и радостно покачивается, рядом искорки */
[data-view="done"][data-state="paid"] .pd-mascot .pay-mascot { animation: pd-edge-tilt .8s cubic-bezier(.22,1.3,.36,1) both, pd-edge-happy 2.6s ease-in-out .8s infinite; }
[data-view="done"][data-state="paid"] .pd-spark.s1 { top: 4px; right: auto; left: -34px; width: 10px; height: 10px; }
[data-view="done"][data-state="paid"] .pd-spark.s2 { top: 96px; left: -14px; width: 8px; height: 8px; }
[data-view="done"][data-state="paid"] .pd-spark.s3 { top: -22px; bottom: auto; right: auto; left: 22px; width: 7px; height: 7px; }
[data-view="done"][data-state="paid"] .pd-spark { animation-delay: .55s; }
[data-view="done"][data-state="paid"] .pd-spark.s2 { animation-delay: .65s; }
[data-view="done"][data-state="paid"] .pd-spark.s3 { animation-delay: .75s; }
/* не прошла: выглянул спокойно, почти неподвижен */
[data-view="done"][data-state="fail"] .pd-mascot { right: -70px; animation: pd-edge-in .8s cubic-bezier(.22,1,.36,1) both; }
[data-view="done"][data-state="fail"] .pd-mascot .pay-mascot { transform: rotate(-34deg); animation: pd-edge-calm-in .9s cubic-bezier(.22,1,.36,1) both, pd-edge-calm 4.8s ease-in-out .9s infinite; }
@keyframes pd-edge-in { 0% { transform: translateX(150px); } 100% { transform: translateX(0); } }
@keyframes pd-edge-tilt { 0% { transform: rotate(-6deg); } 100% { transform: rotate(-36deg); } }
@keyframes pd-edge-happy { 0%, 100% { transform: rotate(-36deg); } 50% { transform: translateY(-4px) rotate(-33deg); } }
@keyframes pd-edge-calm-in { 0% { transform: rotate(-12deg); } 100% { transform: rotate(-34deg); } }
@keyframes pd-edge-calm { 0%, 100% { transform: rotate(-34deg); } 50% { transform: translateY(2px) rotate(-32deg); } }
@media (prefers-reduced-motion: reduce) {
  [data-view="done"]:is([data-state="paid"],[data-state="fail"]) .pd-mascot,
  [data-view="done"]:is([data-state="paid"],[data-state="fail"]) .pd-mascot .pay-mascot { animation: none !important; }
}
