/* ПривлекAI v2 — «Прибор»
   Корпус из анодированного графита (в светлой теме — алюминий),
   утопленные экраны из тёмного стекла с послесвечением люминофора,
   четыре канала бренда как цвета сигнала.                          */

/* ------------------------------------------------------------------
   1. Токены
------------------------------------------------------------------ */
:root {
  --housing: #17191C;
  --housing-hi: #1D2024;
  --panel: #1E2125;
  --panel-2: #25292E;
  --well: #0F1114;
  --seam: rgba(220, 228, 240, .075);
  --seam-2: rgba(220, 228, 240, .13);
  --seam-3: rgba(220, 228, 240, .26);
  --ink: #E8EBEF;
  --ink-2: #A4ACB8;
  --ink-3: #8A93A0;
  --engrave: 0 1px 0 rgba(255, 255, 255, .035);

  /* каналы — цвета сигнала на корпусе */
  --c1: #4FE3D0;
  --c2: #6D98FF;
  --c3: #B07CFF;
  --c4: #FF6ACD;
  --on-key: #06080B;

  /* экраны всегда тёмные: стекло прибора не меняется от темы корпуса */
  --screen: #05080B;
  --screen-2: #0A1015;
  --scr-ink: #E3E8EC;
  --scr-ink-2: #A0AAB4;
  --scr-ink-3: #7F8994;
  --scr-grid: rgba(79, 227, 208, .085);
  --scr-grid-2: rgba(79, 227, 208, .17);
  --s1: #4FE3D0;
  --s2: #5B8CFF;
  --s3: #A56BFF;
  --s4: #FF5CC8;

  --grad: linear-gradient(100deg, var(--s1), var(--s2) 40%, var(--s3) 72%, var(--s4));
  --grad-loop: linear-gradient(100deg, var(--s1), var(--s2) 25%, var(--s3) 50%, var(--s4) 75%, var(--s1));
  /* для текста на корпусе: в светлой теме спектр затемнён до порога контраста */
  --grad-text: linear-gradient(100deg, var(--c1), var(--c2) 25%, var(--c3) 50%, var(--c4) 75%, var(--c1));

  --ff-d: "Tektur", "Geologica", system-ui, sans-serif;
  --ff-b: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-m: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r-s: 6px;
  --r: 10px;
  --r-l: 16px;
  --r-xl: 22px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --wrap: 1360px;
  --gut: clamp(16px, 4vw, 48px);
  --sec: clamp(76px, 9vw, 140px);
  --bar-h: 64px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --housing: #E5E7EA;
  --housing-hi: #ECEEF0;
  --panel: #EFF1F3;
  --panel-2: #F6F7F8;
  --well: #DADDE1;
  --seam: rgba(18, 24, 36, .10);
  --seam-2: rgba(18, 24, 36, .17);
  --seam-3: rgba(18, 24, 36, .34);
  --ink: #101317;
  --ink-2: #3B424C;
  --ink-3: #555D69;
  --engrave: 0 1px 0 rgba(255, 255, 255, .7);

  --c1: #077468;
  --c2: #2756CC;
  --c3: #6E36D6;
  --c4: #B51F80;

  color-scheme: light;
}

/* ------------------------------------------------------------------
   2. База
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
}

body {
  margin: 0;
  background-color: var(--housing);
  /* корпус: едва заметная шлифовка и свет сверху */
  background-image:
    radial-gradient(120% 60% at 50% -10%, var(--housing-hi), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.008) 0 1px, transparent 1px 3px);
  color: var(--ink);
  font-family: var(--ff-b);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
:root[data-theme="light"] body {
  background-image:
    radial-gradient(120% 60% at 50% -10%, #F3F4F6, transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.012) 0 1px, transparent 1px 3px);
  font-weight: 400;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

::selection { background: rgba(79, 227, 208, .32); color: var(--ink); }
:root[data-theme="light"] ::selection { background: rgba(7, 116, 104, .22); }

:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
  border-radius: 4px;
}

html { scrollbar-color: var(--seam-3) var(--housing); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--housing); }
::-webkit-scrollbar-thumb { background: var(--seam-2); border-radius: 10px; border: 3px solid var(--housing); }
::-webkit-scrollbar-thumb:hover { background: var(--seam-3); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r);
  background: var(--ink); color: var(--housing); font-weight: 500; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic { width: 1em; height: 1em; flex: none; }

/* ------------------------------------------------------------------
   3. Сетка и линии
------------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sec { padding-block: var(--sec) 0; position: relative; }
.sec-tight { padding-block: calc(var(--sec) * .6) 0; }

/* Волосяная линия с крестами приводки на концах */
.rail {
  position: relative;
  height: 1px;
  background: var(--seam);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.rail::before, .rail::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--seam-3), var(--seam-3)) center / 1px 100% no-repeat,
    linear-gradient(var(--seam-3), var(--seam-3)) center / 100% 1px no-repeat;
}
.rail::before { left: -6px; }
.rail::after { right: -6px; }
.rail.is-drawn { animation: rail-draw 1.4s var(--ease) both; transform-origin: left center; }
@keyframes rail-draw { from { transform: scaleX(0); } }

/* ------------------------------------------------------------------
   4. Типографика
------------------------------------------------------------------ */
.h1 {
  font-family: var(--ff-d);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.3vw, 5.25rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--ff-d);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.375rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -.005em;
}
.h1 .dim, .h2 .dim { color: var(--ink-3); }

