/* VOLY AI (1С) landing — палитра из hugo.yaml params.colors, инжектится в baseof.html. */

:root {
  --panel: #F6F4ED;
  --panel-2: #F7F5EE;
  --line: #B9B5A6;
  --line-2: #A9A596;
  --muted: #44433C;
  --muted-2: #33322C;
  --dot: #C8C4B5;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --pixel: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --display: var(--pixel);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; background: var(--bg); overflow-x: clip; }

.page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

h1, h2, h3 {
  font-family: var(--display);
  font-variant-ligatures: none;
  text-rendering: geometricPrecision;
}

.wrap { max-width: clamp(1080px, 92vw, 1560px); margin: 0 auto; padding: 0 40px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}
.btn--ghost {
  font-size: 15px; font-weight: 500;
  color: var(--accent); background: transparent;
  border: 2px solid var(--accent); padding: 10px 26px;
  transition: background .15s, color .15s;
}
.btn--ghost:hover { background: var(--accent); color: var(--bg); }

.btn--primary, .btn--secondary {
  font-size: 16px; font-weight: 600;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 30px;
  transition: transform .12s, box-shadow .12s;
}
.btn--primary { background: var(--accent); color: var(--panel-2); }
.btn--secondary { background: var(--panel-2); color: var(--ink); }
.btn--primary:hover, .btn--secondary:hover {
  transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink);
}
.btn-small { font-size: 13px; padding: 9px 18px; box-shadow: 3px 3px 0 var(--ink); }
.btn-large { font-size: 17px; padding: 16px 36px; }
/* Legacy single-dash aliases used by content markup. */
.btn-primary { font-family: var(--mono); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-size: 16px; font-weight: 600; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 14px 30px; background: var(--accent); color: var(--panel-2); transition: transform .12s, box-shadow .12s; }
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { font-family: var(--mono); cursor: pointer; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--accent); background: transparent; border: 2px solid var(--accent); padding: 10px 26px; transition: background .15s, color .15s; }
.btn-ghost:hover { background: var(--accent); color: var(--bg); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; max-width: clamp(1080px, 92vw, 1560px); margin: 0 auto; padding: 26px 40px 22px;
  border-bottom: 2px solid var(--ink);
}
.skip-link {
  position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-160%);
  padding: 10px 14px; color: var(--panel-2); background: var(--ink);
  font-family: var(--mono); font-size: 13px; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.nav__logo-link { display: flex; align-items: center; gap: 10px; line-height: 0; text-decoration: none; color: var(--ink); }
.nav__logo { display: block; }
.nav__logo img { display: block; width: 32px; height: 19px; }
.nav__brand { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.nav__links {
  display: flex; flex: 1; justify-content: center;
  gap: clamp(16px, 1.6vw, 24px);
  font-family: var(--mono); font-size: 14px;
}
.nav__link {
  cursor: pointer;
  transition: color .15s;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { color: var(--accent); }
.nav__link.is-active { color: var(--accent); }
.nav__link--cta { display: none; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__auth { display: flex; align-items: center; gap: 10px; }
.nav__desktop-actions { display: flex; align-items: center; gap: 10px; }
.nav__desktop-actions .nav__auth { gap: 10px; }
.nav__auth .btn { white-space: nowrap; }
.nav__auth .btn--ghost { padding: 10px 18px; }
.nav__auth .btn--primary { padding: 12px 22px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1; }
.lang-switch__item { padding: 6px 9px; color: var(--ink); text-decoration: none; border: 2px solid transparent; border-radius: 4px; opacity: .6; transition: opacity .15s ease, border-color .15s ease; }
.lang-switch__item:hover { opacity: 1; border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.lang-switch__item.is-active { opacity: 1; font-weight: 600; border-color: var(--ink); }
.lang-switch__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav__toggle { display: none; width: 42px; height: 42px; padding: 9px; flex-direction: column; justify-content: center; gap: 5px; color: var(--ink); background: var(--panel-2); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.nav__toggle span { display: block; width: 100%; height: 2px; background: currentColor; transition: transform .15s, opacity .15s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-inner-page .hero-inner { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; padding-bottom: 40px; }
.kicker {
  display: inline-flex; width: fit-content;
  margin: 0 0 18px; padding: 7px 12px;
  border: 1.5px solid var(--ink); color: var(--ink); background: var(--panel-2);
  box-shadow: 3px 3px 0 var(--ink); font-family: var(--mono); font-size: 12px;
  font-weight: 600; letter-spacing: .04em;
}
.hero h1 {
  font-weight: 700; font-size: clamp(44px, 6vw, 72px);
  line-height: 1.06; margin: 0 0 22px; letter-spacing: -.015em;
}
.hero-title-mask { display: block; }
.hero-inner-page h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.1; margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc { font-size: 18px; line-height: 1.55; margin: 0 0 22px; max-width: 560px; color: var(--muted-2); }
.hero-subtitle { font-family: var(--mono); font-size: 13.5px; line-height: 1.5; color: var(--muted-2); margin: -10px 0 26px; }
.hero-badges { display: flex; flex-direction: column; gap: 8px; margin: 0 0 30px; max-width: 520px; }
.hero-badge {
  position: relative; margin: 0; padding: 10px 14px 10px 30px;
  font-size: 13.5px; line-height: 1.4; color: var(--muted);
  border-left: 3px solid var(--line-2); background: var(--panel);
}
.hero-badge::before { content: "◆"; position: absolute; left: 10px; top: 11px; color: var(--accent); font-size: 10px; }
.hero-badge-paid { border-left-color: var(--accent); color: var(--muted-2); font-weight: 500; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-proof { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0; }

/* Hero promo image */
.hero-art { position: relative; }
.hero-promo { position: relative; width: clamp(300px, 46vw, 620px); max-width: 100%; margin: 0 auto; }
.hero-promo-image {
  display: block;
  width: 100%;
  height: auto;
  background: var(--panel-2);
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 64px 0; border-top: 1.5px solid var(--line-2); }
.section:first-of-type { border-top: none; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wrap h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.01em; }
.wrap h2 span { color: var(--accent); }
.section-desc { font-size: 17px; line-height: 1.6; margin: 0 0 32px; color: var(--muted-2); max-width: 680px; }
.section-intro { font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 680px; margin: 0 0 14px; }
.wrap-narrow { max-width: 820px; }
.copy-block { font-size: 16px; line-height: 1.65; color: var(--muted-2); max-width: 760px; margin: 0 0 18px; }

/* ── Demo panel (terminal-style) ─────────────────────────────────────── */
.demo-mockup {
  overflow: hidden; color: var(--panel-2); background: var(--ink);
  border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent);
  width: clamp(300px, 58vw, 780px); max-width: 100%; margin: 0 auto;
}
.demo-mockup-bar { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; color: var(--ink); background: var(--panel-2); border-bottom: 2px solid var(--accent); }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.demo-mockup-title { margin-left: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.demo-mockup-body { padding: 22px 24px 26px; }
.demo-video-body, .demo-image-body { padding: 0; }
.demo-video { display: block; width: 100%; height: auto; max-height: 100%; background: var(--ink); }
.demo-video:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.demo-image { display: block; width: 100%; height: auto; }
.demo-msg { margin-bottom: 18px; }
.demo-msg p { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.5; }
.demo-msg-user p { color: var(--panel-2); }
.demo-msg-user::before { content: "› "; color: var(--accent); font-family: var(--mono); font-weight: 700; }
.demo-table-wrap { overflow-x: auto; border: 1px solid color-mix(in srgb, var(--panel-2) 25%, transparent); margin-bottom: 14px; }
.demo-table { width: 100%; min-width: 480px; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.demo-table th, .demo-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--panel-2) 18%, transparent); white-space: nowrap; }
.demo-table th { color: var(--accent); text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.demo-table tbody tr:last-child td { border-bottom: 0; }
.demo-input-row {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  padding: 12px 16px; border: 1.5px dashed color-mix(in srgb, var(--panel-2) 30%, transparent);
}
.demo-input { flex: 1; font-family: var(--mono); font-size: 13px; color: color-mix(in srgb, var(--panel-2) 55%, transparent); }
.demo-send { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); background: var(--accent); padding: 7px 14px; }
.footnote.demo-footnote { width: 100%; max-width: 680px; margin: 18px auto 0; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ── Card grids ───────────────────────────────────────────────────────── */
.levels-section { background: var(--panel-2); }
.levels-grid { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; margin: 34px 0 0; }
.levels-grid::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; border-top: 2px dashed var(--line); z-index: 0; pointer-events: none; }
.level-card { position: relative; z-index: 1; border: 1.5px solid var(--line-2); border-top: 5px solid var(--accent); background: var(--panel); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s; }
.level-card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--accent); }
.level-card__no { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.level-card h3 { font-family: var(--display); font-weight: 600; font-size: 23px; margin: 0; }
.level-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.level-arrow { position: relative; z-index: 1; align-self: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); box-shadow: 3px 3px 0 var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--mono); color: var(--accent); font-size: 20px; font-weight: 600; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  border: 1.5px solid var(--line-2); background: var(--panel);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--accent); }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0; }
.card p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--muted); }
.card-outline { background: var(--panel-2); border-color: var(--ink); }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-vertical { display: flex; flex-direction: column; gap: 0; max-width: 720px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.steps-vertical .step { position: relative; padding: 0 0 34px 0; }
.steps-vertical .step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 0;
  border-left: 2px dashed var(--line-2);
}
.step-no {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 15px; font-weight: 600;
  border: 2px solid var(--ink); background: var(--panel-2); box-shadow: 3px 3px 0 var(--accent);
}
.step h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 6px 0 8px; }
.step p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--muted); max-width: 560px; }
.install-notes { margin: 26px 0 26px; display: flex; flex-direction: column; gap: 6px; }
.install-notes p { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pilot-status { max-width: 72ch; padding: 14px 18px; border-left: 4px solid var(--hill); background: var(--panel); color: var(--muted-2); line-height: 1.55; }
.pilot-form { margin-top: 28px; padding: 28px; text-align: left; border: 2px solid var(--ink); background: var(--panel); box-shadow: 8px 8px 0 var(--accent); }
.pilot-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.materials-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }

