@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:400; font-display:swap; src:url("/fonts/fira-sans-400-cyrillic.woff2") format("woff2"); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:400; font-display:swap; src:url("/fonts/fira-sans-400-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:500; font-display:swap; src:url("/fonts/fira-sans-500-cyrillic.woff2") format("woff2"); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:500; font-display:swap; src:url("/fonts/fira-sans-500-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:600; font-display:swap; src:url("/fonts/fira-sans-600-cyrillic.woff2") format("woff2"); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:600; font-display:swap; src:url("/fonts/fira-sans-600-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:700; font-display:swap; src:url("/fonts/fira-sans-700-cyrillic.woff2") format("woff2"); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:700; font-display:swap; src:url("/fonts/fira-sans-700-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:800; font-display:swap; src:url("/fonts/fira-sans-800-cyrillic.woff2") format("woff2"); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:800; font-display:swap; src:url("/fonts/fira-sans-800-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:900; font-display:swap; src:url("/fonts/fira-sans-900-cyrillic.woff2") format("woff2"); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:"Fira Sans"; font-style:normal; font-weight:900; font-display:swap; src:url("/fonts/fira-sans-900-latin.woff2") format("woff2"); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Дизайн-код «Воздух»: лендинг продукта. Светлая тема основная, тёмная по системе или переключателю.
   Значения токенов те же, что в дизайн-системе «Воздух». */
:root {
  --bg:#fbfdfe; --surface:#ffffff; --surface-soft:#f5f8f9; --glass:rgba(255,255,255,.72);
  --line:rgba(30,42,48,.08); --line-strong:#e6ecee; --glass-edge:rgba(255,255,255,.9);
  --ink:#1e2a30; --muted:#5d7380;
  --accent:#57c6e1; --accent-2:#7ac5d8; --accent-ink:#267592; --accent-strong:#267592; --on-accent:#ffffff; --accent-soft:#e1f4fa;
  --pink:#f3a6cf; --violet:#b49fda; --grad-a:#e46fae; --grad-b:#2a9cc2; --grad-c:#6f7fe0;
  --mesh-1:#eea2c2; --mesh-2:#c8aad6; --mesh-3:#57c6e1; --mesh-4:#7ac5d8; --mesh-5:#b49fda; --mesh-light:rgba(255,255,255,.35);
  --orb-blue:#bfeaf5; --orb-pink:#f7d3e6; --orb-lilac:#e1d8f5; --orb-mint:#d6f0e0; --orb-op:.55;
  --product-kp:#1a7f57; --on-product-kp:#ffffff; --product-kp-soft:#dff3e9;
  --ok:#15803d; --focus:#267592; --bolt:#f5b301;
  --shadow-sm:0 0 0 1px rgba(52,52,52,.07);
  --shadow-md:0 0 0 1px rgba(52,52,52,.07),0 12px 32px -16px rgba(52,52,52,.10);
  --shadow-glass:0 1px 1px rgba(30,42,48,.04),0 8px 24px rgba(30,42,48,.06),0 30px 60px -20px rgba(42,156,194,.22);
  --shadow-btn:0 5px 8px rgba(119,119,186,.15);
  --radius-sm:12px; --radius-md:18px; --radius-lg:24px; --radius-xl:36px;
  --font:"Fira Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  --w:1200px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg:#0d141b; --surface:#151f28; --surface-soft:#1a2631; --glass:rgba(21,31,40,.62);
  --line:rgba(255,255,255,.09); --line-strong:#2a3a47; --glass-edge:rgba(255,255,255,.06);
  --ink:#eef4f7; --muted:#9fb2bd;
  --accent-ink:#7fd3ea; --accent-strong:#57c6e1; --on-accent:#08202a; --accent-soft:#163644;
  --grad-a:#f08cc0; --grad-b:#57c6e1; --grad-c:#9aa5f0;
  --mesh-1:#7a3d63; --mesh-2:#5b4a7c; --mesh-3:#1f6f8a; --mesh-4:#2a6577; --mesh-5:#4b3f86; --mesh-light:rgba(255,255,255,.12);
  --orb-blue:#1b4a5c; --orb-pink:#4f2741; --orb-lilac:#352d58; --orb-mint:#1d4634; --orb-op:.5;
  --product-kp:#3fcf8e; --on-product-kp:#0b2a1e; --product-kp-soft:#173a2c;
  --ok:#4ade80; --focus:#7fd3ea;
  --shadow-sm:0 0 0 1px rgba(255,255,255,.08);
  --shadow-md:0 0 0 1px rgba(255,255,255,.08),0 12px 32px -16px rgba(0,0,0,.5);
  --shadow-glass:0 1px 1px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.35),0 30px 60px -20px rgba(87,198,225,.18);
  --shadow-btn:0 6px 14px rgba(0,0,0,.4);
  color-scheme:dark;
} }
:root[data-theme="dark"] {
  --bg:#0d141b; --surface:#151f28; --surface-soft:#1a2631; --glass:rgba(21,31,40,.62);
  --line:rgba(255,255,255,.09); --line-strong:#2a3a47; --glass-edge:rgba(255,255,255,.06);
  --ink:#eef4f7; --muted:#9fb2bd;
  --accent-ink:#7fd3ea; --accent-strong:#57c6e1; --on-accent:#08202a; --accent-soft:#163644;
  --grad-a:#f08cc0; --grad-b:#57c6e1; --grad-c:#9aa5f0;
  --mesh-1:#7a3d63; --mesh-2:#5b4a7c; --mesh-3:#1f6f8a; --mesh-4:#2a6577; --mesh-5:#4b3f86; --mesh-light:rgba(255,255,255,.12);
  --orb-blue:#1b4a5c; --orb-pink:#4f2741; --orb-lilac:#352d58; --orb-mint:#1d4634; --orb-op:.5;
  --product-kp:#3fcf8e; --on-product-kp:#0b2a1e; --product-kp-soft:#173a2c;
  --ok:#4ade80; --focus:#7fd3ea;
  --shadow-sm:0 0 0 1px rgba(255,255,255,.08);
  --shadow-md:0 0 0 1px rgba(255,255,255,.08),0 12px 32px -16px rgba(0,0,0,.5);
  --shadow-glass:0 1px 1px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.35),0 30px 60px -20px rgba(87,198,225,.18);
  --shadow-btn:0 6px 14px rgba(0,0,0,.4);
  color-scheme:dark;
}

