/* Narrativ — витрина. Направление «Бумага и чернила»: светлая тема, много воздуха, один акцент.
   Клетки (графитовой сетки приложения) на сайте нет. */

/* ---------- шрифты приложения, без внешних CDN ---------- */
@font-face { font-family: "Comfortaa"; src: url("/assets/fonts/Comfortaa-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Comfortaa"; src: url("/assets/fonts/Comfortaa-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/NunitoSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/NunitoSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/fonts/NunitoSans-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- токены ---------- */
:root {
  color-scheme: light;
  --bg: #FAF8F5;
  --paper: #F3EFE8;          /* чуть темнее фона: спокойные плашки без теней */
  --ink: #1A1714;
  --ink-soft: #3D3832;
  --muted: #6B655D;          /* ≈5.1:1 на --bg: годится и для мелкого текста */
  --accent: #0C25A7;         /* ≈9.8:1 на --bg; на нём — белый текст */
  --accent-hover: #0A1E8A;
  --line: rgba(26, 23, 20, .14);
  --edge-strong: rgba(26, 23, 20, .55);   /* контур кнопок: ≥3:1 к фону */

  --font-head: "Comfortaa", "Nunito Sans", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 9vw, 120px);
  --radius-card: 28px;
  --shadow-slide: 0 16px 34px rgba(60, 40, 20, .12);
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
main:focus { outline: none; }
:target, [id] { scroll-margin-top: 24px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

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

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  padding: 12px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; outline-color: var(--ink); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body); text-align: center; text-decoration: none;
  cursor: pointer; background: none; color: inherit;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .12s ease-out, box-shadow .12s ease-out, background-color .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline { border-color: var(--edge-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: rgba(26, 23, 20, .05); }
.btn--inverse { background: #fff; color: var(--accent); }
.btn--inverse:hover { background: #F1F3FC; }
.btn[aria-disabled="true"] { cursor: not-allowed; color: var(--muted); border-color: rgba(26, 23, 20, .24); background: none; }

/* вдавливание при нажатии */
.btn:active:not([aria-disabled="true"]),
.rail-btn:active:not([aria-disabled="true"]) {
  transform: translateY(1px) scale(.98);
  box-shadow: inset 0 2px 5px rgba(26, 23, 20, .22);
}
.btn--primary:active { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .4); }

/* ---------- шапка ---------- */
.site-header__in { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 80px; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 700 1.625rem/1 var(--font-head); letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; color: var(--ink-soft); font-weight: 600; text-decoration: none;
}
.main-nav a:hover { color: var(--ink); background: rgba(26, 23, 20, .05); }
.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; align-items: center; }
.lang__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font-size: .9rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); text-decoration: none;
}
.lang__link:hover { color: var(--ink); }
.lang__link[aria-current] { color: var(--ink); }
.lang__sep { color: var(--line); }

/* ---------- разделы ---------- */
.section { padding-block: var(--section) 0; }
.section--tight { padding-top: clamp(64px, 8vw, 104px); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.15; letter-spacing: -.01em; }
.section__lead { margin-top: 16px; font-size: 1.125rem; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 0; }
.hero__in { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1rem + 2.7vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; }
.hero__lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 36px; }
.actions--center { justify-content: center; align-items: center; margin-top: 0; }
.hero__note { margin-top: 18px; font-size: .9375rem; color: var(--muted); }

/* ---------- слайды (веер и лента) ---------- */
.tone-blue  { --tb: #E6ECFB; --tf: #0C25A7; }
.tone-peach { --tb: #F6E7E0; --tf: #7A3417; }
.tone-green { --tb: #E5F0DC; --tf: #2D5016; }
.tone-sand  { --tb: #F3EBD2; --tf: #5E4A0B; }
.tone-lilac { --tb: #EADFF3; --tf: #4A2468; }
.tone-teal  { --tb: #DDEFEF; --tf: #0E4B4B; }
.tone-rose  { --tb: #F8E1E8; --tf: #7A1F3D; }
.tone-stone { --tb: #E9E6DF; --tf: #2B2620; }
.tone-amber { --tb: #FBEBC9; --tf: #6B4200; }
.tone-sky   { --tb: #DCE9F5; --tf: #12386B; }

.slide {
  --w: 236px;
  display: flex; flex-direction: column; align-items: flex-start;
  width: var(--w); height: calc(var(--w) * 1.25); margin: 0; overflow: hidden;
  padding: calc(var(--w) * .09); border-radius: calc(var(--w) * .09);
  background: var(--tb); color: var(--tf); box-shadow: var(--shadow-slide);
  font-size: calc(var(--w) * .1);
}
.slide__tag { margin-bottom: calc(var(--w) * .06); font: 700 calc(var(--w) * .052)/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.slide__title { font: 700 1em/1.18 var(--font-head); text-wrap: balance; }

.deco { display: block; margin-top: auto; }
.deco--lines, .deco--check { display: grid; gap: calc(var(--w) * .04); width: 100%; }
.deco--lines i { display: block; height: calc(var(--w) * .035); border-radius: 99px; background: currentColor; opacity: .22; }
.deco--lines i:nth-child(1) { width: 100%; }
.deco--lines i:nth-child(2) { width: 84%; }
.deco--lines i:nth-child(3) { width: 56%; }
.deco--number { font: 700 calc(var(--w) * .42)/.85 var(--font-head); opacity: .92; }
.deco--quote { height: calc(var(--w) * .26); font: 700 calc(var(--w) * .5)/.8 var(--font-head); opacity: .4; }
.deco--check i { display: flex; align-items: center; gap: calc(var(--w) * .04); }
.deco--check i::before { content: ""; flex: none; width: calc(var(--w) * .06); height: calc(var(--w) * .06); border: 2px solid currentColor; border-radius: 30%; opacity: .5; }
.deco--check i:first-child::before { background: currentColor; opacity: .9; }
.deco--check i::after { content: ""; flex: 1; height: calc(var(--w) * .03); border-radius: 99px; background: currentColor; opacity: .22; }
.deco--check i:nth-child(2)::after { margin-right: 14%; }
.deco--check i:nth-child(3)::after { margin-right: 34%; }
.deco--split { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--w) * .04); width: 100%; height: calc(var(--w) * .34); }
.deco--split i { border-radius: calc(var(--w) * .04); background: currentColor; opacity: .14; }
.deco--split i:nth-child(2) { opacity: .32; }
.deco--ring { width: calc(var(--w) * .3); height: calc(var(--w) * .3); border: calc(var(--w) * .05) solid currentColor; border-radius: 50%; opacity: .3; }

/* веер из трёх слайдов: размер слайда задаёт --w, всё остальное считается от него */
.fan {
  --w: 210px;
  position: relative; width: calc(var(--w) * 2.4); max-width: 100%; height: calc(var(--w) * 1.25 + var(--w) * .2);
  margin-inline: auto;
}
.fan .slide { --w: inherit; position: absolute; bottom: 0; left: 50%; transform-origin: 50% 100%; }
.slide--left   { transform: translateX(calc(-50% - var(--w) * .55)) rotate(-9deg); z-index: 1; }
.slide--center { transform: translateX(-50%); z-index: 3; align-items: center; text-align: center; }
.slide--right  { transform: translateX(calc(-50% + var(--w) * .55)) rotate(9deg); z-index: 2; align-items: flex-end; text-align: right; }
.slide--left .slide__title, .slide--right .slide__title { max-width: calc(var(--w) * .58); font-size: .92em; }
.slide--center .deco--lines i { margin-inline: auto; }
.slide--right .deco--lines i { margin-left: auto; }

/* ---------- три шага ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: -5px; right: 0; width: 9px; height: 9px;
  border-top: 1.5px solid var(--ink-soft); border-right: 1.5px solid var(--ink-soft); transform: rotate(45deg);
}
.step__num { display: block; margin-bottom: 20px; font: 700 clamp(2.5rem, 1.6rem + 2vw, 3.5rem)/1 var(--font-head); color: var(--accent); }
.step h3 { margin-bottom: 12px; font-size: 1.5rem; line-height: 1.2; }
.step p { max-width: 30ch; color: var(--ink-soft); }

/* ---------- для кого ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-card); background: var(--paper); }
.aud__tag { margin-bottom: 20px; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.aud h3 { margin-bottom: 16px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }
.aud p:not(.aud__tag) { flex: 1 0 auto; margin-bottom: 32px; color: var(--ink-soft); }

/* ---------- лента шаблонов ---------- */
.rail-controls { display: flex; gap: 10px; flex: none; }
.rail-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 1.5px solid var(--edge-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .12s ease-out, box-shadow .12s ease-out, opacity .15s, border-color .15s;
}
.rail-btn:hover { border-color: var(--ink); }
.rail-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.rail {
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--edge);
  padding-block: 24px 60px; margin-bottom: -28px; scrollbar-width: thin; scrollbar-color: rgba(26, 23, 20, .3) transparent;
}
.rail:focus-visible { outline-offset: -4px; }
.rail__track { display: flex; gap: 20px; width: max-content; margin: 0; padding: 0 var(--edge); list-style: none; }
.rail .slide { flex: none; scroll-snap-align: start; }
.rail-caption { font-size: .9375rem; font-weight: 600; color: var(--muted); }

/* ---------- итоговый призыв ---------- */
.final { padding-block: var(--section); }
.cta { padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px); border-radius: 32px; background: var(--accent); color: #fff; text-align: center; }
.cta h2 { max-width: 20ch; margin: 0 auto 16px; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.15; letter-spacing: -.01em; }
.cta p { max-width: 44ch; margin: 0 auto 32px; font-size: 1.125rem; color: rgba(255, 255, 255, .88); }
.cta__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; color: #fff; text-underline-offset: 4px; }
.cta :focus-visible { outline-color: #fff; }

/* ---------- подвал ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9375rem; }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site-footer__brand p { margin-top: 8px; max-width: 30ch; color: var(--muted); }
.site-footer__nav ul { display: grid; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink-soft); text-decoration: none; }
.site-footer__nav a:hover, .site-footer__legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 40px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.site-footer__legal div { display: flex; flex-wrap: wrap; gap: 0 8px; }
.site-footer__legal dt { font-weight: 700; color: var(--ink-soft); }
.site-footer__legal dt::after { content: ":"; }
.site-footer__legal dd { margin: 0; }
.site-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
.site-footer__copy { margin-top: 16px; font-size: .875rem; color: var(--muted); }

/* ---------- выезд блоков (класс ставит site.js только блокам ниже первого экрана) ---------- */
.reveal { transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.is-pending { opacity: 0; transform: translateY(12px); }
.steps .step:nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3) { transition-delay: .16s; }
.audience .aud:nth-child(2) { transition-delay: .08s; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .btn:active:not([aria-disabled="true"]), .rail-btn:active:not([aria-disabled="true"]) { transform: none; }
}

/* ---------- планшет ---------- */
@media (min-width: 1200px) {
  .hero__in { grid-template-columns: 1.1fr .9fr; }
  .fan { --w: 232px; }
}
@media (max-width: 1024px) {
  .fan { --w: 180px; }
  .slide { --w: 212px; }
  .main-nav a { padding: 0 10px; }
  .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (max-width: 880px) {
  .hero__in { grid-template-columns: 1fr; }
  .fan { --w: 190px; margin-top: 8px; }
}

/* ---------- телефон ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header__in { min-height: 68px; gap: 8px; }
  .wordmark { font-size: 1.5rem; }
  .main-nav { display: none; }
  .site-header__end { gap: 4px; }
  .hero { padding-top: 20px; }
  .actions .btn { flex: 1 1 100%; }
  .fan { --w: min(150px, 36vw); }
  .slide { --w: 200px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step:not(:last-child)::after { display: none; }
  .step p { max-width: none; }
  .audience { grid-template-columns: 1fr; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .rail-controls { display: none; }
  .rail__track { gap: 14px; }
  .cta { border-radius: 24px; }
  .actions--center { flex-direction: column; }
  .actions--center .btn { flex: none; width: 100%; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__legal { flex-direction: column; }
}

/* === pricing/faq/support === */
/* Общая шапка страниц «Цены», «Вопросы и ответы», «Поддержка» */
.pf-head { padding: clamp(40px, 7vw, 88px) 0 0; }
.pf-head h1 { font-size: clamp(2.25rem, 1rem + 2.7vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; }
.pf-head p { max-width: 36em; margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-soft); }
.pricing, .faq-section, .support { padding-bottom: 0; }
.faq-section, .support { margin-top: clamp(32px, 5vw, 56px); }
.faq-section, .support, .pricing + .section { padding-bottom: clamp(72px, 9vw, 120px); }
.pricing + .section { padding-top: clamp(56px, 7vw, 88px); }
.pricing { margin-top: clamp(32px, 5vw, 56px); position: relative; }

/* Переключатель ₽/$: два радио перед карточками, видимые только метки; работает без JS */
.cur-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1.5px solid var(--edge-strong); border-radius: 999px; }
.cur-switch label {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 700; color: var(--ink-soft); cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .12s ease-out, box-shadow .12s ease-out, background-color .15s, color .15s;
}
.cur-switch label:hover { color: var(--ink); background: rgba(26, 23, 20, .05); }
.cur-switch label:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 5px rgba(26, 23, 20, .22); }
#cur-rub:checked ~ .cur-switch label[for="cur-rub"],
#cur-usd:checked ~ .cur-switch label[for="cur-usd"] { background: var(--ink); color: #fff; }
#cur-rub:focus-visible ~ .cur-switch label[for="cur-rub"],
#cur-usd:focus-visible ~ .cur-switch label[for="cur-usd"] { outline: 3px solid var(--accent); outline-offset: 3px; }
#cur-rub:checked ~ .plans .cur-usd,
#cur-usd:checked ~ .plans .cur-rub { display: none; }

/* Карточки тарифов */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.plan { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); border: 2px solid transparent; border-radius: var(--radius-card); background: var(--paper); }
.plan--year { background: #fff; border-color: var(--accent); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.plan__top h3 { font-size: 1.5rem; line-height: 1.2; }
.plan__badge { padding: 6px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 28px; }
.plan__amount { font: 700 clamp(2.5rem, 1.7rem + 2.4vw, 3.5rem)/1 var(--font-head); white-space: nowrap; }
.plan__period { font-weight: 600; color: var(--muted); }
.plan__hint { margin-top: 10px; font-weight: 700; color: var(--accent); }
.plan__note { margin-top: 14px; color: var(--ink-soft); }
.plan__buy { display: flex; flex-direction: column; margin-top: auto; padding-top: 32px; }
.plan__buy .btn { width: 100%; }
.plan__terms { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.plan__terms a, .cur-help a { color: var(--accent); text-underline-offset: 3px; }

.cur-help { max-width: 62ch; margin-top: 24px; font-size: .9375rem; color: var(--muted); }
.cur-help a { display: inline-block; padding-block: 10px; margin-block: -10px; font-weight: 700; }

/* Бесплатно */
.free {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px clamp(20px, 4vw, 40px);
  margin-top: 40px; padding: clamp(24px, 3.5vw, 36px) clamp(24px, 4vw, 44px);
  border-radius: var(--radius-card); background: var(--tb); color: var(--tf);
}
.free__num { font: 700 clamp(3.5rem, 2.5rem + 3vw, 5rem)/.9 var(--font-head); }
.free h2 { font-size: 1.5rem; line-height: 1.2; }
.free p { max-width: 52ch; margin-top: 8px; color: var(--ink-soft); }

/* Что входит */
.includes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 48px; margin: 0; padding: 0; list-style: none; }
.includes li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 1.125rem; }
.includes__mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--accent); color: #fff; }
.includes__note { max-width: 62ch; margin-top: 24px; font-size: .9375rem; color: var(--muted); }

/* Вопросы и ответы */
.faq { max-width: 820px; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 0;
  font: 700 1.1875rem/1.35 var(--font-head); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary:focus-visible { outline-offset: 2px; border-radius: 8px; }
.faq__icon {
  position: relative; flex: none; width: 32px; height: 32px; border: 1.5px solid var(--edge-strong); border-radius: 50%; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform .2s ease-out; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 56px 26px 0; color: var(--ink-soft); animation: faq-in .25s ease-out; }
.faq__a p { max-width: 62ch; }
.faq__a a { color: var(--accent); text-underline-offset: 3px; }
.faq__more { margin-top: 40px; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* Поддержка */
.support__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.support__card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-card); background: var(--paper); }
.support__card--mail { background: var(--accent); color: #fff; }
.support__label { margin-bottom: 14px; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.support__card--mail .support__label { color: rgba(255, 255, 255, .8); }
.support__hint { max-width: 40ch; margin-bottom: 28px; font-size: 1.125rem; color: rgba(255, 255, 255, .92); }
.support__hint a { color: #fff; text-underline-offset: 3px; }
.support__note { margin-top: 18px; font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.support__card :focus-visible { outline-color: var(--ink); }
.support__card--mail :focus-visible { outline-color: #fff; }
.support__card .btn { max-width: 100%; overflow-wrap: anywhere; }
.support__card:not(.support__card--mail) { justify-content: space-between; gap: 48px; }
.support__card:not(.support__card--mail) .support__label { margin-bottom: 0; }
.support__topics { margin-top: clamp(40px, 6vw, 72px); }
.support__topics h2 { margin-bottom: 24px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--edge-strong); border-radius: 999px;
  font-weight: 600; text-decoration: none; color: var(--ink);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .12s ease-out, box-shadow .12s ease-out, background-color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); background: rgba(26, 23, 20, .05); }
.chip:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 5px rgba(26, 23, 20, .22); }

.plans .plan:nth-child(2), .includes li:nth-child(even), .chips li:nth-child(even) { transition-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  .cur-switch label:active, .chip:active { transform: none; }
}
@media (max-width: 880px) {
  .free { grid-template-columns: auto 1fr; }
  .free .btn { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .plans, .support__grid, .includes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cur-switch { display: flex; }
  .cur-switch label { flex: 1; justify-content: center; padding: 0 12px; }
  .free { grid-template-columns: 1fr; }
  .faq__item summary { font-size: 1.0625rem; }
  .faq__a { padding-right: 0; }
  .support__card .btn { width: 100%; }
}

/* === legal === */
/* Условия и Политика: длинный текст, колонка ~70 знаков, оглавление сбоку на широком экране. */
.legal__head { padding-block: clamp(48px, 7vw, 88px) 0; }
.legal__head h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.12; letter-spacing: -.01em; max-width: 20ch; }
.legal__updated { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.legal__notice {
  margin-top: 20px; max-width: 70ch; padding: 14px 18px;
  background: var(--paper); border-radius: 16px; color: var(--ink-soft); font-size: .95rem; line-height: 1.5;
}

.legal__layout {
  display: grid; grid-template-columns: 250px minmax(0, 70ch); column-gap: clamp(40px, 6vw, 80px);
  grid-template-areas: "toc intro" "toc main";
  grid-template-rows: auto 1fr;
  padding-block: clamp(32px, 4vw, 48px) clamp(72px, 9vw, 120px);
}
.legal__intro { grid-area: intro; }
.legal__main { grid-area: main; }
.legal-toc { grid-area: toc; align-self: start; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }

.legal__lead { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft); }
.legal-operator {
  display: block; margin-top: 24px; font-style: normal; font-size: .95rem; line-height: 1.55; color: var(--muted);
}
.legal-operator strong { color: var(--ink); font-weight: 700; }
.legal-operator a { color: var(--accent); text-underline-offset: 3px; }

.legal-summary {
  margin-top: 32px; padding: clamp(20px, 3vw, 28px); background: var(--paper); border-radius: var(--radius-card);
}
.legal-summary h2 { font-size: 1.25rem; line-height: 1.3; }
.legal-summary ul { margin: 16px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.legal-summary li::marker { color: var(--accent); }
.legal-summary__note { margin-top: 16px; font-size: .9rem; color: var(--muted); }

.legal-toc h2 {
  font: 700 .8125rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.legal-toc ol { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: toc; border-left: 1.5px solid var(--line); }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block; padding: 7px 0 7px 14px; margin-left: -1.5px; border-left: 1.5px solid transparent;
  color: var(--ink-soft); font-size: .9375rem; line-height: 1.35; text-decoration: none;
}
.legal-toc a::before { content: counter(toc) ". "; color: var(--muted); }
.legal-toc a:hover { color: var(--accent); border-left-color: var(--accent); }

.legal__main section { margin-top: clamp(40px, 5vw, 56px); }
.legal__main h2 { font-size: clamp(1.375rem, 2.4vw, 1.625rem); line-height: 1.25; letter-spacing: -.005em; }
.legal__main p, .legal__main ul { margin-top: 14px; }
.legal__main ul { padding-left: 1.3em; display: grid; gap: 12px; }
.legal__main li::marker { color: var(--muted); }
.legal__main a, .legal__lead a, .legal-summary a { color: var(--accent); text-underline-offset: 3px; }
.legal__main a:hover, .legal__lead a:hover, .legal-summary a:hover { text-decoration-thickness: 2px; }
.legal__main p, .legal__main li { overflow-wrap: break-word; }

@media (max-width: 1024px) {
  .legal__layout { grid-template-columns: minmax(0, 70ch); grid-template-areas: "intro" "toc" "main"; grid-template-rows: none; }
  .legal-toc {
    position: static; max-height: none; overflow: visible; margin-top: 32px;
    padding: 20px 20px 12px; border: 1.5px solid var(--line); border-radius: 20px;
  }
}
@media (max-width: 640px) {
  .legal__lead { font-size: 1.0625rem; }
  .legal-summary { border-radius: 22px; }
  .legal__main section { margin-top: 36px; }
}