.pilot-form label { display: grid; gap: 7px; }
.pilot-form label > span { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.pilot-form .field-wide { grid-column: 1 / -1; }
.pilot-form input:not([type="checkbox"]), .pilot-form textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line-2); border-radius: 0;
  background: var(--panel-2); color: var(--ink); font: 15px/1.5 var(--sans);
}
.pilot-form textarea { resize: vertical; min-height: 136px; }
.pilot-form input:focus, .pilot-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pilot-consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px !important; margin: 20px 0; }
.pilot-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.pilot-consent a, .pilot-form .footnote a { color: var(--accent); }
.pilot-form .cf-turnstile { min-height: 65px; margin-bottom: 18px; }
.pilot-form-alert { margin: 0 0 18px; padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--panel-2); font-size: 14px; line-height: 1.5; }
.pilot-form-alert.is-success {
  display: flex; align-items: center; gap: 12px; width: fit-content; min-width: 220px;
  padding: 14px 20px; border: 2px solid var(--ink); background: var(--hill);
  box-shadow: 4px 4px 0 var(--ink); color: var(--ink); font-family: var(--mono);
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.pilot-form-alert.is-success::before {
  content: "✓"; display: grid; place-items: center; width: 26px; height: 26px;
  border: 2px solid currentColor; font: 700 16px/1 var(--sans);
}
.pilot-form button[disabled] { cursor: wait; opacity: .65; }

/* ── Data policy ─────────────────────────────────────────────────────── */
.policy { padding-bottom: 72px; }
.policy h2 { margin-top: 42px; }
.policy h3 { margin: 28px 0 10px; font-size: 20px; }
.policy p, .policy li { max-width: 76ch; font-size: 16px; line-height: 1.65; color: var(--muted-2); }
.policy li + li { margin-top: 8px; }
.policy-callout { margin: 28px 0; padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--panel); }
.method { padding-bottom: 72px; }

