:root {
  /* Graphite / steel base */
  --bg-950: #07080b;
  --bg-900: #0b0d12;
  --bg-800: #10131a;
  --bg-700: #161a23;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1f6;
  --muted: #9aa3b5;
  --muted-2: #6c7488;

  /* Cerberon red accent - the one primary accent color */
  --blue: #bd3641;
  --blue-soft: #e06a72;
  --blue-dim: rgba(189, 54, 65, 0.16);
  --blue-line: rgba(189, 54, 65, 0.45);

  /* Risk / incident - reserved, used sparingly and only for risk context */
  --risk: #e5484d;
  --risk-soft: rgba(229, 72, 77, 0.14);
  --risk-line: rgba(229, 72, 77, 0.5);
  --amber: #d99a4e;
  --amber-soft: rgba(217, 154, 78, 0.14);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
  background: radial-gradient(1200px 640px at 14% -8%, rgba(189, 54, 65, 0.1), transparent 55%),
    radial-gradient(900px 520px at 88% 0%, rgba(92, 60, 64, 0.16), transparent 48%),
    linear-gradient(180deg, var(--bg-800), var(--bg-900));
}

html {
  scroll-behavior: smooth;
}

main {
  padding-bottom: 40px;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 8%, black 34%, transparent 78%);
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.22;
  animation: pulse 9s ease-in-out infinite;
}

.ambient-a {
  width: 440px;
  height: 440px;
  background: var(--blue);
  top: -140px;
  right: -120px;
}

.ambient-b {
  width: 360px;
  height: 360px;
  background: #583a42;
  bottom: -110px;
  left: -100px;
  animation-delay: 1.2s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.container {
  width: min(1140px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

.header,
main {
  position: relative;
  z-index: 1;
}

/* The mobile drawer is rendered inside the header.  Keep the whole header
   stacking context above main so the drawer cannot end up behind hero cards. */
.header { z-index: 1001; }

/* ---------- Navbar ---------- */

.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
  white-space: nowrap;
}

.nav-menu {
  display: contents;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* С появлением пункта «Демонстрация» меню перестало помещаться в строку
   на ноутбучных ширинах: «О системе» переносилось на вторую строку и
   налезало на логотип. Сжимаем шаг и кегль, а не режем пункты. */
@media (max-width: 1240px) {
  .nav { gap: 17px; }
  .nav a { font-size: 0.83rem; }
  .pill-btn { padding: 8px 14px; font-size: 0.78rem; }
}

@media (max-width: 1080px) and (min-width: 931px) {
  .nav { gap: 14px; }
  .nav a { font-size: 0.79rem; }
}

.nav a:hover,
.nav a:focus-visible { color: var(--text); }

.nav-actions {
  display: flex;
  gap: 10px;
  justify-self: end;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.pill-outline {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.pill-outline:hover { background: rgba(255, 255, 255, 0.08); }

.pill-solid {
  color: var(--bg-950);
  background: var(--text);
  border: 1px solid var(--text);
}

.pill-solid:hover { opacity: 0.88; transform: translateY(-1px); }

.menu-toggle {
  display: none;
  width: 26px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }

.menu-toggle.active span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  padding: 30px 0 8px;
}

.hero-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #0c0e14;
  overflow: hidden;
  padding: 68px 40px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -60%,
      transparent 55%,
      rgba(189, 54, 65, 0.05) 62%,
      rgba(189, 54, 65, 0.10) 67%,
      rgba(189, 54, 65, 0.16) 71%,
      rgba(189, 54, 65, 0.22) 75%,
      rgba(220, 120, 130, 0.30) 79%,
      rgba(230, 160, 170, 0.4) 84%,
      rgba(240, 210, 214, 0.5) 89%,
      rgba(235, 238, 246, 0.55) 93%,
      rgba(255, 255, 255, 0.58) 96%),
    radial-gradient(circle at 50% 30%, rgba(189, 54, 65, 0.06) 0%, transparent 55%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% -60%, transparent 55%, black 78%);
}

.hero-card > * { position: relative; z-index: 1; }

.hero-content { max-width: 700px; }

.pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--blue-line);
  background: var(--blue-dim);
  color: var(--blue-soft);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

h1 {
  margin: 18px 0 0;
  font-family: "Unbounded", sans-serif;
  max-width: 760px;
  line-height: 1.12;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  font-weight: 500;
}

.subtitle {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  line-height: 1.55;
}

.cta-row {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  border: 0;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--bg-950);
  background: var(--text);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-soft {
  color: var(--text);
  border: 1px solid var(--blue-line);
  background: var(--blue-dim);
}

/* ---------- Icon pipeline (hero visual: Камера -> Распознавание -> Инцидент) ---------- */

.icon-pipeline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 620px;
  margin: 52px auto 8px;
}

