/* ══════════════════════════════════════════════════════════════════════
   Лендинг «Витрины» (L1). Палитра и кнопки — в landing.css (общие с анкетой
   и оплатой), здесь только главная.

   Мысль: спокойная светлая страница, один акцент пиона, тёмные секции для
   контраста, крупная типографика, живой телефон. Движение — только
   transform и opacity; начальное «скрытое» состояние висит на признаках,
   которые ставит скрипт (data-reveal-ready, data-scene-ready, data-how-ready,
   is-slides), поэтому без скрипта страница видна целиком.
   Контраст: белый на акценте 6.4, текст 16.3, приглушённый 6.0,
   белый на тёмном (#231a1e) 17, приглушённый белый (78 %) ≈ 11, розовый #f2c9d8 на тёмном 11.4.
   ══════════════════════════════════════════════════════════════════════ */

.lp-home {
  --page-max: 1240px;
  --nav-h: 56px;
  --dark: #231a1e;
  --pink: #f2c9d8;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: var(--lp-display, "Fixel Display", "Fixel Text", ui-sans-serif, system-ui, sans-serif);
  --font-text: var(--lp-text, "Fixel Text", ui-sans-serif, system-ui, "Segoe UI", sans-serif);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.45;
  scrollbar-color: #c9b9bf var(--bg);
}
html:has(.lp-home) {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html:has(.lp-home) {
    scroll-behavior: auto;
  }
}
.lp-home :focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.lp-home .wrap {
  width: min(100% - 2 * var(--page-gutter, 16px), var(--page-max));
  margin-inline: auto;
}
.lp-home .ico {
  width: 20px;
  height: 20px;
  flex: none;
}
.lp-home section {
  position: relative;
}
.nobr {
  white-space: nowrap;
}

/* ─── Типографика ─── */

.h2 {
  max-width: 18em;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.1rem + 3.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h2 .soft {
  color: var(--ink-soft);
}
.h2--dark {
  color: #fff;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--green);
}
.eyebrow--dark {
  color: var(--pink);
}
.lead {
  max-width: 34em;
  margin: 0 0 28px;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-soft);
}
.lead--dark {
  color: rgba(255, 255, 255, 0.78);
}

/* ─── Шапка ─── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 249, 0.74);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease);
}
.nav[data-scrolled] {
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 2 * var(--page-gutter, 16px), var(--page-max));
  height: var(--nav-h);
  margin-inline: auto;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav__links {
  display: none;
  gap: 28px;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 200ms;
}
.nav__links a:hover {
  color: var(--ink);
}
.nav__cta {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
}
@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
}

/* ─── Телефон ─── */

.device {
  position: relative;
  flex: none;
  width: min(100%, 290px);
  aspect-ratio: 390 / 844;
  padding: 9px;
  border-radius: 46px;
  background: #1b1316;
  box-shadow:
    0 0 0 1.5px #3b2f35 inset,
    0 50px 70px -34px rgba(35, 26, 30, 0.55),
    0 16px 28px -16px rgba(35, 26, 30, 0.4);
}
.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: #fff;
}
.device__screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: opacity 600ms var(--ease);
}
.is-slides > img {
  opacity: 0;
}
.is-slides > img[data-on] {
  opacity: 1;
}
.device--dark {
  background: #0e0a0c;
  box-shadow:
    0 0 0 1.5px #4a3b42 inset,
    0 50px 80px -30px rgba(0, 0, 0, 0.7);
}
.device--sm {
  width: min(100%, 220px);
  border-radius: 38px;
  padding: 7px;
}
.device--sm .device__screen {
  border-radius: 31px;
}

/* ─── Первый экран ─── */

.hero {
  padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 8vw, 120px);
  overflow: clip;
}
.hero__inner {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}
.hero__inner > * {
  min-width: 0;
}
.hero__title {
  max-width: 11em;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1rem + 6vw, 5rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 28em;
  margin: 0 0 32px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__actions .btn {
  border-radius: 999px;
}
.hero__hint {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}
.hero__glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(176, 40, 90, 0.16), rgba(176, 40, 90, 0.05) 60%, transparent 72%);
  pointer-events: none;
}
.hero__stack {
  position: relative;
  display: grid;
  justify-items: center;
}
.hero__shots {
  width: min(78vw, 300px);
}
.hv-demo {
  display: none;
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}
@media (min-width: 1024px) {
  .has-demo .hv-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .has-demo .hero__shots {
    display: none;
  }
}

