/* Самохост шрифтов: CSP стенда (font-src self) блокирует Google Fonts */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/intertight-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/intertight-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: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-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 500;
  font-display: swap;
  src: url("fonts/jbmono-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 500;
  font-display: swap;
  src: url("fonts/jbmono-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;
}

:root {
  --ink: #101012;
  --ink-soft: #242428;
  --paper: #f3f2ed;
  --paper-deep: #e8e7e1;
  --white: #fff;
  --blue: #3045e8;
  --blue-deep: #1726a8;
  --blue-glow: 48, 69, 232;
  --line: rgba(16, 16, 18, .18);
  --pad: clamp(24px, 4vw, 64px);
  --max: 1600px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; background: var(--ink); }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--paper); font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body, button, a { font-size: 16px; }
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button, summary { font: inherit; }
em { color: var(--blue); font-style: normal; }
h1, h2, h3 { text-wrap: balance; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
::selection { color: var(--white); background: var(--blue); }

.progress { position: fixed; z-index: 120; inset: 0 0 auto; height: 2px; pointer-events: none; }
.progress i { display: block; width: 100%; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; will-change: transform; }

.nav { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 84px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: white; transition: height 180ms var(--ease-out), color 180ms ease, background-color 180ms ease; }
.nav::after { content: ""; position: absolute; inset: auto var(--pad) 0; height: 1px; background: currentColor; opacity: .18; }
.nav.is-scrolled { height: 68px; background: rgba(16, 16, 18, .96); backdrop-filter: blur(18px); }
.nav.is-light { color: var(--ink); }
.nav.is-light.is-scrolled { background: rgba(243, 242, 237, .97); }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-family: "Inter Tight", sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.brand-face { position: relative; display: inline-flex; justify-content: center; align-items: center; gap: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); box-shadow: inset -5px -6px 12px rgba(5, 8, 67, .36), inset 4px 5px 10px rgba(255,255,255,.2); }
.brand-face i { width: 6px; height: 3px; border: solid white; border-width: 0 0 1.5px; border-radius: 0 0 8px 8px; transform: translateY(1px); }
.brand-face.large { width: 54px; height: 54px; gap: 5px; }
.brand-face.large i { width: 11px; height: 6px; border-width: 0 0 3px; }
.nav-links { display: flex; gap: clamp(22px, 3vw, 48px); font-size: 13px; }
.nav-links a { position: relative; opacity: .7; transition: opacity 150ms ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right 180ms var(--ease-out); }
.nav-links a.is-active { opacity: 1; }
.nav-links a.is-active::after { right: 0; }
.cta-dock { --cta-docked-width: 190px; --cta-docked-height: 48px; justify-self: end; width: 210px; min-height: 50px; }
.pressable { transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.pressable:active { transform: scale(.97); }

.theme-dark { color: white; background: var(--ink); }
.theme-blue { color: white; background: var(--blue); }
.paper { background: var(--paper); }
.section-index { display: grid; grid-template-columns: 1fr 2fr; padding: 28px 0; border-top: 1px solid var(--line); font: 12px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.section-index span:last-child { opacity: .52; }
.display { margin: 0; font: 400 clamp(56px, 8vw, 132px)/.88 "Inter Tight", sans-serif; letter-spacing: -.065em; }
.kicker { margin: 0; font: 12px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }

.hero { position: relative; min-height: 100svh; padding: 152px var(--pad) 56px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -3; inset: -30% -15% 12% 42%; background: radial-gradient(circle, rgba(55,71,232,.24), transparent 64%); }
.hero::after { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(16,16,18,.2), transparent 62%); }
.hero-noise { position: absolute; z-index: -1; inset: 0; opacity: .14; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.hero-copy { position: relative; z-index: 5; max-width: var(--max); margin: 0 auto; }
.hero-title { margin: 28px 0 0; max-width: 1260px; font: 400 clamp(60px, 8.9vw, 142px)/.85 "Inter Tight", sans-serif; letter-spacing: -.064em; text-shadow: 0 8px 34px rgba(0,0,0,.22); }
.hero-title em { color: #7886ff; }
.hero-intro { width: min(500px, 36vw); margin: 34px 0 0 auto; }
.hero-intro p { margin: 0 0 28px; color: rgba(255,255,255,.7); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.55; }
/* строка по левому краю абзаца и кнопки: боковой отступ сдвигал её вправо на 4px */
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0 !important; color: rgba(255,255,255,.43) !important; font: 9px/1.35 "JetBrains Mono", monospace !important; letter-spacing: .055em; text-transform: uppercase; }
.hero-trust i { width: 3px; height: 3px; border-radius: 50%; background: #7382ff; }
.hero-actions { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.cta-origin { width: 100%; min-height: 58px; }
.cta-mover { --dock-p: 0; --cta-source-p: 1; --cta-docked-p: 0; width: 100%; height: 58px; }
.cta-mover.motion-ready { position: fixed; z-index: 110; top: 0; left: 0; width: var(--cta-origin-width); will-change: transform, clip-path; }
.button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 0 12px 0 22px; border-radius: 100px; font-size: 14px; }
.button b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 18px; }
.button-light { color: var(--ink); background: white; }
.button-light b { color: white; background: var(--blue); }
/* Главная кнопка — белая пилюля с синей стрелкой; над светлыми секциями инвертируется в чернильную */
.primary-cta { position: relative; height: 58px; overflow: hidden; color: var(--ink); border: 0; background: var(--white); box-shadow: 0 14px 34px rgba(0, 0, 0, .34); transition: color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 140ms var(--ease-out); }
.primary-cta.on-light { color: var(--white); background: var(--ink); box-shadow: 0 10px 26px rgba(16, 16, 18, .2); }
.primary-cta .cta-label { position: absolute; top: 50%; white-space: nowrap; font-weight: 500; transform: translateY(-50%); }
.primary-cta .cta-label-full { left: 22px; opacity: var(--cta-source-p); filter: blur(calc((1 - var(--cta-source-p)) * 2px)); }
/* «Попробовать бесплатно» вдвое длиннее прежнего «Попробовать», а подпись в доке
   позиционируется от правого края при overflow:hidden у кнопки — кегль и отступ
   подобраны так, чтобы строка укладывалась в --cta-docked-width без обрезки */
.primary-cta .cta-label-docked { right: 44px; font-size: 11px; opacity: var(--cta-docked-p); filter: blur(calc((1 - var(--cta-docked-p)) * 2px)); }
.primary-cta b { position: absolute; top: 50%; right: calc(12px - var(--dock-p) * 3px); width: calc(38px - var(--dock-p) * 8px); height: calc(38px - var(--dock-p) * 8px); font-size: calc(18px - var(--dock-p) * 2px); transform: translateY(-50%); transition: color 220ms ease, background-color 220ms ease; }

.orb-scene { position: absolute; z-index: 2; left: 8%; bottom: 4%; width: clamp(340px, 36vw, 610px); aspect-ratio: 1; }
.orb-halo { position: absolute; inset: 12%; border-radius: 50%; background: rgba(55,71,232,.28); filter: blur(70px); }
.orb-wrap { position: absolute; inset: 7%; -webkit-mask-image: radial-gradient(circle, #000 56%, transparent 76%); mask-image: radial-gradient(circle, #000 56%, transparent 76%); }
.orb-gl, .orb-fallback, .orb-eyes-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb-gl { z-index: 2; }
.orb-fallback { z-index: 1; object-fit: contain; opacity: .94; }
.orb-wrap.gl-live .orb-fallback { opacity: 0; }
.orb-eyes-layer { z-index: 3; }
.orb-eyes path { fill: none; stroke: #fff; stroke-width: 23; stroke-linecap: round; transform-origin: center; animation: blink 6.2s linear infinite; }
/* Листок со списком дел + перо из лого (маска — тот же файл, что и favicon) */
.note-card { position: absolute; z-index: 5; right: -2%; bottom: 2%; width: min(300px, 52%); padding: 15px 18px 17px; border: 1px solid rgba(16,16,18,.08); border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 70px rgba(0,0,0,.38); transform: rotate(-1.5deg); }
.note-head { display: flex; align-items: center; gap: 9px; padding-bottom: 11px; border-bottom: 1px solid rgba(16,16,18,.14); color: #6d6c6a; font: 10px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .09em; }
.note-head b { color: var(--ink); font-weight: 500; }
.note-head em { margin-left: auto; font-style: normal; opacity: .72; }
.note-list { display: grid; gap: 11px; margin: 0; padding: 13px 0 0; list-style: none; }
.note-list li { display: grid; grid-template-columns: 15px 1fr; align-items: start; gap: 10px; min-height: 15px; font-size: 12.5px; line-height: 1.22; }
.note-list i { position: relative; width: 15px; height: 15px; border: 1.5px solid rgba(16,16,18,.26); border-radius: 5px; transition: background-color 200ms ease, border-color 200ms ease; }
.note-list i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg) scale(0); transition: transform 240ms var(--ease-out); }
.note-list li.done i { border-color: var(--blue); background: var(--blue); }
.note-list li.done i::after { transform: rotate(45deg) scale(1); }
.note-list span { display: block; min-height: 15px; }
.quill { position: absolute; z-index: 6; left: 0; top: 0; display: block; width: 21px; height: 51px; opacity: 0; pointer-events: none; background: var(--white); transform-origin: 59% 93%; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
  -webkit-mask: url("assets/gen/feather-mask.png") center/contain no-repeat; mask: url("assets/gen/feather-mask.png") center/contain no-repeat;
  transition: opacity 240ms ease, background-color 280ms ease, filter 280ms ease; }
.quill.on-paper { background: #1b1b20; filter: drop-shadow(0 4px 9px rgba(0,0,0,.3)); }
.no-js .quill { display: none; }
.scroll-cue { position: absolute; z-index: 5; left: var(--pad); bottom: 38px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.48); font: 10px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.scroll-cue span { position: relative; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 1px; height: 8px; background: white; animation: scrollHint 1.8s var(--ease-in-out) infinite; }

.idea { padding: 0 var(--pad) clamp(120px, 13vw, 220px); }
.idea-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 6vw; padding-top: clamp(70px, 9vw, 150px); }
.idea .display { max-width: 980px; font-size: clamp(44px, 5.8vw, 92px); }
.idea-copy { align-self: end; max-width: 440px; padding-bottom: 1vw; }
.idea-copy p { margin: 0; color: #5b5a59; line-height: 1.65; }
.idea-copy .lead { margin-bottom: 42px; color: var(--ink); font: 400 clamp(22px, 2vw, 32px)/1.24 "Inter Tight", sans-serif; letter-spacing: -.03em; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(70px, 8vw, 130px); border-top: 1px solid var(--line); }
.value { padding: 34px 26px 44px 0; border-right: 1px solid var(--line); }
.value:not(:first-child) { padding-left: 26px; }
.value:last-child { border-right: 0; }
.value-num { display: block; color: var(--blue); font: 10px/1 "JetBrains Mono", monospace; letter-spacing: .08em; }
.value h3 { margin: 26px 0 16px; font: 500 clamp(21px, 1.9vw, 29px)/1.08 "Inter Tight", sans-serif; letter-spacing: -.035em; transition: color 180ms ease; }
.value p { margin: 0; color: #5f5e5b; font-size: 14px; line-height: 1.5; }

.statement { min-height: 80svh; padding: clamp(70px, 8vw, 130px) var(--pad) 50px; display: flex; flex-direction: column; justify-content: space-between; }
.statement-text { margin: 6vw 0 9vw; font: 400 clamp(70px, 11.5vw, 188px)/.82 "Inter Tight", sans-serif; letter-spacing: -.075em; }
.statement-text span:not(.line):not(.line-in) { color: #9eabff; }
.statement-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; font-size: 13px; }
.statement-foot i { height: 1px; background: rgba(255,255,255,.28); }

.stories { padding: 0 var(--pad); background: linear-gradient(180deg, var(--paper) 0%, #eeede8 54%, var(--paper) 100%); }
.story { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(45px, 8vw, 140px); min-height: 142svh; padding: clamp(110px, 9vw, 154px) 0; border-bottom: 1px solid var(--line); }
.story:last-child { border-bottom: 0; }
/* первый блок длиннее: визуал приколот, кадры кейсов меняются по мере протягивания */
.story-action { min-height: 260svh; }
.story-action .story-visual { position: sticky; top: 11svh; align-self: start; height: 78svh; min-height: 0; }
/* панель стала фиксированной высоты — телефон подогнан, чтобы влезал целиком */
.story-action .phone-shell { left: 13%; top: 6%; width: 31%; }
.story-research { grid-template-columns: 1.35fr 1fr; }
.story-copy { position: sticky; top: 31svh; align-self: start; max-width: 560px; }
.story-number { display: block; margin-bottom: 30px; color: var(--blue); font: 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.story-copy h2 { margin: 0 0 38px; font: 400 clamp(50px, 5.6vw, 92px)/.92 "Inter Tight", sans-serif; letter-spacing: -.06em; }
.story-copy p { max-width: 480px; margin: 0 0 38px; color: #5b5a59; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.55; }
.story-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.story-tags li.is-on { color: var(--white); border-color: var(--blue); background: var(--blue); }
.story-tags li { transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease; padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; color: #656462; font: 10px/1 "JetBrains Mono", monospace; text-transform: uppercase; }
.story-visual { position: sticky; top: 92px; align-self: start; height: min(780px, calc(100svh - 124px)); min-height: 620px; overflow: hidden; border-radius: 24px; background: var(--paper-deep); box-shadow: inset 0 0 0 1px rgba(16,16,18,.07), 0 24px 70px rgba(16,16,18,.08); }
.story-visual::after { content: ""; position: absolute; z-index: 6; inset: 0; pointer-events: none; border: 1px solid rgba(16,16,18,.08); border-radius: inherit; }
.visual-caption { position: absolute; z-index: 4; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; font: 10px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.visual-order { background: #daddff; }
/* .46 — пропорция самих кадров (589×1280): при другой object-fit:cover срезает края */
.phone-shell { position: absolute; z-index: 2; left: 12%; top: 5%; width: 41%; aspect-ratio: .46; overflow: hidden; border-radius: clamp(30px, 3.2vw, 48px); background: #101218; box-shadow: 0 40px 90px rgba(20,31,117,.23); transform: rotate(-5deg); }
.phone-shell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 380ms ease; }
.phone-shell img.is-on { opacity: 1; }
.result-pill { position: absolute; z-index: 3; top: 31%; right: 7%; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; border-radius: 15px; background: rgba(255,255,255,.86); box-shadow: 0 20px 60px rgba(36,45,118,.17); backdrop-filter: blur(14px); }
.result-pill > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: white; background: var(--blue); font-style: normal; }
.result-pill span { font-size: 12px; font-weight: 600; }
.result-pill small { display: block; margin-top: 3px; color: #777; font-size: 9px; font-weight: 400; }
.visual-stat { position: absolute; right: 7%; bottom: 8%; }
.visual-stat b { display: block; font: 500 clamp(70px, 8vw, 130px)/.8 "Inter Tight", sans-serif; letter-spacing: -.08em; }
.visual-stat span { display: block; margin-top: 16px; padding-left: 7px; color: #555; font-size: 12px; line-height: 1.3; text-transform: uppercase; }

.visual-research { overflow: visible; background: #17171a; }
.visual-research .visual-caption { color: rgba(255,255,255,.5); }
.browser-shell { position: absolute; left: 8%; right: -6%; top: 15%; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #0c0c0e; box-shadow: 0 35px 90px rgba(0,0,0,.35); }
.browser-bar { height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.4); font: 9px/1 "JetBrains Mono", monospace; }
.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.browser-bar span { margin-left: 10px; }
.browser-shell video { width: 100%; }
.source-card { position: absolute; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; width: 150px; min-height: 104px; padding: 14px; color: white; border: 1px solid rgba(255,255,255,.16); background: rgba(27,27,31,.82); backdrop-filter: blur(12px); }
.source-card span { color: #8996ff; font: 9px/1 "JetBrains Mono", monospace; }
.source-card p { margin: 18px 0 0; font: 15px/1.15 "Inter Tight", sans-serif; }
.source-one { left: 3%; bottom: 10%; }
.source-two { left: calc(3% + 166px); bottom: 10%; }
.source-three { left: calc(3% + 332px); bottom: 10%; }

.visual-memory { overflow: visible; background: #e5e3dd; }
.memory-orbit { position: absolute; left: 50%; top: 50%; width: 65%; aspect-ratio: 1; border: 1px solid rgba(48,69,232,.23); border-radius: 50%; transform: translate(-50%,-50%); }
.memory-orbit::before, .memory-orbit::after { content: ""; position: absolute; border: 1px solid rgba(48,69,232,.16); border-radius: 50%; }
.memory-orbit::before { inset: 13%; }
.memory-orbit::after { inset: -13%; }
.memory-core { position: absolute; z-index: 2; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; width: 180px; transform: translate(-50%,-50%); text-align: center; }
.memory-core b { margin-top: 16px; font: 500 22px/1 "Inter Tight", sans-serif; }
.memory-core small { margin-top: 6px; color: #73716d; font-size: 10px; }
.memory-note { position: absolute; z-index: 3; width: 210px; padding: 16px; border: 1px solid rgba(16,16,18,.13); border-radius: 12px; background: rgba(255,255,255,.72); box-shadow: 0 20px 55px rgba(30,28,23,.08); backdrop-filter: blur(12px); }
.memory-note span { color: var(--blue); font: 8px/1 "JetBrains Mono", monospace; text-transform: uppercase; }
.memory-note p { margin: 12px 0 0; font-size: 12px; line-height: 1.35; }
.note-one { left: 7%; top: 16%; transform: rotate(-3deg); }
.note-two { right: 5%; top: 28%; transform: rotate(4deg); }
.note-three { left: 16%; bottom: 12%; transform: rotate(2deg); }

.proof { padding: 0 var(--pad) clamp(120px, 12vw, 190px); }
.proof-head { display: grid; grid-template-columns: 2fr 1fr; gap: 6vw; padding: clamp(75px, 9vw, 145px) 0 8vw; }
.proof-lede { align-self: end; max-width: 340px; }
.proof-head p { margin: 0; color: #66645f; font-size: 18px; line-height: 1.5; }
.proof-head p + p { margin-top: 18px; }
.demo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.demo-card { position: relative; margin: 0; overflow: hidden; border-radius: 24px; background: #ddd; box-shadow: inset 0 0 0 1px rgba(16,16,18,.08); }
.demo-card:nth-child(3) { grid-column: 2; }
.demo-media { position: relative; height: 100%; min-height: 430px; }
.demo-tall { grid-row: span 2; }
.demo-tall .demo-media { min-height: 872px; }
/* только прямые дети: иначе зум ловил и скрины внутри .demo-device и резал им текст */
.demo-media > video, .demo-media > img { width: 100%; height: 100%; object-fit: cover; }
.js .demo-media > video, .js .demo-media > img { transform: translate3d(0, var(--py, 0px), 0) scale(var(--vs, 1.12)); will-change: transform; }
/* высокая карточка: скрин телефона целиком, без кадрирования */
.demo-tall .demo-media { display: grid; place-items: center; background: #0b0b0d; }
.demo-tall .demo-media > img { width: auto; height: 80%; max-width: 62%; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; }
.js .demo-tall .demo-media > img { transform: translate3d(0, calc(var(--py, 0px) * .5), 0) scale(1.02); }
.demo-layout { overflow: hidden; background: #cfd4ff; }
.demo-layout::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; right: -14%; top: -35%; border-radius: 50%; background: rgba(255,255,255,.34); filter: blur(40px); }
.demo-layout-sand { background: #eacfa9; }
.demo-device { position: absolute; z-index: 2; left: 9%; top: 8%; bottom: -14%; width: 31%; padding: 5px; border-radius: 30px; background: #111; box-shadow: 0 30px 70px rgba(24,25,58,.28); transform: rotate(-4deg); }
.demo-device video, .demo-device img { width: 100%; height: 100%; border-radius: 25px; object-fit: cover; }
.demo-proof { position: absolute; z-index: 2; top: 28%; right: 7%; width: 43%; }
.demo-proof span { color: rgba(16,16,18,.5); font: 9px/1 "JetBrains Mono", monospace; text-transform: uppercase; }
.demo-proof b { display: block; margin-top: 18px; font: 500 clamp(24px, 2.4vw, 38px)/.96 "Inter Tight", sans-serif; letter-spacing: -.04em; }
.demo-proof small { display: block; margin-top: 12px; color: rgba(16,16,18,.55); font-size: 10px; }
.demo-card figcaption { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 65px 24px 22px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.76)); }
.demo-card figcaption span { display: block; font: 500 22px/1.1 "Inter Tight", sans-serif; }
.demo-card figcaption small { display: block; margin-top: 7px; color: rgba(255,255,255,.64); font: 9px/1 "JetBrains Mono", monospace; text-transform: uppercase; }

.process { padding: 0 var(--pad) clamp(100px, 10vw, 160px); }
.process .section-index { border-color: rgba(255,255,255,.2); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; padding-top: clamp(80px, 9vw, 140px); }
.process-copy { align-self: center; }
.process-copy em { color: #7d89ff; }
.process-copy > p { max-width: 500px; margin: 46px 0; color: rgba(255,255,255,.58); font-size: 19px; line-height: 1.55; }
/* «Показывает результат» длиннее прежнего «Отчитывается»: на узкой колонке
   цепочка переносится, а не выходит за край — nowrap держит только сами слова */
.process-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: rgba(255,255,255,.5); font: 9px/1 "JetBrains Mono", monospace; text-transform: uppercase; white-space: nowrap; }
.process-flow i { width: 42px; height: 1px; background: rgba(255,255,255,.22); }
.task-log { align-self: center; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; background: #17171a; box-shadow: 0 30px 100px rgba(0,0,0,.24); }
.task-head { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.12); font: 9px/1 "JetBrains Mono", monospace; text-transform: uppercase; }
.task-head span { color: rgba(255,255,255,.6); }
.task-head i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #6bd29a; box-shadow: 0 0 8px #6bd29a; }
.task-query { margin: 0; padding: 35px 25px; border-bottom: 1px solid rgba(255,255,255,.12); font: 400 clamp(22px, 2vw, 30px)/1.2 "Inter Tight", sans-serif; }
.task-log ol { margin: 0; padding: 12px 25px; list-style: none; }
.task-log li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; min-height: 46px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.65); font-size: 11px; }
.task-log li span { color: rgba(255,255,255,.25); font: 9px/1 "JetBrains Mono", monospace; }
.task-log li p { margin: 0; }
.task-log li b { color: #7adca4; font-weight: 400; }
.task-result { display: grid; grid-template-columns: 1fr 2fr; padding: 20px 25px; color: white; background: var(--blue); }
.task-result span { font: 9px/1 "JetBrains Mono", monospace; text-transform: uppercase; }
.task-result p { margin: 0; font-size: 12px; }

.numbers { padding: 0 var(--pad) clamp(100px, 11vw, 180px); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8vw; border-top: 1px solid var(--line); }
.metric { min-height: 310px; padding: 28px 20px 0 0; border-right: 1px solid var(--line); }
.metric:not(:first-child) { padding-left: 22px; }
.metric:last-child { border-right: 0; }
.metric b { display: block; font: 400 clamp(64px, 8vw, 125px)/1 "Inter Tight", sans-serif; letter-spacing: -.07em; }
.metric span { display: block; margin-top: 100px; color: #62615d; font-size: 12px; line-height: 1.35; text-transform: uppercase; }

.capabilities { display: grid; grid-template-columns: .85fr 1.35fr; gap: 8vw; padding: clamp(100px, 10vw, 170px) var(--pad); overflow: hidden; background: #deddd6; }
.cap-intro > span { color: var(--blue); font: 10px/1 "JetBrains Mono", monospace; text-transform: uppercase; }
.cap-intro h2 { margin: 34px 0 0; font: 400 clamp(52px, 6vw, 98px)/.9 "Inter Tight", sans-serif; letter-spacing: -.06em; }
.cap-row { display: grid; grid-template-columns: 50px 1.4fr 1fr; gap: 18px; align-items: center; min-height: 104px; border-top: 1px solid rgba(16,16,18,.2); }
.cap-row:last-child { border-bottom: 1px solid rgba(16,16,18,.2); }
.cap-row > span { color: #787771; font: 9px/1 "JetBrains Mono", monospace; }
.cap-row h3 { margin: 0; font: 500 clamp(22px, 2vw, 30px)/1 "Inter Tight", sans-serif; letter-spacing: -.03em; }
.cap-row p { margin: 0; color: #6b6965; font-size: 12px; line-height: 1.35; }
.cap-row h3, .cap-row p { transition: color 180ms ease, transform 180ms var(--ease-out); }

.faq { padding: 0 var(--pad) clamp(120px, 12vw, 190px); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; padding-top: 9vw; }
.faq-list { align-self: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 28px 48px 28px 0; list-style: none; cursor: pointer; font: 500 clamp(18px, 1.6vw, 24px)/1.2 "Inter Tight", sans-serif; transition: color 180ms ease; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: absolute; right: 4px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 2px; top: 10px; width: 16px; height: 1px; background: currentColor; transition: transform 180ms var(--ease-out); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0deg); }
.faq-list details p { max-width: 580px; margin: -4px 50px 28px 0; color: #65635f; font-size: 14px; line-height: 1.6; }

.finale { position: relative; min-height: 100svh; padding: 42px var(--pad); overflow: hidden; display: flex; flex-direction: column; }
.finale-top { display: flex; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.26); font: 10px/1 "JetBrains Mono", monospace; text-transform: uppercase; }
.finale h2 { position: relative; z-index: 2; margin: auto 0 30px; font: 400 clamp(72px, 10vw, 170px)/.82 "Inter Tight", sans-serif; letter-spacing: -.075em; }
.finale h2 em { color: #a6b0ff; }
.finale-lede { position: relative; z-index: 2; max-width: 520px; margin: 0 0 46px; color: rgba(255,255,255,.66); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; }
.finale-lede a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.finale-link { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 94px; padding: 0 16px 0 30px; border-radius: 100px; color: var(--ink); background: white; box-shadow: 0 18px 50px rgba(8, 14, 80, .3); font: 500 clamp(22px, 2.4vw, 38px)/1 "Inter Tight", sans-serif; transition: background-color 200ms ease, box-shadow 220ms ease, transform 140ms var(--ease-out); }
.finale-link b { display: grid; place-items: center; width: 60px; height: 60px; color: white; border-radius: 50%; background: var(--blue-deep); font-weight: 400; transition: background-color 200ms ease; }
.finale-tg { position: relative; z-index: 2; align-self: flex-start; margin-top: 18px; color: rgba(255,255,255,.55); font-size: 14px; text-decoration: none; }
.finale-tg:hover { color: white; }
.lead a, .faq-list details p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.finale-word { position: absolute; z-index: 0; left: -1.5vw; bottom: -6vw; color: rgba(11,19,120,.16); font: 600 39vw/.7 "Inter Tight", sans-serif; letter-spacing: -.11em; white-space: nowrap; }

.footer { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; padding: 62px var(--pad) 50px; color: white; background: var(--ink); }
.footer .brand { align-self: start; }
.footer p { margin: 0; color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.5; }
.footer nav, .footer > div { display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.footer > div { align-items: flex-end; }
.footer > div span { margin-top: auto; color: rgba(255,255,255,.36); }

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: translateY(0); }
.hero .reveal:nth-child(2) { transition-delay: 80ms; }
.hero .reveal:nth-child(3) { transition-delay: 140ms; }

@keyframes blink { 0%, 45%, 48%, 100% { transform: scaleY(1); } 46.5% { transform: scaleY(.05); } }
@keyframes scrollHint { 0% { transform: translate(-50%, 0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-50%, 8px); opacity: 0; } }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { opacity: 1; }
  .nav-links a:hover::after { right: 0; }
  .button-light:not(.primary-cta):hover { color: white; background: var(--blue); }
  .button-light:not(.primary-cta):hover b { color: var(--blue); background: white; }
  .primary-cta:hover { filter: brightness(.985); box-shadow: 0 16px 40px rgba(48,69,232,.36); }
  .value:hover h3, .faq-list summary:hover { color: var(--blue); }
  .cap-row:hover h3, .cap-row:hover p { transform: translateX(8px); }
  .cap-row:hover h3 { color: var(--blue); }
  .finale-link:hover { color: white; background: var(--ink); }
  .finale-link:hover b { color: var(--ink); background: white; }
  /* hover-зум видео ведёт motion.js через --vs (плавный lerp) */
}

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { padding-top: 136px; }
  .hero-intro { width: min(410px, 43vw); }
  .hero-actions { grid-template-columns: 1fr; max-width: 340px; }
  .orb-scene { left: 2%; bottom: 11%; width: 52vw; }
  .note-card { right: -8%; }
  .idea-grid, .proof-head, .faq-grid { grid-template-columns: 1fr; }
  .idea-copy, .proof-lede { margin-top: 70px; }
  .story, .story-research { grid-template-columns: 1fr; min-height: 0; }
  .story-copy { position: relative; top: auto; }
  .story-visual { position: relative; top: auto; height: auto; min-height: 680px; border-radius: 20px; }
  .story-research .story-visual { order: 2; }
  .visual-research { overflow: hidden; }
  .browser-shell { right: 4%; }
  .story-copy { max-width: 680px; }
  .process-grid { grid-template-columns: 1fr; }
  .task-log { width: 100%; max-width: 700px; }
  .capabilities { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(2) { border-right: 0; }
  .value:nth-child(3), .value:nth-child(4) { border-top: 1px solid var(--line); }
  .footer { grid-template-columns: 1fr 1fr; }
}

/* 100% zoom на ноутбуках: первый экран всегда укладывается в реальную высоту окна */
@media (min-width: 701px) and (max-height: 840px) {
  .hero { padding-top: 104px; padding-bottom: 24px; }
  .hero-title { max-width: 1080px; margin-top: 18px; font-size: clamp(60px, 8.2vw, 118px); line-height: .84; }
  .hero-intro { width: min(500px, 41vw); margin-top: 18px; }
  .hero-intro p { margin-bottom: 18px; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.45; }
  .hero-trust { margin-top: 20px !important; }
  .orb-scene { left: 8%; bottom: 2%; width: clamp(300px, 32vw, 500px); }
  .note-card { width: min(250px, 50%); padding: 13px 15px 15px; }
  .note-list { gap: 8px; padding-top: 10px; }
  .note-list li { font-size: 11px; }
  .scroll-cue { bottom: 20px; }
}

@media (max-width: 700px) {
  :root { --pad: 20px; }
  .nav { height: 68px; }
  .cta-dock { --cta-docked-width: 186px; --cta-docked-height: 42px; width: 186px; min-height: 42px; }
  .primary-cta .cta-label-docked { right: 42px; font-size: 11px; }
  /* На мобильном Ника начинает появляться в первом viewport и раскрывается на следующем скролле */
  .hero { min-height: max(1180px, 128svh); padding: 108px var(--pad) 34px; }
  .hero-title { font-size: clamp(56px, 17.2vw, 88px); }
  .hero-intro { width: 100%; max-width: 370px; margin: 32px 0 0; }
  .hero-intro p { font-size: 15px; margin-bottom: 26px; }
  .hero-trust { max-width: 330px; margin-top: 32px !important; font-size: 8px !important; }
  .hero-actions { grid-template-columns: 1fr; max-width: 340px; }
  .cta-origin { max-width: 340px; }
  .orb-scene { position: absolute; left: 50%; top: 780px; bottom: auto; width: 88vw; margin: 0; transform: translateX(-50%); }
  .js .orb-scene.reveal { opacity: 1; transform: translate(-50%, 26px); }
  .js .orb-scene.reveal.in { transform: translate(-50%, 0); }
  .note-card { right: 0; bottom: 2%; width: min(280px, 68%); }
  .scroll-cue { display: none; }
  .section-index { grid-template-columns: 70px 1fr; }
  .display { font-size: clamp(52px, 16vw, 86px); }
  .idea-grid { padding-top: 80px; }
  .idea-copy { margin-top: 56px; }
  .statement { min-height: 650px; }
  .statement-text { margin: auto 0; font-size: clamp(46px, 15vw, 100px); }
  .statement-foot { grid-template-columns: 1fr; gap: 12px; }
  .statement-foot i { display: none; }
  /* высота по контенту: фиксированные 142svh давали пустые провалы под визуалами */
  .story { gap: 55px; padding: 100px 0; min-height: 0; }
  .story-visual { position: static; height: auto; }
  .story-action { min-height: 200svh; }
  .story-copy h2 { font-size: clamp(48px, 14vw, 72px); }
  .story-visual { min-height: 560px; }
  /* телефон и цифра 7→1 на мобильном налезали друг на друга */
  .story-action .story-visual { position: sticky; top: 74px; height: 68svh; min-height: 0; }
  .visual-order { min-height: 0; }
  .story-action .phone-shell { left: 6%; top: 6%; width: 46%; }
  .result-pill { right: 4%; }
  .visual-stat { right: 6%; bottom: 6%; }
  .visual-research { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; min-height: 0; padding: 56px 14px 16px; }
  .source-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; min-height: 78px; padding: 11px; }
  .source-card p { margin-top: 12px; font-size: 12px; }
  .visual-memory { min-height: 540px; }
  .memory-note { width: 170px; }
  .note-one { left: 2%; }
  .note-two { right: 2%; }
  .note-three { left: 7%; }
  .proof-head { padding-top: 75px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-card:nth-child(3) { grid-column: auto; }
  .demo-tall { grid-row: auto; }
  .demo-tall .demo-media, .demo-media { min-height: 530px; }
  /* телефон в широкой карточке: своя пропорция вместо растяжки на всю высоту */
  .demo-device { left: 6%; top: 8%; bottom: auto; width: 44%; aspect-ratio: .47; }
  .demo-proof { top: 13%; right: 5%; width: 43%; }
  .demo-proof b { margin-top: 12px; font-size: 23px; }
  .demo-proof small { margin-top: 9px; }
  .process-flow { gap: 8px; font-size: 8px; }
  .process-flow i { width: 14px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 240px; }
  .metric b { font-size: 20vw; }
  .metric span { margin-top: 60px; font-size: 10px; }
  .values { grid-template-columns: 1fr; }
  .value, .value:not(:first-child) { padding: 26px 0 30px; border-right: 0; border-top: 1px solid var(--line); }
  .value:first-child { border-top: 0; }
  /* Описания категорий раньше скрывались: в две колонки для них не было места.
     Теперь описание встаёт под заголовком во второй колонке — на мобильном
     «Покупки и заказы» без пояснения не отличаются от пунктов меню */
  .cap-row { grid-template-columns: 32px 1fr; row-gap: 5px; min-height: 92px; padding: 18px 0; }
  .cap-row p { grid-column: 2; }
  .faq-grid { gap: 70px; }
  .finale { min-height: 760px; }
  .finale h2 { font-size: clamp(65px, 19vw, 100px); }
  .finale-link { min-height: 78px; padding-left: 14px; }
  .finale-link b { width: 48px; height: 48px; }
  .footer { grid-template-columns: 1fr; }
  .footer > div { align-items: flex-start; }
}

/* ═══ MOTION KIT: киношный скролл-слой (пары к motion.js) ═══ */
.js .line { display: block; overflow: hidden; }
.js .line-in { display: block; transform: translateY(112%) rotate(2.4deg); transform-origin: left top; will-change: transform; }
.js .lines-split.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

.js .fx { transform: translate3d(0, var(--fy, 0px), 0) rotate(var(--rot, 0deg)); will-change: transform; }
.js .phone-shell.fx { --rot: -5deg; }
.js .note-card.fx { --rot: -1.5deg; }
.note-list { transition: opacity 200ms ease; }
.js .demo-device.fx { --rot: -4deg; }
.js .note-one.fx { --rot: -3deg; }
.js .note-two.fx { --rot: 4deg; }
.js .note-three.fx { --rot: 2deg; }
.js .fx-skew { transform: skewY(var(--sk, 0deg)); will-change: transform; }
/* у скью-элементов вход только фейдом — transform не транзишенится (его ведёт rAF) */
.js .fx-skew.reveal, .js .fx-skew.reveal.in { transform: skewY(var(--sk, 0deg)); transition: opacity 600ms var(--ease-out); }

.js .statement-text { transform-origin: left bottom; will-change: transform; }
.js .statement-foot i { transform: scaleX(0); transform-origin: left center; }
.js .finale-word { will-change: transform; }
.metric b { font-variant-numeric: tabular-nums; }
.js .task-log li b { display: inline-block; }
.js .task-result { will-change: transform, opacity; }

.orb-halo { animation: halo-breathe 7.5s ease-in-out infinite; }
@keyframes halo-breathe { 50% { transform: scale(1.14); opacity: .82; } }
.js .orb-wrap { animation: orb-float 9s ease-in-out infinite; }
@keyframes orb-float { 50% { transform: translateY(-9px); } }
.orb-eyes { will-change: transform; }

.type-caret { display: inline-block; width: 1px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: caret-blink .9s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }


/* ═══════════ Переходы между секциями ═══════════
   Следующая секция наплывает на предыдущую скруглённым краем: радиус и тень
   скрабятся по скроллу через --sect-p (motion.js §12; 1 — край только показался
   снизу экрана, 0 — секция встала на место). Без JS переменная равна нулю и стык
   остаётся прямым, как был.
   Ни transform, ни overflow:hidden на самой секции: и то и другое ломает
   position:sticky у .story-visual и .story-copy внутри .stories. */
:root { --sect-lift: clamp(20px, 3vw, 48px); }
main > section { position: relative; }
main > section + section {
  z-index: 1;
  margin-top: calc(var(--sect-lift) * -1);
  border-top-left-radius: calc(var(--sect-lift) * var(--sect-p, 0));
  border-top-right-radius: calc(var(--sect-lift) * var(--sect-p, 0));
  box-shadow: 0 -14px calc(46px * var(--sect-p, 0)) rgba(16, 16, 18, calc(.22 * var(--sect-p, 0)));
}
/* линейка section-index прижата к верхнему краю — уводим её из-под скругления */
main > section + section > .section-index:first-child { margin-top: var(--sect-lift); }
/* «листайте историю» иначе уезжает под наплывающую секцию */
.scroll-cue { bottom: calc(38px + var(--sect-lift)); }

/* ═══════════ Демо-видео ═══════════
   Записи реальных сессий. Грузятся и стартуют лениво (app.js, data-src),
   крутятся без звука и без контролов — как гифка, но h264 и вчетверо легче. */
.demo-hero { margin: 0 0 16px; }
/* ширину ограничиваем высотой экрана: на 1920×900 кадр 16:9 во всю ширину выходит
   993px и целиком в вьюпорт не влезает — ролик невозможно посмотреть */
.demo-hero-frame { max-width: min(100%, calc(74svh * 16 / 9)); margin-inline: auto; overflow: hidden; border: 1px solid rgba(16, 16, 18, .1); border-radius: 24px; background: #0c0c0e; box-shadow: 0 40px 100px rgba(16, 16, 18, .16); }
/* кадр показываем целиком: запись зумится, и любая фиксированная подрезка
   на части секунд срезает то окно, то карточки товара */
.demo-hero-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0c0c0e; }
.demo-hero-foot { display: flex; align-items: center; gap: 16px; padding: 20px 4px 34px; color: #66645f; font: 10px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.demo-hero-foot > span:first-child { flex: 0 0 auto; color: var(--blue); }
.demo-hero-foot i { flex: 0 0 auto; width: 34px; height: 1px; background: var(--line); }
.browser-shell video { display: block; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 981px) {
  /* рамка была рассчитана на вертикальный скрин: под 16:9 её надо шире и ниже,
     иначе под ней остаётся пустая треть панели. На ≤980px размеры задаёт
     media-блок выше — туда не лезем */
  .visual-research .browser-shell { left: 5%; right: -9%; top: 19%; border-radius: 14px; }
}

/* демо-блоки въезжают лесенкой: сначала кадр, следом карточки */
.js .demo-hero.reveal { transform: translateY(26px) scale(.986); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .demo-hero.reveal.in { transform: none; }
.demo-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.demo-grid .reveal:nth-child(3) { transition-delay: 180ms; }

/* ── адаптив демо-блоков ──
   Скриншоты кейсов вертикальные (589×1280, .46) и плотные по тексту: как только
   контейнер становится уже этой пропорции, object-fit:cover срезает поля с текстом
   по бокам. Поэтому ниже держим либо саму пропорцию, либо вписывание по max-*. */

/* Телефон в demo-tall вписываем, а не кроим: при width:auto/height:auto пара
   max-width/max-height ужимает картинку, сохраняя пропорцию. */
.demo-tall .demo-media > img { width: auto; height: auto; max-height: 80%; max-width: 62%; }

@media (max-width: 1200px) {
  /* На узком десктопе кадр в 31% сжимается до ~180px — текст на скриншоте не прочитать.
     Меряем от высоты, а не от ширины: у .story-action .story-visual высота задана в svh
     (базовое правило специфичнее, чем height:auto из блока ≤980), поэтому процент
     резолвится. Ширина в процентах на широком-невысоком экране (900×700) выводила
     кадр за нижний край панели. */
  .story-action .phone-shell { top: 6%; height: 82%; width: auto; }
}

@media (max-width: 980px) {
  /* две колонки здесь уже не помещаются: карточка сужается сильнее пропорции кадра */
  .demo-grid { grid-template-columns: 1fr; }
  .demo-card:nth-child(3) { grid-column: auto; }
  .demo-tall { grid-row: auto; }
  .demo-tall .demo-media, .demo-media { min-height: 530px; }
  /* без grid-row:span высота карточки неопределённая, и проценты у max-height не
     резолвятся: карточка растягивается под все 1280px кадра. Меряем от вьюпорта. */
  .demo-tall .demo-media > img { max-height: 58svh; max-width: 74%; }
  .demo-device { left: 6%; top: 8%; bottom: auto; width: 44%; aspect-ratio: .46; }
  .demo-proof { top: 13%; right: 5%; width: 43%; }
}

@media (min-width: 981px) {
  /* на широком экране рамка телефона шире пропорции кадра, и cover режет по низу —
     там он и так уходит за край карточки. Пропорцию фиксируем только ниже 981px. */
  .demo-device { aspect-ratio: auto; }
}

@media (max-width: 700px) {
  .demo-hero-foot { flex-wrap: wrap; gap: 10px; padding-bottom: 26px; }
  .demo-hero-foot i { display: none; }
  .demo-tall .demo-media > img { max-width: 82%; }
  /* 46% от узкой панели давало кадр в 166px — на телефоне это уже нечитаемо.
     Здесь у панели высота задана в svh, поэтому кадр меряем от неё: ширина в
     процентах на широком-невысоком экране (600×900) выводила его за нижний край. */
  .story-action .phone-shell { left: 5%; top: 6%; height: 82%; width: auto; }
  /* Ниже 700px .visual-research — сетка в три колонки, и кадр в ней обязан быть
     обычным грид-элементом: абсолютный .browser-shell места в потоке не занимает,
     панель схлопывается до 150px, а видео ложится поверх карточек источников. */
  .visual-research .browser-shell {
    position: relative; left: auto; right: auto; top: auto;
    grid-column: 1 / -1; width: 100%; margin: 0 0 12px;
  }
  /* параллакс возит кадр по вертикали внутри ячейки — на узком экране это снова
     наезд на карточки. Через .fx, а не transform: им управляет motion.js */
  .js .visual-research .browser-shell.fx { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: opacity 180ms ease; }
  .js .demo-hero.reveal { transform: none; }
  .js .statement-foot i { transform: none; }
  /* наплыв секций выключаем целиком: стык остаётся прямым */
  main > section + section { margin-top: 0; border-radius: 0; box-shadow: none; }
  main > section + section > .section-index:first-child { margin-top: 0; }
  .scroll-cue { bottom: 38px; }
}