.beam-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.beam-path-glow { opacity: 0.55; }

.pipeline-line {
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  flex-shrink: 0;
}

.pipeline-line.right {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.16));
}

.pipeline-center { position: relative; flex-shrink: 0; }

.splash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 106, 114, 0.55) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.4);
  z-index: 2;
  pointer-events: none;
}

.splash.animate {
  animation: splash-anim 0.8s ease-out forwards;
}

@keyframes splash-anim {
  0% { transform: scale(0.4); opacity: 0.85; }
  40% { opacity: 0.55; }
  100% { transform: scale(1.5); opacity: 0; }
}

.icon-node,
.icon-node-center {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  cursor: default;
}

.icon-node {
  width: 48px;
  height: 48px;
  background: #171a22;
  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.4),
    -4px -4px 10px rgba(255, 255, 255, 0.025),
    inset 1px 1px 1px rgba(255, 255, 255, 0.05),
    inset 4px 4px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-node::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dotted #1f2330;
  pointer-events: none;
}

.icon-node svg {
  width: 20px;
  height: 20px;
  stroke: rgba(238, 241, 246, 0.75);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

.icon-node-center {
  width: 68px;
  height: 68px;
  background: #1a1e28;
  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.5),
    -6px -6px 14px rgba(255, 255, 255, 0.03),
    inset 1px 1px 2px rgba(255, 255, 255, 0.06),
    inset 6px 6px 12px rgba(0, 0, 0, 0.5);
}

.icon-node-center svg {
  width: 30px;
  height: 30px;
  stroke: var(--blue-soft);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

.node-light-right::before,
.node-light-left::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.node-light-right::before {
  background: radial-gradient(circle at right, rgba(224, 106, 114, 0.4) 0%, transparent 70%);
}

.node-light-left.risk-node::before {
  background: radial-gradient(circle at left, rgba(229, 72, 77, 0.42) 0%, transparent 70%);
}

.icon-node.active::before { opacity: 1; }

.pipeline-caption {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pipeline-caption span:nth-child(2n) { opacity: 0.55; }

@media (max-width: 640px) {
  .pipeline-caption {
    color: #cfd4e0;
    font-size: 0.82rem;
  }
}

/* ---------- Sections / layout ---------- */

main > section {
  margin-top: 68px;
}

main > section:first-child {
  margin-top: 0;
}

.eyebrow {
  display: block;
  color: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.container h2 {
  margin: 0 0 14px;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.section-lead {
  margin: 0 0 28px;
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Feature strip - open row, no card box, thin dividers only */

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-strip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 26px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.feature-strip-item:first-child { border-left: none; }

.feature-strip-item svg {
  width: 17px;
  height: 17px;
  stroke: var(--blue-soft);
  stroke-width: 1.7;
  fill: none;
  flex-shrink: 0;
}

/* Cards - reserved for: three capabilities, pricing, requirements, FAQ, demo elements */

.cards {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(189, 54, 65, 0.12), transparent 58%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
}

.card p { margin: 0; color: var(--muted); line-height: 1.5; }

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dim);
  border: 1px solid var(--blue-line);
  margin-bottom: 4px;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-soft);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-detail-list {
  margin: 4px 0 0;
  padding-left: 16px;
  color: var(--muted-2);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Ограничения интеллектуального анализа — честная прозрачность, не
   тревожная ошибка. Амбер (не risk-red — тот зарезервирован только для
   реального инцидентного контекста), спокойный тон, встроен прямо в
   карточку функции, а не спрятан отдельно. */

.card-limits {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 154, 78, 0.3);
  background: var(--amber-soft);
}

.card-limits-label {
  display: block;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-limits p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.notice-amber {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 154, 78, 0.32);
  background: linear-gradient(170deg, var(--amber-soft), rgba(217, 154, 78, 0.05));
}

.notice-amber-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 154, 78, 0.18);
  border: 1px solid rgba(217, 154, 78, 0.4);
}

.notice-amber-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--amber);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-amber h3 {
  margin: 0 0 6px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
}

