/* ==========================================================================
   billing.css — кнопка «Улучшить» в шапке, окно тарифов, закрытые уровни

   Цвета только из токенов темы (--tp-color-primary / -ink / surface / text),
   поэтому все три темы работают без отдельных правил: в тёмных акцент
   золотой, в светлой — бирюзовый. Текст на заливке акцентом — его «ink»
   (контраст ≥ 5.9:1 во всех темах). Окно живёт на уровне body в общем слое
   .modal-overlay (z-index 10030), над игровой доской и нижней навигацией.
   ========================================================================== */

/* ── Кнопка в шапке ──────────────────────────────────────────────────────── */
.tp-upgrade-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tp-color-primary-ink);
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tp-upgrade-pill__body {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 15px 0 12px;
    border-radius: 999px;
    isolation: isolate;
    /* A quiet outline pill: the first screen is for the game, not for the sale.
       Text and ring are the brand colour on the page's own background. */
    background: transparent;
    color: var(--tp-upgrade-ink, var(--tp-color-primary));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tp-upgrade-ink, var(--tp-color-primary)) var(--tp-upgrade-ring, 55%), transparent);
    transition: transform var(--tp-motion-fast, 140ms) var(--tp-ease-standard, ease),
                background-color var(--tp-motion-base, 220ms) var(--tp-ease-standard, ease),
                box-shadow var(--tp-motion-base, 220ms) var(--tp-ease-standard, ease);
}
/* On the light page the ring needs more weight to reach 3:1 as a UI boundary. */
html[data-theme="steppe-light"] .tp-upgrade-pill { --tp-upgrade-ink: var(--tp-color-primary-hover); --tp-upgrade-ring: 82%; }
.tp-upgrade-pill__spark { width: 16px; height: 16px; flex: 0 0 auto; }
.tp-upgrade-pill__label {
    font-family: var(--tp-font-sans);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
}
.tp-upgrade-pill:hover .tp-upgrade-pill__body {
    background: color-mix(in srgb, var(--tp-color-primary) 12%, transparent);
    box-shadow: inset 0 0 0 1px var(--tp-upgrade-ink, var(--tp-color-primary));
}
.tp-upgrade-pill:active .tp-upgrade-pill__body { transform: scale(.96); transition-duration: 90ms; }
.tp-upgrade-pill:focus-visible { outline: none; }
.tp-upgrade-pill:focus-visible .tp-upgrade-pill__body {
    outline: 2px solid var(--tp-color-focus);
    outline-offset: 3px;
}

/* Подписчик: та же форма; контур чуть плотнее и лёгкая подложка, чтобы отличить от «Улучшить». */
.tp-upgrade-pill.is-member .tp-upgrade-pill__body {
    background: color-mix(in srgb, var(--tp-color-primary) 10%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tp-color-primary) 48%, transparent);
}

@media (max-width: 430px) {
    .tp-upgrade-pill__body { height: 34px; padding: 0 13px 0 11px; gap: 6px; }
    .tp-upgrade-pill__label { font-size: 13.5px; }
}

/* ── Окно «Получить Toguz Pro» ──────────────────────────────────────────────
   Телефон — лист на весь экран; от 600px — модальное окно 440px по центру.
   Два вида в одной панели: data-view="plans" (сравнение) и "pay" (Kaspi). */
.tp-billing-sheet {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10030 !important;
    padding: 0;
    background: rgba(8, 7, 6, .7) !important;
    overflow: hidden;
}
.tp-billing-sheet:not(.open) { display: none !important; }
.tp-billing-sheet.open { display: flex !important; align-items: stretch; justify-content: center; animation: tp-pw-fade 200ms ease-out both; }
html[data-theme="steppe-light"] .tp-billing-sheet { background: rgba(39, 41, 34, .42) !important; }

