/* ══════════════════════════════════════════════════════════════════════
   Лендинг. Палитра и кнопки — в landing.css (общие для всех страниц
   платформы), здесь только то, что есть на главной.

   Мысль страницы: светлая бумага, глубокий зелёный и один тёплый оранжевый
   на кнопках. Шапки нет — первым делом человек видит, что это за сервис,
   и кнопку. Ритм задают крупные блоки с большими отступами.
   ══════════════════════════════════════════════════════════════════════ */

.lp-home {
  --page-max: 1240px;
  --block-pad: clamp(72px, 7vw + 24px, 148px);
  --stage: #e3efe7;
  --radius-card: 20px;
  --radius-panel: 28px;
  scrollbar-color: #9db9ab var(--bg);
}
html:has(.lp-home) {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
@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 .ico {
  width: 20px;
  height: 20px;
  flex: none;
}

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

.hero {
  padding: clamp(24px, 3vw, 40px) 0 clamp(40px, 6vw, 88px);
}
.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__inner > * {
  min-width: 0;
}
.wordmark {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--green);
}
.hero__title {
  max-width: 16em;
  font-size: clamp(2.3rem, 1rem + 5.6vw, 5.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero__lead {
  max-width: 34em;
  margin-top: 20px;
  color: var(--on-bg-soft);
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 28px;
}
.hero__actions .btn {
  white-space: normal;
  text-align: center;
}
@media (max-width: 519px) {
  /* Обе кнопки во всю ширину: левые края совпадают, в них легко попасть. */
  .hero__actions .btn {
    width: 100%;
  }
}
.hero__hint {
  margin-top: 14px;
  color: var(--on-bg-soft);
  font-size: 0.95rem;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-bg);
  list-style: none;
}
.hero__facts li {
  display: grid;
  align-content: start;
  gap: 4px;
}
.hero__facts b {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4rem);
  font-weight: 500;
  color: var(--green);
}
.hero__facts span {
  color: var(--on-bg-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}
@media (max-width: 359px) {
  .hero__facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero__facts li {
    grid-template-columns: 7.5em 1fr;
    align-items: baseline;
    gap: 10px;
  }
}

.hero__visual {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  border-radius: var(--radius-panel);
  background: var(--stage);
}
.hero .phone {
  box-shadow:
    0 0 0 1.5px #3a322b inset,
    0 40px 60px -28px rgba(11, 61, 46, 0.55),
    0 14px 24px -14px rgba(11, 61, 46, 0.4);
}

/* Живое демо во фрейме: только на широком экране. На телефоне фрейм
   перехватывал бы палец и страницу нельзя было бы пролистать. */
.hv-demo {
  display: none;
}
.hv-frame {
  flex: none;
  padding: 10px;
  border-radius: 44px;
  background: #1d1814;
  box-shadow:
    0 0 0 1.5px #3a322b inset,
    0 44px 64px -28px rgba(11, 61, 46, 0.55),
    0 14px 24px -14px rgba(11, 61, 46, 0.4);
}
.hv-frame__screen {
  width: 296px;
  height: 616px;
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
}
.hv-frame iframe {
  display: block;
  width: 390px;
  height: 812px;
  border: 0;
  transform: scale(0.759);
  transform-origin: 0 0;
}
.hv-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 340px);
  margin: 0;
  padding: 14px 18px 14px 14px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.hv-qr img {
  flex: none;
  width: 104px;
  height: 104px;
}
.hv-qr figcaption {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--on-bg-soft);
}

@media (min-width: 768px) {
  .hero__facts span {
    font-size: 0.95rem;
  }
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
  }
  .hero__visual {
    padding: 44px 24px;
  }
  .has-demo .hv-live {
    display: none;
  }
  /* Телефон, а под ним полоса с QR: по ширине колонки, за край не уходит. */
  .has-demo .hv-demo {
    display: grid;
    justify-items: center;
    gap: 20px;
    width: 100%;
    min-width: 0;
  }
}
@media (min-width: 1360px) {
  /* Просторно: QR встаёт рядом с телефоном карточкой. */
  .has-demo .hv-demo {
    grid-template-columns: auto 184px;
    justify-content: center;
    align-items: end;
    gap: 24px;
  }
  .hv-qr {
    flex-direction: column;
    width: 184px;
    padding: 16px;
    text-align: center;
  }
  .hv-qr img {
    width: 152px;
    height: 152px;
  }
}

