/* Landing pages (cashbacksovet.ru): same palette and display face as the app. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Spaces, digits and punctuation, cut from the latin file (5.9 KB instead of
   22 KB). Every Russian heading has a space or a digit, so with one latin face
   covering U+0000-00FF the whole 22 KB file loaded on every page. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-punct-600-normal.woff2') format('woff2');
  unicode-range: U+0020-0040, U+005B-0060, U+007B-007E, U+00A0-00BF, U+00D7, U+00F7, U+2000-206F, U+20BD;
}
/* Latin letters: only pages with Latin in a heading (Splitwise, MCC) load it. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00D6, U+00D8-00F6, U+00F8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+20AC, U+2122;
}

/* tokens:begin — generated from web/src/styles/tokens.css by web/scripts/sync-landing-tokens.mjs.
   Do not edit here: change tokens.css, then run `npm run tokens:sync` in web/. */
/* stylelint-disable -- generated copy of tokens.css, the one place literal values live */
:root {
  --c-bg: #f3ece3;
  --c-surface: #fffcf8;
  --c-surface-2: #f8f1e9;
  --c-border: #e2d6c8;
  --c-text: #2f3b43;
  --c-text-2: #685f56;
  --c-text-3: #69645d;
  --c-accent: #a0522d;
  --c-accent-hover: #86431f;
  --c-accent-soft: #f4e4d9;
  --c-on-accent: #fffcf8;
  --c-positive: #5a6a2b;
  --c-positive-soft: #ebeedb;
  --c-warning: #82630f;
  --c-warning-soft: #f6ecd0;
  --c-warning-line: #e8c77a;
  --c-gold: #d4af37;
  --c-on-hero: #fffcf8;
  --c-gold-ring: rgba(212, 175, 55, 0.45);
  --c-white-a10: rgba(255, 252, 248, 0.1);
  --c-white-a25: rgba(255, 252, 248, 0.25);
  --c-black-a18: rgba(0, 0, 0, 0.18);
  --c-header-glass: rgba(243, 236, 227, 0.86);
  --c-header-line: rgba(226, 214, 200, 0.6);
  --c-band: #33302b;
  --c-on-band: #f8f1e9;
  --c-on-band-2: rgba(248, 241, 233, 0.82);
  --c-device: #1f2428;
  --c-device-screen: #e9dfd2;
  --c-chat-mine: #dcf8c6;
  --c-demo-card-blue: #3b5f9a;
  --c-demo-card-black: #25292d;
  --c-demo-card-white: #fbf8f3;
  --c-demo-card-red: #b4432f;
  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.25rem;
  --text-3xl: 1.375rem;
  --text-4xl: 1.5rem;
  --display-xs: 1.625rem;
  --display-sm: 1.75rem;
  --text-fluid-lead: clamp(1.125rem, 2.4vw, 1.3125rem);
  --display-fluid-hero: clamp(2.5rem, 7vw, 4rem);
  --display-fluid-hero-long: clamp(2.25rem, 5.2vw, 3.5rem);
  --display-fluid-section: clamp(2rem, 5vw, 2.75rem);
  --display-fluid-band: clamp(1.875rem, 4.5vw, 2.625rem);
  --display-fluid-doc: clamp(2rem, 6vw, 2.75rem);
  --display-fluid-h2: clamp(1.5rem, 4vw, 2rem);
  --display-fluid-h3: clamp(1.25rem, 3vw, 1.5rem);
  --display-fluid-legal-h2: clamp(1.375rem, 3.5vw, 1.75rem);
  --display-fluid-calc: clamp(1.5rem, 4vw, 1.875rem);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-3-5: 14px;
  --space-4: 16px;
  --space-4-5: 18px;
  --space-5: 20px;
  --space-5-5: 22px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --radius-2xs: 4px;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-pill: 999px;
  --radius-device: 42px;
  --radius-device-screen: 32px;
  --shadow-sm: 0 1px 2px rgba(54, 69, 79, 0.06);
  --shadow-popover: 0 16px 40px rgba(47, 59, 67, 0.22);
  --shadow-device: 0 30px 60px rgba(47, 59, 67, 0.25);
  --z-header: 10;
  --z-sticky-cta: 20;
  --z-cookie: 30;
  --duration-fast: 0.15s;
  --site-max: 1080px;
  --site-sticky-cta-room: 100px;
}
/* stylelint-enable */
/* tokens:end */


* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: var(--text-lg)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Keyboard focus: a thick accent ring with a gap, so it reads on cream and on
   the accent-filled buttons alike. The dark .band gets a light ring instead —
   accent on its flat #33302b fill would be ~2.5:1. */
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.band :focus-visible { outline-color: var(--c-on-hero); }
details.faq summary:focus-visible { outline-offset: 0; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: var(--site-max); margin: 0 auto; padding: 0 var(--space-5); }

/* Header */
.top {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--c-header-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-header-line);
}
.top .wrap { display: flex; align-items: center; gap: var(--space-3); height: 60px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2-5); min-height: 44px; text-decoration: none; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.brand span { font-family: var(--font-display); font-size: var(--text-4xl); letter-spacing: 0.01em; }
.top nav { margin-left: auto; display: flex; gap: var(--space-2-5); font-size: var(--text-md); }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-1); text-decoration: none; color: var(--c-text-2); }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--c-accent); }
.top .btn { margin-left: var(--space-2); }
@media (max-width: 720px) {
  /* Phones: the sections become a second row that always fits: the four section
     links, nothing clipped. The in-page «Вопросы» anchor is dropped here (the
     footer lists every section). */
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: var(--space-2); row-gap: 0; }
  .top .btn { margin-left: auto; }
  .top nav { order: 3; flex: 0 0 100%; margin-left: 0; flex-wrap: wrap; gap: 0 var(--space-4); }
  .top nav a { white-space: nowrap; padding: 0; }
  .top nav a[href^='#'] { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2-5);
  min-height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-lg); border: 0;
  font: 600 var(--text-lg)/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform var(--duration-fast) ease, background var(--duration-fast) ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--c-accent); color: var(--c-on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--c-accent-hover); }