.method h2 { margin-top: 42px; }
.method h3 { margin: 28px 0 10px; font-size: 20px; }
.method p, .method li { max-width: 76ch; font-size: 16px; line-height: 1.65; color: var(--muted-2); }
.method li + li { margin-top: 8px; }
.method table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.method th, .method td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1.5px solid var(--line-2); }
.method th { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.method a:not(.btn) {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
.method a:not(.btn):hover { color: var(--accent); }
.method .formula {
  margin: 20px 0 24px;
  padding: 18px 22px 16px;
  overflow-x: auto;
  background: var(--panel);
  border: 1.5px solid var(--line-2);
  border-left: 4px solid var(--accent);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  white-space: normal;
}
.method .formula .katex-display { margin: 0; }
.method .formula .katex-display > .katex {
  display: block;
  text-align: left;
  white-space: nowrap;
}
.method .math { color: var(--ink); }
.method .math .katex { font-size: 1.08em; }
.method-next { margin-top: 36px; }

/* Forecast formulas drift only behind the method-page hero. */
.hero-formulas { position: relative; overflow: hidden; }
.formula-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.formula-field__bokeh,
.formula-field__stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.formula-field__stage { visibility: hidden; }
.formula-field.is-ready .formula-field__stage { visibility: visible; }
.formula-field__item {
  position: absolute; left: 0; top: 0;
  color: var(--ink); white-space: nowrap;
  will-change: transform, filter;
}
.formula-field__item.is-digit { font-family: var(--mono); color: var(--accent); }
.formula-field .katex { font-size: 1em; color: inherit; }
.hero-formulas .hero-inner { position: relative; z-index: 1; }
.hero-formulas__copy { position: relative; }
.hero-formulas .hero-desc { margin-bottom: 8px; }
.formula-field__caption {
  min-height: 1.2em; margin: 0;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em;
  color: var(--hill); opacity: 0;
  transition: opacity .5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .formula-field__bokeh,
  .formula-field__caption { display: none; }
  .formula-field__item { filter: none !important; }
}

/* ── Config list ──────────────────────────────────────────────────────── */
.config-list { border-top: 2px solid var(--ink); margin: 0 0 22px; }
.config-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.config-row dt { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.config-row dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted-2); white-space: pre-line; }
.config-note { font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 720px; margin: 0; }

/* ── Promise (can / cannot) ──────────────────────────────────────────── */
.promise-col { padding: 26px 24px; border: 1.5px solid var(--line-2); background: var(--panel); }
.promise-can { border-left: 4px solid var(--accent); }
.promise-cannot { border-left: 4px solid var(--line-2); }
.promise-col h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0 0 14px; }
.promise-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promise-col li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--muted-2); }
.promise-can li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.promise-cannot li::before { content: "✕"; position: absolute; left: 0; color: var(--muted); }
.footnote { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 20px 0 0; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1.5px solid var(--line-2); background: var(--panel); padding: 4px 20px; }
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary {
  cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 600;
  font-size: 16.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ── Requirements list ────────────────────────────────────────────────── */
.req-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.req-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.req-list li::before { content: "◆"; position: absolute; left: 0; top: 2px; color: var(--accent); font-size: 11px; }

/* ── Final CTA ────────────────────────────────────────────────────────── */
.cta-final { text-align: center; padding: 72px 0; }
.cta-final h2 { max-width: 640px; margin: 0 auto 26px; font-size: clamp(24px, 3vw, 32px); }
.requirements-section h2 { margin-bottom: 18px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { border-top: 2px solid var(--ink); margin-top: 40px; }
.footer__top { display: grid; grid-template-columns: minmax(160px, 220px) 1fr 1fr; gap: 28px 40px; align-items: start; padding: 28px 40px 8px; }
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.footer__brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; }
.footer__logo { display: inline-flex; }
.footer__logo img { width: 72px; height: auto; }
.footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.footer__col-title { font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__link {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
.footer__link:hover { color: var(--accent); }
.footer__top-link { text-decoration: none; color: var(--muted); }
.footer__bottom {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px;
  margin-top: 18px; padding: 16px 76px 22px 40px; border-top: 1.5px solid var(--line-2);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}
.footer__1c { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.footer__1c img { width: 84px; height: auto; flex: none; }
.footer__1c span { max-width: 18ch; font-size: 12px; line-height: 1.35; }
.footer__legal { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; }
.footer__copyright { color: var(--muted); }
.footer__trademarks { font-size: 11.5px; line-height: 1.45; opacity: .72; }
.footer__top-link { justify-self: end; white-space: nowrap; }

/* ── Product story: audit, proof and security ───────────────────────── */
.proof-strip {
  display: grid;
  /* Колонка на каждый пункт, сколько бы их ни было: в ru.yaml, kk.yaml и на
     странице аудита их четыре, а жёсткие три колонки уводили четвёртый пункт
     на вторую строку, где span + span давал ему левую границу вместо верхней. */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  margin-top: 46px;
  border: 2px solid var(--ink);
  background: var(--panel-2);
  box-shadow: 5px 5px 0 var(--ink);
}
.proof-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.proof-strip span + span { border-left: 1.5px solid var(--line-2); }
/* Отступ до карточек ниже: без него тень полосы ложится на их верх. */
.analytics-section .proof-strip { margin-bottom: 34px; }

.thesis-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.thesis-copy { border-left: 5px solid var(--accent); padding-left: 28px; }
.thesis-copy p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted-2); }
.thesis-copy p + p { margin-top: 18px; }

.checks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 26px; }
.check-card {
  position: relative; min-height: 205px; padding: 28px 24px 24px;
  border: 1.5px solid var(--line-2); background: var(--panel);
  --stamp: 0;
  box-shadow: calc(var(--stamp) * 1px) calc(var(--stamp) * 1px) 0 var(--accent);
  translate: calc(var(--stamp) * 0.5px) calc(var(--stamp) * 0.5px);
}
.check-card:nth-child(1), .check-card:nth-child(5) { border-top: 5px solid var(--accent); }
.check-card__no, .audit-row__no { display: block; margin-bottom: 32px; color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.check-card h3 { margin: 0 0 10px; font-size: 21px; }
.check-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.text-link {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}
.text-link:hover { color: var(--accent); }

.case-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(36px, 7vw, 96px); align-items: center; }
.case-number {
  width: fit-content; margin: 8px 0 4px; color: var(--accent);
  font-family: var(--mono); font-size: clamp(52px, 8vw, 96px); font-weight: 700;
  line-height: .95; letter-spacing: -.06em;
  --stamp: 0;
  text-shadow: calc(var(--stamp) * 1px) calc(var(--stamp) * 1px) 0 var(--ink);
  translate: calc(var(--stamp) * 0.5px) calc(var(--stamp) * 0.5px);
}
.case-copy h2 { max-width: 480px; }
.case-basis {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 4px; max-width: 420px;
}
.case-basis__bar {
  display: block; height: 3px; flex: 1; min-width: 48px;
  background: var(--accent);
}
.case-basis__label {
  flex: 0 0 auto;
  color: var(--muted); font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.check-card.is-finding-match { border-color: var(--ink); }
.level-card.is-active { border-color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
.js-motion-process .step.is-active .step-no,
.js-motion-install .step.is-active .step-no {
  background: var(--accent); color: var(--panel-2); border-color: var(--ink);
}
.js-motion-process .step.is-active h3,
.js-motion-install .step.is-active h3 { color: var(--ink); }
.case-note { max-width: 500px; margin: 24px 0 0; padding-top: 16px; border-top: 1.5px solid var(--line-2); color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.55; }
.case-grid .demo-mockup { width: 100%; }
.case-image { display: block; width: 100%; height: auto; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); }

.steps-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 28px; }
.security-teaser { color: var(--panel-2); background: var(--ink); }
.security-teaser .eyebrow { color: var(--accent); }
.security-teaser .section-desc { color: color-mix(in srgb, var(--panel-2) 78%, transparent); }
.security-teaser__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.security-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--panel-2) 35%, transparent); }
.security-points li { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--panel-2) 35%, transparent); }
.security-points strong { font-size: 16px; }
.security-points span { color: color-mix(in srgb, var(--panel-2) 68%, transparent); font-size: 14px; line-height: 1.5; }

