/* AuraOverlay — публичная страница. Без сборки и библиотек: один файл стилей. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/onest-latin.woff2) format('woff2');
  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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  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;
}

/* Радиус «линзы» анимируется плавно, если браузер умеет регистрировать свойства. */
@property --r {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-2: #0b0d12;
  --surface: #0f1218;
  --raised: #151922;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eceff5;
  --muted: #9097a6;
  --faint: #5d6576;
  --accent: #6ea8fe;
  --accent-ink: #06080c;
  --good: #4ade80;
  --bad: #f87171;
  --radius: 14px;
  --wrap: 1120px;
  --sans: 'Onest', 'SF Pro Text', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239097a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Зерно поверх всего: без него тёмный фон выглядит пластиковым. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
}

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

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

/* Отступ стрелки одинаков в браузерах; справа оставляем место и для длинного текста. */
select:not([multiple]):not([size]),
select:not([multiple])[size="1"] {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: var(--select-chevron);
  background-position: right 12px center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
}
@media (forced-colors: active) {
  select:not([multiple]):not([size]),
  select:not([multiple])[size="1"] {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
  }
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
}

/* --- шапка ------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.top.scrolled {
  background: rgba(7, 8, 11, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.top nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.top nav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--text);
  color: var(--accent-ink);
}
.button.primary:hover {
  background: #ffffff;
}
.button.ghost {
  border-color: var(--line-strong);
  /* У <button> свой серый фон от браузера — его надо снять явно. */
  background: transparent;
  color: var(--text);
}
.button.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}
.button.small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.button svg {
  width: 17px;
  height: 17px;
}

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

/*
  Первый экран: обещание, кнопка, под ними — сам звонок. Порядок обычный
  для страницы программы: сначала прочитали, потом увидели.
*/
.hero {
  position: relative;
  padding: 52px 0 44px;
}
/* Свет из-под сцены: один источник, без радуги. */
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 280px;
  /* Ширину ограничиваем окном: иначе свет растягивает страницу вбок. */
  width: min(1180px, 100%);
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 168, 254, 0.14), transparent);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}
h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h1 em {
  font-style: normal;
  color: var(--muted);
}
.lede {
  max-width: 46rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.requirements {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 13px;
}
/*
  Полоса совместимости под сценой: то же место, где на чужих страницах
  стоят логотипы. Названия словами — чужие знаки нам ставить незачем.
*/
.works-with {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin: 26px 0 0;
  color: var(--faint);
  font: 400 13px/1.5 var(--mono);
  text-align: center;
}
.works-with span {
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11.5px;
  align-self: center;
}

/* --- сцена: звонок и подсказка ------------------------------------------ */

.stage-block {
  position: relative;
  margin-top: 36px;
}
.stage-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--faint);
  font: 400 13px/1.4 var(--mono);
}
.stage-caption svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

/*
  Всё внутри макетов меряется в cqw — долях ширины сцены. Так макет
  уменьшается целиком, как картинка, но остаётся резким.
*/
.screen {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background: #0a0b0f;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 40px 120px -40px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}

/*
  Сцена — снимок звонка. Рисованный макет рядом с настоящей подсказкой
  читался как подделка, поэтому здесь фотография, а не CSS-человечки.
*/
.call-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dots {
  display: flex;
  gap: 0.6cqw;
}
.dots i {
  width: 0.9cqw;
  height: 0.9cqw;
  border-radius: 50%;
  background: #3a3f4a;
}
/* Метка демонстрации: её видит и собеседник — она вне линзы. */
.sharing {
  position: absolute;
  left: 2.4cqw;
  bottom: 1.9cqw;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0.5cqw 1cqw;
  border-radius: 99px;
  background: rgba(7, 8, 11, 0.55);
  color: #c4cad4;
  font: 400 1.15cqw/1 var(--mono);
}
.sharing::before {
  content: '';
  width: 0.7cqw;
  height: 0.7cqw;
  border-radius: 50%;
  background: var(--bad);
}

/* Подсказка поверх звонка */
.overlay {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.1cqw;
  background: #0b0d12;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 2.4cqw 7cqw -1cqw rgba(0, 0, 0, 0.85);
}
.overlay img {
  width: 100%;
  height: auto;
}
.stage .overlay {
  top: 6.4cqw;
  right: 3cqw;
  width: 52cqw;
  opacity: 0.96;
}

/*
  Линза: подсказку видно только внутри круга под курсором. Снаружи —
  ровно то, что получает собеседник на демонстрации.
*/
.stage {
  aspect-ratio: 1600 / 930;
  --x: 70%;
  --y: 30%;
  --r: 0px;
  cursor: none;
  transition: --r 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stage .reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 97%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 97%, transparent 100%);
}
.lens {
  position: absolute;
  z-index: 4;
  left: var(--x);
  top: var(--y);
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(186, 212, 255, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.16),
    0 0 26px rgba(110, 168, 254, 0.1) inset;
  pointer-events: none;
}
.lens span {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 10px;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.7);
  color: rgba(207, 224, 255, 0.72);
  font: 400 12px/1 var(--mono);
  white-space: nowrap;
}