.btn-ghost { background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); }
.btn-sm { min-height: 44px; padding: 0 var(--space-4); font-size: var(--text-md); border-radius: var(--radius); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { padding: var(--space-12) 0 var(--space-9); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-10); align-items: center; }
.eyebrow { display: block; color: var(--c-text-2); font-size: var(--text-sm); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0; }
h1 { font-size: var(--display-fluid-hero); margin: var(--space-4) 0 var(--space-4); }
.hero h1 { font-size: var(--display-fluid-hero-long); letter-spacing: -0.01em; line-height: 1.08; }
@media (max-width: 640px) { .hero h1 { letter-spacing: 0; } }
h1 em { font-style: normal; color: var(--c-accent); }
.lead { font-size: var(--text-fluid-lead); color: var(--c-text-2); max-width: 34em; margin: 0 0 var(--space-6); }
.cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.note { margin-top: var(--space-3-5); font-size: var(--text-sm); color: var(--c-text-2); display: flex; flex-wrap: wrap; gap: var(--space-1-5) var(--space-4-5); }
.note span { display: inline-flex; align-items: center; gap: var(--space-1-5); }
.note span::before {
  content: ''; width: 14px; height: 14px; flex: none; background: var(--c-text-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5l2.5 2.5L11 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5l2.5 2.5L11 4.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Hero: one primary button; the second action is a quiet text link with an arrow. */
.hero .cta { align-items: center; gap: var(--space-2) var(--space-5); }
.hero .cta .btn-ghost { background: none; border: 0; min-height: 44px; padding: 0; color: var(--c-accent); font-size: var(--text-base); }
.hero .cta .btn-ghost::after { content: '→'; transition: transform var(--duration-fast) ease; }
.hero .cta .btn-ghost:hover::after { transform: translateX(3px); }
@media (max-width: 860px) {
  .hero { padding-top: var(--space-7); }
  .hero .wrap { grid-template-columns: 1fr; gap: var(--space-7); }
  .cta .btn { flex: 1 1 100%; }
  .hero .cta .btn-ghost { flex: 0 0 auto; margin: 0 auto; }
}

/* Phone mockup with a chat */
.phone {
  justify-self: center; width: 100%; max-width: 340px;
  background: var(--c-device); border-radius: var(--radius-device); padding: var(--space-3);
  box-shadow: var(--shadow-device);
}
.screen { background: var(--c-device-screen); border-radius: var(--radius-device-screen); overflow: hidden; }
.screen-top { display: flex; align-items: center; gap: var(--space-2-5); padding: var(--space-3-5) var(--space-4); background: var(--c-surface); }
.screen-top img { width: 34px; height: 34px; border-radius: 50%; }
.screen-top b { display: block; font-size: var(--text-md); }
.screen-top small { color: var(--c-text-2); font-size: var(--text-2xs); }
.chat { padding: var(--space-4) var(--space-3-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2-5); min-height: 360px; }
.msg { max-width: 86%; padding: var(--space-2-5) var(--space-3); border-radius: var(--radius-lg); font-size: var(--text-md); line-height: 1.4; }
.msg.me { align-self: flex-end; background: var(--c-chat-mine); border-bottom-right-radius: var(--radius-xs); }
.msg.bot { align-self: flex-start; background: var(--c-surface); border-bottom-left-radius: var(--radius-xs); }
.msg .big { font-size: var(--text-2xl); font-weight: 600; color: var(--c-positive); }
.msg .row { display: flex; justify-content: space-between; gap: var(--space-3); }
.msg .muted { color: var(--c-text-2); font-size: var(--text-xs); }

/* Phone mockup with the web app's «Совет» screen (the chat mock it replaced
   is kept in docs/design/landing-hero-chat-mock.html, styles above). */
.app-screen { display: flex; flex-direction: column; min-height: 470px; }
.app-bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3-5) var(--space-4) var(--space-2); }
.app-bar img { width: 28px; height: 28px; border-radius: var(--radius-sm); }
.app-bar b { font-family: var(--font-display); font-size: var(--text-3xl); }
.app-body { flex: 1; display: flex; flex-direction: column; gap: var(--space-2-5); padding: var(--space-1) var(--space-3-5) var(--space-3-5); }
.app-input { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2-5) var(--space-3); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); font-size: var(--text-md); }
.app-go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); font-size: var(--text-sm); }
.app-chips { display: flex; gap: var(--space-1-5); overflow: hidden; }
.app-chips span { flex: none; padding: var(--space-1) var(--space-2-5); border-radius: var(--radius-pill); background: var(--c-surface); border: 1px solid var(--c-border); font-size: var(--text-xs); color: var(--c-text-2); }
.app-chips .on { background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-accent); }
.app-panel { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); background: var(--c-surface); border-radius: var(--radius-lg); font-size: var(--text-sm); }
.app-panel .muted { color: var(--c-text-2); font-size: var(--text-xs); }
.app-panel .big { font-size: var(--text-4xl); font-weight: 600; color: var(--c-positive); line-height: 1; }
.app-row { display: flex; align-items: center; gap: var(--space-2); }
.app-row > :nth-child(2) { flex: 1; }
.app-card { flex: none; width: 26px; height: 18px; border-radius: var(--radius-2xs); box-shadow: inset 0 0 0 1px var(--c-black-a18); }
.app-card-blue { background: var(--c-demo-card-blue); }
.app-card-black { background: var(--c-demo-card-black); }
.app-card-white { background: var(--c-demo-card-white); }
.app-card-red { background: var(--c-demo-card-red); }
.app-btn { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--c-accent); color: var(--c-on-accent); text-align: center; font-size: var(--text-sm); font-weight: 600; }
.app-tabs { display: flex; justify-content: space-around; padding: var(--space-2-5) var(--space-2) var(--space-3-5); background: var(--c-surface); border-top: 1px solid var(--c-border); font-size: var(--text-2xs); color: var(--c-text-2); }
.app-tabs .on { color: var(--c-accent); font-weight: 600; }

/* Sections */
section { padding: var(--space-11) 0; }
.section-title { font-size: var(--display-fluid-section); margin-bottom: var(--space-2-5); }
.section-lead { color: var(--c-text-2); margin: 0 0 var(--space-6); max-width: 40em; }