.audit-list { border-top: 2px solid var(--ink); margin-top: 34px; }
.audit-row { display: grid; grid-template-columns: 60px 1.2fr .8fr; gap: 28px; padding: 28px 0; border-bottom: 1.5px solid var(--line-2); }
.audit-row__no { margin: 5px 0 0; }
.audit-row h3 { margin: 0 0 10px; font-size: 24px; }
.audit-row p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.audit-row__result { padding-left: 24px; border-left: 3px solid var(--accent); }
.audit-row__result strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.finding-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 34px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.finding-grid > div { padding: 22px 18px; }
.finding-grid > div + div { border-left: 1.5px solid var(--line-2); }
.finding-grid span { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.finding-grid p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.security-hero { background: var(--ink); color: var(--panel-2); }
.security-hero .hero-desc { color: color-mix(in srgb, var(--panel-2) 78%, transparent); }
.security-hero .pilot-status { background: color-mix(in srgb, var(--panel-2) 10%, transparent); border-left-color: var(--accent); color: var(--panel-2); }
.security-guard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.security-guard { min-height: 270px; padding: 24px; border: 1.5px solid var(--line-2); background: var(--panel); }
.security-guard > span { color: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.security-guard h3 { margin: 46px 0 12px; font-size: 21px; }
.security-guard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.data-flow { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); background: var(--panel-2); }
.data-flow--3col { grid-template-columns: repeat(3, 1fr); }
.data-flow li { padding: 22px 18px; }
.data-flow li + li { border-left: 1.5px solid var(--line-2); }
.data-flow li > span { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.data-flow h3 { margin: 32px 0 10px; font-size: 17px; }
.data-flow li > h3:first-child { margin-top: 0; }
.data-flow p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.security-cta { margin: 28px 0 0; }

/* Product story and primary application path. */
.nav__logo-link, .nav__right { flex-shrink: 0; }
.nav__logo-link > img { width: 40px; height: 24px; }
.nav__right { gap: 16px; }
.nav__auth { gap: 16px; }
.nav__desktop-actions { gap: 12px; }
.nav__desktop-actions .nav__auth { gap: 12px; }
.nav__desktop-actions .btn { font-size: 12px; padding: 10px 12px; }
:where(a,button,input,summary):focus-visible { outline: 3px solid var(--hill); outline-offset: 4px; }
.hero-copy, .hero-art, .case-grid > *, .application-grid > * { min-width: 0; }
.home-page .hero h1 { font-size: clamp(36px, 4.2vw, 62px); }
.home-page .section { padding-top: 56px; padding-bottom: 56px; }
.hero-promo {
  margin: 0; width: 100%; padding: 10px;
  border: 2px solid var(--ink); background: var(--panel-2);
  box-shadow: 7px 7px 0 var(--accent);
}
.hero-promo video { border: 1px solid var(--ink); aspect-ratio: 16 / 9; object-fit: contain; }
.hero-promo figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 10px; font: 13px/1.5 var(--mono); color: var(--muted);
}
.video-open-link {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  padding: 8px 11px; border: 1.5px solid var(--accent);
  color: var(--accent); background: transparent;
  font-weight: 600; text-decoration: none;
  transition: background .15s, color .15s;
}
.video-open-link:hover { color: var(--bg); background: var(--accent); }
.case-figure { margin: 0; min-width: 0; }
.image-preview { display: block; color: var(--ink); text-decoration: none; }
.image-preview__label { display: inline-block; margin-top: 20px; font: 13px var(--mono); text-decoration: underline; text-underline-offset: 4px; }
.case-metrics { display: flex; gap: 40px; margin: 22px 0; }
.case-metrics dt { color: var(--muted); font: 12px var(--mono); }
.case-metrics dd { font-size: 27px; font-weight: 600; margin: 6px 0 0; }
.case-next { font-size: 15px; line-height: 1.6; }
.case-next strong { display: block; margin-bottom: 4px; }
.case-copy .section-desc { margin-bottom: 0; }
.home-page .case-number { font-size: clamp(48px, 6vw, 76px); }
.home-page .check-card { min-height: 0; padding: 22px; }
.home-page .check-card__no { margin-bottom: 16px; }
.home-page .check-card h3 { font-size: 20px; }
.home-page .process-section h2, .ai-section h2 { margin-bottom: 30px; }
.card .question-example { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.section-note { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 24px 0 0; }
.fit-section .grid-2 { gap: 56px; }
.fit-section h2 { font-size: clamp(26px, 3vw, 38px); }
.fit-section p, .planned-section p { line-height: 1.65; }
.data-summary { border-left: 4px solid var(--hill); padding-left: 28px; }
.planned-section { background: var(--panel); }
.planned-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.status-label { display: inline-block; padding: 6px 10px; border: 1.5px solid var(--ink); font: 12px var(--mono); margin-bottom: 12px; }
.pricing-section { background: var(--ink); color: var(--panel-2); }
.pricing-section .eyebrow { color: var(--accent); }
.pricing-section h2 { max-width: 760px; }
.pricing-lead { max-width: 720px; color: var(--line); }
.pricing-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; margin-top: 34px; }
.price-card { padding: 30px; border: 2px solid var(--panel-2); background: var(--panel-2); color: var(--ink); box-shadow: 8px 8px 0 var(--accent); }
.price-card__label { margin: 0 0 8px; color: var(--muted); font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.price-card__value { margin: 0; color: var(--accent); font-family: var(--display); font-size: clamp(64px, 8vw, 104px); font-weight: 700; line-height: .95; }
.price-card__period { margin: 10px 0 18px; font: 600 16px var(--mono); }
.price-card h3, .pricing-details h3 { margin: 24px 0 10px; font-size: 19px; }
.price-card ul, .pricing-details ul { margin: 0 0 26px; padding-left: 20px; line-height: 1.65; }
.price-card .btn { margin-top: 4px; }
.pricing-details { display: grid; align-content: start; gap: 2px; padding: 4px 8px 4px 20px; }
.pricing-details > div { padding: 0 0 22px; border-bottom: 1.5px solid color-mix(in srgb, var(--panel-2) 30%, transparent); }
.pricing-details p, .pricing-details li { color: var(--line); line-height: 1.65; }
.pricing-note { margin: 20px 0 0; padding: 16px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--panel-2) 8%, transparent); }
.application-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.application-grid .pilot-form { margin-top: 18px; }
.contact-line { font-size: 14px; line-height: 1.7; }
.contact-line a { color: var(--ink); white-space: nowrap; }
.pilot-form .configuration-unknown { display: flex; align-items: flex-start; gap: 9px; margin-top: 12px; }
.configuration-unknown input { flex-shrink: 0; margin-top: 3px; }
.pilot-form input:disabled { background: var(--bg); opacity: .65; }
.pilot-form button:disabled { opacity: .6; cursor: progress; }
#pilot-form, #demo { scroll-margin-top: 24px; }
.image-dialog { width: min(96vw, 1600px); max-width: 96vw; max-height: 92vh; padding: 20px; border: 2px solid var(--ink); background: var(--bg); }
.image-dialog::backdrop { background: rgb(0 0 0 / .75); }
.image-dialog__close { display: block; margin: 0 0 18px auto; padding: 10px 14px; border: 2px solid var(--ink); background: var(--accent); color: var(--ink); font: 14px var(--mono); cursor: pointer; }
.image-dialog__scroll { overflow: auto; max-height: 70vh; }
.image-dialog img { display: block; width: 100%; min-width: 1000px; height: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-flip-checks .check-card:first-child { --stamp: 4; border-color: var(--ink); }
  .case-number { --stamp: 4; }
}

