/* =========================================================
   IT PROJECTS / АДМИНАТОР — «приборная панель»
   Темно-зеленый графит, светлая бумага, зеленый сигнальный акцент.
   Manrope в заголовках и тексте, JetBrains Mono в метках.
   Шрифты лежат локально в /fonts: без внешних запросов и сдвигов верстки.
   ========================================================= */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jbmono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jbmono-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: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/manrope-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 {
  /* темные поверхности — градации канонического темно-зеленого */
  --void: #0a0f0d;
  --void-2: #101a15;
  --void-3: #16211b;
  --void-line: #24322b;
  --on-void: #eaf2ec;
  --on-void-soft: #c2cfc7;
  --on-void-muted: #9aada1;

  /* светлые поверхности */
  --paper: #f4f6f4;
  --card: #ffffff;
  --surface: #eef2ef;

  /* текст */
  --ink: #0b1310;
  --text: #33413a;
  --muted: #55645c;
  --muted-soft: #5f6f66;

  /* линии */
  --line: #dfe6e1;
  --line-2: #ccd6d0;
  --line-3: #89978f;

  /* акцент — зеленый в градациях */
  --brand: #0b6b3a;
  --brand-ui: #0e7a45;
  --brand-hover: #095530;
  --brand-tint: #e8f3ec;
  --brand-bright: #4ade80;
  --signal: #0b6b3a;

  /* темные иллюстрации */
  --ink-deep: #0a0f0d;
  --ink-line: #24322b;
  --ink-text: #c2cfc7;

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --hdr-h: 74px;
  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --radius-sm: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- сброс ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--brand-bright); color: var(--void); }

:focus-visible { outline: 2px solid var(--brand-ui); outline-offset: 3px; }

/* ---------- сетка и утилиты ---------- */

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

.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
}

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--muted);
}
.label > span {
  color: var(--brand);
}
.label::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line-2);
}
.label-dark { color: var(--on-void-muted); }
.label-dark::after { background: var(--void-line); }
.label-dark > span { color: var(--brand-bright); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 14px;
  transform: translateY(-72px);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.btn:hover .icon-right { transform: translateX(3px); }
.btn:hover .icon-down { transform: translateY(3px); }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

.btn-signal {
  background: var(--brand-bright);
  border-color: var(--brand-bright);
  color: #0a0f0d;
}
.btn-signal:hover {
  background: #6ee7a0;
  border-color: #6ee7a0;
  color: #0a0f0d;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(237, 235, 229, 0.28);
  color: var(--on-void);
}
.btn-ghost:hover {
  border-color: var(--on-void);
  background: rgba(237, 235, 229, 0.06);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: var(--card); }

.btn-sm { padding: 11px 16px; font-size: 14px; }

/* ---------- прогресс прокрутки ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 2px;
  background: var(--brand-bright);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;

  --hdr-ink: var(--ink);
  --hdr-text: var(--text);
  --hdr-muted: var(--muted);
  --hdr-line: var(--line);
  --hdr-accent: var(--brand);
  --hdr-btn-bg: var(--ink);
  --hdr-btn-fg: var(--paper);

  background: rgba(244, 246, 244, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--hdr-text);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

html.js .site-header:not(.is-solid) {
  --hdr-ink: var(--on-void);
  --hdr-text: var(--on-void-soft);
  --hdr-muted: var(--on-void-muted);
  --hdr-line: rgba(237, 235, 229, 0.14);
  --hdr-accent: var(--brand-bright);
  --hdr-btn-bg: var(--brand-bright);
  --hdr-btn-fg: #0a0f0d;

  /* пока над темным hero — плотная непрозрачная подложка: контент, который
     проезжает под меню, полностью скрыт, видно только его край под шапкой */
  background: var(--void);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: rgba(237, 235, 229, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--hdr-ink);
}
.brand-mark {
  width: 38px;
  height: auto;
  display: block;
  flex: none;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(45deg); }
/* логотип компании нарисован тёмным: на тёмных подложках инвертируем в белый */
html.js .site-header:not(.is-solid) .brand-mark,
.site-footer .brand-mark { filter: brightness(0) invert(1); }
.brand-text strong {
  display: block;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--hdr-ink);
}
.brand-text strong span { color: var(--hdr-accent); }
.brand-text small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hdr-muted);
}

/* навигация */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 9px 0;
  font-size: 15px;
  white-space: nowrap;
  font-weight: 450;
  color: var(--hdr-text);
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hdr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--hdr-ink); }
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav a[aria-current="true"] { color: var(--hdr-ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.header-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: var(--hdr-text);
  opacity: 0.9;
}
.header-call .icon { width: 17px; height: 17px; }
.header-call:hover { opacity: 1; }
.header-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--hdr-text);
  transition: color 0.2s var(--ease);
}
.header-phone:hover { color: var(--hdr-ink); }