.grid { display: grid; gap: var(--space-4); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl);
  padding: var(--space-5-5);
}
.card h3 { font-size: var(--display-xs); margin: var(--space-2-5) 0 var(--space-1-5); }
.card p { margin: 0; color: var(--c-text-2); }
.icon {
  width: 46px; height: 46px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft); color: var(--c-accent);
}
.icon svg { width: 24px; height: 24px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}

/* Scenario: "how much you get" comparison */
.scenario { display: flex; flex-direction: column; gap: var(--space-3); }
.scenario .q { font-weight: 600; }
.compare { display: flex; flex-direction: column; gap: var(--space-2); }
.compare div {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2-5);
  padding: var(--space-2-5) var(--space-3); border-radius: var(--radius); background: var(--c-surface-2); font-size: var(--text-md);
}
.compare .best { background: var(--c-positive-soft); font-weight: 600; }
.compare .best b { color: var(--c-positive); }
.compare b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Feature band */
.band {
  background: var(--c-band);
  color: var(--c-on-band); border-radius: var(--radius-2xl); padding: var(--space-8); position: relative; overflow: hidden;
}
.band::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px;
  border: 2px solid var(--c-gold-ring); border-radius: 50%;
}
.band h2 { font-size: var(--display-fluid-band); margin-bottom: var(--space-3); }
.band p { color: var(--c-on-band-2); max-width: 38em; margin: 0 0 var(--space-5); }
.band ul { margin: 0 0 var(--space-5-5); padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.band li::before { content: '— '; color: var(--c-gold); }
.band .btn-ghost { background: var(--c-white-a10); color: var(--c-on-hero); border-color: var(--c-white-a25); }

/* Trust + FAQ */
.trust { display: flex; flex-wrap: wrap; gap: var(--space-2-5); }
.trust span {
  padding: var(--space-2-5) var(--space-3-5); border-radius: var(--radius-pill); background: var(--c-surface); border: 1px solid var(--c-border); font-size: var(--text-md);
}
details.faq { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 0 var(--space-4-5); }
details.faq + details.faq { margin-top: var(--space-2-5); }
details.faq summary { cursor: pointer; list-style: none; padding: var(--space-4) 0; font-weight: 600; display: flex; justify-content: space-between; gap: var(--space-3); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--c-accent); font-size: var(--text-3xl); line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 0 0 var(--space-4); color: var(--c-text-2); }

/* Final CTA + footer */
.final { text-align: center; }
.final .cta { justify-content: center; }
/* Footer: the site's sections, its documents (with «Реквизиты», which leads
   to the owner's requisites on /o-proekte/#rekvizity) and the © line. */
footer { margin-top: var(--space-6); padding: var(--space-4-5) 0 var(--space-9); border-top: 1px solid var(--c-border); color: var(--c-text-2); font-size: var(--text-sm); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--space-6); align-items: start; }
.footer-group { display: flex; flex-wrap: wrap; gap: 0 var(--space-3-5); margin: 0 calc(var(--space-1) * -1); }
.footer-docs { grid-column: 1; font-size: var(--text-xs); }
.footer-copy { grid-column: 2; grid-row: 1; margin: 0; min-height: 44px; display: flex; align-items: center; }
/* Links still get a 44px-tall hit area (WCAG 2.5.5 / Apple HIG). */
footer a { color: var(--c-text-2); display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-1); text-decoration: none; }
footer a:hover { color: var(--c-accent); text-decoration: underline; }
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-group { gap: 0 var(--space-2-5); }
  .footer-docs { padding-top: var(--space-1); border-top: 1px dashed var(--c-border); }
  .footer-copy { grid-column: 1; grid-row: auto; font-size: var(--text-xs); }
}

/* Home: links to guides and calculators */
.guides .card { text-decoration: none; color: inherit; }
.guides .card h3 { color: var(--c-accent); }
.guides .card:hover h3 { text-decoration: underline; }
.guides-more { margin-top: var(--space-4); }