.notice-amber p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 760px;
}

.card-detail-list li { margin-bottom: 3px; }

.hover-rise {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

.hover-rise:hover {
  transform: translateY(-4px);
  border-color: var(--blue-line);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

/* Problem section - open composition, two typographic columns with a thin rule between */

.open-split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 44px;
  align-items: start;
}

.open-split-rule { background: var(--line); align-self: stretch; }

.plain-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 15px;
}

.plain-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1.5px;
  background: var(--blue-soft);
}

.open-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.open-note + .open-note { margin-top: 16px; }

/* Общие элементы карточки инцидента в демонстрации (не скриншот приложения) */

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--risk);
}

.demo-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--risk);
}

.demo-time { color: var(--muted-2); font-size: 0.76rem; }

.demo-field-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }

.demo-field-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 7px;
}

.demo-field-list li:last-child { border-bottom: none; padding-bottom: 0; }
.demo-field-list b { color: var(--text); font-weight: 600; text-align: right; }

/* Use cases - open, light, close to hero in weight (no bordered cards) */

.usecases-head {
  max-width: 640px;
}

.usecase-list {
  margin-top: 12px;
}

.usecase-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.usecase-list .usecase-row:last-child {
  border-bottom: 1px solid var(--line);
}

.usecase-label {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
}

.usecase-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.usecases-note {
  margin-top: 24px;
  color: var(--muted-2);
  max-width: 640px;
  line-height: 1.6;
}

/* Sequence (four steps) - connected line, not cards */

.sequence {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.sequence::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.sequence-step {
  position: relative;
  padding-top: 42px;
}

.sequence-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-900);
  border: 1.5px solid var(--blue-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem;
  color: var(--blue-soft);
  z-index: 1;
}

.sequence-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

/* Download status - secondary, quiet block, not a hero-weight card */

.download-block {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.download-block h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
}

.download-block > p {
  margin: 0 0 20px;
  color: var(--muted);
}

.download-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btn-download {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  position: relative;
}

.btn-download.os-recommended {
  border-color: var(--blue-line);
  background: var(--blue-dim);
  box-shadow: 0 14px 28px rgba(189, 54, 65, 0.18);
}

/* Pricing */

.pricing-grid { align-items: stretch; }

.pricing-card {
  border-color: var(--line);
}

.pricing-card .price {
  margin: 2px 0 4px;
  font-family: "Unbounded", sans-serif;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 500;
}

.pricing-card-main {
  border-color: var(--blue-line);
  background: linear-gradient(170deg, rgba(189, 54, 65, 0.12), rgba(255, 255, 255, 0.02));
}

.pricing-card-main .price { color: var(--blue-soft); }

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-soft);
  border: 1px solid var(--blue-line);
  background: var(--blue-dim);
  padding: 4px 9px;
  border-radius: 999px;
}

.pricing-list {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
}

.pricing-note {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pricing-note p { margin: 0; }
.pricing-note p + p { margin-top: 6px; }
.pricing-note b { color: var(--text); }

/* Accordion (system requirements, FAQ) */

.accordion { display: grid; gap: 10px; }

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass);
  overflow: hidden;
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 0.96rem;
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.accordion-item[open] summary::after {
  transform: rotate(-135deg);
}

.accordion-item summary:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: -2px;
}

.accordion-body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.accordion-body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.accordion-body b { color: var(--text); font-weight: 600; }

