/* tompayment.com — site styles (redesign, ТЗ v2).
   Tokens: §3. Blocks: §4 (A header … N footer). Light theme only. */

:root {
    --bg: #FFFFFF;
    --surface: #F7F7F9;
    --elevated: #FFFFFF;
    --tint: #F1F1F4;
    --border: #E7E4F2;
    --border-strong: #D8D2ED;
    --text: #383850;
    --muted: #6B6B80;
    --accent: #7020E8;
    --accent-hover: #5C1ABD;
    --violet-light: #A828F8;
    --gradient: linear-gradient(90deg, #7020E8 0%, #A828F8 100%);
    --shadow-card: inset 0 1px 0 rgba(255, 255, 255, .7), 0 16px 32px rgba(56, 56, 80, .10);

    --band-bg: #383850;
    --band-text: #ECECF4;
    --band-muted: rgba(236, 236, 244, .7);
    --band-trust: rgba(236, 236, 244, .65);

    --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --sans: Geist, "Helvetica Neue", Arial, sans-serif;

    --container: 1120px;
    --gutter: 24px;
    --header-h: 76px;
    --radius: 20px;
    --radius-sm: 12px;
    --ease: 180ms ease;

    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
summary:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; box-shadow: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.nowrap { white-space: nowrap; }

h1, h2, h3, h4, h5 { margin: 0; color: inherit; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* ---------- layout ---------- */

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

.section { background: var(--bg); padding-block: 88px; border-top: 1px solid var(--border); }
.section--surface { background: var(--surface); }
.section--first { border-top: 0; }
.section--tight { padding-block: 56px; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 28px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- type ---------- */

.display { font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1.12; letter-spacing: -.01em; }
.h1 { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.14; letter-spacing: -.01em; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.22; }
.h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.4; }
.lede { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.55; }

.eyebrow {
    display: inline-flex; align-self: flex-start; align-items: center;
    padding: 6px 14px; border-radius: 999px;
    background: var(--tint); color: var(--accent);
    font: 600 12px/1.3 var(--sans); letter-spacing: .02em;
}

/* B. Section-intro */
.intro { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.intro--center { align-items: center; text-align: center; margin-inline: auto; }
.intro--center .eyebrow, .center-stack .eyebrow, .eyebrow--center { align-self: center; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 26px; border-radius: 999px;
    font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
    border: 1px solid transparent;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}
.btn--sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; box-shadow: 0 10px 24px rgba(112, 32, 232, .24); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFFFFF; }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .3); color: var(--band-text); }
.btn--ghost-dark:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; text-decoration: none; }
.link-arrow svg { transition: transform var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- wordmark ---------- */

.wordmark {
    display: inline-flex; align-items: baseline; text-decoration: none;
    font: 600 23px/1 var(--serif); letter-spacing: -.01em;
}
.wordmark__tom { color: var(--text); }
.wordmark__pay {
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
    /* room for the "y" descender: background-clip paints only the box, line-height 1 cut it off */
    padding-bottom: .15em; margin-bottom: -.15em;
}
.band .wordmark__tom { color: var(--band-text); }

/* ---------- A. header ---------- */

.site-header { position: sticky; top: 0; z-index: 40; background: #FFFFFF; border-bottom: 1px solid var(--border); }
.site-header__bar { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 48px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav summary { list-style: none; cursor: pointer; }
.nav summary::-webkit-details-marker, .burger summary::-webkit-details-marker, .msec summary::-webkit-details-marker { display: none; }
.nav__top {
    display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
    font: 500 14.5px/1.2 var(--sans); color: var(--muted); text-decoration: none;
    transition: background-color var(--ease), color var(--ease);
}
.nav__top:hover, .nav__dd[open] > .nav__top { color: var(--text); background: var(--tint); }
.nav__top.is-active { color: var(--text); background: var(--tint); }
.nav__top.is-active::after { content: ""; }
.nav__dd { position: relative; }
.chev { flex: none; transition: transform var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }
.nav__menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px;
    background: var(--elevated); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card);
    display: flex; flex-direction: column; gap: 2px;
}
.nav__menu a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { background: var(--tint); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }

/* ---------- N. footer ---------- */

.site-footer { background: var(--bg); border-top: 1px solid var(--border); }
.site-footer__wrap { max-width: var(--container); margin: 0 auto; padding: 64px var(--gutter) 40px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 64px; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-label { font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.footer-contact .footer-label { margin-top: 8px; }
.footer-lines { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.55; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; line-height: 1.4; color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.disclaimer { border-top: 1px solid var(--border); padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.disclaimer p { font-size: 12.5px; line-height: 1.65; color: var(--muted); max-width: 980px; }

/* ---------- C. hero / M. CTA band (dark bands) ---------- */

.band { background: var(--band-bg); color: var(--band-text); }
.band a:not(.btn) { color: var(--band-text); }
.hero { padding-block: 96px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy .lede { color: var(--band-muted); }
.hero__label { color: var(--band-muted); font: 600 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.hero__note { color: var(--band-trust); font-size: 13px; }
.hero--page { padding-block: 80px; }

.cta-band { padding-block: 72px; text-align: center; }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-band__trust { color: var(--band-trust); font-size: 13px; }

/* UI mocks (§3, §4 C): illustrative values only */
.mock { position: relative; z-index: 1; min-height: 440px; }
.mock__account {
    position: absolute; left: 0; top: 0; width: min(380px, 100%); padding: 24px;
    background: #FFFFFF; border-radius: 22px;
    box-shadow: 0 28px 70px rgba(12, 10, 32, .38); color: var(--text);
}
.mock__label { font-size: 13px; line-height: 1.3; color: var(--muted); }
.mock__amount { font: 600 30px/1.2 var(--sans); margin: 4px 0 18px; letter-spacing: -.02em; }
.mock__rows { display: flex; flex-direction: column; gap: 8px; }
.mock__row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 14px; border-radius: 14px; background: #F4F1FC; font-size: 14px; line-height: 1.3; }
.mock__cur { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #E6DDFB; color: var(--accent-hover); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.mock__meta { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mock__meta b { font-weight: 600; }
.mock__meta small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mock__sum { font-weight: 600; white-space: nowrap; }
.mock__card {
    position: absolute; right: 0; bottom: 0; width: 296px; height: 186px; padding: 22px 24px;
    border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(135deg, #4B16A3 0%, #6A1FDB 55%, #9B2BF0 100%);
    box-shadow: 0 28px 60px rgba(40, 10, 90, .45);
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; color: #FFFFFF;
}
.mock__card-brand { font: 600 19px/1.25 var(--serif); }
.mock__card-number { font-size: 15px; letter-spacing: .14em; color: rgba(255, 255, 255, .9); }

/* Home hero: art №01 behind the mock, left edge ~430px into a 1280px hero */
.hero--home { position: relative; }
.hero--home > .container { position: relative; z-index: 1; }
.hero__bg {
    position: absolute; z-index: 0; top: 20px; left: calc(50% - 210px);
    width: 900px; height: auto; max-width: none; pointer-events: none;
}

/* abstract art panel — stand-in for the Magnific artwork (§3, §9 п.9) */
.art {
    position: relative; min-height: 360px; border-radius: 24px; overflow: hidden; isolation: isolate;
    background: #F5F1FE; border: 1px solid var(--border);
}
.art::before, .art::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; }
.art::before { width: 70%; aspect-ratio: 1; right: -12%; top: -18%; background: radial-gradient(circle at 35% 35%, #A828F8 0%, #7020E8 55%, rgba(112, 32, 232, 0) 72%); opacity: .55; }
.art::after { width: 55%; aspect-ratio: 1; left: -10%; bottom: -22%; background: radial-gradient(circle at 60% 40%, #FFFFFF 0%, #D8D2ED 40%, rgba(216, 210, 237, 0) 70%); }
.art--dark { background: #2E2E44; border-color: rgba(255, 255, 255, .08); }
.art--dark::after { background: radial-gradient(circle at 60% 40%, #4A4A68 0%, rgba(74, 74, 104, 0) 70%); }
.art img { position: absolute; inset: 0; margin: auto; width: 72%; filter: drop-shadow(0 24px 40px rgba(56, 56, 80, .28)); }

/* ---------- D. trust bar ---------- */

.trust { background: var(--surface); border-top: 1px solid var(--border); padding-block: 24px; }
.trust .container { max-width: 1360px; }
.trust__list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; }
.trust__list li { display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.trust__list li:not(:last-child)::after { content: ""; width: 4px; height: 4px; margin-inline: 14px; border-radius: 50%; background: var(--border-strong); }
.trust__short { display: none; }

/* ---------- cards (E, F, G) ---------- */

.card {
    background: var(--elevated); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-card); padding: 32px; display: flex; flex-direction: column; gap: 14px;
    transition: transform var(--ease), box-shadow var(--ease);
}
.card--lift:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 22px 40px rgba(56, 56, 80, .14); }
.card--flat { box-shadow: none; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.card .grow { flex: 1; }
.card .btn { align-self: flex-start; }

.icon-box { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--tint); color: var(--accent); }

/* G. feature list */
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature p { color: var(--muted); font-size: 15px; }

/* H. split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__copy { display: flex; flex-direction: column; gap: 18px; }
.split__copy .lede { max-width: none; }

/* I. highlight band */
.highlight {
    position: relative; overflow: hidden; border-radius: 24px; padding: 56px;
    background: var(--tint); border: 1px solid var(--border);
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.highlight::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--gradient); }
.highlight__copy { display: flex; flex-direction: column; gap: 16px; }
.highlight .eyebrow { background: var(--elevated); }
.highlight__note { font-size: 13px; color: var(--muted); }
.highlight__aside { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* Closing verbatim statements: lead text, not a heading (review Г-7) */
.closing { font: 500 23px/1.45 var(--serif); color: var(--text); max-width: 820px; text-wrap: balance; }
.center-stack .closing { margin-inline: auto; }
.solo { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }

/* Creative artwork: the art's own ground matches the section, so no frame, shadow or radius */
.art-img { display: block; width: 100%; height: auto; aspect-ratio: 865 / 620; object-fit: cover; object-position: right center; }
.art-img--center { object-position: center; }

/* J. chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips--center { justify-content: center; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
    background: var(--elevated); border: 1px solid var(--border); box-shadow: var(--shadow-card);
    font: 600 13px/1.3 var(--sans); color: var(--text);
}
.chip svg { color: var(--accent); }

.center-stack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.center-stack .lede { margin-inline: auto; }

/* ---------- K. pricing ---------- */

.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.tabs--center { align-self: center; }
.tab {
    border: 0; background: transparent; color: var(--muted); cursor: pointer;
    padding: 9px 18px; border-radius: 999px; font: 600 13.5px/1.2 var(--sans);
    transition: background-color var(--ease), color var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); color: #FFFFFF; }
.tabpanel[hidden] { display: none; }

/* Pricing, mobile only: [Personal | Business] segment + region pills (shown < 768px) */
.ptype { display: none; }
.ptype__seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #F1EFF6; }
.ptype__btn {
    flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
    color: var(--muted); font: 500 14px/1.2 var(--sans); transition: background-color var(--ease), color var(--ease);
}
.ptype__btn[aria-pressed="true"] { background: #6A1FDB; color: #FFFFFF; font-weight: 600; }
.ptype__pills { display: flex; gap: 8px; }
.ptype__pills[hidden] { display: none; }
.ptype__pill {
    flex: 1; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 999px; background: #FFFFFF; cursor: pointer;
    color: var(--muted); font: 500 13.5px/1.2 var(--sans); transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.ptype__pill[aria-pressed="true"] { border-color: #6A1FDB; box-shadow: inset 0 0 0 .5px #6A1FDB; background: #F4EEFE; color: #5C1ABD; font-weight: 600; }

.fees { display: flex; flex-direction: column; gap: 28px; }
.fee-group { background: var(--elevated); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fee-group__title { padding: 16px 24px; background: var(--tint); font: 600 15px/1.3 var(--sans); }
.fee-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { padding: 13px 24px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.fee-table thead th { border-top: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--elevated); }
.fee-table tbody th { font-weight: 500; color: var(--text); width: 52%; }
.fee-table td { font-weight: 600; }
.fee-table .sub { padding-left: 40px; }
.fee-table .fee-sub th { padding-top: 16px; padding-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fee-caption { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.fee-note { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }

.teaser { max-width: 760px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 24px; }
.teaser .fee-group { box-shadow: var(--shadow-card); }

/* ---------- L. FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.faq__list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 20px 4px; font: 600 16px/1.45 var(--sans); color: var(--text);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent); }
.faq-item__body { padding: 0 4px 22px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.faq-item__body ul { padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- cookie consent (§10.4) ---------- */

.link-button { border: 0; padding: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--accent); }
.consent {
    position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    max-width: 760px; margin: 0 auto; padding: 20px 24px;
    background: var(--elevated); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.consent__inner { display: flex; gap: 20px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent__copy { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; }
.consent__copy p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- legal pages (§6 Legal) ---------- */

.legal { padding-block: 72px 120px; }
.legal__head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.legal__head:empty { display: none; }
.legal__head h1 { font: 600 46px/1.12 var(--serif); letter-spacing: -.01em; }
.doc > [data-legal-doc] > h1 { font: 600 40px/1.15 var(--serif); margin-bottom: 24px; }
.legal__head h1 strong { font-weight: 600; }
.legal__meta { font-size: 14px; color: var(--muted); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 72px; align-items: start; }
.legal__grid.has-toc { grid-template-columns: 240px minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.toc ol, .mtoc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: background-color var(--ease), color var(--ease); }
.toc a:hover, .toc a.is-current { background: var(--tint); color: var(--accent); }
.mtoc { display: none; margin: 0 0 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--tint); }
.mtoc summary { cursor: pointer; list-style: none; padding: 14px 18px; min-height: 44px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.mtoc summary::-webkit-details-marker { display: none; }
.mtoc ol { padding: 0 8px 12px; }
.mtoc a { display: block; padding: 10px; font-size: 14.5px; line-height: 1.4; color: var(--text); text-decoration: none; border-radius: 8px; }
.doc { max-width: 720px; font-size: 16.5px; line-height: 1.72; color: var(--text); }
.legal__grid:not(.has-toc) .doc { margin-inline: auto; }
.doc p { margin: 0 0 16px; }
.doc h2 { font: 600 25px/1.3 var(--serif); margin: 56px 0 18px; padding-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h2 strong, .doc h3 strong { font-weight: 600; }
.doc h3 { font: 600 19px/1.35 var(--serif); margin: 32px 0 12px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.doc li::marker { color: var(--accent); }
.doc strong, .doc b { font-weight: 600; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--tint); }

/* ---------- responsive ---------- */

@media screen and (max-width: 1060px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero__grid, .split { gap: 48px; }
}

@media screen and (max-width: 900px) {
    :root { --gutter: 20px; --header-h: 64px; }
    .site-header__bar { gap: 0; justify-content: space-between; }
    .nav, .header-actions { display: none; }
    .burger { display: block; }
    .burger > summary {
        list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
        border-radius: 12px; color: var(--text); border: 1px solid var(--border);
    }
    .burger__panel {
        position: absolute; left: 0; right: 0; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow: auto;
        background: #FFFFFF; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-card);
        padding: 8px var(--gutter) 20px; display: flex; flex-direction: column;
    }
    .msec { border-bottom: 1px solid var(--border); }
    .msec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 16px; font-weight: 600; color: var(--text); }
    .msec__links { display: flex; flex-direction: column; padding-bottom: 12px; }
    .msec__links a { padding: 10px 4px; font-size: 15px; color: var(--muted); text-decoration: none; }
    .msec__links a[aria-current="page"] { color: var(--accent); }
    .mtop { display: flex; align-items: center; min-height: 52px; font-size: 16px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
    .burger__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }

    .section { padding-block: 56px; }
    .hero, .hero--page { padding-block: 56px; }
    .display { font-size: 36px; }
    .h1 { font-size: 34px; }
    .h2 { font-size: 27px; }
    .lede { font-size: 16.5px; }
    .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
    .hero__grid, .split { grid-template-columns: minmax(0, 1fr); }
    .hero__grid > .mock, .hero__grid > .art, .hero__grid > .art-img { order: -1; }
    .split--reverse > :first-child { order: 0; }
    .split > .art, .split > .art-img { order: -1; }
    .mock { min-height: 360px; }
    .art-img { aspect-ratio: 4 / 3; }
    .mock__card { width: 240px; height: 150px; padding: 18px 20px; }
    .hero__bg { display: none; }
    .art { min-height: 240px; }
    .highlight { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; }
    .card { padding: 26px; }

    .site-footer__wrap { padding: 48px var(--gutter) 32px; gap: 36px; }
    .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 40px; }

    .fee-table thead { display: none; }
    .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; width: 100%; }
    .fee-table tr { padding: 14px 20px; border-top: 1px solid var(--border); }
    .fee-table tbody th, .fee-table td { padding: 0; border: 0; width: auto; }
    .fee-table tbody th { margin-bottom: 4px; }
    .fee-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 400; color: var(--muted); }
    .fee-table .sub { padding-left: 0; }
    .fee-group__title { padding: 14px 20px; }
    .tabs { border-radius: 16px; }

    .legal { padding-block: 40px 80px; }
    .legal__head { padding-bottom: 24px; margin-bottom: 24px; }
    .legal__head h1 { font-size: 31px; }
    .legal__grid, .legal__grid.has-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .toc { display: none; }
    .mtoc { display: block; }
    .doc { font-size: 16px; line-height: 1.68; }
    .doc h2 { font-size: 21px; margin-top: 40px; padding-top: 22px; }
}

@media screen and (max-width: 767px) {
    .trust { padding-block: 0; }
    .trust .container { padding: 18px 20px; }
    .trust__list { gap: 8px 14px; line-height: 1.4; text-align: center; }
    .trust__list li { white-space: normal; }
    .trust__list li:not(:last-child)::after { margin: 0 0 0 14px; }
    .trust__list li.is-eol::after { visibility: hidden; }
    .trust__long { display: none; }
    .trust__short { display: inline; }

    .ptype { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
    .tabs--desktop { display: none; }
}

@media screen and (max-width: 560px) {
    .grid--4 { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .btn-row .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- print (review Г-9): readable /pricing and legal pages ---------- */
@media print {
    .site-header, .burger, .skip-link, .cta-band, .consent, .btn, .btn-row, .tabs, .toc, .mtoc, .link-arrow, .link-button, .art-img, .mock { display: none !important; }
    body { font-size: 11pt; color: #000; }
    .band { background: #FFFFFF !important; color: #000 !important; }
    .band .lede, .hero__note { color: #333 !important; }
    .section, .trust { padding-block: 16pt; border: 0; background: #FFFFFF !important; }
    .wordmark__pay { background: none; -webkit-text-fill-color: #7020E8; color: #7020E8; }
    .tabpanel[hidden] { display: block !important; }
    .tabpanel { break-before: page; }
    .tabpanel:first-of-type { break-before: auto; }
    .fee-group, .card, .faq-item { break-inside: avoid; box-shadow: none; }
    .card--lift:hover { transform: none; }
    .faq-item__body { display: flex !important; }
    .hero__grid, .split { grid-template-columns: minmax(0, 1fr); gap: 12pt; }
    a { color: inherit; text-decoration: none; }
}