/* Единственное движение первого экрана: текст поднимается по очереди,
   телефон слегка парит. Без анимации всё стоит на своих местах. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: rise 0.8s var(--ease-out) both;
  }
  .hero__copy > :nth-child(2) { animation-delay: 60ms; }
  .hero__copy > :nth-child(3) { animation-delay: 130ms; }
  .hero__copy > :nth-child(4) { animation-delay: 200ms; }
  .hero__copy > :nth-child(5) { animation-delay: 260ms; }
  .hero__copy > :nth-child(6) { animation-delay: 320ms; }
  .hero__visual {
    animation: rise 0.9s 160ms var(--ease-out) both;
  }
  .hv-live .phone {
    animation: bob 6s var(--ease-in-out) 1s infinite alternate;
  }
  .hv-qr {
    animation: rise 0.9s 420ms var(--ease-out) both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes bob {
  to {
    transform: translateY(-8px);
  }
}

/* ─── Общие блоки ─── */

.block {
  padding: var(--block-pad) 0;
}
.block--tint {
  background: var(--bg-deep);
}
.block__title {
  max-width: 18em;
  font-size: clamp(1.9rem, 1rem + 3.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.block__lead {
  max-width: 38em;
  margin-top: 16px;
  color: var(--on-bg-soft);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}
.block__cta {
  margin-top: 40px;
}

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

.bento {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 48px);
}
.tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}
.tile h3 {
  font-size: 1.2rem;
}
.tile p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.tile__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  padding: 11px;
  border-radius: 14px;
  background: #dff1e6;
  color: var(--green);
}
.tile__demo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.chip-q,
.chip-r {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
}
.chip-q {
  background: var(--bg-deep);
  color: var(--ink-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
}
.chip-r {
  background: var(--green);
  color: #fff;
}
.tile__demo .ico {
  color: var(--ink-soft);
}
@media (hover: hover) {
  .tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
}
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
  }
  .tile {
    grid-column: span 4;
    padding: 28px;
  }
  .tile--wide {
    grid-column: span 7;
  }
  .tile--side {
    grid-column: span 5;
  }
  .tile--half {
    grid-column: span 6;
  }
}

/* ─── Как подключиться ─── */

.steps {
  display: grid;
  gap: 14px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 84px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}
.step h3 {
  font-size: 1.2rem;
}
.step p {
  margin-top: 6px;
  color: var(--ink-soft);
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .step {
    padding: 88px 24px 28px;
  }
  .step::before {
    left: 24px;
    top: 24px;
  }
}

/* ─── Оформление ─── */

.themes {
  display: grid;
  gap: 36px;
  align-items: center;
}
.themes > * {
  min-width: 0;
}
.theme-picker {
  display: flex;
  gap: 8px;
  margin: 24px calc(-1 * var(--page-gutter)) 0;
  padding: 2px var(--page-gutter) 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.theme-picker::-webkit-scrollbar {
  display: none;
}
.theme-picker {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--page-gutter), #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--page-gutter), #000 calc(100% - 36px), transparent);
}
@media (min-width: 768px) {
  .theme-picker {
    margin-inline: 0;
    padding-inline: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
}
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}
.theme-btn:hover {
  border-color: var(--green);
}
.theme-btn[aria-pressed="true"] {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}
.theme-btn__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg) 50%, var(--accent) 50%);
  box-shadow: inset 0 0 0 1px rgba(16, 36, 28, 0.2);
}
.theme-note {
  min-height: 3em;
  margin-top: 16px;
  color: var(--on-bg-soft);
}
.themes__phone {
  display: grid;
  place-items: center;
  padding: 32px 16px;
  border-radius: var(--radius-panel);
  background: var(--stage-tint, var(--stage));
  transition: background-color 400ms var(--ease-out);
}
.themes__phone .phone {
  box-shadow:
    0 0 0 1.5px #3a322b inset,
    0 40px 60px -28px rgba(11, 61, 46, 0.55),
    0 14px 24px -14px rgba(11, 61, 46, 0.4);
}
@media (min-width: 768px) {
  .themes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 40px;
  }
}
@media (min-width: 1024px) {
  .themes {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }
  .theme-btn {
    padding-right: 12px;
    gap: 8px;
    font-size: 0.9rem;
  }
  .theme-picker {
    /* Шаблонов десять: одна строка с прокруткой и затуханием у края. */
    flex-wrap: nowrap;
    gap: 6px;
  }
  .themes__phone {
    padding: 48px 24px;
  }
}