.header-cta {
  background: var(--hdr-btn-bg);
  border-color: var(--hdr-btn-bg);
  color: var(--hdr-btn-fg);
}
.header-cta:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
html.js .site-header:not(.is-solid) .header-cta:hover {
  background: #6ee7a0;
  border-color: #6ee7a0;
  color: #0a0f0d;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hdr-line);
  border-radius: var(--radius);
  color: var(--hdr-ink);
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* мобильное меню */
.mobile-nav {
  position: fixed;
  inset: 74px 0 0;
  z-index: 79;
  display: flex;
  flex-direction: column;
  padding: 8px 0 32px;
  background: var(--paper);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; }
.mobile-nav nav { display: flex; flex-direction: column; width: 100%; }
.mobile-nav nav > a {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-nav .mobile-nav-cta {
  justify-content: center;
  margin-top: 24px;
  padding: 16px 22px;
  font-size: 16px;
  color: var(--paper);
  border-bottom: 0;
}
.mobile-nav-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.mobile-nav-foot a:hover { color: var(--brand); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--hdr-h));
  padding-block: calc(var(--hdr-h) + clamp(38px, 5vw, 78px)) clamp(34px, 4.5vw, 62px);
  background: var(--void);
  color: var(--on-void);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(237, 235, 229, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237, 235, 229, 0.055) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000 30%, transparent 92%);
  mask-image: radial-gradient(130% 95% at 50% 0%, #000 30%, transparent 92%);
}
.hero-spot {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    560px circle at var(--mx, 72%) var(--my, 18%),
    rgba(74, 222, 128, 0.14),
    transparent 62%
  );
  transition: background-position 0.2s linear;
}

.hero-inner { position: relative; }

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-void-muted);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
  animation: pulse-dot 3.2s ease-in-out infinite;
}
.eyebrow-end { color: var(--on-void-muted); opacity: 0.8; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.05); }
}

.hero h1 {
  margin-top: clamp(26px, 3.4vw, 44px);
  max-width: 19ch;
  font-size: clamp(2.55rem, 6.1vw, 5.15rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--on-void);
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-bright);
}

.hero-body {
  margin-top: clamp(30px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 3.4vw, 54px);
}
.hero-lead {
  font-size: clamp(16px, 1.15vw, 17.5px);
  line-height: 1.58;
  color: var(--on-void-soft);
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- бегущая строка ---------- */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 15px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.ticker-track span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-ui);
  opacity: 0.85;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- статистика ---------- */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  margin-top: clamp(44px, 6vw, 86px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid rgba(237, 235, 229, 0.14);
}
.hero-stats > div {
  padding: 0;
  border: 0;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--on-void);
  font-variant-numeric: tabular-nums;
}
.hero-stats dd {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--on-void-muted);
  max-width: 20ch;
}

/* =========================================================
   СЕКЦИИ
   ========================================================= */

.section {
  padding-block: clamp(56px, 7vw, 104px);
}
.section + .section { border-top: 1px solid var(--line); }
.section-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 4.4vw, 60px);
}
.section-head h2 {
  margin-top: 20px;
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  letter-spacing: -0.03em;
  max-width: 24ch;
}
.section-head .section-lead { padding-bottom: 6px; }

/* =========================================================
   ПРОДУКТЫ
   ========================================================= */

.product-stack { border-top: 1px solid var(--line); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(30px, 4.6vw, 76px);
  align-items: start;
  padding-block: clamp(36px, 4.8vw, 76px);
  border-bottom: 1px solid var(--line);
}
.product-reverse .product-visual { order: -1; }

.product-kind {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.product-name {
  margin-top: 14px;
  font-size: clamp(1.55rem, 2.9vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.product-lead {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 52ch;
}

.review {
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.review-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.review-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.review-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
}
.review-list .icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--brand-ui);
  stroke-width: 2;
}
.review-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.review-sub {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.review-split div:last-child .review-sub { color: var(--brand); }
.review-split p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.sec-note {
  margin-top: 26px;
  padding: 20px 22px 22px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--brand-tint);
}
.sec-note-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.sec-note-head .icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sec-note-lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.58;
  color: var(--text);
  max-width: 62ch;
}
.sec-note-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.sec-note-list li {
  position: relative;
  padding-left: 19px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}
.sec-note-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 1px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--brand);
  transform: rotate(45deg);
}

/* акцентный вариант — темная карточка в светлой секции */
.sec-note-dark {
  border-color: var(--void-line);
  background: var(--ink-deep);
}
.sec-note-dark .sec-note-head { color: var(--brand-bright); }
.sec-note-dark .sec-note-lead { color: var(--on-void-soft); }
.sec-note-dark .sec-note-list li { color: var(--on-void-soft); }
.sec-note-dark .sec-note-list li::before { border-color: var(--brand-bright); }

