/* Attractum · главная страница. Токены — в tokens.css, базовые компоненты — в ui.css */
:root {
  --wrap: 1180px;
  --h1: clamp(34px, 4.9vw, 72px);
  --h2: clamp(28px, 3.15vw, 46px);
}

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { font-size: 16px; line-height: 1.55; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transition: top var(--dur) var(--ease-out); }
.skip-link:focus { top: 16px; }

/* Появление по скроллу */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .85s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in[data-delay="1"] { transition-delay: .08s; }
.js .reveal.in[data-delay="2"] { transition-delay: .16s; }
.js .reveal.in[data-delay="3"] { transition-delay: .24s; }
.js .reveal.in[data-delay="4"] { transition-delay: .32s; }

/* Шапка */
.header { position: relative; z-index: 50; background: var(--surface); }
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; height: 38px; padding: 0 16px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
.announce svg { width: 14px; height: 14px; flex: none; transition: transform var(--dur) var(--ease-out); }
.announce:hover svg { transform: translateX(3px); }
.nav-bar { display: flex; align-items: center; height: 68px; gap: 32px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: var(--r-md); font-size: 14.5px; font-weight: 500; color: var(--ink-3); transition: color var(--dur), background var(--dur); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.burger span { display: block; width: 16px; height: 1.5px; margin: 4px auto; border-radius: 2px; background: var(--ink); }
.mobile-menu { display: none; padding: 4px 16px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu.open { display: block; }
.mobile-menu > a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; color: var(--ink); }
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 16px; }

/* Первый экран */
.hero { position: relative; isolation: isolate; padding: clamp(72px, 10vh, 120px) 0 112px; overflow-x: clip; }
.hero::before {
  content: ''; position: absolute; z-index: -1; left: 50%; bottom: -200px; width: min(1560px, 130vw); height: 940px; transform: translateX(-50%); pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(90, 79, 240, .07) 0 1px, transparent 1px 4px),
    radial-gradient(32% 26% at 30% 58%, rgba(255, 205, 222, .34) 0%, rgba(255, 205, 222, 0) 70%),
    radial-gradient(32% 26% at 70% 58%, rgba(190, 228, 255, .5) 0%, rgba(190, 228, 255, 0) 70%),
    radial-gradient(52% 44% at 50% 60%, rgba(178, 187, 255, .62) 0%, rgba(214, 218, 255, .4) 42%, rgba(238, 240, 255, 0) 74%);
  -webkit-mask-image: radial-gradient(58% 56% at 50% 60%, #000 38%, transparent 78%);
  mask-image: radial-gradient(58% 56% at 50% 60%, #000 38%, transparent 78%);
}
.hero-copy { max-width: 940px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-full); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-3); box-shadow: var(--shadow-xs); transition: border-color var(--dur), color var(--dur); }
.hero .eyebrow { padding: 0 9px 0 11px; }
.eyebrow:hover { border-color: var(--line-strong); color: var(--ink); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.eyebrow svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-title { margin-top: 20px; font-size: var(--h1); line-height: 1.03; letter-spacing: -.048em; font-weight: 600; text-wrap: balance; }
.hero-lead { max-width: 900px; margin: 18px auto 0; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--ink-4); text-wrap: pretty; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 13.5px; color: var(--ink-5); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts svg { width: 15px; height: 15px; fill: none; stroke: var(--ink-4); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero-in { animation: hero-in .9s var(--ease-out) both; animation-delay: calc(90ms * var(--i, 0) + 100ms); }
.demo.hero-in { animation-name: demo-in; animation-duration: 1.2s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes demo-in { from { opacity: 0; transform: translateY(34px) scale(.985); } to { opacity: 1; transform: none; } }

/* Демонстрация: шаги */
.demo { position: relative; margin-top: clamp(92px, 14vh, 160px); }
.demo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.demo-step { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.demo-step:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.demo-step.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); transform: none; }
.demo-step-n { position: relative; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-4); color: var(--ink-3); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background var(--dur), color var(--dur); }
.demo-step.is-on .demo-step-n { background: var(--ink); color: #fff; }
.demo-step.is-on .demo-step-n::after { content: ''; position: absolute; inset: -4px; border: 1.5px solid var(--ink); border-radius: 50%; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: .5; } 70%, 100% { transform: scale(1.3); opacity: 0; } }
.demo-step-t { min-width: 0; }
.demo-step-t b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.demo-step-t small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--ink-5); }