.req-tag {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Final CTA - open composition, no card */

.cta-open {
  position: relative;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
}

/* Знак Cerberon фоном последнего экрана. Ровно между двумя линиями:
   верхняя — граница самого блока, нижняя — граница подвала (её отделяют
   60 px внешнего отступа, поэтому низ уходит на эти же 60 px).
   Это водяной знак, а не картинка контента: он не должен спорить с
   текстом и кнопками, отсюда низкая непрозрачность и мягкое затухание
   к краям. */
.cta-open::before {
  content: "";
  position: absolute;
  /* Низ области — ровно линия подвала: между блоком и ею лежит
     нижний отступ main (40 px) и внешний отступ подвала (60 px). */
  inset: 0 0 -100px;
  z-index: 0;
  background: url("./logo-cerberon.webp") center bottom / auto 100% no-repeat;
  /* Запас по высоте, чтобы знак был крупнее: линия подвала уезжает ниже
     вместе с самим блоком, промежуток растёт, знак растёт вместе с ним. */
  opacity: 0.3;
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at 50% 56%, #000 54%, transparent 88%);
  mask-image: radial-gradient(ellipse 68% 68% at 50% 56%, #000 54%, transparent 88%);
  pointer-events: none;
}

.cta-open > * { position: relative; z-index: 1; }

.cta-open h2 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-open p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.cta-open .cta-row { margin-top: 26px; }

/* Contact channels */

.contact-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-sheet[hidden] { display: none; }
.contact-sheet.is-open { opacity: 1; }
.contact-sheet-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 8, 0.7); backdrop-filter: blur(5px); }

.contact-sheet-card {
  position: relative;
  width: min(100%, 500px);
  padding: 30px;
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(189, 54, 65, 0.12), var(--bg-800) 34%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.2s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.contact-sheet.is-open .contact-sheet-card { transform: translateY(0) scale(1); }
.contact-sheet-kicker { margin: 0; color: var(--blue-soft); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.contact-sheet-card h2 { margin: 10px 0 0; font-family: "Unbounded", sans-serif; font-size: clamp(1.28rem, 3vw, 1.7rem); font-weight: 500; }
.contact-sheet-card > p:not(.contact-sheet-kicker) { margin: 12px 36px 0 0; color: var(--muted); line-height: 1.55; }
.contact-sheet-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--muted); font: 1.8rem/1 sans-serif; cursor: pointer; }
.contact-sheet-close:hover, .contact-sheet-close:focus-visible { color: var(--text); background: var(--blue-dim); outline: none; }

.contact-channels { display: grid; gap: 10px; margin-top: 24px; }
.contact-channel { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; background: rgba(255, 255, 255, 0.025); transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease; }
.contact-channel:hover, .contact-channel:focus-visible { border-color: var(--blue-line); background: var(--blue-dim); transform: translateY(-1px); outline: none; }
.contact-channel strong { font-size: 0.94rem; }
.contact-channel span { color: var(--muted); font-size: 0.84rem; }

/* Footer */

.site-footer {
  margin: 60px auto 24px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.86rem;
}

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal / toast / fade ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

.cards .card,
.pricing-list li,
.feature-strip-item,
.plain-list li,
.usecase-row,
.sequence-step {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: var(--stagger, 0ms);
}

.reveal.visible .card,
.reveal.visible .pricing-list li,
.reveal.visible .feature-strip-item,
.reveal.visible .plain-list li,
.reveal.visible .usecase-row,
.reveal.visible .sequence-step {
  opacity: 1;
  transform: translateY(0);
}