/*
  Карточка подсказки, собранная вёрсткой, а не снимком.

  Снимок окна рисовался под 1440 точек: на телефоне от него остаются
  нечитаемые полоски, и главное — что именно отвечает помощник — пропадает.
  Вёрстка растёт вместе с кеглем и читается на любом экране, поэтому на
  телефоне показываем её, а снимок оставляем крупным экранам. Эта же
  карточка работает начинкой окна «живой пример».
*/
.app-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(180deg, #10141b, #0a0c11);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 80px -34px rgba(0, 0, 0, 0.95);
  text-align: left;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font: 400 11.5px/1 var(--mono);
  color: var(--muted);
}
.app-bar .stop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(248, 113, 113, 0.32);
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
}
.app-bar .stop i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}
.app-bar .timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-bar .timer::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bad);
}
.app-seg {
  display: inline-flex;
  margin-left: auto;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
}
.app-seg span {
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--faint);
  transition: background 0.2s ease, color 0.2s ease;
}
.app-seg .on {
  background: var(--raised);
  color: var(--text);
}
.app-q {
  margin: 0;
  padding: 13px 14px 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.4;
}
.app-body {
  padding: 9px 14px 14px;
}
.app-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.app-points li {
  position: relative;
  padding-left: 15px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.45;
}
.app-points li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.app-code {
  margin: 10px 0 0;
  padding: 11px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #090b10;
  color: #d7deef;
  font: 400 12.5px/1.75 var(--mono);
}
.app-code b {
  font-weight: 400;
  color: #8ab4ff;
}
.app-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/*
  Первый экран на телефоне.

  Линза под курсором там не работает: пальцем «наводить» некуда, а снимок
  звонка шириной в 350 точек не читается вовсе. Поэтому на телефоне другая
  композиция: полоса кадра со звонком — чтобы было понятно, где это
  происходит, — и поверх неё крупная карточка подсказки, ради которой всё
  и затевалось.
*/
.phone-stage {
  display: none;
  margin-top: 26px;
}
.phone-call {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7.5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0b0f;
}
.phone-call img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
/* Затемнение к низу: карточка налезает на кадр и должна читаться. */
.phone-call::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 11, 0.92));
}
.phone-call .sharing {
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  font-size: 11px;
  gap: 6px;
}
.phone-call .sharing::before {
  width: 6px;
  height: 6px;
}
.phone-stage .app-card {
  position: relative;
  z-index: 2;
  margin: -34px 6px 0;
}
.phone-note {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--faint);
  font: 400 12.5px/1.4 var(--mono);
  text-align: center;
}
.phone-note::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(110, 168, 254, 0.14);
}

/* Видно только на телефоне: на большом экране этих блоков нет. */
.phone-only {
  display: none;
}