.tp-billing-sheet__panel.modal-sheet {
    position: relative;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
    border: 0 !important;
    background:
        radial-gradient(90% 38% at 50% 0%, color-mix(in srgb, var(--tp-color-primary) 15%, transparent), transparent 70%),
        var(--tp-color-surface) !important;
    color: var(--tp-color-text);
    box-shadow: none;
    overflow: hidden;
}
.tp-billing-sheet.open .tp-billing-sheet__panel { animation: tp-pw-rise 300ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tp-pw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tp-pw-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes tp-pw-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tp-pw-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

.tp-billing-sheet__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(14px + env(safe-area-inset-top)) 20px 16px;
    -webkit-overflow-scrolling: touch;
}
.tp-billing-sheet__close {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top));
    right: 14px;
    z-index: 3;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tp-color-text) 10%, transparent);
    color: var(--tp-color-text-muted);
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
}
.tp-billing-sheet__close svg { width: 20px; height: 20px; }
.tp-billing-sheet__close:hover { color: var(--tp-color-text); background: color-mix(in srgb, var(--tp-color-text) 16%, transparent); }
.tp-billing-sheet__close:focus-visible { outline: 2px solid var(--tp-color-focus); outline-offset: 1px; }

/* Шапка: большая искра, заголовок, серая строка. */
.tp-pw-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 8px 18px; }
.tp-pw-hero__spark {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    color: var(--tp-color-primary);
    filter: drop-shadow(0 6px 22px color-mix(in srgb, var(--tp-color-primary) 55%, transparent));
}
html[data-theme="steppe-light"] .tp-pw-hero__spark { color: var(--tp-color-primary-hover); }
.tp-pw-hero h2 {
    margin: 0;
    font-family: var(--tp-font-display);
    font-size: clamp(26px, 7.4vw, 30px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: var(--tp-color-text);
}
.tp-pw-hero p { margin: 8px 0 0; max-width: 320px; color: var(--tp-color-text-muted); font-size: 15px; line-height: 1.4; }

.tp-pw-view[hidden] { display: none !important; }
.tp-pw-view { animation: tp-pw-swap 220ms ease-out both; }

/* Переключатель тарифов. */
.tp-pw-seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    margin: 0 0 14px;
    padding: 3px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--tp-color-text) 9%, transparent);
}
.tp-pw-seg__item {
    min-height: 44px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: var(--tp-color-text-muted);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.tp-pw-seg__item:hover { color: var(--tp-color-text); }
.tp-pw-seg__item[aria-checked="true"] {
    background: var(--tp-color-surface-raised);
    color: var(--tp-color-text);
    border-color: color-mix(in srgb, var(--tp-color-text) 14%, transparent);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .35);
}
html[data-theme="steppe-light"] .tp-pw-seg__item[aria-checked="true"] { background: #fff; box-shadow: 0 1px 4px rgba(39, 41, 34, .18); }
.tp-pw-seg__item:focus-visible { outline: 2px solid var(--tp-color-focus); outline-offset: 1px; }

/* Таблица сравнения. */
.tp-pw-card {
    margin: 0 0 14px;
    padding: 2px 14px;
    border: 1px solid var(--tp-color-border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--tp-color-surface-raised) 75%, transparent);
}
.tp-pw-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 82px;
    align-items: center;
    column-gap: 4px;
    min-height: 48px;
    padding: 8px 0;
    border-top: 1px solid var(--tp-color-border);
}
.tp-pw-row:first-child { border-top: 0; min-height: 52px; }
.tp-pw-row__name { color: var(--tp-color-text); font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.tp-pw-row--head .tp-pw-row__name,
.tp-pw-row--head .tp-pw-row__cell { color: var(--tp-color-text-muted); font-size: 12.5px; font-weight: 700; }
.tp-pw-row--head .tp-pw-row__cell.is-plan { color: var(--tp-color-primary); font-size: 14px; font-weight: 800; }
html[data-theme="steppe-light"] .tp-pw-row--head .tp-pw-row__cell.is-plan { color: var(--tp-color-primary-hover); }
.tp-pw-row__cell { display: grid; place-items: center; min-width: 0; color: var(--tp-color-text-muted); text-align: center; line-height: 1.2; }
.tp-pw-mark { width: 20px; height: 20px; }
.tp-pw-row__cell.is-plan .tp-pw-mark--yes { color: var(--tp-color-primary); }
html[data-theme="steppe-light"] .tp-pw-row__cell.is-plan .tp-pw-mark--yes { color: var(--tp-color-primary-hover); }
.tp-pw-mark--no { color: color-mix(in srgb, var(--tp-color-text) 30%, transparent); }
.tp-pw-card.is-swapping .is-plan { animation: tp-pw-swap 200ms ease-out both; }

/* Купон — вторичный вариант. */
.tp-pw-coupon {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    padding: 6px 6px 6px 14px;
    border: 1px dashed var(--tp-color-border-strong, var(--tp-color-border));
    border-radius: 14px;
    color: var(--tp-color-text-muted);
    font-size: 13.5px;
    line-height: 1.35;
}
.tp-pw-coupon[hidden] { display: none; }
.tp-pw-coupon__text { flex: 1 1 auto; min-width: 0; }
.tp-pw-coupon__text strong { color: var(--tp-color-text); font-weight: 700; }
.tp-pw-coupon .tp-billing-button { flex: 0 0 auto; min-height: 44px; border-radius: 999px; }
.tp-pw-link {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--tp-color-text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.tp-pw-link:hover { color: var(--tp-color-text); }
.tp-pw-link:focus-visible { outline: 2px solid var(--tp-color-focus); outline-offset: 1px; border-radius: 8px; }

/* Нижняя липкая панель с кнопкой. */
.tp-pw-footer {
    flex: 0 0 auto;
    padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--tp-color-border);
    background: color-mix(in srgb, var(--tp-color-surface) 94%, transparent);
    text-align: center;
}
.tp-pw-footer[hidden] { display: none; }
.tp-pw-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    background: var(--tp-color-primary);
    color: var(--tp-color-primary-ink);
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--tp-color-primary) 90%, transparent);
    transition: background-color 140ms ease, transform 90ms ease;
}
.tp-pw-cta:hover { background: var(--tp-color-primary-hover); }
.tp-pw-cta:active { transform: scale(.985); }
.tp-pw-cta:focus-visible { outline: 2px solid var(--tp-color-focus); outline-offset: 3px; }
.tp-pw-cta[disabled] { opacity: .55; cursor: default; }
.tp-pw-footer__note { margin: 9px 0 0; color: var(--tp-color-text-muted); font-size: 12.5px; line-height: 1.4; }