.product-facts {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.product-facts > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.product-facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.product-facts dd { font-size: 15px; line-height: 1.5; color: var(--text); }

.product-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding-block: 10px;
  margin-block: -10px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.text-link:hover .icon { transform: translateX(3px); }

.product-visual { position: relative; }

/* на широком экране макет «прилипает»: колонка с текстом длиннее */
@media (min-width: 1081px) {
  .product-visual {
    position: sticky;
    top: calc(var(--hdr-h) + 30px);
  }
}

/* =========================================================
   УСЛУГИ
   ========================================================= */

.service-list { border-top: 1px solid var(--line-2); }

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 0 22px;
  padding: clamp(18px, 2.1vw, 26px) clamp(10px, 1.4vw, 22px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s var(--ease);
  z-index: 0;
}
.service-row:hover::before { clip-path: inset(0 0 0 0); }
.service-row > * { position: relative; z-index: 1; }

.service-num {
  align-self: start;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
  transition: color 0.25s var(--ease);
}
.service-row:hover .service-num { color: var(--brand-ui); }

.service-copy {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 10px 32px;
  align-items: start;
}
.service-copy h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}
.service-copy p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* =========================================================
   ПРОЦЕСС (темная секция)
   ========================================================= */

.process {
  background: var(--void);
  color: var(--on-void-soft);
}
.section.process,
.section.contacts { border-top-color: rgba(237, 235, 229, 0.08); }
.process h2 { color: var(--on-void); }
.process .section-lead { color: var(--on-void-muted); }

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 2.4vw, 36px);
  padding-top: 36px;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--void-line);
}
.process-grid::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  height: 1px;
  width: calc(var(--p, 0) * 100%);
  background: var(--brand-bright);
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
}
.stage::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
}
.stage-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brand-bright);
  text-transform: uppercase;
}
.stage h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--on-void);
}
.stage p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-void-muted);
}
.stage-out {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--void-line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--on-void-soft);
}

/* =========================================================
   ПОДХОД
   ========================================================= */

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.approach-intro h2 {
  margin-top: 20px;
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.approach-intro > p:not(.label) {
  margin-top: 20px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}
.approach-intro .text-link { margin-top: 24px; }

.principle-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(22px, 3vw, 44px);
}
.principle {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.principle h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.principle p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* =========================================================
   СРАВНЕНИЕ
   ========================================================= */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
}
.compare-col {
  padding: clamp(24px, 3vw, 40px);
  background: var(--card);
}
.compare-col-dark {
  background: var(--void);
  color: var(--on-void-soft);
  border-left: 1px solid var(--void-line);
}
.compare-mark {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.compare-col-dark .compare-mark { color: var(--brand-bright); }
.compare-col h3 {
  margin-top: 14px;
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  letter-spacing: -0.03em;
}
.compare-col-dark h3 { color: var(--on-void); }
.compare-note {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.compare-col-dark .compare-note { color: var(--on-void-muted); }

.compare-rows {
  margin: 24px 0 26px;
}
.compare-rows > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.compare-col-dark .compare-rows > div { border-top-color: var(--void-line); }
.compare-rows dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.compare-col-dark .compare-rows dt { color: var(--on-void-muted); }
.compare-rows dd { color: var(--text); line-height: 1.45; }
.compare-col-dark .compare-rows dd { color: var(--on-void-soft); }

.compare-col-dark .btn-primary {
  background: var(--brand-bright);
  border-color: var(--brand-bright);
  color: #0a0f0d;
}
.compare-col-dark .btn-primary:hover {
  background: #6ee7a0;
  border-color: #6ee7a0;
  color: #0a0f0d;
}

.compare-foot {
  margin-top: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
}
/* ---------- места под скриншоты продуктов ---------- */
.shot { width: 100%; max-width: 560px; margin-inline: auto; }
.shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.shot-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); }
.shot-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.shot-meta { color: var(--muted); text-align: right; }
.shot-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 16 / 10;
  margin-top: 12px;
  padding: 26px;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
}
.shot-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 2px;
  border: 1px dashed var(--line-3);
  border-radius: 50%;
  color: var(--muted);
}
.shot-mark svg { width: 15px; height: 15px; }
.shot-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.shot-note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 32ch;
}
.shot-spec {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}
.shot-caption {
  margin: 12px auto 0;
  max-width: 44ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 5vw, 90px);
  align-items: start;
}
.faq-intro { position: sticky; top: 108px; }
.faq-intro h2 {
  margin-top: 20px;
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  letter-spacing: -0.03em;
}
.faq-intro > p:not(.label) {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}
.faq-intro .text-link { margin-top: 22px; }

.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font: inherit; }
.faq-q {
  display: flex;
  border-radius: 2px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 21px 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--brand); }
.faq-icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--muted);
  stroke-width: 1.6;
  transition: transform 0.35s var(--ease), color 0.25s var(--ease);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); color: var(--brand-ui); }

.faq-q:focus-visible { outline-offset: -3px; }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease), visibility 0.4s;
}
.faq-a > p {
  overflow: hidden;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 62ch;
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; }
.faq-item.is-open .faq-a > p { padding-bottom: 22px; }

/* =========================================================
   КОНТАКТЫ (темная секция)
   ========================================================= */

