/* ENGE AI — лендинг. Чёрный стол, белые листы: каждый лист со своим характером.
   Монохром; голубой — только линия ИИ (знак, фронт роста модели). */
:root {
  --bg: #050607;
  --bg-2: #0b0d10;
  --graphite: #111418;
  --line: rgba(240, 242, 240, .08);
  --line-2: rgba(240, 242, 240, .15);
  --line-3: rgba(240, 242, 240, .3);
  --text: #f1f2ef;
  --soft: #b9bdbf;
  --muted: #7d8387;
  --faint: #4d5357;
  --paper: #f4f3ee;
  --paper-2: #e9e7e0;
  --ink: #0d1014;
  --ink-soft: #4a5258;
  --ai: #5fd0d6;
  --dim: #7fb35a;
  --ochre: #c48c55;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  --gut: clamp(20px, 4.5vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; background: var(--bg); overflow-x: hidden; }
::selection { background: rgba(95, 208, 214, .3); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 1px solid var(--ai); outline-offset: 3px; }
.mono, .svg-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--ai) !important; }
.muted { color: var(--muted); }

/* ---------- фон: чёрный стол, мелкая сетка и разбивочные оси (оси рисует JS) ---------- */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(1200px 700px at 78% -10%, rgba(255, 255, 255, .06), transparent 60%), radial-gradient(900px 600px at -10% 40%, rgba(95, 208, 214, .035), transparent 60%),
    linear-gradient(rgba(240, 242, 240, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 242, 240, .025) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.axes-bg { position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; overflow: visible; }
.axes-bg .ax { stroke: rgba(240, 242, 240, .07); stroke-width: 1; stroke-dasharray: 22 5 2 5; fill: none; }
.axes-bg .bub { fill: var(--bg); stroke: rgba(240, 242, 240, .2); stroke-width: 1; }
.axes-bg text { fill: rgba(240, 242, 240, .38); font: 11px var(--mono); text-anchor: middle; dominant-baseline: central; }
.sheet-frame { position: fixed; inset: 10px; border: 1px solid var(--line); pointer-events: none; z-index: 10; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 66px; padding: 0 calc(var(--gut) + 10px);
  background: rgba(5, 6, 7, .72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 15px var(--display); letter-spacing: .06em; }
.top-nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.top .cabinet { margin-left: 8px; }
.top-nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.top-nav a:hover { color: var(--text); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 2px; font: 500 15px var(--sans); text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 255, 255, .08); }
.btn-line { border-color: var(--line-3); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; transform: translateY(-1px); }

/* ---------- общие ---------- */
section { padding: 0 calc(var(--gut) + 10px); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 400 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sheet-no { padding: 3px 8px; border: 1px solid var(--line-3); color: var(--text); letter-spacing: .1em; white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 78px); line-height: 1.03; }
h2 { font-size: clamp(28px, 3.9vw, 56px); line-height: 1.06; }
h3 { font-size: 22px; line-height: 1.25; }
.h1-accent { color: transparent; -webkit-text-stroke: 1.2px var(--text); }
.sheet { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding-top: clamp(96px, 12vw, 180px); position: relative; }
.sheet-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); column-gap: 48px; align-items: end; margin-bottom: 48px; }
.sheet-head .eyebrow { grid-column: 1 / -1; }
.sheet-lead { margin: 0; color: var(--soft); font-size: 17px; }