/* Вид оплаты. */
.tp-pw-pay__bar { display: flex; align-items: center; min-height: 44px; margin: 0 0 4px; padding-right: 54px; }
.tp-pw-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 12px 0 6px;
    border: 0;
    background: transparent;
    color: var(--tp-color-text-muted);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.tp-pw-back svg { width: 20px; height: 20px; }
.tp-pw-back:hover { color: var(--tp-color-text); }
.tp-pw-back:focus-visible { outline: 2px solid var(--tp-color-focus); outline-offset: 1px; border-radius: 10px; }
.tp-pw-pay__title { margin: 4px 0 4px; font-family: var(--tp-font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--tp-color-text); }
.tp-pw-pay__sum { margin: 0 0 16px; color: var(--tp-color-text-muted); font-size: 15px; }
.tp-pw-pay__sum[hidden] { display: none; }
.tp-pw-pay__sum strong { color: var(--tp-color-text); }

@media (min-width: 600px) {
    .tp-billing-sheet.open { align-items: center; padding: 24px; }
    .tp-billing-sheet__panel.modal-sheet {
        width: 440px !important;
        max-width: 100% !important;
        height: auto;
        max-height: min(92dvh, 860px);
        border-radius: 26px !important;
        border: 1px solid var(--tp-glass-border, var(--tp-color-border)) !important;
        box-shadow: var(--tp-shadow-md);
    }
    .tp-billing-sheet.open .tp-billing-sheet__panel { animation-name: tp-pw-pop; }
    .tp-billing-sheet__scroll { padding-top: 12px; }
    .tp-billing-sheet__close { top: 14px; }
}
@media (max-width: 359px) {
    .tp-pw-row { grid-template-columns: minmax(0, 1fr) 60px 70px; }
}

.tp-billing-icon { width: 16px; height: 16px; flex: 0 0 auto; }