/* Окно кабинета */
.window { position: relative; display: flex; flex-direction: column; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-window); overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--ink-3); text-align: left; }
.win-bar { flex: none; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; }
.win-dots i:nth-child(1) { background: #ff5f57; }
.win-dots i:nth-child(2) { background: #febc2e; }
.win-dots i:nth-child(3) { background: #28c840; }
.win-title { flex: 1; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-tag { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; background: var(--surface-4); font-size: 11.5px; font-weight: 500; color: var(--ink-4); }
.win-body { display: grid; grid-template-columns: 216px minmax(0, 1fr); flex: 1; min-height: 0; }
.win-side { padding: 12px 10px; border-right: 1px solid var(--line); background: var(--surface-2); }
.win-ws { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-xs); }
.win-ws b { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); }
.win-ws svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-5); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.win-ws-ava { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.win-nav { display: grid; gap: 2px; }
.win-nav > span, .win-tab { position: relative; display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-size: 13px; color: var(--ink-3); text-align: left; white-space: nowrap; }
.win-nav svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.win-nav em { display: grid; place-items: center; min-width: 18px; height: 18px; margin-left: auto; padding: 0 5px; border-radius: var(--r-full); background: var(--accent); color: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.window[data-act="1"] [data-nav="1"], .window[data-act="2"] [data-nav="2"], .window[data-act="3"] [data-nav="3"], .win-tab.on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); }
.win-tab { cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.win-tab:hover { color: var(--ink); }
.win-main { position: relative; min-width: 0; height: 546px; }
.window-mock .win-main { height: 388px; }
.scene { position: absolute; inset: 0; display: none; flex-direction: column; gap: 16px; padding: 24px 28px; overflow: hidden; }
.scene:not([hidden]) { display: flex; animation: scene-in var(--dur-scene) var(--ease-out) both; }
@keyframes scene-in { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-in, .demo.hero-in, .scene:not([hidden]), .demo-step.is-on .demo-step-n::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
.scene h4 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.scene-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Сцена 1: аудитория */
.filters { display: grid; gap: 8px; max-width: 580px; }
.filter { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-xs); }
.filter-k { font-size: 12.5px; color: var(--ink-5); }
.filter-v { display: flex; align-items: center; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.filter-v::after { content: ''; width: 1.5px; height: 16px; margin-left: 2px; border-radius: 1px; background: var(--accent); }
.result { padding-top: 2px; font-size: 13px; color: var(--ink-4); }
.result b { font-size: 15px; font-weight: 600; color: var(--ink); }
.win-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.win-table th { padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 12px; font-weight: 500; color: var(--ink-5); text-align: left; }
.win-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.win-table tbody tr:last-child td { border-bottom: 0; }
.win-table td b, .win-table td small { display: block; }
.win-table td b { font-weight: 500; color: var(--ink); }
.win-table td small { margin-top: 1px; font-size: 12px; color: var(--ink-5); }

/* Сцена 2: письмо */
.split { flex: 1; display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 16px; min-height: 0; }
.people { align-self: start; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.person { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person.is-sel { background: var(--accent-soft); }
.person.is-sel::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: var(--accent); }
.p-ava, .m-ava { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lavender-2); color: var(--accent-ink); font-size: 10.5px; font-weight: 600; }
.person b, .mail-who b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.person b { font-weight: 500; font-size: 13px; }
.person small, .mail-who small { display: block; font-size: 12px; color: var(--ink-5); }
.person small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.letter { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.letter-meta { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-4); }
.letter-meta b { font-weight: 600; color: var(--ink-2); }
.letter p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.letter .sign { color: var(--ink-4); }
.letter-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.status { position: relative; display: inline-flex; justify-content: flex-end; width: 176px; height: 22px; }
.status i { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font-size: 12px; font-style: normal; font-weight: 500; white-space: nowrap; }
.status .s1 { background: var(--warn-soft); color: var(--warn); }
.status .s2 { background: var(--ok-soft); color: var(--ok); opacity: 0; }

/* Сцена 3: ответы */
.inbox { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mail-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mail-row:last-child { border-bottom: 0; }
.m-ava { width: 32px; height: 32px; font-size: 11.5px; }
.m-ava-2 { background: var(--surface-3); color: var(--ink-3); }
.mail-who { min-width: 0; }
.mail-prev { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-side { display: grid; gap: 6px; justify-items: end; }
.mail-side small { font-size: 12px; color: var(--ink-5); }
.mail-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 500; white-space: nowrap; }
.lead-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.lead-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.lead-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lead-card b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.lead-card small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-4); }

/* Хореография сцен: играет только при .is-on, без JS всё видно сразу */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes type-in { from { clip-path: inset(-3px 100% -3px 0); } to { clip-path: inset(-3px 0 -3px 0); } }
@keyframes approve { 0% { background: var(--ink); } 35% { transform: scale(.95); } 55% { transform: none; } 100% { background: var(--ok); } }
@keyframes swap-out { to { opacity: 0; transform: translateY(-5px); } }
@keyframes swap-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: var(--ok-soft); } 100% { background: transparent; } }