/* ─── Тарифы ─── */

.plans {
  display: grid;
  gap: 24px;
  margin-top: clamp(32px, 4vw, 52px);
}
/* Переключатель валюты цен: сегменты-ссылки, работают и без скриптов. */
.cur-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cur-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.cur-switch__btn:hover {
  background: var(--accent-soft, rgba(0, 0, 0, 0.05));
}
.cur-switch__btn[aria-current="true"] {
  background: var(--green-deep);
  color: #fff;
}
.cur-switch__btn:focus-visible {
  outline: 3px solid var(--accent-strong, var(--green-deep));
  outline-offset: 2px;
}
.plans__fallback {
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--ink-soft);
}
.plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.plan__title {
  font-size: 1.5rem;
}
.plan__tagline {
  color: var(--ink-soft);
}
.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin-top: 4px;
}
.plan__price b {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plan__price span {
  color: var(--ink-soft);
}
.plan__features {
  display: grid;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan__features li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.32em;
  width: 7px;
  height: 12px;
  border: solid var(--green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.plan .btn {
  width: 100%;
}
.plan__ribbon {
  justify-self: start;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
}
.plan--featured {
  background: var(--green-deep);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.plan--featured .plan__tagline,
.plan--featured .plan__price span {
  color: #c9ddd3;
}
.plan--featured .plan__features {
  border-top-color: rgba(255, 255, 255, 0.18);
}
.plan--featured .plan__features li::before {
  border-color: var(--mint);
}
.plan--featured :focus-visible {
  outline-color: var(--mint);
}
.plans__note {
  margin-top: 24px;
  color: var(--on-bg-soft);
  font-size: 0.95rem;
}
@media (min-width: 768px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
  }
  .plan {
    grid-template-rows: auto auto auto 1fr auto;
  }
}

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

.faq {
  display: grid;
  gap: 32px;
  align-items: start;
}
.faq > * {
  min-width: 0;
}
.faq__head .btn {
  margin-top: 24px;
}
.faq__list {
  display: grid;
  gap: 10px;
}
.faq__item {
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  position: relative;
  display: block;
  min-height: 56px;
  padding: 16px 56px 16px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--green);
  transition: transform 220ms var(--ease-out);
}
.faq__item summary::after {
  transform: rotate(90deg);
}
.faq__item[open] summary::after {
  transform: rotate(0deg);
}
.faq__item p {
  padding: 0 56px 20px 20px;
  color: var(--ink-soft);
  line-height: 1.55;
}
@media (min-width: 768px) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
  }
  .faq__head {
    position: sticky;
    top: 24px;
  }
}
@media (min-width: 1024px) {
  .faq {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 72px;
  }
}

/* ─── Финальный призыв ─── */

.final {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--green-deep);
  color: #fff;
  text-align: center;
}
.final__inner {
  display: grid;
  justify-items: center;
  gap: 16px;
}
.final h2 {
  max-width: 16em;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.final p {
  color: #c9ddd3;
  font-size: 1.1rem;
}
.final .btn {
  margin-top: 12px;
  white-space: normal;
}
.final .final__hint {
  margin-top: 0;
  font-size: 0.95rem;
}
.final :focus-visible {
  outline-color: var(--mint);
}

/* ─── Подвал ─── */

.foot {
  padding: 36px 0 calc(40px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.foot__inner {
  display: grid;
  gap: 18px;
}
.foot__brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--green);
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot__links a {
  color: var(--ink-soft);
}
.foot__links a:hover {
  color: var(--ink);
}
.foot__dev {
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.foot__dev a {
  color: var(--green);
  font-weight: 600;
}
@media (min-width: 768px) {
  .foot__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }
  .foot__links {
    justify-content: center;
  }
}

/* ─── Нижняя кнопка на телефоне ─── */

.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  padding: 10px var(--page-gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  box-shadow: 0 -1px 0 var(--line-bg), 0 -10px 24px rgba(16, 36, 28, 0.08);
  transform: translateY(0);
  transition:
    transform 320ms var(--ease-out),
    visibility 0s;
}
.sticky-cta[data-visible="false"] {
  visibility: hidden;
  transform: translateY(110%);
  transition:
    transform 260ms var(--ease-out),
    visibility 0s 260ms;
}
.sticky-cta .btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
}
@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .sticky-cta[data-visible="false"] {
    transition: none;
  }
}