.fade-in { animation: fadeIn 0.6s ease both; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* A transformed ancestor turns a fixed child into a header-bound element.
   The mobile drawer must stay viewport-fixed, so the header only fades. */
@keyframes headerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  max-width: min(92vw, 640px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue-line);
  background: rgba(12, 15, 22, 0.96);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .card,
  .pricing-list li,
  .feature-strip-item,
  .plain-list li,
  .usecase-row,
  .sequence-step {
    opacity: 1 !important;
    transform: none !important;
  }

  .splash { display: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 930px) {
  .header.fade-in { animation-name: headerFadeIn; }

  .nav-menu {
    display: block;
    position: fixed;
    inset: 0 -100% 0 auto;
    right: -100%;
    width: min(78vw, 340px);
    background: #0b0d12;
    border-left: 1px solid var(--line);
    padding: 90px 28px 28px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav-menu.active { right: 0; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav a { font-size: 1rem; }

  .nav-actions {
    flex-direction: column;
    margin-top: 26px;
    align-items: stretch;
  }

  .pill-btn { justify-content: center; }

  .menu-toggle { display: block; justify-self: end; }

  .header { grid-template-columns: auto auto; justify-content: space-between; }

  .cards-3,
  .download-grid,
  .sequence { grid-template-columns: 1fr; }

  .icon-pipeline { max-width: 100%; margin: 40px auto 0; }
  .pipeline-line { width: 70px; }

  .open-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .open-split-rule { display: none; }

  .usecase-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .sequence {
    gap: 26px;
  }

  .sequence::before {
    top: 0;
    bottom: 0;
    left: 13px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .sequence-step {
    padding-top: 0;
    padding-left: 44px;
  }

  .feature-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-strip-item {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 14px 4px;
  }

  .feature-strip-item:first-child { border-top: none; }
}

@media (max-width: 640px) {
  main > section { margin-top: 52px; }
  /* На узкой колонке знак приходится ровно на абзац текста и читается
     заметно сильнее, чем на широком экране, — приглушаем. Размер здесь
     ограничен шириной, а не высотой: при подгонке по высоте щит стал бы
     шире экрана и головы срезало бы по бокам. */
  .cta-open::before {
    inset: 0 0 -60px;
    /* Не contain: при вписывании во всю ширину боковые головы упирались
       в края колонки и знак читался как обрезанный. */
    background-size: 88% auto;
    /* По ширине знак здесь заметно меньше области, поэтому прижатие к
       низу (как на широком экране) уводило его на кнопки и оставляло
       пустоту сверху — по центру блока ровнее. */
    background-position: center center;
    /* Затухание — тоже по центру, иначе смещённое вниз гасило бы низ
       щита раньше, чем он кончается. */
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 50%, #000 56%, transparent 90%);
    mask-image: radial-gradient(ellipse 72% 62% at 50% 50%, #000 56%, transparent 90%);
    opacity: 0.3;
  }
  .hero-card { padding: 52px 18px 44px; border-radius: 16px; }
  .contact-sheet { padding: 14px; }
  .contact-sheet-card { padding: 26px 20px 22px; }
}

/* ---------- Сценарий разбора ситуации (интерактивная веб-демонстрация) ----------
   Это НЕ копия десктопного интерфейса Cerberon и не скриншот: отдельные
   веб-компоненты в стилистике сайта, показывающие логику продукта. */

.sc {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  padding: 4px;
  overflow: hidden;
}

.sc-steps {
  display: flex;
  gap: 4px;
  padding: 10px 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sc-steps::-webkit-scrollbar { display: none; }

.sc-step {
  flex: 1 1 0;
  min-width: 128px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-2);
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.sc-step:hover { color: var(--muted); background: rgba(255, 255, 255, 0.035); }

.sc-step.is-active {
  color: var(--text);
  background: rgba(189, 54, 65, 0.12);
  border-color: var(--blue-line);
}

.sc-step.is-done { color: var(--muted); }

.sc-step-num {
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.sc-step.is-active .sc-step-num { color: var(--blue-soft); }
.sc-step-name { font-weight: 600; }

.sc-rail {
  height: 2px;
  margin: 10px 14px 0;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.sc-rail-fill {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-stage {
  border-radius: calc(var(--radius-lg) - 4px);
  background: #0c0e14;
  margin-top: 10px;
  padding: 24px;
}

.sc-panel[hidden] { display: none; }

.sc-panel.is-active { animation: scPanelIn 0.45s ease both; }

@keyframes scPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.sc-panel-head { max-width: 720px; margin-bottom: 20px; }

.sc-panel-head h3 {
  margin: 0 0 6px;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
}

.sc-panel-head p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.94rem; }

.sc-panel-note {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* --- 01 Наблюдение --- */

.sc-obs {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 18px;
}

.sc-obs-side { display: grid; gap: 16px; align-content: space-between; }

.sc-view {
  position: relative;
  /* Кадры демо — 4:3, как их отдают камеры. Обрезать их в 16:9 нельзя:
     рамка объекта считается от исходных координат кадра. */
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0a0c11;
}

.sc-view-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-view::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.1) 0%, rgba(8, 9, 13, 0.2) 55%, rgba(8, 9, 13, 0.72) 100%);
  pointer-events: none;
}

.sc-live {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.55);
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}

.sc-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
  animation: scBlink 1.8s ease-in-out infinite;
}

@keyframes scBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.sc-box {
  position: absolute;
  z-index: 2;
  left: var(--bx, 40%);
  top: var(--by, 30%);
  width: var(--bw, 22%);
  height: var(--bh, 46%);
  border: 1.5px solid var(--blue-soft);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(8, 9, 13, 0.5), 0 0 18px rgba(189, 54, 65, 0.35);
  transition: left 0.5s ease, top 0.5s ease, width 0.5s ease, height 0.5s ease;
  animation: scBoxIn 0.5s ease both;
}

@keyframes scBoxIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }

.sc-box i {
  position: absolute;
  left: -1.5px;
  top: -20px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sc-view-meta {
  position: absolute;
  left: 12px;
  bottom: 11px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
}

.sc-view-meta span { color: var(--muted); font-variant-numeric: tabular-nums; }

.sc-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.sc-obs-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }

.sc-obs-facts li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.sc-obs-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 1px;
  background: var(--line-strong);
}

.sc-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0c11;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.sc-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.sc-thumb span {
  position: absolute;
  left: 8px;
  bottom: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.sc-thumb:hover { transform: translateY(-2px); }
.sc-thumb:hover img { opacity: 0.8; }
.sc-thumb.is-active { border-color: var(--blue-line); }
.sc-thumb.is-active img { opacity: 1; }

/* --- 02 Контекст --- */

.sc-ctx {
  display: grid;
  grid-template-columns: 1.15fr 76px 1fr;
  align-items: center;
  gap: 0;
}

.sc-signals { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.sc-signals li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
  animation: scSignalIn 0.5s ease both;
}

.sc-panel.is-active .sc-signals li:nth-child(1) { animation-delay: 0.05s; }
.sc-panel.is-active .sc-signals li:nth-child(2) { animation-delay: 0.14s; }
.sc-panel.is-active .sc-signals li:nth-child(3) { animation-delay: 0.23s; }
.sc-panel.is-active .sc-signals li:nth-child(4) { animation-delay: 0.32s; }
.sc-panel.is-active .sc-signals li:nth-child(5) { animation-delay: 0.41s; }
.sc-panel.is-active .sc-signals li:nth-child(6) { animation-delay: 0.5s; }

@keyframes scSignalIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

.sc-signals span { color: var(--muted-2); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }
.sc-signals b { color: var(--text); font-weight: 500; }

.sc-merge { align-self: stretch; }

.sc-merge svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--blue-soft);
  stroke-opacity: 0.55;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.sc-panel.is-active .sc-merge path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: scDraw 0.9s ease 0.5s both;
}

@keyframes scDraw { to { stroke-dashoffset: 0; } }

.sc-conclusion {
  padding: 20px;
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-md);
  background: var(--blue-dim);
  animation: scConclusionIn 0.6s ease 1.1s both;
}