*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:var(--font); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
a { color:var(--accent-ink); }
:focus-visible { outline:2px solid var(--focus); outline-offset:2px; border-radius:6px; }

/* Фон: сферы и точки */
.orbs { position:fixed; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.orb { position:absolute; border-radius:50%; filter:blur(70px); opacity:var(--orb-op); transition:background 1.2s ease; }
.o1 { width:46vmax; height:46vmax; left:-12vmax; top:-16vmax; background:var(--orb-blue); animation:d1 22s ease-in-out infinite; }
.o2 { width:40vmax; height:40vmax; right:-14vmax; top:20vmax; background:var(--orb-pink); animation:d2 26s ease-in-out infinite; }
.o3 { width:36vmax; height:36vmax; left:22vmax; bottom:-20vmax; background:var(--orb-mint); animation:d3 30s ease-in-out infinite; }
@keyframes d1 { 50% { translate:6vmax 4vmax; } }
@keyframes d2 { 50% { translate:-5vmax 6vmax; } }
@keyframes d3 { 50% { translate:4vmax -5vmax; } }
.dots { position:fixed; inset:0; z-index:0; pointer-events:none; background-image:radial-gradient(color-mix(in srgb,var(--ink) 10%,transparent) 1px,transparent 1px); background-size:26px 26px; -webkit-mask-image:radial-gradient(ellipse at center,transparent 35%,#000 90%); mask-image:radial-gradient(ellipse at center,transparent 35%,#000 90%); }

.wrap { position:relative; z-index:1; width:100%; max-width:var(--w); margin-inline:auto; padding-left:max(24px, env(safe-area-inset-left,0px)); padding-right:max(24px, env(safe-area-inset-right,0px)); }

/* Шапка */
.top { display:flex; align-items:center; gap:16px; padding-block:22px; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); }
.mark { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; color:var(--bolt); background:var(--surface); box-shadow:var(--shadow-sm); }
.mark svg, .mark img { width:20px; height:20px; }
.brand b { font-size:18px; font-weight:800; line-height:1.1; display:block; }
.brand small { display:block; font-size:11px; color:var(--muted); }
.nav { margin-left:auto; display:flex; align-items:center; gap:6px; }
.nav a { padding:8px 12px; border-radius:10px; font-size:15px; font-weight:600; color:var(--ink); text-decoration:none; }
.nav a:hover { background:var(--surface-soft); }
.theme { width:40px; height:40px; border:0; border-radius:12px; display:grid; place-items:center; cursor:pointer; color:var(--ink); background:var(--surface); box-shadow:var(--shadow-sm); }
.theme svg { width:18px; height:18px; }
.theme .sun, .theme .moon { display:none; }
:root[data-theme] .theme .auto { display:none; }
:root[data-theme="light"] .theme .sun, :root[data-theme="dark"] .theme .moon { display:block; }

/* Первый экран: mesh */
.hero { position:relative; overflow:hidden; color:#fff; border-radius:var(--radius-xl); padding:64px 56px 56px;
  background:linear-gradient(-45deg,var(--mesh-1),var(--mesh-2),var(--mesh-3),var(--mesh-4),var(--mesh-5),var(--mesh-3),var(--mesh-1)); background-size:400% 400%; animation:mesh 18s ease infinite;
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:40px; align-items:center; }
.hero::before { content:""; position:absolute; inset:0; background:radial-gradient(60% 60% at 75% 30%,var(--mesh-light),transparent 70%); pointer-events:none; }
.hero > * { position:relative; min-width:0; }
@keyframes mesh { 0%,100% { background-position:0% 40%; } 50% { background-position:100% 60%; } }
.pill { display:inline-flex; align-items:center; gap:9px; padding:7px 14px; border-radius:999px; font-size:12px; font-weight:700; letter-spacing:2px; text-transform:uppercase; border:1px solid rgba(255,255,255,.5); background:rgba(255,255,255,.14); backdrop-filter:blur(8px); }
.pill svg { width:14px; height:14px; }
.hero h1 { margin:22px 0 0; font-size:clamp(32px,4.6vw,56px); font-weight:900; line-height:1.06; letter-spacing:-.015em; text-wrap:balance; text-shadow:0 2px 30px rgba(60,40,120,.18); }
.rot-line { display:block; min-height:1.12em; white-space:nowrap; }
.rot { display:inline-block; min-height:1.06em; white-space:nowrap; padding:0 .22em; border-radius:14px; background:rgba(255,255,255,.2); box-shadow:inset 0 0 0 1px rgba(255,255,255,.45); }
.hero .lead { margin:18px 0 0; max-width:560px; font-size:clamp(16px,1.6vw,19px); line-height:1.6; opacity:.94; }
.hero .acts { display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.hero-stack { display:flex; flex-direction:column; gap:14px; }
.float { animation:float 7s ease-in-out infinite; }
.float.late { animation-delay:-3.5s; }
@keyframes float { 50% { translate:0 -8px; } }

/* Кнопки */
.btn { display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:0 22px; border:0; border-radius:var(--radius-sm); font:600 16px/1.2 var(--font); text-decoration:none; cursor:pointer; transition:transform .25s ease, box-shadow .25s ease; box-shadow:var(--shadow-btn); }
.btn:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn svg { width:18px; height:18px; flex:none; }
.btn-strong { background:var(--accent-strong); color:var(--on-accent); }
.btn-kp { background:var(--product-kp); color:var(--on-product-kp); }
.btn-on-mesh { background:rgba(255,255,255,.16); color:#fff; box-shadow:inset 0 0 0 1px rgba(255,255,255,.55); backdrop-filter:blur(8px); }
.btn-white { background:#fff; color:#1e2a30; }

/* Стекло */
.card { position:relative; background:var(--glass); -webkit-backdrop-filter:blur(18px) saturate(1.3); backdrop-filter:blur(18px) saturate(1.3); border:1px solid var(--glass-edge); border-radius:var(--radius-lg); box-shadow:var(--shadow-glass); }
.card::after { content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px var(--line); pointer-events:none; }

/* Мини-макеты на первом экране */
.mini { padding:14px 16px; color:var(--ink); }
.mini-row { display:flex; align-items:center; gap:10px; font-size:13px; }
.mini-row i { width:28px; height:28px; flex:none; border-radius:50%; display:grid; place-items:center; font-style:normal; font-weight:700; font-size:12px; color:var(--on-accent); background:var(--accent-strong); }
.mini-row i.kp { color:var(--on-product-kp); background:var(--product-kp); border-radius:9px; }
.mini-row b { display:block; font-size:13.5px; }
.mini-row small { display:block; color:var(--muted); font-size:12px; }
.mini-row .t { margin-left:auto; font-size:11px; color:var(--muted); white-space:nowrap; }

/* Секции */
section.part { padding-top:96px; }
.label { display:inline-flex; align-items:center; gap:10px; font-size:12px; font-weight:800; letter-spacing:3.5px; text-transform:uppercase; color:var(--accent-ink); }
.label::before { content:""; width:22px; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--pink),var(--accent)); }
h2 { margin:12px 0 0; font-size:clamp(26px,3.4vw,40px); font-weight:900; line-height:1.1; letter-spacing:-.01em; text-wrap:balance; }
.grad { background:linear-gradient(90deg,var(--grad-a),var(--grad-b) 60%,var(--grad-c)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hint { margin:12px 0 0; max-width:620px; font-size:17px; line-height:1.55; color:var(--muted); }

/* Продукты */
.products { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:36px; }
.product { display:flex; flex-direction:column; gap:16px; padding:22px; }
.product h3 { margin:4px 0 0; font-size:23px; font-weight:800; line-height:1.25; text-wrap:balance; }
.product > p { margin:0; font-size:15.5px; line-height:1.6; color:var(--muted); }
.product .btn { align-self:flex-start; margin-top:auto; }
.badge { align-self:flex-start; display:inline-flex; padding:5px 10px; border-radius:999px; font-size:11px; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; background:var(--accent-soft); color:var(--accent-ink); }
.badge.kp { background:var(--product-kp-soft); color:var(--product-kp); }
.checks { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.checks li { display:flex; gap:12px; font-size:15px; line-height:1.5; }
.checks li::before { content:""; flex:none; width:20px; height:20px; margin-top:1px; border-radius:50%; background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks.kp li::before { background-color:var(--product-kp); }
.shot { height:350px; overflow:hidden; border-radius:var(--radius-md); background:var(--surface); box-shadow:0 0 0 1px var(--line); }

/* Макет чата */
.chat { display:flex; flex-direction:column; }
.chat-head { display:flex; align-items:center; gap:10px; padding:12px 14px; font-size:14px; font-weight:700; border-bottom:1px solid var(--line); }
.chat-head i { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:13px; color:var(--on-accent); background:var(--accent-strong); }
.chat-head small { margin-left:auto; display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:500; color:var(--muted); }
.chat-head small::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--ok); }
.chat-body { flex:1; display:flex; flex-direction:column; justify-content:flex-end; gap:8px; padding:14px; overflow:hidden; }
.msg { max-width:84%; padding:9px 13px; border-radius:16px; font-size:14px; line-height:1.45; animation:pop .35s var(--ease) both; }
.msg.u { align-self:flex-end; border-bottom-right-radius:6px; background:var(--accent-strong); color:var(--on-accent); }
.msg.b { align-self:flex-start; border-bottom-left-radius:6px; background:var(--surface-soft); color:var(--ink); }
.msg.typing { display:inline-flex; gap:4px; padding:12px 14px; }
.msg.typing span { width:6px; height:6px; border-radius:50%; background:var(--muted); animation:blink 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay:.15s; } .msg.typing span:nth-child(3) { animation-delay:.3s; }
@keyframes pop { from { opacity:0; transform:translateY(8px) scale(.96); } }
@keyframes blink { 50% { opacity:.25; } }

/* Макет КП: строки появляются по очереди, итог досчитывается, потом «PDF и ссылка готовы» */
.kpdoc { position:relative; height:100%; padding:16px 16px 64px; font-size:13px; display:flex; flex-direction:column; }
.kp-top { display:flex; align-items:flex-start; gap:10px; }
.kp-top b { display:block; font-size:15px; font-weight:800; }
.kp-top small { display:block; color:var(--muted); font-size:12px; }
.kp-top span { margin-left:auto; flex:none; width:30px; height:30px; border-radius:9px; background:var(--product-kp); }
.kp-rows { margin-top:12px; display:flex; flex-direction:column; gap:6px; }
.kp-row { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:10px; align-items:center; padding:8px 10px; border-radius:10px; box-shadow:inset 0 0 0 1px var(--line-strong); transition:opacity .45s ease, transform .5s var(--ease); }
.kp-row .ph { width:30px; height:30px; border-radius:7px; background:var(--product-kp-soft); }
.kp-row b { display:block; font-size:13px; font-weight:700; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kp-row small { display:block; color:var(--muted); font-size:11.5px; line-height:1.3; }
.kp-row .sum { font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; }
.kp-row .sum.ask { font-weight:500; font-style:italic; color:var(--muted); }
.kp-total { margin-top:10px; display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:0 10px; transition:opacity .45s ease; }
.kp-total small { color:var(--muted); }
.kp-total b { font-size:20px; font-weight:900; color:var(--product-kp); font-variant-numeric:tabular-nums; white-space:nowrap; }
.kp-toast { position:absolute; left:16px; bottom:14px; display:inline-flex; align-items:center; gap:8px; padding:9px 14px; border-radius:999px; font-size:13px; font-weight:700; color:var(--ink); background:var(--surface); box-shadow:var(--shadow-md); transition:opacity .45s ease, transform .5s var(--ease); }
.kp-toast svg { width:16px; height:16px; color:var(--product-kp); }
.kpdoc.anim .kp-row, .kpdoc.anim .kp-total, .kpdoc.anim .kp-toast { opacity:0; transform:translateY(8px); }
.kpdoc.anim .on { opacity:1 !important; transform:none !important; }

/* Путь клиента */
.path { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:32px; counter-reset:s; }
.step { padding:20px; }
.step .n { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; font-weight:900; font-size:15px; font-variant-numeric:tabular-nums; color:var(--on-accent); background:var(--accent-strong); }
.step.kp .n { color:var(--on-product-kp); background:var(--product-kp); }
.step b { display:block; margin-top:14px; font-size:17px; font-weight:800; line-height:1.3; }
.step p { margin:6px 0 0; font-size:14.5px; line-height:1.55; color:var(--muted); }
.step em { display:inline-block; margin-top:12px; font-style:normal; font-size:11px; font-weight:800; letter-spacing:1.2px; text-transform:uppercase; color:var(--accent-ink); }
.step.kp em { color:var(--product-kp); }

/* Финал */
.final { margin-top:96px; position:relative; overflow:hidden; color:#fff; text-align:center; border-radius:var(--radius-xl); padding:64px 24px;
  background:linear-gradient(-45deg,var(--mesh-1),var(--mesh-2),var(--mesh-3),var(--mesh-4),var(--mesh-5),var(--mesh-3),var(--mesh-1)); background-size:400% 400%; animation:mesh 18s ease infinite; }
.final::before { content:""; position:absolute; inset:0; background:radial-gradient(70% 60% at 50% 45%,rgba(30,50,90,.22),transparent 75%); }
.final > * { position:relative; }
.final h2 { margin:0 auto; max-width:640px; color:#fff; text-shadow:0 2px 24px rgba(30,40,90,.25); }
.final p { margin:12px auto 0; max-width:520px; font-size:17px; opacity:.92; }
.final .acts { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:26px; }

footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 24px; padding-block:28px 40px; font-size:13px; color:var(--muted); }
footer a { color:var(--ink); font-weight:600; text-decoration:none; }

/* Появление */
.js [data-a] { opacity:0; transform:translateY(22px); filter:blur(6px); transition:opacity .7s ease, transform .8s var(--ease), filter .7s ease; transition-delay:calc(var(--d,0) * 90ms + 60ms); }
.js [data-a].in { opacity:1; transform:none; filter:none; }

@media (max-width:900px) {
  .hero { grid-template-columns:1fr; padding:44px 24px 28px; border-radius:28px; }
  .products { grid-template-columns:1fr; }
  .path { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nav a { display:none; }
}
@media (max-width:520px) {
  .wrap { padding-left:max(16px, env(safe-area-inset-left,0px)); padding-right:max(16px, env(safe-area-inset-right,0px)); }
  .path { grid-template-columns:1fr; }
  section.part { padding-top:64px; }
  .final { margin-top:64px; border-radius:28px; }
  .brand small { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; }
  .js [data-a] { opacity:1; transform:none; filter:none; }
}

/* ===== Внутренние страницы: шапка, крошки, текст, плитки ===== */
.nav-links { display:flex; align-items:center; gap:2px; }
.nav a.on { background:var(--surface-soft); }
.crumbs { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 14px; font-size:13px; color:var(--muted); }
.crumbs a { color:var(--muted); text-decoration:none; }
.crumbs a:hover { color:var(--accent-ink); }
.page-head { padding:44px 40px; }
.page-head h1 { margin:14px 0 0; font-size:clamp(30px,4vw,48px); font-weight:900; line-height:1.08; letter-spacing:-.015em; text-wrap:balance; }
.page-head .lead { margin:16px 0 0; max-width:720px; font-size:clamp(16px,1.5vw,19px); line-height:1.6; color:var(--muted); }
.page-head .meta { margin:14px 0 0; font-size:13px; color:var(--muted); }
.page-head .acts { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.btn-ghost { background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }

.prose { max-width:760px; font-size:17px; line-height:1.7; }
.prose h2 { margin:44px 0 0; font-size:clamp(23px,2.6vw,30px); scroll-margin-top:20px; }
.prose h3 { margin:28px 0 0; font-size:20px; font-weight:800; line-height:1.3; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin:14px 0 0; }
.prose ul, .prose ol { padding-left:22px; }
.prose li { margin-top:6px; }
.prose li::marker { color:var(--accent-ink); }
.prose strong { font-weight:700; }
.prose a { text-underline-offset:3px; }
.prose blockquote { padding:16px 20px; border-left:3px solid var(--accent); border-radius:0 var(--radius-sm) var(--radius-sm) 0; background:var(--surface-soft); }
.prose blockquote p { margin:0; }
.prose blockquote cite { display:block; margin-top:8px; font-style:normal; font-size:14px; color:var(--muted); }
.prose table { width:100%; border-collapse:collapse; font-size:15px; display:block; overflow-x:auto; }
.prose th, .prose td { padding:10px 12px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line-strong); }
.prose th { font-weight:700; background:var(--surface-soft); }
.prose > :first-child { margin-top:0; }
.prose .checks { margin-bottom:8px; }

.article-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:40px; align-items:start; margin-top:36px; }
.article-layout:not(:has(.toc)) { grid-template-columns:minmax(0,1fr); }
.toc { position:sticky; top:20px; padding:20px; font-size:14px; }
.toc b { font-size:13px; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); }
.toc ol { margin:10px 0 0; padding-left:18px; display:flex; flex-direction:column; gap:8px; }
.toc a { color:var(--ink); text-decoration:none; line-height:1.4; }
.toc a:hover { color:var(--accent-ink); }

.tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:28px; }
.tiles-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.tiles-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.tile { display:flex; flex-direction:column; gap:8px; padding:22px; color:var(--ink); text-decoration:none; transition:transform .25s var(--ease), box-shadow .25s ease; }
.tile:hover { transform:translateY(-3px); }
.tile b { font-size:18px; font-weight:800; line-height:1.3; }
.tile span { font-size:14.5px; line-height:1.55; color:var(--muted); }
.tile small { font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--accent-ink); }
.case-tile img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:var(--radius-sm); }
.more-link { margin:20px 0 0; font-weight:600; }

.product-acts { margin-top:auto; display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; }
.product .product-acts .btn { margin-top:0; }
.link-more { font-size:15px; font-weight:600; text-decoration:none; }
.link-more:hover { text-decoration:underline; text-underline-offset:3px; }
.shot img { width:100%; height:100%; object-fit:cover; display:block; }

.service-layout { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:40px; align-items:start; margin-top:36px; }
.service-layout:not(:has(.mock-card)) { grid-template-columns:minmax(0,1fr); }
.mock-card { padding:14px; position:sticky; top:20px; }
.shots { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; margin-top:24px; }
.shots a { display:block; padding:8px; }
.shots img { width:100%; display:block; border-radius:var(--radius-sm); }

.metrics { display:flex; flex-wrap:wrap; gap:14px 36px; margin-top:24px; }
.metrics b { display:block; font-size:clamp(28px,3vw,38px); font-weight:900; line-height:1.1; color:var(--accent-ink); font-variant-numeric:tabular-nums; }
.metrics span { font-size:14px; color:var(--muted); }
.case-cover { margin:24px 0 0; padding:8px; }
.case-cover img { width:100%; display:block; border-radius:var(--radius-md); }
article > .prose { margin-top:36px; }

.about-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:40px; align-items:start; margin-top:36px; }
.contacts { padding:24px; }
.contacts h2 { margin:0; font-size:22px; }
.contacts dl { margin:14px 0 0; display:flex; flex-direction:column; gap:12px; }
.contacts dt { font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--muted); }
.contacts dd { margin:2px 0 0; font-size:15px; }

