/* Simple Denoiser — светлый тёплый минимализм. Тёмной темы нет намеренно. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-italic-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F7F4EE;
  --card: #FFFFFF;
  --ink: #16151A;
  --muted: #6E6A62;
  --line: #E6E1D7;
  --accent: #2F4BFF;
  --accent-soft: #E4E8FF;
  --noise: #B9B2A6;

  --accent-deep: #2238E0;
  --paper-deep: #EFEBE3;
  --ok: #1F7A4D;
  --err: #B3261E;
  --err-soft: #FBEAE7;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 1px 0 rgba(22, 21, 26, .03), 0 2px 6px rgba(22, 21, 26, .04), 0 24px 60px -24px rgba(22, 21, 26, .16);
  --shadow-sm: 0 1px 2px rgba(22, 21, 26, .05), 0 8px 24px -12px rgba(22, 21, 26, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 72px; /* site.js уточняет по ResizeObserver */

  color-scheme: light;
}
@media (max-width: 640px) { :root { --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--paper); }

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

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

/* ---------- Типографика ---------- */
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
.display, h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: .98;
  font-feature-settings: "lnum", "pnum";
}
h1 { font-size: clamp(3.1rem, 1.6rem + 6.2vw, 7.4rem); }
h2 { font-size: clamp(2.35rem, 1.5rem + 3.3vw, 4.4rem); line-height: 1.02; }
h3 { font: 600 1.125rem/1.35 var(--sans); letter-spacing: -.01em; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0; }
.lede { font-size: clamp(1.06rem, .98rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink); max-width: 36em; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.small { font-size: .875rem; line-height: 1.5; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--accent); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font: 500 1rem/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), color .2s;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 22px -10px rgba(47, 75, 255, .55);
}
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); border-radius: 999px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--card); color: var(--ink); border-color: #D8D2C5; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.is-busy { pointer-events: none; }
.btn.is-busy::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; text-decoration: none; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; letter-spacing: -.015em; font-size: 1.0625rem; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 12px -4px rgba(47,75,255,.45); }
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav__link { text-decoration: none; font-size: .9375rem; color: var(--ink); }
.nav__link:hover { color: var(--accent); }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-deep);
  font: 500 .75rem/1 var(--sans); letter-spacing: .06em;
}
.lang a { padding: 7px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(22,21,26,.08); }
.lang a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .nav__link--hide-sm { display: none; }
  .site-header .wrap { height: 64px; }
  .site-header .btn--sm { padding: 0 14px; }
}
.only-sm { display: none; }
@media (max-width: 480px) {
  .nav { gap: 8px; }
  .site-header .btn--sm .only-lg { display: none; }
  .site-header .btn--sm .only-sm { display: inline; }
  .lang a { padding: 7px 8px; }
}
@media (max-width: 340px) {
  .brand span { display: none; }
}