.lead {
  font-size: clamp(1.125rem, 1.35vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 40em;
}
:root[data-theme="light"] .lead { font-weight: 350; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-head .lead { font-size: 1.0625rem; max-width: 34em; }

/* выгравированная подпись органа управления */
.label {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: .75rem;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-shadow: var(--engrave);
}

/* показания прибора — только данные и измерения */
.ro {
  font-family: var(--ff-m);
  font-stretch: 87.5%;
  font-weight: 400;
  font-size: .75rem;
  line-height: 1.35;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.tnum { font-variant-numeric: tabular-nums; }

/* переливающийся спектр — только кнопки и крупные числа (закреплено заказчиком) */
.flow {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: flow 9s linear infinite;
}
@keyframes flow { to { background-position: 200% 0; } }
.screen .flow { background-image: var(--grad-loop); }

.led {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 10px currentColor;
  flex: none;
}
.led-off { opacity: .28; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.led-pulse { animation: led 3.2s var(--ease-io) infinite; }
@keyframes led { 50% { opacity: .35; box-shadow: 0 0 0 1px rgba(0,0,0,.35); } }

.ch1 { --ch: var(--c1); --sch: var(--s1); --ch-rgb: 79, 227, 208; }
.ch2 { --ch: var(--c2); --sch: var(--s2); --ch-rgb: 91, 140, 255; }
.ch3 { --ch: var(--c3); --sch: var(--s3); --ch-rgb: 165, 107, 255; }
.ch4 { --ch: var(--c4); --sch: var(--s4); --ch-rgb: 255, 92, 200; }

/* ------------------------------------------------------------------
   5. Клавиши
------------------------------------------------------------------ */
.key {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--h);
  padding: 0 24px;
  border: 0;
  border-radius: var(--r);
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-key);
  background: var(--grad-loop);
  background-size: 200% 100%;
  animation: flow 9s linear infinite;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 24px -12px rgba(0, 0, 0, .7);
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.key::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%);
  transform: translateX(-115%);
}
.key:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 16px 30px -14px rgba(0, 0, 0, .75); }
.key:hover::after { animation: shine .55s var(--ease); }
.key:active { transform: translateY(0); }
@keyframes shine { to { transform: translateX(115%); } }
.key .ic { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.key:hover .ic { transform: translateX(3px); }
.key[disabled] { opacity: .55; cursor: progress; transform: none; }

.key-ghost {
  color: var(--ink);
  background: transparent;
  animation: none;
  box-shadow: inset 0 0 0 1px var(--seam-2);
}
.key-ghost::after { display: none; }
.key-ghost:hover { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--seam-3); transform: none; }
:root[data-theme="light"] .key-ghost:hover { background: rgba(0,0,0,.035); }
.key-sm { --h: 40px; padding: 0 16px; font-size: .75rem; gap: 8px; }
.key-sm .ic { width: 15px; height: 15px; }
.key-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-d); font-weight: 500; font-size: 1rem;
  letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
}
.link-arrow .ic { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ------------------------------------------------------------------
   6. Шапка
------------------------------------------------------------------ */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--housing) 84%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--seam);
}
.bar-in {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: .005em;
  flex: none;
}
.logo-mark { width: 32px; height: 32px; }
.logo-ai { margin-left: .04em; }
.logo-ai.flow { animation-duration: 12s; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav > a, .nav-mod {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 0; border-radius: var(--r-s);
  background: none;
  font-size: .9375rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav > a:hover, .nav-mod:hover, .nav-mod[aria-expanded="true"] { color: var(--ink); background: rgba(255,255,255,.035); }
:root[data-theme="light"] .nav > a:hover, :root[data-theme="light"] .nav-mod:hover { background: rgba(0,0,0,.04); }
.nav > a[aria-current="page"] { color: var(--ink); }
.nav > a[aria-current="page"]::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--c1); box-shadow: 0 0 8px var(--c1);
}
.nav-mod .ic { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.nav-mod[aria-expanded="true"] .ic { transform: rotate(180deg); }

.bar-act { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); }
.bar-tel {
  font-family: var(--ff-m); font-stretch: 87.5%;
  font-size: .8125rem; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bar-tel:hover { color: var(--c1); }

/* тумблер темы */
.switch {
  position: relative;
  width: 52px; height: 28px;
  border: 0; border-radius: 999px;
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--seam-2), inset 0 2px 6px rgba(0,0,0,.45);
  padding: 0;
  flex: none;
}
.switch-knob {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #3A4048, #22272D);
  box-shadow: 0 2px 4px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12);
  display: grid; place-items: center;
  color: var(--s1);
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.switch-knob .ic { width: 13px; height: 13px; }
.switch .ic-sun { display: none; }
:root[data-theme="light"] .switch-knob {
  transform: translateX(24px);
  background: linear-gradient(180deg, #FFFFFF, #E1E4E8);
  box-shadow: 0 2px 4px rgba(0,0,0,.18), inset 0 1px 0 #fff;
  color: #B4730A;
}
:root[data-theme="light"] .switch .ic-sun { display: block; }
:root[data-theme="light"] .switch .ic-moon { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: var(--r);
  background: none;
  box-shadow: inset 0 0 0 1px var(--seam-2);
  place-items: center;
}
.burger .ic { width: 20px; height: 20px; }
.burger .ic-x { display: none; }
.burger[aria-expanded="true"] .ic-x { display: block; }
.burger[aria-expanded="true"] .ic-m { display: none; }

/* панель модулей */
.mpanel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--panel);
  border-bottom: 1px solid var(--seam-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  visibility: hidden;
  transition: clip-path .55s var(--ease), opacity .4s var(--ease), visibility 0s .55s;
}
.mpanel.is-open {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  visibility: visible;
  transition: clip-path .55s var(--ease), opacity .3s var(--ease), visibility 0s;
}
.mpanel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-block: 28px 32px;
}
.mpanel-col { padding: 0 20px; border-left: 1px solid var(--seam); }
.mpanel-col:first-child { border-left: 0; padding-left: 0; }
.mpanel-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ch); }
.mpanel-h .label { color: var(--ink-3); }
.mpanel-col a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 8px;
  padding: 10px 10px 10px 0;
  border-radius: var(--r-s);
  text-decoration: none;
  transition: background-color .3s var(--ease);
}
.mpanel-col a:hover { background: rgba(var(--ch-rgb), .07); }
.mpanel-col a .ro { color: var(--ch); padding-top: 4px; padding-left: 8px; }
.mpanel-col a b { font-family: var(--ff-d); font-weight: 500; font-size: 1rem; }
.mpanel-col a span:last-child { grid-column: 2; font-size: .8125rem; line-height: 1.4; color: var(--ink-2); }
.mpanel-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 16px 20px;
  border-top: 1px solid var(--seam);
  font-size: .9375rem; color: var(--ink-2);
}

/* мобильное меню */
.mnav {
  position: fixed;
  inset: var(--bar-h) 0 0 0;
  z-index: 55;
  background: var(--housing);
  overflow-y: auto;
  padding: 16px var(--gut) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s .55s;
}
.mnav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease), visibility 0s; }
.mnav-group { padding-block: 16px; border-bottom: 1px solid var(--seam); }
.mnav-group .label { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mnav-group .label .led { color: var(--ch); }
.mnav a {
  display: flex; align-items: baseline; gap: 12px;
  min-height: 44px; padding-block: 8px;
  font-family: var(--ff-d); font-size: 1.125rem; text-decoration: none;
}
.mnav a .ro { color: var(--ch, var(--ink-3)); width: 22px; }
.mnav-main a { font-size: 1.375rem; }
.mnav-cta { margin-top: 24px; display: grid; gap: 12px; }
.mnav-cta .key { width: 100%; }
.mnav-tel { font-family: var(--ff-m) !important; font-size: 1rem !important; color: var(--ink-2); }

/* ------------------------------------------------------------------
   7. Экран (тёмное стекло в рамке)
------------------------------------------------------------------ */
.bezel {
  position: relative;
  padding: 10px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:
    inset 0 0 0 1px var(--seam-2),
    inset 0 1px 0 rgba(255,255,255,.05),
    0 30px 60px -36px rgba(0,0,0,.75);
}
:root[data-theme="light"] .bezel {
  background: linear-gradient(180deg, #F9FAFB, #E3E6EA);
  box-shadow: inset 0 0 0 1px var(--seam-2), inset 0 1px 0 #fff, 0 26px 50px -30px rgba(20, 28, 40, .45);
}
.screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - 8px);
  background: radial-gradient(120% 90% at 50% 40%, var(--screen-2), var(--screen) 70%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.8), inset 0 0 40px rgba(0,0,0,.65);
  color: var(--scr-ink);
}
/* блик на стекле */
.screen::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,.045), transparent 38%);
  border-radius: inherit;
}
.scr-ro {
  position: absolute;
  z-index: 3;
  font-family: var(--ff-m);
  font-stretch: 87.5%;
  font-size: .6875rem;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--scr-ink-2);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
}
.scr-ro b { font-weight: 400; color: var(--s1); }
.scr-tl { top: 14px; left: 16px; }
.scr-tr { top: 14px; right: 16px; }
.scr-bl { bottom: 14px; left: 16px; }
.scr-br { bottom: 14px; right: 16px; }