/*
  «Собеседник / вы» на телефоне: вместо ползунка — две вкладки.

  Ползунок требует точного движения по узкой полосе и показывает половину
  и того и другого; на телефоне это просто две мелкие половинки. Вкладки
  показывают каждое состояние целиком и во всю ширину.
*/
.phone-split {
  display: none;
  margin-top: 22px;
}
.tabs2 {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.tabs2 button {
  flex: 1;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tabs2 button.on {
  background: var(--raised);
  color: var(--text);
}
.phone-screen {
  position: relative;
  margin-top: 12px;
}
/* Редактор собеседника: тот же макет, но кеглем, который читается пальцем. */
.phone-ide {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0c11;
}
.phone-ide .share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font: 400 11px/1 var(--mono);
}
.phone-ide .share-bar b {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 99px;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  font-weight: 400;
}
.phone-ide .dots i {
  width: 6px;
  height: 6px;
}
.phone-ide pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  color: #cbd3e6;
  font: 400 12px/1.8 var(--mono);
}
.phone-ide pre b {
  font-weight: 400;
}
.phone-ide pre .k {
  color: #c792ea;
}
.phone-ide pre .f {
  color: #82aaff;
}
.phone-ide pre .c {
  color: #5c6478;
}
/* Карточка «что видите вы» приезжает поверх редактора. */
.phone-mine {
  margin-top: -18px;
  padding: 0 4px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.app-lede {
  margin: 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.45;
}
/* Пояснение под вкладками — своё, короче настольного. */
.phone-split .split-note {
  display: block;
  margin-top: 14px;
}
.phone-split[data-view='theirs'] .phone-mine {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin-top: 0;
}

/* Ссылка в карточке: открывает окно с живым примером. */
.demo-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.demo-link::after {
  content: ' →';
}
.demo-link:hover {
  opacity: 0.75;
}

/* Суфлёр: текущая строка яркая, соседние притушены — так он и выглядит. */
.prompter-demo {
  display: grid;
  gap: 7px;
  width: 100%;
  max-width: 200px;
  margin-left: auto;
  text-align: right;
}
.prompter-demo i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}
.prompter-demo i:first-child {
  width: 70%;
  margin-left: auto;
}
.prompter-demo i:last-child {
  width: 55%;
  margin-left: auto;
}
.prompter-demo b {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

/* Запись вопроса: точка, дорожка и время. */
.rec-demo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.45);
  animation: rec 1.8s ease-out infinite;
}
@keyframes rec {
  70% {
    box-shadow: 0 0 0 9px rgba(248, 113, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
}
.rec-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
}
.rec-wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  transform: scaleY(0.3);
  animation: wave 1.4s ease-in-out infinite;
}
.rec-wave i:nth-child(2n) {
  animation-delay: -0.4s;
}
.rec-wave i:nth-child(3n) {
  animation-delay: -0.8s;
}
.rec-time {
  color: var(--faint);
  font: 400 12.5px/1 var(--mono);
}