/* ─── Выделенная возможность: админка и телефон ─── */

.spot {
  display: grid;
  gap: 28px;
  align-items: center;
  margin: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 48px);
  padding: clamp(22px, 3vw, 44px);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.spot > * {
  min-width: 0;
}
.spot__copy h3 {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.spot__copy > p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.spot__list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.spot__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  line-height: 1.45;
}
.spot__list .ico {
  margin-top: 2px;
  color: var(--green);
}
.spot__visual {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 24px 12px;
  border-radius: var(--radius-card);
  background: var(--stage);
  overflow: hidden;
}
.spot__phone {
  display: none;
}
.adm {
  width: min(100%, 320px);
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.adm__title {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}
.adm__row {
  display: grid;
  grid-template-columns: 1fr auto 40px;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.adm__row b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.adm__row--off span,
.adm__row--off b {
  color: var(--ink-soft);
  text-decoration: line-through;
}
.adm__toggle {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #c7d1cb;
}
.adm__toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 36, 28, 0.3);
}
.adm__toggle--on {
  background: var(--green);
}
.adm__toggle--on::after {
  left: 19px;
}
.adm__note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff3d6;
  color: #4d3708;
  font-size: 0.82rem;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .spot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
}
@media (min-width: 1024px) {
  .spot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
  }
  .spot__visual {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 32px 28px;
    gap: 24px;
  }
  .spot__phone {
    display: block;
  }
}

/* Подписи кнопок переносятся: на 320px длинная фраза не должна раздвигать страницу. */
.lp-home .btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
@media (max-width: 359px) {
  .lp-home .btn-lg {
    padding-inline: 16px;
  }
}

/* ─── Цифры ─── */

