:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --paper-3: #e2d9c8;
  --ink: #15120f;
  --muted: #5f564b;
  --line: rgba(21, 18, 15, 0.14);
  --lapis: #12629e;      /* ссылки и акценты: 5,08 на paper-2, 5,56 на paper */
  --lapis-2: #0f5a92;
  --lapis-ink: #ffffff;
  --tg: #1878bb;         /* кнопки: белый текст 4,73 */
  --tg-2: #156db0;       /* наведение: 5,46 */
  --tg-light: #2aabee;   /* фирменный голубой Telegram, только для свечения и логотипа */
  --live: #1f6b43;
  --radius: 18px;
  --gutter: 20px;
  --head: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--lapis); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

/* ===================== шапка ===================== */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--head);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 22px; height: 22px; background: linear-gradient(135deg, var(--tg-light), var(--tg)); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: transform .5s var(--ease); }
.logo:hover .mark { transform: rotate(90deg); }
.nav { display: none; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); padding: 10px 0; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.dd { position: relative; }
.dd-panel {
  position: absolute; left: -16px; top: 100%; min-width: 250px; padding: 8px; display: grid;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(21, 18, 15, .35);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.dd-panel a { padding: 10px 12px; border-radius: 9px; color: var(--ink); }
.dd-panel a:hover { background: var(--paper); }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; }
.bar-end { display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.04em;
}
.lang:hover { background: var(--paper-2); }