/* Текущий тариф и контекст («уровень 5 открывается с …»). */
.tp-billing-status,
.tp-billing-context {
    margin: 0 0 12px;
    padding: 11px 13px;
    border: 1px solid var(--tp-color-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--tp-color-surface-raised) 80%, transparent);
}
.tp-billing-status[hidden],
.tp-billing-context[hidden],
.tp-billing-use[hidden] { display: none !important; }
.tp-billing-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tp-billing-status__line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--tp-color-text);
    font-size: 14px;
    line-height: 1.45;
}
.tp-billing-status__credits { color: var(--tp-color-primary); font-weight: 700; }
html[data-theme="steppe-light"] .tp-billing-status__credits { color: var(--tp-color-primary-hover); }
.tp-billing-context {
    border-color: color-mix(in srgb, var(--tp-color-primary) 45%, transparent);
    color: var(--tp-color-text);
    font-size: 14px;
    line-height: 1.5;
}
.tp-billing-use { margin: 0 0 14px; }
.tp-billing-use__note { margin: 6px 2px 0; color: var(--tp-color-text-muted); font-size: 12.5px; }

/* Кнопки окна. Высота 44px — палец не промахивается. */
.tp-billing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--tp-control-edge, var(--tp-color-border-strong));
    border-radius: 12px;
    background: transparent;
    color: var(--tp-color-text);
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--tp-motion-fast, 140ms) ease, transform 90ms ease;
}
.tp-billing-button:hover { background: color-mix(in srgb, var(--tp-color-text) 7%, transparent); }
.tp-billing-button:active { transform: scale(.98); }
.tp-billing-button:focus-visible { outline: 2px solid var(--tp-color-focus); outline-offset: 2px; }
.tp-billing-button[disabled] { opacity: .65; cursor: progress; }
.tp-billing-button--primary {
    width: 100%;
    border-color: transparent;
    background: var(--tp-color-primary);
    color: var(--tp-color-primary-ink);
}
.tp-billing-button--primary:hover { background: var(--tp-color-primary-hover); }
.tp-billing-button--quiet { min-height: 40px; }
.tp-billing-button--whatsapp { width: 100%; }

/* «Как купить» и ввод кода. */
.tp-billing-section { margin: 0 0 16px; padding: 14px; border: 1px solid var(--tp-color-border); border-radius: 16px; }
.tp-billing-section h3 {
    margin: 0 0 10px;
    font-family: var(--tp-font-sans);
    font-size: 15.5px;
    font-weight: 800;
    color: var(--tp-color-text);
}
.tp-billing-section h3:focus { outline: none; }
.tp-billing-steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 7px; }
.tp-billing-steps li { color: var(--tp-color-text); font-size: 13.5px; line-height: 1.5; }
.tp-billing-steps li::marker { color: var(--tp-color-primary); font-weight: 800; }
.tp-billing-chosen { margin: 0 0 10px; color: var(--tp-color-primary); font-size: 13.5px; font-weight: 700; }
html[data-theme="steppe-light"] .tp-billing-chosen { color: var(--tp-color-primary-hover); }
.tp-billing-chosen[hidden] { display: none; }
.tp-billing-contacts { display: grid; gap: 10px; }
.tp-billing-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 2px 4px 2px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--tp-color-surface-raised) 85%, transparent);
}
.tp-billing-contact__label { color: var(--tp-color-text-muted); font-size: 12.5px; }
.tp-billing-contact__value {
    flex: 1 1 auto;
    color: var(--tp-color-text);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    white-space: nowrap;
}
.tp-billing-contact__note { margin: 0; color: var(--tp-color-text-muted); font-size: 13px; }
.tp-billing-icon-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--tp-color-text-muted);
    cursor: pointer;
}
.tp-billing-icon-button svg { width: 18px; height: 18px; }
.tp-billing-icon-button:hover { color: var(--tp-color-text); }
.tp-billing-icon-button:focus-visible { outline: 2px solid var(--tp-color-focus); outline-offset: 1px; }
.tp-billing-copy-status { margin: 0; color: var(--tp-color-success); font-size: 12.5px; }
.tp-billing-copy-status[hidden] { display: none; }