.band {
  padding: clamp(36px, 5vw, 64px) 0;
  background: var(--green-deep);
  color: #fff;
}
.band__grid {
  display: grid;
  gap: 24px;
}
.band__grid p {
  display: grid;
  gap: 4px;
}
.band__grid b {
  display: flex;
  align-items: baseline;
  gap: 0.14em;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.band__grid p > span {
  color: #c9ddd3;
  font-size: 1rem;
  line-height: 1.4;
}
@media (min-width: 768px) {
  .band__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .band__grid p + p {
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
}

.nobr {
  white-space: nowrap;
}

.hero__copy {
  align-self: center;
}
@media (min-width: 1024px) {
  .hero {
    padding-block: clamp(32px, 4vw, 64px);
  }
  .hero__facts {
    margin-top: 32px;
  }
}

.trial-pill {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 500;
}
.plan__ribbon {
  display: none;
}


/* ══════════════════════════════════════════════════════════════════════
   Второй проход: шрифты из настроек, движение, сравнение, соцсети, «О нас».
   Движение — только transform и opacity; всё гаснет при reduced-motion.
   ══════════════════════════════════════════════════════════════════════ */

/* Шрифты выбирает оператор (data-lp-display / data-lp-text на <html>, правила в fonts-lp.css). */
.lp-home {
  --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);
}
/* Телефоны — это меню кафе, а не страница сайта: свои шрифты им не передаются. */
.lp-home .phone {
  --font-display: "Fixel Display", "Fixel Text", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Fixel Text", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

/* Появление: скрыто только при data-reveal-ready (ставит скрипт). */
html[data-reveal-ready] [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}
html[data-reveal-ready] [data-reveal].is-in {
  transition:
    opacity 0.9s var(--ease-out) calc(var(--i, 0) * 80ms),
    transform 0.9s var(--ease-out) calc(var(--i, 0) * 80ms);
}

/* Параллакс первого экрана. */
[data-parallax="1"] { --k: -0.05; }
[data-parallax="2"] { --k: -0.16; }
[data-parallax="3"] { --k: 0.09; }
@keyframes par {
  to { transform: translate3d(0, calc(var(--k) * 900px), 0); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    [data-parallax] {
      animation: par linear both;
      animation-timeline: scroll(root);
      animation-range: 0 900px;
    }
  }
  html[data-par-js] [data-parallax] {
    transform: translate3d(0, calc(var(--sy, 0px) * var(--k)), 0);
  }
}

/* Первый экран. */
.hero {
  padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 8vw, 120px);
}
.hero__visual {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 10%, #f4faf6 0%, var(--stage) 55%, #cfe3d7 100%);
}
.hero__stack {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__orb--a {
  top: -60px;
  right: -50px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, #ffb27d, #ff7a2f 70%);
  opacity: 0.55;
}
.hero__orb--b {
  bottom: -90px;
  left: -70px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 60% 40%, #8fd0b3, #0e5a43 75%);
  opacity: 0.35;
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  }
  .hero__visual {
    padding: 56px 24px;
  }
  /* Телефон демо крупнее: фрейм масштабируется, а не сжимается. */
  .hv-frame__screen {
    width: 326px;
    height: 678px;
  }
  .hv-frame iframe {
    transform: scale(0.836);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hv-live .phone {
    animation: bob 6s var(--ease-in-out) 1s infinite alternate;
  }
}

/* Кнопки: подъём при наведении, нажатие. */
.lp-home .btn {
  transition:
    transform 180ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    border-color 160ms var(--ease-out);
}
@media (hover: hover) {
  .lp-home .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -10px rgba(255, 122, 47, 0.7);
  }
  .lp-home .btn-outline:hover:not(:disabled) {
    transform: translateY(-2px);
  }
  .tile.is-in:hover,
  .tile:hover {
    transition-delay: 0s;
  }
}
.lp-home .btn:active:not(:disabled) {
  transform: scale(0.97);
  transition-duration: 80ms;
}
.theme-btn:active {
  transform: scale(0.96);
}

/* Живой телефон: карточки сменяются мягко. */
.pm-chip {
  transition:
    background-color 300ms var(--ease-out),
    color 300ms var(--ease-out),
    border-color 300ms var(--ease-out);
}
@keyframes pmIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
}
.pm-grid--swap .pm-card {
  animation: pmIn 0.5s var(--ease-out) both;
}
.pm-grid--swap .pm-card:nth-child(2) { animation-delay: 60ms; }
.pm-grid--swap .pm-card:nth-child(3) { animation-delay: 120ms; }
.pm-grid--swap .pm-card:nth-child(4) { animation-delay: 180ms; }

/* Крупнее воздух в мозаике и шагах. */
.bento {
  margin-top: clamp(32px, 5vw, 64px);
  gap: 16px;
}
.tile {
  padding: 28px;
}
.tile h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.steps {
  margin-top: clamp(36px, 5vw, 64px);
}

/* ─── Было / стало ─── */

