/*
Theme Name: ActiveOffer
Theme URI: https://activeoffer.ru
Author: ActiveOffer
Description: Одностраничный лендинг ActiveOffer – интерактивные коммерческие предложения для B2B. Контент вшит в шаблоны, анимации на GSAP ScrollTrigger.
Version: 1.0.1
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: activeoffer
*/

/* -------------------------------------------------------------------------
 * Шрифт: Onest (OFL), локально – без внешних запросов к шрифтовым сервисам
 * ---------------------------------------------------------------------- */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/onest-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------------------------
 * Токены: чёрно-белая основа шаблонов ActiveOffer и один акцент
 * ---------------------------------------------------------------------- */

:root {
  --ao-paper: #f3f2ee;
  --ao-surface: #fbfaf7;
  --ao-ink: #0d0d0c;
  --ao-ink-2: #1a1a18;
  --ao-muted: #6c6b66;
  --ao-line: rgb(13 13 12 / 0.12);
  --ao-line-strong: rgb(13 13 12 / 0.28);
  --ao-on-dark: #f3f2ee;
  --ao-on-dark-muted: rgb(243 242 238 / 0.6);
  --ao-line-dark: rgb(243 242 238 / 0.14);
  --ao-accent: #3a5bff;
  --ao-accent-soft: rgb(58 91 255 / 0.14);

  --ao-font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ao-max: 1280px;
  --ao-gutter: clamp(16px, 4vw, 48px);
  --ao-pad: max(var(--ao-gutter), calc((100% - var(--ao-max)) / 2));
  --ao-header-h: 72px;
  --ao-radius: 24px;
  --ao-radius-lg: 32px;
  --ao-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------
 * База
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--ao-header-h);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--ao-paper);
  color: var(--ao-ink);
  font-family: var(--ao-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

strong {
  font-weight: 600;
}

::selection {
  background: var(--ao-accent);
  color: #fff;
}

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

/* Блоки до появления сдвинуты за край (script.js): страница не должна расширяться под них.
   clip, а не hidden, – не создаёт прокрутку и не ломает position: sticky. */
.ao-main {
  overflow-x: clip;
}

.ao-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ao-ink);
  color: var(--ao-on-dark);
  text-decoration: none;
  transform: translateY(-200%);
}

.ao-skip:focus {
  transform: none;
}

/* -------------------------------------------------------------------------
 * Кнопки
 * ---------------------------------------------------------------------- */

.ao-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ao-btn {
  --ao-btn-bg: transparent;
  --ao-btn-fg: var(--ao-ink);
  --ao-btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--ao-btn-border);
  border-radius: 999px;
  background: var(--ao-btn-bg);
  color: var(--ao-btn-fg);
  font: 500 1rem/1 var(--ao-font);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.5s var(--ao-ease),
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}

/* Заливка, которая поднимается снизу при наведении. */
.ao-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--ao-btn-hover, var(--ao-accent));
  transform: translateY(101%);
  transition: transform 0.55s var(--ao-ease);
}

.ao-btn:hover::before {
  transform: none;
}

.ao-btn:active {
  transform: scale(0.97);
}

.ao-btn--solid {
  --ao-btn-bg: var(--ao-ink);
  --ao-btn-fg: var(--ao-on-dark);
}

.ao-btn--solid::after {
  content: '';
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--ao-icon-arrow) center / contain no-repeat;
  mask: var(--ao-icon-arrow) center / contain no-repeat;
  transition: transform 0.5s var(--ao-ease);
}

.ao-btn--solid:hover::after {
  transform: translateX(3px);
}

.ao-btn--solid:hover {
  --ao-btn-fg: #fff;
}

.ao-btn--ghost {
  --ao-btn-border: var(--ao-line-strong);
  --ao-btn-hover: var(--ao-ink);
}

.ao-btn--ghost:hover {
  --ao-btn-fg: var(--ao-on-dark);
  --ao-btn-border: var(--ao-ink);
}

.ao-btn--light {
  --ao-btn-bg: var(--ao-on-dark);
  --ao-btn-fg: var(--ao-ink);
}

.ao-btn--light:hover {
  --ao-btn-fg: #fff;
}

.ao-btn--outline {
  --ao-btn-fg: var(--ao-on-dark);
  --ao-btn-border: var(--ao-line-dark);
  --ao-btn-hover: var(--ao-on-dark);
}

.ao-btn--outline:hover {
  --ao-btn-fg: var(--ao-ink);
}

.ao-btn--sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.94rem;
}

/* -------------------------------------------------------------------------
 * Шапка
 * ---------------------------------------------------------------------- */

.ao-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-inline: var(--ao-pad);
  transition:
    transform 0.6s var(--ao-ease),
    background-color 0.4s,
    box-shadow 0.4s;
}

.ao-header.is-scrolled {
  background: rgb(243 242 238 / 0.78);
  box-shadow: 0 1px 0 var(--ao-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.ao-header.is-hidden {
  transform: translateY(-100%);
}

.ao-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--ao-header-h);
}

.ao-nav {
  margin-left: auto;
}

.ao-nav__list {
  display: flex;
  gap: 32px;
}

.ao-nav__list a {
  position: relative;
  color: var(--ao-muted);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.3s;
}

.ao-nav__list a::after {
  content: '';
  position: absolute;
  inset: auto 0 -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ao-ease);
}

.ao-nav__list a:hover {
  color: var(--ao-ink);
}

.ao-nav__list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 899px) {
  .ao-nav {
    display: none;
  }

  .ao-header__cta {
    margin-left: auto;
  }
}

/* Узкий телефон: логотип и кнопка помещаются в одну строку. */
@media (max-width: 479px) {
  .ao-header__inner {
    gap: 12px;
  }

  .ao-header__cta {
    padding: 0 16px;
  }

  .ao-header__cta::after {
    display: none;
  }
}

/* Логотип: знак – чёрный квадрат с «живой» точкой акцента. */
.ao-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ao-ink);
  font-size: 1.14rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.ao-logo__mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ao-ink);
}

.ao-logo__mark::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ao-accent);
  box-shadow: 0 0 0 0 rgb(58 91 255 / 0.6);
  animation: ao-pulse 2.4s infinite;
}

.ao-logo__text {
  font-weight: 450;
}

.ao-logo__text b {
  font-weight: 700;
}

.ao-logo--light {
  color: var(--ao-on-dark);
}

.ao-logo--light .ao-logo__mark {
  background: var(--ao-on-dark);
}

@keyframes ao-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(58 91 255 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgb(58 91 255 / 0);
  }
}

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

.ao-hero {
  position: relative;
  padding: calc(var(--ao-header-h) + clamp(28px, 5.4vw, 80px)) var(--ao-pad)
    clamp(72px, 10vw, 140px);
  overflow: clip;
}

/* Мягкое пятно акцента за заголовком – уходит с параллаксом. */
.ao-hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  z-index: -1;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(58 91 255 / 0.16), rgb(58 91 255 / 0) 70%);
  pointer-events: none;
}