/* FAQ */
.faq { display:flex; flex-direction:column; gap:10px; margin-top:24px; max-width:860px; }
.faq details { padding:0; }
.faq summary { cursor:pointer; list-style:none; padding:18px 52px 18px 20px; font-weight:700; font-size:16.5px; line-height:1.4; position:relative; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:""; position:absolute; right:20px; top:50%; width:10px; height:10px; margin-top:-7px; border-right:2px solid var(--accent-ink); border-bottom:2px solid var(--accent-ink); transform:rotate(45deg); transition:transform .25s var(--ease); }
.faq details[open] summary::after { transform:rotate(-135deg); margin-top:-2px; }
.faq details p { margin:0; padding:0 20px 18px; color:var(--muted); line-height:1.6; }

/* Калькулятор */
.calc { margin-top:20px; padding:28px; }
.modes { display:inline-flex; flex-wrap:wrap; gap:4px; padding:4px; border-radius:14px; background:var(--surface-soft); box-shadow:inset 0 0 0 1px var(--line); margin-bottom:22px; }
.modes label { position:relative; cursor:pointer; }
.modes input { position:absolute; opacity:0; pointer-events:none; }
.modes span { display:block; padding:9px 16px; border-radius:10px; font-size:14.5px; font-weight:600; color:var(--muted); }
.modes input:checked + span { background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }
.modes input:focus-visible + span { outline:2px solid var(--focus); outline-offset:2px; }
.calc-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; align-items:start; }
.fields { display:flex; flex-direction:column; gap:16px; }
.field { display:flex; flex-direction:column; gap:6px; font-size:14px; font-weight:600; }
.field small { font-weight:400; color:var(--muted); }
.calc input { width:100%; min-height:48px; padding:0 14px; border:1px solid var(--line-strong); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); font:500 17px/1.2 var(--font); font-variant-numeric:tabular-nums; }
.calc input:focus { outline:2px solid var(--focus); outline-offset:1px; border-color:transparent; }
.calc input::placeholder { color:var(--muted); font-size:14px; }
.results { margin:0; display:flex; flex-direction:column; gap:2px; padding:18px 20px; border-radius:var(--radius-md); background:var(--surface-soft); box-shadow:inset 0 0 0 1px var(--line); }
.results > div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); }
.results > div:last-child { border-bottom:0; }
.results dt { font-size:14.5px; color:var(--muted); }
.results dd { margin:0; font-size:18px; font-weight:800; font-variant-numeric:tabular-nums; text-align:right; }
.results .main dd { font-size:28px; font-weight:900; color:var(--accent-ink); }
.rows { border:0; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.rows legend { padding:0; margin-bottom:8px; font-size:14px; font-weight:600; }
.row-list { display:flex; flex-direction:column; gap:8px; }
.cost-row { display:grid; grid-template-columns:minmax(0,1fr) 120px 40px; gap:8px; }
.row-del, .row-add { border:0; cursor:pointer; font:600 15px/1 var(--font); color:var(--accent-ink); background:transparent; }
.row-del { border-radius:var(--radius-sm); font-size:22px; color:var(--muted); }
.row-del:hover { background:var(--surface-soft); color:var(--ink); }
.row-add { align-self:flex-start; padding:8px 0; }
.tool-text { margin-top:56px; }
[hidden] { display:none !important; }

/* Подвал */
.site-footer { display:block; margin-top:20px; }
.foot-cols { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; padding:28px 0 18px; border-top:1px solid var(--line); }
.foot-cols div { display:flex; flex-direction:column; gap:8px; }
.foot-cols b { font-size:12px; letter-spacing:1.5px; text-transform:uppercase; color:var(--ink); }
.foot-cols a { color:var(--muted); font-weight:500; }
.foot-cols a:hover { color:var(--accent-ink); }
.foot-legal { margin:0; font-size:13px; }
.foot-req { opacity:.5; }

@media (max-width:900px) {
  .nav { min-width:0; }
  .nav-links { flex-wrap:wrap; gap:2px; }
  .nav .nav-links a { display:block; white-space:nowrap; padding:7px 8px; font-size:14px; }
  .top { flex-wrap:wrap; }
  .nav { order:3; width:100%; margin-left:0; justify-content:space-between; align-items:flex-start; }
  .nav .nav-links { margin-left:-8px; }
  .tiles, .tiles-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .article-layout, .service-layout, .about-layout { grid-template-columns:minmax(0,1fr); }
  .toc, .mock-card { position:static; }
  .calc-grid { grid-template-columns:minmax(0,1fr); }
  .page-head { padding:32px 24px; }
}
@media (max-width:440px) {
  .nav .nav-links a.nav-home-only { display:none; }
}
@media (max-width:520px) {
  .tiles, .tiles-2, .tiles-4, .foot-cols { grid-template-columns:minmax(0,1fr); }
  .calc { padding:20px 16px; }
  .modes { display:flex; }
  .modes label { flex:1; }
  .modes span { text-align:center; padding:9px 8px; font-size:13.5px; }
  .cost-row { grid-template-columns:minmax(0,1fr) 92px 36px; }
  .results .main dd { font-size:24px; }
  .page-head { padding:26px 18px; border-radius:20px; }
}
