/* Geolum, главная (из макета site-v2/v8). Токены из brand/01-aydentika.md §3–4.
   Тема (бумага / графит) переключается по прокрутке: app.js пишет переменные на :root. */
:root {
  --bg: #0E1014; --surf: #15181E; --ink: #F1F2F4; --ink2: #C5C9D0; --ink3: #979DA8; --line: #30353D;
  --acc: #93A3EA; --acc-soft: #1C2238; --stub: #23272E; --stub2: #2C3139; --btn: #F1F2F4; --btn-ink: #0E1014;
  --field-line: #5A616C;
  --pad: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 Manrope, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  font-variant-numeric: tabular-nums; overflow-x: clip;
}
.bgl { position: fixed; inset: 0; background: var(--bg); z-index: -1; }
a { color: inherit; text-decoration-color: var(--acc); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.nw { white-space: nowrap; }

/* шапка */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad); background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); margin: 0; }
.brand .znak { color: var(--acc); flex: none; }
.brand span { font: 500 17px/1 Unbounded, Manrope, system-ui; letter-spacing: -.01em; }
.mode { margin-left: auto; display: inline-flex; background: var(--surf); border-radius: 999px; padding: 4px; }
.mode-b {
  font: 600 14px/1 Manrope, system-ui; color: var(--ink2); background: none; border: 0; border-radius: 999px;
  padding: 0 16px; min-height: 40px; cursor: pointer;
}
.mode-b[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px;
  font: 600 15.5px/1.2 Manrope, system-ui; text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { color: var(--btn-ink); filter: brightness(1.08); }
.btn-ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.top-cta { min-height: 40px; padding: 0 16px; font-size: 14.5px; }

/* общая механика сцен: секция высотой --len vh, сцена закреплена sticky */
.scene { position: relative; height: calc(var(--len) * 1vh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.tm { position: absolute; left: 0; width: 1px; height: 1px; }
/* линейка сцены: показывает длину закреплённой сцены и прогресс внутри неё */
.rail { position: absolute; left: calc(var(--pad) / 2 - 1px); top: 0; bottom: 0; width: 2px; background: color-mix(in srgb, var(--ink3) 22%, transparent); z-index: 4; }
.rail i { position: sticky; top: 0; display: block; width: 2px; height: calc(var(--rp, 0) * 100vh); background: var(--acc); }

/* ЭКРАНЫ 1–2 */
.s-hero .stage { padding-top: 64px; }
.h-copy { position: absolute; left: var(--pad); top: calc(64px + 6vh); width: calc(100vw - 2 * var(--pad)); z-index: 3; pointer-events: none; }
.h-copy > * { pointer-events: auto; max-width: min(44vw, 620px); }
.s-hero h1 {
  font: 500 clamp(30px, 2.85vw, 42px)/1.06 Unbounded, Manrope, system-ui; letter-spacing: -.025em; max-width: min(44vw, 620px) !important;
}
.lede { margin-top: 22px; color: var(--ink2); max-width: 34em; font-size: 17px; }
.s-hero .lede { margin-top: 4.4vh; }
.h-city { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.h-city label { font-weight: 600; font-size: 15px; color: var(--ink2); }
.select {
  font: 600 16px/1 Manrope, system-ui; color: var(--ink); background: var(--surf); border: 0; border-radius: 8px;
  min-height: 44px; padding: 0 40px 0 14px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23979DA8' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 14px center; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--field-line);
}
.h-cta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.link-quiet { color: var(--ink2); font-weight: 600; font-size: 15.5px; }
.note { margin-top: 14px; color: var(--ink3); font-size: 14px; }

.h-video {
  position: absolute; z-index: 2; left: 50vw; top: calc(64px + 5vh); width: calc(50vw - var(--pad)); height: min(72vh, 640px);
  transform-origin: 0 0; will-change: transform;
}
.h-runs { position: absolute; left: 0; right: 0; top: 60vh; z-index: 1; transform: translateY(70vh); will-change: transform; }
.run { overflow: hidden; margin-top: 22px; }
.run:first-child { margin-top: 0; }
.run-t { display: flex; gap: 56px; width: max-content; will-change: transform; }
.run-t span { font: 600 clamp(22px, 2.9vw, 42px)/1.25 Manrope, system-ui; letter-spacing: -.02em; white-space: nowrap; }
.run-b .run-t span { color: var(--ink2); }

/* ЭКРАН 3 */
.s-house .stage { display: grid; grid-template-columns: minmax(0, 27fr) minmax(0, 52fr) minmax(0, 23fr); align-items: center; gap: 0 32px; padding: 64px var(--pad) 0; }
.say { font: 700 clamp(20px, 1.75vw, 26px)/1.32 Manrope, system-ui; letter-spacing: -.02em; max-width: 20em; }
.ho-copy .sub { margin-top: 20px; color: var(--ink2); max-width: 30em; }
.ho-video { width: 100%; }
.orbit { position: absolute; inset: 0; perspective: 1000px; }
.slabs { position: absolute; left: 36%; width: 28%; aspect-ratio: 1; top: 50%; margin-top: -9%; transform-style: preserve-3d; will-change: transform; }
.slabs > i {
  position: absolute; inset: 0; border-radius: 6px; will-change: transform; font-style: normal; color: var(--ink);
  background-color: #FFFFFF; background-image: linear-gradient(160deg, #FFFFFF 0%, #F7F8FA 100%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 22, 27, .07), 0 2px 0 rgba(20, 22, 27, .05), 0 3px 0 rgba(20, 22, 27, .03), 0 40px 70px -36px rgba(20, 22, 27, .45);
  transition: box-shadow .4s, background .4s;
}
.slabs > i > * { position: absolute; }
.slabs > i > span { left: 8%; bottom: 8%; font: 700 clamp(13px, 1.25vw, 18px)/1.2 Manrope, system-ui; color: #14161B; letter-spacing: -.01em; }
.slabs > i.on { background: #FFFFFF; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 22, 27, .16), 0 2px 0 rgba(20, 22, 27, .06), 0 3px 0 rgba(20, 22, 27, .04), 0 48px 80px -36px rgba(20, 22, 27, .55); }
.slabs em, .slabs em b, .slabs em u, .slabs em i { font-style: normal; text-decoration: none; font-weight: inherit; }
.pl-h { left: 8%; top: 50%; right: 8%; font: 700 clamp(10px, 1.15vw, 17px)/1.2 Manrope, system-ui; color: #14161B; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-h.low { top: 78%; }
.pl-s { left: 8%; top: 60%; right: 8%; font: 500 clamp(8px, .85vw, 12.5px)/1.3 Manrope, system-ui; color: #5F6672; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-s.two { top: 67%; } .pl-s.low { top: 86%; left: 42%; }
.pl-s .st { color: #3C414A; letter-spacing: .08em; margin-right: .4em; }
.pl-hr { left: 8%; right: 8%; top: 69%; height: 1px; background: rgba(20, 22, 27, .1); }
.pl-btn { left: 8%; top: 74%; padding: 2.2% 4%; border-radius: 999px; font: 600 clamp(8px, .85vw, 12.5px)/1 Manrope, system-ui; color: #14161B; box-shadow: inset 0 0 0 1px rgba(20, 22, 27, .22); white-space: nowrap; }
.pl-pics { left: 8%; top: 73%; width: 60%; height: 13%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.pl-pics b { border-radius: 4px; background: linear-gradient(160deg, #EDEFF2, #DCDFE4); box-shadow: inset 0 0 0 1px rgba(20, 22, 27, .05); }
.pl-map { left: 8%; right: 8%; top: 44%; height: 30%; border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20, 22, 27, .08);
  background: repeating-linear-gradient(0deg, transparent 0 11%, rgba(20, 22, 27, .07) 11% 12%), repeating-linear-gradient(90deg, transparent 0 11%, rgba(20, 22, 27, .07) 11% 12%), #F2F3F5; }
.pl-pin { left: 50%; top: 46%; width: 6%; aspect-ratio: 1; border-radius: 50% 50% 50% 0; transform: translate(-50%, -80%) rotate(-45deg); background: #14161B; box-shadow: 0 5px 8px -3px rgba(0, 0, 0, .35); }
.pl-rev { left: 8%; right: 8%; height: 10%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr 1fr; column-gap: 3%; align-items: center; }
.pl-rev.r1 { top: 46%; } .pl-rev.r2 { top: 59%; } .pl-rev.r3 { top: 72%; }
.pl-rev > * { position: static; }
.pl-rev i { grid-row: 1 / 3; height: 100%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(160deg, #E4E7EC, #CDD1D8); }
.pl-rev b { font: 600 clamp(8px, .9vw, 13px)/1 Manrope, system-ui; color: #14161B; align-self: end; white-space: nowrap; }
.pl-rev u { font: 500 clamp(7px, .75vw, 11px)/1 Manrope, system-ui; color: #5F6672; letter-spacing: .08em; align-self: start; }
.pl-row { left: 8%; right: 8%; display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1.6%; border-bottom: 1px solid rgba(20, 22, 27, .1); font: 500 clamp(8px, .85vw, 12.5px)/1.2 Manrope, system-ui; white-space: nowrap; }
.pl-row.t1 { top: 60%; } .pl-row.t2 { top: 68%; } .pl-row.t3 { top: 76%; }
.pl-row > * { position: static; }
.pl-row b { color: #3C414A; } .pl-row u { color: #14161B; font-weight: 600; }
.floors { list-style: none; margin: 0; padding: 0; position: relative; align-self: stretch; }
.floors li { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-wrap: nowrap; align-items: baseline; column-gap: 10px; white-space: nowrap; padding-left: 14px; will-change: transform, opacity; opacity: 0; }
.floors li::before { content: ""; position: absolute; left: -36px; top: .7em; width: 44px; height: 1.5px; background: var(--ink3); }
.floors b { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.yn { font-size: 14px; color: var(--ink3); }

/* ЭКРАН 4 */
.s-num .stage { padding: 64px var(--pad) 0; }
.nu-bg { position: absolute; left: var(--pad); right: var(--pad); top: calc(64px + 3vh); bottom: 4vh; background: var(--surf); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-evenly; padding: 3vh 0; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.wall-r { display: flex; gap: 40px; width: max-content; will-change: transform; font: 600 clamp(20px, 2.4vw, 34px)/1 Manrope, system-ui; letter-spacing: -.02em; color: color-mix(in srgb, var(--ink3) 16%, transparent); white-space: nowrap; }
.nu-slides { position: absolute; left: calc(var(--pad) + 3vw); right: var(--pad); top: calc(64px + 16vh); height: 60vh; }
.nu { position: absolute; inset: 0; }
.big { display: block; overflow: hidden; height: 1.08em; font: 500 clamp(76px, 15vw, 260px)/1.08 Unbounded, Manrope, system-ui; letter-spacing: -.04em; }
.slot { display: block; will-change: transform; }
.nu p { margin-top: 18px; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.45; max-width: 28em; color: var(--ink); will-change: transform, opacity; }
.nu-ticks { position: absolute; left: calc(var(--pad) + 3vw); bottom: calc(4vh + 60px); display: flex; gap: 8px; }
.nu-ticks i { width: 36px; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink3) 45%, transparent); }
.nu-ticks i.on { background: var(--acc); }
.nu-more { position: absolute; left: calc(var(--pad) + 3vw + 140px); bottom: calc(4vh + 51px); font-size: 15px; font-weight: 600; }

/* ЭКРАН 5 */
.s-sheets .stage { padding: calc(64px + 4vh) var(--pad) 0; }
.sh-head h2 { font: 700 clamp(26px, 2.6vw, 38px)/1.15 Manrope, system-ui; letter-spacing: -.028em; max-width: 30em; }
.sheets { position: absolute; left: var(--pad); right: var(--pad); top: calc(64px + 4vh + 92px); bottom: 5vh; }
.sh-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.sheet > :not(.sh-grid) { position: relative; z-index: 1; }
.sheet {
  position: absolute; inset: 0; background: #F2F3F5; color: #14161B; border-radius: 6px; padding: 2.4vh 2.6vw 3vh;
  will-change: transform; transform-origin: 50% 100%; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7), 0 2px 0 rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; overflow: hidden;
  --s-ink2: #3C414A; --s-acc: #1F2A6B;
}
.word { font: 500 clamp(56px, 9.2vw, 150px)/.95 Unbounded, Manrope, system-ui; letter-spacing: -.035em; color: #14161B; white-space: nowrap; }
.sh-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 3vw; align-items: start; margin-top: 2.2vh; }
.fig { width: 100%; height: auto; max-height: 100%; }
.fig .ln { fill: none; stroke: #14161B; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.fig .acc-f { fill: #1F2A6B; }
.fig .acc-s { fill: none; stroke: #1F2A6B; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sh-text h3 { font: 700 clamp(19px, 1.5vw, 23px)/1.25 Manrope, system-ui; letter-spacing: -.02em; max-width: 26em; }
.sh-text p { margin-top: 10px; color: var(--s-ink2); max-width: 36em; font-size: 16px; line-height: 1.55; }
.works { margin: 8px 0 0; padding: 0 0 0 1.1em; columns: 2; column-gap: 28px; color: var(--s-ink2); font-size: 15px; line-height: 1.45; max-width: 44em; }
.works li { break-inside: avoid; margin-bottom: 4px; }
.sh-text .tag { margin-top: 14px; display: inline-block; font-weight: 700; font-size: 14px; color: var(--s-acc); }

/* «Платите за работу» */
.pay { align-items: start; padding: 16vh var(--pad) 10vh; display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); gap: 4vw; }
.pay h2 { font: 700 clamp(26px, 2.6vw, 38px)/1.15 Manrope, system-ui; letter-spacing: -.028em; max-width: 11em; }
.pay-r { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.pay-r:first-child { border-top: 0; padding-top: 4px; }
.pay-r h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; }
.pay-r p { color: var(--ink2); max-width: 36em; }

/* ЭКРАН 6 */
.s-who { padding: 10vh var(--pad) 12vh; }
.who-head h2 { font: 700 clamp(26px, 2.6vw, 38px)/1.15 Manrope, system-ui; letter-spacing: -.028em; max-width: 18em; }
.who-head .lede { max-width: 38em; }
.stack { margin-top: 6vh; }
.card {
  position: sticky; top: calc(84px + var(--i) * 18px); height: min(68vh, 560px); margin-bottom: 7vh;
  background: var(--surf); border-radius: 14px; padding: 22px; display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 34px;
  transform-origin: 50% 0; will-change: transform; box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 20px 40px -30px rgba(20, 22, 27, .35);
}
.card:last-child { margin-bottom: 0; }
.mini { height: 100%; background: var(--bg); border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.mini-h { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1 Manrope, system-ui; color: var(--ink3); }
.mini-h .ic { width: 16px; height: 16px; color: var(--acc); }
.mini-q { font-size: 15px; line-height: 1.4; color: var(--ink); background: var(--acc-soft); padding: 10px 14px; border-radius: 12px 12px 4px 12px; align-self: flex-end; max-width: 92%; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mini-l { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mini-l li { background: var(--surf); border-radius: 8px; padding: 10px 12px; font-weight: 700; font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mini-l .co { background: linear-gradient(var(--acc), var(--acc)) no-repeat 0 100% / 0 1.5px; padding-bottom: 1px; transition: background-size .4s var(--ease) .5s; }
.mini-you { margin-top: 6px; display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .4s var(--ease) .9s; }
.mini-you i { width: 9px; height: 9px; border-radius: 50%; background: #E08484; }
.mini.seen .mini-q { opacity: 1; transform: none; }
.mini.seen .mini-l li { opacity: 1; transform: none; }
.mini.seen .mini-l li:nth-child(1) { transition-delay: .2s } .mini.seen .mini-l li:nth-child(2) { transition-delay: .32s } .mini.seen .mini-l li:nth-child(3) { transition-delay: .44s }
.mini.seen .mini-l .co { background-size: 100% 1.5px; }
.mini.seen .mini-you { opacity: 1; }
.card-t { align-self: center; padding-right: 2vw; }
.card-t h3 { font: 500 clamp(26px, 2.6vw, 40px)/1.08 Unbounded, Manrope, system-ui; letter-spacing: -.03em; }
.card-t p { margin-top: 14px; color: var(--ink2); max-width: 30em; }
.not { align-items: start; margin-top: 12vh; display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); gap: 4vw; }
.not h3 { font-size: 21px; letter-spacing: -.015em; }
.not ul { margin: 0; padding: 0; list-style: none; color: var(--ink2); }
.not li { padding: 10px 0 10px 26px; position: relative; border-top: 1px solid var(--line); max-width: 36em; }
.not li:first-child { border-top: 0; padding-top: 0; }
.not li::before { content: ""; position: absolute; left: 0; top: 1.25em; width: 12px; height: 1.5px; background: var(--ink3); }
.not li:first-child::before { top: calc(.8em - 1px); }

/* ЭКРАН 7 */
.s-map .stage { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); gap: 4vw; align-items: center; padding: 64px var(--pad) 0; }
.mp-copy h2 { font: 700 clamp(26px, 2.6vw, 38px)/1.15 Manrope, system-ui; letter-spacing: -.028em; }
.mp-copy h3 { margin-top: 26px; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; max-width: 24em; }
.mp-copy p { margin-top: 8px; color: var(--ink2); max-width: 30em; font-size: 16px; }
.mp-vis { display: flex; flex-direction: column; gap: 2vh; }
.map { width: 100%; height: auto; max-height: 52vh; mask-image: linear-gradient(to right, #000 86%, transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%); }
.map .land { fill: var(--surf); stroke: var(--line); stroke-width: 1.2; stroke-linejoin: round; }
.map .route { fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-linecap: round; opacity: .9; }
.map .city .dot { fill: var(--bg); stroke: var(--ink3); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.map .city .ring { fill: none; stroke: var(--acc); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map .city.on .dot { fill: var(--acc); stroke: var(--bg); stroke-width: 2.5; }
.map .city.on .ring { animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.35); opacity: .8 } 70% { opacity: 0 } 100% { transform: scale(1.25); opacity: 0 } }
.map .city text { font: 600 13.5px Manrope, system-ui; fill: var(--ink3); letter-spacing: -.01em; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; transition: fill .3s; }
.map .city.on text { fill: var(--ink); }
.curve { width: min(100%, 520px); height: auto; align-self: flex-end; }
.curve .axis line { stroke: var(--line); stroke-width: 1; }
.curve .axis text { font: 500 14px Manrope, system-ui; fill: var(--ink3); }
.curve .cv { fill: none; stroke: var(--acc); stroke-width: 2.5; stroke-linecap: round; }
.curve .pts circle { fill: var(--acc); }
.curve .pts text { font: 700 15px Manrope, system-ui; fill: var(--ink); }
.curve .pts text.m { font-weight: 500; fill: var(--ink2); }
.curve .cap { font: 500 14px Manrope, system-ui; fill: var(--ink3); }

/* ЭКРАН 8 */
.s-prod .stage { padding-top: 64px; }
.pr-head { position: absolute; left: var(--pad); top: calc(64px + 5vh); }
.pr-head h2 { font: 700 clamp(26px, 2.6vw, 38px)/1.15 Manrope, system-ui; letter-spacing: -.028em; max-width: 20em; }
.track { position: absolute; left: 0; top: calc(64px + 5vh + 76px); bottom: 5vh; display: flex; gap: 4vw; padding: 0 var(--pad); will-change: transform; perspective: 1400px; }
.tab { width: min(36vw, 560px); flex: none; display: flex; flex-direction: column; }
.pad { background: #14161B; border-radius: 16px; padding: 12px; transform: rotateY(var(--ry, 0deg)) rotateZ(-1.5deg); transform-origin: 50% 60%; will-change: transform; box-shadow: 0 24px 40px -26px rgba(20, 22, 27, .55); }
.pad .shot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 6px; background: #3A3F48; }
.tab h3 { margin-top: 22px; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; }
.tab p { margin-top: 6px; color: var(--ink2); font-size: 15.5px; line-height: 1.5; max-width: 30em; }

/* ЭКРАН 9 */
.s-mach { padding: 16vh var(--pad) 12vh; display: flex; flex-direction: column; align-items: center; text-align: center; }
.s-mach h2 { font: 700 clamp(26px, 2.6vw, 38px)/1.15 Manrope, system-ui; letter-spacing: -.028em; max-width: 18em; }
.s-mach p { margin-top: 14px; color: var(--ink2); max-width: 30em; font-size: 18px; }
.big-switch { margin-top: 34px; display: inline-flex; padding: 6px; border: 0; border-radius: 999px; background: var(--surf); cursor: pointer; font: 600 clamp(18px, 1.6vw, 22px)/1 Manrope, system-ui; box-shadow: 0 16px 34px -24px rgba(20, 22, 27, .4); }
.big-switch span { padding: 18px 34px; border-radius: 999px; color: var(--ink2); }
.big-switch span:first-child { background: var(--ink); color: var(--bg); }
.machine .big-switch span:first-child { background: none; color: var(--ink2); }
.machine .big-switch span:last-child { background: var(--ink); color: var(--bg); }

/* ЭКРАН 10 */
.s-faq { align-items: start; padding: 8vh var(--pad) 8vh; display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); gap: 4vw; }
.s-faq h2, .s-form h2 { font: 700 clamp(26px, 2.6vw, 38px)/1.15 Manrope, system-ui; letter-spacing: -.028em; max-width: 13em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--acc); font-weight: 500; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--ink2); max-width: 36em; }
.s-form { padding: 12vh var(--pad) 12vh; display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 4vw; align-items: start; }
.s-form .lede { max-width: 26em; }
.after { margin: 22px 0 0; padding: 0 0 0 1.1em; color: var(--ink2); font-size: 15.5px; }
.after li { margin-bottom: 6px; }
.form { background: var(--surf); border-radius: 14px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide, .check, .form .btn, .form-out { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.opt { color: var(--ink3); font-weight: 500; }
.input { font: 500 16px/1.2 Manrope, system-ui; color: var(--ink); background: var(--bg); border: 1.5px solid var(--field-line); border-radius: 8px; min-height: 48px; padding: 0 14px; width: 100%; }
.input::placeholder { color: var(--ink3); }
.check { display: flex; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--ink2); align-items: flex-start; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--acc); }
.form .btn { justify-self: start; }
.form-out { font-size: 15px; color: var(--ink2); min-height: 1em; }
.price { grid-column: 1 / -1; color: var(--ink2); font-size: 15.5px; }

/* подвал */
.foot { padding: 8vh var(--pad) 40px; border-top: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand p:last-child { margin-top: 12px; color: var(--ink2); font-size: 15px; max-width: 22em; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-col a { color: var(--ink2); text-decoration: none; padding: 2px 0; }
.foot-col a:hover { color: var(--acc); text-decoration: underline; }
.foot-col span { color: var(--ink3); }
.fh { font-weight: 700; color: var(--ink); }
.foot-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 14px; color: var(--ink3); }

/* ПЛОСКИЙ РЕЖИМ: телефон для тяжёлых сцен и reduced-motion для всех */
.flat .scene.fl { height: auto; }
.flat .scene.fl .stage { position: relative; height: auto; overflow: visible; }

/* планшет: текстовые сетки в одну колонку */
@media (max-width: 1000px) {
  .pay, .not, .s-faq, .s-form { grid-template-columns: 1fr; gap: 24px; }
  .pay h2, .s-faq h2, .s-form h2 { max-width: 20em; }
}
/* телефон */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { gap: 10px; height: 60px; }
  .brand span { font-size: 15px; }
  .mode-b { padding: 0 10px; font-size: 13.5px; }
  .top-cta { display: none; }
  .s-hero .stage { padding: 76px 16px 24px; display: flex; flex-direction: column; }
  .h-copy { position: static; width: auto; order: 2; margin-top: 22px; }
  .h-copy > * { max-width: none; }
  .h-city label { white-space: nowrap; }
  .s-hero h1 { font-size: clamp(25px, 6.9vw, 32px); }
  .lede { font-size: 16px; }
  .h-video { position: relative; left: auto; top: auto; width: 100%; height: min(520px, 72vh); order: 1; transform: none !important; }
  .chat { transform: none !important; }
  .h-runs { position: static; order: 3; margin-top: 40px; transform: none !important; }
  .runs-cap { padding: 0; }
  .run { margin-left: -16px; margin-right: -16px; }
  .run-t span { font-size: 21px; }

  .s-house .stage { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-items: start; gap: 18px; padding: 80px 16px 16px; }
  .say { font-size: 20px; }
  .ho-copy .sub { display: none; }
  .floors { min-height: 34vh; }
  .floors li::before { display: none; }
  .floors li { position: relative; padding-left: 0; margin-bottom: 6px; }

  .nu-bg { left: 16px; right: 16px; top: auto; height: 34vh; bottom: 6vh; }
  .nu-slides { left: 16px; right: 16px; top: 64px; transform: none; height: 52vh; }
  .big { font-size: clamp(60px, 19vw, 90px); }
  .nu-ticks { left: 16px; bottom: calc(6vh + 34vh + 20px); }
  .nu-more { left: 160px; bottom: calc(6vh + 34vh + 11px); }

  .s-sheets .stage { padding: 84px 16px 30px; }
  .sheets { position: static; display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
  .sheet { position: relative; inset: auto; padding: 18px; transform: none !important; }
  .word { font-size: 15vw; }
  .sh-body { grid-template-columns: 1fr; gap: 14px; }
  .fig { max-width: 300px; }
  .works { columns: 1; }

  .pay, .not, .s-mach, .s-faq, .s-form { grid-template-columns: 1fr; gap: 20px; }
  .pay-r { grid-template-columns: 1fr; gap: 6px; }
  .pay { padding-top: 10vh; }

  .card { grid-template-columns: 1fr; grid-template-rows: 46% 1fr; gap: 14px; padding: 14px; height: 72vh; top: calc(72px + var(--i) * 12px); }
  .card-t { align-self: start; padding: 0; }
  .card-t p { font-size: 15.5px; margin-top: 10px; }

  .s-map .stage { grid-template-columns: 1fr; padding: 84px 16px 30px; gap: 22px; }
  .curve { align-self: stretch; width: 100%; }
  .map .city text { font-size: 24px; stroke-width: 6px; }
  .curve .axis text, .curve .cap { font-size: 18px; }
  .curve .pts text { font-size: 17px; }

  .pr-head { left: 16px; top: 78px; }
  .track { top: 160px; bottom: 4vh; gap: 22px; padding: 0 16px; }
  .tab { width: 78vw; }

  .form { grid-template-columns: 1fr; padding: 18px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) and (max-height: 700px) { .card { height: 80vh; } }

/* РЕЖИМ «МАШИНА»: тот же документ текстом, один столбец, моноширинный */
html.machine { --bg: #F2F3F5 !important; --surf: #F2F3F5 !important; --ink: #14161B !important; --ink2: #3C414A !important; --ink3: #5F6672 !important; --line: #CDD1D8 !important; --acc: #1F2A6B !important; --stub: #E1E4E8 !important; --btn: #1F2A6B !important; --btn-ink: #fff !important; color-scheme: light; }
.machine body { font: 400 15px/1.6 "Cascadia Mono", Consolas, "Courier New", ui-monospace, monospace; }
.machine main, .machine .foot { max-width: 50em; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.machine .scene { height: auto !important; }
.machine .stage { position: static !important; height: auto !important; overflow: visible !important; display: block !important; padding: 0 !important; }
.machine .stage > *, .machine .h-video, .machine .h-copy, .machine .h-runs, .machine .nu-slides, .machine .nu, .machine .sheets, .machine .sheet, .machine .track, .machine .pr-head, .machine .nu-bg, .machine .nu-more, .machine .nu-ticks, .machine .floors li {
  position: static !important; inset: auto !important; width: auto !important; height: auto !important; transform: none !important; opacity: 1 !important; margin-top: 16px;
}
.machine main > *, .machine .s-who, .machine .pay, .machine .s-mach, .machine .s-faq, .machine .s-form, .machine .foot { display: block; padding: 24px 0 !important; }
.machine section { border-top: 1px dashed var(--line); }
.machine h1, .machine h2, .machine h3, .machine .word, .machine .big, .machine .card-t h3, .machine .say, .machine .sh-head h2, .machine .pay h2, .machine .s-faq h2, .machine .s-form h2 {
  font: 700 16px/1.5 "Cascadia Mono", Consolas, "Courier New", monospace !important; letter-spacing: 0 !important; max-width: none !important; color: var(--ink) !important;
}
.machine h1 { font-size: 20px !important; }
.machine h1::before { content: "# "; color: var(--acc); }
.machine h2::before { content: "## "; color: var(--acc); }
.machine h3::before { content: "### "; color: var(--acc); }
.machine .big { height: auto !important; overflow: visible; }
.machine .word { color: var(--ink3) !important; font-weight: 400 !important; }
.machine .word::before { content: "<!-- "; } .machine .word::after { content: " -->"; }
.machine p, .machine li, .machine summary { font-size: 15px !important; max-width: none !important; }
.machine .run { overflow: visible; }
.machine .run-t { display: block; width: auto; transform: none !important; }
.machine .run-t span { display: list-item; margin-left: 1.4em; white-space: normal; font-size: 15px !important; font-weight: 400 !important; line-height: 1.6 !important; letter-spacing: 0 !important; color: var(--ink2) !important; }
.machine *, .machine *::before, .machine *::after { font-family: "Cascadia Mono", Consolas, "Courier New", ui-monospace, monospace !important; }
.machine .track, .machine .run, .machine .h-runs { display: block !important; }
.machine .floors { position: static; }
.machine .floors li::before { display: none; }
.machine .floors li { display: list-item; margin-left: 1.4em; padding: 0; }
.machine .nu-ticks, .machine .sh-grid, .machine .rail { display: none !important; }
.machine .chat, .machine .nu-bg, .machine .shot { display: none !important; }
.machine .mini { height: auto; background: none; padding: 0; }
.machine .mini-q, .machine .mini-l li, .machine .mini-you { opacity: 1 !important; transform: none !important; background: none; padding: 0; }
.machine .mini-l { display: block; list-style: decimal; padding-left: 1.4em; }
.machine .sheet { background: none !important; color: var(--ink) !important; box-shadow: none !important; padding: 0 !important; border-radius: 0; display: block; }
.machine .sh-body, .machine .card, .machine .s-map .stage, .machine .mp-vis, .machine .pay-r, .machine .not, .machine .foot-cols { display: block !important; }
.machine .fig, .machine .map, .machine .curve { width: 220px !important; max-height: none; margin-top: 10px; }
.machine .card { position: static !important; height: auto !important; transform: none !important; box-shadow: none; padding: 0 !important; margin: 16px 0 !important; background: none; }
.machine .tab { width: auto !important; margin-top: 16px; }
.machine .pad { transform: none !important; background: none; padding: 0; box-shadow: none; }
.machine a[href^="http"]::after { content: " <" attr(href) ">"; color: var(--ink3); word-break: break-all; }
.machine .foot-col { display: block; }
.machine .foot-col a, .machine .foot-col span { display: block; }
.machine .mode-b, .machine .btn, .machine .select, .machine .input { font-family: "Cascadia Mono", Consolas, monospace; }
.machine .top { background: color-mix(in srgb, var(--bg) 92%, transparent); }

/* плоские сцены при reduced-motion на компьютере */
.rm .s-hero.fl .stage { min-height: 100vh; padding-bottom: 8vh; }
.rm .s-hero.fl .h-copy { position: relative; top: auto; margin-top: 7vh; }
.rm .s-hero.fl .h-runs { position: relative; top: auto; transform: none; margin-top: 10vh; }
.rm .run-t { flex-wrap: wrap; width: auto; gap: 6px 40px; padding: 0 var(--pad); }
.rm .run-t span { white-space: normal; }
.rm .run { margin-left: 0; margin-right: 0; }
.rm .dup { display: none; }
.rm .s-num.fl .stage { height: auto; padding-bottom: 8vh; }
.rm .s-num.fl .nu-bg { display: none; }
.rm .s-num.fl .nu-slides { position: relative; inset: auto; transform: none; height: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3vw; margin-top: 4vh; }
.rm .s-num.fl .nu { position: relative; inset: auto; }
.rm .s-num.fl .big { font-size: clamp(56px, 6.4vw, 96px); }
.rm .nu-ticks { display: none; }
.rm .s-num.fl .nu-more { position: static; margin-top: 3vh; }
.rm .s-sheets.fl .stage { height: auto; padding-bottom: 8vh; }
.rm .s-sheets.fl .sheets { position: static; display: flex; flex-direction: column; gap: 28px; margin-top: 28px; }
.rm .s-sheets.fl .sheet { position: relative; inset: auto; min-height: 70vh; }
.rm .s-map.fl .stage { height: auto; min-height: 100vh; padding-bottom: 6vh; }
.rm .s-prod.fl .stage { height: auto; padding-bottom: 8vh; }
.rm .s-prod.fl .pr-head { position: relative; top: auto; left: auto; padding: 5vh var(--pad) 0; }
.rm .s-prod.fl .track { position: relative; top: auto; bottom: auto; flex-wrap: wrap; margin-top: 30px; row-gap: 48px; }
.machine .dup { display: none; }

/* reduced-motion: движение выключено, сцены плоские, всё видно сразу */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.check span { max-width: 40em; }

/* ОКНО ЖИВОГО ЧАТА (из v5), классы ctab и ccard, чтобы не спорить с .tab и .card экранов 8 и 6 */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chat {
  position: relative; width: 100%; height: 100%; background: var(--surf); border-radius: 14px; overflow: hidden; font-size: 16px;
  display: grid; grid-template-rows: auto 1fr auto auto; grid-template-columns: minmax(0, 1fr); box-shadow: 0 0 0 1px color-mix(in srgb, var(--line) 55%, transparent), 0 30px 60px -30px rgba(0,0,0,.6);
  transform-origin: 50% 50%; will-change: transform;
}
.chat > * { min-width: 0; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; }
.ctabs { position: relative; display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; isolation: isolate; }
.ctab {
  white-space: nowrap; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border: 0; background: none; border-radius: 999px;
  font: 600 14px/1 Manrope, system-ui; color: var(--ink3); cursor: default; transition: color .3s var(--ease);
}
.ctab .ic { width: 17px; height: 17px; }
.ctab[aria-selected="true"] { color: var(--ink); }
.ctab-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 999px; background: var(--surf); box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s var(--ease), width .4s var(--ease); overflow: hidden; }
.ctab-ind i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; opacity: .8; }
.ctab-ind i.go { animation: prog 8.4s linear forwards; }
@keyframes prog { to { transform: scaleX(1) } }
.rec { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 Manrope, system-ui; color: var(--ink3); white-space: nowrap; min-width: 0; }
.rec span { overflow: hidden; text-overflow: ellipsis; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #E08484; opacity: .9; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 0%, 100% { opacity: .9 } 50% { opacity: .25 } }
.chat-body { position: relative; overflow: hidden; padding: 4px 20px 0; mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 10px), transparent 100%); }
.thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; min-height: 100%; padding-bottom: 14px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.thread.out { opacity: 0; transform: translateX(-40px); }
.thread.in { opacity: 0; transform: translateX(40px); transition: none; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--acc); opacity: 0; pointer-events: none; }
.scan.go { animation: scan .55s var(--ease) forwards; }
@keyframes scan { 0% { transform: translateY(0); opacity: .9 } 100% { transform: translateY(560px); opacity: 0 } }
.msg { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(8px); animation: up .3s var(--ease) forwards; }
@keyframes up { to { opacity: 1; transform: none } }
.msg-user { justify-content: flex-end; }
.bubble { max-width: 84%; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: var(--acc-soft); color: var(--ink); font-size: 15px; line-height: 1.45; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex: none; margin-top: 1px; }
.avatar .ic { width: 17px; height: 17px; }
.ai-col { min-width: 0; flex: 1; }
.ai-name { font: 600 13px/1 Manrope, system-ui; color: var(--ink3); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; height: 13px; }
.ai-name .think { display: inline-flex; gap: 3px; align-items: center; }
.ai-name .think i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink3); animation: think .8s ease-in-out infinite; }
.ai-name .think i:nth-child(2) { animation-delay: .12s } .ai-name .think i:nth-child(3) { animation-delay: .24s }
@keyframes think { 0%, 100% { opacity: .25; transform: translateY(0) } 40% { opacity: 1; transform: translateY(-2px) } }
.ai-text { font-size: 15px; line-height: 1.5; color: var(--ink2); overflow-wrap: anywhere; }
.ai-text p { margin: 0 0 10px; }
.ai-text .head { color: var(--ink); font-weight: 700; margin: 2px 0 8px; }
.ccards { display: grid; gap: 8px; margin-bottom: 10px; }
.ccard { background: var(--bg); border-radius: 10px; padding: 10px 12px 11px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); animation: pop .32s var(--ease) both; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.98) } 100% { opacity: 1; transform: none } }
.ccard-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccard .co { font-size: 15.5px; }
.badge { font: 600 11.5px/1 Manrope, system-ui; color: var(--acc); background: var(--acc-soft); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.rate { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 13.5px; color: var(--ink2); }
.rate .ic { width: 13px; height: 13px; color: var(--ink); }
.rate b { color: var(--ink); font-weight: 700; }
.ccard .line { margin: 5px 0 0; font-size: 13.5px; color: var(--ink3); line-height: 1.4; }
.ccard .src { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--ink3); border-bottom: 1px solid var(--line); }
.ai-text .co { color: var(--ink); font-weight: 600; background: linear-gradient(var(--acc), var(--acc)) no-repeat 0 100% / 0 1.5px; transition: background-size .3s var(--ease); padding-bottom: 1px; }
.ai-text .co.on { background-size: 100% 1.5px; }
.ai-text .more { font-size: 14px; }
.ai-text .srcs { display: inline-block; font-size: 12.5px; color: var(--ink2); background: var(--bg); padding: 6px 10px; border-radius: 999px; margin-bottom: 4px; animation: pop .3s var(--ease) both; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--acc); vertical-align: -0.18em; margin-left: 1px; animation: blink .8s steps(1) infinite; }
.ai-text .caret { height: 1em; vertical-align: -0.15em; }
@keyframes blink { 50% { opacity: 0 } }
.geo { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.geo.on { grid-template-rows: 1fr; }
.geo-in {
  overflow: hidden; display: flex; align-items: center; gap: 16px; margin: 0 14px; padding: 0 14px; border-radius: 10px; background: var(--bg);
  font: 500 14px/1.3 Manrope, system-ui; color: var(--ink2); min-height: 0; height: 0; transition: height .35s var(--ease), opacity .3s; opacity: 0;
}
.geo.on .geo-in { height: 56px; opacity: 1; }
.geo-n { white-space: nowrap; flex: none; }
.geo-n b { font: 500 20px/1 Unbounded, Manrope, system-ui; color: var(--ink); margin-right: 6px; display: inline-block; min-width: .7em; }
.geo-n b.tick { animation: tick .25s var(--ease); }
@keyframes tick { 0% { transform: translateY(-6px); opacity: .3 } 100% { transform: none; opacity: 1 } }
.geo-you { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); opacity: 0; transform: translateX(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.geo-you i { width: 9px; height: 9px; border-radius: 50%; background: #E08484; flex: none; }
.geo.you .geo-you { opacity: 1; transform: none; }
.geo-cta { margin-left: auto; flex: none; color: var(--acc); font-weight: 600; white-space: nowrap; text-decoration: none; opacity: 0; transition: opacity .3s .1s; }
.geo.you .geo-cta { opacity: 1; }
.geo-cta:hover { text-decoration: underline; }
.composer { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px 14px; }
.comp-plus, .comp-send { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none; cursor: default; }
.comp-plus { background: none; color: var(--ink3); box-shadow: inset 0 0 0 1.5px var(--line); }
.comp-field {
  position: relative; flex: 1; min-width: 0; height: 46px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; transition: box-shadow .2s;
}
.comp-field.live { box-shadow: inset 0 0 0 1.5px var(--field-line); }
.comp-scroll { flex: 1; min-width: 0; display: flex; justify-content: flex-end; overflow: hidden; }
.comp-inner { flex: none; margin-right: auto; display: inline-flex; align-items: center; }
.comp-text { white-space: pre; }
.comp-field .caret { opacity: 0; }
.comp-field.live .caret { opacity: 1; }
.comp-ph { position: absolute; left: 16px; color: var(--ink3); transition: opacity .2s; pointer-events: none; }
.comp-field.filled .comp-ph { opacity: 0; }
.comp-send { background: var(--ink3); color: var(--bg); transition: background .2s, transform .15s var(--ease); }
.comp-send.ready { background: var(--ink); }
.comp-send.fire { transform: scale(.86); }
@media (max-width: 760px) {
  .rec span { display: none; }
  .ctab { padding: 0 13px; gap: 0; height: 40px; min-width: 44px; justify-content: center; }
  .ctab span { display: none; }
  .ctab[aria-selected="true"] { gap: 7px; padding: 0 14px 0 11px; }
  .ctab[aria-selected="true"] span { display: inline; }
  .geo-in { gap: 12px; font-size: 13px; }
  .geo-cta { display: none; }
  .bubble { max-width: 92%; }
  .slabs > i > span { font-size: 11px; }
  .slabs > i > em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .msg, .ccard, .ai-text .srcs { opacity: 1; transform: none; }
  .mini-q, .mini-l li, .mini-you { opacity: 1 !important; transform: none !important; }
  .mini-l .co { background-size: 100% 1.5px; }
}

/* V7: ОТВЕТ БЕЗ КОРОБКИ. Окно чата растворено в странице: нет фона, рамки, пилюль и поля ввода */
.chat { background: none; box-shadow: none; border-radius: 0; grid-template-rows: auto 1fr auto auto; }
.chat-top { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.ctabs { background: none; padding: 0; gap: 22px; border-radius: 0; }
.ctab { padding: 0 0 2px; height: 28px; font-size: 15px; gap: 8px; color: var(--ink3); }
.ctab .ic { width: 18px; height: 18px; }
.ctab[aria-selected="true"] { color: var(--ink); }
.ctab-ind { top: auto; bottom: -15px; height: 2px; border-radius: 0; background: none; box-shadow: none; left: 0; }
.ctab-ind i { height: 2px; background: var(--acc); opacity: 1; }
.rec { font-size: 14px; color: var(--ink2); }
.rec i { background: var(--acc); animation: none; opacity: 1; }
.chat-body { padding: 10px 0 0; mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 6px), transparent 100%); }
.thread { gap: 22px; padding-bottom: 10px; }
.bubble { background: none; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 18px 18px 4px 18px; font-size: 16px; padding: 12px 18px; color: var(--ink); }
.msg-ai { gap: 14px; }
.avatar { width: 32px; height: 32px; background: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink2); }
.ai-name { font-size: 14px; color: var(--ink2); margin-bottom: 10px; height: 14px; }
.ai-text { font-size: 16.5px; line-height: 1.5; color: var(--ink2); }
.ai-text p { margin-bottom: 14px; }
.ai-text .head { font-size: 14px; letter-spacing: .02em; color: var(--ink3); font-weight: 600; margin: 4px 0 2px; }
.ccards { gap: 0; margin: 0 0 14px; border-top: 1px solid var(--line); }
.ccard { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; padding: 11px 0 12px; background: none; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); animation: pop .32s var(--ease) both; }
.ccard .num { font: 500 14px/1.9 Unbounded, Manrope, system-ui; color: var(--ink3); font-variant-numeric: tabular-nums; }
.ccard-h { gap: 6px 12px; align-items: baseline; }
.ccard .co { font-size: 18px; font-weight: 700; color: var(--ink); }
.rate { margin: 0; font-size: 14px; color: var(--ink2); gap: 6px; }
.rate .ic { width: 13px; height: 13px; }
.rate span { color: var(--ink3); }
.badge { background: none; color: var(--ink2); padding: 0; font-size: 13px; font-weight: 600; box-shadow: none; }
.badge::before { content: "· "; color: var(--ink3); }
.ccard .line { margin: 4px 0 0; font-size: 14px; color: var(--ink3); line-height: 1.45; }
.ccard .src { color: var(--ink3); border: 0; font-size: 13px; }
.ccard .src::before { content: "· "; }
.ai-text .more { font-size: 15px; color: var(--ink2); }
.ai-text .srcs { background: none; padding: 0; color: var(--ink3); font-size: 13.5px; }
.ai-text .co { font-weight: 700; }
.geo { border-top: 0; }
.geo-in { margin: 0; padding: 0; border-radius: 0; background: none; border-top: 1px solid var(--line); gap: 18px; font-size: 15px; }
.geo.on .geo-in { height: 64px; }
.geo-n b { font-size: 28px; margin-right: 10px; }
.composer { padding: 10px 0 0; gap: 14px; }
.comp-field { height: 44px; padding: 0; border-radius: 0; background: none; box-shadow: none; border-bottom: 1.5px solid var(--line); font-size: 16px; }
.comp-field.live { box-shadow: none; border-bottom-color: var(--ink2); }
.comp-ph { left: 0; }
.comp-send { width: 32px; height: 32px; background: none; color: var(--ink3); box-shadow: inset 0 0 0 1.5px var(--line); transition: color .2s, box-shadow .2s, transform .15s var(--ease); display: grid; place-items: center; border-radius: 50%; flex: none; }
.comp-send.ready { color: var(--bg); background: var(--ink); box-shadow: none; }
.comp-send .ic { width: 16px; height: 16px; }
.scan { opacity: 0; }
@media (max-width: 760px) {
  .ctabs { gap: 14px; }
  .ctab { gap: 0; min-width: 0; padding: 0; height: 28px; }
  .ctab[aria-selected="true"] { gap: 8px; padding: 0; }
  .ccard .co { font-size: 16.5px; }
}
.thread { justify-content: flex-start; min-height: 0; }
.thread.dim { opacity: .38; }

/* V8: ГЕРОЙ ПО ЦЕНТРУ, ОТВЕТЫ ФОНОМ */
.h-copy.h-center { left: 0; right: 0; width: auto; top: calc(64px + 9vh); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--pad); will-change: transform, opacity; }
.h-copy.h-center > * { max-width: 760px; }
.s-hero .h-center h1 { max-width: 16em !important; font-size: clamp(32px, 3.4vw, 54px); }
.h-center .lede { margin-top: 3.2vh; max-width: 36em; }
.h-center .h-city { justify-content: center; }
.h-center .h-cta { justify-content: center; }
.h-wall { position: absolute; inset: 64px 0 0; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 5vw; padding: 2vh var(--pad) 0; will-change: transform, opacity; transform-origin: 50% 40%; }
.h-wall::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 48% 58% at 50% 48%, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, transparent) 45%, color-mix(in srgb, var(--bg) 55%, transparent) 72%, transparent 100%),
              linear-gradient(to bottom, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.h-wall .chat { height: 100%; opacity: .62; }
.h-wall .chat-top { padding-bottom: 10px; }
.h-wall .ctab[aria-selected="false"] { display: none; }
.h-wall .ctab-ind { display: none; }
.h-wall .ctab { font-size: 14px; }
.h-wall .rec { font-size: 13px; }
.h-wall .bubble { font-size: 14.5px; padding: 10px 14px; }
.h-wall .ai-text { font-size: 15px; }
.h-wall .ccard .co { font-size: 16.5px; }
.h-wall .ccard .line { font-size: 13px; }
.h-wall .composer { padding-top: 8px; }
.h-wall .comp-field { font-size: 14.5px; height: 40px; }
.h-wall .comp-send { display: none; }
.h-wall .geo.on .geo-in { height: 56px; }
.h-wall .geo-cta { display: none; }
@media (max-width: 760px) {
  .s-hero .stage { position: relative; min-height: 100svh; display: block; padding: 0 0 24px; }
  .h-wall { position: absolute; inset: 60px 0 auto; height: 100svh; grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .h-wall .chat[data-col="1"], .h-wall .chat[data-col="2"] { display: none; }
  .h-wall .chat { opacity: .22; }
  .h-copy.h-center { position: relative; top: auto; margin: 0; padding: 14vh 16px 0; min-height: 100svh; justify-content: center; z-index: 3; }
  .h-copy.h-center > * { max-width: none; }
  .h-runs { position: relative; margin-top: 10px; }
}
/* V8b: стена растворена в фоне. Никакого интерфейса, только текст ответов */
.h-wall .chat-top, .h-wall .composer, .h-wall .geo, .h-wall .avatar, .h-wall .ai-name, .h-wall .scan { display: none !important; }
.h-wall .chat { grid-template-rows: 1fr; opacity: .5; }
.h-wall .chat-body { padding: 0; mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 80%, transparent 100%); }
.h-wall .thread { gap: 18px; }
.h-wall .msg-user { justify-content: flex-start; }
.h-wall .bubble { box-shadow: none; padding: 0; max-width: 100%; border-radius: 0; color: var(--ink3); font-size: 15px; font-weight: 600; }
.h-wall .msg-ai { gap: 0; }
.h-wall .ai-text { color: color-mix(in srgb, var(--ink3) 80%, transparent); font-size: 15px; }
.h-wall .ai-text .head { color: var(--ink3); }
.h-wall .ccards { border-top: 0; }
.h-wall .ccard { border-bottom: 0; padding: 8px 0; grid-template-columns: 24px minmax(0, 1fr); }
.h-wall .ccard .num { color: color-mix(in srgb, var(--ink3) 60%, transparent); }
.h-wall .ccard .co { color: var(--ink2); font-size: 19px; }
.h-wall .ai-text .co { color: var(--ink2); background-image: linear-gradient(color-mix(in srgb, var(--acc) 55%, transparent), color-mix(in srgb, var(--acc) 55%, transparent)); }
.h-wall .rate, .h-wall .rate span, .h-wall .rate b, .h-wall .badge, .h-wall .ccard .line, .h-wall .ccard .src, .h-wall .ai-text .srcs, .h-wall .ai-text .more { color: color-mix(in srgb, var(--ink3) 75%, transparent); }
.h-wall .rate .ic { color: color-mix(in srgb, var(--ink3) 75%, transparent); }
.h-wall .thread.dim { opacity: .3; }
.h-wall::after { background: radial-gradient(ellipse 56% 64% at 50% 50%, var(--bg) 0%, var(--bg) 30%, color-mix(in srgb, var(--bg) 88%, transparent) 55%, color-mix(in srgb, var(--bg) 45%, transparent) 78%, transparent 100%),
  linear-gradient(to bottom, var(--bg) 0%, transparent 16%, transparent 84%, var(--bg) 100%); }

/* V8c: светлее и с объёмом */
.h-center .h-cta { flex-direction: column; gap: 16px; margin-top: 3.4vh; }
.h-center .lede { margin-bottom: 0; }
.h-wall { perspective: 1400px; perspective-origin: 50% 45%; transform-style: preserve-3d; gap: 0 3vw; padding-top: 1vh; }
.h-wall .chat { opacity: .9; }
.h-wall .chat[data-col="0"] { transform-origin: 100% 50%; }
.h-wall .chat[data-col="2"] { transform-origin: 0 50%; }
.h-wall .chat-body { mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 82%, transparent 100%); }
.h-wall .bubble { color: var(--ink2); font-size: 16px; }
.h-wall .ai-text { color: var(--ink3); font-size: 15.5px; }
.h-wall .ai-text .head { color: var(--ink2); }
.h-wall .ccard { padding: 9px 0; }
.h-wall .ccard .num { color: var(--ink3); }
.h-wall .ccard .co { color: var(--ink); font-size: 20px; }
.h-wall .ai-text .co { color: var(--ink); background-image: linear-gradient(var(--acc), var(--acc)); }
.h-wall .rate, .h-wall .rate span, .h-wall .rate b, .h-wall .badge, .h-wall .ccard .line, .h-wall .ccard .src, .h-wall .ai-text .srcs, .h-wall .ai-text .more { color: var(--ink3); }
.h-wall .rate .ic { color: var(--ink3); }
.h-wall .rate b { color: var(--ink2); }
.h-wall .thread.dim { opacity: .45; }
.h-wall::after { z-index: 2; background: radial-gradient(ellipse 46% 56% at 50% 50%, color-mix(in srgb, var(--bg) 84%, transparent) 0%, color-mix(in srgb, var(--bg) 72%, transparent) 40%, color-mix(in srgb, var(--bg) 30%, transparent) 72%, transparent 100%),
  linear-gradient(to bottom, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%); }
.h-copy.h-center { top: calc(64px + 11vh); }
.s-hero .h-center h1 { font-size: clamp(34px, 3.7vw, 58px); }
.h-wall .chat[data-col="1"] { filter: blur(.5px); opacity: .7; }
.h-wall .chat { transform: var(--base); }
.h-wall .chat[data-col="0"] { --base: translateZ(-40px) rotateY(6deg); } .h-wall .chat[data-col="1"] { --base: translateZ(-340px); } .h-wall .chat[data-col="2"] { --base: translateZ(-40px) rotateY(-6deg); }
/* строка вопросов как переход между блоками: прижата к низу сцены, стена не гаснет полностью */
.h-runs { top: auto; bottom: 4vh; }
.h-wall.flat::after { display: none; }
@media (max-width: 760px) { .h-runs { bottom: auto; } }

/* строка вопросов: отдельная полоса между героем и листами */
.s-runs { padding: 9vh 0 10vh; overflow: hidden; }
.s-runs .h-runs { position: static; transform: none !important; }
.s-runs .run-t span { font-size: clamp(20px, 2.4vw, 34px); }
@media (max-width: 760px) { .s-runs { padding: 6vh 0; } .s-runs .h-runs { margin: 0; } }

/* ШАПКА: разделы сайта в системе v8. Прозрачная поверх сцен, после прокрутки подложка с размытием и волосяной линией */
.top { gap: 32px; border-bottom: 1px solid transparent; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.top.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.top .mode { margin-left: auto; flex: none; background: color-mix(in srgb, var(--surf) 80%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); }
.top .mode-b { min-height: 34px; padding: 0 14px; font-size: 14px; color: var(--ink2); }
.top .mode-b[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.top-cta { margin-left: 0; }
@media (max-width: 1020px) { .top .mode { margin-left: auto; } .top .mode-b { padding: 0 11px; font-size: 13.5px; } .top-cta { margin-left: 0; } }
@media (max-width: 560px) { .top .mode { display: none; } .top-cta { margin-left: auto; } }
.nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav a { position: relative; text-decoration: none; color: var(--ink2); font: 600 15px/1 Manrope, system-ui; padding: 8px 0; transition: color .2s; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.top-cta { margin-left: auto; flex: none; display: inline-flex; gap: .28em; }
.burger { display: none; }
@media (max-width: 1020px) {
  .top { gap: 12px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px var(--pad) 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .top.open { background: var(--bg); border-bottom-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top.open .nav { display: flex; }
  .nav a { padding: 15px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 17px; }
  .nav a:first-child { border-top: 0; }
  .nav a::after { display: none; }
  .top-cta { display: inline-flex; margin-left: auto; min-height: 40px; }
  .burger { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
  .burger span { grid-area: 1 / 1; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .burger span:first-child { transform: translateY(-4px); } .burger span:last-child { transform: translateY(4px); }
  .top.open .burger span:first-child { transform: rotate(45deg); } .top.open .burger span:last-child { transform: rotate(-45deg); }
}
@media (max-width: 420px) { .top-cta .x { display: none; } }
/* стена ответов: начало ответа на виду, лента по центру колонки, низ уходит в затухание */
.h-wall { padding-top: 7vh; }
.h-wall .chat-body { mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 70%, transparent 96%); }
.h-wall .thread { justify-content: center; min-height: 100%; }

/* ПРОД: пропуск к содержимому, состояния формы из общего скрипта сайта (assets/app.js) */
.skip { position: absolute; left: 16px; top: -48px; z-index: 60; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-nojs { display: none; grid-column: 1 / -1; padding: 12px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 1.5; background: color-mix(in srgb, #E0A84B 18%, var(--surf)); color: var(--ink); }
.no-js .form-nojs, .no-app .form-nojs { display: block; }
.no-js .form .btn, .no-app .form .btn { display: none; }
.field-err { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; color: #E08484; }
.field.err .input { border-color: #E08484; box-shadow: 0 0 0 4px color-mix(in srgb, #E08484 22%, transparent); }
.check.err input { outline: 2px solid #E08484; outline-offset: 2px; }
.check { flex-wrap: wrap; } .check > span:not(.field-err) { flex: 1; min-width: 0; } .check .field-err { flex-basis: 100%; padding-left: 34px; }
.form-ok, .form-err { padding: 12px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 1.5; }
.form-ok { background: color-mix(in srgb, #7FC4A0 20%, var(--surf)); color: var(--ink); }
.form-err { background: color-mix(in srgb, #E08484 20%, var(--surf)); color: var(--ink); }
.form[aria-busy="true"] .btn { opacity: .7; }
.price { grid-column: 1 / -1; }