/* Демо во фрейме (разметку даёт сервер) */
.hv-frame {
  flex: none;
  padding: 9px;
  border-radius: 46px;
  background: #1b1316;
  box-shadow:
    0 0 0 1.5px #3b2f35 inset,
    0 50px 70px -34px rgba(35, 26, 30, 0.55),
    0 16px 28px -16px rgba(35, 26, 30, 0.4);
}
.hv-frame__screen {
  position: relative;
  width: 296px;
  height: 616px;
  overflow: hidden;
  border-radius: 37px;
  background: #fff;
}
.hv-frame iframe {
  display: block;
  width: 390px;
  height: 812px;
  border: 0;
  transform: scale(0.759);
  transform-origin: 0 0;
}
.hv-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 150px;
  gap: 10px;
  align-content: start;
  padding: 160px 14px 0;
  background: linear-gradient(180deg, #f3e6ea 0 120px, #fbfaf9 120px);
}
.hv-skeleton i {
  border-radius: 16px;
  background: #ece3e6;
}
.hv-skeleton i:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-top: -130px;
  height: 100px;
  background: #e0d2d8;
}
.hv-qr {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 300px);
  margin: 0;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.hv-qr img {
  flex: none;
  width: 72px;
  height: 72px;
}
.hv-qr figcaption {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* Лёгкий параллакс телефона: CSS-таймлайн, где он есть, иначе одна переменная от скрипта */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__stack[data-parallax] {
      animation: lp-lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 700px;
    }
  }
  html[data-par-js] .hero__stack[data-parallax] {
    transform: translate3d(0, calc(var(--sy, 0px) * -0.07), 0);
  }
}
@keyframes lp-lift {
  to {
    transform: translate3d(0, -48px, 0);
  }
}

/* ─── Боль → решение: сцена по прокрутке ─── */