@keyframes scConclusionIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

.sc-conclusion-tag {
  display: block;
  color: var(--blue-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sc-conclusion-text { margin: 0; color: var(--text); font-size: 0.98rem; line-height: 1.55; }

.sc-conclusion-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* --- 03 Инцидент --- */

.sc-inc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }

.sc-inc-card {
  padding: 20px;
  border: 1px solid var(--risk-line);
  border-radius: var(--radius-md);
  background: var(--risk-soft);
}

.sc-inc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.sc-inc-card h4 {
  margin: 0 0 6px;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
}

.sc-inc-sum { margin: 0 0 16px; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }

.sc-why {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.sc-why h4 { margin: 0 0 14px; font-size: 0.94rem; font-weight: 700; }

.sc-why-list { margin: 0; padding: 0; list-style: none; counter-reset: why; display: grid; gap: 11px; }

.sc-why-list li {
  counter-increment: why;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.sc-why-list li::before {
  content: counter(why);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--blue-line);
  color: var(--blue-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.sc-why-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --- 04 Разбор --- */

.sc-replay { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }

.sc-player {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0a0c11;
}

.sc-player-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.sc-player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.2), rgba(8, 9, 13, 0.68));
  pointer-events: none;
}

.sc-player-phase,
.sc-player-clock {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.6);
  font-size: 0.74rem;
}