/* ------------------------------------------------------------------
   8. Герой и пеленг задачи
------------------------------------------------------------------ */
.hero { padding-top: clamp(28px, 4vw, 64px); padding-bottom: clamp(64px, 8vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}
.hero-copy .h1 { margin-bottom: clamp(20px, 2vw, 28px); }
.hero-copy .lead { margin-bottom: clamp(28px, 3vw, 40px); }

.tune { display: grid; gap: 12px; }
.tune-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 14px;
  background: var(--screen);
  box-shadow: inset 0 0 0 1px var(--seam-2), inset 0 2px 12px rgba(0,0,0,.6);
  transition: box-shadow .4s var(--ease);
}
:root[data-theme="light"] .tune-field { box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), inset 0 2px 12px rgba(0,0,0,.6); }
.tune-field:focus-within { box-shadow: inset 0 0 0 1px rgba(79, 227, 208, .55), inset 0 2px 12px rgba(0,0,0,.6), 0 0 0 4px rgba(79, 227, 208, .1); }
.tune-scope { width: 22px; height: 22px; color: var(--s1); flex: none; }
.tune-scope .sweep { transform-origin: 12px 12px; animation: tune-spin 4s linear infinite; }
@keyframes tune-spin { to { transform: rotate(360deg); } }
.tune input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: none;
  color: var(--scr-ink);
  font-size: 1.0625rem;
  font-weight: 350;
  caret-color: var(--s1);
}
.tune input::placeholder { color: rgba(227, 232, 236, .56); }
.tune input:focus { outline: none; }
.tune-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-s);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--seam-2);
  color: var(--ink-2);
  font-size: .875rem;
  transition: color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam-3); }
.chip[aria-pressed="true"] { color: var(--ink); background: rgba(var(--ch-rgb, 79, 227, 208), .1); box-shadow: inset 0 0 0 1px rgba(var(--ch-rgb, 79, 227, 208), .55); }
.chip .led { width: 6px; height: 6px; color: var(--ch, var(--c1)); }

.tune-out {
  min-height: 48px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  font-size: .9375rem;
  color: var(--ink-2);
}
.tune-out .led { color: var(--ch, var(--c1)); }
.tune-out a { color: var(--ink); font-weight: 500; text-decoration-color: var(--seam-3); }
.tune-out a:hover { text-decoration-color: currentColor; }
.tune-out .ro { color: var(--ch, var(--c1)); }
.tune-alt { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.tune-alt a { font-weight: 400; color: var(--ink-2); }

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* радар */
.radar-wrap { position: relative; }
.radar {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  padding-bottom: 4px;
}
.radar-scr { position: relative; aspect-ratio: 1 / 1; container-type: inline-size; }
.radar-scr .screen { position: absolute; inset: 0; }
.radar canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar .scr-ro { font-size: .6875rem; letter-spacing: .02em; }
.radar-status {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 8px 4px;
  color: var(--ink-3);
}
.radar-status b { font-weight: 400; color: var(--ink); }
.radar-status p { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#radar-state .led { color: var(--c1); width: 6px; height: 6px; }
#radar-state.is-lock { color: var(--ink); }
#radar-state.is-lock .led { color: var(--ch, var(--c1)); animation: none; }
.blips { position: absolute; inset: 0; z-index: 2; list-style: none; }
.blip {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  --lum: .4;
}
.blip a {
  position: absolute;
  top: 0;
  display: flex; align-items: center; gap: .55em;
  padding: .45em .6em;
  transform: translateY(-50%);
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--r-s);
  color: rgba(227, 232, 236, calc(.62 + var(--lum) * .38));
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(9px, 1.95cqi, 12px);
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.blip a .ro { font-size: .84em; color: var(--sch); opacity: calc(.7 + var(--lum) * .3); letter-spacing: 0; }
.blip.r a { left: 4px; }
.blip.l a { right: 4px; flex-direction: row-reverse; }
.blip a:hover, .blip a:focus-visible, .blip.is-hover a, .blip.is-lock a { background: rgba(var(--ch-rgb), .16); color: #fff; }
.blip.is-dim a { color: rgba(227, 232, 236, .52); }
.blip.is-dim a .ro { opacity: .6; }
.blip .go { display: none; color: var(--sch); }
.blip.is-lock .go { display: inline; }

/* луч осциллографа и подписи трасс */
.beam-head {
  position: absolute;
  z-index: 2;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px var(--sch, var(--s1)), 0 0 18px 4px rgba(var(--ch-rgb, 79, 227, 208), .45);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.beam-head.is-on { opacity: 1; }
.beam-head.k1 { --sch: var(--s1); --ch-rgb: 79, 227, 208; }
.beam-head.k2 { --sch: var(--s4); --ch-rgb: 255, 92, 200; }
.tr-tag {
  position: absolute;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(5, 8, 11, .78);
  font-family: var(--ff-m); font-stretch: 87.5%; font-size: .6875rem;
  white-space: nowrap;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  transition: opacity .6s var(--ease);
}
.tr-tag b { font-weight: 400; color: var(--scr-ink); margin-left: 4px; }
.tr-tag.ch1 { color: var(--s1); }
.tr-tag.ch2 { color: var(--s4); }
.tr-tag.up { transform: translate(calc(-100% - 10px), -135%); }
.tr-tag.down { transform: translate(calc(-100% - 10px), 0); }
.scope.is-pre .tr-tag { opacity: 0; }
.osc-wrap { position: absolute; inset: 0; }
.osc-m {
  position: absolute;
  top: 17%;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--scr-ink-3);
  transition: color .4s var(--ease), text-shadow .4s var(--ease);
  pointer-events: none;
}
.osc-m .ro { font-size: .6875rem; }
.osc-m.is-on { color: var(--sch); text-shadow: 0 0 10px var(--sch); }
.osc-hit { position: absolute; inset: 0; z-index: 3; cursor: crosshair; }
.osc-read { max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block !important; }
.osc-read b { color: var(--sch) !important; }

/* экран «запрос → ответ» */
.screen.answer { padding: 52px clamp(18px, 2.4vw, 30px) 26px; }
.ans { position: relative; z-index: 2; display: grid; gap: 16px; }
.ans-q { color: var(--s1); font-size: .8125rem; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 3px; vertical-align: -.15em; background: var(--s1); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ans-a { font-size: 1rem; line-height: 1.6; color: var(--scr-ink); font-weight: 300; }
.ans-a sup { color: var(--s1); font-family: var(--ff-m); font-size: .7em; margin-left: 2px; }
.ans-src { list-style: none; display: grid; gap: 2px; border-top: 1px solid rgba(79, 227, 208, .12); padding-top: 12px; }
.ans-src li { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 6px; font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem; color: var(--scr-ink-2); }
.ans-src li .ro { color: var(--scr-ink-3); width: 12px; }
.ans-src .is-you { background: rgba(79, 227, 208, .1); box-shadow: inset 0 0 0 1px rgba(79, 227, 208, .35); color: var(--scr-ink); }
.ans-src .you { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--s1); text-transform: uppercase; letter-spacing: .06em; font-size: .6875rem; }
.ans-src .you .led { width: 6px; height: 6px; }

/* знак в логотипе — медленная развёртка */
.logo-mark .mark-sweep { transform-origin: 26px 24px; animation: tune-spin 12s linear infinite; }

/* ------------------------------------------------------------------
   9. Стойка модулей
------------------------------------------------------------------ */
.rack { border-top: 1px solid var(--seam-2); }
.strip {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 8.8fr);
  border-bottom: 1px solid var(--seam-2);
}
.strip-h { padding: 28px 32px 28px 0; border-right: 1px solid var(--seam); }
.strip-h .strip-ch { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--ch); }
.strip-ch .ro { color: var(--ch); }
.strip-h .h3 { margin-bottom: 8px; }
.strip-h p { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.strip-wave { margin-top: 18px; width: 100%; max-width: 220px; height: 28px; color: var(--ch); opacity: .8; }

.mods { list-style: none; }
.mods li + li .mod { border-top: 1px solid var(--seam); }
.mod {
  --mx: 50%; --my: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1.05fr) minmax(0, 1.7fr) 140px 22px;
  align-items: baseline;
  gap: 20px;
  padding: 24px 16px 24px 24px;
  text-decoration: none;
  isolation: isolate;
  transition: background-color .4s var(--ease);
}
.mod::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--ch-rgb), .11), transparent 65%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.mod:hover::before, .mod:focus-visible::before { opacity: 1; }
.mod-n { color: var(--ch); font-size: .8125rem; }
.mod-name {
  font-family: var(--ff-d);
  font-weight: 500;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.15;
  color: var(--ink);
}
.mod-core { display: inline-block; margin-left: 8px; vertical-align: .25em; }
.mod-tag { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); transition: color .4s var(--ease); }
.mod-dur { display: grid; gap: 3px; color: var(--ink-2); font-size: .75rem; }
.mod-dur .label { font-size: .6875rem; letter-spacing: .12em; }
.mod-go { width: 20px; height: 20px; color: var(--ink-3); align-self: center; transition: transform .45s var(--ease), color .45s var(--ease); }
.mod:hover .mod-tag { color: var(--ink); }
.mod:hover .mod-go { transform: translateX(4px); color: var(--ch); }
.mod > .led { position: absolute; left: 6px; top: 50%; margin-top: -3px; width: 6px; height: 6px; color: var(--ch); opacity: 0; transition: opacity .4s var(--ease); }
.mod:hover > .led { opacity: 1; }