.tp-billing-redeem__row { display: flex; gap: 8px; }
.tp-billing-redeem__label { display: block; margin: 0 0 6px; color: var(--tp-color-text-muted); font-size: 13px; }
.tp-billing-redeem__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--tp-control-edge, var(--tp-color-border-strong));
    border-radius: 12px;
    background: var(--tp-color-page, transparent);
    color: var(--tp-color-text);
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 16px; /* 16px: iOS не приближает страницу при фокусе */
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tp-billing-redeem__input::placeholder { color: var(--tp-color-text-subtle); letter-spacing: .08em; }
.tp-billing-redeem__input:focus-visible { outline: 2px solid var(--tp-color-focus); outline-offset: 1px; border-color: transparent; }
.tp-billing-redeem__submit {
    flex: 0 0 auto;
    border-color: transparent;
    background: var(--tp-color-primary);
    color: var(--tp-color-primary-ink);
}
.tp-billing-redeem__submit:hover { background: var(--tp-color-primary-hover); }
.tp-billing-redeem__message { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.45; color: var(--tp-color-text); }
.tp-billing-redeem__message[hidden] { display: none; }
.tp-billing-redeem__message.is-error { color: var(--tp-color-danger); }
.tp-billing-redeem__message.is-success { color: var(--tp-color-success); font-weight: 700; }
.tp-billing-redeem__guest { margin: 0; color: var(--tp-color-text-muted); font-size: 13.5px; }
.tp-billing-redeem__guest[hidden],
.tp-billing-redeem__form[hidden] { display: none; }
.tp-billing-legal { margin: 4px 2px 0; color: var(--tp-color-text-subtle); font-size: 12px; line-height: 1.45; }

/* ── Закрытые (платные) уровни на экране настройки партии ─────────────── */
.ai-choice-card.is-locked { cursor: pointer; }
html[data-theme] #screen-bot-setup .ai-choice-card.is-locked .ai-choice-card__badge {
    gap: 4px;
    border-color: color-mix(in srgb, var(--tp-color-primary) 55%, transparent);
    background: color-mix(in srgb, var(--tp-color-primary) 14%, transparent);
    color: var(--tp-color-primary);
}
html[data-theme="steppe-light"] #screen-bot-setup .ai-choice-card.is-locked .ai-choice-card__badge { color: var(--tp-color-primary-hover); }
.ai-choice-card__badge .tp-billing-badge-icon { width: 11px; height: 11px; flex: 0 0 auto; }
html[data-theme] #screen-bot-setup .ai-choice-card.is-coupon-armed .ai-choice-card__badge {
    border-color: transparent;
    background: var(--tp-color-primary);
    color: var(--tp-color-primary-ink);
}
/* На телефоне бейджи уровней спрятаны (видна только иконка замка); у
   платного уровня бейдж — это сам ответ «что открывает», поэтому он виден. */
@media (max-width: 600px) {
    html[data-theme] #screen-bot-setup .ai-choice-card.is-locked .ai-choice-card__badge,
    html[data-theme] #screen-bot-setup .ai-choice-card.is-coupon-armed .ai-choice-card__badge {
        position: static;
        width: auto;
        height: auto;
        margin: 3px 0 0;
        padding: 2px 7px;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
        font-size: 10px;
        line-height: 1.3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-upgrade-pill__body,
    .tp-billing-button { transition: none; }
}

/* Компактные подсказки над переключателем (гость / текущий тариф / контекст). */
.tp-billing-sheet .tp-billing-status,
.tp-billing-sheet .tp-billing-context { margin: 0 0 12px; padding: 9px 12px; border-radius: 14px; }
.tp-billing-sheet .tp-billing-status__line,
.tp-billing-sheet .tp-billing-context { font-size: 13px; line-height: 1.4; }
.tp-billing-sheet .tp-billing-status { justify-content: space-between; flex-wrap: nowrap; }
.tp-billing-sheet .tp-billing-status .tp-billing-button { flex: 0 0 auto; min-height: 44px; border-radius: 999px; }
.tp-pw-hero h2 { font-size: clamp(22px, 6.4vw, 28px); white-space: nowrap; }
.tp-pw-row { grid-template-columns: minmax(0, 1fr) 66px 76px; }
@media (prefers-reduced-motion: reduce) {
    .tp-billing-sheet.open,
    .tp-billing-sheet.open .tp-billing-sheet__panel,
    .tp-pw-view,
    .tp-pw-card.is-swapping .is-plan { animation: none !important; }
    .tp-pw-seg__item,
    .tp-pw-cta,
    .tp-billing-sheet__close { transition: none; }
}