/* ── Cookie consent ────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px 32px;
  background: var(--ink);
  color: var(--panel-2);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -6px 0 var(--accent);
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
}
.cookie-banner__text {
  flex: 1;
  margin: 0;
  color: color-mix(in srgb, var(--panel-2) 85%, transparent);
}
.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__text a:hover {
  color: color-mix(in srgb, var(--accent) 80%, white);
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-banner__btn {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.cookie-banner__btn--accept {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.cookie-banner__btn--accept:hover {
  background: color-mix(in srgb, var(--accent) 85%, white);
}
.cookie-banner__btn--decline {
  background: transparent;
  color: var(--panel-2);
  border-color: color-mix(in srgb, var(--panel-2) 40%, transparent);
}
.cookie-banner__btn--decline:hover {
  border-color: var(--panel-2);
  background: color-mix(in srgb, var(--panel-2) 10%, transparent);
}
.cookie-banner.is-hidden {
  display: none;
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px 20px;
  }
  .cookie-banner__actions {
    gap: 10px;
  }
  .cookie-banner__btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 14px 20px;
  }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .nav { padding: 22px 24px 20px; }
}
@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .nav { padding: 20px 24px 18px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { margin-top: 8px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .checks-grid, .security-guard-grid { grid-template-columns: 1fr 1fr; }
  .steps-4 { grid-template-columns: 1fr 1fr; }
  .proof-strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .proof-strip span:nth-child(odd) { border-left: 0; }
  .proof-strip span:nth-child(n+3) { border-top: 1.5px solid var(--line-2); }
  .case-grid, .security-teaser__inner, .thesis-grid { grid-template-columns: 1fr; }
  .finding-grid { grid-template-columns: repeat(2, 1fr); }
  .finding-grid > div:nth-child(odd) { border-left: 0; }
  .finding-grid > div:nth-child(n+3) { border-top: 1.5px solid var(--line-2); }
  .data-flow { grid-template-columns: 1fr 1fr; }
  .data-flow li:nth-child(odd) { border-left: 0; }
  .data-flow li:nth-child(n+3) { border-top: 1.5px solid var(--line-2); }
  .data-flow--3col { grid-template-columns: 1fr; }
  .data-flow--3col li { border-left: 0 !important; border-top: 1.5px solid var(--line-2); }
  .data-flow--3col li:first-child { border-top: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 1400px) {
  .nav__links { display: none; position: absolute; z-index: 20; top: 100%; left: 0; right: 0; padding: 12px 0 16px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 2px solid var(--ink); box-shadow: 0 8px 0 color-mix(in srgb, var(--ink) 8%, transparent); }
  .nav.is-open .nav__links { display: flex; }
  .nav__link { padding: 11px 24px; }
  .nav__link:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
  .nav__link--cta, .nav__link--download {
    display: inline-flex; align-items: center; justify-content: center;
    width: fit-content; min-width: 220px; margin: 5px 24px; padding: 10px 14px;
    border: 2px solid var(--accent); color: var(--accent); background: transparent;
    font-weight: 600;
  }
  .nav__link--cta:hover, .nav__link--download:hover { color: var(--bg); background: var(--accent); }
  .nav__link--cta[data-track="pilot_cta"] {
    border-color: var(--ink); color: var(--panel-2); background: var(--accent);
    box-shadow: 3px 3px 0 var(--ink);
  }
  .nav__toggle { display: flex; }
  .nav__desktop-actions { display: none; }
  .lang-switch { font-size: 12px; }
  .lang-switch__item { padding: 5px 7px; }
}
@media (max-width: 640px) {
  .footer__bottom { grid-template-columns: 1fr auto; }
  .footer__1c { grid-column: 1 / -1; }
  .hero { padding: 40px 0 44px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr; gap: 14px; }
  .levels-grid::before { left: 50%; right: auto; top: 3%; bottom: 3%; border-top: 0; border-left: 2px dashed var(--line); }
  .level-arrow { transform: rotate(90deg); justify-self: center; }
  .proof-strip, .checks-grid, .security-guard-grid, .steps-4, .finding-grid, .data-flow { grid-template-columns: 1fr; }
  .proof-strip { grid-auto-flow: row; }
  .proof-strip span + span, .finding-grid > div + div, .data-flow li + li { border-left: 0; border-top: 1.5px solid var(--line-2); }
  .audit-row { grid-template-columns: 46px 1fr; gap: 18px; }
  .audit-row__result { grid-column: 2; }
  .security-points li { grid-template-columns: 1fr; gap: 6px; }
  .config-row { grid-template-columns: 1fr; gap: 4px; }
  .footer__top { grid-template-columns: 1fr 1fr; padding: 24px 20px 0; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { padding: 16px 68px 22px 20px; }
  .hero-promo { max-width: 100%; }
  .hero-promo figcaption { align-items: stretch; flex-direction: column; }
  .video-open-link { width: 100%; }
  .demo-mockup-body { padding: 18px 16px 20px; }
  .demo-table { min-width: 420px; }
  .pilot-form { padding: 22px 18px; box-shadow: 5px 5px 0 var(--accent); }
  .pilot-form-grid { grid-template-columns: 1fr; }
  .pilot-form .field-wide { grid-column: auto; }
  .pilot-form .btn { width: 100%; justify-content: center; white-space: normal; }
}
@media (max-width: 480px) {
  .nav { padding: 14px 16px 12px; gap: 12px; }
  .nav__logo img { width: 28px; height: 16px; }
  .nav__brand { font-size: 16px; }
  .nav__toggle { width: 38px; height: 38px; }
  .nav__link--cta, .nav__link--download { width: calc(100% - 32px); min-width: 0; margin-right: 16px; margin-left: 16px; }
  .hero { padding: 30px 0 34px; }
  .hero-inner { gap: 24px; }
  .hero h1 { font-size: clamp(27px, 8vw, 34px); line-height: 1.12; }
  .hero-inner-page .hero-inner { min-width: 0; }
  .security-hero .btn { width: fit-content; max-width: 100%; justify-content: center; text-align: center; white-space: normal; }
  .hero-desc { font-size: 15.5px; line-height: 1.5; }
  .hero-subtitle { font-size: 12.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-art { margin-top: 2px; }
}

@media (max-width: 1400px) {
  .nav__right { margin-left: auto; }
  .nav__links { max-height: calc(100dvh - 80px); overflow-y: auto; }
}
@media (max-width: 980px) {
  .planned-inner, .pricing-grid, .application-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-details { padding-left: 0; }
  .application-grid .steps-vertical { max-width: none; }
}
@media (max-width: 640px) {
  .home-page .section { padding-top: 36px; padding-bottom: 36px; }
  .home-page .hero h1 { font-size: clamp(30px, 8vw, 42px); }
  .home-page .check-card { padding: 18px; }
  .home-page .check-card__no { margin-bottom: 10px; }
  .home-page .case-grid { gap: 24px; }
  .home-page .grid-3 { gap: 14px; }
  .data-summary { padding-left: 18px; }
  .hero-cta .btn { white-space: normal; text-align: center; }
  .image-dialog { padding: 12px; }
}

/* ── Плавающий виджет связи ────────────────────────────────────────────── */
.dock {
  position: fixed; right: 20px; bottom: calc(20px + var(--cookie-banner-h, 0px)); z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.dock__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dock__group { position: relative; list-style: none; }
.dock__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; color: var(--ink); background: var(--panel-2);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  text-decoration: none; font: inherit; transition: transform .12s, box-shadow .12s, background .15s, color .15s;
}
.dock__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock__btn svg.dock__icon--fill { fill: currentColor; stroke: none; }
.dock__text {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; line-height: 1;
}
.dock__btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); color: var(--accent); }
.dock__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dock__btn--accent { background: var(--accent); color: var(--panel-2); }
.dock__btn--accent:hover { color: var(--panel-2); }
.dock__group.is-open > .dock__group-toggle { color: var(--accent); }
.dock__label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  padding: 7px 12px; white-space: nowrap; font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--panel-2); background: var(--ink); border: 2px solid var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.dock__btn:hover .dock__label, .dock__btn:focus-visible .dock__label { opacity: 1; transform: translate(0, -50%); }
.dock__group.is-open > .dock__group-toggle .dock__label { opacity: 0; }
.dock__flyout {
  position: absolute; right: calc(100% + 10px); top: 50%;
  display: flex; flex-direction: row-reverse; align-items: center; gap: 10px;
  list-style: none; margin: 0; padding: 0;
  transform: translate(12px, -50%); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.dock__group.is-open .dock__flyout {
  transform: translate(0, -50%); opacity: 1; pointer-events: auto;
}
.dock__flyout .dock__label {
  right: auto; left: 50%; top: auto; bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
}
.dock__flyout .dock__btn:hover .dock__label,
.dock__flyout .dock__btn:focus-visible .dock__label {
  transform: translate(-50%, 0);
}
.dock__flyout[hidden] { display: none !important; }
.dock__toggle { display: none; }
.dock__icon-close { display: none; }
@media (max-width: 760px) {
  .dock { right: 14px; bottom: calc(14px + var(--cookie-banner-h, 0px)); }
  .dock__toggle { display: inline-flex; background: var(--accent); color: var(--panel-2); }
  .dock__toggle:hover { color: var(--panel-2); }
  .dock__list { display: none; }
  .dock.is-open .dock__list { display: flex; }
  .dock.is-open .dock__icon-open { display: none; }
  .dock.is-open .dock__icon-close { display: block; }
  /* Подписи основных кнопок — пока список открыт; у раскрытой группы — у подменю. */
  .dock.is-open .dock__list > li > .dock__btn > .dock__label { opacity: 1; transform: translate(0, -50%); }
  .dock.is-open .dock__group.is-open > .dock__group-toggle .dock__label { opacity: 0; }
  .dock.is-open .dock__group.is-open .dock__flyout .dock__label { opacity: 1; transform: translate(-50%, 0); }
  .dock__label { white-space: normal; width: max-content; max-width: calc(100vw - 180px); text-align: right; line-height: 1.35; }
  .dock__flyout .dock__label { text-align: center; max-width: 9ch; }
}
@media (prefers-reduced-motion: reduce) {
  .dock__btn, .dock__label, .dock__flyout { transition: none; }
}

/* ── Прогноз продаж на главной ─────────────────────────────────────────── */
.forecast-section { background: var(--panel-2); }
.forecast-figure { margin: 32px 0 40px; }
.forecast-figure .section-note { margin-top: 18px; }
.forecast-grid { margin-bottom: 44px; }
.forecast-how-title { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 22px; }
.forecast-how-title a { color: inherit; text-decoration: none; }
.forecast-how-title a:hover { color: var(--accent); }
.page-links { padding: 8px 0 4px; }
.page-links__title {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.page-links__row { margin: 0; max-width: 78ch; font-size: 16px; line-height: 1.9; }
.page-links__item { white-space: nowrap; }
.page-links__dot { color: var(--muted); }
@media (max-width: 640px) {
  .page-links__row { display: grid; gap: 8px; }
  .page-links__item { white-space: normal; }
  .page-links__dot { display: none; }
}
.page-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
.page-links a:hover { color: var(--accent); }
.forecast-bridge { margin: 36px 0 0; padding: 18px 22px; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); border-left: 4px solid var(--accent); }
.forecast-bridge .text-link { white-space: nowrap; }

/* Pricing: shared product cards on the landing and the dedicated page. */
.tariff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.tariff-card { padding: 28px; background: var(--panel); border: 2px solid var(--ink); border-left: 5px solid var(--accent); box-shadow: 5px 5px 0 var(--ink); min-width: 0; }
.tariff-card h3 { font-family: var(--display); font-size: 28px; margin: 0 0 16px; }
.tariff-purpose { color: var(--muted); min-height: 80px; }
.tariff-prices { display: flex; flex-wrap: wrap; gap: 20px 32px; margin: 24px 0; }
.tariff-prices dt { font-family: var(--mono); font-size: 13px; margin-bottom: 8px; }
.tariff-prices dd { margin: 0; font-family: var(--display); font-size: clamp(25px, 2.4vw, 36px); font-weight: 700; white-space: nowrap; color: var(--accent); }
.tariff-features { padding-left: 22px; line-height: 1.65; }
.tariff-features li { margin-bottom: 12px; }
.tariff-note { padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 14px; line-height: 1.6; }
.tariff-suite { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; padding: 28px 32px; background: var(--hill); color: #fff; }
.tariff-suite h3 { margin: 0 0 12px; font-size: 30px; }
.tariff-suite p { margin: 0; max-width: 610px; }
.tariff-suite .tariff-prices { margin: 0; }
.tariff-suite .tariff-prices dd { color: #fff; }
.tariff-products { padding-top: 0; }
.pricing-page .hero-desc { max-width: 780px; }
.pricing-page .hero-cta .btn { white-space: normal; text-align: center; }
.tariff-table-wrap { overflow-x: auto; margin-top: 28px; }
.tariff-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.tariff-table th, .tariff-table td { text-align: left; padding: 20px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tariff-table thead { background: var(--ink); color: #fff; font-family: var(--mono); font-size: 14px; }
.tariff-table tbody th { font-weight: 500; }
.tariff-table tbody tr:nth-child(odd) { background: var(--panel); }
.tariff-table td:last-child { font-weight: 600; }
.tariff-services, .tariff-related { background: var(--panel); }
.tariff-trial { background: var(--hill); color: #fff; }
.tariff-trial .eyebrow, .tariff-trial .section-desc { color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .tariff-grid { grid-template-columns: 1fr; }
  .tariff-purpose { min-height: 0; }
  .tariff-suite { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .tariff-card, .tariff-suite { padding: 22px; }
  .tariff-table th, .tariff-table td { padding: 12px 9px; font-size: 14px; overflow-wrap: anywhere; }
  .tariff-table { min-width: 340px; }
  .pricing-section .hero-cta { align-items: flex-start; flex-direction: column; }
  .tariff-related .btn { white-space: normal; }
}

.materials-grid .btn { white-space: normal; overflow-wrap: anywhere; }

.fresh-home.section { padding: 28px 0 36px; }
.fresh-home__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch;
}
.fresh-home__row .fresh-card,
.fresh-home__row .one-c-card {
  height: 100%; min-height: 100%; margin: 0;
  grid-template-columns: 128px 1fr; gap: 18px; align-items: center;
}
.fresh-home__row .one-c-card a {
  display: flex; align-items: center; justify-content: center; height: 100%;
}
.fresh-home__row .one-c-card img { margin: 0 auto; }
.one-c-card {
  display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center;
  padding: 16px; background: var(--panel); border: 2px solid var(--ink);
  --stamp: 4;
  box-shadow: calc(var(--stamp) * 1px) calc(var(--stamp) * 1px) 0 var(--ink);
  translate: calc(var(--stamp) * 0.5px) calc(var(--stamp) * 0.5px);
}
.one-c-card img { display: block; width: 120px; height: auto; border: 0; }
.one-c-card strong { display: block; margin: 0 0 6px; font-size: 18px; line-height: 1.25; }
.one-c-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.fresh-section .one-c-card { margin-bottom: 28px; }
.distributor-badge {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  width: 140px; color: inherit; text-decoration: none;
}
.distributor-badge img { width: 88px; height: auto; border: 0; }
.distributor-badge span { font-family: var(--mono); font-size: 12px; line-height: 1.35; }
.footer__bottom .distributor-badge { width: 160px; }
.fresh-card {
  display: grid; grid-template-columns: 128px 1fr; gap: 18px; align-items: center;
  margin-top: 0; padding: 16px; max-width: none;
  color: inherit; text-decoration: none;
  background: var(--panel); border: 2px solid var(--ink);
  --stamp: 4;
  box-shadow: calc(var(--stamp) * 1px) calc(var(--stamp) * 1px) 0 var(--accent);
  translate: calc(var(--stamp) * 0.5px) calc(var(--stamp) * 0.5px);
}
.fresh-card__mark {
  display: flex; align-items: center; justify-content: center; line-height: 0;
}
.fresh-card__mark img { display: block; width: 128px; height: auto; }
.fresh-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.fresh-card__eyebrow {
  color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.fresh-card__rule { display: block; width: 72px; height: 3px; background: var(--accent); transform-origin: left center; }
.fresh-card__title { font-size: 18px; line-height: 1.25; }
.fresh-card__copy { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.fresh-card__link { color: var(--ink); font-family: var(--mono); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.fresh-card:hover .fresh-card__link, .fresh-card:focus-visible .fresh-card__link { color: var(--accent); }
.fresh-card:focus-visible { outline: 3px solid var(--hill); outline-offset: 3px; }
@media (max-width: 800px) {
  .fresh-home__row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fresh-card { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
  .fresh-card__mark img { width: 96px; }
  .fresh-home__row .fresh-card,
  .fresh-home__row .one-c-card { grid-template-columns: 96px 1fr; gap: 12px; }
}

.fresh-install { margin: 28px 0 0; }
.fresh-install__video {
  display: block; width: 100%; height: auto;
  background: var(--panel); border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
}
.fresh-section .btn { margin-top: 8px; }

.forecast-video { margin: 24px 0 0; }
.forecast-video__player { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 960px; background: var(--ink); border: 2px solid var(--ink); overflow: hidden; }
.forecast-video__player img, .forecast-video__player iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.forecast-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 90%; white-space: normal; text-align: center; }
/* .btn-primary:hover replaces transform, which drops the centering translation. */
.forecast-video__play:hover { transform: translate(calc(-50% + 2px), calc(-50% + 2px)); }
.forecast-video__play[hidden] { display: none; }
.forecast-video__play:focus-visible { outline: 3px solid white; outline-offset: 4px; }

/* Quiet GSAP motion (home only; visual system unchanged) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-fallback) .js-motion-hero > *:not(.js-split-hero),
  html:not(.motion-fallback) .js-motion-hero-art,
  html:not(.motion-fallback) .js-motion-page-hero > *,
  html:not(.motion-fallback) .js-split-hero,
  html:not(.motion-fallback) .js-split-title {
    opacity: 0;
  }
}

.filter-bar, .pricing-toolbar, .period-toggle {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.pricing-toolbar {
  justify-content: space-between; gap: 16px; margin: 0 0 28px;
}
.filter-chip {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ink); background: var(--panel);
  border: 2px solid var(--ink); padding: 8px 14px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}
.filter-chip:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
.filter-chip.is-active,
.filter-chip.is-active:hover {
  background: var(--accent); color: var(--panel-2);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.pricing-section .filter-chip { box-shadow: 4px 4px 0 var(--accent); }
.pricing-section .filter-chip:hover { box-shadow: 3px 3px 0 var(--accent); }
.pricing-section .filter-chip.is-active,
.pricing-section .filter-chip.is-active:hover { box-shadow: 2px 2px 0 var(--accent); }
.check-card.is-filtered-out,
.tariff-card.is-filtered-out,
.tariff-suite.is-filtered-out {
  display: none !important;
}
.tariff-price[hidden] { display: none !important; }
.js-flip-checks { align-items: stretch; }
.data-flow-svg {
  margin: 28px 0 36px; max-width: 720px;
}
.data-flow-svg svg { display: block; width: 100%; height: auto; }
.js-split-hero .word, .js-split-title .word { display: inline-block; }
@media (max-width: 720px) {
  .pricing-toolbar { flex-direction: column; align-items: flex-start; }
}

/* Статьи /stati/ */
.method pre {
  margin: 18px 0 24px;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--panel);
  border: 1.5px solid var(--line-2);
  border-left: 4px solid var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
}
.method :not(pre) > code { font-family: var(--mono); font-size: .92em; padding: 1px 5px; background: var(--panel); }
.method blockquote { margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--panel); }
.method blockquote p { margin: 0; }
.article-video { margin: 24px 0 32px; }
.article-video video { display: block; width: 100%; height: auto; border: 1.5px solid var(--line-2); background: var(--panel); }
.article-video figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.article-video--vertical { max-width: 360px; }

/* ── Article system ───────────────────────────────────────────────────── */
.article-topic-row,
.article-meta,
.article-card__meta,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.article-topic-row { gap: 8px; margin-top: 2px; }
.article-topic-row span,
.article-tags li {
  padding: 6px 10px;
  border: 1.5px solid var(--line-2);
  background: var(--panel);
  color: var(--muted-2);
  font: 600 11px/1.2 var(--mono);
  letter-spacing: .025em;
}

.article-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.article-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-category {
  font: 600 11px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-featured {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  min-height: 390px;
  margin-bottom: 64px;
  border: 2px solid var(--ink);
  background: var(--panel-2);
  box-shadow: 10px 10px 0 var(--accent);
}
.article-featured__visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 100%;
  padding: 36px;
  border-right: 2px solid var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent) 0 25%, transparent 25% 50%, color-mix(in srgb, var(--hill) 20%, transparent) 50% 75%, transparent 75%);
  background-size: 56px 56px;
}
.article-featured__visual .article-icon { width: 72px; height: 72px; box-shadow: 6px 6px 0 var(--ink); }
.article-featured__visual .article-icon svg { width: 39px; height: 39px; }
.article-featured__visual p {
  margin: 0;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--panel-2);
  box-shadow: 3px 3px 0 var(--ink);
  font: 600 12px/1.2 var(--mono);
}
.article-featured__copy { align-self: center; padding: clamp(30px, 5vw, 64px); }
.article-featured__copy h2 { max-width: 760px; font-size: clamp(30px, 3.5vw, 48px); }
.article-featured__copy h2 a { color: inherit; text-decoration: none; }
.article-featured__copy h2 a:hover { color: var(--accent); }
.article-featured__copy > p:not(.eyebrow) { max-width: 64ch; color: var(--muted-2); font-size: 17px; line-height: 1.6; }
.article-featured__copy .btn { margin-top: 24px; }

.articles-index__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 28px;
}
.articles-index__heading h2 { margin-bottom: 0; }
.articles-index__heading > p { max-width: 500px; margin: 0; color: var(--muted-2); line-height: 1.55; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card { min-width: 0; border: 1.5px solid var(--line-2); background: var(--panel-2); }
.article-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  color: inherit;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.article-card__link:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--accent); }
.article-card__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.article-card__link .article-card__cta { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.article-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.article-card__title { margin: 0 0 12px; font-size: 23px; line-height: 1.18; }
.article-card__desc { flex: 1; margin: 0 0 20px; color: var(--muted-2); font-size: 15px; line-height: 1.55; }
.article-card__meta,
.article-meta { gap: 8px; color: var(--muted); font: 500 12px/1.4 var(--mono); }
.article-tags { gap: 7px; padding: 0; margin: 16px 0 0; list-style: none; }
.article-card__cta { margin-top: 22px; font: 700 13px/1 var(--mono); color: var(--accent); }

.article-hero .hero-inner { position: relative; max-width: 1160px; }
.article-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font: 600 12px/1.3 var(--mono); }
.article-breadcrumb a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.article-hero__icon { position: absolute; top: 0; right: 40px; }
.article-hero__icon .article-icon { width: 64px; height: 64px; box-shadow: 6px 6px 0 var(--ink); }
.article-hero__icon .article-icon svg { width: 34px; height: 34px; }
.article-hero h1 { max-width: 1000px; padding-right: 90px; }
.article-hero .hero-desc { max-width: 840px; }
.article-tags--hero { margin-top: 18px; }

.article-section { padding-top: 56px; }
.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 900px);
  justify-content: start;
  gap: clamp(48px, 5vw, 76px);
  align-items: start;
}
.article-toc {
  --toc-progress: 0%;
  position: sticky;
  isolation: isolate;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 22px 18px 22px 21px;
  border: 2px solid var(--ink);
  background: var(--panel-2);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent) 72%, transparent);
}
.article-toc::before,
.article-toc::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 5px;
}
.article-toc::before { bottom: 0; background: color-mix(in srgb, var(--line-2) 55%, transparent); }
.article-toc::after { height: var(--toc-progress); background: var(--accent); transition: height .14s linear; }
.article-toc__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  color: var(--ink);
  font: 700 12px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.article-toc__title::before { content: ""; width: 9px; height: 9px; background: var(--accent); border: 1.5px solid var(--ink); }