/* ------------------------------------------------------------------
   10. Принцип: один подрядчик
------------------------------------------------------------------ */
.principle {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.wiring { position: relative; }
.wiring svg { width: 100%; height: auto; overflow: visible; }
.wiring .w-node rect { fill: var(--panel-2); stroke: var(--seam-2); }
.wiring .w-node text, .wiring .w-lab {
  font-family: var(--ff-d); font-weight: 500; font-size: 12px; letter-spacing: .08em;
  fill: var(--ink-2); text-transform: uppercase;
}
.wiring .w-you rect { fill: var(--ink); stroke: none; }
.wiring .w-you text { fill: var(--housing); }
.wiring .w-tangle { fill: none; stroke: var(--seam-3); stroke-width: 1; stroke-dasharray: 3 5; }
.wiring .w-clean { fill: none; stroke-width: 1.5; }
.wiring .w-pulse { fill: var(--s1); }
.wiring .w-cap { font-family: var(--ff-m); font-size: 11px; fill: var(--ink-3); letter-spacing: .02em; }
.tenets { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--seam-2); }
.tenets li { padding: 24px 0; border-bottom: 1px solid var(--seam); display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; }
.tenets .ic { width: 22px; height: 22px; color: var(--c1); margin-top: 2px; }
.tenets h3 { grid-column: 2; }
.tenets p { grid-column: 2; color: var(--ink-2); font-size: 1rem; }

/* ------------------------------------------------------------------
   11. Ядро SEO + GEO: журнал и тарифы
------------------------------------------------------------------ */
.core-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.core-copy .h2 { margin-bottom: 24px; }
.core-copy p + p { margin-top: 16px; }
.core-copy p { color: var(--ink-2); max-width: 34em; }
.core-copy .key, .core-copy .link-arrow { margin-top: 32px; }

.log .screen { padding: 52px 0 12px; }
.log-list { list-style: none; position: relative; z-index: 2; }
.log-row {
  display: grid;
  grid-template-columns: 96px 118px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 16px 22px;
  border-top: 1px solid rgba(79, 227, 208, .08);
  opacity: 1;
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
.log-row.pre { opacity: 0; transform: translateY(6px); filter: blur(3px); }
.log-date { font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem; color: var(--scr-ink-3); padding-top: 9px; letter-spacing: .02em; }
.log-val {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.log-val small { font-size: .62em; font-weight: 400; font-family: var(--ff-b); margin-left: 1px; color: var(--scr-ink-2); }
.log-txt { font-size: .9375rem; line-height: 1.5; color: var(--scr-ink-2); padding-top: 4px; }
.log-txt b { font-weight: 450; color: var(--scr-ink); }
.log-src {
  grid-column: 3;
  font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem;
  color: var(--scr-ink-3);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content;
}
.log-src:hover { color: var(--s1); }
.log-src .ic { width: 11px; height: 11px; }
.log-more { padding: 14px 22px 4px; position: relative; z-index: 2; }

.plans {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 88px);
  border-radius: var(--r-xl);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--seam-2), 0 30px 60px -44px rgba(0, 0, 0, .7);
}
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: clamp(24px, 2.6vw, 36px);
}
.plan + .plan { box-shadow: inset 1px 0 0 var(--seam-2); }
/* рекомендуемый тариф — не рамка, а свет изнутри панели */
.plan-hot {
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(var(--ch-rgb, 79, 227, 208), .09), transparent 70%),
    var(--panel-2);
}
.plan-hot .plan-name { color: var(--ink); }
.plan:not(.plan-hot) .plan-name, .plan:not(.plan-hot) .ticks { color: var(--ink-2); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-family: var(--ff-d); font-weight: 500; font-size: 1.5rem; }
.plan-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--c1); }
.plan-tag .label { color: var(--ink-2); }
.plan-price {
  font-family: var(--ff-d);
  font-weight: 600;
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.plan-per { font-size: .9375rem; color: var(--ink-2); margin-top: 6px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .9875rem; line-height: 1.45; }
.ticks .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--c1); }
.ticks .no { color: var(--ink-3); }
.ticks .no .ic { color: var(--ink-3); }

/* ------------------------------------------------------------------
   12. Осциллограф: кейсы
------------------------------------------------------------------ */
.scope { position: relative; }
.scope .screen { aspect-ratio: 16 / 7.2; min-height: 300px; }
.scope svg.trace { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.grat line { stroke: var(--scr-grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grat .ax { stroke: var(--scr-grid-2); }
.grat .tick { stroke: var(--scr-grid-2); }
.tr-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.tr-glow { fill: none; stroke-width: 7; opacity: .22; filter: blur(5px); vector-effect: non-scaling-stroke; }
/* послесвечение: прежний проход луча остаётся на люминофоре тусклым следом */
.tr-dim { opacity: .26; }
.tr-head { r: 4.5; }
.tr-cur { stroke: rgba(227, 232, 236, .5); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.scope-hit { position: absolute; inset: 0; z-index: 4; cursor: crosshair; }
.scope-tip {
  position: absolute; z-index: 5;
  min-width: 168px;
  padding: 10px 12px;
  border-radius: var(--r-s);
  background: rgba(5, 8, 11, .88);
  box-shadow: inset 0 0 0 1px rgba(79, 227, 208, .3);
  font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem; line-height: 1.6;
  color: var(--scr-ink-2);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0);
  transition: opacity .2s var(--ease);
  font-variant-numeric: tabular-nums;
}
.scope-tip.is-on { opacity: 1; }
.scope-tip b { color: var(--scr-ink); font-weight: 400; }
.scope-tip .k1 { color: var(--s1); }
.scope-tip .k2 { color: var(--s4); }

.scope-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.scope-keys { display: flex; flex-wrap: wrap; gap: 8px; }
.ckey {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 14px;
  border: 0; border-radius: var(--r-s);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--seam-2);
  font-family: var(--ff-d); font-weight: 500; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color .3s var(--ease), box-shadow .3s var(--ease);
}
.ckey .led { width: 6px; height: 6px; color: var(--c1); opacity: .25; box-shadow: none; }
.ckey[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam-3); }
.ckey[aria-pressed="true"] .led { opacity: 1; box-shadow: 0 0 8px currentColor; }
.demo-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-s);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 60, .45);
  color: #FFC46B;
  font-family: var(--ff-m); font-stretch: 87.5%; font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase;
}
:root[data-theme="light"] .demo-tag { color: #8A5300; box-shadow: inset 0 0 0 1px rgba(160, 100, 0, .45); }

.meas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--seam-2);
}
.meas > div { padding: 18px 20px 4px 0; }
.meas > div + div { padding-left: 20px; border-left: 1px solid var(--seam); }
.meas dt { margin-bottom: 8px; }
.meas dd { margin: 0; font-family: var(--ff-d); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.meas dd small { display: block; margin-top: 6px; font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem; color: var(--ink-3); font-weight: 400; letter-spacing: .02em; }

/* ------------------------------------------------------------------
   13. Цепочка процесса
------------------------------------------------------------------ */
.chain {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  counter-reset: st;
}
.chain::before {
  content: "";
  position: absolute;
  left: 22px; right: 22px; top: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--seam-3), var(--seam-2));
}
.chain-pulse {
  position: absolute;
  top: 19px; left: 22px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--s1);
  box-shadow: 0 0 12px var(--s1), -14px 0 10px -4px rgba(79, 227, 208, .4);
  animation: chain 9s var(--ease-io) infinite;
}
@keyframes chain {
  0% { left: 22px; opacity: 0; }
  6% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 28px); opacity: 0; }
}
.chain li { position: relative; padding-top: 68px; }
.chain-n {
  position: absolute; top: 0; left: 0;
  width: 45px; height: 45px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--screen);
  box-shadow: inset 0 0 0 1px var(--seam-3), 0 0 0 6px var(--housing);
  color: var(--s1);
  font-family: var(--ff-m); font-size: .75rem;
}
.chain h3 { margin-bottom: 10px; }
.chain p { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.chain .ro { display: block; margin-top: 14px; color: var(--c1); }

/* ------------------------------------------------------------------
   14. Форма задачи
------------------------------------------------------------------ */
.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.brief-copy .h2 { margin-bottom: 20px; }
.brief-copy .lead { margin-bottom: 32px; }
.next { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--seam-2); margin-bottom: 36px; }
.next li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--seam); font-size: .9875rem; color: var(--ink-2); }
.next .ro { color: var(--c1); padding-top: 3px; }
.next b { display: block; color: var(--ink); font-weight: 500; }