/* Окно живого примера: шире обычного, внутри — карточка подсказки. */
.sheet.demo {
  max-width: 620px;
}
.demo-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}
.demo-q {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.demo-q.on {
  border-color: rgba(110, 168, 254, 0.5);
  background: rgba(110, 168, 254, 0.12);
  color: var(--accent);
}
/* Рабочий переключатель внутри карточки примера. */
.app-seg.live button {
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.app-seg.live button.on {
  background: var(--raised);
  color: var(--text);
}
.demo-foot {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

/* Суфлёр внутри окна: то, что видит человек, когда читает ответ вслух. */
.prompter-view {
  display: grid;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #090b10;
}
.prompter-view p {
  margin: 0;
  color: rgba(236, 239, 245, 0.28);
  font-size: 19px;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.prompter-view p.now {
  color: var(--text);
}

/* --- цены ---------------------------------------------------------------- */

#price > .wrap > h2 { max-width: 24ch; text-wrap: balance; }
#price > .wrap > .section-lede { max-width: 640px; text-wrap: balance; }
.price-toolbar { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; }
.price-switch { display: inline-flex; width: min(480px, 100%); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.price-switch button { flex: 1; padding: 10px 18px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.price-switch button.on { background: var(--text); color: var(--bg); }
.price-trial { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
.price-trial a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 4px; white-space: nowrap; }
.price-trial a:hover { color: var(--accent); }
.price-panel { margin-top: 24px; }
.price-panel[hidden] { display: none; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; text-align: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan.best { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--surface); }
.plan-heading { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 29px; }
.plan .plan-term { margin: 0; color: var(--text); font-size: 20px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; }
.plan-badge { flex: none; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.plan.best .plan-badge { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.plan-purpose { margin: 8px 0 26px; color: var(--muted); font-size: 13px; }
.plan-price { margin: 0; color: var(--text); font-size: 42px; font-weight: 550; line-height: 1.15; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: 28px; font-weight: 400; }
.plan-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 24px; min-height: 21px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.plan-volume { margin: 0 0 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text); font-size: 14px; }
.plan .button { margin-top: auto; justify-content: center; width: 100%; }
.price-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 800px; margin: 24px auto 0; }
.price-terms p { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 20px; margin: 0; font-size: 12px; color: var(--muted); }
.price-terms p + p { border-left: 1px solid var(--line); }
.price-terms strong { color: var(--text); font-size: 13px; font-weight: 500; }
.price-adviser { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-adviser > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; cursor: pointer; color: var(--text); font-size: 14px; list-style: none; }
.price-adviser > summary::-webkit-details-marker { display: none; }
.price-adviser > summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.price-adviser[open] > summary::after { content: '−'; }
.price-calc { padding: 6px 0 22px; max-width: 680px; }
.calc-q { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.price-calc .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.price-calc .chip { min-width: 48px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.price-calc .chip:hover { border-color: var(--line-strong); color: var(--text); }
.price-calc .chip.on { border-color: var(--accent); background: var(--raised); color: var(--accent); }
.calc-answer { margin: 16px 0 0; color: var(--text); font-size: 14px; line-height: 1.65; }
.calc-answer b { font-weight: 550; }
.price-foot { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }

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

section {
  position: relative;
}
.section {
  padding: 120px 0 0;
}
.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.02em;
}
h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-lede {
  max-width: 32rem;
  margin: 18px 0 0;
  color: var(--muted);
}

/* Как работает */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.step {
  padding: 28px 28px 0 0;
}
.step + .step {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.step h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.visual {
  display: flex;
  align-items: center;
  height: 92px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  overflow: hidden;
}

/* 01 — звук */
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}
.wave i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: center;
  animation: wave 1.2s ease-in-out infinite;
}
.wave i:nth-child(2n) {
  animation-delay: -0.3s;
}
.wave i:nth-child(3n) {
  animation-delay: -0.7s;
}
.wave i:nth-child(5n) {
  animation-delay: -0.5s;
}
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.15);
  }
  50% {
    transform: scaleY(1);
  }
}
.apps {
  margin-left: auto;
  color: var(--faint);
  font: 400 12px/1.6 var(--mono);
  text-align: right;
}

/* 02 — решение */
.decisions {
  display: grid;
  gap: 8px;
  width: 100%;
  /* Ячейка сетки по умолчанию не ужимается меньше содержимого: без этого
     длинная реплика в одну строку растягивала колонку шагов, а с ней и всю
     страницу — на узком телефоне она уезжала вбок. */
  min-width: 0;
  font-size: 13.5px;
}
.decision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.decision q {
  overflow: hidden;
  /* Без этого строка в одну линию задаёт минимальную ширину всей колонке
     шагов, и на узком телефоне страница уезжает вбок целиком. */
  min-width: 0;
  flex: 1;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  quotes: '«' '»';
}
.decision b {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font: 400 11.5px/1 var(--mono);
}
.decision .skip {
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint);
}
.decision .help {
  background: rgba(110, 168, 254, 0.14);
  color: var(--accent);
}

/* 03 — подсказка */
.mini-hint {
  display: grid;
  gap: 7px;
  width: 100%;
}
.mini-hint i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}
.mini-hint i:first-child {
  width: 40%;
  background: rgba(255, 255, 255, 0.07);
}
.mini-hint i:nth-child(2) {
  width: 92%;
}
.mini-hint i:nth-child(3) {
  width: 74%;
}
.mini-hint i:nth-child(4) {
  width: 84%;
}
.reveal-on .mini-hint i:not(:first-child) {
  animation: type 2.8s steps(18) infinite;
  transform-origin: left;
}
.reveal-on .mini-hint i:nth-child(3) {
  animation-delay: 0.25s;
}
.reveal-on .mini-hint i:nth-child(4) {
  animation-delay: 0.5s;
}
@keyframes type {
  0% {
    transform: scaleX(0);
  }
  45%,
  100% {
    transform: scaleX(1);
  }
}

/* Сравнение: собеседник и вы */
.split-block {
  margin-top: 48px;
}
.split {
  --split: 50%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.split .layer {
  position: absolute;
  inset: 0;
}
.split .mine {
  z-index: 2;
  clip-path: inset(0 0 0 var(--split));
}
.split .theirs::after,
.split .mine::after {
  position: absolute;
  bottom: 1.6cqw;
  z-index: 5;
  padding: 0.5cqw 1cqw;
  border-radius: 99px;
  background: rgba(7, 8, 11, 0.8);
  color: #d6dbe4;
  font: 400 1.15cqw/1 var(--mono);
  white-space: nowrap;
}
.split .theirs::after {
  content: 'видит собеседник';
  left: 1.6cqw;
}
.split .mine::after {
  content: 'видите вы';
  right: 1.6cqw;
  color: #cfe0ff;
}
.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 6;
  width: 44px;
  transform: translateX(-50%);
  cursor: ew-resize;
  outline: none;
}
.handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--text);
  box-shadow: 0 0 24px rgba(110, 168, 254, 0.6);
}
.handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--text)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306080c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 7l-5 5 5 5M15 7l5 5-5 5'/></svg>")
    center / 20px no-repeat;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s;
}
.handle:hover::after,
.handle:focus-visible::after,
.split.dragging .handle::after {
  transform: translate(-50%, -50%) scale(1.08);
}
.handle:focus-visible::after {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--accent);
}
/* Пока полоса едет сама, вокруг ручки расходится круг — видно, что её тянут. */
.split.hinting .handle::after {
  animation: handle-pulse 1.3s ease-out 2;
}
@keyframes handle-pulse {
  0% {
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.5),
      0 0 0 0 rgba(110, 168, 254, 0.5);
  }
  70%,
  100% {
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.5),
      0 0 0 18px rgba(110, 168, 254, 0);
  }
}
.split-note {
  max-width: 42rem;
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 14px;
}

