/* Master Manager — лендинг. Светлый стиль, почти монохром, красный только для кнопок и мелких акцентов. */

:root {
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #86868b;
  --line: #d2d2d7;
  --red: #e31e24;
  --red2: #c8161c;
  --head: 52px;
  --gut: clamp(16px, 4.2vw, 44px);
  --wrap: 1180px;
  --sec: clamp(96px, 13vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; /* system-ui первым: шрифт системы находится сразу (SF на Apple, Roboto на Android, Segoe UI в Windows) — без поиска отсутствующих семейств при каждой раскладке */
  --mm-bottom-offset: 0px; /* высота баннера cookies снизу: кнопка «Наверх» поднимется над ним */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-behavior: smooth не ставим — он ломает замеры ScrollTrigger; плавные якоря делает main.js */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--head); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.47 var(--font); letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overflow-x: clip;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.06; letter-spacing: -.028em; }
p { margin: 0; }
/* обводка фокуса: тёмная сплошная, видна и на белом, и на сером, и рядом с красными кнопками (контраст > 3:1) */
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- Живой фон (assets/js/mm-plexus.js): под всем содержимым ----------
   Точки и линии живут только в полосах по бокам, вне колонки текста (.wrap), и гаснут к её краю —
   это делает сам скрипт, поэтому маски (mask-image) нет: она дорого стоит без видеоускорения. */
.mm-bg {
  position: fixed; top: var(--head); left: 0; z-index: -1; display: block; pointer-events: none;
  /* та же ширина полосы, что считает скрипт: поле у края или половина разницы с колонкой текста, плюс 50 px */
  width: min(calc(max(var(--gut), (100vw - var(--wrap)) / 2) + 50px), 50vw);
  height: calc(100vh - var(--head));
}
.mm-bg--r { left: auto; right: 0; }
/* Телефон: полоса фона 17–27 px почти не видна, а процессор занимает — фон не запускается (data-min="768") */
@media (max-width: 767px) { .mm-bg { display: none; } }
/* Устройство не тянет анимацию (main.js замерил кадры) — фон убираем совсем */
.lowfps .mm-bg { display: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Типографика ---------- */
.h1 { font-size: clamp(42px, 7.2vw, 100px); letter-spacing: -.045em; line-height: 1; }
.h2 { font-size: clamp(36px, 5.6vw, 76px); letter-spacing: -.04em; line-height: 1.03; }
.lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; color: var(--text2); letter-spacing: -.016em; }
.eyebrow { font-size: clamp(15px, 1.25vw, 19px); font-weight: 600; color: var(--red); margin-bottom: 14px; letter-spacing: -.01em; }
.head { margin-bottom: clamp(40px, 6vw, 80px); }
.head .lead { margin-top: 18px; max-width: 34em; }
.head--center { text-align: center; }
.head--center .lead { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 28px; border: 0; border-radius: 980px;
  font: 600 17px/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red2); }
.btn:active { transform: scale(.98); }
.btn--sm { height: 30px; padding: 0 15px; font-size: 13px; font-weight: 600; }
.btn--lg { height: 58px; padding: 0 56px; font-size: 19px; }
.more { font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; }
.more::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 2px 2px 0 0; transform: translateY(-1px) rotate(45deg); transition: transform .2s; }
.more:hover::after { transform: translate(3px, -1px) rotate(45deg); }
.badge { display: inline-block; background: var(--text); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 980px; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }

/* ---------- Шапка ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.lite .nav, .lowfps .nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__in { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.nav__links { display: flex; gap: clamp(18px, 2.6vw, 34px); }
.nav__links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #424245; text-decoration: none; transition: color .2s; }
.nav__ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav__links .nav__ico { opacity: .8; transition: opacity .2s, transform .2s; }
.nav__links a:hover .nav__ico { opacity: 1; transform: translateY(-1px); }
.btn--sm .nav__ico { width: 15px; height: 15px; margin-left: -2px; }
.btn--sm { gap: 6px; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 719px) { .nav__links { display: none; } }

/* ---------- Телефон (CSS, без картинок) ---------- */
.phone {
  --w: 300px;
  --b: calc(var(--w) * .035);
  --r: calc(var(--w) * .15);
  position: relative; width: var(--w); height: calc(var(--w) * 2.1367);
  transform-style: preserve-3d; flex: none;
}
.phone__buzz, .phone__tilt, .phone__spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.ph-frame {
  position: absolute; inset: 0; border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .3);
  background: linear-gradient(132deg, #73767b 0%, #34363a 3%, #111214 10%, #050506 28%, #111214 72%, #36393d 95%, #0a0b0c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .30),
    inset 0 0 0 calc(var(--w) * .008) #070708,
    inset 0 0 0 calc(var(--w) * .014) rgba(255, 255, 255, .12),
    inset 0 calc(var(--w) * -.012) calc(var(--w) * .022) rgba(0, 0, 0, .72),
    0 calc(var(--w) * .12) calc(var(--w) * .24) calc(var(--w) * -.08) rgba(0, 0, 0, .32);
}
.ph-frame::before {
  content: ""; position: absolute; inset: calc(var(--w) * .012);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: calc(var(--r) - var(--w) * .012);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .16), inset 0 -2px 4px rgba(0, 0, 0, .42);
  pointer-events: none;
}
.ph-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(116deg, rgba(255, 255, 255, .27), transparent 11%, transparent 79%, rgba(255, 255, 255, .11));
  opacity: .64;
}
.ph-screen {
  position: absolute; inset: var(--b); border: 1px solid rgba(0, 0, 0, .88);
  border-radius: calc(var(--r) - var(--b)); overflow: hidden; background: #fbfbfd;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .22);
  transform: translateZ(0);
}
.ph-glass {
  position: absolute; inset: var(--b); border-radius: calc(var(--r) - var(--b));
  background: linear-gradient(118deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .06) 30%, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  pointer-events: none;
}
.hero .ph-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: var(--gt, 0);
  background: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(214, 220, 232, .35));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.ph-cam {
  position: absolute; left: 50%; top: calc(var(--b) + var(--w) * .016);
  width: calc(var(--w) * .135); height: calc(var(--w) * .031); margin-left: calc(var(--w) * -.0675);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  background: linear-gradient(180deg, #050506 0%, #101114 52%, #24262a 100%);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .26);
}
.ph-cam::after {
  content: ""; position: absolute; right: 12%; top: 50%; width: calc(var(--w) * .013); height: calc(var(--w) * .013);
  transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #4d6383 0 12%, #1a2635 35%, #050609 72%);
  box-shadow: 0 0 0 1px rgba(105, 132, 163, .2);
}
.ph-btn {
  position: absolute; right: calc(var(--w) * -.011); width: calc(var(--w) * .022);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #090a0b 0%, #494c50 32%, #85888c 48%, #26282b 64%, #090a0b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1px 1px rgba(0, 0, 0, .42);
}
.ph-btn--power { top: 21%; height: 7.5%; }
.ph-btn--vol { top: 31.5%; height: 13%; }
/* v14: объёмный корпус HERO из механических сегментов (сборка — main.js). --dep — толщина корпуса. */
.ph-body { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; --dep: calc(var(--w) * .058); }
.ph-seg { position: absolute; inset: 0; transform-style: preserve-3d; }
.ph-slab {
  position: absolute; inset: 0; border-radius: var(--r);
  transform: translateZ(calc(var(--dep) * var(--k) * -1));
  background: linear-gradient(132deg, #c3c7cc 0%, #6b6f75 14%, #2a2c31 46%, #55595f 78%, #d0d3d7 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 0 0 calc(var(--w) * .006) rgba(0, 0, 0, .32);
}
.ph-slab--back { background: linear-gradient(140deg, #45484e 0%, #1c1d21 45%, #2f3136 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.ph-glint { background: linear-gradient(120deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.95) 48%, rgba(255,255,255,0) 76%); opacity: 0; box-shadow: none; }
.ph-cambump {
  position: absolute; right: 8%; top: 4%; width: 38%; height: 17%; border-radius: calc(var(--w) * .07);
  transform: translateZ(calc(var(--dep) * -1 - 2px)); background: linear-gradient(135deg, #5a5d63, #1b1c20);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.ph-shadow {
  position: absolute; left: 4%; right: -4%; top: 6%; bottom: -8%; border-radius: var(--r);
  transform: translateZ(calc(var(--dep) * -1.8)); background: rgba(0, 0, 0, .28); filter: blur(calc(var(--w) * .06));
}
.ph-sbtn {
  position: absolute; right: calc(var(--w) * -.012); width: calc(var(--w) * .024); border-radius: 0 5px 5px 0;
  transform: translateZ(calc(var(--dep) * -.5));
  background: linear-gradient(90deg, #2a2c30 0%, #8d9196 45%, #d6d9dd 55%, #3a3d41 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}
.ph-sbtn--power { top: 24%; height: 9%; }
.ph-sbtn--act { left: calc(var(--w) * -.012); right: auto; top: 17%; height: 4%; border-radius: 5px 0 0 5px; }
.ph-sbtn--vol1 { left: calc(var(--w) * -.012); right: auto; top: 24%; height: 7%; border-radius: 5px 0 0 5px; }
.ph-sbtn--vol2 { left: calc(var(--w) * -.012); right: auto; top: 33%; height: 7%; border-radius: 5px 0 0 5px; }
/* металлический блик по рамке после сборки: --glx двигает полосу */
.hero.has-body .ph-frame { --glx: -60%; }
.hero.has-body .ph-frame::after {
  background: linear-gradient(116deg, rgba(255,255,255,.27), transparent 11%, transparent 79%, rgba(255,255,255,.11)),
              linear-gradient(105deg, transparent calc(var(--glx) - 12%), rgba(255,255,255,.55) var(--glx), transparent calc(var(--glx) + 12%));
}
.hero.has-body .ph-btn { visibility: hidden; } /* плоские кнопки заменены кнопками на торце */

/* Экраны внутри телефона */
.scr { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.scr.is-on { opacity: 1; }
.scr > img, img.scr { display: block; width: 100%; height: 100%; object-fit: cover; }
.scr--long { overflow: hidden; }
.scr--long .scr__long { position: absolute; top: 0; left: 0; width: 100%; height: auto; will-change: transform; }
.scr__head, .scr__nav { position: absolute; left: 0; right: 0; overflow: hidden; z-index: 1; }
.scr__head { top: 0; height: var(--h); }
.scr__nav { bottom: 0; height: 11%; }
.scr__head img, .scr__nav img { position: absolute; left: 0; width: 100%; height: auto; display: block; }
.scr__head img { top: 0; }
.scr__nav img { bottom: 0; }
.scr__static { display: none !important; }
/* «Защита кодом» снята только в светлой теме: в тёмной показываем тот же экран, перекрашенный в тёмные цвета
   (белое → тёмно-серое, красный остаётся красным) — пока не снят настоящий 17-lock-code-dark */
.tour.is-dark .scr--invert img { filter: invert(.93) hue-rotate(180deg); }
.lite .scr--long > :not(.scr__static), .rm .scr--long > :not(.scr__static) { display: none; }
.lite .scr--long .scr__static, .rm .scr--long .scr__static { display: block !important; }

/* Звонок: волны и вибрация */
.rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.rings i {
  position: absolute; left: calc(var(--rw, 300px) * -.75); top: calc(var(--rw, 300px) * -.75);
  width: calc(var(--rw, 300px) * 1.5); height: calc(var(--rw, 300px) * 1.5); border-radius: 50%;
  border: 1.5px solid rgba(227, 30, 36, .45); opacity: 0; transform: scale(.5);
}
.is-ringing .rings i { animation: ring 2.4s cubic-bezier(.15, .6, .3, 1) infinite; }
.is-ringing .rings i:nth-child(2) { animation-delay: .8s; }
.is-ringing .rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { 0% { opacity: 0; transform: scale(.55); } 12% { opacity: .9; } 100% { opacity: 0; transform: scale(1.5); } }
.is-ringing .phone__buzz { animation: buzz 2.4s ease-in-out infinite; }
@keyframes buzz {
  0%, 20%, 100% { transform: rotate(0); }
  2% { transform: rotate(-2deg); } 4% { transform: rotate(2deg); } 6% { transform: rotate(-2deg); } 8% { transform: rotate(2deg); }
  10% { transform: rotate(-1.2deg); } 12% { transform: rotate(1.2deg); } 14% { transform: rotate(-.5deg); } 16% { transform: rotate(.5deg); }
}

/* ---------- 1. ВСТУПЛЕНИЕ: три вопроса → значок Master Manager ---------- */
/* Без анимаций (reduced-motion, без GSAP, без JS): вопросы друг под другом, ниже значок и «Всё в одном» */
.intro { position: relative; text-align: center; }
.intro__sticky { position: relative; padding: calc(var(--head) + clamp(56px, 9vw, 120px)) 0 clamp(72px, 10vw, 140px); }
.intro__stage { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.intro__q p { margin-inline: auto; max-width: 15em; font-size: clamp(30px, 4.6vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; }
.intro__q + .intro__q { margin-top: clamp(28px, 4vw, 52px); }
/* Логотипы под первым вопросом — КРУПНО (просьба владельца: «красный большой логотип, чтобы узнали Битрикс»).
   На телефоне друг под другом, как в образце logos-krupno.png: сверху 1С-Битрикс, ниже WordPress */
.intro__logos { --lgh: clamp(40px, 3.4vw, 50px); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 56px); margin-top: clamp(22px, 2.8vw, 38px); }
.intro__lg { display: block; width: auto; max-width: 100%; object-fit: contain; }
.intro__lg--wp { height: var(--lgh); }
.intro__lg--bx { height: calc(var(--lgh) * 1.15); }  /* 1С-Битрикс крупнее WordPress в 1,15 раза */
@media (max-width: 599px) {
  .intro__logos { --lgh: min(45px, 12vw); flex-direction: column; gap: 12px; }
}
.intro__reveal { margin-top: clamp(56px, 8vw, 104px); }
.intro__mark { display: flex; justify-content: center; }
.intro__tile {
  position: relative; width: clamp(96px, 12vw, 164px); aspect-ratio: 1; border-radius: 22.5%; overflow: hidden;
  box-shadow: 0 34px 64px -24px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .04);
}
.intro__tile img { display: block; width: 100%; height: 100%; }
.intro__shine { position: absolute; top: -10%; bottom: -10%; left: 0; width: 60%; opacity: 0; pointer-events: none; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 100%); }
.intro__title { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(34px, 5.2vw, 76px); letter-spacing: -.045em; line-height: 1.04; }
.intro__title2 { display: block; color: var(--red); --gc: rgba(227, 30, 36, .7); }
.intro__sub { margin: clamp(16px, 2vw, 24px) auto 0; max-width: 27em; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.4; color: var(--text2); letter-spacing: -.016em; text-wrap: balance; }

/* Слова, которые «проступают из размытия»: чёткая копия + размытая тень (анимируются только opacity и transform) */
.sw { display: inline-block; position: relative; }
.sw__s { display: inline-block; }
/* курсор «печати» как в ChatGPT — за последним напечатанным словом, место в строке не занимает */
.sw[data-cur="1"]::after { content: ""; position: absolute; left: calc(100% + .12em); top: 50%; width: .22em; height: .22em; margin-top: -.06em; border-radius: 50%; background: currentColor; animation: mm-caret 1s steps(1) infinite; }
@keyframes mm-caret { 50% { opacity: 0; } }
/* пока main.js не разбил первый вопрос на слова — тот же мигающий кружок после текста (ширины в строке не занимает) */
.anim .intro__q:first-child [data-split]:not(.is-split)::after { content: ""; display: inline-block; width: .22em; height: .22em; margin: 0 -.34em 0 .12em; vertical-align: middle; border-radius: 50%; background: currentColor; animation: mm-caret 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .sw[data-cur="1"]::after { display: none; } }
.sw__g { position: absolute; left: 0; top: 0; color: transparent; text-shadow: 0 0 .16em var(--gc, rgba(29, 29, 31, .8)); opacity: 0; pointer-events: none; -webkit-user-select: none; user-select: none; }

/* С анимациями: закреплённая сцена, вопросы сменяют друг друга в одном месте */
.anim .intro { height: 480vh; } /* +80vh — выход «как в Матрице» */
@media (max-width: 767px) { .anim .intro { height: 384vh; } }
.ch { display: inline-block; }
.anim .intro__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.anim .intro__stage { position: absolute; inset: var(--head) 0 0; width: auto; margin: 0; padding: 0 var(--gut); display: grid; place-items: center; }
.anim .intro__qs, .anim .intro__reveal, .anim .intro__q { grid-area: 1 / 1; }
.anim .intro__qs { display: grid; place-items: center; }
.anim .intro__q + .intro__q { margin-top: 0; }
.anim .intro__q p { font-size: clamp(38px, min(6.6vw, 11.5vh), 104px); max-width: 11.5em; line-height: 1.02; }
.anim .intro__q--long p { font-size: clamp(31px, min(5.3vw, 9.5vh), 84px); max-width: 13em; }
@media (min-width: 600px) and (max-width: 899px) {
  .anim .intro__q p { font-size: min(8.6vw, 7.5vh); }
  .anim .intro__q--long p { font-size: min(6.8vw, 5.8vh); }
}
@media (max-width: 599px) {
  .anim .intro__q p { font-size: min(11.4vw, 7vh); }
  .anim .intro__q--long p { font-size: min(8.8vw, 5.6vh); }
}
.anim .intro__reveal { margin-top: 0; }
/* 2-й и 3-й вопросы и финал прячутся, пока main.js не настроил сцену (класс is-init): иначе на миг видны все вопросы разом */
.anim .intro:not(.is-init) .intro__q ~ .intro__q, .anim .intro:not(.is-init) .intro__reveal { opacity: 0; }
/* Первый вопрос виден сразу, с первой отрисовки (это самый крупный текст первого экрана — от него считается LCP);
   «печатаются» только 2-й и 3-й вопросы. Логотипы под ним мягко проявляются сами, без скрипта */
.anim .intro__logos { animation: mm-fade-up .9s var(--ease) .35s backwards; } /* backwards: после проявления стиль анимации снимается и не мешает GSAP прятать логотипы при прокрутке */
@keyframes mm-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Парящие детали приложения (только с анимациями) */
.intro__bits { display: none; }
.anim .intro__bits { display: block; position: absolute; inset: var(--head) 0 0; font-size: clamp(10.5px, .95vw, 14px); line-height: 1.25; text-align: left; pointer-events: none; }
.bit { position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: max-content; }
/* Полёт к значку, параллакс и перебежки: transform и opacity каждой детали пишет main.js (paint).
   Формула ниже — та же, с нулевыми значениями: без скрипта деталь просто стоит на месте */
.anim .bit {
  --k: 0; --pk: 0; --fx: 0px; --fy: 0px; --pz: 0px;
  /* смена вопроса: детали перебегают на места друг друга (--s2 и --s3 от 0 до 1; сдвиги --d2x, --d2y, --d3x, --d3y считает main.js) */
  --s2: 0; --s3: 0; --d2x: 0px; --d2y: 0px; --d3x: 0px; --d3y: 0px;
  /* видимый центр детали — левый верхний угол .bit (у .bit__in сдвиг −50%), поэтому и уменьшаем от него: детали слетаются точно в центр значка */
  transform-origin: 0 0;
  transform: translate3d(
    calc(var(--fx) * var(--k) + (1 - var(--k)) * (var(--d2x) * var(--s2) + var(--d3x) * var(--s3))),
    calc(var(--fy) * var(--k) + (1 - var(--k)) * (var(--d2y) * var(--s2) + var(--d3y) * var(--s3)) - var(--pz) * var(--pk)),
    0) scale(calc(1 - .82 * var(--k)));
  opacity: calc(1 - var(--k) * var(--k) * var(--k));
}
.bit__in { translate: -50% -50%; animation: bit-drift var(--dd, 9s) ease-in-out var(--dl, 0s) infinite alternate; }
.anim .bit__in { opacity: 0; transition: opacity 1.1s var(--ease) calc(var(--i, 0) * 70ms + .2s); }
.anim.ready .bit__in { opacity: 1; }
.lite .bit__in { animation: none; }
/* Вступление ушло с экрана — детали не рисуем и не анимируем */
.anim .intro:not(.is-near) .intro__bits { visibility: hidden; }
.anim .intro:not(.is-near) .bit__in { animation-play-state: paused; }
@keyframes bit-drift { 0% { transform: translate3d(-4px, -7px, 0) rotate(-1.4deg); } 100% { transform: translate3d(4px, 7px, 0) rotate(1.4deg); } }
.bit:nth-child(2n) { --dd: 11s; --dl: -3s; }
.bit:nth-child(3n) { --dd: 8s; --dl: -5s; }
.bit:nth-child(5n) { --dd: 12.5s; --dl: -1.5s; }

.bit--order .bit__in, .bit--stop .bit__in, .bit--qr .bit__in, .bit--sum .bit__in, .bit--client .bit__in {
  background: #fff; border-radius: 1.15em;
  box-shadow: 0 1.5em 2.8em -1.3em rgba(0, 0, 0, .24), 0 0 0 1px rgba(0, 0, 0, .05);
}
.bit i { font-style: normal; }
.bit--order .bit__in { display: flex; align-items: center; gap: .85em; padding: .8em 1.25em .8em .8em; }
.bo__ic { flex: none; display: grid; place-items: center; width: 2.7em; height: 2.7em; border-radius: .75em; background: var(--red); color: #fff; }
.bo__ic svg { width: 1.35em; height: 1.35em; }
.bo__t { display: flex; flex-direction: column; }
.bo__t small { font-size: .64em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.bo__t b { font-size: 1.55em; letter-spacing: -.03em; line-height: 1.15; }
.bo__t b i, .bit--sum b i, .bit--new b i { color: var(--red); }
.bo__t em { font-style: normal; font-size: .74em; color: var(--text2); }
.bit--chips .bit__in { display: flex; gap: .5em; }
.chp { padding: .6em 1.05em; border-radius: 980px; background: #fff; box-shadow: inset 0 0 0 1px #e1e1e6; font-size: .95em; font-weight: 600; }
.chp--on { background: var(--text); color: #fff; box-shadow: none; }
.bit--ic .bit__in { display: grid; place-items: center; width: 3.7em; height: 3.7em; border-radius: 50%; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1.5px rgba(29, 29, 31, .3); }
.bit--ic svg { width: 1.75em; height: 1.75em; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bit--new .bit__in { display: flex; align-items: center; gap: .5em; }
.bit--new b { padding: .42em .8em; border-radius: .7em; background: var(--text); color: #fff; font-size: 1.1em; letter-spacing: -.02em; }
.bit--new span, .bit--badge span { padding: .45em .8em; border-radius: .7em; background: #fde8e9; color: #c4161c; font-size: .9em; font-weight: 600; } /* 5,1:1 на розовом */
.bit--qr .bit__in { padding: .75em; }
.bit--qr .qr { display: block; width: 5.4em; height: 5.4em; }
.tg { position: relative; display: block; flex: none; width: 2.9em; height: 1.7em; border-radius: 1em; background: #d9d9de; }
.tg::after { content: ""; position: absolute; left: .2em; top: .2em; width: 1.3em; height: 1.3em; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.tg.is-on { background: var(--red); }
.tg.is-on::after { left: auto; right: .2em; }
.tg--line { width: 4.3em; height: 2.5em; border-radius: 1.3em; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1.5px rgba(29, 29, 31, .55); }
.tg--line.is-on { background: rgba(255, 255, 255, .75); }
.tg--line::after { width: 1.7em; height: 1.7em; top: .4em; left: .4em; background: none; box-shadow: inset 0 0 0 1.5px rgba(29, 29, 31, .55); }
.tg--line.is-on::after { left: auto; right: .4em; background: var(--text); box-shadow: none; }
.bit--stop .bit__in { display: flex; flex-direction: column; gap: .6em; width: 15.5em; padding: .9em 1em 1em; }
.bs__h { font-size: .68em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.bs__row { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: .95em; font-weight: 600; }
.bit--sum .bit__in { display: flex; align-items: baseline; gap: 2.4em; padding: .75em 1.2em; }
.bit--sum span { color: var(--text2); font-size: .95em; }
.bit--sum b { font-size: 1.25em; letter-spacing: -.02em; }
.bit--client .bit__in { display: flex; align-items: center; gap: .7em; padding: .7em 1.2em .7em .7em; }
.bc__av { flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--bg2); font-weight: 700; }
.bc__t { display: flex; flex-direction: column; }
.bc__t b { font-size: .98em; }
.bc__t small { font-size: .8em; color: var(--text2); }
.bit--accept .bit__in { display: flex; align-items: center; gap: .55em; padding: .95em 1.7em; border-radius: 980px; background: var(--red); color: #fff; font-weight: 600; font-size: 1.05em; box-shadow: 0 1.2em 2.2em -1em rgba(227, 30, 36, .6); }
.bit--accept svg { width: 1.15em; height: 1.15em; }

/* Где парят детали: по краям и в пустых местах вокруг вопроса */
.bit--order { --x: 16%; --y: 15%; }
.bit--chips { --x: 41%; --y: 9%; }
.bit--chip2 { --x: 30%; --y: 27%; } /* «Мира · 1» отдельно от «Садовая · 3» (просьба владельца) */
.bit--cart { --x: 59%; --y: 13%; }
.bit--new { --x: 73%; --y: 9%; }
.bit--badge { --x: 17%; --y: 47%; } /* «Новый» отдельно от суммы (просьба владельца) */
.bit--qr { --x: 88%; --y: 19%; }
.bit--bell { --x: 5.5%; --y: 50%; }
.bit--tgl { --x: 94%; --y: 52%; }
.bit--stop { --x: 15%; --y: 85%; }
.bit--sum { --x: 37%; --y: 92%; }
.bit--pin { --x: 57%; --y: 88%; }
.bit--client { --x: 71%; --y: 93%; }
.bit--accept { --x: 87%; --y: 82%; }
/* значки платформ и будущих версий (просьба владельца): Битрикс, WordPress, Windows-касса, курьеры */
.bit--bxm { --x: 6.5%; --y: 29%; }
.bit--wpm { --x: 94.5%; --y: 36%; }
.bit--win { --x: 4.5%; --y: 69%; }
.bit--courier { --x: 95%; --y: 68%; }
.bit--lg .bit__in { background: #fff; }
.bit--lg img { width: 2.1em; height: 2.1em; display: block; }
/* знак 1С-Битрикс крупнее знака WordPress в 1,15 раза */
.bit--bxm .bit__in { width: 4.25em; height: 4.25em; }
.bit--bxm img { width: 2.42em; height: 2.42em; }
@media (max-width: 899px) {
  .bit--bxm, .bit--wpm, .bit--win, .bit--courier { display: none; }
  .bit--order { --x: 24%; --y: 10%; }
  .bit--chips { --x: 52%; --y: 8%; }  /* чипы точек и «1 560 ₽ Новый» — по разные стороны (просьба владельца) */
  .bit--chip2 { --x: 63%; --y: 30%; }
  .bit--new { --x: 86%; --y: 9%; }
  .bit--badge { --x: 10%; --y: 45%; }
  .bit--cart { --x: 12%; --y: 29%; }
  .bit--qr { --x: 88%; --y: 31%; }
  .bit--bell { --x: 38%; --y: 31%; }
  .bit--tgl { --x: 46%; --y: 70%; }
  .bit--stop { --x: 22%; --y: 76%; }
  .bit--sum { --x: 66%; --y: 74%; }
  .bit--pin { --x: 90%; --y: 82%; }
  .bit--client { --x: 27%; --y: 91%; }
  .bit--accept { --x: 72%; --y: 89%; }
}
/* Телефон: вопрос с крупными логотипами занимает середину экрана — детали только сверху и снизу от него */
@media (max-width: 599px) {
  .bit--cart, .bit--new, .bit--badge, .bit--chip2, .bit--sum, .bit--pin, .bit--client { display: none; }
  .bit--order { --x: 31%; --y: 10%; }
  .bit--qr { --x: 82%; --y: 12%; }
  .bit--chips { --x: 34%; --y: 21%; }
  .bit--bell { --x: 80%; --y: 23.5%; }
  .bit--stop { --x: 30%; --y: 78%; }
  .bit--tgl { --x: 84%; --y: 74%; }
  .bit--accept { --x: 67%; --y: 89%; }
}
@media (max-width: 599px) and (max-height: 700px) {
  .bit--bell, .bit--stop { display: none; }
  .bit--tgl { --x: 86%; --y: 82%; }
  .bit--accept { --x: 46%; --y: 92%; }
}
@media (max-width: 359px) { .bit--chips { display: none; } .bit--tgl { --x: 87%; --y: 84%; } .bit--accept { --y: 93%; } } /* 320 px: иначе деталям негде меняться местами */
/* Низкий экран (телефон боком, невысокое окно): сцена 270–450 px — оставляем шесть мелких деталей по бокам, вне текста */
@media (max-height: 500px) and (orientation: landscape) {
  .bit { display: none; }
  .bit--bxm, .bit--qr, .bit--bell, .bit--cart, .bit--tgl, .bit--pin { display: block; }
  .bit--bxm { --x: 8%; --y: 22%; }
  .bit--qr { --x: 91%; --y: 26%; }
  .bit--bell { --x: 6%; --y: 60%; }
  .bit--cart { --x: 14%; --y: 88%; }
  .bit--tgl { --x: 92%; --y: 69%; }
  .bit--pin { --x: 85%; --y: 92%; }
  .anim .intro__q p { font-size: min(6.4vw, 9.5vh); }
  .anim .intro__q--long p { font-size: min(5.2vw, 7.6vh); }
  .intro__logos { --lgh: min(40px, 10vh); flex-direction: row; gap: 10px 28px; margin-top: 14px; }
  .intro__tile { width: min(96px, 22vh); }
  .intro__title { margin-top: 14px; font-size: min(5.2vw, 11vh); }
  .intro__sub { margin-top: 10px; font-size: 16px; }
}

/* ---------- 2. HERO ---------- */
.hero { position: relative; }
.hero__sticky {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--head) + 40px) 0 72px; display: flex; align-items: center;
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__lead { margin-top: 24px; max-width: 28em; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 36px; }
.hero__stage { position: relative; display: grid; place-items: center; perspective: 2400px; }
.hero { --pw: min(300px, 70vw); }
.hero .phone { --w: var(--pw); }
.hero .rings { --rw: var(--pw); }
.scroll-hint { display: none; }

@media (min-width: 900px) {
  .hero { --pw: min(330px, calc((100svh - var(--head) - 110px) / 2.1367)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--pw) + 110px)); gap: 40px; }
  .hero .h1 { font-size: clamp(44px, 5.2vw, 80px); }
}
@media (max-width: 899px) {
  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
}

/* Анимированный HERO: закреплён, телефон собирается при прокрутке */
.anim .hero { height: 600vh; margin-top: -30vh; } /* блок 2 начинает подниматься, пока буквы «Матрицы» ещё летят: без пустого экрана на стыке; высота — на сборку телефона, падение деталей в экран и звонок */
@media (min-width: 900px) { .anim .hero { margin-top: -45vh; } } /* в две колонки текст героя стоит по центру высоты — заходим раньше */
.anim .hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding: var(--head) 0 0; overflow: hidden; overflow: clip visible; /* по вертикали не режем: иначе тень телефона обрывается ровной полосой */ }
.anim .hero__grid { width: min(100% - 2 * var(--gut), var(--wrap)); }
.anim .hero .phone__tilt, .anim .hero .phone__spin, .anim .hero .ph-frame, .anim .hero .ph-screen,
.anim .hero .ph-glass, .anim .hero .ph-cam, .anim .hero .ph-btn { will-change: transform; }
.anim:not(.ready) .hero__stage { opacity: 0; }
.anim .scroll-hint {
  display: block; position: absolute; left: 0; right: 0; bottom: 22px; text-align: center;
  font-size: 13px; color: var(--text2); font-weight: 500;
}
.anim .scroll-hint span::after {
  content: ""; display: block; width: 8px; height: 8px; margin: 8px auto 0;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(5px) rotate(45deg); opacity: 1; } }

@media (max-width: 899px) {
  .anim .hero { --pw: min(68vw, 300px, calc((100svh - var(--head) - 64px) / 2.1367)); }
  .anim .hero__grid { display: block; }
  .anim .hero__text { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--head) + 4svh); padding-inline: var(--gut); }
  .anim .hero__stage { position: absolute; inset: var(--head) 0 0; }
  .anim .hero .hero__lead { font-size: 17px; margin-top: 14px; }
  .anim .hero .hero__cta { margin-top: 22px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .anim .hero .hero__lead { display: none; }
  .anim .scroll-hint { display: none; }
}

/* ---------- 2б. Экран телефона собирается из своих же кусков ----------
   Экран HERO сначала пустой (.ph-blank поверх снимка) и по цвету ровно как фон приложения, поэтому куски
   приземляются незаметно для глаза. Куски — окна в тот же снимок экрана: логотип, звоночек, номер заказа,
   чёрная карточка 1820 ₽, строки, блюда, телефон, «Принять заказ». Когда все на месте, экран собран
   пиксель в пиксель, и куски вместе с белым слоем растворяются — остаётся сам снимок. Размеры и места
   кусков задаёт main.js (таблица PIECES в пикселях снимка 720×1600). */
/* белый «пустой» экран: существует только там, где сцена сборки действительно играет —
   без анимаций (reduced-motion, нет JS) экран сразу настоящий */
.ph-blank { display: none; }
.anim .hero .ph-blank { display: block; position: absolute; inset: 0; background: #fbf9f5; } /* фон снимка 02-alarm-new-order */
.spill { display: none; }
.anim .spill {
  display: block; position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  z-index: 30; pointer-events: none;
  font-size: clamp(10.5px, .95vw, 14px); line-height: 1.25; text-align: left; /* размер значков из вступления */
}
/* кусок экрана: своим центром стоит в начале координат слоя (центровку и полёт ведёт GSAP —
   xPercent/yPercent: -50 и x/y/scale/поворот, поэтому CSS translate здесь не годится: GSAP его снимает) */
.anim .spill .pc {
  position: absolute; left: 0; top: 0; opacity: 0;
  background-image: var(--pc-src); background-repeat: no-repeat;
  will-change: transform, opacity;
}
/* Фрагменты интерфейса вложены прямо в ph-screen, чтобы собираться по перспективной плоскости
   лежащего телефона, а не по экранным X/Y координатам до того, как телефон встанет. */
.anim .hero .ph-screen .pc {
  position: absolute; left: 0; top: 0; z-index: 3; opacity: 0;
  background-image: var(--pc-src); background-repeat: no-repeat;
  will-change: transform, opacity; pointer-events: none;
}
.anim .hero .ph-screen .spill-target {
  position: absolute; z-index: 4; width: calc(var(--w) * .032); height: calc(var(--w) * .032);
  transform: translate(-50%, -50%); border: 1px solid rgba(237, 28, 36, .55); border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 28, 36, .92) 0 18%, rgba(237, 28, 36, .28) 38%, rgba(237, 28, 36, 0) 72%);
  box-shadow: 0 0 calc(var(--w) * .025) rgba(237, 28, 36, .28);
  opacity: 0; pointer-events: none; margin: 0; padding: 0;
}
.anim .hero .ph-screen .spill-impact {
  position: absolute; z-index: 5; width: calc(var(--w) * .10); height: calc(var(--w) * .10);
  border: 1.5px solid rgba(237, 28, 36, .82); border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 28, 36, .24) 0%, rgba(237, 28, 36, .08) 42%, rgba(237, 28, 36, 0) 72%);
  box-shadow: 0 0 calc(var(--w) * .035) rgba(237, 28, 36, .36), inset 0 0 calc(var(--w) * .025) rgba(237, 28, 36, .22);
  opacity: 0; transform: translate(-50%, -50%) scale(.45); pointer-events: none;
}
/* значок из вступления: обёртка нулевого размера, деталь внутри стоит своим центром в её начале координат */
.anim .spill .spill__p { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform, opacity; }
.anim .spill .spill__p .bit__in { will-change: filter; }
.spill .bit { position: static; left: auto; top: auto; }
.anim .spill .bit__in { translate: -50% -50%; animation: none; opacity: 1; transition: none; }
/* v8: красная точка, в которую превращается значок, не нужный на экране заказа */
.spill__dot { display: none; }
.anim .spill .spill__dot {
  display: block; position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: radial-gradient(circle at 38% 34%, #ff5a5f 0, #ed1c24 55%, #b5121a 100%);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, .18), 0 0 18px rgba(237, 28, 36, .55); opacity: 0; pointer-events: none;
}
/* облегчённый режим: сцена кусков не запускается, экран сразу настоящий */
.lite .hero .ph-blank { display: none; }

/* Телефон-путешественник: из HERO на место телефона в «Как подключить». Положение и размер задаёт main.js */
.trav { display: none; }
.anim .trav { display: block; position: fixed; z-index: 40; left: 0; top: 0; visibility: hidden; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.anim .trav .phone { --w: var(--tw, 300px); }
.trav .scr { transition: none; }
.anim.trav-on .trav { visibility: visible; }
.anim.trav-on .hero .phone, .anim.trav-on .hero .rings { visibility: hidden; }
.anim .connect.trav-pre .pin__phone .phone { visibility: hidden; }
/* Сцена «Как подключить» лежит над путешественником: QR-карточка и шаги не прячутся под ним */
.anim .connect .pin__stage { z-index: 41; }
/* Одна колонка (телефон, планшет стоя): переезда нет — заголовок «Один раз. И всё.» проезжал бы по телефону.
   Телефон HERO уезжает вместе с блоком, телефон «Как подключить» плавно проявляется (main.js) */
@media (max-width: 899px) {
  .anim .trav { display: none; }
}

/* ---------- Одна мысль ---------- */
.statement { padding: var(--sec) 0; }
.statement__text { font-size: clamp(30px, 4.6vw, 60px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; max-width: 1000px; }
.statement__text .w { display: inline; }
.anim .statement__text .w { color: var(--text3); } /* main.js по прокрутке доводит цвет до #1d1d1f */

/* ---------- Закреплённые сцены (подключение и экраны) ---------- */
.connect, .tour { padding-top: var(--sec); }
.pin { position: relative; }
.pin__stage { position: relative; padding: 24px 0 64px; }
.js .pin { height: calc(100vh + var(--len) * 1vh); height: calc(100svh + var(--len) * 1vh); }
.js .pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: var(--head) 0 0; overflow: hidden; display: flex; align-items: center; }
.pin__grid { position: relative; display: grid; align-items: center; }
.pin__phone { position: relative; display: grid; place-items: center; }
.pin { --pw: min(320px, calc((100svh - var(--head) - 80px) / 2.1367)); }
.pin .phone { --w: var(--pw); }
.pin .rings { --rw: var(--pw); }

/* Шаги подключения */
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: flex; gap: 20px; }
.step__n {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg2); font-weight: 700; font-size: 16px; transition: background-color .4s, color .4s;
}
.step.is-on .step__n { background: var(--text); color: #fff; }
.step h3 { font-size: clamp(24px, 2.7vw, 38px); letter-spacing: -.03em; }
.step p { margin-top: 10px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text2); max-width: 26em; }
.step__bar { display: none; }

.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .35s var(--ease), background-color .35s; }
.dots i.is-on { width: 20px; background: var(--text); }

/* Карточка админки с QR-кодом */
.qr-card {
  position: absolute; z-index: 3; left: calc(var(--pw) * -.5); bottom: 12%; width: clamp(170px, 15vw, 210px);
  background: #fff; border-radius: 18px; padding: 10px 14px 16px; text-align: center;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .06);
  transition: opacity .5s ease, transform .6s var(--ease);
}
.qr-card__bar { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--text2); }
.qr-card__bar i { width: 7px; height: 7px; border-radius: 50%; background: #e5e5ea; }
.qr-card__bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-card__title { margin-top: 10px; font-size: 13px; font-weight: 700; }
.qr-card__code { position: relative; margin: 10px auto 0; width: 76%; aspect-ratio: 1; overflow: hidden; }
.qr { display: block; width: 100%; height: 100%; fill: var(--text); }
.qr-card__scan { position: absolute; inset: 0; animation: scan 2.2s ease-in-out infinite; }
.qr-card__scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); box-shadow: 0 0 10px 2px rgba(227, 30, 36, .45); }
@keyframes scan { 0%, 100% { transform: translateY(2%); } 50% { transform: translateY(96%); } }
.qr-card__hint { margin-top: 10px; font-size: 11px; color: var(--text2); }
.connect:not([data-step="0"]) .qr-card { opacity: 0; transform: translateX(-24px); pointer-events: none; }

/* Подписи к экранам */
.caps { display: grid; }
.cap__k { font-size: 15px; font-weight: 600; color: var(--red); margin-bottom: 14px; }
.cap h3 { font-size: clamp(30px, 4.2vw, 58px); letter-spacing: -.04em; line-height: 1.04; }
.cap p:not(.cap__k) { margin-top: 18px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.42; color: var(--text2); max-width: 24em; }
.index { display: none; list-style: none; margin: 0; padding: 0; }

/* Старая подпись быстро гаснет, новая входит с задержкой — тексты не наслаиваются друг на друга */
.js .cap { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); transition: opacity .2s ease, transform .6s var(--ease); pointer-events: none; }
.js .cap.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .45s ease .16s, transform .6s var(--ease) .16s; }

@media (min-width: 900px) {
  /* Заголовок «Один раз. И всё.» не заходит под правую колонку: туда приезжает телефон */
  .connect > .head { padding-right: calc(min(320px, (100svh - var(--head) - 80px) / 2.1367) + clamp(40px, 7vw, 120px)); }
  .pin__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 0 clamp(40px, 7vw, 120px); }
  .pin__grid > :not(.pin__phone):not(.index) { grid-column: 1; }
  .pin__phone { grid-column: 2; grid-row: 1 / span 2; }
  .step { padding: 26px 0; border-top: 1px solid var(--line); }
  .step:last-child { border-bottom: 1px solid var(--line); }
  /* неактивный шаг — серее, но читается: заголовок #86868b (крупный жирный, 3,6:1), текст #6e6e73 (5,1:1) */
  .js .step h3 { color: var(--text3); transition: color .45s ease; }
  .js .step p { transition: color .45s ease; }
  .js .step.is-on h3 { color: var(--text); }
  .js .step.is-on p { color: #424245; }
  .js .step__bar { display: block; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--text); transform-origin: 0 50%; transform: scaleX(var(--lp, 0)); }
  .step:not(.is-on) .step__bar { visibility: hidden; }
  .connect .dots { display: none; }
}
@media (min-width: 1200px) {
  .pin__grid--tour { grid-template-columns: minmax(0, 1fr) auto 170px; }
  .tour .dots { display: none; }
  .index { display: block; grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 14px; color: var(--text2); }
  .index li { position: relative; padding: 7px 0 7px 18px; transition: color .3s; }
  .index li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line); transition: background-color .3s, transform .3s; }
  .index li.is-on { color: var(--text); font-weight: 600; }
  .index li.is-on::before { background: var(--red); transform: scale(1.35); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .tour .dots { grid-column: 1; justify-content: flex-start; margin-top: 28px; }
}

@media (max-width: 899px) {
  .pin { --pw: min(56vw, 280px, calc((100svh - var(--head) - 250px) / 2.1367)); }
  .tour .pin { --pw: min(58vw, 280px, calc((100svh - var(--head) - 270px) / 2.1367)); }
  .pin__grid { grid-template-columns: 1fr; gap: 22px; }
  .pin__phone { order: -1; }
  .qr-card { display: none; }
  .js .steps { display: grid; }
  .js .step { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .2s ease, transform .5s var(--ease); }
  .js .step.is-on { opacity: 1; transform: none; transition: opacity .4s ease .16s, transform .5s var(--ease) .16s; }
  .step { justify-content: center; text-align: left; }
  .step h3 { font-size: 24px; }
  .step p { font-size: 16px; margin-top: 6px; }
  .cap { text-align: center; }
  .cap__k { margin-bottom: 6px; font-size: 14px; }
  .cap h3 { font-size: clamp(26px, 7vw, 34px); }
  .cap p:not(.cap__k) { margin: 10px auto 0; font-size: 16px; max-width: 30em; }
  html:not(.js) .step + .step, html:not(.js) .cap + .cap { margin-top: 28px; }
}
html:not(.js) .dots { display: none; }

/* ---------- 4. Работает с вашим сайтом ---------- */
.works { padding: var(--sec) 0; overflow: hidden; }
.works__row { --bxw: clamp(60px, 8.6vw, 124px); --wpw: clamp(52px, 7.5vw, 108px); display: flex; align-items: center; justify-content: center; }
.logo-card {
  flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  width: clamp(100px, 19vw, 240px); padding: clamp(16px, 2.4vw, 34px) 8px;
  background: var(--bg2); border-radius: clamp(20px, 2.4vw, 30px);
  align-self: stretch; justify-content: flex-start; /* обе карточки одной высоты; знаки и названия на одной линии, подписи — от верха */
}
/* Официальные знаки без перекраски. 1С-Битрикс крупнее WordPress в 1,15 раза */
.logo-card__mark { display: block; height: auto; aspect-ratio: 1; margin-bottom: clamp(8px, 1.2vw, 16px); }
.logo-card--bx .logo-card__mark { width: var(--bxw); }
/* меньший знак WordPress стоит по центру той же высоты, что и знак Битрикса, — названия совпадают по линии */
.logo-card--wp .logo-card__mark { width: var(--wpw); margin-top: calc((var(--bxw) - var(--wpw)) / 2); margin-bottom: calc((var(--bxw) - var(--wpw)) / 2 + clamp(8px, 1.2vw, 16px)); }
.logo-card b { font-size: clamp(14px, 1.5vw, 20px); letter-spacing: -.02em; }
.logo-card small { font-size: clamp(11px, 1vw, 14px); color: var(--text2); }
.works__app { flex: none; width: clamp(80px, 12vw, 150px); text-align: center; }
.works__app img { display: block; width: 100%; height: auto; border-radius: 22.5%; box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .45); }
.works__app b { display: block; margin-top: 12px; font-size: clamp(12px, 1.2vw, 16px); }
@media (max-width: 599px) {
  .works__app b { margin-inline: -14px; white-space: nowrap; } /* «Master Manager» в одну строку */
}
/* Совсем узкий экран (320 px): ряд «Битрикс — значок — WordPress» помещается в 288 px */
@media (max-width: 359px) {
  .works__row { --bxw: 52px; --wpw: 45px; }
  .logo-card { width: 86px; padding-inline: 4px; }
  .works__app { width: 64px; }
  .works__app b { font-size: 11px; margin-inline: -18px; }
  .works__line { min-width: 8px; margin-inline: 4px; }
}
.works__line { position: relative; flex: 1 1 0; max-width: 150px; min-width: 14px; height: 2px; margin: 0 clamp(6px, 1.4vw, 18px); margin-bottom: clamp(24px, 3vw, 34px); background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); }
.works__line { transform-origin: 0 50%; }
.works__line--rev { transform-origin: 100% 50%; }
.works__line i { position: absolute; inset: 0; transform: translateX(-100%); }
.works__line i::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227, 30, 36, .14); }
.works__line--rev i { transform: translateX(100%); }
.works__line--rev i::after { right: auto; left: -4px; }
.works.is-live .works__line i { animation: flow 1.9s cubic-bezier(.5, 0, .5, 1) infinite; }
.works.is-live .works__line--rev i { animation-name: flowrev; animation-delay: .5s; }
@keyframes flow { 0% { transform: translateX(-100%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes flowrev { 0% { transform: translateX(100%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(44px, 6vw, 72px); }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px 18px; border-radius: 980px; background: var(--bg2); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- 5. Bento ---------- */
.bento-sec { padding: 0 0 var(--sec); }
.bento { display: grid; gap: clamp(14px, 1.6vw, 22px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; min-height: 380px; padding: clamp(24px, 2.6vw, 36px); background: var(--bg2); border-radius: clamp(22px, 2.4vw, 30px); overflow: hidden; }
.tile h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; }
.tile p { margin-top: 10px; font-size: 16px; color: var(--text2); line-height: 1.42; }
.tile--xl { grid-column: span 2; grid-row: span 2; min-height: 640px; }
.tile--xl h3 { font-size: clamp(28px, 3.4vw, 48px); letter-spacing: -.04em; }
.tile--xl p { font-size: clamp(17px, 1.5vw, 21px); max-width: 22em; }
.tile__phone { --tw: clamp(230px, 25vw, 330px); flex: 1 1 auto; height: 0; min-height: calc(var(--tw) * 1.02); display: flex; justify-content: center; align-items: flex-start; padding-top: 8px; }
.tile__phone .phone { --w: var(--tw); }

.printer { position: relative; margin: auto -6px -36px; height: 250px; overflow: hidden; }
.printer__slot { position: absolute; z-index: 2; top: 0; left: 6%; right: 6%; height: 16px; border-radius: 8px; background: linear-gradient(#36363a, #161618); box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); }
.printer__paper { position: absolute; top: 8px; left: 16%; right: 16%; }
.printer__paper img { display: block; width: 100%; height: auto; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .35); }

.crop { margin: auto 0 0; margin-top: auto; padding-top: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 18px 36px -24px rgba(0, 0, 0, .3); background: #fff; }
.crop--tall { aspect-ratio: 4 / 3; }
.crop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--y, 50%); }
.tile .crop { margin-top: 24px; }
.tile__text + .crop { margin-top: auto; }
.tile__text { margin-bottom: 24px; }

.callers { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.callers li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.callers__av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg2); font-weight: 700; font-size: 14px; }
.callers li > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.callers b { font-size: 14px; letter-spacing: -.01em; }
.callers small { font-size: 12px; color: var(--text2); }
.callers__on { flex: none; position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--red); } /* как в приложении */
.callers__on::after { content: ""; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

.direct { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 0; padding: 30px 0 10px; }
.direct__site { flex: none; padding: 9px 14px; border-radius: 980px; background: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.direct__line { position: relative; flex: 1; max-width: 70px; height: 2px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px); }
.direct__line i { position: absolute; inset: 0; animation: flow 1.9s cubic-bezier(.5, 0, .5, 1) infinite; }
.direct__line i::after { content: ""; position: absolute; right: 0; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.direct__lock, .direct__phone { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.direct__lock { background: var(--text); color: #fff; }

@media (max-width: 899px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--xl { grid-column: span 2; grid-row: auto; min-height: 0; }
}
@media (max-width: 599px) {
  .bento { grid-template-columns: 1fr; }
  .tile--xl { grid-column: auto; }
  .tile { min-height: 340px; }
  .tile__phone { --tw: min(62vw, 250px); }
}

/* ---------- 6. Три шага ---------- */
.trio-sec { padding: var(--sec) 0; background: rgba(245, 245, 247, .9); /* сквозь серый чуть виден живой фон */ }
.trio-sec .eyebrow, .multi .eyebrow, .tile .eyebrow, .set .eyebrow, .price-card .eyebrow { color: var(--red2); } /* на сером красный темнее: контраст 5,4:1 */
.trio { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.trio li { position: relative; padding: clamp(28px, 3vw, 44px); background: #fff; border-radius: clamp(22px, 2.4vw, 30px); }
.trio__n { position: absolute; top: clamp(22px, 2.4vw, 34px); right: clamp(24px, 2.6vw, 38px); font-size: clamp(44px, 5vw, 72px); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: #e8e8ed; }
.trio__ic { display: block; color: var(--text); margin-bottom: 40px; }
.trio h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; }
.trio p { margin-top: 10px; color: var(--text2); font-size: 16px; }
.trio__note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; font-size: 16px; color: var(--text2); text-align: center; }
.trio__note svg { flex: none; color: var(--red); }
@media (max-width: 899px) { .trio { grid-template-columns: 1fr; } .trio__ic { margin-bottom: 24px; } }

/* ---------- 7. Цена ---------- */
.price { padding: var(--sec) 0; }
.price-card { max-width: 600px; margin: 0 auto; text-align: center; padding: clamp(36px, 5vw, 64px) clamp(22px, 4vw, 56px); background: var(--bg2); border-radius: clamp(26px, 3vw, 36px); }
.price-card__icon { display: block; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 16px; }
.price-card__name { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; }
.price-card__sum { margin-top: 18px; font-size: clamp(56px, 8vw, 96px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.price-card__sub { margin-top: 10px; font-size: 19px; color: var(--text2); }
.price-card__split { display: inline-block; margin-top: 18px; padding: 9px 18px; border-radius: 980px; background: #fff; font-size: 16px; }
.price-card__list { list-style: none; margin: 32px auto 36px; padding: 0; max-width: 400px; text-align: left; }
.price-card__list li { position: relative; padding: 12px 0 12px 32px; border-top: 1px solid var(--line); font-size: 16px; }
.price-card__list li:last-child { border-bottom: 1px solid var(--line); }
.price-card__list li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 6px; margin-top: -5px; border: solid var(--red); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.price-card__list li.is-soon { color: var(--text2); }
.price-card__list li.is-soon { padding-left: 0; }
.price-card__list li.is-soon::before { display: none; } /* в лицензию не входит — без галочки */
.price-card__list .badge { margin-left: 6px; }
.price-card__note { margin: 18px auto 0; max-width: 26em; padding: 12px 16px; border-radius: 14px; background: #fff; font-size: 15px; }
.price-card__fine { margin-top: 18px; font-size: 13px; color: var(--text2); }

/* ---------- 8. FAQ ---------- */
.faq { padding: 0 0 var(--sec); }
.faq__in { display: grid; gap: 40px; }
@media (min-width: 900px) { .faq__in { grid-template-columns: 1fr 2fr; gap: 64px; } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--text); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 44px 26px 0; font-size: 17px; color: var(--text2); max-width: 40em; }

/* ---------- 9. Подвал: колонки разделов, строка продавца, товарные знаки ---------- */
.foot { background: var(--bg2); padding: clamp(40px, 6vw, 64px) 0 48px; font-size: 13px; color: var(--text2); }
.foot__in { display: grid; gap: 22px; }
.foot__top { display: grid; gap: 28px; align-items: start; }
.foot__brand { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 700; font-size: 22px; letter-spacing: -.02em; } /* крупнее — просьба владельца */
.foot__brand img { width: 48px; height: 48px; border-radius: 12px; display: block; }
.foot__brand span { white-space: nowrap; }
.foot__ver { margin: 8px 0 0 62px; font-size: 12px; color: var(--text2); } /* версии под логотипом: приложение и сайт */
.foot__ver a { color: inherit; text-decoration: none; }
.foot__ver a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot__ver b { color: var(--text); font-weight: 600; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; }
.foot__h { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: .01em; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot__col a { display: inline-flex; align-items: center; gap: 7px; color: #424245; text-decoration: none; font-size: 13px; line-height: 1.35; }
.foot__col .nav__ico, .mmp-burger__legal .nav__ico { width: 15px; height: 15px; opacity: .75; }
.mmp-burger__legal a { display: inline-flex; align-items: center; gap: 7px; }
.foot__col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot__seller { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: #424245; }
.foot__seller a { color: inherit; }
.foot__small { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: var(--text2); }
.foot__made { margin: 10px 0 0; font-size: 12px; color: var(--text2); letter-spacing: .01em; } /* самая последняя строка подвала (просьба владельца) */
.foot__made b { color: var(--text); font-weight: 700; letter-spacing: .04em; }
.foot__seller:not([hidden]) + .foot__small { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .foot__top { grid-template-columns: 270px 1fr; } }
@media (max-width: 599px) {
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .foot__col ul { gap: 0; }
  .foot__col a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; } /* цель для пальца */
}

/* ---------- Кнопка «Наверх» ---------- */
.totop {
  position: fixed; z-index: 45; right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--mm-bottom-offset, 0px));
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  background: #fff; color: var(--text); border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .28), 0 1px 3px rgba(0, 0, 0, .06);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.92);
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s linear .5s, color .2s, border-color .2s, box-shadow .2s;
}
.totop.is-shown:not(.is-foot) { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s, color .2s, border-color .2s, box-shadow .2s; }
.totop svg { display: block; transition: transform .25s var(--ease); }
.totop:hover { color: var(--red); border-color: rgba(227, 30, 36, .35); box-shadow: 0 12px 28px -10px rgba(227, 30, 36, .4), 0 1px 3px rgba(0, 0, 0, .06); }
.totop:hover svg { transform: translateY(-2px); }
.totop:active { transform: scale(.94); }
.totop:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 50%; }
html:not(.js) .totop { display: none; }
@media (max-width: 599px) { .totop { width: 44px; height: 44px; } }

/* ---------- Бургер-меню в шапке (все страницы; поведение — assets/js/menu.js) ---------- */
.mmp-burger { position: static; display: flex; align-items: center; }
.mmp-burger__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 8px; margin: 0;
  border: 0; border-radius: 980px; background: transparent; color: #424245; font: 500 13px/1 var(--font); letter-spacing: -.01em;
  cursor: pointer; transition: background-color .2s, color .2s; -webkit-tap-highlight-color: transparent;
}
.mmp-burger__btn:hover, .mmp-burger.is-open .mmp-burger__btn { background: rgba(0, 0, 0, .05); color: var(--text); }
.mmp-burger__ic { position: relative; display: block; width: 16px; height: 10px; }
.mmp-burger__ic i { position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 1px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.mmp-burger__ic i:first-child { top: 1px; }
.mmp-burger__ic i:last-child { top: 7.4px; }
.mmp-burger.is-open .mmp-burger__ic i:first-child { top: 4.2px; transform: rotate(45deg); }
.mmp-burger.is-open .mmp-burger__ic i:last-child { top: 4.2px; transform: rotate(-45deg); }
html:not(.js):not(.mmp-js) .mmp-burger { display: none; } /* класс mmp-js ставит строка перед menu.js на внутренних страницах */
.mmp-burger__panel {
  position: absolute; top: calc(100% + 8px); right: max(var(--gut), calc((100% - var(--wrap)) / 2)); z-index: 60; width: min(340px, calc(100vw - 2 * var(--gut)));
  max-height: calc(100vh - var(--head) - 24px); max-height: calc(100svh - var(--head) - 24px); overflow: auto;
  padding: 10px; background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .06);
  animation: mmp-menu .28s var(--ease);
}
@keyframes mmp-menu { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.mmp-burger__panel[hidden] { display: none; }
.mmp-burger__list, .mmp-burger__legal { list-style: none; margin: 0; padding: 0; }
.mmp-burger__list a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 12px; border-radius: 12px;
  font-size: 17px; font-weight: 500; color: var(--text); text-decoration: none; letter-spacing: -.015em;
}
.mmp-burger__list .nav__ico { width: 20px; height: 20px; color: var(--text2); }
.mmp-burger__list a:hover, .mmp-burger__list a:focus-visible { background: var(--bg2); }
.mmp-burger__list a:hover .nav__ico { color: var(--red); }
.mmp-burger__list a[aria-current="page"] { background: var(--bg2); font-weight: 600; }
.mmp-burger__list a[aria-current="page"] .nav__ico { color: var(--red); }
/* На широком экране шапка уже показывает «Возможности», «Как подключить», «Цена» — в меню их не повторяем */
@media (min-width: 720px) { .mmp-burger__list .mmp-dup { display: none; } }
.mmp-burger__legal { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--line); }
.mmp-burger__legal a { font-size: 13px; color: var(--text2); text-decoration: none; }
.mmp-burger__legal a:hover, .mmp-burger__legal a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.nav .btn--sm + .mmp-burger { margin-left: calc(-1 * clamp(4px, 1.4vw, 18px)); }
@media (max-width: 719px) {
  .mmp-burger__btn { width: 40px; height: 40px; padding: 0; justify-content: center; margin-right: -8px; }
  .mmp-burger__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .mmp-burger__ic { width: 18px; height: 12px; }
  .mmp-burger__ic i:last-child { top: 9px; }
  .mmp-burger.is-open .mmp-burger__ic i { top: 5px !important; }
  .mmp-burger__panel { left: 8px; right: 8px; width: auto; top: calc(100% + 6px); border-radius: 18px; }
  .nav .btn--sm + .mmp-burger { margin-left: 0; }
}

/* ---------- «Возможности»: переключатель темы экранов ☀/☾ у телефона ---------- */
.scheme {
  position: absolute; z-index: 4; left: calc(50% + var(--pw) / 2 + 14px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 980px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .07);
}
.scheme__btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--text2); cursor: pointer; transition: background-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.scheme__btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scheme__btn:hover { color: var(--text); }
.scheme__btn[aria-pressed="true"] { background: var(--text); color: #fff; }
.scheme__btn[data-scheme-set="dark"][aria-pressed="true"] svg { fill: currentColor; }
.scheme__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 50%; }
html:not(.js) .scheme { display: none; }
.tour.is-dark .ph-screen { background: #0b0b0c; }
.scr--darkonly { display: none; }
.tour.is-dark .scr--darkonly { display: block; }
@media (max-width: 899px) { .scheme { left: calc(50% + var(--pw) / 2 + 10px); } }

/* ---------- «Днём и ночью»: шторка светлая/тёмная ---------- */
.dn { padding: var(--sec) 0 0; }
.dn__stage { --dw: clamp(232px, 24vw, 300px); position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 48px); }
.dn__phone { --w: var(--dw); }
.dn__screen { touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; --pos: 50%; }
.dn__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.dn__img--dark { clip-path: inset(0 0 0 var(--pos)); }
.dn__line { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18), 0 0 18px rgba(0, 0, 0, .35); pointer-events: none; }
.dn__knob {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--text);
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .08);
}
.dn__knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dn__range { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.dn__range:focus-visible + .dn__phone .dn__knob { outline: 3px solid var(--red); outline-offset: 3px; }
.dn__tag { flex: none; padding: 8px 16px; border-radius: 980px; background: var(--bg2); font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; user-select: none; }
.dn__tag--r { background: #1d1d1f; color: #fff; }
.dn__cap { margin-top: 28px; text-align: center; font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; color: var(--text); letter-spacing: -.015em; }
html:not(.js) .dn__line { display: none; }
html:not(.js) .dn__img--dark { clip-path: inset(0 0 0 50%); }
@media (max-width: 599px) {
  .dn__stage { --dw: min(64vw, 260px); flex-wrap: wrap; gap: 14px; }
  .dn__phone { order: 0; flex-basis: 100%; display: flex; justify-content: center; width: auto; height: calc(var(--dw) * 2.1367); }
  .dn__phone > .phone__buzz { position: relative; inset: auto; width: var(--dw); height: 100%; }
  .dn__tag { order: 1; font-size: 14px; padding: 7px 14px; }
}

/* ---------- Настройки: плитки ---------- */
.sets { padding: var(--sec) 0 0; }
.sets__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.set { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 32px); background: var(--bg2); border-radius: clamp(22px, 2.4vw, 30px); min-height: 250px; }
.set h3 { margin-top: 18px; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -.028em; line-height: 1.12; }
.set p { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--text2); }
.set__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff; color: var(--red); box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.set__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.set--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 210px); gap: 22px; align-items: end; overflow: hidden; }
.set--wide .set__text { align-self: start; }
.set__crop { margin: 0 0 calc(-1 * clamp(22px, 2.4vw, 32px)); aspect-ratio: 3 / 4; border-radius: 18px 18px 0 0; }
@media (max-width: 1099px) {
  .sets__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .sets__grid { grid-template-columns: 1fr; }
  .set--wide { grid-column: auto; grid-template-columns: 1fr; }
  .set__crop { max-width: 240px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 3; }
  .set { min-height: 0; }
}

/* ---------- Несколько сайтов — одно приложение (в блоке совместимости) ---------- */
.multi {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); align-items: center;
  margin-top: clamp(56px, 8vw, 104px); padding: clamp(28px, 4vw, 56px); background: var(--bg2); border-radius: clamp(26px, 3vw, 36px); overflow: hidden;
}
.multi__title { font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -.04em; line-height: 1.04; }
.multi__text > p:not(.eyebrow) { margin-top: 16px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.42; color: var(--text2); max-width: 30em; }
.multi__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 32em; }
.multi__list li { position: relative; padding-left: 28px; font-size: 16px; }
.multi__list li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 12px; height: 6px; border: solid var(--red); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.multi__marks { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.multi__marks img { display: block; height: auto; aspect-ratio: 1; }
.multi__marks img:first-child { width: 52px; }
.multi__marks img:last-of-type { width: 45px; }
.multi__plus { font-size: 22px; font-weight: 600; color: var(--text3); }
.multi__phone { --mw: clamp(220px, 22vw, 280px); display: flex; justify-content: center; margin-bottom: calc(-1 * clamp(28px, 4vw, 56px) - var(--mw) * .55); }
.multi__phone .phone { --w: var(--mw); }
@media (max-width: 799px) {
  .multi { grid-template-columns: 1fr; text-align: left; }
  .multi__phone { --mw: min(62vw, 250px); margin-bottom: calc(-1 * clamp(28px, 4vw, 56px) - var(--mw) * .9); }
}

/* ---------- Цена: несколько сайтов ---------- */
.price-card__op { margin: 8px auto 0; max-width: 26em; font-size: 12px; line-height: 1.4; color: var(--text2); }
.price-card__multi { margin: 0 auto 0; max-width: 26em; font-size: 15px; color: var(--text); }
.price-card__multi + .price-card__fine { margin-top: 8px; }
.price-card .btn + .price-card__multi, .price-card__note + .price-card__multi { margin-top: 22px; }

/* ---------- Телефон боком (низкий экран, ширина до 899 px): две колонки, как на компьютере ----------
   В одну колонку телефон в сценах получался 25–34 px шириной. Условие совпадает с TWO в main.js */
@media (max-width: 899px) and (max-height: 500px) and (orientation: landscape) {
  .hero { --pw: max(110px, calc((100svh - var(--head) - 40px) / 2.1367)); }
  .anim .hero { --pw: max(110px, calc((100svh - var(--head) - 40px) / 2.1367)); }
  .hero__text { text-align: left; }
  .hero__lead { margin-inline: 0; }
  .hero__cta { justify-content: flex-start; }
  .hero .h1 { font-size: min(7.2vw, 11vh); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--pw) + 60px)); gap: 28px; }
  .anim .hero__grid { display: grid; }
  .anim .hero__text { position: static; padding: 0; }
  .anim .hero__stage { position: relative; inset: auto; }
  .anim .trav { display: block; }

  .pin, .tour .pin { --pw: max(110px, calc((100svh - var(--head) - 36px) / 2.1367)); }
  .connect > .head { padding-right: calc(max(110px, (100svh - var(--head) - 36px) / 2.1367) + clamp(28px, 5vw, 56px)); }
  .pin__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 0 clamp(28px, 5vw, 56px); }
  .pin__grid > :not(.pin__phone):not(.index) { grid-column: 1; }
  .pin__phone { order: 0; grid-column: 2; grid-row: 1 / span 2; }
  .step { justify-content: flex-start; }
  .cap { text-align: left; }
  .cap h3 { font-size: min(34px, 9vh); }
  .cap p:not(.cap__k) { margin: 8px 0 0; font-size: 15px; }
  .dots { justify-content: flex-start; margin-top: 14px; }
}