.direct { display: grid; gap: 4px; }
.direct a { font-family: var(--ff-m); font-stretch: 87.5%; font-size: clamp(1rem, 1.4vw, 1.25rem); text-decoration: none; color: var(--ink); width: fit-content; font-variant-numeric: tabular-nums; }
.direct a:hover { color: var(--c1); }

.form {
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--seam-2), 0 40px 80px -60px rgba(0,0,0,.8);
  display: grid;
  gap: 22px;
}
.f-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.f-row { display: grid; gap: 8px; align-content: start; }
.f-row > label, .f-row > legend, .f-lab { display: flex; align-items: baseline; gap: 6px; }
fieldset.f-row { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.f-row legend { padding: 0; margin-bottom: 8px; }
.req { color: var(--c4); }
.f-in {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--r);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--seam-2), inset 0 2px 6px rgba(0,0,0,.35);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.5;
  caret-color: var(--c1);
  transition: box-shadow .3s var(--ease);
}
:root[data-theme="light"] .f-in { background: #F8F9FA; box-shadow: inset 0 0 0 1px var(--seam-2), inset 0 2px 5px rgba(0,0,0,.06); font-weight: 400; }
.f-in::placeholder { color: var(--ink-3); }
textarea.f-in { min-height: 132px; resize: vertical; }
.f-in:hover { box-shadow: inset 0 0 0 1px var(--seam-3), inset 0 2px 6px rgba(0,0,0,.35); }
.f-in:focus { outline: none; box-shadow: inset 0 0 0 1px var(--c1), 0 0 0 4px rgba(79, 227, 208, .12); }
.f-row.is-bad .f-in { box-shadow: inset 0 0 0 1px var(--c4), 0 0 0 4px rgba(255, 92, 200, .1); }
.f-err { min-height: 0; font-size: .8125rem; color: var(--c4); }
.f-err:empty { display: none; }
.f-hint { font-size: .8125rem; color: var(--ink-3); }

/* переключатели-модули */
.togs { display: flex; flex-wrap: wrap; gap: 8px; }
.tog { position: relative; }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px;
  border-radius: var(--r-s);
  box-shadow: inset 0 0 0 1px var(--seam-2);
  font-size: .875rem; color: var(--ink-2);
  cursor: pointer;
  transition: color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.tog span::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ch, var(--c1));
  opacity: .25;
  transition: opacity .3s var(--ease), box-shadow .3s var(--ease);
}
.tog span:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam-3); }
.tog input:checked + span { color: var(--ink); background: rgba(var(--ch-rgb, 79, 227, 208), .09); box-shadow: inset 0 0 0 1px rgba(var(--ch-rgb, 79, 227, 208), .5); }
.tog input:checked + span::before { opacity: 1; box-shadow: 0 0 8px var(--ch, var(--c1)); }
.tog input:focus-visible + span { outline: 2px solid var(--c1); outline-offset: 2px; }

/* поворотный переключатель (сегменты) */
.seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--r);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--seam-2);
}
:root[data-theme="light"] .seg { background: #F8F9FA; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 12px;
  border-radius: calc(var(--r) - 3px);
  font-size: .875rem; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
  transition: color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.seg span:hover { color: var(--ink); }
.seg input:checked + span { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--seam-3), 0 2px 6px rgba(0,0,0,.25); }
:root[data-theme="light"] .seg input:checked + span { background: #fff; box-shadow: inset 0 0 0 1px var(--seam-2), 0 2px 6px rgba(0,0,0,.08); }
.seg input:focus-visible + span { outline: 2px solid var(--c1); outline-offset: 1px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-note { font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
.f-note.is-ok { color: var(--c1); }
.f-note.is-bad { color: var(--c4); }
.f-note a { color: inherit; }

/* ------------------------------------------------------------------
   15. Подвал
------------------------------------------------------------------ */
.foot { padding-top: clamp(64px, 8vw, 112px); padding-bottom: 32px; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 5vw, 80px);
}
.foot-brand .logo { font-size: 1.5rem; margin-bottom: 20px; }
.foot-brand .logo-mark { width: 40px; height: 40px; }
.foot-brand p { color: var(--ink-2); font-size: .9375rem; max-width: 28em; margin-bottom: 28px; }
.foot-mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-mods h3 { display: flex; align-items: center; gap: 10px; color: var(--ch); margin-bottom: 12px; }
.foot-mods h3 .label { color: var(--ink-3); }
.foot-mods ul { list-style: none; display: grid; gap: 2px; }
.foot-mods a { display: block; padding: 5px 0; font-size: .9375rem; color: var(--ink-2); text-decoration: none; }
.foot-mods a:hover { color: var(--ink); }

.refer {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 24px clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-l);
  box-shadow: inset 0 0 0 1px var(--seam-2);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 40px;
  align-items: center;
}
.refer h3 { margin-bottom: 6px; }
.refer p { font-size: .9375rem; color: var(--ink-2); }
.refer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.copy {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 12px;
  border: 0; border-radius: var(--r-s);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--seam-2);
  font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem;
  color: var(--ink-2);
  transition: color .3s var(--ease), box-shadow .3s var(--ease);
}
:root[data-theme="light"] .copy { background: #F8F9FA; }
.copy:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--seam-3); }
.copy .ic { width: 13px; height: 13px; }
.copy.is-done { color: var(--c1); box-shadow: inset 0 0 0 1px var(--c1); }

.foot-btm {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--seam);
  font-size: .8125rem; color: var(--ink-3);
}
.foot-btm a { color: var(--ink-3); }
.foot-btm a:hover { color: var(--ink); }