.mnav { position: relative; }
.mnav summary {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; list-style: none;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav .shut, .mnav[open] .open { display: none; }
.mnav[open] .shut { display: block; }
.mnav-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--gutter)));
  display: grid; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(21, 18, 15, .4); animation: drop .2s var(--ease);
}
.mnav-panel a { padding: 13px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.mnav-panel a:hover { background: var(--paper); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===================== кнопки, мелочи ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px; border: 1px solid transparent;
  background: var(--tg); color: var(--lapis-ink);
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s;
  box-shadow: 0 12px 28px -14px rgba(42, 171, 238, .9);
}
.btn:hover { background: var(--tg-2); box-shadow: 0 14px 32px -12px rgba(42, 171, 238, .95); }
.btn:active { transform: scale(0.97); }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn.sm span { display: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--paper-2); }
.btn.light { background: var(--paper); color: var(--ink); box-shadow: none; }
.btn.light:hover { background: #fff; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 18px; height: 18px; }

.kicker { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lapis); }
h1 { font-size: clamp(32px, 8vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(28px, 5vw, 42px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.lead { margin-top: 16px; max-width: 34em; font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); text-wrap: pretty; }
.intro { margin-top: 14px; max-width: 38em; color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions .btn { flex: 1 1 100%; }
.hint { display: none; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.hint .ic { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.badge { display: inline-block; margin-bottom: 12px; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.badge.live { background: #dcebe0; color: var(--live); }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--lapis); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link.muted { color: var(--ink); }
.case-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.facts li { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* ===================== первый экран: сайт собирается ===================== */
.film { --n: 5; --stepH: 42svh; height: calc(100svh + (var(--n) - 1) * var(--stepH)); position: relative; }
.film.static { height: auto; }
.film-stage {
  position: sticky; top: var(--head); height: calc(100svh - var(--head));
  display: grid; grid-template-rows: auto 1fr; gap: 18px; align-content: start; padding-block: 18px 20px;
}
.film.static .film-stage { position: static; height: auto; padding-block: 36px 56px; }
.film .actions .ghost { display: none; }
.film-demo { display: grid; gap: 14px; align-content: start; justify-items: center; min-width: 0; }
.fcap { width: 100%; max-width: 560px; }
.fdots { display: flex; gap: 6px; margin-bottom: 12px; }
.fdots i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background-color .3s; }
.fdots i.on { background: var(--lapis); }
.fs { display: none; }
.fs.on { display: block; animation: capin .35s ease both; }
.fs b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.fs span { display: block; margin-top: 2px; font-size: 16px; color: var(--muted); }
@keyframes capin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.film.static .fs { display: block; margin-top: 8px; }

.win {
  width: 100%; max-width: 560px; justify-self: center; align-self: start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(21, 18, 15, 0.4);
  display: flex; flex-direction: column;
}
.win-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); flex: none; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(21, 18, 15, 0.22); }
.win-url { margin-left: 8px; flex: 1; max-width: 260px; padding: 3px 12px; border-radius: 999px; background: #fff; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-tag { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.win-body { position: relative; display: grid; gap: 12px; padding: 14px; min-height: 270px; align-content: start; }
.caret { position: absolute; left: 20px; top: 20px; width: 2px; height: 24px; background: var(--lapis); animation: blink 1s steps(1) infinite; }
.film:not([data-step="0"]) .caret, .film:not([data-step="0"]) .skel, .film.static .skel { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.skel { position: absolute; inset: 50px 18px 18px; display: grid; gap: 12px; align-content: start; pointer-events: none; }
.skel i { display: block; border-radius: 8px; background: var(--paper-2); opacity: .7; }
.skel .a { width: 55%; height: 14px; }
.skel .b { height: 120px; border-radius: 12px; }
.skel .c { width: 80%; height: 12px; }
.skel .d { width: 40%; height: 12px; }
.m { transition: opacity .45s ease, transform .45s var(--ease); }
.js .film:not(.static) .m:not(.on) { opacity: 0; transform: translateY(12px); }
.m-nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.m-links { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.m-hero {
  position: relative; display: flex; align-items: flex-end; min-height: 150px; padding: 14px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(to top, rgba(10, 8, 6, .72), rgba(10, 8, 6, .05) 70%), var(--photo) center / cover;
  color: #fff;
}
.m-hero h2 { max-width: 9em; font-size: clamp(18px, 3vw, 24px); line-height: 1.1; letter-spacing: -0.02em; }
.m-btn { position: absolute; right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 9px; background: var(--tg); color: #fff; font-size: 13px; font-weight: 600; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-card { padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 500; }
.m-card i { display: block; width: 100%; height: 26px; margin-bottom: 8px; border-radius: 6px; background: var(--paper-2); }
.m-toast {
  position: absolute; right: 12px; top: 58px; display: flex; gap: 10px; align-items: center; max-width: 80%;
  padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 34px -16px rgba(21, 18, 15, 0.45);
}
.m-toast i { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #2aabee; }
.m-toast strong { display: block; font-size: 13px; }
.m-toast span { display: block; font-size: 12px; color: var(--muted); }

/* ===================== 3D-ноутбук ===================== */
.lap-sec { height: 230svh; position: relative; }
.lap-sec.static { height: auto; }
.lap-stage {
  position: sticky; top: var(--head); height: calc(100svh - var(--head));
  display: grid; grid-template-rows: auto 1fr; align-content: start; gap: 8px; padding-block: 22px 12px;
}
.lap-sec.static .lap-stage { position: static; height: auto; padding-block: 48px; }
.lap-copy { position: relative; z-index: 2; }
.lap-scene { z-index: 1; }
.lap-copy .case-links { margin-top: 8px; }
.lap-copy .lead { margin-top: 12px; }
.lap-scene {
  position: relative; display: grid; place-items: center; min-height: 0;
  perspective: 1900px; perspective-origin: 50% 0%;
}
.lap {
  --w: min(700px, 86vw);
  --open: 0; --yaw: 22deg; --tilt: -30deg; --sc: .8; --on: 0; --lift: -.14; --rise: .12;
  position: relative; width: var(--w); height: calc(var(--w) * .625);
  transform-style: preserve-3d;
  transform: translateY(calc(var(--w) * (var(--lift) - var(--rise)))) scale(var(--sc)) rotateX(var(--tilt)) rotateY(var(--yaw));
  transform-origin: 50% 100%;
  will-change: transform;
}
.lap-lid {
  position: absolute; inset: 0; transform-origin: 50% 100%; transform-style: preserve-3d;
  /* закрытая крышка лежит над корпусом на свою толщину: иначе Safari рисует клавиатуру поверх */
  transform: translateY(calc(var(--w) * -.014 * (1 - var(--open)))) rotateX(calc(-90deg + 102deg * var(--open)));
}
.lid-front, .lid-back {
  position: absolute; inset: 0; border-radius: calc(var(--w) * .022) calc(var(--w) * .022) 3px 3px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.lid-front { background: #0c0c0e; padding: 2.4% 2.4% 3.6%; box-shadow: inset 0 0 0 1.5px #3b3d42, 0 0 0 1px #1a1b1e; }
.lid-back {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, #55575d 0%, #33353a 45%, #26272b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  display: grid; place-items: center;
}
.lid-logo { width: 9%; aspect-ratio: 1; background: rgba(255, 255, 255, .22); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.lscreen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .006); background: #000;
  container-type: inline-size;
}
.lscreen::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(1 - var(--on)); pointer-events: none; }
.lf { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.lf.on { opacity: 1; }
.ls-ui { position: absolute; inset: 0; color: #f3eee4; font-family: var(--font); }
.ls-ui::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 8, .72), rgba(12, 10, 8, .05) 55%, rgba(12, 10, 8, .35)); }
.ls-nav { position: absolute; left: 3.4cqw; right: 3.4cqw; top: 2.6cqw; display: flex; align-items: center; gap: 2.6cqw; font-size: 1.3cqw; }
.ls-nav b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2cqw; font-weight: 500; letter-spacing: .06em; }
.ls-nav b span { color: #d6a46a; }
.ls-links { display: flex; gap: 2cqw; opacity: .85; }
.ls-nav em { margin-left: auto; font-style: normal; padding: .9cqw 1.8cqw; border-radius: 99px; background: #f3eee4; color: #15120f; font-weight: 600; }
.ls-hero { position: absolute; left: 3.4cqw; bottom: 6cqw; transition: opacity .4s ease, transform .4s var(--ease); }
.ls-hero small { display: block; font-size: 1.25cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.ls-hero strong { display: block; margin-top: .8cqw; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 7.4cqw; line-height: .95; letter-spacing: -.01em; }
.ls-hero i { color: #d6a46a; }
.lap.f1 .ls-hero { opacity: 0; transform: translateY(1.5cqw); }
.ls-stage { position: absolute; left: 3.4cqw; bottom: 4.4cqw; display: flex; gap: 1.2cqw; align-items: baseline; opacity: 0; transition: opacity .3s; }
.lap.f1 .ls-stage { opacity: 1; }
.ls-n { font-size: 1.7cqw; font-weight: 600; letter-spacing: .08em; color: #d6a46a; }
.ls-t { font-family: "Cormorant Garamond", Georgia, serif; font-size: 4.2cqw; line-height: 1; }
.ls-bar { position: absolute; left: 3.4cqw; right: 3.4cqw; bottom: 2.4cqw; height: .3cqw; background: rgba(243, 238, 228, .25); border-radius: 1cqw; }
.ls-bar i { display: block; height: 100%; width: calc(var(--prog, 0) * 100%); background: #d6a46a; border-radius: inherit; }
.ls-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 38%); opacity: var(--on); }
.lap-base {
  position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--w) * .68);
  transform-origin: 50% 0; transform: rotateX(90deg); transform-style: preserve-3d;
}
.deck {
  position: absolute; inset: 0; border-radius: 3px 3px calc(var(--w) * .03) calc(var(--w) * .03);
  background: linear-gradient(180deg, #3f4146 0%, #34363b 60%, #2e3034 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.keys {
  position: absolute; left: 8.5%; right: 8.5%; top: 8%; height: 44%;
  display: grid; grid-template-columns: repeat(14, 1fr); grid-template-rows: repeat(4, 1fr); gap: calc(var(--w) * .0055);
  padding: calc(var(--w) * .008); border-radius: calc(var(--w) * .008); background: #232427;
}
.keys i { border-radius: calc(var(--w) * .004); background: linear-gradient(#1b1c1f, #141517); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.pad { position: absolute; left: 33%; right: 33%; top: 58%; height: 32%; border-radius: calc(var(--w) * .012); background: linear-gradient(#383a3f, #313338); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.base-front {
  position: absolute; left: 0; right: 0; top: 100%; height: calc(var(--w) * .024);
  transform-origin: 50% 0; transform: rotateX(-90deg);
  background: linear-gradient(#2c2e32, #1a1b1e); border-radius: 0 0 calc(var(--w) * .03) calc(var(--w) * .03);
}
.lap-shadow {
  position: absolute; left: 50%; bottom: 4%; width: calc(var(--w) * 1.05); height: calc(var(--w) * .12); transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(21, 18, 15, .32), transparent); filter: blur(8px); z-index: -1;
}

/* 3D-версия (lap3d.js) рисует ноутбук в canvas и прячет CSS-ноутбук */
.lap-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lap-scene.gl .lap, .lap-scene.gl .lap-shadow { display: none; }
.lap-scene.gl { align-self: stretch; min-height: min(64vw, 440px); }
@media (max-width: 959px) { .lap-scene.gl { align-self: start; height: min(100%, 96vw); } }

/* ===================== секции ===================== */
.sec { padding-block: 64px; border-top: 1px solid var(--line); }

.works { display: grid; gap: 22px; margin-top: 34px; }
.work, .example {
  display: grid; gap: 26px; padding: 26px; border-radius: 26px; background: var(--paper-2);
  align-items: center; overflow: hidden;
}
.work-device { display: grid; place-items: center; }
.work-body p { margin-top: 10px; color: var(--muted); max-width: 32em; }

.phone {
  width: min(100%, 250px); border: 9px solid var(--ink); border-radius: 40px; overflow: hidden; background: var(--ink);
  box-shadow: 0 30px 60px -26px rgba(21, 18, 15, 0.5);
}
.screen { position: relative; aspect-ratio: 9 / 19; overflow: hidden; background: #000; }
.shot { position: absolute; inset: 0; }
.fade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; animation-iteration-count: infinite; animation-timing-function: ease-in-out; animation-fill-mode: backwards; }
.shot[data-n="3"] .fade { animation-name: fade3; animation-duration: 12s; animation-delay: calc(var(--i) * 4s); }
.shot[data-n="5"] .fade { animation-name: fade5; animation-duration: 17.5s; animation-delay: calc(var(--i) * 3.5s); }
@keyframes fade3 { 0% { opacity: 0; } 5%, 30% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes fade5 { 0% { opacity: 0; } 3%, 18% { opacity: 1; } 23%, 100% { opacity: 0; } }

.svcs { display: grid; gap: 14px; margin-top: 32px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(21, 18, 15, .45); border-color: rgba(24, 120, 187, .4); }
.svc-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; background: var(--paper); color: var(--lapis); }
.svc p { color: var(--muted); font-size: 16px; flex: 1; }
.svc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; color: var(--lapis); }
.svc:hover .svc-more .ic { transform: translate(2px, -2px); }
.svc-more .ic { transition: transform .2s var(--ease); }

.faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 880px; }
.q { border-bottom: 1px solid var(--line); }
.q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--lapis); transition: transform .2s; flex: none; }
.q[open] summary::after { transform: rotate(45deg); }
.q p { padding: 0 0 20px; max-width: 40em; color: var(--muted); }

.final { margin-top: 24px; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; right: -260px; top: -320px; width: 760px; height: 760px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(42, 171, 238, .42), rgba(42, 171, 238, 0));
}
.final-in { position: relative; padding-block: 80px; display: grid; gap: 36px; align-items: start; }
.final-copy { display: grid; gap: 18px; }
.final h2 { max-width: 14em; }
.final-copy p { color: rgba(243, 238, 228, 0.78); max-width: 30em; }
@media (min-width: 960px) { .final-in { grid-template-columns: .85fr 1.15fr; gap: 56px; } }

/* форма заявки */
.lead-form { display: grid; gap: 14px; padding: 24px; border-radius: 22px; background: rgba(243, 238, 228, .06); border: 1px solid rgba(243, 238, 228, .14); }
@media (min-width: 640px) { .lead-form { grid-template-columns: 1fr 1fr; padding: 28px; } .lead-form .wide { grid-column: 1 / -1; } }
.fld { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: rgba(243, 238, 228, .86); }
.fld i { font-style: normal; font-weight: 400; color: rgba(243, 238, 228, .55); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(243, 238, 228, .22);
  background: rgba(12, 10, 8, .35); color: var(--paper); font: 400 16px/1.4 var(--font);
}
.fld textarea { resize: vertical; min-height: 90px; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.fld select option { color: #15120f; }
.fld input::placeholder { color: rgba(243, 238, 228, .5); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: #4fb6ee; box-shadow: 0 0 0 3px rgba(79, 182, 238, .3); }
.lead-form [aria-invalid="true"] { border-color: #f08a7a; }
.lead-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.lead-or { color: rgba(243, 238, 228, .55); font-size: 15px; }
@media (max-width: 639px) { .lead-go { flex-direction: column; align-items: stretch; text-align: center; } .lead-go .btn { justify-content: center; } .tg-link { justify-content: center; } }
.tg-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(243, 238, 228, .4); }
.tg-link:hover { text-decoration-color: currentColor; }
.lead-form button[disabled] { opacity: .6; cursor: progress; }
.lead-st { min-height: 1.4em; font-size: 15px; color: rgba(243, 238, 228, .86); }
.lead-st.ok { color: #9fe0a8; font-weight: 600; }
.lead-st.err { color: #ffb4a6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.why { display: grid; gap: 14px; margin-top: 32px; }
.wy { padding: 26px; border-radius: 22px; background: var(--paper-2); }
.wy-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--tg-light), var(--tg)); box-shadow: 0 10px 22px -12px rgba(42, 171, 238, .9); }
.wy p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 30em; }

/* ===================== страницы услуг ===================== */
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.phero { display: grid; gap: 36px; padding-block: 32px 64px; align-items: center; }
.phero-visual { display: grid; place-items: center; min-width: 0; }
.browser {
  width: 100%; max-width: 620px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 34px 70px -30px rgba(21, 18, 15, .5); transform: perspective(1600px) rotateY(-8deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.browser:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.browser img { width: 100%; height: auto; }

.chat { width: min(100%, 380px); border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 34px 70px -30px rgba(21, 18, 15, .5); }
.cm-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cm-ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--tg-light), var(--tg)); color: #fff; font-weight: 700; }
.cm-head b { display: block; }
.cm-head small { color: var(--muted); }
.cm-body { display: grid; gap: 10px; padding: 18px 16px 22px; background: #e7ebe3; }
.cm-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; opacity: 0; animation: pop .45s var(--ease) forwards; }
.cm-msg.in { justify-self: end; background: #dcf7c5; border-bottom-right-radius: 6px; }
.cm-msg.out { justify-self: start; background: #fff; border-bottom-left-radius: 6px; }
.cm-btns { display: flex; gap: 6px; opacity: 0; animation: pop .45s var(--ease) forwards; }
.cm-btns span { flex: 1; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .7); text-align: center; font-size: 14px; font-weight: 600; color: #1d6fb8; }
.cm-body > :nth-child(1) { animation-delay: .3s; }
.cm-body > :nth-child(2) { animation-delay: 1.1s; }
.cm-body > :nth-child(3) { animation-delay: 1.5s; }
.cm-body > :nth-child(4) { animation-delay: 2.4s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.fors { display: grid; gap: 14px; margin-top: 30px; }
.fc { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.fc p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.inc { display: grid; gap: 4px 28px; margin-top: 26px; }
.inc li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.inc .ic { margin-top: 3px; color: var(--lapis); }
.example { margin-top: 30px; }
.bots { display: grid; gap: 14px; margin-top: 30px; }
.bot .badge { align-self: flex-start; }
.bot { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.bot p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.bot .bot-fact { margin-top: auto; padding-top: 16px; color: var(--ink); font-weight: 600; font-size: 15px; }
.steps { display: grid; gap: 22px; margin-top: 32px; }
.step { padding-top: 20px; border-top: 2px solid var(--ink); }
.num { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--lapis); letter-spacing: .04em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.nf { padding-block: 96px 120px; max-width: 760px; }

/* ===================== подвал ===================== */
.foot { background: var(--ink); color: rgba(243, 238, 228, 0.72); font-size: 15px; }
.foot-grid { display: grid; gap: 32px; padding-block: 56px 32px; border-top: 1px solid rgba(243, 238, 228, 0.12); }
.foot .logo { color: var(--paper); }
.foot-brand p { margin-top: 14px; max-width: 24em; }
.foot-h { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 238, 228, .64); margin-bottom: 12px; }
.foot-list { display: grid; gap: 2px; }
.foot-list a { display: inline-flex; min-height: 40px; align-items: center; color: var(--paper); text-decoration: none; }
.foot-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { padding-block: 22px 30px; border-top: 1px solid rgba(243, 238, 228, 0.12); font-size: 14px; }

/* ===================== появление ===================== */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .btn, .m, .svc, .browser, .lf, .ls-hero { transition: none; }
  .fade { animation: none; }
  .fade:first-child { opacity: 1; }
  .caret, .hint .ic { animation: none; }
  .cm-msg, .cm-btns { animation: none; opacity: 1; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 18px; }
  .btn.sm span { display: inline; }
  .actions .btn { flex: 0 0 auto; }
  .film .actions .ghost { display: inline-flex; }
  .win-body { min-height: 330px; padding: 18px; }
  .work, .example { grid-template-columns: 260px 1fr; gap: 44px; padding: 36px; }
  .example.ex-wide { grid-template-columns: 1.2fr 1fr; }
  .ex-wide .browser { transform: none; }
  .svcs { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .fors { grid-template-columns: repeat(3, 1fr); }
  .inc { grid-template-columns: repeat(2, 1fr); }
  .bots { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .svc:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .mnav { display: none; }
  h1 { font-size: clamp(40px, 4.6vw, 54px); }
  .film-stage { grid-template-columns: 1.1fr 1fr; grid-template-rows: none; align-items: center; gap: 56px; }
  .film-copy { align-self: center; }
  .film-demo { align-self: center; }
  .hint { display: flex; }
  .win { max-width: 600px; }
  .win-body { min-height: 380px; }
  .m-hero { min-height: 190px; }
  .lap-stage { grid-template-columns: .8fr 1.2fr; grid-template-rows: none; align-items: center; align-content: center; gap: 24px; }
  .lap { --w: min(640px, 50vw); --lift: -.19; }
  .film { --stepH: 60svh; }
  .lap-sec { height: 290svh; }
  .sec { padding-block: 96px; }
  .works { grid-template-columns: 1fr 1fr; }
  .work { grid-template-columns: 1fr; padding: 40px; }
  .work-device { padding: 10px 0 6px; }
  .phero { grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 48px 96px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}
@media (max-height: 720px) and (max-width: 959px) {
  .film .lead { display: none; }
}