.article-toc nav > ul { margin: 0; padding: 0; list-style: none; }
.article-toc ul ul { margin: 5px 0 0; padding-left: 11px; }
.article-toc li { margin: 0; }
.article-toc li + li { margin-top: 4px; }
.article-toc a {
  display: block;
  margin-left: -8px;
  padding: 5px 8px;
  border-left: 3px solid transparent;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .12s, background .12s, border-color .12s, transform .12s;
}
.article-toc a:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.article-toc a.is-active {
  transform: translateX(3px);
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--panel-2));
  color: var(--ink);
  font-weight: 700;
}
.article-content { min-width: 0; }
.article-content.method p,
.article-content.method li { max-width: 86ch; }
.article-content.method h2 { scroll-margin-top: 24px; margin-top: 54px; }
.article-content.method h2:first-child { margin-top: 0; }
.article-content.method h3 { scroll-margin-top: 24px; margin-top: 34px; }
.article-content.method > p:first-child { margin-top: 0; font-size: 18px; line-height: 1.65; color: var(--ink); }
.article-content.method table { display: block; max-width: 100%; overflow-x: auto; }
.article-end {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 56px;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--panel-2);
  box-shadow: 7px 7px 0 var(--accent);
}
.article-end strong { display: block; margin-bottom: 5px; font-size: 18px; }
.article-end p { margin: 0; font-size: 14px; line-height: 1.45; }
.article-related { background: color-mix(in srgb, var(--panel) 76%, transparent); }
.article-related > .wrap > h2 { margin-bottom: 28px; }