/* ------------------------------------------------------------------
   16. Страница модуля
------------------------------------------------------------------ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: clamp(20px, 2.4vw, 32px); list-style: none; }
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 14px; height: 1px; background: var(--seam-3); }
.crumbs a, .crumbs span { font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem; color: var(--ink-3); text-decoration: none; letter-spacing: .02em; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ch, var(--c1)); }

.mhero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 104px); }
.mhero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.mhero .h1 { font-size: clamp(2.5rem, 4.8vw, 4.75rem); margin-bottom: 24px; }
.mhero .lead { margin-bottom: 32px; }
.mhero-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.inst .screen { aspect-ratio: 16 / 9.5; }
.osc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.osc-lab { font-family: var(--ff-d); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; fill: var(--scr-ink-2); }
.osc-dur { font-family: var(--ff-m); font-size: 9.5px; fill: var(--scr-ink-3); }
.passport { margin: 0; padding: 6px 6px 2px; }
.passport > div {
  display: grid;
  grid-template-columns: minmax(110px, 2fr) minmax(0, 5fr);
  gap: 16px;
  padding: 14px 10px;
  border-top: 1px solid var(--seam);
}
.passport > div:first-child { border-top: 0; }
.passport dt { padding-top: 2px; }
.passport dd { margin: 0; font-size: .9875rem; line-height: 1.45; }
.passport .price { font-family: var(--ff-d); font-weight: 500; }

.mbody {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.toc { position: sticky; top: calc(var(--bar-h) + 32px); }
.toc ol { list-style: none; position: relative; }
.toc ol::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 1px; background: var(--seam-2); }
.toc a {
  position: relative;
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center;
  padding: 8px 0;
  font-size: .9375rem; color: var(--ink-3); text-decoration: none;
  transition: color .3s var(--ease);
}
.toc a .n {
  width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--housing);
  box-shadow: inset 0 0 0 1px var(--seam-2);
  font-family: var(--ff-m); font-size: .625rem; color: var(--ink-3);
  transition: box-shadow .3s var(--ease), color .3s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); }
.toc a.is-on .n { color: var(--ch, var(--c1)); box-shadow: inset 0 0 0 1px var(--ch, var(--c1)), 0 0 10px rgba(var(--ch-rgb, 79, 227, 208), .35); }

.part { padding-bottom: clamp(56px, 7vw, 104px); }
.part:last-child { padding-bottom: 0; }
.part > .h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.part-n { color: var(--ch, var(--c1)); margin-right: 14px; font-size: .45em; vertical-align: .55em; font-family: var(--ff-m); letter-spacing: 0; }

.when { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.when li { padding: 22px 0; border-top: 1px solid var(--seam-2); }
.when h3 { margin-bottom: 8px; }
.when p { color: var(--ink-2); font-size: 1rem; }

.scope-list { list-style: none; columns: 2; column-gap: 40px; }
.scope-list li { break-inside: avoid; display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--seam); font-size: 1rem; line-height: 1.5; }
.scope-list .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--ch, var(--c1)); }

.results { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.results li { padding-top: 20px; border-top: 1px solid var(--ch, var(--c1)); }
.results h3 { margin-bottom: 10px; }
.results p { color: var(--ink-2); font-size: 1rem; }

.stages { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--seam-2); }
.stages li {
  display: grid;
  grid-template-columns: 52px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 8px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--seam);
  align-items: baseline;
}
.stages .ro.n { color: var(--ch, var(--c1)); }
.stages h3 small { display: block; margin-top: 6px; font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem; color: var(--ink-3); font-weight: 400; letter-spacing: .02em; }
.stages p { color: var(--ink-2); font-size: 1rem; }
.stages .out { font-size: .875rem; color: var(--ink); display: grid; gap: 4px; }

.approach { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.approach .ic { width: 28px; height: 28px; color: var(--ch, var(--c1)); margin-bottom: 18px; }
.approach h3 { margin-bottom: 10px; }
.approach p { color: var(--ink-2); font-size: 1rem; }

.faq { border-top: 1px solid var(--seam-2); }
.qa { border-bottom: 1px solid var(--seam); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--ff-d); font-weight: 500; font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  transition: color .3s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--ch, var(--c1)); }
.qa summary .pm { position: relative; width: 16px; height: 16px; flex: none; }
.qa summary .pm::before, .qa summary .pm::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
.qa summary .pm::after { transform: rotate(90deg); }
.qa[open] summary .pm::after { transform: rotate(0); }
.qa-body { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 46em; }
.qa-body p + p { margin-top: 12px; }

.related { margin-top: 8px; }

/* ------------------------------------------------------------------
   17. SEO + GEO
------------------------------------------------------------------ */
.shift {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.shift-copy p { color: var(--ink-2); margin-top: 16px; max-width: 34em; }
.big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.big > div { padding-top: 20px; border-top: 1px solid var(--seam-2); }
.big .big-n { margin-top: 0; color: var(--ink); font-family: var(--ff-d); font-weight: 600; font-size: clamp(3.5rem, 7vw, 6rem); line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big .big-n small { font-size: .5em; font-weight: 300; font-family: var(--ff-b); color: var(--ink-2); margin-left: 2px; }
.big p { margin-top: 14px; color: var(--ink-2); font-size: 1rem; max-width: 26em; }
.big .src { margin-top: 12px; display: grid; gap: 4px; }
.src a, a.src-a { font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; width: fit-content; text-decoration: none; }
.src a:hover, a.src-a:hover { color: var(--c1); }
.src .ic, a.src-a .ic { width: 11px; height: 11px; }
.src .ro { color: var(--ink-3); font-size: .75rem; }

.proof-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.proof .log .screen { padding-top: 56px; }
.log-row.is-hidden { display: none; }
.log-big .log-row { grid-template-columns: 110px 150px minmax(0, 1fr); padding-block: 20px; }
.log-big .log-val { font-size: 2.125rem; }
.log-q { font-size: 1.0625rem; line-height: 1.5; color: var(--scr-ink); font-weight: 300; }
.log-prov { grid-column: 3; font-family: var(--ff-m); font-stretch: 87.5%; font-size: .75rem; color: var(--scr-ink-3); }

.layers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.layer { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-xl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--seam-2); }
.layer-hot { background: radial-gradient(90% 60% at 50% 0%, rgba(79, 227, 208, .08), transparent 70%), var(--panel-2); box-shadow: inset 0 0 0 1px var(--seam-3); }
.layer .h3 { font-size: 1.5rem; margin-bottom: 12px; }
.layer > p { color: var(--ink-2); margin-bottom: 22px; }

.platforms { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.platforms p { color: var(--ink-2); margin-top: 14px; }
.plat-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--seam); border-radius: var(--r-l); overflow: hidden; box-shadow: inset 0 0 0 1px var(--seam); }
.plat-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; background: var(--housing); }
.plat-list svg { width: 26px; height: 26px; color: var(--ink); }
.plat-list span { font-family: var(--ff-d); font-weight: 500; font-size: .9375rem; }

.ptable-wrap { border-radius: var(--r-xl); background: var(--panel); box-shadow: inset 0 0 0 1px var(--seam-2); overflow: hidden; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: 16px 22px; text-align: left; border-top: 1px solid var(--seam); vertical-align: middle; font-weight: 400; }
.ptable thead th { border-top: 0; vertical-align: bottom; padding-top: 28px; padding-bottom: 24px; }
.ptable thead th + th { text-align: center; }
.ptable tbody th { font-size: .9875rem; }
.pt-note { display: block; margin-top: 3px; font-size: .8125rem; color: var(--ink-3); }
.ptable td { width: 24%; text-align: center; }
.ptable .pt-hot { background: rgba(255, 255, 255, .03); }
:root[data-theme="light"] .ptable .pt-hot { background: rgba(255, 255, 255, .55); }
.pt-name { display: block; font-family: var(--ff-d); font-weight: 500; font-size: 1.25rem; margin-bottom: 8px; }
.pt-price { display: block; font-family: var(--ff-d); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-per { display: block; font-size: .8125rem; color: var(--ink-3); margin-top: 4px; }
.pt-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--c1); }
.pt-badge .label { color: var(--ink-2); }
.pt-group th { font-family: var(--ff-d); font-weight: 500; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); background: rgba(255,255,255,.015); padding-block: 12px; }
.ptable .yes { width: 18px; height: 18px; color: var(--c1); margin-inline: auto; }
.ptable .no { width: 18px; height: 18px; color: var(--ink-3); margin-inline: auto; opacity: .6; }
.pt-val { font-size: .9375rem; }
.pt-cta td { padding-block: 22px 26px; }
.price-foot { margin-top: 16px; font-size: .875rem; color: var(--ink-3); max-width: 60em; }