/* Экран с задачей */
.ide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 4.2cqw 1fr;
  background: #0e1015;
}
.share-bar {
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0 1.6cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #9aa1ad;
  font-size: 1.15cqw;
}
.share-bar b {
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  margin-left: auto;
  padding: 0.35cqw 0.9cqw;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.14);
  color: #7ee2a1;
  font-weight: 500;
}
.panes {
  display: grid;
  grid-template-columns: 38fr 62fr;
  min-height: 0;
}
.task {
  padding: 2.4cqw;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  color: #aeb4bf;
  font-size: 1.25cqw;
  line-height: 1.6;
}
.task h4 {
  margin: 0 0 1.2cqw;
  color: #eceff5;
  font-size: 1.8cqw;
  font-weight: 600;
}
.task .level {
  display: inline-block;
  margin-bottom: 1.4cqw;
  padding: 0.2cqw 0.8cqw;
  border-radius: 99px;
  background: rgba(74, 222, 128, 0.12);
  color: #7ee2a1;
  font-size: 1.05cqw;
}
.task p {
  margin: 0 0 1.2cqw;
}
.task pre {
  margin: 0;
  padding: 1.2cqw;
  border-radius: 0.8cqw;
  background: rgba(255, 255, 255, 0.04);
  color: #c8cdd6;
  font: 400 1.1cqw/1.6 var(--mono);
  white-space: pre-wrap;
}
.code {
  margin: 0;
  padding: 2.4cqw 2cqw;
  color: #c9d1dc;
  font: 400 1.35cqw/1.9 var(--mono);
  counter-reset: line;
}
.code span {
  display: block;
  white-space: pre;
}
.code span::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 3cqw;
  color: #414856;
}
.code b {
  font-weight: 400;
}
.code .k {
  color: #c792ea;
}
.code .f {
  color: #82aaff;
}
.code .c {
  color: #5c6573;
}
.code .caret::after {
  content: '';
  display: inline-block;
  width: 0.15cqw;
  height: 1.7cqw;
  margin-left: 0.1cqw;
  vertical-align: -0.35cqw;
  background: #eceff5;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
/*
  Окно подсказки сдвинуто вправо и вниз: условие задачи и первые строки кода
  остаются на виду. Раньше оно стояло по центру и закрывало ровно то, ради
  чего человек и смотрит на этот макет, — саму задачу.

  Прозрачность здесь не украшение, а показ настоящей возможности: окно
  приложения просвечивает, и сквозь подсказку видно редактор под ней.
  Разделитель всё так же проходит по окну — видно, что именно исчезает
  у собеседника.
*/
.split .overlay {
  top: 14cqw;
  left: 46cqw;
  width: 46cqw;
  /*
    0.87 — видно, что окно просвечивает (под ним читается код), и при этом
    сама подсказка остаётся читаемой. Выше 0.92 прозрачности не видно вовсе,
    ниже 0.8 подсказку приходится разбирать.
  */
  opacity: 0.87;
}

/* Возможности */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}
.feature:nth-child(even) {
  padding-left: 32px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--faint);
  font: 400 11px/1.3 var(--mono);
  vertical-align: 3px;
}
.keys {
  display: flex;
  gap: 5px;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--raised);
  color: #d8dde6;
  font: 500 13px/1 var(--sans);
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg-2);
  font-size: 13px;
}
.segmented span {
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--faint);
}
.segmented span.on {
  background: var(--raised);
  color: var(--text);
  animation: flip 4s infinite;
}
.segmented span:not(.on) {
  animation: flip 4s infinite 2s;
}
@keyframes flip {
  0%,
  45% {
    background: var(--raised);
    color: var(--text);
  }
  50%,
  95% {
    background: transparent;
    color: var(--faint);
  }
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg-2);
  color: #cdd3dd;
  font: 400 12.5px/1 var(--mono);
}
.file-chip::before {
  content: 'PDF';
  padding: 3px 4px;
  border-radius: 4px;
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
  font-size: 9.5px;
}
.pointer-demo {
  position: relative;
  width: 64px;
  height: 36px;
}
.pointer-demo svg {
  position: absolute;
  width: 20px;
  height: 20px;
}
.pointer-demo .real {
  left: 2px;
  top: 8px;
}
.pointer-demo .ghost {
  left: 34px;
  top: 4px;
  opacity: 0.7;
  animation: ghost 3.2s ease-in-out infinite;
}
@keyframes ghost {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, 10px);
  }
}