@media (min-width: 1181px) {
  .article-toc { margin-left: -24px; }
}

@media (max-width: 1180px) {
  .article-layout { grid-template-columns: minmax(0, 900px); justify-content: center; }
  .article-toc { position: static; max-height: none; overflow: visible; box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent) 72%, transparent); }
  .article-toc nav > ul { columns: 2; column-gap: 32px; }
}

@media (max-width: 980px) {
  .article-featured { grid-template-columns: 1fr; }
  .article-featured__visual { min-height: 220px; border-right: 0; border-bottom: 2px solid var(--ink); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { max-width: 900px; }
}

@media (max-width: 640px) {
  .article-topic-row { align-items: flex-start; }
  .article-featured { min-height: 0; margin-bottom: 52px; box-shadow: 6px 6px 0 var(--accent); }
  .article-featured__visual { min-height: 170px; padding: 24px; }
  .article-featured__copy { padding: 28px 22px 32px; }
  .article-featured__copy h2 { font-size: 29px; }
  .articles-index__heading { display: block; }
  .articles-index__heading > p { margin-top: 12px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card__link { padding: 22px; }
  .article-hero__icon { position: static; margin: 6px 0 2px; }
  .article-hero h1 { padding-right: 0; }
  .article-meta { align-items: flex-start; }
  .article-toc nav > ul { columns: 1; }
  .article-toc a.is-active { transform: none; }
  .article-content.method > p:first-child { font-size: 16.5px; }
  .article-end { grid-template-columns: auto 1fr; padding: 20px; }
  .article-end .btn { grid-column: 1 / -1; justify-content: center; white-space: normal; }
}

/* ── Иллюстрации (img/icons) ─────────────────────────────────────────── */
.art { display: block; height: auto; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head > div { min-width: 0; }
.section-art { flex: none; width: 128px; margin: 0 0 14px; }
.col-art { width: 96px; margin: 0 0 14px; }
.hero-inner-page .hero-inner--art { position: relative; max-width: 1100px; padding-right: 250px; }
.hero-inner--art > .page-art { position: absolute; top: 0; bottom: 40px; right: 0; width: 210px; margin: auto 0; }
/* На тёмных шапках ink-контур теряется — кладём иллюстрацию на светлую карточку. */
.security-hero .page-art { height: auto; padding: 14px; border: 2px solid var(--panel); background: var(--panel); box-shadow: 8px 8px 0 var(--accent); }
.article-featured__visual .art { width: min(240px, 100%); align-self: center; }
.article-hero__icon .art { width: 136px; }
.article-hero h1 { padding-right: 170px; }

@media (max-width: 980px) {
  .hero-inner-page .hero-inner--art { padding-right: 180px; }
  .hero-inner--art > .page-art { width: 150px; }
}

@media (max-width: 640px) {
  .section-head { gap: 16px; }
  .section-art { width: 84px; margin-bottom: 8px; }
  .col-art { width: 80px; }
  .hero-inner-page .hero-inner--art { padding-right: 0; }
  .hero-inner--art > .page-art { position: static; width: 112px; margin: 0 0 4px; }
  .article-hero__icon .art { width: 100px; }
  .article-hero h1 { padding-right: 0; }
}

/* Регистрация в 1С:Фреш (/fresh/) — в оформлении раздела статей */
.fresh-featured { min-height: 0; margin-bottom: 72px; }
.fresh-featured .article-featured__visual { justify-content: center; gap: 28px; }
.fresh-featured .article-featured__visual .art { width: min(260px, 100%); }
.fresh-featured .article-featured__visual p { align-self: flex-start; }
.fresh-featured .article-featured__copy { align-self: start; }
.fresh-featured .article-featured__copy h2 { font-size: clamp(28px, 3vw, 40px); }
.fresh-form { margin-top: 22px; }
.fresh-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fresh-form__wide { grid-column: 1 / -1; }
.fresh-form label { display: grid; gap: 7px; }
.fresh-form label > span { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.fresh-form input:not([type="checkbox"]) {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line-2); border-radius: 0;
  background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans);
}
.fresh-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fresh-form input[aria-invalid] { outline: 2px solid var(--accent); background: var(--panel); }
.fresh-form .pilot-consent { display: grid; margin: 18px 0; font-size: 14px; line-height: 1.5; color: var(--muted-2); }
.fresh-form .pilot-consent input[aria-invalid] { outline-offset: 2px; }
.fresh-form #captcha-container:empty { display: none; }
.fresh-form .btn { margin-top: 0; }
.fresh-form button[disabled] { cursor: wait; opacity: .65; }
.fresh-form .footnote { margin-top: 14px; }
.fresh-form .footnote a { color: var(--accent); }
.fresh-note { margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--line-2); font-size: 14px; line-height: 1.6; color: var(--muted-2); }
.fresh-note p { margin: 0; }
.fresh-note p + p { margin-top: 6px; }
.fresh-note a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.fresh-heading { margin-top: 72px; }
.fresh-heading .btn { white-space: nowrap; }
.fresh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.freg-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; text-align: left; box-shadow: none; transform: none; transition: transform .12s, box-shadow .12s; }
.freg-card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--accent); }
.freg-card h3, .freg-card p { text-align: left; }
.freg-card .article-card__desc { margin-bottom: 0; }
.freg-card .eyebrow { margin-bottom: 10px; }
.fresh-steps { padding: 0; margin: 0; list-style: none; }
.fresh-step__no { margin-bottom: 18px; font: 700 40px/1 var(--mono); color: var(--accent); }
.fresh-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 72px; }
.freg-card--art { position: relative; padding-right: 150px; }
.freg-card__art { position: absolute; top: 22px; right: 22px; width: 112px; }
.fresh-duo .article-card__cta { margin-top: 20px; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; color: var(--ink); }
.fresh-faq { border: 2px solid var(--ink); background: var(--panel-2); box-shadow: 8px 8px 0 var(--accent); }
.fresh-faq details { padding: 18px 24px; border-bottom: 1.5px solid var(--line-2); }
.fresh-faq details:last-child { border-bottom: 0; }
.fresh-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style-position: outside; }
.fresh-faq summary::marker { color: var(--accent); }
.fresh-faq details p { margin: 10px 0 0; color: var(--muted-2); line-height: 1.6; }
.fresh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fresh-dialog { width: min(92vw, 820px); max-height: 88vh; padding: 22px 26px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); box-shadow: 10px 10px 0 var(--accent); }
.fresh-dialog::backdrop { background: rgb(0 0 0 / .7); }
.fresh-dialog--error { width: min(92vw, 520px); }
.fresh-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fresh-dialog__head h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.fresh-dialog__head .image-dialog__close { margin: 0; flex-shrink: 0; }
.fresh-dialog__body { max-height: 64vh; overflow-y: auto; padding-right: 8px; font-size: 14px; line-height: 1.6; color: var(--muted-2); }
.fresh-dialog__body p, .fresh-dialog__body ul, .fresh-dialog__body ol { margin: 0 0 12px; }
.fresh-dialog__body ul, .fresh-dialog__body ol { padding-left: 22px; }
.fresh-dialog__body a { color: var(--ink); word-break: break-all; }
.fresh-dialog__error { margin: 0; font-size: 15px; line-height: 1.6; }
@media (max-width: 980px) {
  .fresh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fresh-duo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fresh-form__grid, .fresh-grid--4 { grid-template-columns: 1fr; }
  .fresh-featured .article-featured__visual .art { width: 150px; }
  .fresh-heading, .fresh-duo { margin-top: 52px; }
  .fresh-heading { flex-direction: column; align-items: flex-start; }
  .freg-card--art { padding-right: 26px; padding-top: 120px; }
  .freg-card__art { width: 84px; }
  .fresh-faq details { padding: 16px 18px; }
  .fresh-dialog { padding: 16px; }
  .fresh-dialog__head h2 { font-size: 18px; }
  .fresh-actions .btn, .fresh-form .btn { width: 100%; justify-content: center; }
}
.fresh-page--faq { padding-top: 0; }
.fresh-teaser .fresh-card { max-width: 720px; }

