/* ==========================================================================
   КП mrs.alinaas
   Белая монохромная система: сетка 6 колонок, поля 20px.
   Заголовки Oranienbaum, весь остальной текст Inter.
   Палитру меняет один блок ниже.
   ========================================================================== */
:root {
  --bg: #F4F3EE;          /* фон всех слайдов, слегка серый (с сайта mrs-alinaas.com) */
  --soft: #FFFFFF;        /* белые заливки: тариф, прототип, таблица */
  --soft-2: #E6E1D7;      /* бежевый: шторка, элементы прототипа */
  --beige: #D9D0C1;       /* бежевый темнее: акценты */
  --text: #111111;        /* основной текст */
  --muted: #5C5A55;       /* второстепенный текст, AA на фоне */
  --accent: #111111;      /* акцент тоже чёрный: синий не используем */
  --dark: #000000;        /* финальный экран и выделенный тариф: чистый чёрный */
  --on-dark: #F2F2F2;
  --on-dark-muted: #A3A3A3;

  --font-head: "Oranienbaum", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: 20px;          /* поля по бокам */
  --gap: 20px;             /* промежуток между колонками */
  --radius: 16px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* скроллит .deck */
}

h1, h2 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.8vw, 3.5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-bottom: 0; max-width: 12em; } /* максимум 52px */

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 40px; height: 40px; stroke-width: 1.2; }
/* иконки прорисовываются линией */
.icon { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .icon { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.js .is-visible .icon, .js .in .icon { stroke-dashoffset: 0; }

/* ---------- Слайды ---------- */
.deck {
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth; /* обычный скролл без привязки к слайдам */
  outline: none;
}

.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding: var(--gutter) 0;
  background: var(--bg);
}

/* каждый слайд: заголовок в левом верхнем углу, остальное прижато к низу */
.frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: calc(100vh - 2 * var(--gutter));
  min-height: calc(100svh - 2 * var(--gutter));
}
.frame > h2, .frame > .head h2 { margin-bottom: 0; }
.body { margin-top: auto; }
.body-intro { margin-bottom: clamp(20px, 4vh, 36px); }
.body-intro .lead { grid-column: 1 / -1; }

.wrap { width: 100%; padding: 0 var(--gutter); }

/* сетка 6 колонок */
.g6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--gap);
}
.g6 > * { grid-column: 1 / -1; min-width: 0; }

.lead { font-size: 1.125rem; line-height: 1.5; color: var(--muted); max-width: 32em; }
.label { font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.source { margin-top: 16px; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }

.head-row { align-items: end; margin-bottom: clamp(20px, 4vh, 40px); }
.head-row h2 { margin-bottom: 0; }
.head-row .lead { margin-top: 12px; }

/* ---------- 1. Обложка ---------- */
.slide.slide--cover { padding: 0; align-items: stretch; }
.cover {
  width: 100%;
  padding: 0 var(--gutter);
  grid-template-rows: auto auto auto;
  row-gap: 20px;
  min-height: 100svh;
}
.cover__head { padding-top: var(--gutter); }
.cover__photo {
  position: relative;
  height: 46svh;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}
.cover__photo img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 30%;
  will-change: transform;
}
.cover__desc { padding-bottom: var(--gutter); align-self: end; }
.cover__for { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }

/* ---------- 2. Что важно: заголовок по углам, пункты шахматкой ---------- */
.chess { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px var(--gap); align-items: start; }
.chess__item p { margin-top: 8px; color: var(--muted); }
.chess__item h3 { font-size: 1.25rem; }
.chess__item .icon { display: block; margin-bottom: 18px; }

/* ---------- 3. Белый экран ---------- */
.alert { row-gap: 32px; align-items: center; }
.alert__text > p:not(.label):not(.source) { color: var(--muted); margin-top: 12px; max-width: 34em; }