/* ---------- Секции ---------- */
.section { padding-block: clamp(80px, 11vw, 160px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 980px; }
.section__head .lede { max-width: 40em; }
.section__head .lede { color: var(--muted); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Первый экран: одна сцена ----------
   Видео (шум → стекло → чистая волна) — фон сцены. Полоса эффекта занимает середину кадра,
   верх (~25%) и низ (~18%) — пустая бумага: там живут заголовок и кнопка. */
.hero { padding-top: clamp(8px, 1.5vw, 20px); position: relative; }
.stage {
  position: relative; isolation: isolate;
  width: 100%; aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--header-h) - 12px); max-height: calc(100svh - var(--header-h) - 12px);
  min-height: 560px;
  display: grid; grid-template-rows: auto 1fr auto;
  text-align: center;
}
.stage > video, .stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.stage > video {
  object-fit: cover; background: var(--paper); opacity: 0; transition: opacity .8s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 11%, #000 89%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 11%, #000 89%, transparent);
  mask-composite: intersect;
}
.stage.has-video > video { opacity: 1; }
.stage.has-video > canvas { opacity: 0; transition: opacity .6s; }
.stage__top { grid-row: 1; grid-column: 1; display: grid; justify-items: center; gap: 14px; padding-top: clamp(12px, 2.4vw, 32px); }
.stage__bottom { grid-row: 3; grid-column: 1; display: grid; justify-items: center; gap: 14px; padding-bottom: clamp(8px, 1.6vw, 24px); }
.stage h1 { font-size: clamp(2.7rem, 1.2rem + 4.4vw, 5.6rem); line-height: .95; }
.stage h1 br { display: none; }
.hero__sub { font-size: clamp(1rem, .94rem + .3vw, 1.1875rem); color: #4A4740; max-width: 46em; text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .8125rem; color: var(--muted); }
.hero__meta span + span::before { content: "·"; margin-right: 14px; opacity: .7; }

/* A — слова по обе стороны стекла: «Шум ▯ голос.» */
.hero--a .stage { grid-template-rows: auto 1fr auto; }
.stage .hero__words {
  position: absolute; left: 0; right: 0; top: 23%; transform: translateY(-50%);
  display: grid; grid-template-columns: 43% 16% 41%; align-items: center; pointer-events: none;
  font-size: clamp(3.4rem, 1rem + 10vw, 11.5rem); line-height: 1; letter-spacing: -.02em;
}
.hero__words .w { text-shadow: 0 0 .12em var(--paper), 0 0 .3em var(--paper), 0 0 .6em var(--paper); }
.hero__words .w--noise { grid-column: 1; justify-self: end; padding-right: .12em; color: #9C958A;
  text-shadow: 0 0 .12em var(--paper), 0 0 .3em var(--paper), .015em .01em 0 rgba(156,149,138,.45), -.02em -.012em 0 rgba(156,149,138,.3), .03em -.02em .02em rgba(156,149,138,.25); }
.hero__words .w--voice { grid-column: 3; justify-self: start; padding-left: .06em; }
.hero__words em { color: var(--accent); }
.hero--a .stage__bottom { gap: 16px; }

@media (max-width: 640px) {
  .stage { aspect-ratio: auto; max-height: none; min-height: 0; grid-template-rows: auto auto auto; }
  .stage__top { grid-row: 1; grid-column: 1; padding-top: 18px; }
  .stage__bottom { grid-row: 3; grid-column: 1; padding-bottom: 8px; }
  .stage > video, .stage > canvas {
    position: relative; inset: auto; grid-row: 2; grid-column: 1;
    width: calc(100% + var(--pad) * 2); height: auto; aspect-ratio: 1 / 1;
    margin: -22vw calc(var(--pad) * -1) -15vw;
  }
  .stage h1 br { display: inline; }
  .stage h1 { font-size: clamp(2.6rem, 11.5vw, 3.6rem); }
  .stage .hero__words { position: relative; top: auto; transform: none; grid-row: 2; grid-column: 1; align-self: start; margin-top: 7vw; font-size: 14.5vw; }
  .hero--a .stage > video, .hero--a .stage > canvas { margin-top: 0; }
  .hero--a .stage__top { padding-top: 0; }
}

/* ---------- Демо ---------- */
.demo-card {
  position: relative; background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
  /* окно демо целиком помещается под липкой шапкой: рельеф сжимается, плеер — нет */
  display: flex; flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 24px); max-height: calc(100svh - var(--header-h) - 24px);
  scroll-margin-top: 12px; /* плюс scroll-padding-top у html = высота шапки + 12px */
}
.demo-card > * { flex: none; }
.menubar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 34px; padding: 0 14px 0 18px;
  background: linear-gradient(#FBFAF7, #F5F2EC); border-bottom: 1px solid var(--line);
  font: 500 .8125rem/1 var(--sans); color: #3A3832;
}
.menubar__left, .menubar__right { display: flex; align-items: center; gap: 18px; }
.menubar__left b { font-weight: 650; }
.menubar__icon { display: inline-grid; place-items: center; width: 30px; height: 24px; border-radius: 6px; }
.menubar__icon.is-active { background: rgba(22, 21, 26, .09); }
.menubar__icon svg { width: 18px; height: 18px; }
.menubar__dim { opacity: .55; }
@media (max-width: 640px) { .menubar__hide-sm { display: none; } }