.ao-hero__title {
  max-width: 15ch;
  font-size: clamp(2.6rem, 7.4vw, 6.9rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ao-hero__alt {
  color: var(--ao-accent);
}

.ao-hero__aside {
  display: grid;
  gap: 32px;
  margin-top: clamp(32px, 4.5vw, 56px);
}

.ao-lead {
  max-width: 50ch;
  color: var(--ao-muted);
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  line-height: 1.55;
}

@media (min-width: 960px) {
  .ao-hero__aside {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

/* Мокап под углом: при прокрутке выпрямляется (script.js). */
.ao-hero__stage {
  margin-top: clamp(56px, 8vw, 104px);
  perspective: 2000px;
}

.ao-hero__stage .ao-browser {
  transform-origin: 50% 0;
}

/* -------------------------------------------------------------------------
 * Окно браузера и абстрактный макет оффера
 * ---------------------------------------------------------------------- */

.ao-browser {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ao-line);
  border-radius: clamp(14px, 1.6vw, 22px);
  background: #fff;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.6) inset,
    0 50px 120px -40px rgb(13 13 12 / 0.35),
    0 20px 40px -24px rgb(13 13 12 / 0.2);
}

.ao-browser__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  height: clamp(38px, 3.7vw, 52px);
  padding-inline: clamp(12px, 1.2vw, 18px);
  border-bottom: 1px solid rgb(0 0 0 / 0.09);
  background: linear-gradient(#f7f6f4, #efeeeb);
  color: #6e6d69;
}

/* Кнопки окна macOS: закрыть, свернуть, развернуть. */
.ao-browser__lights {
  display: flex;
  flex: none;
  gap: clamp(5px, 0.55vw, 8px);
}

.ao-browser__lights i {
  width: clamp(9px, 0.85vw, 12px);
  height: clamp(9px, 0.85vw, 12px);
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.18);
}

.ao-browser__lights i:nth-child(2) {
  background: #febc2e;
}

.ao-browser__lights i:nth-child(3) {
  background: #28c840;
}

/* Панель Safari: боковая панель, назад и вперёд; справа – поделиться, новая вкладка, вкладки. */
.ao-browser__tools {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 18px);
}

.ao-browser__tools--right {
  margin-left: auto;
}

.ao-ico {
  width: clamp(12px, 1.15vw, 16px);
  height: clamp(12px, 1.15vw, 16px);
  background: currentColor;
  -webkit-mask: var(--ao-ico) center / contain no-repeat;
  mask: var(--ao-ico) center / contain no-repeat;
}

.ao-ico--sidebar {
  --ao-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='3'/%3E%3Cpath d='M9.5 4.5v15'/%3E%3C/svg%3E");
}

.ao-ico--back {
  --ao-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}

.ao-ico--forward {
  --ao-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  opacity: 0.35;
}

.ao-ico--share {
  --ao-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M8.5 10H6.5a1.5 1.5 0 0 0-1.5 1.5v8A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5v-8a1.5 1.5 0 0 0-1.5-1.5h-2'/%3E%3C/svg%3E");
}

.ao-ico--plus {
  --ao-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.ao-ico--tabs {
  --ao-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='14' height='14' rx='2.5'/%3E%3Cpath d='M7 3.5h11A2.5 2.5 0 0 1 20.5 6v11'/%3E%3C/svg%3E");
}

/* Адресная строка по центру окна: замок, домен, обновить. */
.ao-browser__address {
  position: absolute;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: min(42%, 520px);
  height: clamp(24px, 2.3vw, 32px);
  padding: 0 32px;
  border-radius: clamp(6px, 0.6vw, 9px);
  background: rgb(0 0 0 / 0.055);
  color: #3d3c39;
  font-size: clamp(0.68rem, 0.85vw, 0.82rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-50%);
}

.ao-browser__reload {
  position: absolute;
  right: 10px;
  width: clamp(10px, 0.95vw, 13px);
  height: clamp(10px, 0.95vw, 13px);
  background: currentColor;
  opacity: 0.55;
  -webkit-mask: var(--ao-icon-reload) center / contain no-repeat;
  mask: var(--ao-icon-reload) center / contain no-repeat;
  --ao-icon-reload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.6-5.9M20 4v5h-5'/%3E%3C/svg%3E");
}

/* На узком экране – только кнопки окна и адрес, как в узком окне Safari. */
@media (max-width: 599px) {
  .ao-browser__tools {
    display: none;
  }

  .ao-browser__address {
    width: 56%;
    padding: 0 22px;
  }

  .ao-browser__reload {
    right: 7px;
  }
}

.ao-browser__lock {
  width: 10px;
  height: 10px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--ao-icon-lock) center / contain no-repeat;
  mask: var(--ao-icon-lock) center / contain no-repeat;
}

/* Экран обрезан по своим границам: прокручиваемая страница не заезжает на панель окна. */
.ao-browser__screen {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  aspect-ratio: 16 / 9.4;
  background: var(--ao-surface);
}

.ao-browser__screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Тест-драйв: вкладки шаблонов над окном демо. */
.ao-demo__tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(18px, 2.4vw, 28px);
  padding: 5px;
  overflow-x: auto;
  border-radius: 999px;
  background: rgb(243 242 238 / 0.08);
  box-shadow: inset 0 0 0 1px var(--ao-line-dark);
  scrollbar-width: none;
}

.ao-demo__tabs::-webkit-scrollbar {
  display: none;
}

.ao-demo__tabs button {
  flex: none;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ao-on-dark-muted);
  font: 500 0.92rem/1.2 var(--ao-font);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.35s,
    color 0.35s;
}

.ao-demo__tabs button:hover {
  color: var(--ao-on-dark);
}

.ao-demo__tabs button[aria-selected='true'] {
  background: var(--ao-on-dark);
  color: var(--ao-ink);
}

@media (max-width: 599px) {
  .ao-demo__tabs {
    width: auto;
    margin-inline: calc(var(--ao-gutter) * -1);
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding-inline: var(--ao-gutter);
  }

  .ao-demo__tabs button {
    padding: 9px 14px;
    background: rgb(243 242 238 / 0.08);
    font-size: 0.86rem;
  }
}

[data-ao-demo-frame] {
  transition: opacity 0.4s;
}

[data-ao-demo-frame].is-loading {
  opacity: 0.35;
}

/* Окно демо – над зерном лендинга (у демо своё зерно, двойное ни к чему), но под шапкой. */
.ao-demo__stage {
  position: relative;
  z-index: 45;
}

.ao-browser--demo .ao-browser__screen {
  aspect-ratio: auto;
  height: min(80vh, 860px);
  min-height: 520px;
}

/* Тёмная рамка демо на тёмной сцене. */
.ao-section--dark .ao-browser {
  border-color: var(--ao-line-dark);
  background: var(--ao-ink-2);
  box-shadow: 0 60px 140px -50px rgb(0 0 0 / 0.8);
}

.ao-section--dark .ao-browser__bar {
  border-color: rgb(255 255 255 / 0.07);
  background: linear-gradient(#2c2c2e, #262628);
  color: #9b9ba1;
}

.ao-section--dark .ao-browser__address {
  background: rgb(255 255 255 / 0.08);
  color: #d6d6db;
}

/* Макет: размеры в cqw – масштабируется вместе с окном. */
.ao-skel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 4.2cqw;
  padding: 3.4cqw 5cqw 0;
  overflow: hidden;
}

.ao-skel i,
.ao-skel b,
.ao-skel u,
.ao-skel span {
  display: block;
  border-radius: 999px;
}

.ao-skel__nav {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
}

.ao-skel__nav b {
  width: 9cqw;
  height: 1.3cqw;
  margin-right: auto;
  background: var(--ao-ink);
}

.ao-skel__nav i {
  width: 5cqw;
  height: 0.7cqw;
  background: #d7d6d0;
}

.ao-skel__nav u {
  width: 9cqw;
  height: 2.6cqw;
  background: var(--ao-ink);
}

.ao-skel__hero {
  display: grid;
  gap: 1.5cqw;
}

.ao-skel__line {
  height: 3.6cqw;
  background: var(--ao-ink);
}

.ao-skel__line--xl {
  width: 72%;
}

.ao-skel__line--lg {
  width: 48%;
}

.ao-skel__line--sm {
  width: 38%;
  height: 1cqw;
  margin-top: 1cqw;
  background: #cfcec8;
}

.ao-skel__button {
  width: 14cqw;
  height: 3.4cqw;
  margin-top: 1.2cqw;
  background: var(--ao-accent);
}