.stats {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.stats caption { text-align: left; font-size: 0.75rem; color: var(--muted); padding-bottom: 6px; }
.stats th, .stats td { text-align: left; font-weight: 400; padding: 3px 12px 3px 0; white-space: nowrap; }
.stats thead th { font-size: 0.75rem; color: var(--muted); }
.stats tbody tr:nth-child(odd) { background: var(--soft); }
.stats tbody th { padding-left: 8px; }
.stats td:nth-child(2) { color: var(--muted); }
.stats td:last-child { width: 48%; }
.stats .is-hot th, .stats .is-hot td:last-child { font-weight: 600; }
.bar {
  display: inline-block;
  vertical-align: middle;
  width: 120px;
  height: 6px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--soft-2);
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  width: calc(var(--v) * 2%); /* 50% = полная полоса */
  border-radius: 3px;
  background: #A8A398;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.4s var(--ease);
}
.is-hot .bar__fill { background: var(--text); }
.is-visible .bar__fill { transform: scaleX(1); }
.count { font-variant-numeric: tabular-nums; }

.devices { position: relative; padding-bottom: 32px; }
.device--desktop { background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.device--desktop img { width: 100%; }
.device figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }
.device--desktop figcaption { position: absolute; left: 14px; bottom: 10px; margin: 0; }
.device--phone {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 27%;
  min-width: 96px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--text);
  padding: 4px;
}
.device--phone .curtain { border-radius: 16px; }
.device--phone img { width: 100%; aspect-ratio: 390 / 620; object-fit: cover; object-position: top; }
.device--phone figcaption { color: var(--on-dark); text-align: center; margin: 4px 0 2px; }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: var(--soft-2);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFCFCA; }
.browser-bar span { margin-left: 10px; font-size: 0.6875rem; color: var(--muted); }

/* ---------- 4. Проблемы ---------- */
.issues { row-gap: 28px; }
.issue p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.issue .proof {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text);
  padding-left: 12px;
  box-shadow: inset 2px 0 0 var(--beige);
}