.demo-card > .demo-stage { flex: 1 1 auto; min-height: 200px; }
.demo-stage { position: relative; height: clamp(340px, 40vw, 540px); background:
  radial-gradient(120% 90% at 50% 100%, #FFFFFF 0%, #FBF9F5 55%, #F6F3ED 100%); }
.demo-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mac-menu {
  position: absolute; top: 6px; right: 14px; width: 286px; z-index: 2;
  padding: 6px; border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(22, 21, 26, .08);
  box-shadow: 0 0 0 .5px rgba(22,21,26,.06), 0 12px 36px -8px rgba(22, 21, 26, .22);
  font-size: .875rem; line-height: 1.25;
}
.mac-menu__status { padding: 7px 10px 6px; color: var(--muted); font-size: .78rem; }
.mac-menu__sep { height: 1px; background: rgba(22,21,26,.08); margin: 5px 10px; }
.mac-menu__label { padding: 6px 10px 3px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.mac-menu__item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; color: #3A3832; }
.mac-menu__item .check { width: 14px; color: var(--ink); font-size: .8rem; }
.mac-menu__item--dim { color: var(--muted); }

.nr-switch {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font: 600 .9375rem/1.2 var(--sans); text-align: left;
  transition: background-color .15s;
}
.nr-switch:hover { background: rgba(47, 75, 255, .07); }
.nr-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.nr-switch__track {
  position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px;
  background: #D9D4CA; transition: background-color .22s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(22,21,26,.05);
}
.nr-switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(22,21,26,.25), 0 0 0 .5px rgba(22,21,26,.06);
  transition: transform .22s var(--ease);
}
.nr-switch[aria-checked="true"] .nr-switch__track { background: var(--accent); }
.nr-switch[aria-checked="true"] .nr-switch__track::after { transform: translateX(18px); }
.nr-hint {
  display: block; padding: 0 10px 8px; font-size: .78rem; color: var(--accent); font-weight: 500;
  transition: opacity .3s;
}
.nr-hint[hidden] { display: none; }

.transport {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 22px;
  padding: 22px clamp(18px, 3vw, 32px) 24px; border-top: 1px solid var(--line);
}
.play {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--ink); color: var(--paper);
  transition: transform .2s var(--ease), background-color .2s;
  box-shadow: 0 10px 24px -12px rgba(22,21,26,.7);
}
.play:hover { background: #2A2930; }
.play:active { transform: scale(.96); }
.play:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent); }
.play svg { width: 22px; height: 22px; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.play.is-loading svg { opacity: 0; }
.play.is-loading { position: relative; }
.play.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }

.timeline { position: relative; height: 56px; cursor: pointer; touch-action: none; border-radius: 8px; }
.timeline canvas { width: 100%; height: 100%; }
.timeline:focus-visible { outline-offset: 4px; }
.time { font: 500 .875rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.5em; text-align: right; }
.demo-status {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .875rem; color: var(--muted);
}
.demo-status b { color: var(--ink); font-weight: 600; }
.demo-status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--noise); margin-right: 8px; vertical-align: 1px; transition: background-color .2s; }
.demo-status.is-on .dot { background: var(--accent); }
.demo-caption { display: block; margin-top: 22px; color: var(--muted); font-size: .9375rem; max-width: 52em; }
.demo-caption strong { color: var(--ink); font-weight: 600; margin-right: .35em; }
.demo-error { color: var(--err); font-size: .875rem; }

@media (max-width: 760px) {
  .mac-menu { top: 8px; left: 8px; right: 8px; width: auto; background: rgba(255,255,255,.92); }
  .mac-menu__status, .mac-menu__status + .mac-menu__sep { display: none; }
  .demo-stage { height: 430px; }
  .demo-card > .demo-stage { min-height: 260px; }
  .transport { grid-template-columns: auto 1fr; }
  .time { grid-column: 2; grid-row: 2; text-align: left; margin-top: -10px; }
  .timeline { grid-column: 2; }
}

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: var(--card); border-radius: var(--radius); padding: 14px 14px 28px; box-shadow: var(--shadow-sm); display: grid; align-content: start; gap: 18px; }
.step__art { height: 172px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; padding: 18px; overflow: hidden; }
.step__body { padding: 0 14px; display: grid; gap: 10px; }
.step__num { font: italic 500 2.6rem/.8 var(--serif); color: var(--accent); }
.step__body p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { grid-template-columns: 1fr; } }