.ba {
  --ba: 50;
  margin-top: clamp(32px, 5vw, 64px);
}
.ba__stage {
  position: relative;
  height: clamp(540px, 56vw, 660px);
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: #e7e2d3;
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.ba__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ba__before {
  background:
    repeating-linear-gradient(0deg, rgba(60, 50, 30, 0.035) 0 1px, transparent 1px 4px),
    #ebe6d6;
}
.ba__after {
  background: radial-gradient(110% 90% at 70% 15%, #f4faf6, #cfe3d7);
  clip-path: inset(0 0 0 calc(var(--ba) * 1%));
}
.ba__phone .phone {
  box-shadow:
    0 0 0 1.5px #3a322b inset,
    0 40px 60px -28px rgba(11, 61, 46, 0.55);
}
.ba__tag {
  position: absolute;
  z-index: 2;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
}
.ba__tag--l {
  left: 16px;
  background: rgba(16, 36, 28, 0.82);
  color: #fff;
}
.ba__tag--r {
  right: 16px;
  background: var(--accent);
  color: var(--on-accent);
}
.ba__handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: calc(var(--ba) * 1%);
  width: 48px;
  margin-left: -24px;
  display: grid;
  place-items: center;
  outline: none;
}
.ba__handle::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16, 36, 28, 0.15);
}
.ba__grip {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 180ms var(--ease-out);
}
.ba__grip::before,
.ba__grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: solid var(--green);
  border-width: 0 0 2.5px 2.5px;
}
.ba__grip::before { left: 12px; transform: rotate(45deg); }
.ba__grip::after { right: 12px; transform: rotate(-135deg); }
.ba[data-drag] .ba__grip {
  transform: scale(1.12);
}
.ba__handle:focus-visible .ba__grip {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.paper {
  width: min(300px, 78%);
  padding: 22px 20px 18px;
  background: #fdfcf7;
  color: #2a2a26;
  font-family: "Lora", Georgia, serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 22px 40px -18px rgba(60, 50, 30, 0.45);
  transform: rotate(-1.6deg);
}
.paper__stamp {
  margin: 0 0 8px;
  color: #8a8578;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.62rem;
}
.paper__title {
  font-family: "Lora", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
}
.paper__sub {
  margin: 2px 0 12px;
  color: #77736a;
  font-size: 0.62rem;
  text-align: center;
}
.paper__list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.7rem;
}
.paper__list li {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.paper__list i {
  flex: 1;
  min-width: 8px;
  border-bottom: 1px dotted #9a958a;
  transform: translateY(-2px);
}
.paper__list s {
  color: #b3261e;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
}
.paper__list b {
  font-weight: 600;
}
.paper__foot {
  margin: 12px 0 0;
  color: #8a8578;
  font-size: 0.56rem;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .ba__before { place-items: center start; padding-left: clamp(40px, 9%, 120px); }
  .ba__after { place-items: center end; padding-right: clamp(40px, 9%, 120px); }
  .paper { width: 330px; }
}
.ba__points {
  display: grid;
  gap: 18px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.ba__points li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line-bg-strong);
}
.ba__points b {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}
.ba__points span {
  color: var(--on-bg-soft);
}
@media (min-width: 768px) {
  .ba__points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

/* ─── Instagram ─── */

.social {
  display: grid;
  gap: 48px;
  align-items: center;
}
.social > * { min-width: 0; }
.social__steps {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.social__steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 52px;
  counter-increment: s;
}
.social__steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-display);
}
.social__steps b { font-size: 1.1rem; font-weight: 600; }
.social__steps span { color: var(--on-bg-soft); }
.social__mocks {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 8px;
}
.ig {
  flex: none;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  font-family: ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}