/* ---------- 5. Скрины ---------- */
.shots { row-gap: 28px; }
.shot .curtain { border-radius: var(--radius); background: var(--soft); }
.shot img { width: 100%; height: clamp(220px, 46svh, 480px); object-fit: cover; object-position: top center; }
.shot--left img { object-position: top left; }
.shot figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }
.shot figcaption b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* ---------- 6. Продукты ---------- */
.products { row-gap: 28px; }
.products > .product { grid-column: span 3; }
.product { display: flex; flex-direction: column; }
.product__img { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--soft); margin-bottom: 14px; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product__img img { transform: scale(1.04); }
.product__img--set { display: grid; place-items: center; background: var(--text); }
.product__img--set span { font-family: var(--font-head); font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--on-dark); }
.product__tag { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.product h3 { font-size: 1.0625rem; }
.product__desc { margin-top: 4px; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.product__price { margin-top: auto; padding-top: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.product__price s { margin-left: 6px; font-weight: 400; font-size: 0.8125rem; color: var(--muted); }

/* ---------- 7. Витрина ---------- */
.showcase { row-gap: 28px; align-items: start; }
.showcase__head .lead { margin-top: 0; }
.showcase__list { row-gap: 28px; }
.feat .icon { margin-bottom: 14px; }
.feat p { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- 8. Прототип ---------- */
.proto { row-gap: 28px; align-items: end; }
.proto__text > p { color: var(--muted); max-width: 30em; }
.proto__legend {
  margin-top: 20px;
  counter-reset: l;
  display: grid;
  gap: 6px var(--gap);
  font-size: 0.875rem;
}
.proto__legend li { color: var(--muted); }
.proto__legend li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  margin-right: 10px;
  vertical-align: middle;
}
.wire { border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.wire__viewport { height: clamp(300px, 52svh, 560px); overflow: hidden; }
.wire__page {
  padding: 14px;
  display: grid;
  gap: 10px;
  animation: wire-scroll 26s ease-in-out infinite alternate;
}
.wire:hover .wire__page { animation-play-state: paused; }
@keyframes wire-scroll {
  0%, 8% { transform: translateY(0); }
  92%, 100% { transform: translateY(var(--wire-shift, -50%)); }
}
.wb { border-radius: 10px; padding: 14px; background: var(--bg); display: flex; gap: 12px; }
.wb--col { flex-direction: column; gap: 8px; align-items: flex-start; }
.wb--nav { align-items: center; justify-content: space-between; padding: 10px 14px; }
.wb--accent { background: var(--soft-2); }
.wb--dark { background: var(--text); }
.wb--footer { background: var(--soft-2); justify-content: space-between; }
.w-col { flex: 1; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.w-h, .w-t, .w-btn, .w-tag, .w-row, .w-logo { display: block; border-radius: 4px; background: var(--soft-2); }
.w-h { height: 12px; width: 70%; background: #CFCFCA; }
.w-h--xl { height: 18px; width: 90%; }
.w-t { height: 6px; width: 100%; }
.w-btn { height: 18px; width: 92px; border-radius: 999px; background: var(--text); margin-top: 6px; }
.w-btn--light { background: var(--bg); }
.w-tag { height: 10px; width: 60px; background: var(--beige); }
.wb--dark .w-h { background: #444; }
.w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-50 { width: 50%; } .w-40 { width: 40%; } .w-30 { width: 30%; } .w-20 { width: 20%; }
.w-photo { flex: 1; min-height: 110px; border-radius: 8px; background: var(--soft-2); }
.w-photo--tall { min-height: 170px; }
.w-circle { width: 90px; height: 90px; border-radius: 50%; flex: none; background: var(--soft-2); align-self: center; }
.w-nums { display: flex; gap: 8px; margin-top: 6px; }
.w-nums i { flex: 1; height: 26px; border-radius: 6px; background: var(--soft); }
.w-logo { width: 70px; height: 10px; background: #CFCFCA; }
.w-links { display: flex; gap: 8px; }
.w-links i { width: 34px; height: 6px; border-radius: 3px; background: var(--soft-2); }
.w-table { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.w-table i { height: 16px; border-radius: 3px; background: var(--soft); }
.w-table i:nth-child(-n+4) { background: var(--soft-2); }
.w-cards { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.w-cards i { aspect-ratio: 3 / 4; border-radius: 6px; background: var(--soft-2); }
.w-cards--3 { grid-template-columns: repeat(3, 1fr); }
.w-cards--3 i { aspect-ratio: 4 / 3; background: var(--soft); }
.w-row { height: 18px; width: 100%; background: var(--soft); }

/* ---------- 9. Каким будет сайт ---------- */
.slide--scrub { display: block; padding: 0; min-height: 220vh; min-height: 220svh; }
.scrub {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: stretch;
  padding: var(--gutter) 0;
}
.scrub__inner { width: 100%; }
.scrub__text {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 20em;
}
.js .scrub .ch, .js .scrub .wd { opacity: .12; transition: opacity .25s linear; }
.js .scrub .on { opacity: 1; }

/* ---------- 10. Тарифы ---------- */
.plans { row-gap: var(--gap); align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--soft);
}
.plan__name { font-size: 1.25rem; }
.plan__price { margin-top: 18px; font-family: var(--font-head); font-size: clamp(2.5rem, 4vw, 3.25rem); line-height: 1; }
.plan__term { margin-top: 8px; font-size: 0.9375rem; color: var(--muted); }
.plan__list { margin-top: 22px; display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 26px; font-size: 0.9375rem; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.plan--featured { background: var(--dark); color: var(--on-dark); }
.plan--featured .plan__term { color: var(--on-dark-muted); }
.note { margin-top: 20px; max-width: 46em; font-size: 0.875rem; color: var(--muted); }

/* ---------- 11. Этапы ---------- */
#s11 .body { position: relative; }
.steps { display: grid; gap: 24px; position: relative; }
.steps-line {
  position: absolute;
  left: 5px;
  top: calc(var(--steps-top, 0px) + 6px);
  bottom: 0;
  width: 1px;
  background: var(--soft-2);
}
.steps-line__fill {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: 0 0;
  transform: scaleY(0);
  transition: transform 2.4s var(--ease) .4s;
}
.is-visible .steps-line__fill { transform: scaleY(1); }
.step { position: relative; padding-left: 32px; outline: none; transition: opacity .3s var(--ease); }
.step__dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--soft-2);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.is-visible .step__dot { background: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); transition-delay: calc(.4s + var(--si, 0) * .45s); }
.step h3 { font-size: 1.25rem; }
.step__meta { margin-top: 2px; font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.step p:last-child { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.steps:hover .step, .steps:focus-within .step { opacity: .4; }
.steps .step:hover, .steps .step:focus-visible { opacity: 1; }

/* ---------- 12. Что нужно ---------- */
.needs { row-gap: 32px; }
.need .icon { margin-bottom: 18px; }
.need h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; max-width: 14em; }

/* ---------- 13. Оплата ---------- */
.slide--pay { align-items: stretch; }
.pay {
}
.pay__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.pay__top h2 { margin: 0; }
.dot-accent { color: inherit; }
.pay__site { color: var(--text); text-decoration: underline; font-size: 1.125rem; }
.pay__site:hover { opacity: .6; }
.pay__text { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--muted); max-width: 34em; }

/* ---------- 14. Контакты: фон темнеет при скролле (script.js) ---------- */
.slide--final {
  --fin-bg: var(--bg);
  --fin-fg: var(--text);
  --fin-muted: var(--muted);
  background: var(--fin-bg);
  color: var(--fin-fg);
}
.final h2 { margin-bottom: clamp(28px, 6vh, 56px); }
.contacts { display: grid; }
.contacts li {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 3fr;
  gap: var(--gap);
  align-items: baseline;
  padding: 14px 0;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fin-fg) 14%, transparent);
}
.contacts span { font-size: 0.875rem; color: var(--fin-muted); }
.contacts a {
  font-size: clamp(1.25rem, 2.6vw, 2.25rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  word-break: break-word;
  transition: opacity .2s;
}
.contacts a:hover { opacity: .65; }

/* ---------- Прогресс и точки ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 20; mix-blend-mode: difference; }
.progress__bar { height: 100%; background: #FFFFFF; transform-origin: 0 50%; transform: scaleX(0); }
.dots { display: none; }

/* ---------- Анимации ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .is-visible .reveal { opacity: 1; transform: none; }

.split .w { display: inline-block; white-space: nowrap; }
.js .split .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: calc(var(--ci) * 22ms);
}
.js .is-visible .split .ch { opacity: 1; transform: none; }

.curtain { position: relative; overflow: hidden; }
.js .curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--soft-2);
  transform-origin: 100% 50%;
  transition: transform 1100ms cubic-bezier(.77, 0, .18, 1) 200ms;
}
.js .curtain img:not(.parallax) { transform: scale(1.12); transition: transform 1600ms var(--ease) 300ms; }
.js .is-visible .curtain::after { transform: scaleX(0); }
.js .is-visible .curtain img:not(.parallax) { transform: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (min-width: 600px) {
  .products > .product { grid-column: span 2; }
  .issues > .issue, .needs > .need { grid-column: span 3; }
  .showcase__list > .feat { grid-column: span 3; }
  .chess { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chess > .chess__item:nth-child(even) { padding-top: 48px; }
}

@media (min-width: 768px) {
  .shots > .shot { grid-column: span 2; }
  .plans > .plan { grid-column: span 3; }
  .proto__legend { grid-template-columns: 1fr 1fr; }

  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); padding-top: 28px; }
  .steps-line { left: 0; right: 0; top: var(--steps-top, 0px); bottom: auto; width: auto; height: 1px; }
  .steps-line__fill { transform: scaleX(0); }
  .is-visible .steps-line__fill { transform: scaleX(1); }
  .step { padding-left: 0; padding-top: 0; }
  .step__dot { top: -33px; }

  .dots {
    display: block;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    mix-blend-mode: difference;
  }
  .dots__list { display: grid; gap: 2px; }
  .dot {
    display: grid;
    place-items: center;
    width: 20px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
  }
  .dot::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FFFFFF;
    opacity: .35;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .dot:hover::before { opacity: .7; }
  .dot[aria-current="true"]::before { opacity: 1; transform: scale(1.5); }
}

@media (min-width: 1024px) {
  /* обложка: текст в колонках 1-3, фото на правую половину до края */
  .cover { grid-template-rows: 1fr auto; row-gap: 0; }
  .cover__head { grid-column: 1 / 4; grid-row: 1; padding-top: var(--gutter); }
  .cover__desc { grid-column: 1 / 4; grid-row: 2; padding-bottom: var(--gutter); }
  .cover__photo { grid-column: 4 / 7; grid-row: 1 / 3; height: calc(100svh - 2 * var(--gutter)); align-self: center; }

  /* 4 в ряд шахматкой: границы совпадают с сеткой (по 1,5 колонки), чётные ниже */
  .chess { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chess > .chess__item:nth-child(even) { padding-top: clamp(80px, 18vh, 200px); }
  .chess > .chess__item:nth-child(odd) { padding-bottom: clamp(80px, 18vh, 200px); }

  .alert__text { grid-column: 1 / 4; }
  .devices { grid-column: 4 / 7; }

  .issues > .issue { grid-column: span 2; }
  .products > .product { grid-column: span 1; }
  .head-row h2 { grid-column: 1 / 4; }
  .head-row .lead { grid-column: 4 / 7; margin-top: 0; }

  .showcase__list > .feat { grid-column: span 2; }
  .body-intro .lead { grid-column: 1 / 4; }

  .proto__text { grid-column: 1 / 4; }
  .wire { grid-column: 4 / 7; }

  .needs > .need { grid-column: span 2; }
  .pay__text { max-width: none; width: calc((100% - 5 * var(--gap)) / 6 * 4 + 3 * var(--gap)); }
  .contacts li { grid-template-columns: calc((100% - 5 * var(--gap)) / 6 * 2 + var(--gap)) 1fr; }
}

/* невысокие экраны */
@media (min-width: 768px) and (max-height: 800px) {
  h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
  .issues { row-gap: 18px; }
  .issue p { font-size: 0.875rem; }
  .issue .proof { font-size: 0.75rem; }
  .shot img { height: 40svh; }
  .plan { padding: 24px; }
  .alert__text > p:not(.label):not(.source) { font-size: 0.9375rem; }
  .stats th, .stats td { padding-top: 3px; padding-bottom: 3px; }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .split .ch, .js .scrub .ch, .js .scrub .wd { opacity: 1; transform: none; }
  .js .curtain::after { display: none; }
  .js .curtain img { transform: none !important; }
}


/* ==========================================================================
   v6: бенто «Единая витрина», схема структуры, длинные секции
   ========================================================================== */
.js .reveal.in { opacity: 1; transform: none; }
[data-par] { will-change: transform; }

/* ---------- Бенто ---------- */
.bento { gap: var(--gap); }
.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--soft);
  min-width: 0;
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile .icon { margin-bottom: 10px; }
.tile p { font-size: 0.875rem; color: var(--muted); }
.tile--beige { background: var(--soft-2); }
.tile--dark { background: var(--dark); color: var(--on-dark); }
.tile--dark p { color: var(--on-dark-muted); }
.viz { margin-top: auto; padding-top: 18px; font-size: 0.75rem; }

.tile--wide { display: grid; gap: 20px; }
.viz--hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; padding: 14px; border-radius: 12px; background: var(--soft); }
.viz-hero__text { display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.viz-hero__photo { border-radius: 10px; min-height: 120px; background: url(img/alina.webp) center 25% / cover; }
.l { display: block; height: 6px; width: 100%; border-radius: 3px; background: var(--soft-2); }
.l--xl { height: 14px; background: var(--text); }
.l--lg { height: 10px; background: #BDB6A8; }
.l--60 { width: 60%; } .l--80 { width: 80%; } .l--70 { width: 70%; } .l--50 { width: 50%; } .l--40 { width: 40%; }
.l--light { background: #555; }
.pill-btn { display: inline-block; align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 500; font-size: 0.6875rem; white-space: nowrap; }

.viz--table { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 4px; }
.viz--table span { color: var(--muted); padding: 4px 0; }
.viz--table i { height: 22px; border-radius: 5px; background: var(--soft-2); }
.viz--table i:nth-of-type(3n+1) { background: var(--text); }
.viz--chips { display: flex; flex-wrap: wrap; gap: 6px; }
.viz--chips span { padding: 5px 10px; border-radius: 999px; background: var(--soft-2); }
.viz--faq { display: grid; gap: 6px; }
.viz--faq span { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 8px; background: #1A1A1A; }
.viz--faq span::after { content: "+"; color: var(--on-dark-muted); }
.viz--style { display: flex; align-items: center; gap: 10px; }
.viz--style .aa { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; margin-right: 4px; }
.sw { width: 28px; height: 28px; border-radius: 50%; }
.sw--1 { background: var(--text); } .sw--2 { background: var(--bg); } .sw--3 { background: var(--beige); }
.viz--style .pill-btn { margin: 0 0 0 auto; }
.viz--chat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.msg { padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--soft); max-width: 85%; }
.msg--me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--text); color: var(--bg); }
.viz--fix { display: grid; gap: 6px; font-size: 0.8125rem; }
.viz--fix li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.viz--fix li::before { content: ""; width: 14px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); flex: none; }
.viz--fix s { color: var(--muted); }

/* сетка бенто */
.bento > .tile { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .bento > .tile { grid-column: span 3; }
  .bento > .tile--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento > .tile { grid-column: span 2; }
  .bento > .tile--wide { grid-column: span 4; grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  .bento > .tile--wide .viz { margin-top: 0; padding-top: 0; }
  .bento > .tile--half { grid-column: span 3; }
  .tile--half { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-content: start; }
  .tile--half .icon, .tile--half h3, .tile--half p { grid-column: 1; }
  .tile--half .viz { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0; align-self: center; }
}

/* ---------- Схема структуры ---------- */
.slide--long { display: block; }
.schema { row-gap: 32px; align-items: start; }
.schema__head .lead { margin-top: 16px; font-size: 1rem; }
.schema__list { display: grid; gap: 14px; }
.schema__row {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--soft);
}
.mock {
  display: flex;
  gap: 10px;
  min-height: 120px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
}
.mock--dark { background: var(--text); }
.m-col { flex: 1; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.m-btn { display: block; width: 80px; height: 16px; border-radius: 999px; background: var(--text); margin-top: 4px; }
.m-btn--light { background: var(--bg); }
.m-tag { display: block; width: 50px; height: 8px; border-radius: 4px; background: var(--beige); }
.m-photo { flex: 1; min-height: 92px; border-radius: 8px; background: var(--soft-2); }
.m-photo--tall { flex: .8; background: url(img/alina.webp) center 25% / cover; }
.m-circle { width: 76px; height: 76px; flex: none; align-self: center; border-radius: 50%; background: url(img/alina.webp) center 25% / cover; }
.m-nums { display: flex; gap: 6px; margin-top: 4px; }
.m-nums i { flex: 1; height: 22px; border-radius: 5px; background: var(--soft-2); }
.m-table { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-content: center; }
.m-table i { height: 18px; border-radius: 4px; background: var(--soft-2); }
.m-table i:nth-child(-n+4) { background: #BDB6A8; }
.m-cards { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: center; }
.m-cards i { aspect-ratio: 3 / 4; border-radius: 6px; background: var(--soft-2); }
.m-cards--3 { grid-template-columns: repeat(3, 1fr); }
.m-cards--3 i { aspect-ratio: 4 / 3; }
.m-stack { position: relative; width: 110px; flex: none; }
.m-stack i { position: absolute; top: 50%; width: 52px; height: 70px; border-radius: 6px; background: var(--soft-2); transform: translateY(-50%); }
.m-stack i:nth-child(1) { left: 0; transform: translateY(-50%) rotate(-8deg); }
.m-stack i:nth-child(2) { left: 28px; background: #BDB6A8; }
.m-stack i:nth-child(3) { left: 56px; transform: translateY(-50%) rotate(8deg); background: var(--text); }
.m-row { display: block; height: 18px; border-radius: 5px; background: var(--soft-2); }
.m-col--full { gap: 6px; }

.schema__note { position: relative; }
.schema__name { font-weight: 600; font-size: 1rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.schema__name::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--text);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .9s var(--ease) .3s;
}
.in .schema__name::before { transform: scaleX(1); }
.schema dl { display: grid; grid-template-columns: 104px 1fr; gap: 6px 12px; margin: 0; font-size: 0.875rem; }
.schema dt { color: var(--muted); font-size: 0.75rem; padding-top: 2px; }
.schema dd { margin: 0; }
.schema__h { font-family: var(--font-head); font-size: 1.375rem; line-height: 1.1; }

@media (min-width: 768px) {
  .schema__row { grid-template-columns: 1fr 1fr; align-items: center; padding: 20px; gap: 24px; }
}
@media (min-width: 1024px) {
  .schema__head { grid-column: 1 / 3; position: sticky; top: var(--gutter); }
  .schema__list { grid-column: 3 / 7; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .slide--long.is-visible .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
}

/* ==========================================================================
   v7: ритм отступов и мобильная версия
   ========================================================================== */
:root {
  --section: clamp(88px, 11vw, 160px);   /* отступ между секциями */
  --head-gap: clamp(32px, 4.5vw, 64px);  /* от заголовка до контента */
}

/* обычные секции по высоте контента, отступ сверху задаёт ритм */
.slide { min-height: 0; padding: var(--section) 0 0; }
.frame { min-height: 0; justify-content: flex-start; gap: var(--head-gap); }
.body { margin-top: 0; }
.body-intro { margin-bottom: clamp(24px, 3vw, 40px); }
.schema { row-gap: var(--head-gap); }

/* на всю высоту экрана: обложка, оплата, финал */
.slide.slide--cover { min-height: 100vh; min-height: 100svh; padding: 0; }
.slide--pay .frame { min-height: 70svh; justify-content: space-between; }
.slide--final { min-height: 100vh; min-height: 100svh; margin-top: var(--section); padding: var(--section) 0; }
.slide--final .frame { min-height: calc(100svh - 2 * var(--section)); justify-content: space-between; }

.swipe-hint { display: none; }

@media (max-width: 767px) {
  /* обложка: заголовок, фото на остаток экрана, подпись */
  .cover { grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 16px; }
  .cover__head { grid-row: 1; padding-top: 28px; }
  .cover__photo { grid-row: 2; height: auto; min-height: 300px; }
  .cover__desc { grid-row: 3; padding-bottom: 24px; }
  .cover__desc .lead { font-size: 1rem; }

  h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .lead { font-size: 1rem; }

  /* карусели со свайпом: продукты и скрины */
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    color: var(--muted);
  }
  .swipe-hint::after { content: ""; width: 28px; height: 1px; background: currentColor; }
  .products, .shots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .products::-webkit-scrollbar, .shots::-webkit-scrollbar { display: none; }
  .products > .product { flex: 0 0 62%; scroll-snap-align: start; }
  .shots > .shot { flex: 0 0 72%; scroll-snap-align: start; }
  .shots > .shot--left { flex-basis: 88%; }
  .shot img { height: 400px; }

  /* проблемы: компактнее */
  .issues { row-gap: 24px; }
  .issue h3 { font-size: 1.0625rem; }

  /* схема: компактные карточки */
  .schema__row { padding: 12px; gap: 14px; }
  .mock { min-height: 92px; padding: 12px; }
  .schema dl { grid-template-columns: 92px 1fr; font-size: 0.8125rem; }
  .schema__h { font-size: 1.25rem; }

  /* витрина и тарифы */
  .tile { padding: 20px; }
  .plan { padding: 24px; }

  /* контакты в столбик */
  .contacts li { grid-template-columns: 1fr; gap: 2px; }
  .contacts a { font-size: 1.375rem; }
}

/* v8: без черточек у подзаголовков, линия этапов от первого до последнего шага по скроллу */
.schema__name::before, .swipe-hint::after { display: none; }
.steps-line { transition: none; }
.steps-line__fill { transition: none !important; }
.is-visible .step__dot {
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--soft-2);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
  transition-delay: 0s;
}
.step.on .step__dot { background: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }

/* v9: прорисовка иконок по реальной длине линий (надёжно и в Safari) */
.icon { stroke-dasharray: none; stroke-dashoffset: 0; }
.js .icon.is-drawn > * {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.4s var(--ease);
  transition-delay: calc(.3s + var(--k, 0) * .12s);
}
.js .is-visible .icon.is-drawn > *, .js .in .icon.is-drawn > * { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .icon.is-drawn > * { stroke-dashoffset: 0 !important; }
}
.icons-prep .icon.is-drawn > * { transition: none !important; }

/* v10: финал всегда чёрный, переход мягким градиентом сверху, без полосы и серой середины */
.slide--final {
  --fin-bg: var(--dark);
  --fin-fg: var(--on-dark);
  --fin-muted: var(--on-dark-muted);
  margin-top: 0;
  padding: 45vh 0 var(--section);
  padding-top: 45svh;
  background: linear-gradient(180deg, var(--bg) 0, var(--dark) 40vh, var(--dark) 100%);
  background: linear-gradient(180deg, var(--bg) 0, var(--dark) 40svh, var(--dark) 100%);
  color: var(--on-dark);
}
.slide--final .frame { min-height: calc(100svh - var(--section)); }