.contact {
  background: var(--void);
  color: var(--on-void-soft);
  border-top: 0;
}
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4.6vw, 76px);
  align-items: start;
}
.contact-info h2 {
  margin-top: 20px;
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  letter-spacing: -0.035em;
  color: var(--on-void);
  max-width: 14ch;
}
.contact-lead {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--on-void-muted);
  max-width: 40ch;
}
.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  min-height: 44px;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--on-void);
  transition: color 0.2s var(--ease);
}
.contact-lines .icon { width: 18px; height: 18px; color: var(--brand-bright); stroke-width: 1.5; }
.contact-lines a:hover { color: var(--brand-bright); }
.contact-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--void-line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--on-void-muted);
  max-width: 40ch;
}

/* ---------- форма ---------- */

.contact-form {
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--card);
  border-radius: 10px;
  color: var(--text);
}
.form-row {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.form-row > label:not(.checkbox) {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-row > label:not(.checkbox) > span { color: var(--brand); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 13px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-row textarea { resize: vertical; min-height: 96px; }
.form-row input::placeholder,
.form-row textarea::placeholder { color: #6a7a71; }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.06);
}
.form-row.is-invalid input,
.form-row.is-invalid textarea { border-color: #b42318; }
.form-error {
  font-size: 12.5px;
  line-height: 1.4;
  color: #b42318;
}
.form-error:empty { display: none; }

.form-consent {
  margin-top: 6px;
  display: grid;
}
.checkbox {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 44px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.checkbox-box {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: var(--card);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.checkbox-box .icon {
  width: 12px;
  height: 12px;
  color: #fff;
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.checkbox input:checked + .checkbox-box {
  background: var(--ink);
  border-color: var(--ink);
}
.checkbox input:checked + .checkbox-box .icon { opacity: 1; transform: none; }
.checkbox input:focus-visible + .checkbox-box {
  outline: 2px solid var(--brand-ui);
  outline-offset: 2px;
}
.form-consent.is-invalid .checkbox-box { border-color: #b42318; }

.consent-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 9px 0 0 28px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.consent-docs a {
  color: var(--text);
  display: inline-block;
  padding-block: 8px 2px;
  margin-block: -6px 0;
  border-bottom: 1px solid rgba(60, 69, 74, 0.32);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.consent-docs a:hover { color: var(--brand); border-bottom-color: var(--brand); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 22px;
}
.form-actions .btn { min-width: 220px; justify-content: center; }
.form-status {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: var(--brand); }

/* =========================================================
   ПОДВАЛ
   ========================================================= */

.site-footer {
  background: var(--void);
  color: var(--on-void-muted);
  border-top: 1px solid var(--void-line);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(26px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 72px);
}
.brand-footer { color: var(--on-void); }
.brand-footer .brand-text strong { color: var(--on-void); }
.brand-footer .brand-text strong span { color: var(--brand-bright); }
.brand-footer .brand-text small { color: var(--on-void-muted); }
.footer-brand p {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--on-void-muted);
  max-width: 34ch;
}
.footer-title {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-void-muted);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--on-void-soft);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--brand-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--void-line);
  font-size: 13px;
  color: var(--on-void-muted);
}
.footer-legal {
  flex: 1 1 100%;
  order: 3;
  font-size: 12px;
  line-height: 1.6;
  color: var(--on-void-muted);
}
.footer-phone { font-family: var(--font-mono); font-size: 12.5px; color: var(--on-void-soft); }
.footer-phone:hover { color: var(--brand-bright); }
.footer-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   СЛУЖЕБНЫЕ СТРАНИЦЫ
   ========================================================= */

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 244, 0.9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
}
.legal-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.legal-back:hover { color: var(--brand); }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
}
.legal h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.legal-updated {
  margin: 0 0 38px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal h2 {
  margin: 36px 0 12px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal p,
.legal li { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0; padding-left: 22px; }
.legal li { list-style: disc; padding: 3px 0; }
.legal a {
  color: var(--brand);
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(11, 107, 58, 0.35);
  transition: border-color 0.18s var(--ease);
}
.legal a:hover { border-bottom-color: var(--brand); }
.legal-footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}
.legal-footer a:hover { color: var(--brand); }

/* =========================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ========================================================= */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (min-width: 981px) {
  .product-visual { position: sticky; top: 100px; }
}

@media (max-width: 1180px) {
  .service-copy { grid-template-columns: 208px minmax(0, 1fr); gap: 8px 24px; }
  .hero h1 { max-width: 20ch; }
}

@media (max-width: 1080px) {
  .hero h1 { font-size: clamp(2.4rem, 6.6vw, 3.9rem); }
  .hero-body { grid-template-columns: 1fr; align-items: start; gap: clamp(24px, 4vw, 34px); }
  .hero-lead { max-width: 60ch; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: clamp(36px, 5vw, 56px); }

  .section-head { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .section-head .section-lead { padding-bottom: 0; }

  .approach-grid { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 40px); }
  .approach-intro h2 { max-width: 24ch; }

  .faq-grid { grid-template-columns: 1fr; gap: clamp(26px, 4vw, 36px); }
  .faq-intro { position: static; max-width: 62ch; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions { margin-left: auto; }

  .product { grid-template-columns: 1fr; gap: clamp(26px, 4vw, 34px); }
  .product-reverse .product-visual { order: 0; }
  .product-visual { position: static; }

  .process-grid { grid-template-columns: 1fr 1fr; gap: 30px clamp(20px, 3vw, 32px); padding-top: 0; }
  .process-grid::before,
  .process-grid::after { display: none; }
  .stage { padding-top: 18px; border-top: 1px solid var(--void-line); }
  .stage::before { display: none; }

  .compare-grid { grid-template-columns: 1fr; }
  .compare-col-dark { border-left: 0; border-top: 1px solid var(--void-line); }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .header-phone { display: none; }
  .header-call { display: inline-flex; }
  .header-actions { gap: 10px; }
  :root { --hdr-h: 66px; }
  .header-inner { gap: 14px; min-height: 66px; }
  .brand-text small { display: none; }
  .header-cta { display: none; }
  .mobile-nav { inset: var(--hdr-h) 0 0; }

  .hero { padding-block: calc(var(--hdr-h) + 26px) 44px; }
  .hero h1 { font-size: clamp(2.1rem, 8.8vw, 3.2rem); max-width: 100%; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-body { gap: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-stats { gap: 16px 20px; margin-top: 38px; }

  .ticker-track span { padding: 13px 20px; gap: 20px; font-size: 11px; }

  .hero-stats dt { font-size: 1.7rem; }
  .hero-stats dd { font-size: 12.5px; }

  .section { padding-block: 48px; }
  .section-head h2 { margin-top: 16px; }

  .service-row { grid-template-columns: 30px minmax(0, 1fr); gap: 0 12px; padding: 18px 4px; }
  .service-copy { grid-template-columns: 1fr; gap: 6px; }
  .service-copy h3 { font-size: 17px; }

  .product-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .review-split { grid-template-columns: 1fr; gap: 18px; }

  .process-grid { gap: 24px; }

  .principle-list { grid-template-columns: 1fr; gap: 0; }

  .compare-col { padding: 24px 20px; }
  .compare-rows > div { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }

  .faq-q { font-size: 16.5px; padding: 18px 0; }

  .contact-panel { grid-template-columns: 1fr; gap: 30px; }
  .contact-form { padding: 22px 18px; }
  .form-actions .btn { flex: 1 1 100%; justify-content: center; }
  .consent-docs { margin-left: 0; gap: 6px 18px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .legal-header .wrap { min-height: 66px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(1.95rem, 9.4vw, 2.6rem); }
  .eyebrow-end { display: none; }

  .shot-meta { display: none; }
  .hero-stats dd { max-width: 22ch; }
  .process-grid { grid-template-columns: 1fr; }
  .brand-text strong { font-size: 16.5px; }
  .form-consent { margin-top: 2px; }
  .legal { padding-block: 34px 56px; }
}

/* =========================================================
   УМЕНЬШЕННОЕ ДВИЖЕНИЕ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* =========================================================
   АДМИНАТОР · консоль парка машин
   Блоки продуктового сайта. Токены, шапка, кнопки, метки,
   секции, подвал и служебные страницы наследуются от
   корпоративного сайта IT Projects: стиль один на всю линейку.
   ========================================================= */

/* ---------- метка продукта в шапке ---------- */

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--hdr-line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hdr-muted);
  white-space: nowrap;
}
.product-tag b {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--hdr-ink);
}

/* ---------- три части продукта ---------- */

.parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(22px, 3vw, 48px);
}
.part {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.part-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.part h3 {
  margin-top: 12px;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}
.part p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
}
.part-spec {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--muted-soft);
}

/* ---------- сетка возможностей ---------- */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(20px, 2.6vw, 44px);
}
.feat {
  display: flex;
  flex-direction: column;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line-2);
}
.feat h3 {
  margin-top: 0;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.feat p {
  margin-top: 9px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.feat-spec {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* ---------- таблицы ---------- */

.table-wrap { margin-top: clamp(26px, 3.2vw, 40px); overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th {
  padding: 0 20px 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.table td {
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  vertical-align: top;
}
.table th:last-child,
.table td:last-child { padding-right: 0; }
.table td:first-child { color: var(--ink); font-weight: 500; }
.table-dark th { border-bottom-color: var(--void-line); color: var(--on-void-muted); }
.table-dark td { border-bottom-color: var(--void-line); color: var(--on-void-soft); }
.table-dark td:first-child { color: var(--on-void); }

/* ---------- тарифы ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.plan-dark {
  background: var(--void);
  border-color: var(--void-line);
  color: var(--on-void-soft);
}
.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.plan-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-dark .plan-name { color: var(--on-void-muted); }
.plan-flag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.plan-dark .plan-flag { color: var(--brand-bright); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-dark .plan-price { color: var(--on-void); }
.plan-price small {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.plan-dark .plan-price small { color: var(--on-void-muted); }
.plan-note {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}
.plan-dark .plan-note { color: var(--on-void-muted); }
.plan-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.plan-dark .plan-list { border-top-color: var(--void-line); }
.plan-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}
.plan-dark .plan-list li { color: var(--on-void-soft); }
.plan-list .icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  color: var(--brand);
}
.plan-dark .plan-list .icon { color: var(--brand-bright); }
.plan-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.plan-dark .plan-foot { border-top-color: var(--void-line); color: var(--on-void-muted); }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---------- калькулятор ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3.4vw, 56px);
  padding: clamp(22px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
/* Скрытые блоки калькулятора: .calc-row — flex, поэтому UA-правило [hidden]
   проигрывает авторскому display, скрываем явно. */
.calc [hidden] { display: none !important; }
.calc-field { margin-bottom: 26px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-label output {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
input[type="range"].calc-range {
  width: 100%;
  height: 28px;
  margin: 10px 0 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
input[type="range"].calc-range::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-2);
}
input[type="range"].calc-range::-moz-range-track {
  height: 2px;
  background: var(--line-2);
}
input[type="range"].calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -8px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--brand);
}
input[type="range"].calc-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--brand);
}
input[type="range"].calc-range:focus-visible { outline-offset: 6px; }
.calc-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}
.calc-tariff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.calc-tariff label {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.calc-tariff input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.calc-tariff b {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.calc-tariff span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-tariff label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.calc-tariff label:has(input:focus-visible) { outline: 2px solid var(--brand-ui); outline-offset: 2px; }

.calc-out {
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--void);
  border-radius: 6px;
  color: var(--on-void-soft);
}
.calc-total {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--on-void);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc-total small {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--on-void-muted);
  white-space: normal;
}
.calc-rows {
  display: grid;
  gap: 1px;
  margin-top: 20px;
  border-top: 1px solid var(--void-line);
}
.calc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--void-line);
  font-size: 13.5px;
  color: var(--on-void-muted);
}
.calc-row span:last-child {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--on-void);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc-hint {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--on-void-muted);
}