.mini-file { display: grid; justify-items: center; gap: 10px; font-size: .8125rem; color: #3A3832; }
.mini-file svg { width: 64px; height: 64px; }
.mini-file small { color: var(--muted); }
.mini-key { width: 100%; max-width: 260px; display: grid; gap: 10px; }
.mini-key__label { font-size: .75rem; color: var(--muted); }
.mini-key__field { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 9px; background: var(--card); border: 1px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); font-size: .82rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.mini-key__field .caret { width: 1px; height: 18px; background: var(--ink); margin-left: 2px; animation: blink 1.1s steps(1) infinite; }
.mini-key__btn { justify-self: end; font-size: .78rem; font-weight: 600; color: #fff; background: var(--accent); border-radius: 7px; padding: 6px 12px; }
@keyframes blink { 50% { opacity: 0; } }
.mini-select { width: 100%; max-width: 260px; background: var(--card); border-radius: 11px; padding: 6px; box-shadow: var(--shadow-sm); font-size: .82rem; }
.mini-select__label { padding: 6px 8px 4px; font-size: .7rem; color: var(--muted); font-weight: 600; }
.mini-select__row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: var(--muted); }
.mini-select__row.is-on { background: var(--accent); color: #fff; font-weight: 500; }
.mini-select__row .check { width: 12px; }

/* ---------- Обещания ---------- */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.promise { padding: 34px clamp(0px, 2.4vw, 36px) 8px 0; display: grid; gap: 14px; align-content: start; }
.promise + .promise { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.promise svg { width: 44px; height: 44px; color: var(--accent); }
.promise h3 { font: 500 clamp(1.7rem, 1.3rem + 1vw, 2.2rem)/1.05 var(--serif); letter-spacing: -.01em; }
.promise p { color: var(--muted); }
@media (max-width: 900px) {
  .promises { grid-template-columns: 1fr; }
  .promise, .promise + .promise { padding: 28px 0; border-left: 0; }
  .promise + .promise { border-top: 1px solid var(--line); }
}

/* ---------- Цена ---------- */
.price {
  position: relative; text-align: center; display: grid; justify-items: center; gap: 22px;
  padding: clamp(56px, 8vw, 110px) var(--pad); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow); overflow: hidden;
}
.price::before {
  content: ""; position: absolute; inset: auto -10% -55% -10%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-soft), rgba(228,232,255,0) 70%);
  z-index: 0; pointer-events: none;
}
.price > * { position: relative; }
.price__amount { font: 500 clamp(5.5rem, 3rem + 10vw, 11rem)/.85 var(--serif); letter-spacing: -.03em; font-feature-settings: "lnum"; }
.price__note { font: italic 500 clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem)/1.15 var(--serif); color: var(--accent); }
.price p.muted { max-width: 30em; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(24px, 5vw, 80px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 500; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: 40em; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__grid h4 { margin: 0 0 14px; font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { color: var(--accent); }
.footer__brand p { color: var(--muted); margin-top: 14px; max-width: 22em; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Формы покупки / скачивания ---------- */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); display: grid; gap: 18px; max-width: 820px; }
.page-head h1 { font-size: clamp(2.8rem, 1.8rem + 4vw, 5.2rem); }
.page-head .lede { color: var(--muted); }

.flow-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-bottom: clamp(72px, 9vw, 128px); }
@media (max-width: 960px) { .flow-grid { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 48px); }
.card--flat { box-shadow: none; border: 1px solid var(--line); background: transparent; }

.stepper { display: flex; gap: 8px; list-style: none; margin: 0 0 clamp(28px, 4vw, 40px); padding: 0; counter-reset: s; }
.stepper li {
  flex: 1; display: grid; gap: 10px; font-size: .8125rem; color: var(--muted); counter-increment: s;
}
.stepper li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .3s; }
.stepper li span::before { content: counter(s) " · "; font-variant-numeric: tabular-nums; }
.stepper li.is-done::before { background: var(--ink); }
.stepper li.is-current::before { background: var(--accent); }
.stepper li.is-current { color: var(--ink); font-weight: 500; }