.sc-player-phase { left: 12px; color: var(--text); }
.sc-player-clock { right: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.sc-player-phase.is-event { color: var(--risk); border-color: var(--risk-line); background: rgba(229, 72, 77, 0.16); }

.sc-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  align-items: stretch;
  gap: 0;
  margin-top: 12px;
  height: 34px;
}

.sc-track-seg {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-2);
  font-size: 0.72rem;
}

.sc-track-seg:first-of-type { border-radius: 8px 0 0 8px; border-right: none; }
.sc-track-seg:last-of-type { border-radius: 0 8px 8px 0; border-left: none; }

.sc-track-mark { background: var(--risk); box-shadow: 0 0 12px rgba(229, 72, 77, 0.6); }

.sc-playhead {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.sc-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.sc-route-node {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.78rem;
}

.sc-route-node.is-key { border-color: var(--risk-line); color: var(--text); background: var(--risk-soft); }
.sc-route-arrow { color: var(--muted-2); }

.sc-replay-side h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.sc-replay-side h4 + ul { margin-bottom: 14px; }
.sc-replay-side .sc-evidence-note + h4 { margin-top: 20px; }

.sc-chrono { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }

.sc-chrono li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 2px solid var(--line);
  font-size: 0.82rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.sc-chrono li span { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sc-chrono li b { color: var(--muted); font-weight: 600; }
.sc-chrono li i { grid-column: 2; color: var(--muted-2); font-style: normal; font-size: 0.76rem; }

.sc-chrono li.is-now {
  background: rgba(189, 54, 65, 0.1);
  border-left-color: var(--blue);
}

.sc-chrono li.is-now b { color: var(--text); }

.sc-evidence { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }

.sc-evidence li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.sc-evidence li::before {
  content: "";
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border-radius: 3px;
  background: linear-gradient(160deg, var(--blue), var(--blue-soft));
  box-shadow: 0 0 10px rgba(189, 54, 65, 0.35);
}

.sc-evidence-note { margin: 12px 0 0; color: var(--muted-2); font-size: 0.79rem; line-height: 1.5; }

/* --- 05 Реакция --- */

.sc-react { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }

.sc-notify {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  animation: scPanelIn 0.5s ease 0.1s both;
}

.sc-notify-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.sc-notify-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--risk);
  box-shadow: 0 0 10px rgba(229, 72, 77, 0.7);
}

.sc-notify-title { margin: 0 0 6px; font-weight: 700; font-size: 0.92rem; }
.sc-notify-body { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.sc-notify-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.78rem;
}

.sc-flow { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }

.sc-flow li {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 12px;
  padding: 11px 12px;
  border-left: 2px solid var(--line);
  font-size: 0.86rem;
  animation: scSignalIn 0.45s ease both;
}

.sc-panel.is-active .sc-flow li:nth-child(1) { animation-delay: 0.15s; }
.sc-panel.is-active .sc-flow li:nth-child(2) { animation-delay: 0.3s; }
.sc-panel.is-active .sc-flow li:nth-child(3) { animation-delay: 0.45s; }
.sc-panel.is-active .sc-flow li:nth-child(4) { animation-delay: 0.6s; }

.sc-flow li span { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.sc-flow li b { color: var(--text); font-weight: 600; }
.sc-flow li i { grid-column: 2; color: var(--muted-2); font-style: normal; font-size: 0.78rem; }
.sc-flow li.is-done { border-left-color: var(--blue); }

/* --- Подвал сценария --- */

.sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px 12px;
}

.sc-foot-hint { margin: 0; color: var(--muted-2); font-size: 0.82rem; }
.sc-foot-btns { display: flex; gap: 10px; }

