/* Before · бумага, сетка, ультрамарин. Заголовки Unbounded, текст Onest, карточки с жёсткой тенью. */

:root {
  --paper: #f4f4f0;
  --ink: #0a0a0a;
  --ink-2: #2a2a28;
  --mute: #6b6b66;
  --blue: #1b2cff;
  --blue-deep: #1120c9;
  --warn: #c8460a;
  --line: rgba(10, 10, 10, 0.12);
  --shadow: 12px 12px 0 var(--ink);
  --shadow-sm: 8px 8px 0 var(--ink);

  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --font: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 240px, 12.5% 100%;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
img, svg, video { max-width: 100%; height: auto; display: block; }

.tile__num,
.plan__price,
.msg__time,
.demo__clock,
.lead__score,
.lead__foot,
.leadcard { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 14px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Карточки ---------- */

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}
.card--blue { background: var(--blue); color: #fff; }
.card--tilt-l { transform: rotate(-2deg); }
.card--tilt-r { transform: rotate(1.5deg); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 28px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-deep); }
.btn--line { background: transparent; color: var(--ink); }
.btn--paper { background: #fff; color: var(--ink); }
.btn--sm { padding: 12px 20px; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.card--blue .btn:hover { box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Шапка и лента ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  height: 64px;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { font-size: 0.98rem; color: var(--ink-2); }
.top__nav a:hover { color: var(--blue); }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }

.tape {
  position: relative; z-index: 1;
  height: 40px;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.tape__track {
  display: flex;
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--mute);
  animation: tape 60s linear infinite;
  will-change: transform;
}
.tape__track span { padding: 0 32px; }
.tape__track em { font-style: normal; color: var(--blue); font-weight: 500; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Сетка секций ---------- */

main > section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 120px) var(--gutter) 0;
}
main > section:last-child { padding-bottom: clamp(72px, 8vw, 120px); }

.sec__head { display: grid; gap: 14px; margin-bottom: 44px; }
.sec__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--blue);
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.sec__head p { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.3; }

/* ---------- Хиро ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: max-content minmax(0, 1fr) auto;
  gap: 28px 40px;
  align-items: start;
  padding-top: clamp(40px, 5vw, 72px) !important;
}
.hero h1 { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 1; }
.hero__copy { grid-column: 1 / 7; grid-row: 2; position: relative; z-index: 2; }
.hero__stage { grid-column: 7 / 13; grid-row: 1 / 3; display: grid; justify-items: end; align-content: start; z-index: 3; margin-right: calc(-1 * var(--gutter)); }
.hero__index { grid-row: 3; }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero h1 .w { display: inline-block; animation: rise 0.9s var(--ease) both; }
.hero h1 .w:nth-child(2) { animation-delay: 0.08s; }
.hero h1 .w--blue { color: var(--blue); animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
.hero__lead {
  margin-top: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 34ch;
  animation: rise 0.9s var(--ease) 0.3s both;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: rise 0.9s var(--ease) 0.4s both; }

.objcard {
  width: min(440px, 100%);
  padding: 0;
  overflow: hidden;
  transform: rotate(-2deg);
  animation: rise 1s var(--ease) 0.2s both;
}
.objcard__video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f1f0eb; border-top: 1px solid var(--ink); }
.objcard__cap {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--mute);
  background: #fff;
}
.typing { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-weight: 500; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* Сцена в хиро: печатает → сообщение → карточка у менеджера */
.objcard__state { display: grid; flex: 1; min-width: 0; text-align: center; }
.objcard__state .st {
  grid-area: 1 / 1; justify-self: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.objcard[data-step="1"] .st-1,
.objcard[data-step="2"] .st-2,
.objcard[data-step="3"] .st-3 { opacity: 1; }
.st-3 { color: var(--blue); font-weight: 500; }
.st-3::before { content: "✓ "; }
.objcard__media { position: relative; }
.objcard__video { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease); }
.objcard[data-step="2"] .objcard__video,
.objcard[data-step="3"] .objcard__video { opacity: 0.22; transform: scale(0.96); filter: saturate(0.3); }
.scene__msg, .scene__bot {
  position: absolute; left: 16px; right: 16px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem; line-height: 1.35;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.scene__msg { top: 16px; background: #fff; border-radius: 16px 16px 16px 4px; }
.scene__msg b { display: block; color: var(--blue); font-size: 0.8rem; margin-bottom: 4px; }
.scene__msg time { display: block; text-align: right; color: var(--mute); font-size: 0.75rem; margin-top: 6px; }
.scene__bot { bottom: 16px; background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.scene__who { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; opacity: 0.85; margin-bottom: 6px; }
.scene__who i {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: var(--blue);
  font-family: var(--display); font-weight: 800; font-style: normal; font-size: 0.7rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.scene__bot b { display: block; font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.scene__bot em { display: block; font-style: normal; margin-top: 8px; font-size: 0.78rem; opacity: 0.85; }
.objcard[data-step="2"] .scene__msg,
.objcard[data-step="3"] .scene__msg { opacity: 1; transform: none; }
.objcard[data-step="3"] .scene__msg { opacity: 0.7; transform: translateY(-4px) scale(0.97); }
.objcard[data-step="3"] .scene__bot { opacity: 1; transform: none; }
[data-count] { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }

.leadcard {
  width: min(400px, 92%);
  margin-right: 80px;
  padding: 20px 24px 18px;
  font-size: 0.95rem;
  transform: rotate(1.5deg);
  animation: rise 1s var(--ease) 0.45s both;
}
.leadcard header { display: flex; justify-content: space-between; font-size: 0.82rem; opacity: 0.8; margin-bottom: 12px; }
.leadcard dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.leadcard dt { font-size: 0.76rem; opacity: 0.7; }
.leadcard dd { margin-top: 2px; font-weight: 600; }
.leadcard footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.35); font-size: 0.8rem; }

.hero__index {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  font-size: 0.85rem;
  color: var(--mute);
}
.hero__index b { color: var(--ink); font-weight: 600; margin-right: 8px; font-family: var(--display); font-size: 0.8rem; }

/* ---------- Живая лента: три экрана ---------- */

.live .sec__head { margin-bottom: 40px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.phone {
  position: relative;
  aspect-ratio: 9 / 18.5;
  max-height: 720px;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: #000;
}
.phone-wrap { display: grid; gap: 16px; }
.phone-wrap:nth-child(2) { margin-top: 36px; }
.phone__label { justify-self: center; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; font-size: 0.85rem; text-align: center; }
.ph__status { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 8px 22px 0; font-size: 14px; font-weight: 600; }
.ph__icons { width: 64px; height: 12px; fill: #000; color: #000; }

/* Telegram */
.tg__head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); background: #fff; }
.tg__back { width: 10px; height: 10px; margin-left: 4px; border-left: 2px solid #007aff; border-bottom: 2px solid #007aff; transform: rotate(45deg); flex-shrink: 0; }
.tg__ava {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(180deg, var(--c1, #5fb4ea), var(--c2, #2f7fd8));
  color: #fff; font-weight: 600; font-size: 15px;
  flex-shrink: 0;
}
.tg__ava--bot { background: var(--blue); }
.tg__title { display: grid; line-height: 1.2; min-width: 0; }
.tg__title b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg__title span { font-size: 12px; color: #8e8e93; }
.tg__more { margin-left: auto; width: 4px; height: 4px; border-radius: 50%; background: #007aff; box-shadow: 0 -7px 0 #007aff, 0 7px 0 #007aff; margin-right: 6px; flex-shrink: 0; }
.tg__chat {
  flex: 1;
  overflow: hidden;
  padding: 10px 10px 6px;
  display: flex; flex-direction: column;
  background: #dfe6ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c9d3de' stroke-width='1.4' stroke-linecap='round' opacity='.7'%3E%3Ccircle cx='20' cy='24' r='6'/%3E%3Cpath d='M60 12l6 10h-12z'/%3E%3Crect x='86' y='20' width='14' height='10' rx='3'/%3E%3Cpath d='M30 70c6-8 14-8 20 0'/%3E%3Ccircle cx='96' cy='74' r='5'/%3E%3Cpath d='M56 100l8 8m0-8l-8 8'/%3E%3Cpath d='M14 104h14'/%3E%3C/g%3E%3C/svg%3E");
  scroll-behavior: smooth;
}
.tg__chat--bot { background-color: #e3e9f0; }
.tg__inner { margin-top: auto; display: grid; gap: 6px; }
.tg__input { display: flex; align-items: center; gap: 10px; padding: 8px 12px 14px; border-top: 1px solid rgba(0, 0, 0, 0.1); background: #f6f6f6; }
.tg__field { flex: 1; padding: 8px 12px; border-radius: 18px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.12); color: #8e8e93; font-size: 15px; }
.tg__clip, .tg__mic { width: 18px; height: 18px; border: 2px solid #8e8e93; border-radius: 6px; flex-shrink: 0; }
.tg__mic { border-radius: 9px 9px 9px 9px / 12px; width: 12px; }

.tgm { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px; align-items: end; }
.tgm.is-new { animation: tgIn 0.45s var(--ease) both; }
@keyframes tgIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.tgm__ava {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(180deg, var(--c1, #5fb4ea), var(--c2, #2f7fd8));
  color: #fff; font-weight: 600; font-size: 14px;
}
.tgm__ava--bot { background: var(--blue); }
.tgm__bubble {
  position: relative;
  max-width: 100%;
  padding: 6px 10px 6px 10px;
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  font-size: 14px;
}
.tgm__bubble::before { content: ""; position: absolute; left: -5px; bottom: 0; width: 10px; height: 10px; background: #fff; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.tgm__name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 1px; }
.tgm__bubble p { margin: 0; }
.tgm__time { float: right; margin: 6px 0 0 8px; font-size: 11px; color: #8e8e93; line-height: 1; }
.tgm__stack { display: grid; gap: 5px; min-width: 0; }
.tgm__bubble--bot b { display: block; font-weight: 600; margin-bottom: 2px; }
.tgm__bubble--bot p { margin-top: 2px; }
.tgm__src { color: #8e8e93; font-size: 12px; }
.tgm__link { display: inline-block; color: #007aff; font-size: 14px; margin-top: 2px; }
.tgm__draft { color: #3c3c43; font-size: 13px; padding-top: 6px; margin-top: 4px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.tgm__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tgm__keys span {
  padding: 8px 4px;
  text-align: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #007aff;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tgm__keys .is-pressed { background: #007aff; color: #fff; transform: scale(0.97); }
.tgm__service { align-self: center; padding: 4px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.18); color: #fff; font-size: 12px; animation: tgIn 0.45s var(--ease) both; }

/* Threads */
.th__head { display: flex; justify-content: center; padding: 6px 0 8px; }
.th__logo { width: 36px; height: 36px; color: #000; }
.th__feed { flex: 1; overflow: hidden; scroll-behavior: smooth; }
.thp { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.thp.is-new { animation: tgIn 0.45s var(--ease) both; }
.thp__ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #d9d9de; color: #333; font-weight: 600; font-size: 15px; }
.thp__body { min-width: 0; }
.thp__head { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.thp__head b { font-weight: 600; }
.thp__time { color: #999; font-size: 14px; }
.thp__dots { margin-left: auto; width: 4px; height: 4px; border-radius: 50%; background: #999; box-shadow: -6px 0 0 #999, 6px 0 0 #999; margin-right: 6px; }
.thp__body p { margin: 3px 0 0; font-size: 14px; line-height: 1.4; }
.thp__actions { display: flex; gap: 20px; margin-top: 10px; }
.thp__act { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #000; }
.thp__act i { font-style: normal; }
.thp__actions svg { width: 20px; height: 20px; color: #000; }
.th__tabs { display: flex; justify-content: space-around; padding: 12px 16px 16px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.th__tabs i { width: 20px; height: 20px; border: 2px solid #bbb; border-radius: 6px; }
.th__tabs i.is-on { border-color: #000; background: #000; }

/* ---------- Появление ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
[data-reveal].in { opacity: 1; transform: none; }
.card--tilt-l[data-reveal] { transform: translateY(28px) rotate(-5deg); }
.card--tilt-r[data-reveal] { transform: translateY(28px) rotate(4deg); }
.card--tilt-l[data-reveal].in { transform: rotate(-2deg); }
.card--tilt-r[data-reveal].in { transform: rotate(1.5deg); }
.mark[data-reveal].in { animation-play-state: running; }
.mark[data-reveal] { animation-play-state: paused; }

/* Мокапы оживают после появления */
.step .mf, .step .sg__chips i, .step .mf__btn, .step .sg__row, .step .bot__msg, .step .bot__keys, .step .sc__row, .step .sc__foot { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.step.in .mf, .step.in .sg__chips i, .step.in .mf__btn, .step.in .sg__row, .step.in .bot__msg, .step.in .bot__keys, .step.in .sc__row, .step.in .sc__foot { opacity: 1; transform: none; }
.step.in .mf:nth-child(1) { transition-delay: 0.3s; }
.step.in .mf:nth-child(2) { transition-delay: 0.6s; }
.step.in .mf:nth-child(3) { transition-delay: 0.9s; }
.step.in .mf__btn { transition-delay: 1.3s; }
.step.in .sg__chips i:nth-child(1) { transition-delay: 0.3s; }
.step.in .sg__chips i:nth-child(2) { transition-delay: 0.45s; }
.step.in .sg__chips i:nth-child(3) { transition-delay: 0.6s; }
.step.in .sg__chips i:nth-child(4) { transition-delay: 0.75s; }
.step.in .sg__chips--off i:nth-child(1) { transition-delay: 1s; }
.step.in .sg__chips--off i:nth-child(2) { transition-delay: 1.15s; }
.step.in .sg__chips--off i:nth-child(3) { transition-delay: 1.3s; }
.step.in .sg__row { transition-delay: 1.5s; }
.step.in .bot__msg { transition-delay: 0.4s; }
.step.in .bot__keys { transition-delay: 0.9s; }
.step.in .bot__msg--sys { transition-delay: 1.6s; }
.step.in .sc__row:nth-child(2) { transition-delay: 0.3s; }
.step.in .sc__row:nth-child(3) { transition-delay: 0.45s; }
.step.in .sc__row:nth-child(4) { transition-delay: 0.6s; }
.step.in .sc__row:nth-child(5) { transition-delay: 0.75s; }
.step.in .sc__row:nth-child(6) { transition-delay: 0.9s; }
.step.in .sc__foot { transition-delay: 1.1s; }
.step.in .bot__keys .is-claim { animation: press 0.4s var(--ease) 1.5s both; }
@keyframes press { 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } }

/* ---------- Объекты ---------- */

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-1deg); } }

.marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.mark { margin: 0; padding: 0; overflow: hidden; animation: float 8s ease-in-out infinite; }
.mark:nth-child(2) { animation-delay: 1.4s; }
.mark:nth-child(3) { animation-delay: 2.6s; }
.mark__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: 1px solid var(--ink); }
.mark__cap { display: grid; gap: 4px; padding: 18px 22px 20px; }
.mark__cap b { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }
.mark__cap span { color: var(--mute); font-size: 0.95rem; }

/* ---------- Сито ---------- */

.sieve { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; }
.sieve .sec__head { grid-column: 1 / 6; margin-bottom: 0; }
.sieve__fig { grid-column: 6 / 13; padding: 0; overflow: hidden; }
.sieve__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Как работает: шаги ---------- */

.steps { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.step {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 400px;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--ink);
}
.step__num { display: grid; gap: 12px; align-content: start; }
.step__num b { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.04em; color: var(--blue); }
.step__num span { justify-self: start; padding: 6px 10px; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.8rem; line-height: 1.2; }
.step__text h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.1; }
.step__text p { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; max-width: 46ch; }
.step__note { padding-left: 14px; border-left: 3px solid var(--blue); color: var(--ink) !important; font-size: 0.98rem !important; }
.step .mock { justify-self: end; width: 100%; max-width: 400px; }

.mock {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px;
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Скан: список источников */
.sc__head { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--mute); }
.sc__live { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 500; }
.sc__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.sc__row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sc__row i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; }
.sc__row b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc__row span { color: var(--mute); font-size: 0.8rem; }
.sc__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ink); display: grid; gap: 2px; }
.sc__foot b { font-weight: 600; }
.sc__foot span { color: var(--mute); font-size: 0.8rem; }
.bot__keys--two { grid-template-columns: repeat(2, 1fr); }

.mf { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--ink); }
.mf span { font-size: 0.76rem; color: var(--mute); }
.mf b { font-weight: 400; }
.mf__btn { margin-top: auto; align-self: flex-start; padding: 10px 18px; background: var(--blue); color: #fff; border-radius: 999px; font-weight: 500; }

.sg__label { display: block; margin-bottom: 8px; font-size: 0.76rem; color: var(--mute); }
.sg__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sg__chips i { font-style: normal; padding: 6px 11px; border-radius: 999px; background: #eef0ff; border: 1px solid var(--blue); color: var(--blue-deep); }
.sg__chips--off i { background: transparent; border-color: var(--line); color: var(--mute); text-decoration: line-through; }
.sg__row { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ink); }
.sg__row span { color: var(--mute); }
.sg__row b { font-weight: 600; }

.bot__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.bot__ava { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.8rem; font-family: var(--display); }
.bot__head span:last-child { color: var(--mute); font-size: 0.78rem; }
.bot__msg { display: grid; gap: 6px; padding: 10px 12px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.mock:has(.bot__head) { background: #dfe6ee; }
.mock:has(.bot__head) .bot__head { background: #fff; margin: -22px -22px 0; padding: 12px 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.mock:has(.bot__head) .bot__msg--sys { justify-self: center; }
.bot__msg b { font-weight: 600; }
.bot__src { color: var(--mute); font-size: 0.78rem; }
.bot__link { color: #007aff; }
.bot__draft { padding-top: 6px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.8rem; }
.bot__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bot__keys span { padding: 8px 6px; text-align: center; border-radius: 10px; background: rgba(255, 255, 255, 0.85); color: #007aff; font-weight: 500; }
.bot__keys .is-claim { background: #007aff; color: #fff; }
.bot__msg--sys { justify-self: center; background: rgba(0, 0, 0, 0.18); border: 0; border-radius: 12px; color: #fff; font-size: 0.78rem; padding: 4px 12px; box-shadow: none; }

/* ---------- Кому уже ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tile { display: grid; gap: 4px; align-content: start; padding: 28px; }
.tile__who { font-size: 0.9rem; opacity: 0.8; }
.tile__num { margin-top: 18px; font-family: var(--display); font-size: clamp(3.2rem, 5vw, 4.8rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; }
.tile__num small { margin-left: 6px; font-size: 0.3em; letter-spacing: 0; font-weight: 500; opacity: 0.8; }
.tile__what { margin-top: 12px; font-size: 1rem; font-weight: 500; }
.tile__ask { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid currentColor; font-size: 0.9rem !important; line-height: 1.4; opacity: 0.85 !important; }
.tile p { margin-top: 8px; font-size: 0.92rem; opacity: 0.8; line-height: 1.4; }
.tiles { row-gap: 56px; }

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

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.plan { display: flex; flex-direction: column; padding: 30px 30px 32px; }
.plan--featured { transform: translateY(-16px); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan h3 { font-family: var(--display); font-size: 1rem; font-weight: 700; }
.plan__tag { padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.78rem; white-space: nowrap; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.plan__price b { font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1; letter-spacing: -0.05em; }
.plan__price span { font-size: 0.92rem; opacity: 0.75; }
.plan__for { margin-top: 14px; font-size: 1rem; line-height: 1.4; min-height: 2.8em; }
.plan__list { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid currentColor; }
.plan__list li { position: relative; padding-left: 22px; font-size: 0.95rem; line-height: 1.4; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; background: var(--blue); }
.card--blue .plan__list li::before { background: #fff; }
.plan__list--off { margin-top: 12px; padding-top: 0; border-top: 0; }
.plan__list--off li { color: var(--mute); }
.plan__list--off li::before { background: transparent; border: 1px solid currentColor; opacity: 0.6; }
.plan .btn { width: 100%; margin-top: 26px; }
.card--blue .btn--paper { border-color: var(--ink); }
.plan__fine { margin-top: 14px; font-size: 0.85rem; line-height: 1.4; opacity: 0.8; }
.pricing__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ink); }
.note b { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.note p { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; }
.pricing__foot { margin-top: 36px; color: var(--mute); }
.pricing__foot { max-width: 70ch; line-height: 1.55; }
.pricing__foot a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.aside--quiet a { color: var(--blue); border-bottom: 1px solid var(--blue); }
.pricing__foot a:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Анкета ---------- */

.onboard__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.form__panel { padding: 32px; }
.notice { margin-bottom: 24px; padding: 14px 18px; border: 1px solid var(--ink); background: var(--paper); font-size: 0.95rem; }
.notice--ok { background: #eef0ff; border-color: var(--blue); }
.notice--ok b { color: var(--blue); }

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: 0.92rem; font-weight: 500; }
.field__hint { font-size: 0.82rem; line-height: 1.4; color: var(--mute); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 3.2em; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(10, 10, 10, 0.38); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 4px 4px 0 var(--blue); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--warn); box-shadow: 4px 4px 0 var(--warn); }
.field__err { font-size: 0.82rem; color: var(--warn); }

.form__more { margin-top: 22px; }
.form__more summary { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; list-style: none; cursor: pointer; color: var(--ink-2); font-size: 0.95rem; }
.form__more summary::-webkit-details-marker { display: none; }
.form__more summary::before {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg) translateY(-1px);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.form__more[open] summary::before { transform: rotate(45deg) translateY(-2px); }
.form__more .form__grid { margin-top: 16px; }

.form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.form__hint { color: var(--mute); font-size: 0.9rem; }
.form__status { margin-top: 14px; font-size: 0.92rem; color: var(--mute); min-height: 1.4em; }
.form__status.is-error { color: var(--warn); }

.form__done h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.form__done p { margin-top: 12px; color: var(--ink-2); max-width: 56ch; }
.form__done .btn { margin-top: 22px; }
.form__copy { width: 100%; margin-top: 16px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--ink); color: var(--ink-2); font: inherit; font-size: 0.9rem; }

.onboard__aside { position: sticky; top: 128px; display: grid; gap: 20px; }
.aside { padding: 24px; }
.aside__title { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.aside__steps { display: grid; gap: 18px; margin-top: 18px; }
.aside__steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.aside__steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 600; font-size: 0.85rem; }
.aside__steps b { font-weight: 600; font-size: 0.98rem; }
.aside__steps p { margin-top: 3px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.4; }
.aside--quiet { background: transparent; box-shadow: none; border: 1px dashed var(--ink); }
.aside--quiet p { color: var(--ink-2); font-size: 0.92rem; }
.aside--quiet p + p { margin-top: 10px; }

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

.faq { max-width: calc(880px + var(--gutter) * 2) !important; }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--ink); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Футер ---------- */

.foot {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
  border-top: 1px solid var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
.foot__links a { color: var(--ink-2); font-size: 0.95rem; }
.foot__links a:hover { color: var(--blue); }
.foot__copy { flex-basis: 100%; color: var(--mute); font-size: 0.86rem; }

/* ---------- Диалог оплаты ---------- */

.paydlg { width: min(460px, calc(100vw - 32px)); padding: 0; color: var(--ink); }
.paydlg::backdrop { background: rgba(10, 10, 10, 0.55); }
.paydlg__form { padding: 28px; }
.paydlg h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; }
.paydlg p { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }
.paydlg .field { margin-top: 20px; }
.paydlg__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; gap: 40px; }
  .hero h1, .hero__copy, .hero__stage, .hero__index { grid-column: 1 / -1; grid-row: auto; }
  .hero__stage { max-width: 560px; justify-self: start; justify-items: start; margin-right: 0; }
  .leadcard { margin-right: 0; margin-left: 60px; }
  .objcard { right: auto; left: 0; }
  .leadcard { right: 0; }
  .sieve { grid-template-columns: 1fr; }
  .sieve .sec__head, .sieve__fig { grid-column: 1 / -1; }
  .phones { grid-template-columns: repeat(3, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 24px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .phone { max-height: none; }
  .phone-wrap { scroll-snap-align: center; }
  .phone-wrap:nth-child(2) { margin-top: 0; }
  .step { grid-template-columns: 100px minmax(0, 1fr); gap: 24px 32px; }
  .onboard__grid { grid-template-columns: 1fr; }
  .onboard__aside { position: static; }
  .pricing__notes { grid-template-columns: 1fr; gap: 24px; }
  .step .mock { grid-column: 2; justify-self: start; }
}

@media (max-width: 900px) {
  .plans, .tiles, .marks { grid-template-columns: 1fr; gap: 36px; }
  .plan--featured { transform: none; }
  .card--tilt-l, .card--tilt-r { transform: none; }
  .mark { animation: none; }
}

@media (max-width: 720px) {
  .top { height: 60px; gap: 16px; }
  .top__nav { display: none; }
  .top .btn { margin-left: auto; }
  body { background-size: 100% 200px, 25% 100%; }
  .step { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .step__num { display: flex; align-items: center; gap: 14px; }
  .step__num b { font-size: 2.2rem; }
  .step .mock { grid-column: 1; max-width: none; margin-top: 8px; }
  .hero__stage { gap: 28px; }
  .objcard, .leadcard { width: 100%; margin-left: 0; }
  .objcard { transform: rotate(-1.5deg); }
  .objcard__cap { font-size: 0.78rem; padding: 11px 12px; gap: 8px; }
  .leadcard { transform: rotate(1deg); }
  .phones { grid-template-columns: repeat(3, 82vw); }
  .form__panel { padding: 22px; }
  :root { --shadow: 8px 8px 0 var(--ink); --shadow-sm: 6px 6px 0 var(--ink); }
}

@media (max-width: 640px) {
  .form__grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .hero__actions .btn { flex: 1 1 auto; }
  .plan { padding: 24px 22px 26px; }
  .tile { padding: 22px; }
  .foot__links { margin-left: 0; }
}

/* ---------- Без движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape__track, .mark, .typing i, .tgm, .thp, .tgm__service, .sc__live i { animation: none; }
  .hero h1 .w, .hero__lead, .hero__actions, .objcard, .leadcard { animation: none; }
  [data-reveal], .step .mf, .step .sg__chips i, .step .mf__btn, .step .sg__row, .step .bot__msg, .step .bot__keys, .step .sc__row, .step .sc__foot, .btn { transition: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .scene__msg, .scene__bot, .objcard__video, .objcard__state .st { transition: none; }
}

/* ---------- Документы ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: clamp(48px, 6vw, 88px) var(--gutter) 96px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; }
.doc .doc__meta { margin-top: 14px; color: var(--mute); font-size: 0.95rem; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; margin-top: 44px; }
.doc p, .doc li { margin-top: 12px; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.doc ol { padding-left: 0; counter-reset: item; }
.doc ol > li { list-style: none; position: relative; padding-left: 44px; }
.doc ol > li::before { counter-increment: item; content: counters(item, ".") "."; position: absolute; left: 0; font-weight: 600; color: var(--ink); }
.doc .ph { background: #fff3c4; border-bottom: 1px dashed var(--ink); padding: 0 4px; }
.doc .doc__back { display: inline-block; margin-bottom: 32px; color: var(--ink); border-bottom: 1px solid var(--ink); }