.ao-skel__media {
  position: relative;
  border-radius: 2cqw !important;
  overflow: hidden;
  background: linear-gradient(120deg, #1b1b19, #2a2b33 55%, #3a5bff);
}

/* Блик, который пробегает по «фото». */
.ao-skel__media span {
  position: absolute;
  inset: 0;
  border-radius: 0 !important;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgb(255 255 255 / 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: ao-shine 3.6s var(--ao-ease) infinite;
}

.ao-skel__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2cqw;
  height: 8cqw;
  margin-bottom: -2cqw;
}

.ao-skel__cards span {
  border-radius: 1.6cqw 1.6cqw 0 0 !important;
  background: #ecebe6;
}

/* Уведомление трекера: «клиент открыл КП» – появляется и уходит по кругу. */
.ao-skel__toast {
  position: absolute;
  right: 4cqw;
  bottom: 4cqw;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.6cqw 2.2cqw;
  border-radius: 1.6cqw !important;
  background: #fff;
  box-shadow: 0 2cqw 5cqw -1.5cqw rgb(13 13 12 / 0.35);
  animation: ao-toast 7s var(--ao-ease) infinite;
}

.ao-skel__toast i {
  width: 9cqw;
  height: 0.9cqw;
  background: #cfcec8;
}

.ao-skel__toast i:first-of-type {
  width: 13cqw;
  background: var(--ao-ink);
}

.ao-skel__pulse {
  width: 1.4cqw;
  height: 1.4cqw;
  background: var(--ao-accent);
  animation: ao-pulse 1.6s infinite;
}

@keyframes ao-shine {
  60%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes ao-toast {
  0%,
  12% {
    opacity: 0;
    transform: translateY(40%) scale(0.96);
  }
  20%,
  72% {
    opacity: 1;
    transform: none;
  }
  82%,
  100% {
    opacity: 0;
    transform: translateY(-20%) scale(0.98);
  }
}

/* -------------------------------------------------------------------------
 * Разделы
 * ---------------------------------------------------------------------- */

.ao-section {
  position: relative;
  padding: clamp(96px, 13vw, 176px) var(--ao-pad);
}

.ao-section--dark {
  background: var(--ao-ink);
  color: var(--ao-on-dark);
}

.ao-section__head {
  margin-bottom: clamp(44px, 6vw, 88px);
}

/* Номер раздела над заголовком, как в шаблонах КП. */
.ao-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--ao-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.ao-index::after {
  content: '';
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.ao-section--dark .ao-index {
  color: var(--ao-on-dark-muted);
}

.ao-section__title {
  max-width: 18ch;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.ao-section__title--wide {
  max-width: 22ch;
}

/* Вторая фраза заголовка – приглушённым тоном, с новой строки. */
.ao-section__sub {
  display: block;
  color: var(--ao-muted);
}

.ao-section--dark .ao-section__sub {
  color: var(--ao-on-dark-muted);
}

.ao-kicker {
  color: var(--ao-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ao-kicker--light {
  color: var(--ao-on-dark-muted);
}

/* Маска строк заголовка (SplitText): строка выезжает из-под нижнего края. */
.ao-line-mask {
  overflow: clip;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

/* -------------------------------------------------------------------------
 * Списки с отметками (тарифы)
 * ---------------------------------------------------------------------- */

.ao-marks {
  display: grid;
  gap: 0;
}

.ao-marks li {
  position: relative;
  padding: 22px 0 22px 52px;
  border-top: 1px solid var(--ao-line);
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.ao-marks li::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ao-mark-bg, var(--ao-line)) var(--ao-mark) center / 16px no-repeat;
}

/* -------------------------------------------------------------------------
 * Особенности
 * ---------------------------------------------------------------------- */

.ao-cards {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .ao-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .ao-card--design {
    grid-column: span 2;
  }
}

@media (min-width: 1100px) {
  .ao-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ao-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(300px, 28vw, 380px);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--ao-line);
  border-radius: var(--ao-radius-lg);
  background: var(--ao-surface);
  overflow: hidden;
  transition:
    border-color 0.4s,
    box-shadow 0.6s var(--ao-ease),
    translate 0.6s var(--ao-ease);
}

.ao-card:hover {
  translate: 0 -6px;
  border-color: var(--ao-line-strong);
  box-shadow: 0 40px 80px -48px rgb(13 13 12 / 0.4);
}

.ao-card__num {
  color: var(--ao-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.ao-card__icon {
  position: absolute;
  top: clamp(24px, 2.6vw, 36px);
  right: clamp(24px, 2.6vw, 36px);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--ao-ink);
  transition: transform 0.7s var(--ao-ease);
}

.ao-card__icon::before {
  content: '';
  width: 24px;
  height: 24px;
  background: var(--ao-on-dark);
  -webkit-mask: var(--ao-card-icon) center / contain no-repeat;
  mask: var(--ao-card-icon) center / contain no-repeat;
}

.ao-card:hover .ao-card__icon {
  transform: rotate(-8deg) scale(1.06);
}

.ao-card__title {
  margin-top: auto;
  padding-top: 56px;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ao-card__text {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--ao-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Первая карточка – тёмная и широкая, с акцентным свечением. */
.ao-card--design {
  border-color: transparent;
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(58 91 255 / 0.5), rgb(58 91 255 / 0) 55%),
    var(--ao-ink);
  color: var(--ao-on-dark);
}

.ao-card--design .ao-card__num,
.ao-card--design .ao-card__text {
  color: var(--ao-on-dark-muted);
}

.ao-card--design .ao-card__title {
  max-width: 14ch;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
}

.ao-card--design .ao-card__icon {
  background: var(--ao-on-dark);
}

.ao-card--design .ao-card__icon::before {
  background: var(--ao-ink);
}

.ao-card--design {
  --ao-card-icon: var(--ao-icon-sparkle);
}

.ao-card--mobile {
  --ao-card-icon: var(--ao-icon-phone);
}

.ao-card--chat {
  --ao-card-icon: var(--ao-icon-chat);
}

.ao-card--track {
  --ao-card-icon: var(--ao-icon-eye);
}

.ao-card--turnkey {
  --ao-card-icon: var(--ao-icon-file);
}

/* -------------------------------------------------------------------------
 * Тарифы и возможности
 * ---------------------------------------------------------------------- */

.ao-plans {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .ao-plans {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  /* «Базовая разработка» ниже соседнего блока: держится у верха экрана, пока её низ не
     дойдёт до низа «Дополнительных возможностей» – как заголовок «Вопросы и ответы». */
  .ao-plan--base {
    position: sticky;
    top: calc(var(--ao-header-h) + 32px);
  }
}

.ao-plan {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--ao-radius-lg);
}

.ao-plan--base {
  border: 1px solid var(--ao-line);
  background: var(--ao-surface);
}

.ao-plan--extra {
  background: var(--ao-ink);
  color: var(--ao-on-dark);
}

.ao-plan__title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ao-plan__price {
  margin: 20px 0 40px;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ao-plan__note {
  margin: 10px 0 32px;
  color: var(--ao-on-dark-muted);
}

.ao-plan--base .ao-kicker {
  margin-bottom: 8px;
}

.ao-marks--check li {
  padding: 16px 0 16px 40px;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: 0;
}

.ao-marks--check li::before {
  top: 17px;
  width: 24px;
  height: 24px;
  --ao-mark: var(--ao-icon-check);
  --ao-mark-bg: var(--ao-accent-soft);
  background-size: 13px;
}

.ao-options {
  display: grid;
  column-gap: 40px;
}

@media (min-width: 640px) {
  .ao-options {
    grid-template-columns: 1fr 1fr;
  }
}

.ao-options li {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid var(--ao-line-dark);
}

.ao-options strong {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.ao-options span {
  color: var(--ao-on-dark-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
 * Вопросы и ответы
 * ---------------------------------------------------------------------- */

@media (min-width: 1000px) {
  .ao-faq {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 64px;
    align-items: start;
  }

  .ao-faq__head {
    position: sticky;
    top: calc(var(--ao-header-h) + 32px);
  }
}

.ao-faq__list {
  border-bottom: 1px solid var(--ao-line);
}

.ao-faq__item {
  border-top: 1px solid var(--ao-line);
}

.ao-faq__item summary {
  position: relative;
  display: block;
  padding: 28px 64px 28px 0;
  font-size: clamp(1.14rem, 1.7vw, 1.42rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
  transition: color 0.3s;
}

.ao-faq__item summary::-webkit-details-marker {
  display: none;
}

.ao-faq__item summary:hover {
  color: var(--ao-accent);
}

/* Плюс, который поворачивается в крестик. */
.ao-faq__item summary::before,
.ao-faq__item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.6s var(--ao-ease);
}

.ao-faq__item summary::after {
  transform: rotate(90deg);
}

.ao-faq__item[open] summary::after {
  transform: rotate(180deg);
}

.ao-faq__item[open] summary::before {
  transform: rotate(180deg);
}

.ao-faq__answer {
  overflow: hidden;
}

.ao-faq__answer p {
  max-width: 62ch;
  padding: 0 64px 30px 0;
  color: var(--ao-muted);
  font-size: 1.04rem;
}

/* -------------------------------------------------------------------------
 * Подвал и финальный призыв
 * ---------------------------------------------------------------------- */

.ao-footer {
  position: relative;
  background: var(--ao-ink);
  color: var(--ao-on-dark);
  overflow: clip;
}

.ao-final {
  position: relative;
  padding: clamp(112px, 15vw, 200px) var(--ao-pad) clamp(88px, 11vw, 140px);
}

.ao-final__glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(58 91 255 / 0.38), rgb(58 91 255 / 0) 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.ao-final__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.ao-final__title {
  max-width: 16ch;
  font-size: clamp(2.5rem, 7vw, 6.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ao-final__text {
  max-width: 46ch;
  color: var(--ao-on-dark-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.ao-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.ao-footer__bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 32px var(--ao-pad);
  border-top: 1px solid var(--ao-line-dark);
  color: var(--ao-on-dark-muted);
  font-size: 0.9rem;
}

.ao-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-style: normal;
}

.ao-footer__contacts a {
  text-decoration: none;
  transition: color 0.3s;
}

.ao-footer__contacts a:hover {
  color: var(--ao-on-dark);
}

.ao-footer__copy {
  margin-left: auto;
}

/* -------------------------------------------------------------------------
 * Прочие страницы
 * ---------------------------------------------------------------------- */

.ao-page {
  min-height: 70vh;
  padding: calc(var(--ao-header-h) + 96px) var(--ao-gutter) 120px;
}

.ao-page__article {
  max-width: 760px;
  margin-inline: auto;
}

.ao-page__title {
  margin-bottom: 40px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.ao-page__content > * + * {
  margin-top: 1em;
}

/* -------------------------------------------------------------------------
 * Зерно – как в шаблонах КП: плёночная смена кадров 24 раза в секунду.
 * Плитка – готовые WebP 1×/2×/3×, отрисованные в Chrome из assets/img/grain.svg (тот же
 * шум feTurbulence). SVG-фильтр в фоне Safari и браузеры iPhone растеризуют в CSS-пикселях
 * и растягивают на Retina – зерно выходит крупным и размытым; картинка везде одинакова.
 * ---------------------------------------------------------------------- */

.ao-grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}

.ao-grain::before,
.ao-grain::after {
  content: '';
  position: absolute;
  inset: -160px;
  opacity: 0.17;
  background-image: url('assets/img/grain-2x.webp');
  background-image: -webkit-image-set(
    url('assets/img/grain-1x.webp') 1x,
    url('assets/img/grain-2x.webp') 2x,
    url('assets/img/grain-3x.webp') 3x
  );
  background-image: image-set(
    url('assets/img/grain-1x.webp') 1x,
    url('assets/img/grain-2x.webp') 2x,
    url('assets/img/grain-3x.webp') 3x
  );
  background-size: 160px 160px;
  will-change: transform;
}

.ao-grain::before {
  background-position: 80px 80px;
}

/* -------------------------------------------------------------------------
 * Анимации: начальные состояния до запуска script.js (класс ao-js ставится в <head>)
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .ao-grain::after {
    animation: ao-grain-a 0.5s steps(1) infinite;
  }

  .ao-grain::before {
    animation: ao-grain-b 0.458s steps(1) infinite;
  }

  /* Пока GSAP не запустился – элементы скрыты, без вспышки на первом кадре. Страховка:
   * CDN недоступен или скрипт упал – через 2,5 с всё видно и без анимации. */
  .ao-js:not(.ao-ready)
    :is(
      [data-ao-hero],
      [data-ao-hero-title],
      [data-ao-hero-stage],
      [data-ao-reveal],
      [data-ao-split],
      [data-ao-plan],
      [data-ao-cards] > *,
      [data-ao-stagger] > *
    ) {
    visibility: hidden;
    animation: ao-failsafe 0s linear 2.5s forwards;
  }
}

@keyframes ao-failsafe {
  to {
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------------------------
 * Иконки (маски)
 * ---------------------------------------------------------------------- */

:root {
  --ao-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --ao-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3'/%3E%3Crect x='4.5' y='11' width='15' height='10' rx='2.5'/%3E%3C/svg%3E");
  --ao-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a5bff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --ao-icon-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.6L19.5 10.5l-5.6 1.9L12 18l-1.9-5.6L4.5 10.5l5.6-1.9z'/%3E%3Cpath d='M19 16l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7z'/%3E%3C/svg%3E");
  --ao-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='6.5' y='2.5' width='11' height='19' rx='2.8'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E");
  --ao-icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A1.5 1.5 0 0 1 5.5 4h13A1.5 1.5 0 0 1 20 5.5v9a1.5 1.5 0 0 1-1.5 1.5H10l-4.5 3.5V16h0A1.5 1.5 0 0 1 4 14.5z'/%3E%3Cpath d='M8.5 10h.01M12 10h.01M15.5 10h.01' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --ao-icon-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --ao-icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 14h6M12.5 11.5L15 14l-2.5 2.5'/%3E%3C/svg%3E");
}

/* Кадры зерна: сдвиги не кратны плитке – каждый кадр рисунок другой. */
@keyframes ao-grain-a {
  0% {
    transform: translate3d(0, 0, 0);
  }
  8.333% {
    transform: translate3d(81px, 136px, 0);
  }
  16.667% {
    transform: translate3d(88px, 81px, 0);
  }
  25% {
    transform: translate3d(110px, 150px, 0);
  }
  33.333% {
    transform: translate3d(-53px, -56px, 0);
  }
  41.667% {
    transform: translate3d(112px, 93px, 0);
  }
  50% {
    transform: translate3d(-55px, -102px, 0);
  }
  58.333% {
    transform: translate3d(-78px, -104px, 0);
  }
  66.667% {
    transform: translate3d(125px, -129px, 0);
  }
  75% {
    transform: translate3d(52px, 81px, 0);
  }
  83.333% {
    transform: translate3d(-70px, -143px, 0);
  }
  91.667% {
    transform: translate3d(120px, -118px, 0);
  }
}
@keyframes ao-grain-b {
  0% {
    transform: translate3d(0, 0, 0);
  }
  9.091% {
    transform: translate3d(-120px, -132px, 0);
  }
  18.182% {
    transform: translate3d(-53px, -27px, 0);
  }
  27.273% {
    transform: translate3d(-135px, 87px, 0);
  }
  36.364% {
    transform: translate3d(17px, 75px, 0);
  }
  45.455% {
    transform: translate3d(-50px, 115px, 0);
  }
  54.545% {
    transform: translate3d(105px, -148px, 0);
  }
  63.636% {
    transform: translate3d(-107px, 84px, 0);
  }
  72.727% {
    transform: translate3d(132px, -108px, 0);
  }
  81.818% {
    transform: translate3d(-20px, 11px, 0);
  }
  90.909% {
    transform: translate3d(-33px, 112px, 0);
  }
}

/* -------------------------------------------------------------------------
 * Витрина первого экрана: браузер + телефон с настоящим КП
 * ---------------------------------------------------------------------- */

.ao-showcase {
  position: relative;
  padding-right: clamp(36px, 9vw, 150px);
  padding-bottom: clamp(24px, 4vw, 56px);
}

.ao-browser--showcase .ao-browser__screen {
  aspect-ratio: 16 / 9.6;
}

/* Окно первого экрана: три шаблона КП по очереди (script.js). Без анимации – первый. */
.ao-heroshots {
  container-type: size;
}

.ao-heroshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  will-change: transform, opacity;
}

.ao-heroshot--2,
.ao-heroshot--3 {
  opacity: 0;
}

/* iPhone первого экрана: страница без остановок вниз до конца и обратно. Длительность –
   как у окна (script.js, HERO_PASS): разделы проходят с одной скоростью. */
.ao-scroller--linear .ao-scroller__shot {
  animation: ao-scroll-linear 12s linear infinite alternate;
}

@keyframes ao-scroll-linear {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(calc(-100% + 100cqh));
  }
}

/* Страница КП внутри экрана прокручивается сама: остановки на блоках, потом обратно. */
.ao-scroller {
  overflow: hidden;
  container-type: size;
}

.ao-scroller__shot {
  display: block;
  width: 100%;
  height: auto;
  animation: ao-autoscroll 18s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
  will-change: transform;
}

@keyframes ao-autoscroll {
  0%,
  10% {
    transform: translateY(0);
  }
  30%,
  40% {
    transform: translateY(calc((-100% + 100cqh) * 0.34));
  }
  60%,
  70% {
    transform: translateY(calc((-100% + 100cqh) * 0.68));
  }
  90%,
  100% {
    transform: translateY(calc(-100% + 100cqh));
  }
}

/* Уведомление трекера: всплывает, держится и уходит по кругу. */
.ao-toast {
  position: absolute;
  left: 4%;
  bottom: 7%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 14px;
  background: #fff;
  color: var(--ao-ink);
  font-size: clamp(0.72rem, 1.1vw, 0.92rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px var(--ao-line),
    0 24px 50px -20px rgb(13 13 12 / 0.45);
  animation: ao-toast-cycle 9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ao-toast__pulse {
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--ao-accent);
  animation: ao-pulse 1.6s infinite;
}

@keyframes ao-toast-cycle {
  0%,
  18% {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  26%,
  78% {
    opacity: 1;
    transform: none;
  }
  88%,
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

@media (max-width: 599px) {
  .ao-toast {
    gap: 7px;
    padding: 8px 12px 8px 10px;
    border-radius: 10px;
  }

  .ao-toast__pulse {
    width: 7px;
    height: 7px;
  }
}

/* -------------------------------------------------------------------------
 * iPhone 17 Pro: корпус 71,9 × 150 мм, металлический торец, ровные чёрные рамки,
 * Dynamic Island, кнопки. Размеры внутри экрана – в cqw (доля ширины экрана, 402 pt).
 * ---------------------------------------------------------------------- */

.ao-iphone {
  position: relative;
  width: 100%;
  aspect-ratio: 71.9 / 150;
  isolation: isolate;
}

/* Торец: шлифованный алюминий с бликами по рёбрам. */
.ao-iphone__frame {
  position: absolute;
  inset: 0;
  padding: 1.5%;
  border-radius: 15.4% / 7.38%;
  background: linear-gradient(
    120deg,
    #f2f3f5 0%,
    #c3c6cb 14%,
    #edeef1 30%,
    #a9adb3 52%,
    #e4e6e9 74%,
    #bcc0c5 90%,
    #eef0f2 100%
  );
  box-shadow:
    inset 0 0 0 0.6px rgb(255 255 255 / 0.9),
    inset 0 0 0 1.6px rgb(0 0 0 / 0.14),
    0 40px 60px -24px rgb(13 13 12 / 0.38),
    0 12px 20px -10px rgb(13 13 12 / 0.22);
}

.ao-iphone__bezel {
  width: 100%;
  height: 100%;
  padding: 2.5%;
  border-radius: 14.2% / 6.8%;
  background: #060606;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
}

.ao-iphone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12.4% / 5.72%;
  background: #fdf0e7;
  container-type: inline-size;
  isolation: isolate;
}

/* Блик стекла. */
.ao-iphone__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 8;
  background: linear-gradient(118deg, rgb(255 255 255 / 0.16) 0%, rgb(255 255 255 / 0) 34%);
  pointer-events: none;
}

.ao-iphone__island {
  position: absolute;
  top: 2.8cqw;
  left: 50%;
  z-index: 7;
  width: 31.3cqw;
  height: 9.2cqw;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.ao-iphone__status {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 14.6cqw;
  padding: 0.6cqw 7.4cqw 0 9cqw;
  color: #000;
  font-family: -apple-system, 'SF Pro Text', var(--ao-font);
  font-size: 4.2cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.ao-iphone__icons {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
}

.ao-iphone__icons svg {
  height: 3cqw;
  width: auto;
  fill: currentColor;
}

.ao-iphone__icons svg:last-child {
  height: 3.2cqw;
}

/* Полоса «домой» и адресная строка Safari (iOS 26: плавающая стеклянная панель). */
.ao-iphone__home {
  position: absolute;
  bottom: 2cqw;
  left: 50%;
  z-index: 7;
  width: 35cqw;
  height: 1.3cqw;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.82);
  transform: translateX(-50%);
}

.ao-iphone__safari {
  position: absolute;
  right: 5cqw;
  bottom: 6.4cqw;
  left: 5cqw;
  z-index: 6;
  display: grid;
  place-items: center;
  height: 11.5cqw;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  color: #111;
  font-family: -apple-system, 'SF Pro Text', var(--ao-font);
  font-size: 3.7cqw;
  font-weight: 500;
  box-shadow:
    0 0 0 0.3cqw rgb(255 255 255 / 0.6) inset,
    0 3cqw 8cqw -2cqw rgb(0 0 0 / 0.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
  backdrop-filter: blur(10px) saturate(1.6);
}

.ao-iphone__page {
  position: absolute;
  inset: 14.6cqw 0 0;
  overflow: hidden;
}

.ao-iphone__page img {
  display: block;
  width: 100%;
  height: auto;
}

/* Кнопки на торцах: слева Action и громкость, справа питание и Camera Control. */
.ao-iphone__btn {
  position: absolute;
  z-index: -1;
  width: 1.2%;
  border-radius: 2px;
  background: linear-gradient(90deg, #9da1a7, #e9ebee 45%, #b4b8bd);
}

.ao-iphone__btn--action {
  top: 17%;
  left: -0.8%;
  height: 3.4%;
}

.ao-iphone__btn--up {
  top: 23.5%;
  left: -0.8%;
  height: 6.2%;
}

.ao-iphone__btn--down {
  top: 31.4%;
  left: -0.8%;
  height: 6.2%;
}

.ao-iphone__btn--power {
  top: 25%;
  right: -0.8%;
  height: 9.6%;
}

.ao-iphone__btn--camera {
  top: 53%;
  right: -0.5%;
  width: 0.9%;
  height: 7.4%;
}

/* В витрине первого экрана iPhone стоит поверх окна браузера. */
.ao-showcase__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(118px, 23%, 286px);
}

/* -------------------------------------------------------------------------
 * PDF против активного КП: два iPhone и четыре шага
 * ---------------------------------------------------------------------- */

.ao-vs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  min-height: min(100vh, 900px);
  padding-block: 24px;
}

.ao-vs__col {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.ao-vs__col .ao-iphone {
  width: min(100%, calc(min(72vh, 660px) * 0.479));
}

.ao-vs__label {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(13 13 12 / 0.07);
  color: var(--ao-muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ao-vs__label--web {
  background: var(--ao-accent);
  color: #fff;
}

.ao-vs__middle {
  display: grid;
  gap: 28px;
}

.ao-vs__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: rgb(13 13 12 / 0.06);
}

.ao-vs__tabs button {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 10px 4px;
  border: 0;
  border-radius: 13px;
  background: none;
  color: var(--ao-muted);
  font: 500 0.88rem/1.2 var(--ao-font);
  cursor: pointer;
  transition:
    background-color 0.35s,
    color 0.35s,
    box-shadow 0.35s;
}

.ao-vs__tabs button span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.ao-vs__tabs button[aria-selected='true'] {
  background: #fff;
  color: var(--ao-ink);
  box-shadow: 0 6px 16px -8px rgb(13 13 12 / 0.3);
}

.ao-vs__captions {
  display: grid;
}

.ao-vs__caption {
  display: grid;
  grid-area: 1 / 1;
  gap: 18px;
  align-content: start;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s var(--ao-ease),
    transform 0.6s var(--ao-ease);
  pointer-events: none;
}

.ao-vs[data-step='1'] [data-ao-vs-caption='1'],
.ao-vs[data-step='2'] [data-ao-vs-caption='2'],
.ao-vs[data-step='3'] [data-ao-vs-caption='3'],
.ao-vs[data-step='4'] [data-ao-vs-caption='4'] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ao-vs__was,
.ao-vs__now {
  position: relative;
  padding-left: 40px;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.ao-vs__was {
  color: var(--ao-muted);
}

.ao-vs__was::before,
.ao-vs__now::before {
  content: '';
  position: absolute;
  top: 0.1em;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ao-vs-bg) var(--ao-vs-icon) center / 13px no-repeat;
}

.ao-vs__was::before {
  --ao-vs-bg: rgb(13 13 12 / 0.08);
  --ao-vs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6b66' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}

.ao-vs__now::before {
  --ao-vs-bg: var(--ao-accent);
  --ao-vs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Телефон и узкий планшет: подписи и вкладки сверху, iPhone рядом. */
@media (max-width: 899px) {
  .ao-vs {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    min-height: 0;
  }

  .ao-vs__middle {
    grid-column: 1 / -1;
    grid-row: 1;
    gap: 18px;
  }

  .ao-vs__col {
    gap: 10px;
  }

  .ao-vs__col .ao-iphone {
    width: 100%;
  }

  .ao-vs__label {
    padding: 5px 10px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .ao-vs__tabs button {
    padding: 8px 2px;
    font-size: 0.78rem;
  }

  .ao-vs__captions {
    min-height: 9.5em;
  }

  .ao-vs__was,
  .ao-vs__now {
    padding-left: 32px;
    font-size: 0.98rem;
  }

  .ao-vs__was::before,
  .ao-vs__now::before {
    width: 22px;
    height: 22px;
    background-size: 11px;
  }
}

/* ---- Экраны шагов ---- */

.vs-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s;
}

.ao-vs[data-step='1'] .vs-screen--1,
.ao-vs[data-step='2'] .vs-screen--2,
.ao-vs[data-step='3'] .vs-screen--3,
.ao-vs[data-step='4'] .vs-screen--4 {
  opacity: 1;
}

/* Касание пальца: серый круг, как в записи экрана iOS. */
.vs-finger {
  position: absolute;
  z-index: 6;
  width: 11cqw;
  height: 11cqw;
  border: 0.5cqw solid rgb(255 255 255 / 0.85);
  border-radius: 50%;
  background: rgb(120 124 132 / 0.45);
  box-shadow: 0 1cqw 3cqw rgb(0 0 0 / 0.2);
  opacity: 0;
  pointer-events: none;
}

/* Мессенджер. */
.vs-chat {
  display: flex;
  flex-direction: column;
  background: #e9edf1;
}

.vs-chat__head {
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  padding: 15.5cqw 5cqw 3.4cqw;
  background: rgb(250 250 252 / 0.96);
  box-shadow: 0 0.3cqw 0 rgb(0 0 0 / 0.06);
  font-size: 4.2cqw;
  font-weight: 600;
}

.vs-chat__back {
  width: 2.6cqw;
  height: 2.6cqw;
  border-bottom: 0.7cqw solid #2f7cf6;
  border-left: 0.7cqw solid #2f7cf6;
  transform: rotate(45deg);
}

.vs-chat__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 9cqw;
  height: 9cqw;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a8bff, #3a5bff);
  color: #fff;
  font-size: 4cqw;
}

.vs-chat__avatar--client {
  background: linear-gradient(135deg, #f0a55b, #e5793b);
}

.vs-chat__avatar--tg {
  background: linear-gradient(135deg, #ff9a8b, #e8657a);
}

.vs-chat__name {
  display: grid;
  line-height: 1.15;
}

.vs-chat__name small {
  color: #8a8f98;
  font-size: 3cqw;
  font-weight: 500;
}

.vs-chat__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3cqw;
  padding: 6cqw 4cqw;
}

.vs-chat__input {
  display: flex;
  align-items: center;
  height: 11cqw;
  margin: 0 4cqw 9cqw;
  padding: 0 4cqw;
  border-radius: 999px;
  background: #fff;
}

.vs-chat__input i {
  width: 0.5cqw;
  height: 5cqw;
  background: #2f7cf6;
  animation: vs-caret 1s steps(1) infinite;
}

.vs-chat__input span {
  margin-left: 1.6cqw;
  color: #a0a5ad;
  font-size: 3.6cqw;
}

@keyframes vs-caret {
  50% {
    opacity: 0;
  }
}

.vs-chat--slide {
  position: absolute;
  inset: 0;
  z-index: 5;
  transform: translateX(102%);
}

.vs-bubble {
  max-width: 82%;
  padding: 3cqw;
  border-radius: 5cqw;
  background: #fff;
  box-shadow: 0 0.4cqw 1cqw rgb(0 0 0 / 0.06);
}

.vs-bubble--out {
  align-self: flex-end;
  background: #dcf3d0;
}

/* Файл: иконка PDF, имя, полоса загрузки. */
.vs-file {
  display: flex;
  gap: 3cqw;
  align-items: center;
}

.vs-file__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 12cqw;
  height: 14cqw;
  border-radius: 2cqw;
  background: #e5484d;
  color: #fff;
  font-size: 3.2cqw;
  font-weight: 700;
}

.vs-file__meta {
  display: grid;
  gap: 1.6cqw;
  min-width: 0;
}

.vs-file__name {
  overflow: hidden;
  font-size: 3.6cqw;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-file__bar {
  width: 40cqw;
  height: 1.4cqw;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e8eb;
}

.vs-file__bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #2f7cf6;
  transform: scaleX(0.03);
  transform-origin: left;
}

.vs-file__state {
  color: #8a8f98;
  font-size: 3.2cqw;
}

/* ---- Шаг 1 (общий цикл 10 с): PDF всё ещё грузится, а КП уже открыли и листают ---- */

.ao-vs[data-step='1'] .vs-file__bar i {
  animation: vs-load 10s linear infinite;
}

@keyframes vs-load {
  0% {
    transform: scaleX(0.03);
  }
  14% {
    transform: scaleX(0.22);
  }
  24% {
    transform: scaleX(0.31);
  }
  38% {
    transform: scaleX(0.58);
  }
  48% {
    transform: scaleX(0.7);
  }
  60%,
  100% {
    transform: scaleX(1);
  }
}

/* «Загрузка…» → «Открыть»: файл ещё только догружается, а активное КП уже листают. */
.vs-file {
  position: relative;
}

.vs-file__state {
  display: grid;
}

.vs-file__loading,
.vs-file__ready {
  grid-area: 1 / 1;
}

.vs-file__ready {
  color: #2f7cf6;
  font-weight: 600;
  opacity: 0;
}

.vs-pages {
  position: absolute;
  top: 3cqw;
  right: 3cqw;
  z-index: 3;
  display: grid;
  padding: 1.4cqw 3cqw;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: 3.2cqw;
  font-weight: 600;
}

.vs-pages--steps span {
  grid-area: 1 / 1;
  opacity: 0;
}

.ao-vs[data-step='1'] .vs-file__loading {
  animation: vs-loading 10s steps(1) infinite;
}

.ao-vs[data-step='1'] .vs-file__ready {
  animation: vs-ready 10s steps(1) infinite;
}

@keyframes vs-loading {
  0%,
  60% {
    opacity: 1;
  }
  61%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-ready {
  0%,
  60% {
    opacity: 0;
  }
  61%,
  100% {
    opacity: 1;
  }
}

.vs-link {
  position: relative;
  display: grid;
  gap: 1cqw;
  width: 74%;
  padding: 1.6cqw 1.6cqw 3cqw;
  overflow: hidden;
}

.vs-link__preview {
  height: 34cqw;
  border-radius: 3.6cqw;
  background-position: center top;
  background-size: cover;
}

.vs-link__title {
  padding: 1cqw 1.6cqw 0;
  font-size: 3.8cqw;
  font-weight: 600;
}

.vs-link__host {
  padding: 0 1.6cqw;
  color: #8a8f98;
  font-size: 3.2cqw;
}

.vs-tap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14cqw;
  height: 14cqw;
  margin: -7cqw 0 0 -7cqw;
  border-radius: 50%;
  background: rgb(120 124 132 / 0.45);
  opacity: 0;
}

.vs-open {
  position: absolute;
  inset: 14.6cqw 0 0;
  z-index: 3;
  overflow: hidden;
  background: #fdf0e7;
  container-type: size;
  transform: translateY(102%);
}

.vs-open img {
  display: block;
  width: 100%;
  height: auto;
}

.ao-vs[data-step='1'] .ao-iphone--web .vs-tap {
  animation: vs-tap 10s ease-out infinite;
}

.ao-vs[data-step='1'] .vs-open {
  animation: vs-open 10s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ao-vs[data-step='1'] .vs-open img {
  animation: vs-open-scroll 10s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

@keyframes vs-tap {
  0%,
  8% {
    opacity: 0;
    transform: scale(0.5);
  }
  10% {
    opacity: 1;
    transform: scale(0.85);
  }
  15%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes vs-open {
  0%,
  11% {
    transform: translateY(102%);
  }
  17%,
  95% {
    transform: none;
  }
  100% {
    transform: translateY(102%);
  }
}

/* КП листают раздел за разделом – пока у PDF ползёт полоса загрузки. */
@keyframes vs-open-scroll {
  0%,
  22% {
    transform: translateY(0);
  }
  34%,
  40% {
    transform: translateY(calc((-100% + 100cqh) * 0.22));
  }
  52%,
  58% {
    transform: translateY(calc((-100% + 100cqh) * 0.48));
  }
  70%,
  76% {
    transform: translateY(calc((-100% + 100cqh) * 0.72));
  }
  88%,
  100% {
    transform: translateY(calc((-100% + 100cqh) * 0.95));
  }
}

/* ---- Просмотрщик PDF ---- */

.vs-viewer {
  display: flex;
  flex-direction: column;
  background: #d8d9dd;
}

.vs-viewer__bar {
  position: relative;
  z-index: 2;
  padding: 15.5cqw 5cqw 3cqw;
  overflow: hidden;
  background: rgb(248 248 250 / 0.97);
  font-size: 3.6cqw;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-viewer__area {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* ---- Шаг 2 (цикл 12 с): настоящая презентация – листать, раздвигать, водить по слайду ---- */

.vs-viewer__stack {
  display: grid;
  gap: 4cqw;
  padding: 6cqw 4cqw;
}

.vs-slide {
  position: relative;
  aspect-ratio: 5244 / 3720;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1cqw 3cqw rgb(0 0 0 / 0.18);
}

.vs-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Слайд «Больше, чем просто фотозона»: мелкая таблица справа. Без размытия – в высоком разрешении. */
.vs-slide--zoom {
  z-index: 1;
  transform-origin: 74% 30%;
}

.ao-vs[data-step='2'] .vs-viewer__stack {
  animation: vs-stack 12s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

.ao-vs[data-step='2'] .vs-slide--zoom {
  animation: vs-zoom 12s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

.ao-vs[data-step='2'] .vs-screen--2 .vs-finger--a {
  animation: vs-pinch-a 12s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

.ao-vs[data-step='2'] .vs-screen--2 .vs-finger--b {
  animation: vs-pinch-b 12s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

/* Листаем до нужного слайда, в конце – обратно. */
@keyframes vs-stack {
  0%,
  4% {
    transform: translateY(0);
  }
  14%,
  86% {
    transform: translateY(-138.5cqw);
  }
  93%,
  96% {
    transform: translateY(-485cqw);
  }
  100% {
    transform: translateY(0);
  }
}

.ao-vs[data-step='2'] .vs-pages--steps span:nth-child(1) {
  animation: vs-page-1 12s steps(1) infinite;
}

.ao-vs[data-step='2'] .vs-pages--steps span:nth-child(2) {
  animation: vs-page-3 12s steps(1) infinite;
}

.ao-vs[data-step='2'] .vs-pages--steps span:nth-child(3) {
  animation: vs-page-8 12s steps(1) infinite;
}

@keyframes vs-page-1 {
  0%,
  10% {
    opacity: 1;
  }
  11%,
  98% {
    opacity: 0;
  }
  99%,
  100% {
    opacity: 1;
  }
}

@keyframes vs-page-3 {
  0%,
  10% {
    opacity: 0;
  }
  11%,
  89% {
    opacity: 1;
  }
  90%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-page-8 {
  0%,
  89% {
    opacity: 0;
  }
  90%,
  97% {
    opacity: 1;
  }
  98%,
  100% {
    opacity: 0;
  }
}

/* Активное КП в тот же момент: тот же раздел «Больше, чем просто фотозона» (с 1832 из 3919 px). */
.vs-read {
  overflow: hidden;
}

.vs-read img {
  display: block;
  width: 100%;
  height: auto;
}

.ao-vs[data-step='2'] .vs-read img {
  animation: vs-read 12s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

@keyframes vs-read {
  0%,
  4% {
    transform: translateY(0);
  }
  14%,
  30% {
    transform: translateY(-45.6%);
  }
  76%,
  86% {
    transform: translateY(-70%);
  }
  94%,
  96% {
    transform: translateY(-78%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Раздвигаем – водим по строкам таблицы – возвращаем. */
/* Таблица справа на слайде: название (57–74 % ширины) и описание до самого края (75–99 %).
   При увеличении 3,4 на экран влезает четверть слайда – строку ведут от названия к концу
   описания, затем ниже, к следующей. */
@keyframes vs-zoom {
  0%,
  16% {
    transform: none;
  }
  30% {
    transform: scale(3.4);
  }
  33% {
    transform: translate(-10%, 0) scale(3.4);
  }
  41% {
    transform: translate(-63%, 0) scale(3.4);
  }
  45% {
    transform: translate(-10%, -12%) scale(3.4);
  }
  53% {
    transform: translate(-63%, -12%) scale(3.4);
  }
  57% {
    transform: translate(-10%, -24%) scale(3.4);
  }
  65%,
  70% {
    transform: translate(-63%, -24%) scale(3.4);
  }
  84%,
  100% {
    transform: none;
  }
}

.vs-screen--2 .vs-finger--a,
.vs-screen--2 .vs-finger--b {
  top: 30%;
  left: 52%;
}

@keyframes vs-pinch-a {
  0%,
  14% {
    opacity: 0;
    transform: translate(0, 0);
  }
  16% {
    opacity: 1;
    transform: translate(0, 0);
  }
  30% {
    opacity: 1;
    transform: translate(-20cqw, -16cqw);
  }
  31%,
  32% {
    opacity: 0;
    transform: translate(4cqw, 4cqw);
  }
  /* Один палец ведёт слайд за собой: к концу строки – влево, к следующей – вправо и выше. */
  33% {
    opacity: 1;
    transform: translate(4cqw, 4cqw);
  }
  41% {
    opacity: 1;
    transform: translate(-44.8cqw, 4cqw);
  }
  45% {
    opacity: 1;
    transform: translate(4cqw, -3.8cqw);
  }
  53% {
    opacity: 1;
    transform: translate(-44.8cqw, -3.8cqw);
  }
  57% {
    opacity: 1;
    transform: translate(4cqw, -11.6cqw);
  }
  65% {
    opacity: 1;
    transform: translate(-44.8cqw, -11.6cqw);
  }
  68%,
  100% {
    opacity: 0;
    transform: translate(-44.8cqw, -11.6cqw);
  }
}

@keyframes vs-pinch-b {
  0%,
  14% {
    opacity: 0;
    transform: translate(7cqw, 6cqw);
  }
  16% {
    opacity: 1;
    transform: translate(7cqw, 6cqw);
  }
  30% {
    opacity: 1;
    transform: translate(26cqw, 22cqw);
  }
  33%,
  100% {
    opacity: 0;
    transform: translate(26cqw, 22cqw);
  }
}

/* ---- Шаг 3 (общий цикл 12 с): скопировать username со слайда и найти чат – или одна кнопка ---- */

.vs-copy {
  position: absolute;
  inset: 0;
}

/* Последний слайд, увеличенный на строке «Telegram: @aleksa_radan». */
.vs-contacts {
  position: absolute;
  top: 42%;
  left: 0;
  width: 100%;
  aspect-ratio: 5244 / 3720;
  transform: translate(36%, -91.5%) scale(3.2);
  transform-origin: 14% 91.5%;
}

.vs-contacts img {
  display: block;
  width: 100%;
  height: 100%;
}

.vs-select {
  position: absolute;
  top: calc(42% - 3cqw);
  left: calc(50% - 16cqw);
  width: 32cqw;
  height: 6.4cqw;
  border-radius: 0.6cqw;
  background: rgb(47 124 246 / 0.38);
  box-shadow:
    -0.5cqw 0 0 #2f7cf6,
    0.5cqw 0 0 #2f7cf6;
  opacity: 0;
}

.vs-menu {
  position: absolute;
  top: calc(42% - 15cqw);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 2.6cqw;
  padding: 2.4cqw 3.6cqw;
  border-radius: 3cqw;
  background: #1c1c1e;
  color: #fff;
  font-size: 3.3cqw;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
}

.vs-menu b {
  font-weight: 500;
}

.vs-menu i {
  width: 0.3cqw;
  height: 4cqw;
  background: rgb(255 255 255 / 0.3);
}

.vs-finger--press {
  top: calc(42% - 5.5cqw);
  left: calc(50% - 5.5cqw);
}

/* Telegram: поиск по скопированному username. */
.vs-tg {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 15cqw 4cqw 0;
  background: #fff;
  transform: translateX(102%);
}

.vs-tg__head {
  margin: 2cqw 1cqw 3cqw;
  font-size: 7.4cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vs-tg__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2cqw;
  height: 10cqw;
  padding: 0 3cqw;
  border-radius: 3cqw;
  background: #eff0f3;
  font-size: 3.8cqw;
}

.vs-tg__glass {
  width: 3.6cqw;
  height: 3.6cqw;
  border: 0.6cqw solid #8e939b;
  border-radius: 50%;
}

.vs-tg__placeholder {
  color: #8e939b;
}

.vs-tg__query {
  position: absolute;
  left: 9.6cqw;
  color: #111;
  opacity: 0;
}

.vs-paste {
  position: absolute;
  top: 23cqw;
  left: 12cqw;
  padding: 2.2cqw 3.6cqw;
  border-radius: 3cqw;
  background: #1c1c1e;
  color: #fff;
  font-size: 3.3cqw;
  opacity: 0;
}

.vs-tg__result {
  display: flex;
  gap: 3cqw;
  align-items: center;
  margin-top: 5cqw;
  padding: 2cqw 1cqw;
  font-size: 4cqw;
  font-weight: 600;
  opacity: 0;
}

.vs-finger--tg {
  top: 32cqw;
  left: calc(50% - 5.5cqw);
}

/* Подсказка снизу: какой из четырёх шагов сейчас. */
.vs-steps {
  position: absolute;
  right: 4cqw;
  bottom: 7cqw;
  left: 4cqw;
  z-index: 7;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: vs;
}

.vs-steps li {
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 2.4cqw;
  padding: 2.6cqw 3.4cqw;
  border-radius: 999px;
  background: rgb(28 28 30 / 0.88);
  color: #fff;
  font-size: 3.4cqw;
  font-weight: 500;
  counter-increment: vs;
  opacity: 0;
}

.vs-steps li::before {
  content: counter(vs) ' из 4';
  padding: 0.6cqw 2cqw;
  border-radius: 999px;
  background: #e5484d;
  font-size: 2.9cqw;
  font-weight: 700;
}

.ao-vs[data-step='3'] .vs-select {
  animation: vs-select 12s ease infinite;
}

.ao-vs[data-step='3'] .vs-menu {
  animation: vs-menu 12s ease infinite;
}

.ao-vs[data-step='3'] .vs-finger--press {
  animation: vs-press 12s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

.ao-vs[data-step='3'] .vs-tg {
  animation: vs-tg 12s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ao-vs[data-step='3'] .vs-paste {
  animation: vs-paste 12s ease infinite;
}

.ao-vs[data-step='3'] .vs-tg__placeholder {
  animation: vs-placeholder 12s steps(1) infinite;
}

.ao-vs[data-step='3'] .vs-tg__query {
  animation: vs-query 12s steps(1) infinite;
}

.ao-vs[data-step='3'] .vs-tg__result {
  animation: vs-result 12s ease infinite;
}

.ao-vs[data-step='3'] .vs-finger--tg {
  animation: vs-finger-tg 12s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

.ao-vs[data-step='3'] .vs-chat--pdf {
  animation: vs-chat-pdf 12s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ao-vs[data-step='3'] .vs-steps li:nth-child(1) {
  animation: vs-step-1 12s steps(1) infinite;
}

.ao-vs[data-step='3'] .vs-steps li:nth-child(2) {
  animation: vs-step-2 12s steps(1) infinite;
}

.ao-vs[data-step='3'] .vs-steps li:nth-child(3) {
  animation: vs-step-3 12s steps(1) infinite;
}

.ao-vs[data-step='3'] .vs-steps li:nth-child(4) {
  animation: vs-step-4 12s steps(1) infinite;
}

/* Долгое нажатие на username – переход к «Скопировать» – нажатие. */
@keyframes vs-press {
  0%,
  3% {
    opacity: 0;
    transform: scale(1);
  }
  5%,
  14% {
    opacity: 1;
    transform: scale(0.82);
  }
  20% {
    opacity: 1;
    transform: translate(-19cqw, -12cqw);
  }
  22% {
    opacity: 1;
    transform: translate(-19cqw, -12cqw) scale(0.82);
  }
  24%,
  100% {
    opacity: 0;
    transform: translate(-19cqw, -12cqw);
  }
}

@keyframes vs-select {
  0%,
  12% {
    opacity: 0;
  }
  14%,
  25% {
    opacity: 1;
  }
  27%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-menu {
  0%,
  15% {
    opacity: 0;
  }
  17%,
  24% {
    opacity: 1;
  }
  26%,
  100% {
    opacity: 0;
  }
}

/* Переключение в Telegram. */
@keyframes vs-tg {
  0%,
  28% {
    transform: translateX(102%);
  }
  34%,
  96% {
    transform: none;
  }
  100% {
    transform: translateX(102%);
  }
}

/* Нажать на поиск – «Вставить» – нажать на найденный чат. */
@keyframes vs-finger-tg {
  0%,
  36% {
    opacity: 0;
    transform: none;
  }
  38%,
  40% {
    opacity: 1;
    transform: scale(0.82);
  }
  45% {
    opacity: 1;
    transform: translate(-16cqw, -9cqw);
  }
  47% {
    opacity: 1;
    transform: translate(-16cqw, -9cqw) scale(0.82);
  }
  55% {
    opacity: 1;
    transform: translate(-6cqw, 17cqw);
  }
  57% {
    opacity: 1;
    transform: translate(-6cqw, 17cqw) scale(0.82);
  }
  59%,
  100% {
    opacity: 0;
    transform: translate(-6cqw, 17cqw);
  }
}

@keyframes vs-paste {
  0%,
  41% {
    opacity: 0;
  }
  42%,
  47% {
    opacity: 1;
  }
  48%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-placeholder {
  0%,
  48% {
    opacity: 1;
  }
  48.5%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-query {
  0%,
  48% {
    opacity: 0;
  }
  48.5%,
  97% {
    opacity: 1;
  }
  98%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-result {
  0%,
  50% {
    opacity: 0;
  }
  53%,
  97% {
    opacity: 1;
  }
  98%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-chat-pdf {
  0%,
  58% {
    transform: translateX(102%);
  }
  65%,
  96% {
    transform: none;
  }
  100% {
    transform: translateX(102%);
  }
}

@keyframes vs-step-1 {
  0%,
  29% {
    opacity: 1;
  }
  30%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-step-2 {
  0%,
  29% {
    opacity: 0;
  }
  30%,
  37% {
    opacity: 1;
  }
  38%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-step-3 {
  0%,
  37% {
    opacity: 0;
  }
  38%,
  55% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-step-4 {
  0%,
  55% {
    opacity: 0;
  }
  56%,
  97% {
    opacity: 1;
  }
  98%,
  100% {
    opacity: 0;
  }
}

/* Активное КП: страница «Контакты», касание кнопки Telegram – и чат открыт. */
.vs-shot {
  position: relative;
  aspect-ratio: 390 / 844;
}

.vs-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Кнопка Telegram на снимке: 20, 604, 350 × 56 из 390 × 844. */
.vs-press {
  position: absolute;
  top: 71.6%;
  left: 5.1%;
  width: 89.7%;
  height: 6.6%;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.16);
  opacity: 0;
}

.vs-finger--btn {
  top: calc(74.9% - 5.5cqw);
  left: calc(50% - 5.5cqw);
}

.ao-vs[data-step='3'] .vs-press {
  animation: vs-btn-press 12s ease infinite;
}

.ao-vs[data-step='3'] .vs-finger--btn {
  animation: vs-btn-finger 12s ease infinite;
}

.ao-vs[data-step='3'] .vs-chat--web {
  animation: vs-chat-web 12s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes vs-btn-finger {
  0%,
  5% {
    opacity: 0;
    transform: none;
  }
  7%,
  9% {
    opacity: 1;
    transform: scale(0.82);
  }
  11%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@keyframes vs-btn-press {
  0%,
  6% {
    opacity: 0;
  }
  7%,
  10% {
    opacity: 1;
  }
  12%,
  100% {
    opacity: 0;
  }
}

@keyframes vs-chat-web {
  0%,
  10% {
    transform: translateX(102%);
  }
  16%,
  96% {
    transform: none;
  }
  100% {
    transform: translateX(102%);
  }
}

/* ---- Шаг 4: PDF – только «Отправлено»; активное КП – уведомления трекера ---- */

.vs-unknown {
  display: grid;
  justify-items: center;
  gap: 3cqw;
  margin-top: 14cqw;
  color: #6b7079;
  font-size: 3.8cqw;
  text-align: center;
}

.vs-unknown span {
  display: grid;
  place-items: center;
  width: 20cqw;
  height: 20cqw;
  border-radius: 50%;
  background: #fff;
  color: #9aa0a8;
  font-size: 11cqw;
  font-weight: 600;
  box-shadow: 0 1cqw 4cqw rgb(0 0 0 / 0.08);
}

.ao-vs[data-step='4'] .vs-unknown span {
  animation: vs-wobble 2.6s ease-in-out infinite;
}

@keyframes vs-wobble {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}

.vs-lock {
  display: grid;
  align-content: start;
  gap: 2.6cqw;
  padding: 22cqw 4cqw 0;
  background: linear-gradient(170deg, #1a2350 0%, #0d0d0c 70%);
  color: #fff;
}

.vs-lock__time {
  margin-bottom: 10cqw;
  font-family: -apple-system, 'SF Pro Display', var(--ao-font);
  font-size: 23cqw;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
}

.vs-push {
  display: flex;
  gap: 3cqw;
  align-items: center;
  padding: 3.4cqw;
  border-radius: 5.4cqw;
  background: rgb(255 255 255 / 0.16);
  font-size: 3.5cqw;
  line-height: 1.3;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-4cqw) scale(0.96);
}

.vs-push__icon {
  position: relative;
  flex: none;
  width: 9.6cqw;
  height: 9.6cqw;
  border-radius: 2.6cqw;
  background: var(--ao-on-dark);
}

.vs-push__icon::after {
  content: '';
  position: absolute;
  right: 1.6cqw;
  bottom: 1.6cqw;
  width: 2.6cqw;
  height: 2.6cqw;
  border-radius: 50%;
  background: var(--ao-accent);
}

.vs-push__text {
  display: grid;
}

.vs-push__text b {
  font-weight: 600;
}

.ao-vs[data-step='4'] .vs-push--1 {
  animation: vs-push 6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ao-vs[data-step='4'] .vs-push--2 {
  animation: vs-push 6s cubic-bezier(0.16, 1, 0.3, 1) 1.1s infinite;
}

@keyframes vs-push {
  0%,
  8% {
    opacity: 0;
    transform: translateY(-4cqw) scale(0.96);
  }
  16%,
  88% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: none;
  }
}

.ao-vs[data-step='4'] .ao-iphone--web .ao-iphone__status {
  color: #fff;
}

.ao-vs[data-step='4'] .ao-iphone--web .ao-iphone__home {
  background: rgb(255 255 255 / 0.85);
}