/* ---------- шаги быстрого старта ---------- */

.step-list { border-top: 1px solid var(--line-2); }
.step-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 clamp(14px, 2.4vw, 32px);
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--brand);
  padding-top: 4px;
}
.step-row h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step-row p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.step-row p + p { margin-top: 6px; }
.step-row .code { margin-top: 14px; }

/* ---------- блок кода ---------- */

.code {
  position: relative;
  background: var(--void);
  border: 1px solid var(--void-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.code pre {
  margin: 0;
  padding: 15px 60px 15px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: #d5e7db;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code pre::-webkit-scrollbar { height: 6px; }
.code pre::-webkit-scrollbar-thumb { background: var(--void-line); }
.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  background: rgba(237, 235, 229, 0.06);
  border: 1px solid var(--void-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-void-muted);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.code-copy:hover { background: rgba(237, 235, 229, 0.12); color: var(--on-void); }
.code-copy.is-done { color: var(--brand-bright); border-color: rgba(74, 222, 128, 0.4); }

/* ---------- линейка продуктов ---------- */

.lineup {
  padding-block: clamp(30px, 3.4vw, 46px);
  background: var(--void-2);
  border-top: 1px solid var(--void-line);
  color: var(--on-void-soft);
}
.lineup-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.lineup-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-void-muted);
}
.lineup-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(20px, 3vw, 44px);
}
.lineup-item { padding-top: 14px; border-top: 1px solid var(--void-line); }
.lineup-item b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--on-void);
}
.lineup-item span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--on-void-muted);
}
.lineup-item a { color: var(--on-void); border-bottom: 1px solid var(--void-line); }
.lineup-item a:hover { color: var(--brand-bright); border-bottom-color: var(--brand-bright); }
.lineup-item.is-current b::after {
  content: "вы здесь";
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bright);
  vertical-align: middle;
}
.lineup-more {
  grid-column: 1 / -1;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-void-muted);
}
.lineup-more a { color: var(--on-void); }
.lineup-more a:hover { color: var(--brand-bright); }