/* In-text CTA (blog articles) */
.inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4);
  margin: var(--space-7) 0; padding: var(--space-4) var(--space-4-5); border-radius: var(--radius-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
}
.inline-cta p { flex: 1 1 260px; margin: 0; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-sticky-cta);
  display: none;
}
@media (max-width: 720px) {
  .show-sticky .sticky-cta { display: flex; }
  .sticky-cta .btn { flex: 1; }
  footer { padding-bottom: var(--site-sticky-cta-room); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

.section-lead.centered { margin-left: auto; margin-right: auto; }
.section-lead.fineprint { margin-top: var(--space-3-5); font-size: var(--text-sm); }

/* «Настройки cookie» in the documents group (docs/adr/legal-docs-and-consent.md). */
.footer-cookie-settings {
  background: none; border: 0; padding: 0 var(--space-1); min-height: 44px; cursor: pointer;
  font: inherit; color: var(--c-text-2); text-decoration: underline;
}
.footer-cookie-settings[hidden] { display: none; }

/* Legal documents: /privacy/, /soglasie/, /terms/, /oferta/, /cookies/ */
main.legal { padding: var(--space-7) 0 var(--space-6); }
.legal-doc { max-width: 780px; }
.legal-doc h1 { font-size: var(--display-fluid-doc); margin: var(--space-2-5) 0 var(--space-2); }
.legal-doc h2 { font-size: var(--display-fluid-legal-h2); margin: var(--space-7) 0 var(--space-2-5); scroll-margin-top: 72px; }
.legal-doc p, .legal-doc li { overflow-wrap: anywhere; }
.legal-doc ul { padding-left: 1.3em; margin: 0 0 var(--space-3-5); }
.legal-doc li + li { margin-top: var(--space-1-5); }
.legal-doc a:not(.btn) { color: var(--c-accent); }
.legal-meta { color: var(--c-text-2); font-size: var(--text-md); margin: 0 0 var(--space-4-5); }
.legal-lead { font-size: var(--text-xl); color: var(--c-text-2); }
.legal-formula { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-3) var(--space-4); font-weight: 600; }
.legal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-1-5); font-size: var(--text-sm); color: var(--c-text-2); }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-1); color: var(--c-text-2); }
.legal-nav span { flex: none; }
.legal-nav a[aria-current='page'] { color: var(--c-accent); font-weight: 600; text-decoration: none; }
.legal-draft {
  margin: 0 0 var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--c-warning-soft); border: 1px solid var(--c-warning-line); color: var(--c-warning); font-weight: 600;
}

/* Cookie banner (assets/consent.js): shown only when a Metrika counter is configured. */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-cookie);
  max-width: 560px; margin: 0 auto; padding: var(--space-4) var(--space-4-5); border-radius: var(--radius-lg);
  background: var(--c-surface); border: 1px solid var(--c-border); box-shadow: var(--shadow-popover);
}
.cookie-banner p { margin: 0 0 var(--space-3); font-size: var(--text-md); }
.cookie-banner p a { color: var(--c-accent); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-2-5); }
.cookie-banner .btn { flex: 1 1 auto; min-height: 44px; font-size: var(--text-md); }
/* Phones: a low strip, both buttons in one row, so it hides as little as possible. */
@media (max-width: 640px) {
  .cookie-banner { left: var(--space-2); right: var(--space-2); bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px)); padding: var(--space-3); }
  .cookie-banner p { margin-bottom: var(--space-2); font-size: var(--text-sm); }
  .cookie-banner .cookie-actions { flex-wrap: nowrap; gap: var(--space-2); }
  .cookie-banner .btn { flex: 1 1 0; padding-left: var(--space-2); padding-right: var(--space-2); font-size: var(--text-sm); }
}