/* ---------- Блоки главной ниже героя не раскладываются при загрузке ----------
   Класс .cvx ставит скрипт режимов (обычный заход без #якоря, не «назад» и не перезагрузка). Пока до блока не
   долистали, браузер его не рисует и не раскладывает (content-visibility: auto, размер — по оценке, потом запомненный).
   Сцены в этих блоках main.js настраивает при подходе к ним, плитки проявляет IntersectionObserver. */
.cvx .connect, .cvx .statement, .cvx .tour, .cvx .dn,
.cvx .sets, .cvx .works, .cvx .bento-sec, .cvx .trio-sec, .cvx .price, .cvx .faq, .cvx .foot { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
/* Мягкое появление плиток, шагов и цены: main.js ставит rv-wait тем, что ниже экрана, и снимает при подходе */
.anim .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.anim .reveal.rv-wait { opacity: 0; transform: translateY(40px); transition: none; }

/* ---------- Анимации вне экрана — на паузе (класс is-off ставит main.js) ---------- */
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ---------- Панель администратора WordPress (#wpadminbar) для вошедшего администратора: шапка и сцены ниже неё ---------- */
.admin-bar { --adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar { --adminbar: 0px; } } /* здесь панель WordPress уезжает вместе со страницей */
.admin-bar .nav { top: var(--adminbar); }
/* класс admin-bar WordPress ставит на <body>, а js/anim стоят на <html> */
.anim .admin-bar .intro__sticky, .anim .admin-bar .hero__sticky,
.js .admin-bar .pin__stage { top: var(--adminbar); height: calc(100svh - var(--adminbar)); }

/* ---------- Без анимаций: prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.rm *, .rm *::before, .rm *::after { animation: none !important; transition: none !important; }
.lite .ph-glass { background: linear-gradient(118deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 40%); }

/* ---------- Windows-версия: монитор, окно подключения и телефон слоями ----------
   Слои двигаются с разной скоростью при прокрутке (main.js mm_win, data-depth); без анимаций всё стоит на местах. */
.win-sec { padding: var(--sec) 0; overflow: hidden; }
.win { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.win__stage { position: relative; aspect-ratio: 16 / 11.5; }
.win__glow { position: absolute; inset: 8% 4% 0 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 30, 36, .16), rgba(227, 30, 36, 0) 70%); filter: blur(10px); }
.win__back { position: absolute; top: 0; right: 0; width: 56%; border-radius: 12px; overflow: hidden; background: #141311; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .08); }
.win__back img { display: block; width: 100%; height: auto; }
.win__bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; background: #232120; color: #a39d95; font-size: 10px; }
.win__bar i { width: 7px; height: 7px; border-radius: 50%; background: #4a4643; }
.win__bar i:first-child { background: var(--red); }
.win__bar span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__mon { position: absolute; left: 4%; top: 14%; width: 82%; }
.win__screen { position: relative; aspect-ratio: 16 / 10; padding: 1.3%; border-radius: clamp(10px, 1.4vw, 18px); background: linear-gradient(145deg, #2c2c2f, #0d0d0e 55%, #222225); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -36px rgba(0, 0, 0, .6); }
.win__img { position: absolute; inset: 1.3%; width: 97.4%; height: auto; border-radius: clamp(4px, .6vw, 8px); display: block; }
.win__img--dark { opacity: 1; transition: opacity 1.2s var(--ease); }
.win.is-light .win__img--dark { opacity: 0; }
.win__shine { position: absolute; inset: 1.3%; border-radius: clamp(4px, .6vw, 8px); background: linear-gradient(115deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 38%); pointer-events: none; }
.win__neck { width: 11%; height: clamp(18px, 3vw, 40px); margin: 0 auto; background: linear-gradient(90deg, #bdbdc2, #e8e8ec 50%, #b4b4b9); }
.win__foot { width: 30%; height: clamp(6px, .8vw, 10px); margin: 0 auto; border-radius: 6px 6px 3px 3px; background: linear-gradient(#d9d9de, #a9a9ae); box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .35); }
.win__phone { position: absolute; left: -1%; bottom: 2%; transform: rotate(-7deg); }
.win__phone .phone { --w: clamp(96px, 12.5vw, 172px); }
.win__toast { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05); font-size: 13px; line-height: 1.25; white-space: nowrap; }
.win__toast small { display: block; color: var(--text2); font-size: 11.5px; }
.win__toast b { display: block; font-size: 14px; letter-spacing: -.01em; }
.win__ti { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--red); color: #fff; }
.win__ti--dark { background: var(--text); }
.win__ti--ok { background: #1a7f37; }
.win__toast--order { left: 30%; top: 4%; }
.win__toast--print { right: 0; bottom: 20%; }
.win__toast--link { left: 22%; bottom: -2%; }
.win__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.win__list li { position: relative; padding-left: 30px; }
.win__list li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 13px; height: 7px; border: solid var(--red); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.win__list b { display: block; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -.02em; }
.win__list span { display: block; margin-top: 4px; color: var(--text2); font-size: 16px; line-height: 1.42; }
.win__note { grid-column: 1 / -1; justify-self: center; text-align: center; max-width: 40em; color: var(--text2); font-size: 15px; }
.win__note .badge { margin-right: 6px; background: var(--red); }
.chip--win { text-decoration: none; transition: background-color .2s; }
.chip--win:hover { background: #ebebef; }
@media (max-width: 899px) {
  .win { grid-template-columns: 1fr; }
  .win__stage { aspect-ratio: 16 / 13; }
  .win__toast { padding: 7px 10px 7px 7px; gap: 7px; border-radius: 12px; }
  .win__ti { width: 26px; height: 26px; border-radius: 8px; }
  .win__ti svg { width: 13px; height: 13px; }
  .win__toast b { font-size: 12px; }
  .win__toast small { font-size: 10px; }
  .win__toast--print { bottom: 24%; }
  .win__toast--link { display: none; }
}
@media (max-width: 479px) {
  .win__toast--print { display: none; }
  .win__toast--order { left: 26%; top: 2%; }
}
.cvx .win-sec { content-visibility: auto; contain-intrinsic-size: auto 1200px; }


/* ---------- Видео «От покупки до первого заказа»: ноутбук, плеер со своими кнопками ----------
   Крышка открывается при подходе к блоку (main.js mm_video, класс .vid--anim → .is-open). Без скриптов и при
   prefers-reduced-motion ноутбук сразу открыт, у видео обычные кнопки браузера (атрибут controls). */
.vid-sec { padding: var(--sec) 0; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f5f5f7 46%, #fff 100%); }
.vid { display: flex; flex-direction: column; align-items: center; }
.vid__stage { position: relative; width: min(100%, 980px); margin-top: clamp(28px, 4vw, 56px); padding-bottom: 3%; }
.vid__glow { position: absolute; inset: 6% 2% -4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(227, 30, 36, .16), rgba(227, 30, 36, 0) 72%); filter: blur(14px); opacity: .9; transition: opacity 1.4s var(--ease); pointer-events: none; }
.vid__laptop { position: relative; perspective: 2200px; perspective-origin: 50% 20%; }
.vid__lid { position: relative; width: 84%; margin: 0 auto; transform-origin: 50% 100%; transform-style: preserve-3d; transition: transform 1.5s cubic-bezier(.2, .75, .15, 1); }
.vid__bezel { position: relative; padding: 2.1% 2.1% 2.6%; border-radius: clamp(12px, 1.8vw, 22px) clamp(12px, 1.8vw, 22px) 6px 6px; background: linear-gradient(145deg, #2c2c2f, #0b0b0c 55%, #1f1f22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1.5px #b9b9be, 0 50px 90px -40px rgba(0, 0, 0, .55); }
.vid__cam { position: absolute; top: .75%; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #1f2a33; box-shadow: inset 0 0 0 1.5px #0a0f13; }
.vid__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; isolation: isolate; }
.vid__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.vid__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 38%); pointer-events: none; z-index: 1; transition: opacity .4s; }
.vid__base { position: relative; width: 100%; height: clamp(10px, 1.7vw, 20px); margin-top: -1px; border-radius: 2px 2px clamp(12px, 2vw, 22px) clamp(12px, 2vw, 22px) / 2px 2px 70% 70%; background: linear-gradient(180deg, #e9e9ed 0%, #c9c9ce 45%, #9d9da3 100%); box-shadow: 0 26px 40px -18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .8); }
.vid__base i { position: absolute; top: 0; left: 50%; width: 15%; height: 45%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #b4b4ba, #d3d3d8); }
/* закрытая крышка до подхода к блоку */
.vid--anim .vid__lid { transform: rotateX(-86deg); }
.vid--anim .vid__glow { opacity: 0; }
.vid--anim.is-open .vid__lid { transform: none; }
.vid--anim.is-open .vid__glow { opacity: .9; }
.vid--anim .vid__screen > * { transition: opacity .6s .9s; }
.vid--anim:not(.is-open) .vid__screen > * { opacity: 0; }
/* большая кнопка «Смотреть» поверх заставки */
.vid__big { position: absolute; z-index: 2; left: 50%; top: 50%; display: none; align-items: center; gap: 14px; padding: 10px 26px 10px 10px; transform: translate(-50%, -50%); border: 0; border-radius: 999px; font: 600 clamp(15px, 1.5vw, 19px)/1 var(--font); color: #1d1d1f; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); cursor: pointer; transition: transform .35s var(--ease), background .25s, opacity .3s; }
.vid__big:hover { transform: translate(-50%, -50%) scale(1.05); background: #fff; }
.vid__big:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.vid__big-ic { display: grid; place-items: center; width: clamp(46px, 5vw, 60px); height: clamp(46px, 5vw, 60px); border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 0 0 0 rgba(227, 30, 36, .45); animation: vidPulse 2.4s ease-out infinite; }
.vid__big-ic svg { margin-left: 3px; }
.vid__big-t small { margin-left: 6px; font-weight: 500; color: #6e6e73; }
@keyframes vidPulse { 0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, .45); } 70%, 100% { box-shadow: 0 0 0 18px rgba(227, 30, 36, 0); } }
.is-off .vid__big-ic { animation: none; }
/* свои кнопки плеера */
.vid__bar { position: absolute; z-index: 3; left: 2.2%; right: 2.2%; bottom: 3.2%; display: flex; align-items: center; gap: clamp(6px, 1vw, 12px); padding: 6px clamp(8px, 1.2vw, 14px); border-radius: 999px; color: #fff; background: rgba(22, 22, 24, .62); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: opacity .35s, transform .35s var(--ease); }
.vid__bar[hidden] { display: none; }
.vid__btn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; transition: background .2s; }
.vid__btn:hover { background: rgba(255, 255, 255, .14); }
.vid__btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.vid__i-pause, .vid__i-mute { display: none; }
.vid--playing .vid__i-play { display: none; }
.vid--playing .vid__i-pause { display: block; }
.vid--muted .vid__i-vol { display: none; }
.vid--muted .vid__i-mute { display: block; }
.vid__time { flex: none; min-width: 7.6em; font: 500 13px/1 var(--font); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.vid__seek, .vid__vol { --p: 0%; height: 22px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.vid__seek { flex: 1; min-width: 60px; }
.vid__vol { flex: none; width: clamp(54px, 7vw, 84px); --p: 100%; }
.vid__seek::-webkit-slider-runnable-track, .vid__vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, .28) var(--p)); }
.vid__seek::-moz-range-track, .vid__vol::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, .28) var(--p)); }
.vid__seek::-webkit-slider-thumb, .vid__vol::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); -webkit-appearance: none; appearance: none; }
.vid__seek::-moz-range-thumb, .vid__vol::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.vid__seek:focus-visible, .vid__vol:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
/* до первого нажатия — только заставка и кнопка; во время показа панель прячется, если мышь не двигается */
.vid--js .vid__big { display: inline-flex; }
.vid--js:not(.vid--started) .vid__bar { opacity: 0; pointer-events: none; transform: translateY(8px); }
.vid--started .vid__big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); }
.vid--started .vid__screen::after { opacity: 0; }
.vid--idle .vid__bar { opacity: 0; transform: translateY(8px); }
.vid--idle .vid__screen { cursor: none; }
.vid--ended .vid__big { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.vid__screen:fullscreen { border-radius: 0; aspect-ratio: auto; }
.vid__screen:fullscreen .vid__video { object-fit: contain; }
.vid__screen:-webkit-full-screen { border-radius: 0; width: 100%; height: 100%; }
/* главы */
.vid__chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 980px; margin: clamp(26px, 3.4vw, 44px) 0 0; padding: 0; list-style: none; }
.vid__chapters button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #d2d2d7; border-radius: 999px; font: 500 14px/1.2 var(--font); color: #1d1d1f; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease); }
.vid__chapters button b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--red); }
.vid__chapters button:hover { border-color: #1d1d1f; transform: translateY(-1px); }
.vid__chapters button.is-cur { color: #fff; background: #1d1d1f; border-color: #1d1d1f; }
.vid__chapters button.is-cur b { color: #ff8a8e; }
.vid__chapters button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (max-width: 599px) {
  .vid__lid { width: 94%; }
  .vid__time { display: none; }
  .vid__vol { display: none; }
  .vid__bar { left: 3%; right: 3%; bottom: 4%; gap: 4px; padding: 1px 4px; }
  .vid__btn { width: 30px; height: 30px; }
  .vid__btn svg { width: 17px; height: 17px; }
  .vid__big { gap: 10px; padding: 6px 16px 6px 6px; }
  .vid__chapters { flex-wrap: nowrap; justify-content: flex-start; width: calc(100% + 2 * var(--gut)); margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .vid__chapters::-webkit-scrollbar { display: none; }
  .vid__chapters li { flex: none; scroll-snap-align: start; }
  .vid__chapters button { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
}
.lite .vid__big, .lite .vid__bar { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite .vid__big { background: #fff; }
.lite .vid__bar { background: rgba(22, 22, 24, .86); }
.cvx .vid-sec { content-visibility: auto; contain-intrinsic-size: auto 1150px; }

/* ---------- Master Manager 2.0: подвал — ровные отступы (бренд фиксированной ширины + 4 колонки с равными промежутками) ---------- */
@media (min-width: 900px) {
  .foot__top { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); column-gap: clamp(48px, 5vw, 96px); }
  .foot__id { max-width: 300px; }
  .foot__cols { grid-template-columns: repeat(4, max-content); justify-content: space-between; column-gap: clamp(28px, 3vw, 56px); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .foot__cols { grid-template-columns: repeat(2, max-content); justify-content: start; column-gap: 72px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .foot__cols { grid-template-columns: repeat(4, max-content); justify-content: space-between; column-gap: 24px; }
}

/* ---------- Master Manager 2.0: блок бренда в подвале (логотип + 2.0, подпись, «Что нового», версии) ---------- */
.foot__brand { gap: 12px; }
.foot__v2 { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.foot__tag { margin: 14px 0 0; max-width: 30em; font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--text2); text-wrap: pretty; }
.foot__new { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: border-color .2s, background-color .2s; }
.foot__new:hover { border-color: var(--text2); text-decoration: none; }
.foot__new span { transition: transform .2s; }
.foot__new:hover span { transform: translateX(2px); }
.foot__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.foot__chips li { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text2); font-size: 11.5px; line-height: 1.5; white-space: nowrap; }
.foot__chips b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 1.5.0: блок «Защита SHA-256 и цифровая подпись» */
.sec-guard { padding: clamp(56px, 8vw, 110px) 0 0; }
.guard { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: clamp(24px, 3vw, 36px); color: #f5f5f7; background: radial-gradient(120% 140% at 0% 0%, rgba(227, 30, 36, .28) 0, rgba(227, 30, 36, 0) 46%), radial-gradient(90% 120% at 100% 100%, rgba(120, 130, 255, .14) 0, rgba(0, 0, 0, 0) 55%), linear-gradient(160deg, #17171a 0%, #0b0b0d 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .07); }
.guard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 44px); mask: linear-gradient(90deg, transparent, #000 60%); }
.guard__ic { width: clamp(96px, 13vw, 168px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 32%; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 60px rgba(227, 30, 36, .35); }
.guard__ic svg { width: 70%; height: auto; filter: drop-shadow(0 8px 18px rgba(227, 30, 36, .45)); }
.guard__tx { position: relative; z-index: 1; min-width: 0; }
.guard__eyebrow { margin: 0 0 8px; color: #ff5a5f; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.guard__h { margin: 0 0 14px; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.06; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.guard__p { margin: 0 0 20px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: rgba(245, 245, 247, .82); max-width: 760px; }
.guard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.guard__chips li { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
@media (max-width: 720px) {
  .guard { grid-template-columns: 1fr; text-align: left; }
  .guard__ic { width: 88px; }
}


/* ---------- 1.5.2: платные дополнения (бонусы + киоск), тёмные премиум-карточки ---------- */
.addons { padding: var(--sec) 0; }
.addons .head .lead b { color: var(--text); font-weight: 700; }
.addons__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.addon {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: clamp(24px, 3vw, 36px); color: #f5f5f7;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(227, 30, 36, .26) 0, rgba(227, 30, 36, 0) 48%),
    radial-gradient(90% 80% at 100% 100%, rgba(120, 130, 255, .12) 0, rgba(0, 0, 0, 0) 55%),
    linear-gradient(165deg, #17171a 0%, #0b0b0d 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.addon::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 40px);
  mask: linear-gradient(180deg, #000 30%, transparent 90%);
}
.addon__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px) 0; }
.addon__tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #ff8a8e; background: rgba(227, 30, 36, .16); box-shadow: inset 0 0 0 1px rgba(255, 90, 95, .35); }
.addon__price { margin: 0; font-size: clamp(28px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.addon__price small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: rgba(245, 245, 247, .62); letter-spacing: 0; }
.addon__visual { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px clamp(20px, 3vw, 28px) 0; align-items: end; }
.addon__visual--wide { grid-template-columns: 1fr; }
.addon__shot { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); background: #111; }
.addon__shot--phone, .addon__shot--phone2 { max-height: 280px; object-fit: cover; object-position: top center; }
.addon__shot--desk, .addon__shot--desk2 { max-height: 200px; object-fit: cover; object-position: center; }
.addon__shot--desk2 { display: none; }
.addon__body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 3vw, 32px); }
.addon__h { margin: 0 0 12px; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.03em; color: #fff; }
.addon__p { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: rgba(245, 245, 247, .78); }
.addon__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.addon__list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; color: rgba(245, 245, 247, .9); }
.addon__list li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 12px; height: 6px; border: solid #ff5a5f; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.addon .btn { align-self: flex-start; margin-top: auto; }
.addons__note { margin-top: clamp(22px, 3vw, 36px); text-align: center; }
.addons__note p { margin: 0 auto; max-width: 42em; font-size: 15px; color: var(--text2); }
.price-card__fine a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq a { color: var(--text); font-weight: 600; }
@media (max-width: 899px) {
  .addons__grid { grid-template-columns: 1fr; }
  .addon__shot--phone, .addon__shot--phone2 { max-height: 240px; }
  .addon__shot--desk { max-height: 180px; }
}
@media (max-width: 479px) {
  .addon__top { flex-direction: column; align-items: flex-start; }
  .addon__visual { grid-template-columns: 1fr; gap: 8px; }
  .addon__shot--phone2 { display: none; }
  .addon__shot--phone { max-height: 300px; }
}
.cvx .addons { content-visibility: auto; contain-intrinsic-size: auto 1400px; }

/* ---------- 1.5.3 (Master Manager 3.1.0): «Что нового в 3.1», анонс конструктора, таблица цен, «Скачать 3.1.0» ---------- */
.mm31-tag { display: inline-flex; align-self: flex-start; align-items: center; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--red2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 0 0 1px rgba(0, 0, 0, .04); }
.mm31-new .set h3 { margin-top: 16px; }
.mm31-new__wide { grid-column: span 2; background: linear-gradient(160deg, #fff1f1 0%, var(--bg2) 60%); }
.mm31-new__wide p { max-width: 36em; }
.mm31-more { display: inline-block; margin-top: auto; padding-top: 16px; }
.mm31-ann .guard__chips { margin-bottom: 26px; }
.mm31-ann__btn { position: relative; z-index: 1; }
.mm31-tbl { margin: 28px auto 30px; max-width: 440px; text-align: left; }
.mm31-tbl__h { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--text); text-align: center; }
.mm31-tbl__list { list-style: none; margin: 0; padding: 0; }
.mm31-tbl__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.mm31-tbl__list b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm31-tbl__list .mm31-free { color: #1d7a3a; }
.mm31-tbl__list .mm31-tbl__sum { border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.mm31-tbl__sum b { color: var(--red2); }
.mm31-dl { padding-bottom: var(--sec); }
.mm31-dl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.mm31-dl .set { min-height: 0; }
.mm31-dl .set p.mm31-dl__meta { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--text); }
.mm31-dl .btn { align-self: flex-start; margin-top: 22px; }
@media (max-width: 1099px) {
  .mm31-new__wide { grid-column: span 2; }
}
@media (max-width: 899px) {
  .mm31-dl__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 599px) {
  .mm31-new__wide { grid-column: auto; }
  .mm31-dl .btn { align-self: stretch; }
}
.cvx .mm31-ann { content-visibility: auto; contain-intrinsic-size: auto 600px; }