/* Релизы 1С (/relizy-1c/) */
.rel-version { margin: 4px 0 12px; font: 700 30px/1.1 var(--mono); color: var(--accent); }
.rel-featured { margin-bottom: 64px; }
.rel-featured .article-featured__visual { justify-content: center; gap: 24px; }
.rel-featured .article-featured__visual .art { width: min(220px, 100%); }
.rel-featured .article-featured__visual p { align-self: flex-start; }
.rel-featured__version { font: 700 clamp(40px, 5vw, 64px)/1 var(--mono) !important; color: var(--accent); }
.rel-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 24px 0 0; }
.rel-facts div { border-top: 1.5px solid var(--line-2); padding-top: 10px; }
.rel-facts dt { font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rel-facts dd { margin: 4px 0 0; font: 600 20px/1.3 var(--mono); }
.rel-alert { margin-top: 24px; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--panel); font-size: 15px; line-height: 1.55; }
.rel-heading { margin-top: 64px; }
.rel-table-wrap { overflow-x: auto; border: 2px solid var(--ink); background: var(--panel-2); box-shadow: 8px 8px 0 var(--accent); }
.rel-table { width: 100%; border-collapse: collapse; font: 14px/1.4 var(--mono); }
.rel-table th, .rel-table td { padding: 11px 16px; text-align: left; border-bottom: 1.5px solid var(--line-2); white-space: nowrap; }
.rel-table th { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rel-table tbody tr:first-child td { color: var(--accent); font-weight: 700; }
.rel-table tbody tr:last-child td { border-bottom: 0; }
.rel-steps { padding: 0; margin: 0; list-style: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rel-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; text-align: left; }
.rel-card p { margin: 0; color: var(--muted-2); font-size: 15px; line-height: 1.55; }
.rel-card p b { color: var(--ink); }
.rel-page .fresh-duo { margin-top: 64px; }
.rel-page .fresh-faq { margin-top: 0; }
.rel-all { margin-top: 40px; font-size: 15px; line-height: 2; }
.articles-index .fresh-duo { margin-top: 56px; }
@media (max-width: 980px) { .rel-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rel-steps, .rel-facts { grid-template-columns: 1fr; } .rel-heading { margin-top: 48px; } }