.scene.is-on .filter { animation: rise .5s var(--ease-out) both; }
.scene.is-on .filter:nth-child(1) { animation-delay: .3s; }
.scene.is-on .filter:nth-child(2) { animation-delay: .95s; }
.scene.is-on .filter:nth-child(3) { animation-delay: 1.75s; }
.scene.is-on .filter:nth-child(4) { animation-delay: 2.6s; }
.scene.is-on .filter-v > span { display: inline-block; animation: type-in .5s steps(14, end) both; }
.scene.is-on .filter:nth-child(1) .filter-v > span { animation-delay: .45s; }
.scene.is-on .filter:nth-child(2) .filter-v > span { animation-delay: 1.1s; }
.scene.is-on .filter:nth-child(3) .filter-v > span { animation-delay: 1.9s; }
.scene.is-on .filter:nth-child(4) .filter-v > span { animation-delay: 2.75s; }
.scene.is-on .result { animation: rise .5s var(--ease-out) 3.4s both; }
.scene.is-on .win-table thead { animation: rise .45s var(--ease-out) 3.7s both; }
.scene.is-on .win-table tbody tr { animation: rise .45s var(--ease-out) both; }
.scene.is-on .win-table tbody tr:nth-child(1) { animation-delay: 3.95s; }
.scene.is-on .win-table tbody tr:nth-child(2) { animation-delay: 4.2s; }
.scene.is-on .win-table tbody tr:nth-child(3) { animation-delay: 4.45s; }

.scene.is-on .person { animation: rise .45s var(--ease-out) both; }
.scene.is-on .person:nth-child(1) { animation-delay: .3s; }
.scene.is-on .person:nth-child(2) { animation-delay: .5s; }
.scene.is-on .person:nth-child(3) { animation-delay: .7s; }
.scene.is-on .letter { animation: rise .55s var(--ease-out) .55s both; }
.scene.is-on .letter-meta { animation: rise .4s var(--ease-out) .95s both; }
.scene.is-on .letter p { animation: rise .45s var(--ease-out) both; }
.scene.is-on .letter p:nth-of-type(1) { animation-delay: 1.25s; }
.scene.is-on .letter p:nth-of-type(2) { animation-delay: 1.5s; }
.scene.is-on .letter p:nth-of-type(3) { animation-delay: 1.8s; }
.scene.is-on .letter-actions { animation: rise .4s var(--ease-out) 2.05s both; }
.scene.is-on .approve { animation: approve 1.1s var(--ease-out) 2.5s both; }
.scene.is-on .status .s1 { animation: swap-out .3s var(--ease-out) 3.1s both; }
.scene.is-on .status .s2 { animation: swap-in .35s var(--ease-out) 3.3s both; }

.scene.is-on .mail-row { animation: rise .5s var(--ease-out) both; }
.scene.is-on .mail-row:nth-child(1) { animation-delay: .35s; }
.scene.is-on .mail-row:nth-child(2) { animation-delay: .95s; }
.scene.is-on .mail-row.is-new { animation: rise .5s var(--ease-out) .35s both, flash 1.8s var(--ease-out) 1.3s both; }
.scene.is-on .mail-chip { animation: pop .55s var(--ease-spring) 1.7s both; }
.scene.is-on .lead-card { animation: rise .55s var(--ease-out) 2.6s both; }