/* =========================================================
   ДОКУМЕНТАЦИЯ
   ========================================================= */

.doc-hero h1 {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 26ch;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.06;
}
.doc-hero .hero-body { align-items: start; }
.doc-hero .hero-lead { max-width: 62ch; }
.doc-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-void-muted);
}
.doc-crumbs a { color: var(--on-void-soft); }
.doc-crumbs a:hover { color: var(--brand-bright); }
.doc-crumbs span { opacity: 0.5; }

.doc-shell {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: start;
  padding-block: clamp(34px, 4.4vw, 64px) clamp(48px, 6vw, 92px);
}

/* оглавление */
.docs-toc {
  position: sticky;
  top: calc(var(--hdr-h) + 22px);
  max-height: calc(100vh - var(--hdr-h) - 48px);
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}
.docs-toc::-webkit-scrollbar { width: 4px; }
.docs-toc::-webkit-scrollbar-thumb { background: var(--line-2); }
.docs-toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.docs-toc-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.docs-toc-group { margin-top: 20px; }
.docs-toc-group > span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.docs-toc a,
.docs-toc-m a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0 7px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  border-left: 1px solid transparent;
  padding-left: 10px;
  margin-left: -10px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.docs-toc a i,
.docs-toc-m a i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--line-3);
  padding-top: 3px;
}
.docs-toc a:hover,
.docs-toc-m a:hover { color: var(--ink); }
.docs-toc a:hover i,
.docs-toc-m a:hover i { color: var(--brand); }
.docs-toc a[aria-current="true"],
.docs-toc-m a[aria-current="true"] {
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}
.docs-toc a[aria-current="true"] i,
.docs-toc-m a[aria-current="true"] i { color: var(--brand); }