.ig--profile {
  width: min(100%, 290px);
  padding: 18px 16px;
  background: #fff;
  color: #111;
}
.ig__head { display: flex; align-items: center; gap: 14px; }
.ig__avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd2ae, #ff7a2f 60%, #0e5a43);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e1306c;
}
.ig__avatar--sm { width: 28px; height: 28px; box-shadow: 0 0 0 2px #fff; }
.ig__nums { display: flex; gap: 10px; font-size: 0.6rem; }
.ig__nums p { display: grid; text-align: center; color: #555; }
.ig__nums b { color: #111; font-size: 0.85rem; }
.ig__name { margin-top: 12px; font-size: 0.8rem; font-weight: 700; }
.ig__bio { font-size: 0.74rem; line-height: 1.4; color: #333; }
.ig__link {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #eef3ff;
  color: #0b57d0;
  font-size: 0.72rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ig__link .ico { width: 14px; height: 14px; }
.ig__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; font-size: 0.7rem; font-weight: 600; text-align: center; }
.ig__btns span { padding: 7px; border-radius: 8px; background: #efefef; }
.ig__btns span:first-child { background: #0095f6; color: #fff; }
.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 12px; }
.ig__grid i { aspect-ratio: 1; background: linear-gradient(135deg, #f1e4cf, #d9ead9); }
.ig__grid i:nth-child(2n) { background: linear-gradient(135deg, #ffd9bf, #f3b58c); }
.ig__grid i:nth-child(3n) { background: linear-gradient(135deg, #cfe3d7, #8fc9b0); }
.ig--story {
  position: relative;
  width: 150px;
  height: 290px;
  margin-top: 36px;
  overflow: hidden;
  background: linear-gradient(165deg, #ffb27d 0%, #ff7a2f 40%, #0e5a43 100%);
  color: #fff;
}
.ig__bar { position: absolute; top: 10px; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.8); }
.ig__who { position: absolute; top: 20px; left: 10px; display: flex; align-items: center; gap: 6px; font-size: 0.62rem; font-weight: 600; }
.ig__hot { position: absolute; top: 90px; left: 14px; right: 14px; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.05; font-weight: 600; }
.ig__sticker {
  position: absolute;
  left: 50%;
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff;
  color: #0b57d0;
  font-size: 0.78rem;
  font-weight: 700;
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.ig__sticker .ico { width: 14px; height: 14px; }
@media (max-width: 519px) {
  .ig--profile { width: 232px; }
  .ig--story { margin-left: -56px; width: 140px; }
}
@media (min-width: 900px) {
  .social { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 72px; }
}

/* ─── О нас ─── */

.about {
  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(--on-bg-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(--on-bg-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: var(--radius-panel);
  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; }
}

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

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(11, 61, 46, 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; }

@media (prefers-reduced-motion: reduce) {
  .lp-home *,
  .lp-home *::before,
  .lp-home *::after {
    animation: none !important;
    transition: none !important;
  }
  html:has(.lp-home) { scroll-behavior: auto; }
}


/* ══════════════════════════════════════════════════════════════════════
   Финальная полировка: цифры, шрифты, первый экран, «было / стало» на
   телефоне, плотные карточки, каркас демо, подвал.
   ══════════════════════════════════════════════════════════════════════ */

/* Цифры: число — герой, слово рядом мельче. */
.band__n {
  font-variant-numeric: tabular-nums;
}
.band__grid b small {
  color: #c9ddd3;
  font-family: var(--font-text);
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0;
}

/* Выбранный шрифт заголовков — только крупному: h1, h2 и большие числа.
   Мелкое (подписи, кнопки, названия карточек) всегда набрано шрифтом текста. */
.wordmark,
.hero__facts b,
.step::before,
.step h3,
.tile h3,
.foot__brand,
.faq__item summary,
.ba__points b,
.social__steps li::before,
.ig__hot,
.plan__title,
.cmp__col h3,
.pm-title,
.pm-banner__title,
.pm-card__price,
.band__grid b small {
  font-family: var(--font-text);
}
.wordmark,
.foot__brand {
  font-weight: 600;
}

/* Первый экран: заголовок помещается в колонку, воздух до следующего блока короче. */
.hero__title {
  font-size: clamp(2.3rem, 1rem + 5.2vw, 4.3rem);
}
.hero {
  padding-bottom: clamp(16px, 3vw, 48px);
}
.hero + .block {
  padding-top: clamp(48px, 5vw, 96px);
}
@media (min-width: 1280px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
  .hero__title {
    max-width: 13em;
    font-size: clamp(3rem, 1rem + 3.2vw, 3.7rem);
  }
  .hero__visual {
    padding: 48px 20px;
  }
  .has-demo .hv-demo {
    grid-template-columns: auto 168px;
    gap: 20px;
  }
  .hv-qr {
    width: 168px;
  }
  .hv-qr img {
    width: 136px;
    height: 136px;
  }
}
@media (max-width: 519px) {
  .hero__facts {
    gap: 12px;
  }
  .hero__facts b {
    font-size: 1rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hero__facts span {
    font-size: 0.82rem;
  }
}

/* Каркас вместо белого экрана, пока демо во фрейме грузится. */
.hv-frame__screen {
  position: relative;
}
.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, #f1ead9 0 120px, #f7f5ef 120px);
}
.hv-skeleton i {
  border-radius: 16px;
  background: #e8e2d2;
}
.hv-skeleton i:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-top: -130px;
  height: 100px;
  background: #d9ceb8;
}
@media (prefers-reduced-motion: no-preference) {
  .hv-skeleton i {
    animation: skel 1.4s ease-in-out infinite alternate;
  }
}
@keyframes skel {
  to { opacity: 0.55; }
}

/* Рисунки блюд на телефоне. */
.pm-card__picture svg {
  width: 82%;
  height: 82%;
}
.pm-card__picture {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-raised));
}

/* Карточки возможностей: ровные ряды и плотнее на телефоне. */
.tile__demo--time {
  flex-wrap: wrap;
  gap: 8px;
}
.tile__demo--time .chip-r,
.tile__demo--time .chip-q {
  padding: 6px 12px;
  font-size: 0.85rem;
}
@media (max-width: 639px) {
  .bento {
    gap: 10px;
  }
  .tile {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 2px;
    padding: 16px;
  }
  .tile__icon {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
  }
  .tile h3 {
    font-size: 1.1rem;
    align-self: center;
  }
  .tile p,
  .tile__demo {
    grid-column: 2;
  }
  .tile p {
    font-size: 0.92rem;
  }
}

/* Тариф: плашка про пробный период переносится и не растягивается. */
.trial-pill {
  max-width: 100%;
  border-radius: 16px;
  line-height: 1.3;
}
@media (max-width: 519px) {
  .trial-pill {
    display: block;
    width: fit-content;
    margin-inline: auto;
    text-align: center;
  }
}

/* Подвал: «Полезное» — аккуратная сетка. */
.foot__links--useful {
  display: block;
}
.seo-foot__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seo-foot__list a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.seo-foot__list a:hover {
  color: var(--ink);
}
@media (min-width: 768px) {
  .foot__inner > .foot__brand { grid-column: 1; grid-row: 1; }
  .foot__inner > .foot__links:not(.foot__links--useful) { grid-column: 2; grid-row: 1; }
  .foot__inner > .foot__dev { grid-column: 3; grid-row: 1; }
  .foot__links--useful {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 20px;
    border-top: 1px solid var(--line-bg);
  }
  .seo-foot__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
  }
}

/* «Было / стало»: ручка-плашка с подсказкой; на телефоне оба кадра по центру, а ползунок стирает один другим. */
.ba__grip {
  width: 104px;
  height: 44px;
  margin-left: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.ba__grip span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}
.ba__grip::before { left: 14px; }
.ba__grip::after { right: 14px; }
.ba__handle {
  width: 104px;
  margin-left: -52px;
}

/* ══════════════════════════════════════════════════════════════════════
   «Было / стало» на телефоне: не ползунок, а переключатель. Каждое состояние
   показано целиком и по центру, сцена одной высоты — ничего не прыгает.
   ══════════════════════════════════════════════════════════════════════ */

.ba__switch,
.ba__chips,
.ba__dots {
  display: none;
}
@media (max-width: 899px) {
  .ba__switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 0 14px;
    padding: 4px;
    border-radius: 999px;
    background: var(--bg-deep);
    box-shadow: inset 0 0 0 1px var(--line-strong);
  }
  .ba__switch button {
    position: relative;
    z-index: 1;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--ink-soft);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 220ms var(--ease-out);
  }
  .ba__switch button[aria-selected="true"] {
    color: #fff;
  }
  .ba__thumb {
    position: absolute;
    inset: 4px auto 4px 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: var(--green-deep);
    box-shadow: var(--shadow-md);
    transition: transform 320ms var(--ease-out);
  }
  .ba[data-state="after"] .ba__thumb {
    transform: translateX(100%);
  }
  .ba__stage {
    height: 640px;
    cursor: auto;
    touch-action: pan-y;
  }
  .ba__layer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0;
    clip-path: none;
    opacity: 1;
    visibility: visible;
    transition:
      opacity 320ms var(--ease-out),
      transform 340ms var(--ease-out),
      visibility 0s;
  }
  .ba__before {
    padding: 0;
  }
  .ba[data-state="before"] .ba__after {
    opacity: 0;
    visibility: hidden;
    transform: translateX(28px) scale(0.96);
    transition-delay: 0s, 0s, 340ms;
  }
  .ba[data-state="after"] .ba__before {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-28px) scale(0.96);
    transition-delay: 0s, 0s, 340ms;
  }
  .ba__tag,
  .ba__handle {
    display: none;
  }
  .paper {
    width: min(310px, 86%);
    filter: saturate(0.7);
  }
  .ba__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 16px;
    list-style: none;
  }
  .ba__chips li {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
  }
  .ba__chips--pain li {
    background: #f6dcd6;
    color: #7a2414;
  }
  .ba__chips--gain li {
    background: var(--green-deep);
    color: #fff;
  }
  .ba__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
  }
  .ba__dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: transform 240ms var(--ease-out), background-color 240ms var(--ease-out);
  }
  .ba[data-state="before"] [data-dot="before"],
  .ba[data-state="after"] [data-dot="after"] {
    background: var(--green-deep);
    transform: scale(1.5);
  }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .ba__layer,
  .ba__thumb {
    transition: none !important;
  }
}