/* Интерактивный пример кабинета */
.mock-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mock-kpis > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.mock-kpis > div:first-child { border-left: 0; }
.mock-kpis b { display: block; font-size: 21px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-kpis span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-5); }
.mock-funnel { display: grid; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.mock-funnel > div { display: grid; grid-template-columns: 104px minmax(0, 1fr) 46px; align-items: center; gap: 12px; font-size: 12.5px; }
.mock-funnel span { color: var(--ink-4); }
.mock-funnel b { font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-funnel i { display: block; position: relative; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.mock-funnel i::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 4px; background: var(--accent); transform-origin: left; animation: grow-x .9s var(--ease-out) .25s both; }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: none; } }
.mock-note { margin-top: auto; padding-top: 14px; font-size: 13px; line-height: 1.5; color: var(--ink-5); }

/* Секции */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 32px; text-align: left; }
.section-head h2 { margin-top: 18px; font-size: var(--h2); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.section-head p { margin-top: 16px; font-size: 17.5px; line-height: 1.55; color: var(--ink-4); text-wrap: pretty; }

.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
.pain { position: relative; padding: 30px 0 30px 26px; border-top: 1px solid var(--line-strong); }
.pain::before { content: ''; position: absolute; left: 0; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease-out) .25s; }
.js .pain.in::before { transform: none; }
.pain h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; }
.pain p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-4); }

.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.flow-step { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.flow-step::after { content: ''; position: absolute; left: 100%; top: 48px; width: 16px; height: 1px; background: var(--line-strong); }
.flow-step:last-child::after { content: none; }
.flow-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; }
.flow-ico svg { width: 20px; height: 20px; }
.flow-num { position: absolute; top: 31px; right: 28px; font-size: 13px; font-weight: 600; color: var(--ink-5); font-variant-numeric: tabular-nums; }
.flow-step h3 { margin-top: 22px; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.flow-step p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-4); }

.timeline-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line-strong); }
.timeline-head h3 { font-size: 24px; letter-spacing: -.03em; }
.timeline-head p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-4); }
.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 44px; }
.tl-step { position: relative; padding-left: 24px; }
.tl-step::before { content: ''; position: absolute; left: 0; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--surface-2); }
.tl-step .badge { height: auto; min-height: 22px; padding: 3px 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: normal; line-height: 1.3; }
.tl-step h4 { margin-top: 14px; font-size: 18px; letter-spacing: -.02em; }
.tl-step p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-4); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--dur), box-shadow var(--dur); }
.tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tile-k { font-size: 13.5px; font-weight: 500; color: var(--ink-5); }
.tile h3 { margin-top: 22px; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.tile h3:first-child, .tile-ico + h3 { margin-top: 0; }
.tile p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-4); }
.tile-ico { width: 38px; height: 38px; margin-bottom: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.tile-ico svg { width: 18px; height: 18px; }
.niches, .bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); font-size: 13px; font-weight: 500; color: var(--ink-3); }
.niche-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); margin-top: 16px; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; }
.niche-cta > div { padding: 30px 32px; }
.niche-cta > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.niche-cta h3 { font-size: 19px; letter-spacing: -.02em; }
.niche-cta p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .62); }
.niche-ask { display: flex; flex-direction: column; align-items: flex-start; background: #202027; }
.niche-ask .btn { margin-top: auto; }

.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.feature-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.icon-box { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.icon-box svg { width: 18px; height: 18px; color: var(--ink-2); }
.feature-list b { display: block; font-size: 15.5px; font-weight: 600; }
.feature-list div > span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--ink-4); }
.caption { margin-top: 14px; font-size: 13px; color: var(--ink-5); text-align: center; }