.problem {
  background: var(--bg-deep);
  border-radius: clamp(28px, 4vw, 48px);
}
.problem__track {
  --p: 0;
  --out: clamp(0, calc((var(--p) - 0.12) * 2.6), 1);
  --gone: clamp(0, calc((var(--p) - 0.4) * 3), 1);
  --in: clamp(0, calc((var(--p) - 0.5) * 3), 1);
  padding: clamp(56px, 8vw, 112px) 0;
}
.problem__stage {
  display: grid;
  gap: 36px;
}
.problem__head .h2 {
  margin-bottom: 0;
  max-width: 16em;
}
.problem__scene {
  display: grid;
  gap: 40px;
  width: min(100% - 2 * var(--page-gutter, 16px), var(--page-max));
  margin-inline: auto;
}
.problem__was,
.problem__now {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
}
.tag {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e6dedb;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b3f45;
}
.tag--accent {
  background: var(--accent);
  color: #fff;
}
.chat {
  display: grid;
  gap: 8px;
  width: min(100%, 340px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.chat__b {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 1.02rem;
  line-height: 1.3;
  box-shadow: var(--shadow-sm);
}
.chat__b--in {
  justify-self: start;
  background: #fff;
  border-bottom-left-radius: 6px;
}
.chat__b--out {
  justify-self: end;
  background: #e9f5e4;
  color: #1d3a18;
  border-bottom-right-radius: 6px;
}
.stories {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.stories i {
  width: 28px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(160deg, #e8c9d4, #d9b4c2);
}
.stories span {
  margin-left: 8px;
}
.gains {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gains li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .problem__scene {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Сцена включается скриптом (data-scene-ready на <html>): липкий экран, прогресс --p */
html[data-scene-ready] .problem__track {
  height: 230vh;
  padding: 0;
}
html[data-scene-ready] .problem__stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  align-content: center;
  gap: 20px;
  overflow: hidden;
}
html[data-scene-ready] .problem__head .h2 {
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem);
}
html[data-scene-ready] .problem__head .soft {
  opacity: calc(0.25 + 0.75 * var(--in));
}
html[data-scene-ready] .problem__scene {
  position: relative;
  grid-template-columns: 1fr;
  height: min(64svh, 540px);
  gap: 0;
}
html[data-scene-ready] .problem__was,
html[data-scene-ready] .problem__now {
  position: absolute;
  inset: 0;
  align-content: center;
}
html[data-scene-ready] .problem__was {
  opacity: calc(1 - var(--gone));
  will-change: opacity;
}
html[data-scene-ready] .problem__now {
  opacity: var(--in);
  transform: translate3d(0, calc((1 - var(--in)) * 40px), 0) scale(calc(0.92 + 0.08 * var(--in)));
  will-change: transform, opacity;
}
html[data-scene-ready] .problem__now .device--sm {
  width: auto;
  height: min(34svh, 400px);
}
html[data-scene-ready] .problem__now .gains li {
  padding: 6px 12px;
  font-size: 0.85rem;
}
@media (min-width: 1024px) {
  html[data-scene-ready] .chat__b {
    --k: 2.4;
  }
  html[data-scene-ready] .chat {
    width: 400px;
  }
  html[data-scene-ready] .chat__b {
    font-size: 1.15rem;
  }
  html[data-scene-ready] .problem__now .device--sm {
    height: min(52svh, 500px);
  }
}
html[data-scene-ready] .problem__now .gains {
  opacity: var(--in);
}
html[data-scene-ready] .chat__b {
  --tx: 0px;
  --ty: 0px;
  --r: 0deg;
  --k: 1;
  transform: translate3d(calc(var(--out) * var(--tx) * var(--k)), calc(var(--out) * var(--ty) * var(--k)), 0) rotate(calc(var(--out) * var(--r))) scale(calc(1 - 0.12 * var(--out)));
  will-change: transform;
}
html[data-scene-ready] .chat__b:nth-child(1) { --tx: -120px; --ty: -60px; --r: -14deg; }
html[data-scene-ready] .chat__b:nth-child(2) { --tx: 130px; --ty: -90px; --r: 11deg; }
html[data-scene-ready] .chat__b:nth-child(3) { --tx: -170px; --ty: 20px; --r: 9deg; }
html[data-scene-ready] .chat__b:nth-child(4) { --tx: 160px; --ty: 50px; --r: -12deg; }
html[data-scene-ready] .chat__b:nth-child(5) { --tx: -90px; --ty: 120px; --r: -8deg; }
html[data-scene-ready] .chat__b:nth-child(6) { --tx: 110px; --ty: 130px; --r: 15deg; }
html[data-scene-ready] .stories {
  opacity: calc(1 - var(--out));
}

/* ─── Как это работает ─── */

.how {
  padding: clamp(72px, 9vw, 140px) 0 clamp(48px, 6vw, 96px);
}
.how__grid {
  display: grid;
  gap: 36px;
  margin-top: 36px;
}
.how__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}
.how__step {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 20px 20px 20px 68px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  counter-increment: how;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.how__step::before {
  content: counter(how);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.how__step b {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.how__step span {
  color: var(--ink-soft);
}
.how__devices {
  display: flex;
  gap: 16px;
  margin-inline: calc(var(--page-gutter, 16px) * -1);
  padding: 8px var(--page-gutter, 16px) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.how__devices::-webkit-scrollbar {
  display: none;
}
.how__dev {
  scroll-snap-align: center;
  width: 250px;
}
.how__after {
  max-width: 34em;
  margin: 28px 0 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.how__after b {
  color: var(--ink);
}
.ig {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 44px 16px 16px;
  font-size: 0.85rem;
}
.ig__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ig__head b {
  display: block;
  font-size: 0.95rem;
}
.ig__head span:not(.ig__ava) {
  color: var(--ink-soft);
}
.ig__ava {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8a5bd, #b0285a);
}
.ig__bio {
  margin: 0;
  line-height: 1.35;
}
.ig__link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6dfe7;
  color: #7a1b40;
  font-weight: 600;
  overflow-wrap: anywhere;
  animation: none;
}
.ig__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ig__btns span {
  padding: 8px;
  border-radius: 8px;
  background: #efebe9;
  text-align: center;
  font-weight: 600;
}
.ig__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.ig__grid i {
  aspect-ratio: 1;
  background: linear-gradient(150deg, #f1d3dd, #e3bccb);
}
.ig__grid i:nth-child(3n) {
  background: linear-gradient(150deg, #e4d6c2, #d4c2a6);
}
.wa {
  display: flex;
  flex-direction: column;
  background: #efe7dd;
  padding-top: 38px;
}
.wa__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  background: #1f5c4c;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.wa__bar i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #cfe3da;
}
.wa__bar small {
  margin-left: auto;
  opacity: 0.85;
  font-weight: 400;
}
.wa__msg {
  margin: 12px 10px;
  padding: 10px 10px 6px;
  border-radius: 12px 12px 4px 12px;
  background: #dcf5c9;
  color: #1c2b16;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.wa__text {
  margin: 0;
  font-family: var(--font-text);
  font-size: 0.64rem;
  line-height: 1.38;
  white-space: pre-wrap;
}
.wa__time {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-size: 0.62rem;
  color: #4d5e46;
}

@media (min-width: 1024px) {
  .how__grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 72px;
    align-items: start;
  }
  .how__devices {
    order: 2;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    overflow: visible;
    align-self: start;
  }
  .how__dev {
    width: 100%;
    max-width: 260px;
  }
  /* Скрипт включает липкую сцену: шаги листаются, телефон остаётся на месте и меняет кадр */
  .how__grid[data-how-ready] {
    align-items: start;
  }
  .how__grid[data-how-ready] .how__steps {
    gap: 0;
    order: 1;
  }
  .how__grid[data-how-ready] .how__step {
    display: grid;
    align-content: center;
    min-height: 58vh;
    background: transparent;
    box-shadow: none;
    opacity: 0.35;
  }
  .how__grid[data-how-ready] .how__step::before {
    top: calc(50% - 18px);
  }
  .how__grid[data-how-ready] .how__step b {
    font-size: 1.6rem;
  }
  .how__grid[data-how-ready] .how__step span {
    font-size: 1.15rem;
    max-width: 24em;
  }
  .how__grid[data-how-ready][data-step="1"] [data-how="1"],
  .how__grid[data-how-ready][data-step="2"] [data-how="2"],
  .how__grid[data-how-ready][data-step="3"] [data-how="3"] {
    opacity: 1;
  }
  .how__grid[data-how-ready] .how__devices {
    display: block;
    height: 560px;
    position: sticky;
    top: calc(var(--nav-h) + 6vh);
  }
  .how__grid[data-how-ready] .how__dev {
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -130px;
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.96);
    transition: opacity 500ms var(--ease), transform 600ms var(--ease);
  }
  .how__grid[data-how-ready][data-step="1"] [data-panel="1"],
  .how__grid[data-how-ready][data-step="2"] [data-panel="2"],
  .how__grid[data-how-ready][data-step="3"] [data-panel="3"] {
    opacity: 1;
    transform: none;
  }
}

/* ─── Возможности ─── */

.features {
  padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 9vw, 140px);
}
.bento {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tile h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
}
.tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
.tile__text {
  min-width: 0;
}
.tile--dark {
  background: var(--dark);
  color: #fff;
}
.tile--dark p {
  color: rgba(255, 255, 255, 0.78);
}
.tile--photo {
  background: linear-gradient(180deg, #f6dfe7, #fbeef2);
  padding-bottom: 0;
}
.device--bleed {
  width: 230px;
  margin: 0 auto -90px;
}
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-deep);
}
.seg span {
  flex: 1;
  padding: 10px 6px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.seg .is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-deep);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.chips .is-on {
  background: var(--accent);
  color: #fff;
}
.count {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}
.count b {
  color: var(--pink);
  font-variant-numeric: tabular-nums;
}
.url {
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--bg-deep);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.url span {
  color: var(--green);
}
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile--lg,
  .tile--wide {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(230px, auto);
  }
  .tile {
    grid-column: span 2;
  }
  .tile--lg {
    grid-row: span 2;
    grid-column: span 2;
  }
  .tile--wide {
    grid-column: span 4;
  }
  .bento .tile--wide:last-child {
    grid-column: span 2;
  }
  .device--bleed {
    width: 250px;
    margin-bottom: -110px;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile {
    transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
  }
  .tile:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: var(--shadow-md);
  }
}

/* ─── Админка в телефоне ─── */

.admin {
  padding: clamp(64px, 9vw, 130px) 0;
  background: var(--dark);
  color: #fff;
  border-radius: clamp(28px, 4vw, 48px);
}
.admin__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.admin__grid > * {
  min-width: 0;
}
.admin__tabs {
  display: grid;
  gap: 8px;
}
.admin__tab {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), color 300ms;
}
.admin__tab b {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}
.admin__tab span {
  font-size: 0.92rem;
}
.admin__tab[aria-selected="true"] {
  border-color: rgba(242, 201, 216, 0.55);
  background: rgba(255, 255, 255, 0.07);
}
.admin__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.admin__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}
.admin__grid[data-playing] .admin__tab[aria-selected="true"]::after {
  animation: lp-fill var(--slide-ms, 3600ms) linear both;
}
.admin__grid[data-paused] .admin__tab[aria-selected="true"]::after {
  animation-play-state: paused;
}
@keyframes lp-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.admin__visual {
  display: grid;
  place-items: center;
}
.admin__visual .device {
  width: min(78vw, 300px);
}
.admin .lp-home :focus-visible,
.admin :focus-visible {
  outline-color: var(--pink);
}
@media (min-width: 900px) {
  .admin__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 72px;
  }
  .admin__visual {
    order: 2;
  }
}