.docs-toc-m { display: none; }

/* текст документа */
.doc { max-width: 78ch; min-width: 0; }
.doc-lede {
  font-size: clamp(16px, 1.2vw, 17.5px);
  line-height: 1.62;
  color: var(--text);
  padding-bottom: 8px;
}
.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: clamp(38px, 4.6vw, 62px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-2);
  font-size: clamp(1.42rem, 2.4vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  scroll-margin-top: calc(var(--hdr-h) + 24px);
}
.doc h2 .num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--brand);
}
.doc h3 {
  margin-top: 30px;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--hdr-h) + 24px);
}
.doc h4 {
  margin-top: 22px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.doc p {
  margin-top: 14px;
  font-size: 15.8px;
  line-height: 1.68;
  color: var(--text);
}
.doc h2 + p, .doc h3 + p, .doc h4 + p { margin-top: 12px; }
.doc ul,
.doc ol {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.doc li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}
.doc ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-ui);
}
.doc ol { counter-reset: doclist; }
.doc ol > li { counter-increment: doclist; padding-left: 24px; }
.doc ol > li::before {
  content: counter(doclist) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
}
.doc code {
  padding: 1px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.87em;
  color: var(--ink);
  white-space: nowrap;
}
.doc p code,
.doc li code,
.doc-note code {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}
.doc .code { margin-top: 16px; }
.doc .code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc .table { margin-top: 18px; }
.doc .table-wrap { margin-top: 18px; }
.doc a.text-link { margin-top: 16px; }
.doc a:not(.btn):not(.text-link):not(.code-copy) {
  color: var(--brand);
  border-bottom: 1px solid rgba(11, 107, 58, 0.3);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.doc a:not(.btn):not(.text-link):not(.code-copy):hover { border-bottom-color: var(--brand); }

/* врезка-заметка */
.doc-note {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--brand-tint);
  border-left: 2px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.doc-note-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.doc-note p,
.doc-note li { font-size: 14.8px; line-height: 1.62; color: var(--ink); }
.doc-note p { margin-top: 6px; }
.doc-note ul { margin-top: 8px; }
.doc-note ul > li::before { background: var(--brand); }
.doc-note-dark {
  background: var(--void);
  border-left-color: var(--brand-bright);
}
.doc-note-dark .doc-note-title { color: var(--brand-bright); }
.doc-note-dark p, .doc-note-dark li { color: var(--on-void-soft); }
.doc-note-dark ul > li::before { background: var(--brand-bright); }

/* навигация по главам */
.doc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(38px, 5vw, 60px);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.doc-up {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-up:hover { color: var(--brand); }
.doc-up .icon { width: 14px; height: 14px; transform: rotate(180deg); }

/* =========================================================
   АДАПТИВ ПРОДУКТОВОГО САЙТА
   ========================================================= */

@media (max-width: 1560px) {
  .product-tag { display: none; }
}

@media (max-width: 1180px) {
  .header-phone { display: none; }
  .header-call { display: inline-flex; }
  .nav { gap: clamp(12px, 1.6vw, 22px); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parts { grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 32px); }
  .part:last-child { grid-column: 1 / -1; margin-top: 24px; }
}

@media (max-width: 1080px) {
  .calc { grid-template-columns: 1fr; gap: 26px; }
  .lineup-inner { grid-template-columns: 1fr; gap: 18px; }
  .doc-shell { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-toc-m {
    display: block;
    margin-bottom: 8px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--card);
  }
  .docs-toc-m > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
  }
  .docs-toc-m > summary::-webkit-details-marker { display: none; }
  .docs-toc-m > summary .icon { width: 16px; height: 16px; color: var(--muted); transition: transform 0.25s var(--ease); }
  .docs-toc-m[open] > summary .icon { transform: rotate(45deg); }
  .docs-toc-m .docs-toc-body { padding: 4px 16px 18px; }
  .docs-toc-m .docs-toc-group:first-child { margin-top: 8px; }
  .doc { max-width: none; }
}

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; }
  .part-spec { margin-top: 16px; }
}