/* Результаты */
.section.dark { border-top: 0; background: var(--ink); color: #fff; }
.section.dark .eyebrow { border-color: rgba(255, 255, 255, .14); background: #202027; box-shadow: none; color: rgba(255, 255, 255, .72); }
.section.dark .eyebrow:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.section.dark .eyebrow-dot { background: var(--lavender-2); }
.section.dark .section-head p { color: rgba(255, 255, 255, .58); }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.stat { display: flex; flex-direction: column; padding: 26px 22px 24px; background: var(--ink); }
.stat h3 { font-size: 15.5px; line-height: 1.3; min-height: 2.6em; font-weight: 500; letter-spacing: -.01em; }
.stat-market { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.stat-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: 26px; }
.stat-n b { font-size: clamp(32px, 2.5vw, 40px); line-height: 1; font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-n span { font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .55); }
.stat-n.is-lead { margin-top: 12px; }
.stat-n.is-lead b { font-size: 28px; color: var(--lavender-2); }
.stat-note { margin-top: auto; padding-top: 20px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); }
.stats-note { margin-top: 20px; font-size: 13.5px; color: rgba(255, 255, 255, .45); }

/* Тариф: состав */
.bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento .tile h3 { font-size: 19px; }
.b-lg { grid-column: span 2; grid-row: span 2; }
.b-lg h3 { max-width: 520px; font-size: 26px; line-height: 1.2; }
.b-wide { grid-column: span 2; }
.mini-mail { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.mm-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mm-ava { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.mm-who b { display: block; font-size: 14px; font-weight: 600; }
.mm-who small { display: block; font-size: 12.5px; color: var(--ink-5); }
.mm-sub { margin-left: auto; }
.mini-mail > p { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.mm-reply { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--ok); }
.mm-reply svg { width: 16px; height: 16px; }
.tile-note { margin-top: 18px; font-size: 13.5px; line-height: 1.55; color: var(--ink-5); }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.plan { display: flex; flex-direction: column; padding: 34px 32px 30px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.featured { background: linear-gradient(180deg, var(--lavender-1) 0%, var(--surface) 64%); }
.plan > .badge { align-self: flex-start; }
.plan .badge.outline { background: var(--surface); }
.plan h3 { margin-top: 16px; font-size: 22px; letter-spacing: -.03em; }
.price { margin-top: 18px; font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink-5); }
.price-sub { margin-top: 8px; font-size: 14.5px; color: var(--ink-4); }
.plan ul { display: grid; gap: 12px; margin-top: 26px; }
.plan li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.plan li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.price-cta { margin-top: 30px; }
.price-foot { max-width: 860px; margin: 20px auto 0; font-size: 14px; line-height: 1.55; text-align: center; color: var(--ink-5); }
.guarantee { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; margin-top: 16px; padding: 30px 32px; border-radius: 14px; background: var(--ink); color: #fff; }
.g-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #202027; color: var(--lavender-2); }
.g-ico svg { width: 24px; height: 24px; }
.guarantee h3 { font-size: 21px; letter-spacing: -.025em; }
.guarantee p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .62); }
.guarantee strong { color: #fff; font-weight: 600; }
.guarantee a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.promise > div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.promise svg { width: 20px; height: 20px; margin-top: 1px; }
.promise b { display: block; margin-bottom: 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.promise span { font-size: 14.5px; line-height: 1.5; color: var(--ink-4); }

/* Вопросы */
.faq { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); cursor: pointer; list-style: none; transition: color var(--dur); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; margin-right: 6px; background: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor); background-size: 12px 1.5px, 1.5px 12px; background-position: center; background-repeat: no-repeat; transition: transform var(--dur-slow) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 24px 4px; font-size: 15.5px; line-height: 1.6; color: var(--ink-4); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Финальный экран, подвал, помощник */
.cta { position: relative; isolation: isolate; padding: 136px 0 140px; border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(52% 62% at 50% 100%, rgba(178, 187, 255, .55) 0%, rgba(238, 240, 255, .45) 46%, rgba(238, 240, 255, 0) 78%); }
.cta h2 { font-size: clamp(32px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.cta p { max-width: 640px; margin: 22px auto 0; font-size: 17.5px; line-height: 1.55; color: var(--ink-4); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cta .cta-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-5); }
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-5); }
.footer-brand .logo-mark { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand .logo { font-size: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; color: var(--ink-4); }
.footer-nav a { transition: color var(--dur); }
.footer-nav a:hover { color: var(--ink); }

.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; border-radius: var(--r-full); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: var(--shadow-lg); transition: background var(--dur), transform var(--dur) var(--ease-out); }
.ai-fab:hover { background: var(--ink-2); transform: translateY(-1px); }
.ai-panel { position: fixed; right: 20px; bottom: 76px; z-index: 60; display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); animation: ai-in var(--dur-slow) var(--ease-out); }
.ai-panel[hidden] { display: none; }
@keyframes ai-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ai-head b { display: block; font-size: 15.5px; }
.ai-head small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--ink-5); }
.ai-close { width: 30px; height: 30px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-4); font-size: 22px; line-height: 1; cursor: pointer; }
.ai-close:hover { background: var(--surface-2); color: var(--ink); }
.ai-log { display: grid; gap: 10px; max-height: 46vh; padding: 16px 18px; overflow-y: auto; background: var(--surface-2); }
.ai-msg { max-width: 88%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .3s var(--ease-out); }
.ai-msg a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.ai-msg.me { justify-self: end; border-color: var(--ink); background: var(--ink); color: #fff; }
.ai-msg.err { border-color: transparent; background: var(--danger-soft); color: var(--danger); }
.ai-typing { font-size: 13px; color: var(--ink-5); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.ai-chips button { height: 30px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-3); cursor: pointer; transition: border-color var(--dur), color var(--dur), background var(--dur); }
.ai-chips button:hover { border-color: var(--ink-5); background: var(--surface-2); color: var(--ink); }
.ai-chips[hidden] { display: none; }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 18px; }
.ai-form textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 120px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); outline: none; background: var(--surface); font-size: 14.5px; line-height: 1.4; resize: none; transition: border-color var(--dur), box-shadow var(--dur); }
.ai-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ai-foot { padding: 0 18px 14px; font-size: 12px; line-height: 1.5; color: var(--ink-5); }
.ai-foot a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }

/* Адаптив */
@media (max-width: 1120px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stat { grid-column: span 2; }
  .stat:nth-child(4), .stat:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 960px) {
  .win-body { grid-template-columns: 184px minmax(0, 1fr); }
  .split { grid-template-columns: 224px minmax(0, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 44px; }
  .section-head.left { margin-bottom: 28px; }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .pains { grid-template-columns: 1fr; column-gap: 0; }
  .flow, .tiles, .timeline-wrap, .niches, .bento, .niche-cta, .plans, .promise { grid-template-columns: 1fr; }
  .flow-step::after { content: none; }
  .timeline-wrap { gap: 28px; margin-top: 56px; padding-top: 40px; }
  .niche-cta > div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .b-lg { grid-column: auto; grid-row: auto; }
  .b-wide { grid-column: auto; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .guarantee { grid-template-columns: 1fr; gap: 14px; padding: 26px 24px; }
  .hero { padding-bottom: 88px; }
}
@media (max-width: 820px) {
  .win-side { display: none; }
  .win-body { grid-template-columns: 1fr; }
  .window-mock .win-body { display: flex; flex-direction: column; }
  .window-mock .win-side { display: flex; align-items: center; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .window-mock .win-ws { display: none; }
  .window-mock .win-nav { display: flex; gap: 4px; }
}
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(4), .stat:nth-child(5) { grid-column: auto; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .announce { font-size: 12px; }
  .nav-bar { height: 60px; }
  .header-actions .header-login { display: none; }
  .hero { padding-top: 48px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { flex-direction: column; align-items: center; gap: 8px; }
  .demo { margin-top: 56px; }
  .demo-steps { gap: 6px; }
  .demo-step { flex-direction: column; align-items: center; gap: 5px; height: 100%; padding: 8px 4px; text-align: center; }
  .demo-step-n { width: 22px; height: 22px; font-size: 11.5px; }
  .demo-step-t b { font-size: 12.5px; line-height: 1.25; overflow-wrap: anywhere; }
  .demo-step-t small { display: none; }
  .win-main { height: 466px; }
  .window-mock .win-main { height: 466px; }
  .scene { gap: 12px; padding: 18px 16px; }
  .filter { grid-template-columns: 88px minmax(0, 1fr); min-height: 40px; padding: 0 12px; }
  .filter-v { font-size: 12.5px; }
  .win-table th:nth-child(3), .win-table td:nth-child(3), .win-table tbody tr:nth-child(3) { display: none; }
  .people { display: none; }
  .split { grid-template-columns: 1fr; }
  .status { width: 150px; }
  .mail-row { grid-template-columns: 32px minmax(0, 1fr); }
  .mail-side { grid-column: 2; display: flex; align-items: center; gap: 8px; }
  .mail-prev { white-space: normal; }
  .lead-card { grid-template-columns: 34px minmax(0, 1fr); }
  .mock-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-kpis > div:nth-child(3) { border-left: 0; }
  .mock-kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mock-funnel > div { grid-template-columns: 92px minmax(0, 1fr) 46px; gap: 8px; }
  .tile, .flow-step { padding: 22px 20px; }
  .niche-cta > div, .plan { padding: 24px 20px; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}