/* ─── Куда поставить ссылку ─── */

.places {
  padding: clamp(72px, 9vw, 130px) 0 clamp(40px, 5vw, 72px);
}
.places__list {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.places__list li {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.places__list b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.places__list span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.places__note {
  max-width: 36em;
  margin: 24px 0 0;
  color: var(--ink-soft);
}
@media (min-width: 640px) {
  .places__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .places__list {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ─── О нас (блок оператора, разметка с сервера) ─── */

.about {
  padding: clamp(40px, 6vw, 96px) 0;
  font-family: var(--about-text);
}
.about__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.about__inner > * {
  min-width: 0;
}
.about__title {
  font-family: var(--about-display);
  font-weight: var(--about-title-weight);
  letter-spacing: var(--about-title-spacing);
}
.about__text {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  max-width: 38em;
}
.about__line {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px;
  margin: 36px 0 0;
}
.about__stat dt {
  margin: 0;
}
.about__stat dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.35;
}
.about__num {
  display: block;
  font-family: var(--about-display);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  font-weight: var(--about-title-weight);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.about__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}
@media (min-width: 900px) {
  .about--photo .about__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 72px;
  }
}

/* ─── Тарифы (карточки собирает сервер) ─── */

.pricing {
  padding: clamp(64px, 8vw, 120px) 0;
}
.trial-pill {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f6dfe7;
  color: #7a1b40;
  font-size: 0.95rem;
  font-weight: 600;
}
.cur-switch {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 2px;
  margin: 0 0 24px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-deep);
}
.cur-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  transition: background 250ms var(--ease), color 250ms;
}
.cur-switch__btn:hover {
  color: var(--ink);
}
.cur-switch__btn[aria-current="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* без minmax колонка раздувалась до самого длинного слова: на 320px полоса прокрутки */
  gap: 16px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plan__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.plan__tagline {
  margin: 0;
  color: var(--ink-soft);
}
.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}
.plan__price b {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.plan__price span {
  color: var(--ink-soft);
}
.plan__features {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
}
.plan__features li {
  position: relative;
  padding-left: 28px;
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.plan .btn {
  margin-top: auto;
  border-radius: 999px;
}
.plan--featured {
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.plan--featured .plan__tagline,
.plan--featured .plan__price span {
  color: rgba(255, 255, 255, 0.78);
}
.plan--featured .plan__features li::before {
  border-color: var(--pink);
}
.plan--featured :focus-visible {
  outline-color: var(--pink);
}
.plan__ribbon {
  display: none;
}
.plans__note {
  max-width: 44em;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (min-width: 768px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Несколько магазинов ─── */

.net {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 28px;
  background: var(--bg-deep);
}
.net > * {
  min-width: 0;
}
.net__text {
  display: grid;
  gap: 14px;
  align-content: start;
}
.net__text .eyebrow {
  margin: 0;
}
.net__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.net__lead {
  margin: 0;
  color: var(--ink-soft);
}
.net__prices,
.net__facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.net__prices {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.net__price {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.net__price > span,
.net__price small {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.net__price b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.net__price b span {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.net__facts li {
  position: relative;
  padding-left: 28px;
}
.net__facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.net .btn {
  justify-self: start;
  border-radius: 999px;
}
.net__scheme {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: center;
  padding: 24px 16px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.net__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-quiet);
  color: var(--accent-strong);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.net__link .ico {
  flex: none;
  width: 18px;
  height: 18px;
}
.net__pick {
  position: relative;
  margin: 0;
  padding: 22px 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.net__pick::before,
.net__shops::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 18px;
  background: var(--line-strong);
}
.net__pick::before {
  top: 0;
}
.net__shops {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
}
.net__shops::before {
  top: 0;
}
.net__shop {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
}
.net__shop-ico {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-quiet);
  color: var(--accent-strong);
}
.net__shop-ico .ico {
  width: 20px;
  height: 20px;
}
.net__shop small {
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .net {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .net__shops {
    grid-template-columns: 1fr 1fr;
  }
  .net__shop {
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 6px;
  }
  .net__shop-ico {
    grid-row: auto;
  }
}

/* ─── Вопросы ─── */

.faq {
  padding: clamp(48px, 6vw, 96px) 0 clamp(72px, 9vw, 130px);
}
.faq__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
.faq__grid > * {
  min-width: 0;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 40px 14px 0;
  font-family: var(--font-text);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
  transition: transform 300ms var(--ease);
}
.faq__item summary::after {
  transform: rotate(90deg);
}
.faq__item[open] summary::after {
  transform: rotate(0deg);
}
.faq__item p {
  max-width: 38em;
  margin: 0 0 18px;
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .faq__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
  }
  .faq__head {
    position: sticky;
    top: 96px;
  }
}

/* ─── Финал и подвал ─── */

.final {
  padding: clamp(72px, 10vw, 150px) 0;
  background: var(--dark);
  color: #fff;
  text-align: center;
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
}
.final h2 {
  max-width: 14em;
  margin: 0 auto 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1rem + 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.final p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
}
.final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.final .btn {
  border-radius: 999px;
}
.btn-ghost-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.4);
}
.btn-ghost-dark:hover:not(:disabled) {
  --btn-bg: rgba(255, 255, 255, 0.1);
}
.final .final__hint {
  margin: 20px 0 0;
  font-size: 0.95rem;
}
.final :focus-visible {
  outline-color: var(--pink);
}
.foot {
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
}
.foot__inner {
  display: grid;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.foot__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}
.foot__links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.foot__links a:not(.btn):hover {
  color: #fff;
  text-decoration: underline;
}
.foot__dev {
  margin: 0;
  font-size: 0.9rem;
}
.foot__dev a {
  color: #fff;
  font-weight: 600;
}
.foot :focus-visible {
  outline-color: var(--pink);
}
.foot__links--useful {
  font-size: 0.92rem;
}

.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  padding: 10px var(--page-gutter, 16px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 250, 249, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(0);
  transition: transform 320ms var(--ease), visibility 0s;
}
.sticky-cta[data-visible="false"] {
  visibility: hidden;
  transform: translateY(110%);
  transition: transform 260ms var(--ease), visibility 0s 260ms;
}
.sticky-cta .btn {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  font-size: 1.05rem;
}
/* Кнопка уже есть в шапке на всех ширинах: нижняя панель только перекрывала бы содержание. */
.sticky-cta {
  display: none;
}

/* ─── Окно демо на телефоне ─── */

html[data-modal] {
  overflow: hidden;
}
.demo-dialog {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.demo-dialog[open] {
  display: flex;
  flex-direction: column;
}
.demo-dialog::backdrop {
  background: rgba(35, 26, 30, 0.6);
}
.demo-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  font-weight: 600;
}
.demo-dialog__body {
  flex: 1;
  min-height: 0;
  background: #fff;
}
.demo-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Появление блоков (fx.js): без data-reveal-ready страница видна целиком ─── */

@media (prefers-reduced-motion: no-preference) {
  html[data-reveal-ready] [data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  html[data-reveal-ready] [data-reveal] {
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  html[data-reveal-ready] .hero__copy [data-reveal] {
    transition-duration: 800ms;
  }
  [data-shine] .btn-tg__shine::before {
    animation-play-state: running;
  }
}

/* ─── Узкие экраны ─── */

@media (max-width: 389px) {
  .nav__cta {
    padding-inline: 12px;
    font-size: 0.88rem;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .device__screen > img,
  .tile,
  .how__step {
    transition: none;
  }
}

/* ─── Правки после L2 ─── */

/* Меню разделов на телефоне (кнопка видна, только когда скрипт её подключил) */
.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__menu {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.nav__menu i {
  width: 8px;
  height: 8px;
  margin: -3px 0 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 300ms var(--ease);
}
.nav[data-menu-ready] .nav__menu {
  display: inline-flex;
}
.nav[data-menu-open] .nav__menu i {
  transform: translate3d(0, 4px, 0) rotate(225deg);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
.nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 8px var(--page-gutter, 16px) 16px;
  border-radius: 0 0 24px 24px;
  background: #fbfaf9;
  box-shadow: 0 24px 40px -24px rgba(35, 26, 30, 0.35);
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: opacity 260ms var(--ease), transform 360ms var(--ease), visibility 0s 360ms;
}
.nav[data-menu-open] .nav__panel {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 260ms var(--ease), transform 360ms var(--ease), visibility 0s;
}
.nav__panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav__panel a:last-child {
  border-bottom: 0;
}
.nav__cta-more {
  display: none;
}
@media (min-width: 480px) {
  .nav__cta-more {
    display: inline;
  }
}
@media (min-width: 860px) {
  .nav__menu,
  .nav[data-menu-ready] .nav__menu,
  .nav__panel {
    display: none;
  }
}

/* Мишени нажатия ≥ 44px без изменения вида */
.foot__dev a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.faq__item p a,
.plans__note a,
.places__note a,
.plan__features a {
  position: relative;
}
.faq__item p a::before,
.plans__note a::before,
.places__note a::before,
.plan__features a::before {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

/* Три телефона «Как работает» помещаются в ряд от 640px; на телефоне лента листается, второй кадр выглядывает */
@media (min-width: 640px) and (max-width: 1023px) {
  .how__devices {
    justify-content: center;
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .how__dev {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: 230px;
  }
}

/* ─── Тарифы и сеть на телефоне (< 768px): компактно ─── */

@media (max-width: 767.98px) {
  .cur-switch {
    margin-bottom: 14px;
    padding: 3px;
  }
  .cur-switch__btn {
    min-width: 52px;
    padding: 0 14px;
    font-size: 0.95rem;
  }
  .plans[data-compact] {
    gap: 10px;
  }
  /* Скрипт включил компактный режим: плашки-переключатель + карточка выбранного тарифа. */
  .plans__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .plans__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 58px;
    padding: 8px 10px;
    border: 1.5px solid var(--line-strong);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    transition: background 200ms var(--ease), color 200ms, border-color 200ms;
  }
  .plans__tab span:first-child {
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
  }
  .plans__tab [data-money] {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .plans__tab[aria-selected="true"] {
    border-color: var(--dark);
    background: var(--dark);
    color: #fff;
  }
  .plans__tab[aria-selected="true"] span:first-child {
    color: rgba(255, 255, 255, 0.78);
  }
  .plans__tab:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
  }
  .plans[data-compact] .plan:not([data-active]) {
    display: none;
  }
  .plans[data-compact] .plan {
    gap: 8px;
    padding: 20px 20px 22px;
    border-radius: 24px;
  }
  .plans[data-compact] .plan__title {
    font-size: 1.2rem;
  }
  .plans[data-compact] .plan__tagline {
    font-size: 0.92rem;
    line-height: 1.35;
  }
  .plans[data-compact] .plan__price {
    margin: 2px 0 0;
  }
  .plans[data-compact] .plan__price b {
    font-size: 2rem;
  }
  .plans[data-compact] .plan__features {
    gap: 6px;
    margin: 4px 0 0;
    font-size: 0.95rem;
    line-height: 1.35;
  }
  .plans[data-compact] .plan[data-collapsed] .plan__features li:nth-child(n + 5) {
    display: none;
  }
  .plan__more {
    justify-self: start;
    min-height: 44px;
    margin: 0 0 4px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--accent-strong);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  .plan--featured .plan__more {
    color: #fff;
  }
  .plan__more:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
  }
  .plans[data-compact] .plan .btn {
    min-height: 48px;
  }
  .plans__note {
    margin-top: 18px;
    font-size: 0.88rem;
  }

  /* «У вас несколько магазинов?»: цены двумя плашками, схема убрана — её смысл в тексте. */
  .net {
    gap: 14px;
    margin-top: 18px;
    padding: 20px;
    border-radius: 24px;
  }
  .net__text {
    gap: 10px;
  }
  .net__title {
    font-size: 1.45rem;
  }
  .net__lead {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  .net__prices {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .net__price {
    padding: 10px 12px;
    border-radius: 14px;
  }
  .net__price b {
    font-size: 1.3rem;
  }
  .net__price small {
    font-size: 0.8rem;
    line-height: 1.25;
  }
  .net__facts {
    gap: 6px;
    font-size: 0.92rem;
  }
  .net__scheme {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plans__tab {
    transition: none;
  }
}

/* ─── Телефон-образец в сцене «было → стало» на телефоне: крупный и настоящей формы ─── */

@media (max-width: 767.98px) {
  .device--sm {
    width: clamp(220px, 62vw, 250px);
    padding: 8px;
    border-radius: 36px;
  }
  .device--sm .device__screen {
    border-radius: 28px;
  }
  /* На телефоне сцены с прокруткой нет: «Сейчас» и «С Витриной» — два обычных блока друг
     под другом. Липкий экран на невысоких экранах (383×600) сжимал телефон до 145px и
     резал заголовок; теперь размер телефона зависит от ширины экрана, а не от высоты. */
  html[data-scene-ready] .problem__track {
    height: auto;
    padding: 56px 0;
  }
  html[data-scene-ready] .problem__stage {
    position: static;
    height: auto;
    overflow: visible;
    gap: 28px;
    align-content: start;
  }
  html[data-scene-ready] .problem__head .h2 {
    font-size: 1.7rem;
  }
  html[data-scene-ready] .problem__head .soft {
    opacity: 1;
  }
  html[data-scene-ready] .problem__scene {
    height: auto;
    gap: 40px;
  }
  html[data-scene-ready] .problem__was,
  html[data-scene-ready] .problem__now {
    position: static;
    opacity: 1;
    transform: none;
    will-change: auto;
    gap: 16px;
  }
  html[data-scene-ready] .chat__b {
    transform: none;
    will-change: auto;
  }
  html[data-scene-ready] .stories,
  html[data-scene-ready] .problem__now .gains {
    opacity: 1;
  }
  html[data-scene-ready] .chat {
    width: min(100%, 320px);
  }
  html[data-scene-ready] .problem__now .device--sm,
  .problem__now .device--sm {
    width: min(76vw, 320px);
    height: auto;
    max-height: none;
    aspect-ratio: 390 / 844;
    flex: none;
  }
  html[data-scene-ready] .problem__now .gains li {
    padding: 8px 14px;
    font-size: 0.92rem;
  }
}

/* ─── Тарифы: тёмная секция с размытым фото и «стеклянными» карточками ─── */

.pricing {
  --gl-bg: rgba(22, 13, 17, 0.94); /* запасной плотный фон, если нет backdrop-filter */
  --gl-line: rgba(255, 255, 255, 0.2);
  --gl-ink: #ffffff;
  --gl-soft: rgba(255, 255, 255, 0.74);
  --gl-accent: #d98a7c;      /* терракотово-розовый: 6.7 : 1 на тёмном стекле */
  --gl-accent-ink: #20110f;  /* тёмный текст на заливке акцентом: 7+ : 1 */
  position: relative;
  isolation: isolate;
  background: #150c10 url("/img/pricing-bg-sm.webp") center / cover no-repeat;
  color: var(--gl-ink);
}
@media (min-width: 768px) {
  .pricing {
    background-image: url("/img/pricing-bg.webp");
  }
}
.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 8, 11, 0.55), rgba(14, 8, 11, 0.35) 40%, rgba(14, 8, 11, 0.7));
}
.pricing .eyebrow {
  color: var(--gl-accent);
}
.pricing .h2 {
  color: var(--gl-ink);
}
.pricing .lead,
.pricing .plans__note {
  color: var(--gl-soft);
}
.pricing .trial-pill {
  border: 1px solid var(--gl-line);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gl-ink);
}
.pricing .cur-switch {
  border: 1px solid var(--gl-line);
  background: rgba(255, 255, 255, 0.08);
}
.pricing .cur-switch__btn {
  color: var(--gl-soft);
}
.pricing .cur-switch__btn:hover {
  color: var(--gl-ink);
}
.pricing .cur-switch__btn[aria-current="true"] {
  background: var(--gl-accent);
  color: var(--gl-accent-ink);
  box-shadow: none;
}
.pricing a:focus-visible,
.pricing button:focus-visible {
  outline: 2px solid var(--gl-accent);
  outline-offset: 2px;
}

/* Стеклянная карточка: тариф и блок сети. */
.pricing .plan,
.pricing .plan--featured,
.pricing .net {
  border: 1px solid var(--gl-line);
  border-radius: 18px;
  background: var(--gl-bg);
  color: var(--gl-ink);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pricing .plan,
  .pricing .plan--featured,
  .pricing .net {
    background: rgba(22, 13, 17, 0.62);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
  }
}
.pricing .plan--featured {
  border-color: rgba(217, 138, 124, 0.55);
}
.pricing .plan {
  gap: 10px;
  padding: 28px 28px 24px;
}
.pricing .plan__title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gl-ink);
}
.pricing .plan__tagline,
.pricing .plan--featured .plan__tagline,
.pricing .plan__price span,
.pricing .plan--featured .plan__price span {
  color: var(--gl-soft);
}
.pricing .plan__price b {
  font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.8rem);
  color: var(--gl-ink);
}
.pricing .plan__features {
  margin: 10px 0 8px;
  gap: 9px;
}
.pricing .plan__features li {
  color: rgba(255, 255, 255, 0.92);
}
.pricing .plan__features li::before,
.pricing .plan--featured .plan__features li::before {
  border-color: var(--gl-accent);
  border-width: 1.5px;
}
.pricing .plan__features a {
  color: var(--gl-accent);
}
.pricing .plan__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--gl-line);
}
.pricing .plan__foot .btn {
  margin-top: 0;
}
.pricing .plan__caps {
  color: var(--gl-accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.btn-glass {
  border: 0;
  background: var(--gl-accent, #d98a7c);
  color: var(--gl-accent-ink, #20110f);
  font-weight: 700;
  border-radius: 999px;
}
.btn-glass:hover {
  filter: brightness(1.08);
}

/* Блок «У вас несколько магазинов?» на том же фоне. */
.pricing .net__title,
.pricing .net__price b {
  color: var(--gl-ink);
}
.pricing .net__title {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.pricing .net__text .eyebrow {
  color: var(--gl-accent);
}
.pricing .net__lead,
.pricing .net__price > span,
.pricing .net__price small {
  color: var(--gl-soft);
}
.pricing .net__facts li {
  color: rgba(255, 255, 255, 0.92);
}
.pricing .net__facts li::before {
  border-color: var(--gl-accent);
  border-width: 1.5px;
}
.pricing .net__price {
  border: 1px solid var(--gl-line);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}
.pricing .net__scheme {
  color: var(--gl-ink);
}
.pricing .net__link,
.pricing .net__pick {
  color: var(--gl-ink);
}
.pricing .net__link {
  border-color: var(--gl-line);
  background: rgba(255, 255, 255, 0.1);
}
.pricing .net__shop {
  border: 1px solid var(--gl-line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--gl-ink);
  box-shadow: none;
}
.pricing .net__shop small {
  color: var(--gl-soft);
}
.pricing .net__shop-ico {
  background: rgba(217, 138, 124, 0.2);
  color: var(--gl-accent);
}

/* Телефон: плашки тарифов и «Все возможности» — в том же тёмном стиле, кнопка и надпись слева друг под другом. */
@media (max-width: 767.98px) {
  .pricing .plans__tab {
    border-color: var(--gl-line);
    background: rgba(22, 13, 17, 0.7);
    color: var(--gl-ink);
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pricing .plans__tab {
      background: rgba(22, 13, 17, 0.45);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
    }
  }
  .pricing .plans__tab span:first-child {
    color: var(--gl-soft);
  }
  .pricing .plans__tab[aria-selected="true"] {
    border-color: var(--gl-accent);
    background: var(--gl-accent);
    color: var(--gl-accent-ink);
  }
  .pricing .plans__tab[aria-selected="true"] span:first-child {
    color: var(--gl-accent-ink);
  }
  .pricing .plans[data-compact] .plan {
    padding: 22px 20px 20px;
    border-radius: 16px;
  }
  .pricing .plan__title {
    font-size: 1.5rem;
  }
  .pricing .plan__more,
  .pricing .plan--featured .plan__more {
    color: var(--gl-accent);
  }
  .pricing .plan__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 16px;
  }
  .pricing .plan__caps {
    font-size: 0.72rem;
  }
  .pricing .net {
    border-radius: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-glass {
    transition: none;
  }
}
.pricing .net__scheme {
  border: 1px solid var(--gl-line);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.pricing .net__pick,
.pricing .net__shop b {
  color: var(--gl-ink);
}
.pricing .net__pick::before,
.pricing .net__shops::before {
  background: var(--gl-line);
}
.pricing .net__link {
  color: var(--gl-accent);
}
.pricing .plan__price b span {
  color: var(--gl-ink);
}
.pricing .plan .plan__price b span,
.pricing .plan--featured .plan__price b span {
  color: var(--gl-ink);
}

/* ─── Подвал на телефоне: «Полезное» — две колонки без маркеров, мишени 44px ─── */
@media (max-width: 767.98px) {
  .foot__links--useful {
    display: block;
  }
  .foot__links--useful .seo-foot__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .foot__links--useful .seo-foot__list li {
    min-width: 0;
  }
  .foot__links--useful .seo-foot__list a {
    min-height: 44px;
    font-size: 0.88rem;
    line-height: 1.25;
  }
}
@media (max-width: 767.98px) {
  .final {
    padding-bottom: 40px;
  }
  .foot {
    padding-top: 16px;
  }
}