/* ------------------------------------------------------------------
   18. Портфолио
------------------------------------------------------------------ */
.case { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--seam-2); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: 32px; }
.case-head .h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.case-meta dd { margin: 4px 0 0; font-size: .9375rem; }
.case-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.case-body h3 { margin-bottom: 12px; }
.case-body p, .case-body li { color: var(--ink-2); font-size: 1rem; }
.case-body ul { list-style: none; display: grid; gap: 8px; }
.case-body li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.case-body li .ic { width: 14px; height: 14px; margin-top: 5px; color: var(--c1); }
.replay { display: inline-flex; align-items: center; gap: 8px; }

.notice {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
  padding: 16px 20px;
  border-radius: var(--r-l);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 60, .4);
  color: var(--ink-2); font-size: .9375rem;
  margin-top: 32px;
  max-width: 52em;
}
.notice .ic { width: 20px; height: 20px; color: #FFC46B; margin-top: 2px; }
:root[data-theme="light"] .notice .ic { color: #8A5300; }

/* ------------------------------------------------------------------
   19. Шкала положения (десктоп)
------------------------------------------------------------------ */
.scale {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: none;
  list-style: none;
}
.scale a {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  height: 22px;
  text-decoration: none;
}
.scale a::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--seam-3);
  transform: scaleX(.45);
  transform-origin: right center;
  transition: transform .5s var(--ease), background-color .5s var(--ease);
}
.scale a span {
  font-family: var(--ff-d); font-weight: 500; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0; transform: translateX(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .4s var(--ease);
  white-space: nowrap;
}
.scale a:hover span { opacity: 1; transform: none; }
.scale a.is-on::after { transform: none; background: var(--c1); }
.scale a.is-on span { color: var(--ink); }
.scale:hover a span { opacity: 1; transform: none; }

/* ------------------------------------------------------------------
   20. Появление
------------------------------------------------------------------ */
.rv { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.rv.pre { opacity: 0; transform: translateY(14px); filter: blur(4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .flow, .key { animation: none !important; }
  .chain-pulse { display: none; }
  .rv.pre, .log-row.pre { opacity: 1; transform: none; filter: none; }
}

/* ------------------------------------------------------------------
   21. Адаптив
------------------------------------------------------------------ */
@media (min-width: 1600px) {
  .scale { display: block; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .bar-tel { display: none; }
  .mpanel { display: none; }
  .mod { grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 6px 16px; }
  .mod-tag { grid-column: 2; }
  .mod-dur { grid-column: 2; }
  .mod-go { grid-column: 3; grid-row: 1 / span 3; }
  .log-row { grid-template-columns: 84px minmax(0, 1fr); }
  .log-val { grid-column: 2; }
  .log-txt, .log-src, .log-prov { grid-column: 2; }
  .log-big .log-row { grid-template-columns: 96px minmax(0, 1fr); }
  .log-date { padding-top: 6px; }
}

@media (max-width: 1024px) {
  .hero-grid, .core-grid, .principle, .brief-grid, .shift, .platforms, .mhero-grid, .sec-head, .case-head { grid-template-columns: minmax(0, 1fr); }
  .radar { max-width: 640px; margin-inline: auto; }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip-h { border-right: 0; padding: 28px 0 12px; }
  .mods li:first-child .mod { border-top: 1px solid var(--seam); }
  .chain { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chain::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; background: var(--seam-2); }
  .chain-pulse { display: none; }
  .chain li { padding: 0 0 32px 72px; min-height: 45px; }
  .mbody { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .refer { grid-template-columns: minmax(0, 1fr); }
  .approach, .results { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .meas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meas > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .plat-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --bar-h: 58px; }
  .bar .key { display: none; }
  .plans, .layers, .f-2, .when, .big { grid-template-columns: minmax(0, 1fr); }
  .scope-list { columns: 1; }
  .stages li { grid-template-columns: 36px minmax(0, 1fr); }
  .stages li > *:not(.n) { grid-column: 2; }
  .foot-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptable thead { display: block; }
  .ptable thead tr { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0 !important; border-top: 0 !important; }
  .ptable thead th:first-child { display: none; }
  .ptable thead th { padding: 22px 16px 18px !important; text-align: left !important; }
  .ptable thead th.pt-hot { background: rgba(255, 255, 255, .03); }
  .pt-price { font-size: 1.375rem; white-space: normal; }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: 100%; }
  .ptable tr { padding: 12px 18px; border-top: 1px solid var(--seam); }
  .ptable th, .ptable td { border: 0; padding: 4px 0; text-align: left; }
  .ptable td { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .ptable td::before { content: attr(data-l); font-size: .8125rem; color: var(--ink-3); }
  .ptable td .yes, .ptable td .no { margin: 0; }
  .ptable .pt-hot { background: none; }
  .pt-group th { padding: 0; background: none; }
  .pt-cta td { display: block; }
  .pt-cta td::before { display: none; }
  .pt-cta .key { width: 100%; margin-top: 6px; }
  .scope .screen { aspect-ratio: 4 / 3.4; min-height: 0; }
  .inst .screen { aspect-ratio: 4 / 3.2; }
  .passport > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .blip a { padding: 3px 5px; }
  .blip a > span:not(.ro) { display: none; }
  .blip a .ro { font-size: 11px; opacity: 1; }
  .radar-status { flex-direction: column; align-items: flex-start; gap: 2px; }
  .scr-ro { letter-spacing: 0; }
  .scr-tl, .scr-tr { top: 10px; }
  .scr-bl, .scr-br { bottom: 10px; }
  .scr-tl, .scr-bl { left: 12px; }
  .scr-tr, .scr-br { right: 12px; }
  .log-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .log-big .log-row { grid-template-columns: minmax(0, 1fr); }
  .log-val, .log-txt, .log-src, .log-prov, .log-q { grid-column: 1; }
  .log-date { padding-top: 0; }
  .case-meta { grid-template-columns: minmax(0, 1fr); }
  .qa-body { padding-right: 0; }
}

@media (max-width: 460px) {
  .foot-mods { grid-template-columns: minmax(0, 1fr); }
  .meas { grid-template-columns: minmax(0, 1fr); }
  .meas > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--seam); }
  .hero-btns .key { width: 100%; }
  .logo { font-size: 1.0625rem; }
  .logo-mark { width: 28px; height: 28px; }
}

@media (pointer: coarse) {
  .chip, .tog span, .ckey, .copy { min-height: 44px; }
  .seg span { min-height: 44px; }
}

/* ------------------------------------------------------------------
   22. Печать
------------------------------------------------------------------ */
@media print {
  body { background: #fff; color: #000; }
  .bar, .mnav, .scale, .radar-wrap, .chain-pulse, .tune, .form, .refer { display: none !important; }
  .flow { -webkit-text-fill-color: #000; color: #000; background: none; }
  .screen { background: #fff; color: #000; box-shadow: none; }
  a { color: #000; }
}

/* экран-ответ растёт по содержимому */
.inst .screen.answer { aspect-ratio: auto; }

/* блок «сдвиг» внутри страницы модуля — числа под текстом */
.part .shift { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.part .shift .big { max-width: 760px; }

@media (max-width: 460px) {
  .tune-chips .chip:nth-child(n+5) { display: none; }
}

/* телефон: показания графика — под экраном, схема подрядчиков упрощается */
@media (max-width: 760px) {
  .tr-tag, .scope-read { display: none; }
  .scope .scr-bl { max-width: 60%; }
  .wiring { display: none; }
}


/* ==================================================================
   Правки по итогам ревью
================================================================== */

/* герой: короткий лид и светящаяся клавиша в первом экране */
.hero-copy .lead.hero-lead { max-width: 27em; }
.hero-btns { margin-top: 28px; }
.key-scr {
  color: var(--s1);
  background: transparent;
  animation: none;
  box-shadow: inset 0 0 0 1px rgba(79, 227, 208, .45);
}
.key-scr::after { display: none; }
.key-scr:hover { background: rgba(79, 227, 208, .1); box-shadow: inset 0 0 0 1px rgba(79, 227, 208, .8); transform: none; }

/* каналы: светодиод в самом заголовке, без подписи над ним */
.strip-name { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.strip-name .led { color: var(--ch); }

/* кресты приводки по углам панелей */
.reg { position: relative; }
.reg::before {
  content: "";
  position: absolute;
  inset: -9px;
  pointer-events: none;
  --m: var(--seam-3);
  background:
    linear-gradient(var(--m), var(--m)) 6px 0 / 1px 13px no-repeat,
    linear-gradient(var(--m), var(--m)) 0 6px / 13px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) calc(100% - 6px) 0 / 1px 13px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% 6px / 13px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) 6px 100% / 1px 13px no-repeat,
    linear-gradient(var(--m), var(--m)) 0 calc(100% - 6px) / 13px 1px no-repeat,
    linear-gradient(var(--m), var(--m)) calc(100% - 6px) 100% / 1px 13px no-repeat,
    linear-gradient(var(--m), var(--m)) 100% calc(100% - 6px) / 13px 1px no-repeat;
}

/* цепочка проекта — на экране прибора */
.chain-scr { padding: 72px clamp(20px, 3vw, 44px) 44px; }
.chain-scr .chain { position: relative; z-index: 2; }
.chain-scr .chain::before { background: linear-gradient(90deg, rgba(79, 227, 208, .45), rgba(79, 227, 208, .14)); }
.chain-scr .chain h3 { color: var(--scr-ink); }
.chain-scr .chain p { color: var(--scr-ink-2); }
.chain-scr .chain .ro { color: var(--s1); }
.chain-scr .chain-n { background: #070B0E; box-shadow: inset 0 0 0 1px rgba(79, 227, 208, .5), 0 0 0 6px #080C10; }

/* схема модуля: шина с узлами и заливкой по прокрутке */
.toc-h { margin-bottom: 14px; }
.toc-bus { position: relative; }
.toc-fill {
  position: absolute;
  left: 11px; top: 14px;
  width: 1px; height: calc(100% - 28px);
  z-index: 1;
  background: var(--ch, var(--c1));
  box-shadow: 0 0 8px var(--ch, var(--c1));
  transform-origin: top center;
  transform: scaleY(var(--p, 0));
}
.toc a .n { position: relative; z-index: 2; }
.toc a.is-past .n { color: var(--ch, var(--c1)); box-shadow: inset 0 0 0 1px rgba(var(--ch-rgb, 79, 227, 208), .5); }

/* подход: строки «пункт — пояснение» вместо трёх одинаковых колонок */
.approach { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; border-top: 1px solid var(--seam-2); }
.approach li {
  display: grid;
  grid-template-columns: 44px minmax(0, 4fr) minmax(0, 7fr);
  gap: 8px 24px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--seam);
}
.approach .ic { margin: 0; align-self: start; width: 24px; height: 24px; }
.approach h3 { margin: 0; }

@media (max-width: 1024px) {
  .toc {
    display: block;
    position: sticky;
    top: var(--bar-h);
    z-index: 30;
    margin: 0 calc(-1 * var(--gut)) 36px;
    padding: 10px var(--gut);
    background: color-mix(in srgb, var(--housing) 92%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--seam);
  }
  .toc-h { display: none; }
  .toc ol { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc ol::before { left: 12px; right: 12px; top: 50%; bottom: auto; width: auto; height: 1px; }
  .toc-fill { left: 12px; top: 50%; width: calc(100% - 24px); height: 1px; transform-origin: left center; transform: scaleX(var(--p, 0)); }
  .toc li { flex: none; }
  .toc a { display: flex; gap: 8px; padding: 4px 6px 4px 0; }
  .toc a { position: relative; z-index: 2; }
  .toc a .t { display: none; white-space: nowrap; font-size: .875rem; background: var(--housing); padding: 2px 8px 2px 4px; }
  .toc a.is-on .t { display: inline; color: var(--ink); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { box-shadow: inset 0 1px 0 var(--seam-2); }
  .plan-hot { border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .chain-scr { padding-top: 60px; }
  .chain-scr .chain::before { background: rgba(79, 227, 208, .3); }
}

@media (max-width: 760px) {
  .approach li { grid-template-columns: 32px minmax(0, 1fr); }
  .approach li > p { grid-column: 2; }
  .reg::before { inset: -7px; }
}

/* схема модуля — нарисованная шина: цвет канала, выводы к подписям,
   входное гнездо сверху и выходное (заявка) внизу */
@media (min-width: 1025px) {
  .toc ol::before { left: 10.5px; width: 2px; background: rgba(var(--ch-rgb, 79, 227, 208), .26); }
  .toc-fill { left: 10.5px; width: 2px; }
  .toc-bus::before {
    content: "";
    position: absolute;
    left: 6px; top: -8px;
    width: 11px; height: 11px;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1.5px var(--ch, var(--c1));
  }
  .toc a { position: relative; }
  .toc a::before {
    content: "";
    position: absolute;
    left: 24px; top: 50%;
    width: 9px; height: 1px;
    background: rgba(var(--ch-rgb, 79, 227, 208), .5);
  }
  .toc a .t { padding-left: 4px; }
  .toc a .n { color: var(--ch, var(--c1)); box-shadow: inset 0 0 0 1px rgba(var(--ch-rgb, 79, 227, 208), .6); background: var(--housing); }
  .toc a.is-on .n { color: var(--on-key); background: var(--ch, var(--c1)); box-shadow: 0 0 12px rgba(var(--ch-rgb, 79, 227, 208), .55); }
  .toc li:last-child .n { border-radius: 4px; }
}

/* портфолио: несколько экранов на кейс */
.case-note { margin: 28px 0 32px; max-width: 52em; color: var(--ink-2); font-size: 1.0625rem; }
.charts { display: grid; gap: 40px 28px; }
.charts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart { margin: 0; }
.chart-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 14px; }
.chart-t { font-family: var(--ff-d); font-weight: 500; font-size: 1.125rem; }
.chart-cap .ro { color: var(--ink-3); }
.chart-cap .replay { margin-left: auto; }
.charts-2 .scope .screen { aspect-ratio: 16 / 9; min-height: 240px; }
.meas.m3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notice-src { box-shadow: inset 0 0 0 1px var(--seam-2); }
.notice-src .ic { color: var(--c1); }
:root[data-theme="light"] .notice-src .ic { color: var(--c1); }
@media (max-width: 1024px) {
  .charts-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .meas.m3 { grid-template-columns: minmax(0, 1fr); }
}
.charts:not(.charts-2) .scope .screen { aspect-ratio: 16 / 5.6; min-height: 260px; }
@media (max-width: 760px) { .charts:not(.charts-2) .scope .screen { aspect-ratio: 4 / 3.4; } }
@media (max-width: 760px) {
  .charts .scope .screen, .charts-2 .scope .screen { min-height: 0 !important; aspect-ratio: 4 / 3.4; }
  .chart-cap .replay { margin-left: 0; }
}