/* Blog and tools pages (scripts/site/build-content.js, docs/adr/blog-and-tools.md). */
main.article { padding: var(--space-5) 0 var(--space-2); }
.article-wrap { max-width: 780px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 0 var(--space-1-5); font-size: var(--text-sm); color: var(--c-text-2); }
.crumbs li { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 2.75rem; }
.crumbs li + li::before { content: '›'; content: '›' / ''; margin-right: var(--space-1-5); }
.crumbs a { color: var(--c-text-2); display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-1); }
/* The current page: plain text, one line, ellipsized; the H1 right below says the same. */
.crumbs li[aria-current] { flex: 0 1 auto; min-width: 0; display: block; line-height: 2.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-3); }
/* On a phone it only repeats the H1: hidden visually, kept for assistive tech. */
@media (max-width: 640px) {
  .crumbs li[aria-current] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .crumbs li[aria-current]::before { content: none; }
}
.article-wrap > h1, .prose h1 { font-size: var(--display-fluid-doc); margin: var(--space-2) 0 var(--space-3); }
.article-meta { color: var(--c-text-2); font-size: var(--text-md); margin: 0 0 var(--space-5); }
.prose h2 { font-size: var(--display-fluid-h2); margin: var(--space-8) 0 var(--space-3); scroll-margin-top: 4.5rem; }
.prose h3 { font-size: var(--display-fluid-h3); margin: var(--space-6) 0 var(--space-2); }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--space-4); }
.prose li + li { margin-top: var(--space-1-5); }
.prose a:not(.btn) { color: var(--c-accent); }
/* A link styled as a button keeps its own colours and no underline. */
.prose a.btn { text-decoration: none; }
.prose blockquote { margin: var(--space-4) 0; padding: var(--space-3) var(--space-4); border-left: 4px solid var(--c-accent); background: var(--c-surface); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p { margin: var(--space-1) 0; }
.prose code { background: var(--c-surface-2); border-radius: var(--radius-xs); padding: 0.1em 0.35em; font-size: 0.9375em; }
.prose hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--space-8) 0; }
.table-wrap { overflow-x: auto; margin: var(--space-4) 0 var(--space-5); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: var(--radius-2xs); }
.prose table, .legal-table { border-collapse: collapse; width: 100%; font-size: var(--text-md); background: var(--c-surface); }
.prose th, .prose td, .legal-table th, .legal-table td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--c-border); vertical-align: top; }
.prose th, .legal-table thead th { background: var(--c-surface-2); font-weight: 600; }
/* The privacy policy's purposes table: scrolls sideways on a phone. */
.legal-table { min-width: 720px; font-size: var(--text-sm); }
/* Wide screens: the table takes the margins and wraps its cells, so nothing is clipped. */
@media (min-width: 900px) {
  .legal-doc .table-wrap { margin-inline: calc(-1 * var(--space-10)); }
  .legal-table { min-width: 0; }
  .legal-table th, .legal-table td { overflow-wrap: anywhere; }
}
.legal-table tbody th { font-weight: 600; }
.article-faq { padding: var(--space-6) 0 0; }
.article-faq h2 { font-size: var(--display-fluid-h2); margin-bottom: var(--space-3); }
.article-sources { padding: var(--space-4) 0 0; }
.article-sources h2 { font-size: var(--display-fluid-h3); margin-bottom: var(--space-2); }
.article-sources ul { padding-left: 1.3em; margin: 0; color: var(--c-text-2); font-size: var(--text-md); }
.article-sources li { margin: var(--space-1) 0; overflow-wrap: anywhere; }
.article-sources a { color: var(--c-accent); }
.article-cta { padding: var(--space-8) 0 var(--space-4); }
.index-list { margin-top: var(--space-4); }
.index-list h2 { font-size: var(--text-4xl); margin: 0 0 var(--space-2); }
.index-list h2 a { color: var(--c-text); text-decoration-color: var(--c-accent); }
.index-list .article-meta { margin: var(--space-3) 0 0; font-size: var(--text-sm); }
.empty-state { margin-top: var(--space-4); }
.empty-state h2 { font-size: var(--display-sm); margin-bottom: var(--space-2); }
.empty-state a { color: var(--c-accent); }

/* Cross-links from /cashback/ and /dolgi/ to the calculators. */
.card-link { color: var(--c-text); text-decoration-color: var(--c-accent); text-underline-offset: 0.2em; display: inline-block; padding: var(--space-1) 0; }
.card-link:hover { color: var(--c-accent); }