@media (max-width: 720px) {
  .product-tag { display: none; }
  .parts { grid-template-columns: 1fr; }
  .part:last-child { margin-top: 0; }
  .part { padding-top: 16px; margin-top: 20px; }
  .part:first-child { margin-top: 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat { padding: 16px 0 18px; }
  .step-row { grid-template-columns: 32px minmax(0, 1fr); }
  .plan { padding: 20px 18px; }
  .calc { padding: 18px 16px; }
  .calc-tariff { grid-template-columns: 1fr; }
  .calc-row { font-size: 13px; }
  .lineup-list { grid-template-columns: 1fr; gap: 16px; }
  .table { min-width: 520px; }
  .doc .table { min-width: 0; }
  .table th { padding-right: 14px; }
  .table td { padding: 12px 14px 12px 0; font-size: 14.5px; }
  .doc p, .doc li { font-size: 15.2px; }
  .table-wrap {
    scrollbar-width: thin;
    background:
      linear-gradient(to right, var(--paper), rgba(244, 246, 244, 0)) 0 0 / 26px 100% no-repeat local,
      linear-gradient(to left, var(--paper), rgba(244, 246, 244, 0)) 100% 0 / 26px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(10, 15, 13, 0.3), rgba(10, 15, 13, 0)) 0 0 / 16px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(10, 15, 13, 0.3), rgba(10, 15, 13, 0)) 100% 0 / 16px 100% no-repeat scroll;
  }
  .doc h2 { gap: 10px; }
  .doc-note { padding: 14px 15px; }
  .code pre,
  .doc .code code {
    padding-right: 16px;
    padding-bottom: 40px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  .doc .code code { padding-bottom: 0; }
  .code-copy {
    top: auto;
    bottom: 8px;
    right: 8px;
  }
}

@media (max-width: 560px) {
  .legal h1 { font-size: clamp(1.6rem, 7.4vw, 2.2rem); overflow-wrap: break-word; }
  .code pre { font-size: 11.5px; }
  /* таблицы справочника на узких экранах раскладываются в карточки */
  .doc .table,
  .doc .table tbody,
  .doc .table tr,
  .doc .table td { display: block; width: 100%; }
  .doc .table { border-collapse: separate; }
  .doc .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .doc .table tbody tr {
    padding: 14px 0 16px;
    border-top: 1px solid var(--line);
  }
  .doc .table tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .doc .table tbody td,
  .doc .table tbody td:last-child {
    padding: 0;
    border: 0;
    font-size: 14.5px;
    line-height: 1.55;
  }
  .doc .table td + td { margin-top: 10px; }
  .doc .table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-soft);
  }
  .doc .table td:first-child { font-weight: 600; }
  .doc .table td:first-child::before { display: none; }
  .doc .table code { font-size: 12px; padding: 1px 4px; }
  .table-wrap { background: none; }
  .doc-hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.5rem); }
  .doc-crumbs { font-size: 10px; }
  .plan-price { font-size: 2.4rem; }
  .calc-label output { font-size: 1.3rem; }
}

/* ---------- дополнения продуктовых блоков ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.shot-wide { max-width: 880px; }
/* Кадр с настоящим скриншотом шире: на 880 px подписи в консоли не читаются. */
.shot-wide:has(.shot-frame-img) { max-width: 1160px; }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
/* Заполненный кадр: рамка-плейсхолдер с плюсом больше не нужна, картинка
   задаёт пропорции сама (1596×871), иначе object-fit: cover срезал бы
   половину левой колонки. */
.shot-frame-img {
  aspect-ratio: auto;
  padding: 0;
  gap: 0;
  border-style: solid;
  overflow: hidden;
  background: var(--void);
}
.shot-frame-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.process-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px clamp(20px, 2.4vw, 36px);
  padding-top: 0;
}
.process-grid-3::before,
.process-grid-3::after { display: none; }
.process-grid-3 .stage {
  padding-top: 22px;
  border-top: 1px solid var(--void-line);
}
.process-grid-3 .stage::before {
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
}

@media (max-width: 980px) {
  .process-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .process-grid-3 { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- карточки документации ---------- */

.doc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
.doc-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.doc-card:hover { border-color: var(--brand-ui); transform: translateY(-2px); }
.doc-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.doc-card-tag .icon { width: 14px; height: 14px; }
.doc-card h3 {
  margin-top: 14px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}
.doc-card p {
  margin-top: 10px;
  font-size: 14.8px;
  line-height: 1.58;
  color: var(--muted);
}
.doc-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.doc-card-more .icon { width: 14px; height: 14px; transition: transform 0.22s var(--ease); }
.doc-card:hover .doc-card-more .icon { transform: translateX(3px); }
.calc-hint-light { color: var(--muted); }

/* ---------- адаптив дополнений ---------- */

@media (max-width: 980px) {
  .doc-cards { grid-template-columns: 1fr; }
}

/* ---------- печать ---------- */

/* Блоки появляются при прокрутке (html.js [data-reveal] { opacity: 0 }),
   поэтому в печать/PDF попали бы пустые страницы: раскрываем всё сразу. */
@media print {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ticker, #mobileNav, .site-header { display: none !important; }
}