/* ---------- ЛИСТ 01: модель ---------- */
.hero { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 72px); align-items: start; min-height: min(calc(100svh - 66px), 960px); padding-top: 48px; padding-bottom: 64px; }
.lead { max-width: 520px; margin: 28px 0 36px; font-size: clamp(17px, 1.4vw, 19px); color: var(--soft); }
.lead p { margin: 0 0 10px; } .lead p:last-child { margin: 0; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, max-content); margin: 48px 0 0; border-top: 1px solid var(--line-2); }
.hero-facts div { padding: 14px 22px 0 0; margin-right: 22px; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 0; margin-right: 0; }
.hero-facts dt { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hero-facts dd { margin: 6px 0 0; font: 13px var(--mono); color: var(--text); white-space: nowrap; }

.hero-visual { margin: 46px 0 0; position: relative; } /* верх сцены — вровень с заголовком «Модель» */
.stage { position: relative; aspect-ratio: 1 / 1; max-height: 74svh; width: 100%; border: 1px solid var(--line-2); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 40%, #16191d 0%, #0a0c0e 60%, #050607 100%); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.stage canvas:active { cursor: grabbing; }
.corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--text); z-index: 2; pointer-events: none; }
.corner.tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; } .corner.br { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.stage-top, .stage-bottom { position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 3; pointer-events: none; }
.stage-top { top: 16px; } .stage-bottom { bottom: 16px; }
.stage-top > *, .stage-bottom > * { pointer-events: auto; }
.kinds { display: flex; width: 100%; border: 1px solid var(--line-2); background: rgba(5, 6, 7, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.kinds button { all: unset; cursor: pointer; flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 9px 4px; font: 11.5px var(--mono); letter-spacing: 0; color: var(--muted); border-right: 1px solid var(--line); transition: color .2s, background .2s; }
.kinds button:last-child { border-right: 0; }
.kinds button:hover { color: var(--text); }
.kinds button.on { color: var(--ink); background: var(--paper); }
.kinds button:focus-visible { outline: 1px solid var(--ai); outline-offset: -2px; }
.anim-mode { width: auto; margin-left: auto; }
.anim-mode button { flex: none; padding: 7px 14px; }
.hint { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--muted); pointer-events: none !important; }
.hint svg, .regen svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.regen { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--paper); color: var(--ink); font: 500 13px var(--sans); transition: background .2s, transform .2s var(--ease); }
.regen:hover { background: #fff; transform: translateY(-1px); }
.regen:focus-visible { outline: 1px solid var(--ai); outline-offset: 3px; }
.regen.spin svg { animation: spin .9s var(--ease); }
@keyframes spin { to { transform: rotate(180deg); } }
.stage-fallback { position: absolute; inset: auto 24px 50% 24px; text-align: center; color: var(--muted); }

.stamp { display: grid; grid-template-columns: 1.6fr 1fr 1fr; border: 1px solid var(--line-2); border-top: 0; font-size: 12px; background: rgba(11, 13, 16, .8); }
.stamp-cell { padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.stamp-cell.wide { grid-row: span 2; border-bottom: 0; }
.stamp-cell:nth-child(3), .stamp-cell:nth-child(5) { border-right: 0; }
.stamp-cell:nth-child(4), .stamp-cell:nth-child(5) { border-bottom: 0; }
.stamp-cell span { display: block; font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.stamp-cell b { display: block; margin-top: 4px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stamp-cell.wide b { font: 500 16px var(--display); letter-spacing: -.01em; white-space: normal; }
.stamp-cell b.mono { font: 13px var(--mono); }

/* ---------- ЛИСТ 02: агенты — шесть разных плиток в общей сетке ---------- */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.agent { position: relative; padding: 26px 26px 30px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-height: 320px; display: flex; flex-direction: column; overflow: hidden; transition: background .35s var(--ease), color .35s; }
.agent::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--text); transition: width .5s var(--ease); }
.agent:hover::after { width: 100%; }
.agent-art { position: relative; width: 100%; height: 160px; margin: -6px 0 18px; }
.agent-art svg, .agent-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.agent { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .35s var(--ease); will-change: transform; outline: none; }
.agent.hot { transform: scale(1.045); z-index: 3; box-shadow: 0 34px 90px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-3); }
.agent.hot::after { width: 100%; }
.agent:focus-visible { box-shadow: 0 0 0 1px var(--ai); }
/* рисунки рамок: тушь, линия ИИ, размеры */
.agent-art .k, .agent-art .k2 { fill: none; stroke: var(--text); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-linecap: square; }
.agent-art .k2 { stroke-width: 2; }
.agent-art .w2 { stroke: var(--ai); stroke-width: 2.2; }
.agent-art .d, .agent-art .m { fill: none; stroke: var(--dim); stroke-width: 1; }
.agent-art .mf { fill: rgba(127, 179, 90, .14); stroke: none; }
.agent-art .a { fill: none; stroke: var(--ai); stroke-width: 1.5; }
.agent-art .g { stroke: var(--line-2); stroke-width: 1; } .agent-art .g2 { stroke: var(--line-3); stroke-width: 1; }
.agent-art .x { stroke: var(--ai); stroke-width: .6; stroke-dasharray: 3 3; opacity: .7; } .agent-art .xb { fill: none; stroke: var(--ai); stroke-width: 1; }
.agent-art .bar { fill: var(--ai); opacity: .55; }
.agent-art text { font-family: var(--mono); font-size: 8.5px; fill: var(--soft); }
.agent-art .th, .agent-art .tk { font-size: 6.5px; letter-spacing: .12em; fill: var(--faint); }
.agent-art .tr { fill: var(--text); font-family: var(--sans); font-size: 9px; } .agent-art .tq { fill: var(--muted); }
.agent-art .ts { fill: var(--text); } .agent-art .tt { fill: #fff; font-size: 13px; }
.agent-art .ta { fill: var(--ai); } .agent-art .td { fill: var(--dim); } .agent-art .tc { fill: var(--muted); font-size: 7.5px; } .agent-art .tn { fill: var(--text); font-size: 9px; }
.agent-art .f1 { fill: rgba(240, 242, 240, .1); stroke: var(--text); stroke-width: 1; } .agent-art .f2 { fill: rgba(240, 242, 240, .2); stroke: var(--text); stroke-width: 1; }
.agent-art .f3 { fill: rgba(240, 242, 240, .06); stroke: var(--text); stroke-width: 1; } .agent-art .f4 { fill: rgba(95, 208, 214, .35); stroke: var(--ai); stroke-width: .8; }
.agent-art .p1 { fill: var(--paper); stroke: none; } .agent-art .p2 { fill: #d9d7cf; } .agent-art .p3 { fill: #bdbab1; }
.agent-art .pf { fill: none; stroke: var(--ink); stroke-width: .8; } .agent-art .pst { fill: none; stroke: var(--ink); stroke-width: .7; }
.agent-art .ln { fill: rgba(13, 16, 20, .35); } .agent-art .ln.b { fill: var(--ink); }
.a-docs .agent-art .tn { fill: var(--ink); } .a-docs .agent-art .tk { fill: var(--ink-soft); }
/* CAD — на белом листе: тушь и бирюза потемнее */
.a-cad .agent-art .k, .a-cad .agent-art .k2 { stroke: var(--ink); } .a-cad .agent-art .w2 { stroke: #1d6f78; } .a-cad .agent-art .d { stroke: #3d7a22; }
.a-cad .agent-art .x { stroke: #1d6f78; } .a-cad .agent-art .xb { stroke: #1d6f78; } .a-cad .agent-art .td { fill: #3d7a22; } .a-cad .agent-art .tc { fill: #1d6f78; }
.agent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.agent-head .code { font: 12px var(--mono); color: var(--muted); }
.agent-head em { font: normal 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line-2); }
.agent-head em.ok { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.agent h3 { font-size: 24px; margin-bottom: 10px; }
.agent p { margin: 0; color: var(--soft); font-size: 15px; max-width: 320px; }
/* разные плитки: белый лист, графит, линии */
.a-cad { background: var(--paper); color: var(--ink); }
.a-cad .agent-art .k { stroke: var(--ink); } .a-cad .agent-art .w { stroke: #1d5f6a; opacity: 1; } .a-cad .agent-art .d { stroke: #3d7a22; }
.a-cad p { color: var(--ink-soft); } .a-cad .agent-head .code { color: var(--ink-soft); } .a-cad .agent-head em.ok { background: var(--ink); color: var(--paper); border-color: var(--ink); } .a-cad::after { background: var(--ink); }
.a-est { background: var(--graphite); }
.a-design { background: radial-gradient(120% 90% at 80% 0%, rgba(255, 255, 255, .07), transparent 60%); }
.a-calc, .a-bim { background: repeating-linear-gradient(135deg, rgba(240, 242, 240, .025) 0 1px, transparent 1px 10px); }
.a-docs { background: var(--graphite); }
.agent:not(.a-cad):hover { background-color: rgba(255, 255, 255, .035); }

/* ---------- ЛИСТ 03: графитовая панель сметы ---------- */
.estimate { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); border: 1px solid var(--line-2); background: var(--graphite); }
.est-table { padding: 8px 24px 16px; overflow: auto; }
.est-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.est-table th { padding: 16px 0 10px; text-align: left; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line-2); }
.est-table td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--soft); }
.est-table td:first-child { color: var(--text); }
.est-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; padding-left: 16px; white-space: nowrap; }
.est-table tbody tr { animation: rowin .5s var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateX(-8px); } }
.est-total { display: flex; flex-direction: column; border-left: 1px solid var(--line-2); padding: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 40%); }
.est-total dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.est-total dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.est-total dt { font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.est-total dd { margin: 4px 0 0; font-size: 18px; }
.grand { margin-top: auto; padding-top: 28px; }
.grand span { display: block; font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.grand b { display: block; margin-top: 6px; font: 500 clamp(30px, 3.4vw, 46px)/1 var(--mono); letter-spacing: -.03em; color: #fff; }
.note { margin: 16px 0 0; color: var(--faint); font-size: 12px; }

/* ---------- ЛИСТ 04: скорость — крупные цифры ---------- */
.speed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.speed li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 260px; align-items: center; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.sp-task b { display: block; font: 500 19px var(--sans); }
.sp-task span { color: var(--muted); font-size: 14px; }
.sp-bar { height: 2px; background: var(--line); position: relative; }
.sp-bar i { position: absolute; left: 0; top: -1px; height: 4px; width: 0; background: var(--text); transition: width 1.4s var(--ease); }
.speed li.in .sp-bar i { width: var(--w); }
.speed li.live .sp-bar i { background: var(--ai); box-shadow: 0 0 12px rgba(95, 208, 214, .6); }
.sp-bar.ghost { background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.sp-time { text-align: right; font: 400 clamp(26px, 2.6vw, 40px)/1 var(--mono); letter-spacing: -.03em; white-space: nowrap; }
.sp-time.small { font-size: 18px; color: var(--soft); }
.footnote { margin: 20px 0 0; color: var(--faint); font: 12px var(--mono); }

/* ---------- ЛИСТ 05: масштаб — белые линии на чёрном ---------- */
.scale { border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }
.scale-svg { display: block; width: 100%; height: auto; padding: 28px 16px 0; }
.scale-svg .ink { stroke: rgba(241, 242, 239, .85); }
.scale-svg .thin { stroke: rgba(241, 242, 239, .28); }
.scale-svg .cell { fill: rgba(95, 208, 214, .14); stroke: var(--ai); }
.scale-svg .dim { stroke: var(--dim); }
.scale-svg .dim-text { fill: var(--dim); font-size: 13px; }
.scale-svg .ground-line { stroke: var(--text); }
.scale-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.scale-legend li { padding: 20px 22px 24px; border-right: 1px solid var(--line); }
.scale-legend li:last-child { border-right: 0; }
.scale-legend b { display: block; font: 500 16px var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
.scale-legend span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- ЛИСТ 06: услуги + белая карточка для застройщиков ---------- */
.services { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.legend { list-style: none; margin: 0; padding: 0; }
.legend li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line-2); transition: padding .3s var(--ease); }
.legend li:first-child { border-top: 1px solid var(--line-2); }
.legend li:hover { padding-left: 8px; }
.legend .code { font: 13px var(--mono); color: var(--muted); }
.legend .name { font-size: 18px; }
.legend .fmt { font: 12px var(--mono); color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.dev { position: relative; padding: 34px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.dev::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(13, 16, 20, .35); pointer-events: none; }
.dev .eyebrow { color: var(--ink-soft); }
.dev h3 { margin-bottom: 14px; }
.dev p { color: var(--ink-soft); margin: 0 0 22px; }
.soon { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(13, 16, 20, .2); }
.soon li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(13, 16, 20, .12); font-size: 14px; }
.soon em { font: normal 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #9a5a1e; white-space: nowrap; }

/* ---------- ЛИСТ 07: заявка — белый штамп ---------- */
.sheet-paper .titleblock { background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.titleblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ink); position: relative; outline: 14px solid var(--paper); outline-offset: 0; margin: 14px; }
.tb-cell { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-right: 1px solid rgba(13, 16, 20, .3); border-bottom: 1px solid rgba(13, 16, 20, .3); min-width: 0; }
.tb-cell > span { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.tb-name { grid-column: span 2; } .tb-phone { grid-column: span 2; border-right: 0; }
.tb-kind, .tb-area { grid-column: span 1; } .tb-note { grid-column: span 2; border-right: 0; }
.tb-send { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; border: 0; padding: 18px; }
.titleblock input, .titleblock select, .titleblock textarea { width: 100%; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink); font: 500 19px var(--sans); padding: 2px 0 4px; outline: none; resize: vertical; transition: border-color .2s; }
.titleblock select { appearance: none; cursor: pointer; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234a5258' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 2px center; }
.titleblock input::placeholder, .titleblock textarea::placeholder { color: #5b6166; font-weight: 500; }
.titleblock select option { background: #111418; color: #f1f2ef; font-weight: 400; }
.titleblock input:focus, .titleblock select:focus, .titleblock textarea:focus { border-bottom-color: var(--ink); }
.tb-cell:focus-within > span { color: var(--ink); }
.tb-cell.bad > span { color: #b4561c; }
.consent { margin: 0; font-size: 12px; color: var(--ink-soft); max-width: 460px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 0 18px; font: 13px var(--mono); color: var(--ink-soft); }
.form-status:not(:empty) { padding: 0 18px 18px; }
.form-status.ok { color: #3d7a22; } .form-status.err { color: #b4561c; }

/* ---------- штамп: вариант — кнопка ---------- */
.variant { all: unset; cursor: pointer; display: block; margin-top: 4px; font: 13px var(--mono); color: var(--text); border-bottom: 1px dashed var(--line-3); }
.variant:hover { color: #fff; border-bottom-color: var(--text); }
.variant:focus-visible { outline: 1px solid var(--ai); outline-offset: 2px; }

/* ---------- Энжи: маленькая карточка внизу справа; начали печатать — раскрывается ---------- */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 50; font-family: var(--sans); }
.chat-card { width: 340px; background: rgba(13, 15, 18, .94); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--line-2); box-shadow: 0 24px 70px rgba(0, 0, 0, .65); transition: width .35s var(--ease); animation: chatin .6s var(--ease) 1.2s both; }
@keyframes chatin { from { opacity: 0; transform: translateY(14px); } }
.chat.open .chat-card { width: 340px; }
.chat-body { display: grid; grid-template-rows: auto 1fr auto; height: 0; overflow: hidden; transition: height .4s var(--ease); }
.chat.open .chat-body { height: min(240px, calc(100svh - 150px)); }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--line); }
.chat-who { display: flex; align-items: center; gap: 9px; }
.chat-who span { font: 11px var(--mono); letter-spacing: .06em; color: var(--muted); }
.chat-online { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #36c48a; box-shadow: 0 0 0 3px rgba(54, 196, 138, .15); }
.chat-close { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; font-size: 20px; color: var(--muted); }
.chat-close:hover { color: var(--text); }
.chat-close:focus-visible { outline: 1px solid var(--ai); }
.chat-hello { display: flex; align-items: center; gap: 9px; padding: 8px 12px 6px; cursor: text; font-size: 12.5px; line-height: 1.35; color: var(--text); }
.chat.open .chat-hello { display: none; }
.chat-log { overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; min-height: 0; }
.msg { max-width: 86%; animation: msgin .3s var(--ease); }
@keyframes msgin { from { opacity: 0; transform: translateY(6px); } }
.msg p { margin: 0; padding: 8px 11px; font-size: 13px; line-height: 1.45; }
.msg.bot p { background: var(--graphite); border: 1px solid var(--line-2); color: var(--text); }
.msg.me { align-self: flex-end; }
.msg.me p { background: var(--paper); color: var(--ink); }
.msg.typing { display: inline-flex; gap: 4px; padding: 13px 14px; background: var(--graphite); border: 1px solid var(--line-2); width: max-content; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.chat-chips:empty { display: none; }
.chip { all: unset; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line-3); font: 12px var(--sans); color: var(--soft); transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.chip:focus-visible { outline: 1px solid var(--ai); }
.chat-form { display: flex; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 13px var(--sans); padding: 8px 12px; outline: none; }
.chat-form input::placeholder { color: var(--faint); }
.chat-send { all: unset; cursor: pointer; width: 23px; margin: 5px 6px 5px 0; display: grid; place-items: center; color: var(--ink); background: var(--paper); }
.chat-send svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-send:hover { background: #fff; }
.chat-send:focus-visible { outline: 1px solid var(--ai); outline-offset: -3px; }
@media (max-width: 760px) {
  .chat { right: 10px; left: 10px; bottom: 10px; }
  .chat-card, .chat.open .chat-card { width: 100%; }
  .chat.open .chat-body { height: min(46svh, 300px); }
}

/* ---------- согласие при первом входе (152-ФЗ) ---------- */
.consent-bar { position: fixed; left: 22px; bottom: 22px; z-index: 60; width: min(520px, calc(100vw - 44px)); display: flex; gap: 18px; align-items: center; padding: 16px 18px; background: rgba(13, 15, 18, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line-2); box-shadow: 0 24px 70px rgba(0, 0, 0, .65); animation: chatin .5s var(--ease) .4s both; }
.consent-bar[hidden] { display: none; }
.consent-bar p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--soft); }
.consent-bar a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.consent-bar .btn { flex: none; height: 42px; padding: 0 20px; }
.consent-need { outline: 1px solid var(--ai); outline-offset: 4px; }
@media (max-width: 760px) { .consent-bar { left: 10px; right: 10px; bottom: 120px; width: auto; flex-direction: column; align-items: stretch; } }

/* ---------- страница документа (политика) ---------- */
.doc .doc-back { margin-left: auto; }
.doc-body { max-width: 820px; margin: 0 auto; padding: 64px calc(var(--gut) + 10px) 40px; }
.doc-body h1 { font-size: clamp(22px, 3.4vw, 42px); line-height: 1.15; margin-bottom: 32px; overflow-wrap: break-word; hyphens: auto; }
.doc-body h2 { font-size: 18px; margin: 34px 0 10px; }
.doc-body p, .doc-body li { color: var(--soft); font-size: 16px; }
.doc-body ul { padding-left: 20px; }
.doc-body mark { background: rgba(196, 140, 85, .18); color: var(--text); padding: 0 4px; }

/* ---------- подвал ---------- */
.foot a.policy { color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: calc(var(--max) + 2 * var(--gut)); margin: clamp(96px, 10vw, 150px) auto 0; padding: 28px calc(var(--gut) + 10px) 40px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }

/* ---------- появление ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.speed li.reveal:nth-child(2), .legend li.reveal:nth-child(2) { transition-delay: .06s; }
.speed li.reveal:nth-child(3), .legend li.reveal:nth-child(3) { transition-delay: .12s; }
.speed li.reveal:nth-child(4), .legend li.reveal:nth-child(4) { transition-delay: .18s; }
.speed li.reveal:nth-child(5), .legend li.reveal:nth-child(5) { transition-delay: .24s; }
.speed li.reveal:nth-child(6), .legend li.reveal:nth-child(6) { transition-delay: .3s; }
.hero-text > * { animation: rise .9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; } .hero-text > :nth-child(3) { animation-delay: .16s; } .hero-text > :nth-child(4) { animation-delay: .24s; } .hero-text > :nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: rise 1.1s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- планшет и телефон ---------- */
@media (max-width: 1080px) {
  .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .hero-visual { margin-top: 0; }
  .stage { max-height: none; }
  .services, .estimate { grid-template-columns: 1fr; }
  .est-total { border-left: 0; border-top: 1px solid var(--line-2); }
  .scale-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scale-legend li:nth-child(2) { border-right: 0; } .scale-legend li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .agents { grid-template-columns: 1fr; } .agent { min-height: 0; }
  .sheet-frame { inset: 5px; }
  .top { height: 58px; padding: 0 18px; gap: 8px; } .top-nav { display: none; } .top .cabinet { margin-left: auto; } .top .btn { padding: 0 12px; }
  section { padding: 0 18px; }
  .hero { padding-top: 26px; gap: 32px; }
  .hero-facts { grid-template-columns: 1fr; } .hero-facts div { border-right: 0; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .sheet-head { grid-template-columns: 1fr; row-gap: 16px; margin-bottom: 30px; }
  .kinds button { padding: 8px 2px; font-size: 10px; letter-spacing: 0; }
  .stage-bottom .hint { display: none; } .stage-bottom { justify-content: flex-end; }
  .stamp { grid-template-columns: 1fr 1fr; } .stamp-cell.wide { grid-column: 1 / -1; grid-row: auto; border-bottom: 1px solid var(--line); border-right: 0; }
  .stamp-cell:nth-child(2), .stamp-cell:nth-child(4) { border-right: 1px solid var(--line); } .stamp-cell:nth-child(3) { border-right: 0; }
  .speed li { grid-template-columns: 1fr auto; gap: 10px 16px; } .sp-bar { grid-column: 1 / -1; grid-row: 2; } .sp-time { font-size: 26px; }
  .scale-svg { padding: 12px 4px 0; }
  .scale-legend { grid-template-columns: 1fr; } .scale-legend li { border-right: 0; border-bottom: 1px solid var(--line); }
  .legend li { grid-template-columns: 48px minmax(0, 1fr); } .legend .fmt { grid-column: 2; }
  .dev { padding: 26px 22px; }
  .est-table { padding: 4px 16px 12px; } .est-table th:nth-child(2), .est-table td:nth-child(2) { display: none; }
  .titleblock { grid-template-columns: 1fr 1fr; margin: 10px; outline-width: 10px; }
  .tb-name, .tb-phone, .tb-note { grid-column: 1 / -1; border-right: 0; }
  .tb-kind { border-right: 1px solid rgba(13, 16, 20, .3); }
  .tb-send { flex-direction: column; align-items: stretch; }
}

/* плашка согласия и чат не громоздятся: пока согласие не принято, Энжи ждёт */
body.consent-pending .chat { display: none; }
.brand, .top .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .top .btn-solid.btn-sm { display: none; }
  .top .cabinet { margin-left: auto; }
  .consent-bar { bottom: 10px; padding: 14px; gap: 12px; }
  .consent-bar p { font-size: 12.5px; }
  .consent-bar .btn { height: 40px; }
}

/* ---------- Полосы прокрутки и выпадающие списки — в стиле сайта (оператор 06.11) ---------- */
html { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: rgba(240, 242, 240, .2) transparent; }
*:hover { scrollbar-color: rgba(240, 242, 240, .34) transparent; }
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select !important; }
  select { display: flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  select::picker-icon { display: none; } /* своя стрелка уже нарисована фоном */
  ::picker(select) {
    margin-top: 6px; padding: 4px; min-width: anchor-size(width); max-height: min(340px, 50dvh); overflow-y: auto;
    border: 1px solid var(--line-2); border-radius: 0; background: #0b0d10; color: var(--soft); box-shadow: 0 22px 60px rgba(0, 0, 0, .65);
    opacity: 0; translate: 0 -4px; transition: opacity .16s var(--ease), translate .16s var(--ease), display .16s allow-discrete, overlay .16s allow-discrete;
  }
  select:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { select:open::picker(select) { opacity: 0; translate: 0 -4px; } }
  select option { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--soft); font: 400 15px var(--sans); cursor: pointer; }
  select option:hover, select option:focus-visible { background: rgba(240, 242, 240, .07); color: var(--text); outline: none; }
  select option:checked { color: var(--text); font-weight: 500; }
  select option::checkmark { order: 2; margin-left: auto; content: ""; width: 6px; height: 6px; background: var(--ai); }
  select optgroup { padding: 6px 0 2px; }
  select optgroup legend { padding: 6px 14px 4px; font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
}
.sp-task .sp-count { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; color: var(--soft); font-size: 15px; }
.sp-task .sp-count b { display: inline; font: 600 26px/1 var(--mono); letter-spacing: -.02em; color: var(--ai); }
.titleblock select { resize: none; }
@media (max-width: 760px) {
  /* телефон: Энжи — одна строка ввода внизу, приветствие и лента — при раскрытии */
  .chat:not(.open) .chat-hello { display: none; }
  .chat { padding-bottom: env(safe-area-inset-bottom); }
  .chat input { font-size: 16px; }
  body { padding-bottom: 64px; }
}

/* ---------- Плотная вёрстка (оператор 06.11): без пустых ям, наполнение то же ---------- */
.sheet { padding-top: clamp(56px, 6vw, 96px); }
.sheet-head { column-gap: 40px; margin-bottom: 28px; }
@media (min-width: 1081px) { .sheet-head { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); } }
h2 { font-size: clamp(26px, 3.2vw, 46px); line-height: 1.05; }
.sheet-lead { font-size: 16px; line-height: 1.55; }
.hero { min-height: 0; padding-bottom: 0; }
.lead { margin: 22px 0 28px; }
.hero-facts { margin-top: 32px; }
.agent { min-height: 0; padding: 22px 22px 24px; }
.agent-art { height: 140px; margin: -4px 0 14px; }
.agent h3 { font-size: 22px; margin-bottom: 8px; }
.agent p { font-size: 14.5px; line-height: 1.5; }
.est-table td { padding: 9px 0; }
.est-total { justify-content: space-between; gap: 18px; padding: 20px 22px; }
.speed li { padding: 18px 0; }
.sp-task b { font-size: 18px; }
.footnote { margin-top: 14px; }
.scale-svg { padding-top: 10px; }
.services { gap: 40px; }
.legend li { padding: 13px 0; }
.legend .name { font-size: 17px; }
@media (max-width: 760px) {
  .sheet { padding-top: 52px; }
  .sheet-head { grid-template-columns: 1fr; margin-bottom: 22px; row-gap: 12px; }
  .legend .name { font-size: 16px; line-height: 1.4; }
  .agent { padding: 18px 18px 20px; }
  .agent-art { height: 120px; margin-bottom: 10px; }
  .speed li { padding: 14px 0; }
  .legend li { padding: 11px 0; gap: 4px 12px; }
  .est-total { padding: 18px 16px; }
}
/* «Масштаб»: подписи колонкой слева — занимают пустое небо над низкими домами; заголовок во всю ширину */
#scale .sheet-head h2 { grid-column: 1 / -1; }
@media (min-width: 1081px) {
  .scale { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; }
  .scale-legend { order: -1; grid-template-columns: 1fr; border-top: 0; border-right: 1px solid var(--line-2); }
  .scale-legend li { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px 18px; }
  .scale-legend li:last-child { border-bottom: 0; }
  .scale-svg { align-self: end; padding: 16px 16px 0; }
}
/* Бренд крупнее и выделение текста первого экрана (оператор 06.11) */
.top .brand { gap: 13px; font: 700 21px var(--display); letter-spacing: .05em; }
.top .brand img { width: 34px; height: 34px; }
.lead { max-width: 560px; }
.lead p { color: var(--soft); }
.lead .lead-first { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--text); margin-bottom: 14px; }
.lead-brand { font: 600 1.02em var(--display); letter-spacing: .03em; color: #fff; white-space: nowrap; }
.lead .lead-claim { margin-top: 16px; padding-left: 16px; border-left: 2px solid var(--ai); color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .top .brand { font-size: 19px; } .top .brand img { width: 30px; height: 30px; } }