.sc-nav {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.sc-nav:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.06); }
.sc-nav:disabled { opacity: 0.35; cursor: default; transform: none; }
.sc-next { background: var(--blue); border-color: var(--blue); color: #fff; }
.sc-next:hover { background: var(--blue); opacity: 0.9; }

/* ---------- Небольшие продуктовые виджеты под сценарием ---------- */

.pw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.pw {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pw h3 { margin: 0; font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 0.98rem; }
.pw-lead { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

.pw-note {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.5;
}

.pw-route { display: grid; gap: 0; }

.pw-route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.84rem;
}

.pw-route-row b { font-weight: 600; }
.pw-route-row span { color: var(--muted-2); font-variant-numeric: tabular-nums; font-size: 0.78rem; }
.pw-route-row.is-key { border-color: var(--risk-line); background: var(--risk-soft); }

.pw-route-gap {
  position: relative;
  height: 26px;
  margin-left: 20px;
  border-left: 1px dashed var(--line-strong);
}

.pw-route-gap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-style: normal;
  font-size: 0.74rem;
}

.pw-factors { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }

.pw-factors li {
  position: relative;
  display: grid;
  gap: 1px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pw-factors li b { font-weight: 500; color: var(--muted); }

.pw-factors li i {
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.pw-factors li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
}

/* Факт, которого достаточно самого по себе, и факт, который лишь
   дополняет картину, — разные вещи, и выглядеть должны по-разному. */
.pw-factors li.is-trigger b { color: var(--text); }
.pw-factors li.is-trigger i { color: var(--risk); }
.pw-factors li.is-trigger::before {
  background: var(--risk);
  box-shadow: 0 0 8px rgba(229, 72, 77, 0.55);
}

.pw-factors li.is-context i { color: var(--muted-2); }
.pw-factors li.is-context::before {
  background: transparent;
  border: 1px solid var(--line-strong);
}

.pw-verdict {
  padding: 11px 14px;
  border: 1px solid var(--risk-line);
  border-radius: var(--radius-sm);
  background: var(--risk-soft);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.pw-heal { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }

.pw-heal li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--muted);
  font-size: 0.84rem;
}

.pw-heal li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #0c0e14;
}

.pw-heal li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 21px;
  bottom: -1px;
  width: 1px;
  background: var(--line);
}

.pw-heal li.is-bad { color: var(--muted); }
.pw-heal li.is-bad::before { border-color: var(--risk-line); background: var(--risk); }
.pw-heal li.is-ok { color: var(--text); }
.pw-heal li.is-ok::before { border-color: var(--blue-line); background: var(--blue); }

.pw-heal.is-running li::before { animation: scHealPulse 3.2s ease-in-out infinite; }
.pw-heal.is-running li:nth-child(2)::before { animation-delay: 0.5s; }
.pw-heal.is-running li:nth-child(3)::before { animation-delay: 1s; }
.pw-heal.is-running li:nth-child(4)::before { animation-delay: 1.5s; }

@keyframes scHealPulse {
  0%, 60%, 100% { box-shadow: none; }
  20% { box-shadow: 0 0 0 4px rgba(189, 54, 65, 0.18); }
}

/* ---------- Сценарий: адаптив ---------- */

@media (max-width: 930px) {
  .sc-stage { padding: 18px; }
  .sc-obs,
  .sc-inc,
  .sc-replay,
  .sc-react { grid-template-columns: 1fr; }
  .sc-view { width: 100%; max-width: 560px; margin-inline: auto; }
  .sc-player { width: 100%; max-width: 560px; }
  .sc-ctx { grid-template-columns: 1fr; gap: 16px; }
  .sc-merge { display: none; }
  .pw-grid { grid-template-columns: 1fr; }
  .sc-step { min-width: 118px; flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .sc-stage { padding: 14px; }
  .sc-signals li { grid-template-columns: 1fr; gap: 3px; }
  .sc-foot { flex-direction: column; align-items: stretch; }
  .sc-foot-btns { justify-content: space-between; }
  .sc-nav { flex: 1 1 auto; text-align: center; }
  .sc-track-seg { font-size: 0.66rem; }
  .sc-chrono li { grid-template-columns: 58px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-panel.is-active,
  .sc-panel.is-active .sc-signals li,
  .sc-panel.is-active .sc-flow li,
  .sc-conclusion,
  .sc-notify,
  .sc-box { animation: none !important; }
  .sc-panel.is-active .sc-merge path { animation: none; stroke-dashoffset: 0; }
  .sc-live::before { animation: none; }
  .pw-heal.is-running li::before { animation: none; }
}