.flow-step { display: grid; gap: 22px; animation: rise .45s var(--ease) both; }
.flow-step[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.flow-step h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); }
.flow-step > p { color: var(--muted); }

.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .9375rem; }
.input {
  width: 100%; height: 58px; padding: 0 18px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line); font-size: 1.0625rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #A39E94; }
.input:hover { border-color: #D6D0C3; }
.input:focus { outline: none; border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.input--code { height: 72px; font-size: 2rem; letter-spacing: .5em; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; padding-left: calc(18px + .5em); }
.row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.row--between { justify-content: space-between; }
.textbtn { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--accent); font-weight: 500; font-size: .9375rem; text-decoration: underline; text-decoration-color: rgba(47,75,255,.35); text-underline-offset: .25em; }
.textbtn:hover { text-decoration-color: currentColor; }
.textbtn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
.email-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; font-size: .9375rem; word-break: break-all; }

.currency { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; padding: 0; margin: 0; }
.currency legend { font-weight: 500; font-size: .9375rem; margin-bottom: 10px; padding: 0; }
.currency label {
  position: relative; display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.currency label:hover { border-color: #D6D0C3; }
.currency input { position: absolute; opacity: 0; pointer-events: none; }
.currency .amount { font: 500 2.2rem/1 var(--serif); font-feature-settings: "lnum"; }
.currency .code { font-size: .8125rem; color: var(--muted); letter-spacing: .06em; }
.currency label:has(input:checked) { background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.currency label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.currency label::after {
  content: ""; position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #CFC9BC; background: var(--card);
}
.currency label:has(input:checked)::after { border: 6px solid var(--accent); }

.msg { display: none; padding: 14px 16px; border-radius: 14px; font-size: .9375rem; line-height: 1.5; }
.msg.is-shown { display: block; }
.msg--err { background: var(--err-soft); color: #7A1E17; }
.msg--info { background: var(--accent-soft); color: #1C2C99; }
.msg a, .msg .textbtn { color: inherit; }

.note { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--muted); }
.note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

.summary { display: grid; gap: 24px; }
.summary__product { display: flex; align-items: center; gap: 16px; }
.summary__product img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(47,75,255,.55); }
.summary__product b { display: block; font-size: 1.125rem; }
.summary__price { font: 500 3.4rem/1 var(--serif); letter-spacing: -.02em; font-feature-settings: "lnum"; }
.summary__price small { font: 400 1rem var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%232F4BFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.after { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 8px; }
.after h3 { font-size: 1rem; }
.after p { color: var(--muted); font-size: .9375rem; }

.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.key {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 14px 14px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
}
.key code { font: 600 1.06rem/1.3 var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; word-break: break-all; }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: .875rem; font-weight: 500; }
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy.is-done { color: var(--ok); border-color: rgba(31,122,77,.35); }
.copy svg { width: 15px; height: 15px; }

/* ---------- Справка и юр. страницы ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(72px, 9vw, 128px); }
.toc { position: sticky; top: 104px; display: grid; gap: 4px; font-size: .9375rem; }
.toc b { font: 600 .75rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 0 6px 14px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); margin: 64px 0 18px; scroll-margin-top: 24px; }
.prose > section:first-child h2 { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose li { color: #3A3832; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 14px 0; display: grid; gap: 8px; }
.prose li::marker { color: var(--muted); }
.prose .callout { margin: 22px 0; padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); }
.prose .callout p { color: var(--ink); }
.prose kbd { font: 500 .85em var(--sans); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 0 var(--line); }
.prose .path { font-weight: 500; color: var(--ink); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.apps div { background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); font-size: .9375rem; }
.apps b { display: block; margin-bottom: 4px; }
.apps span { color: var(--muted); }
.meta-date { color: var(--muted); font-size: .875rem; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
}

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