/* Где пригодится */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 52px;
  border-top: 1px solid var(--line);
}
.case {
  padding: 26px 32px 26px 0;
  border-bottom: 1px solid var(--line);
}
.case:nth-child(even) {
  padding: 26px 0 26px 32px;
  border-left: 1px solid var(--line);
}
.case h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.case p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* Вопросы */
.faq {
  max-width: 760px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq details p {
  max-width: 40rem;
  margin: -6px 0 22px;
  color: var(--muted);
}

/* Финал */
.final {
  margin-top: 140px;
  padding: 96px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(60% 80% at 50% 0%, rgba(110, 168, 254, 0.1), transparent 70%);
}
.final h2 {
  max-width: none;
  margin-inline: auto;
}
.final .actions {
  justify-content: center;
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}

/* Появление при прокрутке */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rise.reveal-on {
  opacity: 1;
  transform: none;
}

/* --- окно с тарифами ---------------------------------------------------- */

/*
  Цены живут в окне, а не на странице: так они не мешают читать про приложение,
  а когда их всё-таки открыли — видно сразу обе схемы оплаты и разницу между
  ними. Выбранная строка отмечена кружком: это выбор, а не покупка в один клик.
*/
.sheet.price-sheet {
  width: min(520px, 100%);
}
.tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.tab {
  flex: 1;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: 500 14px/1.2 var(--sans);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.tab:hover {
  color: var(--text);
}
.tab.on {
  background: var(--raised);
  color: var(--text);
}
.sheet-lede {
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.5;
}
.tariffs {
  display: grid;
  gap: 8px;
}
.tariff {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 3px 13px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.tariff:hover {
  border-color: var(--line-strong);
}
.tariff.on {
  border-color: var(--accent);
  background: rgba(110, 168, 254, 0.07);
}
.tariff .mark {
  grid-area: 1 / 1 / 3 / 2;
  align-self: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: box-shadow 0.15s;
}
.tariff.on .mark {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent);
}
.tariff .term {
  grid-area: 1 / 2 / 2 / 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.tariff .badge {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.14);
  color: var(--good);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.tariff .note {
  grid-area: 2 / 2 / 3 / 3;
  color: var(--faint);
  font-size: 12.5px;
}
.tariff .price {
  grid-area: 1 / 3 / 3 / 4;
  align-self: center;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

/* --- общий каркас окна ---------------------------------------------------- */

.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 7, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s;
}
.sheet-wrap.shown {
  opacity: 1;
}
.sheet {
  width: min(460px, 100%);
  padding: 26px 26px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  transform: translateY(8px);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet-wrap.shown .sheet {
  transform: none;
}
.sheet h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sheet p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.sheet .actions {
  margin-top: 18px;
}

/* --- полоса про счётчик посещений ------------------------------------------ */

/*
  Маленькая и в углу: сказать про счётчик нужно, но перекрывать ради этого
  страницу незачем. Показывается один раз, выключатель — в политике.
*/
.cookies {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 110;
  width: min(380px, calc(100vw - 40px));
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(15, 18, 24, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cookies.shown {
  opacity: 1;
  transform: none;
}
.cookies p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.cookies a {
  color: var(--accent);
  text-decoration: none;
}
.cookies a:hover {
  text-decoration: underline;
}
.cookies-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookies-btn {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 500 13px/1 var(--sans);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.cookies-btn:hover {
  color: var(--text);
  border-color: var(--text);
}
.cookies-btn.primary {
  border-color: transparent;
  background: var(--text);
  color: var(--accent-ink);
}
.cookies-btn.primary:hover {
  background: #fff;
}

/* --- узкие экраны ------------------------------------------------------ */

/*
  Телефон и узкий планшет: макеты, рассчитанные на курсор и ширину,
  уступают место телефонным. Граница — 720: до неё окно подсказки внутри
  сцены становится меньше трёхсот точек и перестаёт читаться.
*/
@media (max-width: 720px) {
  .stage-block .stage,
  .stage-caption {
    display: none;
  }
  .phone-stage {
    display: block;
  }
  .split-block > .split,
  .split-block > .split-note {
    display: none;
  }
  .phone-split,
  .phone-only {
    display: block;
  }
}

@media (max-width: 860px) {
  .top nav {
    display: none;
  }
  /* Ссылки подвала в одну строку не помещались и утягивали вбок всю страницу. */
  footer .wrap {
    gap: 14px;
  }
  footer nav {
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-left: 0;
  }
  .top .button {
    margin-left: auto;
  }
  .hero {
    padding-top: 40px;
  }
  .steps,
  .features,
  .cases {
    grid-template-columns: 1fr;
  }
  .case,
  .case:nth-child(even) {
    padding: 22px 0;
    border-left: 0;
  }
  .works-with {
    justify-content: flex-start;
    text-align: left;
  }
  .sheet .actions .button {
    flex: 1;
  }
  /* На узком экране окну нужны те же цифры, но меньше воздуха по краям. */
  .sheet {
    padding: 22px 18px 18px;
  }
  .tariff {
    padding: 12px;
    gap: 3px 10px;
  }
  .tariff .term {
    flex-wrap: wrap;
    gap: 3px 6px;
    font-size: 14.5px;
  }
  .tariff .price {
    font-size: 16px;
  }
  .cookies {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .cookies-actions .cookies-btn {
    flex: 1;
  }
  .step,
  .step + .step {
    padding: 28px 0 0;
    border-left: 0;
  }
  .feature:nth-child(odd),
  .feature:nth-child(even) {
    padding: 26px 0;
    border-right: 0;
  }
  /*
    На телефоне картинка уходит под текст: рядом она отбирала половину ширины,
    и описание сыпалось по два слова в строку.
  */
  .feature {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature .keys,
  .feature .segmented,
  .feature .prompter-demo,
  .feature .rec-demo,
  .feature .file-chip,
  .feature .pointer-demo {
    margin-left: 0;
    justify-self: start;
  }
  .prompter-demo {
    max-width: 280px;
    margin-left: 0;
    text-align: left;
  }
  .prompter-demo i:first-child,
  .prompter-demo i:last-child {
    margin-left: 0;
  }
  .demo-link {
    text-align: left;
  }
  .section {
    padding-top: 88px;
  }
  .stage {
    cursor: auto;
  }
  .lens span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rise {
    opacity: 1;
    transform: none;
  }
}

/*
  Телефон. Всё, что ниже, — только для узких экранов: на компьютере страница
  остаётся прежней. Главное отличие не в размерах шрифта, а в макетах: в них
  всё меряется долями ширины сцены, и на 360 пикселях подписи в макете
  превращались в четырёхпиксельную кашу.
*/
@media (max-width: 640px) {
  .section {
    padding-top: 56px;
  }
  .final {
    margin-top: 72px;
    padding: 56px 0;
  }
  .steps {
    margin-top: 32px;
  }
  .visual {
    height: 76px;
  }
  .features,
  .cases {
    margin-top: 32px;
  }
  .faq {
    margin-top: 28px;
  }
  .split-block {
    margin-top: 28px;
  }
  .split-note {
    font-size: 13px;
  }

  /* Подписи внутри макета звонка: на телефоне их читать, а не угадывать. */
  .sharing {
    left: 3cqw;
    bottom: 2.4cqw;
    padding: 0.8cqw 1.6cqw;
    font-size: 2.4cqw;
  }
  .lens span {
    display: none;
  }

  /*
    Сравнение «собеседник / вы». Условие задачи на телефоне не прочитать —
    убираем его и отдаём всю ширину коду и окну подсказки: смысл блока в том,
    что справа от полосы появляется окно, а не в тексте задачи.
  */
  .split .task {
    display: none;
  }
  .split .panes {
    grid-template-columns: 1fr;
  }
  .split .share-bar {
    font-size: 2.2cqw;
    gap: 1.6cqw;
  }
  .split .dots i {
    width: 1.6cqw;
    height: 1.6cqw;
  }
  .split .code {
    padding: 3cqw;
    font-size: 2.6cqw;
    line-height: 1.8;
  }
  .split .code span::before {
    width: 5cqw;
  }
  .split .code .caret::after {
    width: 0.3cqw;
    height: 3.2cqw;
    vertical-align: -0.7cqw;
  }
  /*
    Сцена на телефоне выше и почти квадратная: окно подсказки во всю ширину
    в пропорции 16:10 не помещалось и обрезалось нижним краем.
  */
  .split {
    aspect-ratio: 1 / 1;
  }
  .split .overlay {
    top: 22cqw;
    left: 12cqw;
    width: 84cqw;
  }
  .split .theirs::after,
  .split .mine::after {
    bottom: 2.4cqw;
    padding: 0.8cqw 1.6cqw;
    font-size: 2.4cqw;
  }
  .split .theirs::after {
    left: 2.4cqw;
  }
  .split .mine::after {
    right: 2.4cqw;
  }
  .handle::after {
    width: 34px;
    height: 34px;
    background-size: 17px;
  }
}

/* Тарифы: спокойное сравнение на ноутбуке, компактные карточки на телефоне. */
@media (min-width: 721px) and (max-width: 1000px) {
  .plan { padding: 20px; }
  .plan-heading { min-height: 29px; }
  .plan .plan-term { font-size: 17px; }
  .plan-purpose { min-height: 40px; margin-bottom: 18px; }
  .plan-price { font-size: 36px; }
}
@media (max-width: 720px) {
  .price-toolbar { gap: 14px; margin-top: 24px; }
  .price-switch { display: flex; width: 100%; }
  .price-switch button { flex: 1; padding: 10px 8px; font-size: 13px; }
  .price-trial { font-size: 12px; }
  .plans { grid-template-columns: 1fr; gap: 12px; }
  .plan { padding: 22px; }
  .plan-purpose { margin-bottom: 20px; }
  .plan-note { margin-bottom: 18px; }
  .plan-volume { margin-bottom: 18px; padding-top: 14px; }
  .price-terms { grid-template-columns: 1fr; gap: 14px; }
  .price-terms p { display: block; padding: 0; }
  .price-terms p + p { border-left: 0; }
  .price-terms span { display: block; margin-top: 3px; }
}