/* Calculators (landing/assets/calc-*.js). Targets are at least 2.75rem (44px). */
.calc {
  margin: var(--space-6) 0; padding: var(--space-5); border-radius: var(--radius-xl);
  background: var(--c-surface); border: 1px solid var(--c-border);
  display: grid; gap: var(--space-4);
}
.calc h2 { margin: 0; font-size: var(--display-fluid-calc); }
.calc .field { display: grid; gap: var(--space-1-5); margin: 0; padding: 0; border: 0; min-width: 0; }
.calc .field[hidden] { display: none; }
.calc label, .calc legend { font-weight: 600; font-size: var(--text-base); }
.calc legend { padding: 0; margin-bottom: var(--space-1-5); }
.calc small { color: var(--c-text-2); font-size: var(--text-sm); }
.calc input[type='text'], .calc input[type='date'], .calc textarea {
  min-height: 2.75rem; width: 100%; max-width: 20rem; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text);
  font: var(--text-lg)/1.3 var(--font);
}
.calc textarea { max-width: 28rem; resize: vertical; }
.calc input:focus-visible, .calc textarea:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 1px; }
.calc .choice { display: flex; align-items: center; gap: var(--space-2-5); min-height: 2.75rem; font-weight: 400; cursor: pointer; }
.calc .choice input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--c-accent); margin: 0; }
.calc .btn { justify-self: start; }
.calc-rows { display: grid; gap: var(--space-2); }
.calc-rows-title { margin: 0; font-weight: 600; }
.calc-row {
  display: grid; grid-template-columns: 1fr auto 7.5rem auto 5rem; align-items: center; gap: var(--space-2) var(--space-2-5);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--c-surface-2);
}
.calc-row label { font-weight: 400; font-size: var(--text-sm); color: var(--c-text-2); }
.calc-row-name { font-weight: 600; }
@media (max-width: 560px) {
  .calc-row { grid-template-columns: auto 1fr; }
  .calc-row-name { grid-column: 1 / -1; }
}
.calc-result { padding: var(--space-4) var(--space-4-5); border-radius: var(--radius-lg); background: var(--c-positive-soft); }
.calc-head { margin: 0; font-weight: 600; font-size: var(--text-2xl); color: var(--c-positive); }
.calc-detail { margin: var(--space-1-5) 0 0; }
.calc-list { margin: var(--space-2) 0 0; padding-left: 1.2em; }
.calc-list[hidden] { display: none; }
.calc-note { margin: 0; color: var(--c-text-2); font-size: var(--text-sm); }
.calc-note[hidden] { display: none; }

/* Group debt simplification, before and after (content/blocks/smart-split.html). */
.smart-split {
  margin: var(--space-8) 0; padding: var(--space-5); border-radius: var(--radius-xl);
  background: var(--c-surface); border: 1px solid var(--c-border);
}
.smart-split h2 { margin-top: var(--space-3); }
.split-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3-5); margin: var(--space-4) 0; }
.split-card { margin: 0; padding: var(--space-3-5) var(--space-4); border-radius: var(--radius-lg); background: var(--c-surface-2); }
.split-after { background: var(--c-positive-soft); }
.split-card figcaption { color: var(--c-text-2); font-size: var(--text-md); margin-bottom: var(--space-2); }
.split-count { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--display-sm); line-height: 1.1; color: var(--c-text); }
.split-after .split-count { color: var(--c-positive); }
.prose .split-transfers { list-style: none; padding: 0; margin: 0; }
.prose .split-transfers li { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-1-5) 0; margin: 0; border-bottom: 1px solid var(--c-border); }
.split-transfers .num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.split-note { margin: var(--space-2-5) 0 0; font-size: var(--text-sm); color: var(--c-text-2); }
.prose .split-steps { margin: 0 0 var(--space-5); }
@media (max-width: 560px) {
  .smart-split { padding: var(--space-4); }
  .split-compare { grid-template-columns: 1fr; }
}

/* Тарифы on the home page: price, what is included, the button at the bottom. */
.plan { display: flex; flex-direction: column; }
.plan .plan-price { font-size: var(--display-xs); font-weight: 600; color: var(--c-text); margin: 0 0 var(--space-3); }
.plan .plan-price span { font-size: var(--text-sm); font-weight: 400; color: var(--c-text-2); }
.plan ul { margin: 0 0 var(--space-4); padding-left: 1.2em; color: var(--c-text-2); flex: 1; }
.plan .btn { align-self: flex-start; }
