/* ============ TOKENS — Цвета по логотипу ИСС CIS ============ */
:root {
  --paper: #FFFFFF;
  --paper-2: #F4F7FB;
  --paper-3: #E6F0FB;
  /* Dark navy — основной цвет логотипа (CIS и кран) */
  --ink: #122B5C;
  --ink-2: #1B3A78;
  --ink-3: #34508A;
  --muted: #64748B;
  --line: #E2E8F0;
  --line-2: #CFDCEB;
  --line-dark: #1F3D66;
  /* Accent — deep blue из лого «CIS» */
  --accent: #1B3A78;
  --accent-2: #122B5C;
  --accent-cta: #2563EB;
  --accent-cta-2: #1E4FCC;
  --accent-soft: #E6F0FB;
  /* Light blue — «ИСС» и элементы */
  --accent-light: #7FB6E8;
  --accent-light-2: #B8D6F0;
  --ok: #2F7A4A;
  --warn: #B5532A;
  --bad: #B91C1C;

  --radius: 4px;
  --radius-lg: 8px;
  --radius-xl: 14px;

  --font-sans: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'PT Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --container: 1280px;
  --pad-x: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
::selection { background: var(--accent); color: white; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

/* ============ EYEBROW + LABELS ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}
/* Logos eyebrow uses sans for consistency with chips */
.logos .eyebrow {
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.04em;
}
.eyebrow::before {
  content: '';
  width: 36px; height: 3px;
  background: var(--accent);
}
.dark .eyebrow { color: var(--accent-light); }
.dark .eyebrow::before { background: var(--accent-light); }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo small {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em; font-weight: 400;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.2;
}
.logo-img {
  height: 40px; width: auto; display: block;
  flex-shrink: 0;
}
.logo-img-dark { filter: brightness(1.05); }
.foot-col .logo small { border-left-color: rgba(255,255,255,0.18); }
.logo small {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em; font-weight: 400;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.2;
}

.nav-menu { display: flex; align-items: center; gap: 26px; margin: 0 auto; position: relative; }
.nav-div { display: none; }
.nav-menu a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  padding: 6px 0; border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.nav-menu a:not(:last-child)::after {
  content: "";
  position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px;
  background: #C2CEDD;
}
.nav-menu a:hover { border-color: var(--accent); color: var(--accent); }
.nav-menu a.active { color: var(--accent); border-color: var(--accent); }
/* Sliding scrollspy indicator */
.nav-indicator {
  position: absolute;
  bottom: 0; left: 0; width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0;
  pointer-events: none;
  transition: left .38s cubic-bezier(.4,0,.2,1), width .38s cubic-bezier(.4,0,.2,1), opacity .2s;
}
.nav-menu.has-indicator a.active { border-color: transparent; }
@media (max-width: 768px) {
  .nav-indicator { display: none; }
  .nav-menu.has-indicator a.active { border-color: var(--accent); }
}
.nav-right { margin-left: 0; display: flex; align-items: center; gap: 16px; }

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; padding: 0 10px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-phone { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); font-weight: 700; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-size: 15px; font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .12s, background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-cta); color: white; }
.btn-primary:hover { background: var(--accent-cta-2); box-shadow: 0 8px 24px -8px rgba(37,99,235,0.4); }
.btn-accent { background: var(--accent-cta); color: white; }
.btn-accent:hover { background: var(--accent-cta-2); box-shadow: 0 10px 30px -8px rgba(37,99,235,0.5); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: white; }
.btn-dark-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.btn-dark-ghost:hover { border-color: white; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn { padding: 12px 22px; font-size: 15px; }
.btn .arr { font-family: var(--font-mono); font-weight: 700; }

/* ============ SECTIONS ============ */
section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
/* Section variation — alternating dark tones */
section.dark {
  background: var(--ink);
  color: white;
  border-top: 1px solid var(--line-dark);
}
section.dark + section.dark,
section.dark.dark-alt {
  background: #0E2247;
  border-top: 3px solid var(--accent-cta);
}
section.contrast { background: var(--paper-2); border-top: 1px solid var(--line); }

.section-head { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; margin-bottom: 64px; align-items: end; }
.section-head.section-head-stacked {
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.section-head.section-head-stacked p.lede {
  max-width: 820px;
  margin-top: 6px;
}
.section-head h2 { font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; }
.section-head p.lede { font-size: 19px; color: var(--ink-3); max-width: 560px; }
.dark .section-head p.lede { color: #D0DAEA; }
.dark .section-head h2 { color: white; }

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head h2 { font-size: 36px; }
  section { padding: 72px 0; }
}

/* ============ HERO — светлый вариант ============ */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(127, 182, 232, 0.22), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F7FB 100%);
  color: var(--ink);
  padding: 48px 0 0;
  position: relative; overflow: hidden;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14, 42, 74, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 42, 74, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 70% 30%, black 30%, transparent 75%);
}
.hero-inner { position: relative; }

.hero-top {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 32px; font-weight: 700;
}
.hero-top span { display: inline-flex; align-items: center; gap: 8px; }
.hero-reestr-link { color: inherit; border-bottom: 1px solid rgba(14,42,74,0.3); transition: color .15s, border-color .15s; }
.hero-reestr-link:hover { color: var(--accent-cta); border-color: var(--accent-cta); }
.hero-top .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 14px rgba(27, 58, 120, 0.45); }
.hero-top .sep { width: 24px; height: 1px; background: rgba(14, 42, 74, 0.2); }

.hero-h1 {
  font-size: 68px; line-height: 1.05; letter-spacing: -0.025em;
  max-width: 720px;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--ink);
}
.hero-h1 .hh-line1,
.hero-h1 .hh-line2,
.hero-h1 .hh-line3 { display: block; }
.hero-h1 .hh-line2 { white-space: nowrap; font-size: 38px; line-height: 1.15; letter-spacing: -0.015em; margin-top: 14px; }
.hero-h1 .hh-line3 { white-space: nowrap; font-size: 38px; line-height: 1.15; letter-spacing: -0.015em; }
.hero-h1 .accent { color: var(--accent); }
.hero-h1 .strike {
  text-decoration: line-through; text-decoration-thickness: 4px;
  text-decoration-color: var(--accent); opacity: 0.5;
  color: var(--muted);
}

.hero-sub {
  font-size: 19px; max-width: 640px; color: var(--ink-3); line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta { display: flex; gap: 14px; align-items: center; margin-bottom: 0; flex-wrap: wrap; }
.hero-cta .hint { color: var(--muted); font-size: 13px; font-family: var(--font-mono); margin-left: 8px; }
.hero .btn-dark-ghost { color: var(--ink); border-color: var(--line-2); background: white; }
.hero .btn-dark-ghost:hover { border-color: var(--accent); background: var(--paper-2); color: var(--accent); }
.hero-hint {
  color: #93A4BC; font-size: 13px; font-family: var(--font-mono);
  font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.hero-top-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 600px;
  gap: 40px; align-items: end;
  margin-bottom: 16px;
}
.hero-content { min-width: 0; }
.hero-hint {
  color: var(--muted); font-size: 13px; font-family: var(--font-mono);
  font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.hero-stats.hero-stats-3 { grid-template-columns: repeat(3, 1fr); }
.hero-stats.hero-stats-3 .hero-stat:last-child { border-right: 0; }

/* hero device as full screenshot */
.hero-device-img {
  display: block;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(14, 42, 74, 0.25);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-device-img img {
  display: block;
  width: 100%; height: auto;
}
.hero-device-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 40px 80px -20px rgba(14, 42, 74, 0.35);
}

/* Laptop variant — no frame/shadow, image already has bezel */
.hero-device.hero-device-laptop {
  border: 0;
  box-shadow: none;
  background: transparent;
  cursor: default;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
.hero-device-laptop:hover {
  transform: none;
  box-shadow: none;
}
.hero-device-laptop img {
  display: block;
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 50px rgba(14, 42, 74, 0.18));
}

/* Industry logo under each chip */
.logos-chips.logos-chips-center {
  align-items: flex-start;
  gap: 96px;
}
.chip-stack {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  flex: 0 0 auto;
}
.chip-stack .chip {
  text-align: center;
}
.chip-logo {
  display: block;
  height: 64px; width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 0.95;
  transition: opacity .2s ease, transform .2s ease;
}
.chip-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .logos-chips.logos-chips-center { gap: 24px; flex-direction: column; align-items: center; }
  .chip-logo { height: 48px; }
}

/* Center the logos head when there are no logo cells */
.logos-head.logos-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 20px;
}
.logos-head.logos-head-center .eyebrow::before { display: none; }
.logos-head.logos-head-center .eyebrow {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  line-height: 1.25;
  text-align: center;
  max-width: 880px;
}
.logos-chips.logos-chips-center {
  justify-content: center;
}
.logos-chips.logos-chips-center .chip {
  font-size: 13px;
  padding: 8px 14px;
}
.hero-stat {
  padding: 22px 22px 22px 24px;
  border-right: 1px solid var(--line);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: 0; }
.hero-stat .num {
  font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  display: flex; align-items: baseline; gap: 6px; color: var(--ink);
  margin-bottom: 8px;
}
.hero-stat .num small {
  font-size: 26px; color: var(--accent); font-family: var(--font-sans); font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-stat .lab {
  font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); margin-top: 10px; font-weight: 700;
}

/* hero device — компактнее, выровнен по нижнему краю с кнопками */
.hero-device:not(.hero-device-laptop) {
  border-radius: var(--radius-lg);
  background: white;
  border: 0;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
  font-family: var(--font-mono);
  color: var(--ink);
  max-width: 420px;
  width: 100%;
  justify-self: end;
}
.device-chrome {
  padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted);
}
.device-chrome .dots { display: flex; gap: 5px; }
.device-chrome .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.device-chrome .url { margin-left: 16px; }
.device-body { padding: 12px; display: grid; grid-template-columns: 110px 1fr; gap: 12px; min-height: 220px; font-size: 10px; }
.device-side .grp { font-size: 9px; }
.device-row { padding: 6px 8px; grid-template-columns: 50px 1fr 60px 50px; gap: 6px; }
.device-row .pill { font-size: 9px; padding: 1px 4px; }
.device-chart { height: 56px; padding: 8px 6px; }
.device-side { font-size: 11px; }
.device-side .grp { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; font-weight: 700; }
.device-side ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.device-side li { color: var(--ink-3); padding: 6px 8px; border-radius: 3px; cursor: default; }
.device-side li.active { background: var(--accent); color: white; font-weight: 700; }
.device-main { font-size: 11px; display: flex; flex-direction: column; gap: 12px; }
.device-main .h { color: var(--ink); font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.device-row { display: grid; grid-template-columns: 60px 1fr 80px 60px; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); align-items: center; }
.device-row .pill { padding: 2px 6px; border-radius: 999px; font-size: 10px; text-align: center; font-weight: 700; }
.pill-ok { background: rgba(47,122,74,0.12); color: var(--ok); }
.pill-warn { background: rgba(181,83,42,0.14); color: var(--warn); }
.pill-todo { background: rgba(100,116,139,0.12); color: var(--muted); }
.bar { height: 4px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.device-chart {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end;
  height: 80px; padding: 12px 10px; background: var(--paper-2); border-radius: 4px;
}
.device-chart i { background: var(--accent); opacity: 0.85; border-radius: 2px 2px 0 0; }

@media (max-width: 1200px) {
  .hero-top-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-h1 { font-size: 48px; max-width: 100%; }
  .hero-h1 .hh-line2, .hero-h1 .hh-line3 { font-size: 28px; }
  .hero-device { max-width: 560px; justify-self: start; }
}
@media (max-width: 1100px) {
  .hero-h1 { font-size: 44px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: 0; }

  /* Секционные заголовки — в столбик, иначе ломаются по слову */
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head h2 { font-size: 40px; }
  .section-head p.lede { max-width: 720px; font-size: 17px; }

  /* Nav — более компактный на планшетах */
  .nav-menu { gap: 18px; margin-left: 18px; }
  .nav-menu a { font-size: 13px; white-space: nowrap; }
  .nav-phone { display: none; }
  .nav-right .btn-sm { padding: 8px 14px; font-size: 13px; }
  .logo small { font-size: 11px; padding-left: 10px; }
}
@media (max-width: 980px) {
  /* keep all 5 page links visible on tablets */
}
@media (max-width: 768px) {
  .hero-h1 .hh-line2, .hero-h1 .hh-line3 { white-space: normal; }
}
@media (max-width: 600px) {
  .hero-h1 { font-size: 42px; }
  .hero-h1 .hh-line2, .hero-h1 .hh-line3 { font-size: 24px; margin-top: 10px; }
  .hero-sub { font-size: 17px; }
  .hero-cta { flex-wrap: wrap; }
}

/* ============ LOGOS BAND ============ */
.logos {
  padding: 36px 0 44px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.logos-head {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.logos-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-sans); font-size: 14px;
  padding: 8px 14px; border: 1px solid var(--accent); color: var(--accent); border-radius: 4px;
  letter-spacing: 0.01em; font-weight: 700;
  background: var(--accent-soft);
  text-transform: none;
}
.logos-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  border: 1px solid var(--line);
}
.logo-cell {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-align: center; padding: 10px; line-height: 1.3;
  background: var(--paper);
  font-weight: 700;
}
.logo-cell:nth-child(6n) { border-right: 0; }
.logo-cell:nth-last-child(-n+6) { border-bottom: 0; }

@media (max-width: 900px) {
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-cell:nth-child(6n) { border-right: 1px solid var(--line); }
  .logo-cell:nth-child(3n) { border-right: 0; }
}

/* ============ PROBLEM ============ */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); }
.pain-card {
  background: var(--ink-2);
  padding: 36px 32px;
  display: flex; flex-direction: column; min-height: 340px;
}
.pain-card .num-mono {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-light); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 24px; font-weight: 700;
}
.pain-card h3 {
  font-size: 28px; line-height: 1.15; margin-bottom: 14px; color: white;
}
.pain-card p { color: #D0DAEA; font-size: 16px; }
.pain-card .impact {
  margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: 12px; color: #93A4BC;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.pain-card .impact b { color: var(--accent-light); font-weight: 700; }
.dark .pain-card .impact { color: var(--accent-light); }
.dark .pain-card .impact b { color: var(--accent-light); }
.sl-note.sl-note-large {
  padding: 24px 30px;
  font-size: 26px;
  line-height: 1.35;
}
.sl-note.sl-note-large > div:last-child {
  min-width: 0;
}
.sl-note.sl-note-large .sl-note-icon {
  width: 56px; height: 56px; font-size: 26px;
}
@media (max-width: 600px) {
  .sl-note.sl-note-large {
    padding: 18px 18px;
    font-size: 16px;
    line-height: 1.4;
    gap: 14px;
  }
  .sl-note.sl-note-large .sl-note-icon {
    width: 38px; height: 38px; font-size: 18px;
  }
}

.pain-banner {
  margin-top: 40px;
  padding: 40px 48px;
  background: var(--accent);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  border-radius: var(--radius-lg);
}
.pain-chart {
  display: flex; flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
  min-width: 0;
}
.pain-chart-big {
  font-size: 36px; line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 700; color: white;
  margin-bottom: 18px;
  white-space: nowrap;
}
.pain-chart-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 240;
  display: block;
}
.pain-chart-caption {
  margin-top: 10px;
  font-size: 19px; color: white;
  font-weight: 700;
}
.pain-list {
  list-style: none; padding: 0; margin: 14px 0 0;
  counter-reset: pain-num;
  display: grid; gap: 8px;
}
.pain-list li {
  counter-increment: pain-num;
  padding: 10px 0 10px 40px;
  position: relative;
  font-size: 15px; line-height: 1.4; color: white;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.pain-list li:first-child { border-top: 0; }
.pain-list li::before {
  content: counter(pain-num);
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: white;
}
.pain-banner .right { max-width: 520px; }
.pain-banner .right h4 { font-size: 22px; margin-bottom: 8px; color: white; }
.pain-banner .right p { font-size: 15px; opacity: 0.92; }

@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-banner .big { font-size: 36px; }
}

/* ============ SOLUTION ============ */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Vertical (stacked) variant — image and text alternate side by side */
.sol-grid.sol-grid-vertical {
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}
.sol-grid.sol-grid-vertical .sol-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
}
.sol-grid.sol-grid-vertical .sol-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.sol-grid.sol-grid-vertical .sol-card:nth-child(even) .preview {
  order: 2;
  border-left: 1px solid var(--line);
  border-right: 0;
}
.sol-grid.sol-grid-vertical .sol-card:nth-child(even) .body {
  order: 1;
}
.sol-grid.sol-grid-vertical .preview {
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
  height: 100%;
  min-height: 340px;
}
.sol-grid.sol-grid-vertical .preview img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center top;
}
.sol-grid.sol-grid-vertical .body {
  padding: 44px 44px 44px 44px;
  justify-content: center;
}
.sol-grid.sol-grid-vertical .body h3 {
  font-size: 30px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.sol-grid.sol-grid-vertical .body p {
  font-size: 17px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .sol-grid.sol-grid-vertical .sol-card,
  .sol-grid.sol-grid-vertical .sol-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .sol-grid.sol-grid-vertical .sol-card:nth-child(even) .preview {
    order: 1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .sol-grid.sol-grid-vertical .sol-card:nth-child(even) .body {
    order: 2;
  }
  .sol-grid.sol-grid-vertical .preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .sol-grid.sol-grid-vertical .body {
    padding: 28px 24px;
  }
  .sol-grid.sol-grid-vertical .body h3 { font-size: 22px; }
  .sol-grid.sol-grid-vertical .body p { font-size: 15px; }
}
.sol-card {
  background: white;
  border: 1px solid var(--line);
  padding: 0;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sol-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 32px -16px rgba(14,77,164,0.3); }
.sol-card .preview {
  display: block;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.sol-card .preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  transition: transform .4s ease;
}
.sol-card:hover .preview img { transform: scale(1.02); }
.sol-card .body {
  padding: 32px 32px 36px;
  display: flex; flex-direction: column; flex: 1;
}
.sol-card .label {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 11px; color: white;
  background: rgba(14, 42, 74, 0.75);
  padding: 4px 8px; border-radius: 3px;
  font-weight: 700; letter-spacing: 0.06em;
  z-index: 2;
}
.sol-card h3 { font-size: 24px; margin-bottom: 12px; line-height: 1.2; }
.sol-card p { font-size: 16px; color: var(--ink-3); }
.sol-card ul { list-style: none; padding: 0; margin: 20px 0 0; }
.sol-card li { font-size: 14px; padding: 8px 0; border-top: 1px dashed var(--line); color: var(--ink-2); }
.sol-card li:first-child { border-top: 0; padding-top: 0; }

@media (max-width: 900px) { .sol-grid { grid-template-columns: 1fr; } }

/* ============ SWIM-LANE FLOW ============ */
.swimlane {
  background: white;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(14, 42, 74, 0.14);
  overflow: hidden;
}

.sl-header, .sl-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--paper-2);
}
.sl-header { border-bottom: 1px solid var(--line-2); }
.sl-footer { border-top: 1px solid var(--line-2); }
.sl-header .sl-mark, .sl-footer .sl-mark { color: var(--accent); }

.sl-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}

.sl-labels {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  background: var(--paper-2);
  border-right: 1px solid var(--line-2);
}
.sl-label {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px;
  justify-content: center;
}
.sl-label:last-child { border-bottom: 0; }
.sl-label .sl-label-num {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.sl-label .sl-label-title {
  font-size: 15px; font-weight: 700;
  line-height: 1.2;
}
.sl-label .sl-label-desc {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.02em;
  text-transform: uppercase; font-weight: 700;
}

.sl-canvas {
  position: relative;
  aspect-ratio: 1140 / 440;
  background: white;
  min-width: 940px;
}
.sl-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Lane horizontal dividers (between lanes) */
.sl-canvas::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to bottom, transparent 25%, var(--line) 25%, var(--line) calc(25% + 1px), transparent calc(25% + 1px)),
    linear-gradient(to bottom, transparent 50%, var(--line) 50%, var(--line) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent 75%, var(--line) 75%, var(--line) calc(75% + 1px), transparent calc(75% + 1px));
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}
/* Subtle alternating lane shade */
.sl-canvas::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      transparent 0, transparent 25%,
      rgba(232, 240, 251, 0.4) 25%, rgba(232, 240, 251, 0.4) 50%,
      transparent 50%, transparent 75%,
      rgba(232, 240, 251, 0.4) 75%, rgba(232, 240, 251, 0.4) 100%);
  pointer-events: none;
  z-index: 0;
}
.sl-canvas svg.sl-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.sl-canvas svg.sl-lines text { fill-opacity: 1; }

.sl-node {
  position: absolute;
  z-index: 2;
  background: white;
  border: 1.5px solid var(--ink);
  border-left: 4px solid var(--accent);
  border-radius: 2px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 3px 3px 0 var(--accent-soft);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sl-node:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--accent);
}
.sl-node.loop { border-left-color: var(--warn); background: #FFFAF6; }
.sl-node .sl-num {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1;
}
.sl-node.loop .sl-num { color: var(--warn); }
.sl-node .sl-title {
  font-size: 14px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.01em;
}
.sl-node .sl-meta {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 700; margin-top: auto;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .sl-body { grid-template-columns: 1fr; overflow-x: visible; }
  .sl-labels { display: none; }
  .sl-canvas {
    aspect-ratio: auto !important;
    min-width: 0;
    height: auto !important;
    display: flex; flex-direction: column; padding: 12px;
  }
  .sl-canvas::before, .sl-canvas::after, .sl-canvas svg.sl-lines { display: none; }
  .sl-node {
    position: static; width: auto !important; height: auto !important;
    min-height: 0 !important;
    margin: 6px 0;
  }
  .sl-reports-unified { margin-top: 8px; }
  .sl-reports { grid-template-columns: 1fr; }
  .sl-reports-label { border-right: 0; border-bottom: 1px solid var(--line-dark); }
}

/* Cross-cutting reports band */
.sl-reports {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--ink);
  color: white;
  border-top: 1px solid var(--line-dark);
}
.sl-reports.sl-reports-unified {
  grid-template-columns: 1fr;
}
.sl-reports.sl-reports-unified .sl-reports-label {
  background: var(--ink);
  border-right: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 22px;
}
.sl-reports.sl-reports-unified .sl-reports-label .title {
  font-size: 16px;
}
.sl-reports.sl-reports-unified .sl-reports-label .desc::before {
  content: none;
}
.sl-reports-label {
  padding: 16px 18px;
  background: var(--ink-2);
  border-right: 1px solid var(--line-dark);
  display: flex; flex-direction: column; gap: 5px;
  justify-content: center;
}
.sl-reports-label .num {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent-light); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.sl-reports-label .title {
  font-size: 14px; font-weight: 700; color: white; line-height: 1.2;
}
.sl-reports-label .desc {
  font-family: var(--font-mono); font-size: 10px;
  color: #93A4BC; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.sl-reports-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 18px 0;
  position: relative;
}
.sl-reports-flow::before {
  content: ''; position: absolute;
  left: 5%; right: 5%; top: 50%; height: 1px;
  background: rgba(127, 179, 240, 0.25);
  pointer-events: none;
}
.sl-tick {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative; z-index: 1;
  background: var(--ink);
  padding: 0 8px;
}
.sl-tick .sl-tick-arrow {
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700; line-height: 1;
}
.sl-tick .sl-tick-num {
  font-family: var(--font-mono); font-size: 10px;
  color: #93A4BC; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Configurable workflow callout */
.sl-note {
  padding: 16px 22px;
  background: var(--accent-soft);
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 14px;
  line-height: 1.4;
}
.sl-note-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: white;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 16px; font-weight: 700;
}
.sl-note strong { color: var(--accent); font-weight: 700; }

/* ============ EFFECT (CALCULATOR) ============ */
.eff-wrap { display: grid; grid-template-columns: minmax(320px, 460px) minmax(0, 1fr); gap: 48px; align-items: start; }
.eff-controls { background: white; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.eff-controls h4 { font-size: 18px; margin-bottom: 16px; }
.eff-controls .field { margin-bottom: 20px; }
.eff-controls label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 8px; font-weight: 700;
}
.eff-controls .row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px;
}
.eff-controls .val { font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-weight: 700; }
.eff-controls input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 8px; background: var(--paper-3); border-radius: 4px; outline: none;
  cursor: pointer;
}
.eff-controls input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-cta); cursor: pointer; border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent-cta), 0 4px 12px rgba(37,99,235,0.4);
  transition: transform .15s;
}
.eff-controls input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.eff-controls input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-cta);
  cursor: pointer; border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent-cta), 0 4px 12px rgba(37,99,235,0.4);
}
.eff-controls .field-hint {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent-cta); margin-top: 6px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}

.eff-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  max-width: 100%;
}
.eff-table {
  background: white; border: 1px solid var(--line); border-collapse: collapse;
  width: 100%; border-radius: var(--radius-lg); overflow: hidden;
}
.eff-table tbody tr { transition: background .15s; }
.eff-table tbody tr:hover { background: var(--paper-3); }
.eff-table th, .eff-table td {
  padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.eff-table th {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); font-weight: 700;
  background: var(--paper-2);
}
.eff-table td.num, .eff-table th.num { text-align: right; font-family: var(--font-mono); }
.eff-table td.save { color: var(--ok); font-weight: 700; }
.eff-table tfoot td {
  background: var(--ink); color: white; border-bottom: 0;
  font-size: 16px; font-weight: 700;
}
.eff-table tfoot td.eff-total-label { font-size: 20px; }
.eff-table tfoot td.eff-total-num {
  color: var(--accent-light); font-size: 18px; white-space: nowrap;
}
.eff-table tfoot td#effTotalSave, #effmTotalSave { color: #5FD39B; }
.eff-table tfoot td.num { color: var(--accent-light); font-size: 18px; white-space: nowrap; }

/* Inline labels next to the totals (desktop). Each inherits its cell's colour:
   "затрат" blue (как сумма без ПО), "Эффект~" зелёный (как сумма эффекта). */
.eff-table tfoot td#effTotalBase::before { content: 'Затрат\00A0'; }
.eff-table tfoot td#effTotalSave::before { content: 'Эффект\00A0~\00A0'; }
.eff-table tfoot td#effTotalBase::before,
.eff-table tfoot td#effTotalSave::before {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  margin-right: 0;
  vertical-align: baseline;
}

/* Cost-item names larger and on a single line (true desktop only) */
@media (min-width: 1101px) {
  .eff-table { table-layout: fixed; }
  .eff-table tbody td:first-child { font-size: 16px; }
  .eff-table tbody td.num { white-space: nowrap; }
}

@media (max-width: 1100px) {
  .eff-wrap { grid-template-columns: 1fr; }
  .eff-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
  }
  .eff-table { display: table; width: 100%; min-width: 560px; }
  .eff-table th, .eff-table td { padding: 12px 14px; font-size: 13px; white-space: nowrap; }
  .eff-table tfoot td.eff-total-label { font-size: 16px; }
  .eff-table tfoot td.eff-total-num,
  .eff-table tfoot td.num { font-size: 16px; }
  .eff-table tfoot td#effTotalBase::before,
  .eff-table tfoot td#effTotalSave::before { font-size: 16px; }
  .eff-controls { padding: 22px; }
  .eff-controls h4 { font-size: 17px; }
  .eff-controls .val { font-size: 13px; }
  .eff-table-scroll-hint {
    display: flex;
    justify-content: center; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--accent-cta); font-weight: 700;
    margin-top: 10px;
  }
}
@media (min-width: 901px) {
  .eff-table-scroll-hint { display: none; }
}

/* Hide cell-label on desktop (only used in mobile card view) */
.eff-table .cell-label { display: none; }
.eff-table .cell-val { display: inline; }

/* ============ ROLES / SEGMENTS TABS ============ */
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; margin-bottom: 40px; overflow-x: auto; overflow-y: hidden; }
.tab {
  padding: 14px 22px;
  border: 0; background: transparent;
  font-size: 15px; color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  font-weight: 700;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--accent); border-color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}
.dark .tab.active {
  color: white; border-color: var(--accent-light);
  background: rgba(127, 182, 232, 0.1);
}
.dark .tab { color: #93A4BC; }
.dark .tab:hover { color: white; }
.dark .tab.active { color: white; border-color: var(--accent-light); }
.dark .tabs { border-color: var(--line-dark); }
.tab small { font-family: var(--font-mono); font-size: 11px; color: var(--accent-light); margin-right: 8px; font-weight: 700; }
.tab:not(.active) small { color: var(--muted); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Segment risk plate + calc table (Для кого) */
.seg-risks { margin-top: 4px; }
.seg-risks-plate { margin-top: 0; }
.seg-calc-head {
  margin: 44px 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.seg-calc-head::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent-light);
}
.seg-table { margin-top: 0; }
@media (max-width: 768px) {
  .seg-calc-head { margin: 32px 0 16px; }
}

.role-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.role-meta h3 { font-size: 32px; margin-bottom: 12px; line-height: 1.15; color: white; }
.role-meta .role-sub { color: #D0DAEA; font-size: 16px; margin-bottom: 24px; }
.role-meta .lang {
  font-family: var(--font-mono); font-size: 13px;
  border-top: 1px solid var(--line-dark); padding-top: 20px;
  color: #C7D2E0;
}
.role-meta .lang b {
  color: var(--accent-light); display: block; margin-bottom: 6px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px;
}
.role-pains { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.role-pain {
  background: var(--ink-2);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.role-pain .kicker { color: var(--accent-light); }
.role-pain .pain { color: white; font-size: 17px; line-height: 1.4; }
.role-pain .solve {
  margin-top: auto; padding-top: 12px;
  border-top: 1px dashed var(--line-dark);
  font-size: 13px; color: #D0DAEA;
}
.role-pain .solve b { color: var(--accent-light); font-weight: 700; }

@media (max-width: 900px) {
  .role-grid { grid-template-columns: 1fr; gap: 24px; }
  .role-pains { grid-template-columns: 1fr; }
}

/* segments */
.seg-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.seg-content h3 { font-size: 36px; line-height: 1.1; margin-bottom: 16px; }
.seg-content .pain-taran {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 18px 22px; margin: 24px 0; font-size: 16px; line-height: 1.45;
  color: var(--ink); border-radius: 0 var(--radius) var(--radius) 0;
}
.seg-content .pain-taran b { color: var(--accent); font-weight: 700; }
.seg-route {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--paper-2); padding: 14px 18px;
  border: 1px dashed var(--line-2);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 24px; font-weight: 700;
  border-radius: var(--radius);
}
.seg-route .arr { color: var(--accent); }
.seg-route .lbl { color: var(--muted); margin-right: 6px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }

.seg-card {
  border: 1px solid var(--line); padding: 28px; background: white;
  border-radius: var(--radius-lg);
}
.seg-card h4 { font-size: 17px; margin-bottom: 18px; }
.seg-card .actor {
  padding: 14px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: start;
}
.seg-card .actor:first-of-type { border-top: 0; padding-top: 0; }
.seg-card .actor .role-lab {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); padding-top: 2px; font-weight: 700;
}
.seg-card .actor .role-lab.lpr { color: var(--bad); }
.seg-card .actor .role-lab.lfr { color: var(--accent); }
.seg-card .actor .role-lab.lvr { color: var(--ok); }
.seg-card .actor .role-lab.blocker { color: var(--muted); }
.seg-card .actor .who { font-size: 14px; font-weight: 700; }
.seg-card .actor .what { font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) { .seg-grid { grid-template-columns: 1fr; } }

/* ============ CIVIL CONSTRUCTION TAB ============ */
.civ-roles-head {
  margin-top: 36px;
  margin-bottom: 36px;
}
.civ-roles-eyebrow {
  margin-bottom: 14px;
}
.civ-roles-title {
  font-size: 32px; font-weight: 700;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.civ-roles-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 0;
  margin-bottom: 0;
}
.civ-roles-tabs .tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 22px;
  background: var(--ink-2);
  border: 1.5px solid var(--line-dark);
  border-radius: var(--radius);
  color: #D0DAEA;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  white-space: normal;
  transition: all .15s;
  margin-bottom: 0;
  display: flex; align-items: center; gap: 14px;
}
.civ-roles-tabs .tab .role-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--accent-light);
  transition: color .15s;
}
.civ-roles-tabs .tab:hover {
  border-color: var(--accent-light);
  color: white;
}
.civ-roles-tabs .tab.active {
  background: var(--accent-cta);
  border-color: var(--accent-cta);
  color: white;
}
.civ-roles-tabs .tab.active .role-icon { color: white; }

/* Role promise block */
.role-promise {
  margin-top: 18px;
  background: linear-gradient(135deg, #B91C1C 0%, #6A0F0F 100%);
  border-radius: var(--radius-lg);
  padding: 26px 32px 28px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(185,28,28,0.4);
}
.role-promise::after {
  content: ''; position: absolute;
  right: -80px; top: -80px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.role-promise-label {
  font-family: var(--font-mono); font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9); font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  display: flex; align-items: center; gap: 10px;
}
.role-promise-label::before {
  content: '⚠';
  font-size: 14px;
  color: white;
}

/* CIV-ITEM-FLIP: body left, stat-as-final-badge right */
.civ-item.civ-item-flip {
  grid-template-columns: minmax(0, 1fr) 220px;
}
.civ-item-stat.civ-item-stat-final {
  align-self: stretch;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--accent-cta) 0%, var(--accent-2) 100%);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px -10px rgba(37,99,235,0.45);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.civ-item-stat.civ-item-stat-final::after {
  content: ''; position: absolute;
  right: -40px; top: -40px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
  pointer-events: none;
}
.civ-item-stat.civ-item-stat-final b {
  position: relative;
  color: white;
  font-size: 32px;
  letter-spacing: -0.02em;
}
.civ-item-stat.civ-item-stat-final span {
  position: relative;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .civ-item.civ-item-flip { grid-template-columns: 1fr; }
}

/* CIV-ITEM: original stat-badge left + 4-block (Cost+Vision / Problem+Solution) */
.civ-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px dashed var(--line-dark);
}
.civ-item:first-of-type { border-top: 0; padding-top: 8px; }
.civ-item-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 4px;
}
.civ-item-stat b {
  font-size: 30px; font-weight: 700;
  color: var(--accent-light);
  line-height: 1; letter-spacing: -0.02em;
  font-family: var(--font-mono);
}
.civ-item-stat span {
  font-family: var(--font-mono); font-size: 12px;
  color: #93A4BC; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  line-height: 1.3;
}
.civ-item-body { min-width: 0; }
.civ-item-body h5 {
  font-size: 22px; font-weight: 700; color: white;
  margin-bottom: 14px; line-height: 1.25;
}
.civ-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
.civ-pair-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.civ-box {
  padding: 18px 22px;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 10px;
}
.civ-box-prob {
  background: rgba(232, 97, 46, 0.14);
  border-left: 3px solid #E8612E;
}
.civ-box-prob .civ-box-lbl { color: #FFA987; }
.civ-box-sol {
  background: rgba(37, 99, 235, 0.18);
  border-left: 3px solid var(--accent-cta);
}
.civ-box-sol .civ-box-lbl { color: #93B8FF; }
.civ-box-sol b { color: #93B8FF; }
.civ-box-cost {
  background: rgba(232, 97, 46, 0.06);
  border-left: 3px solid #E8612E;
  border-radius: var(--radius);
  padding: 12px 18px;
}
.civ-box-cost .civ-box-lbl { color: #E8612E; }
.civ-box-cost p {
  font-family: var(--font-mono);
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.civ-box-cost .small { font-size: 12px; color: #D0DAEA; font-family: var(--font-sans); font-weight: 400; display: block; margin-top: 4px; }
.civ-box-vision {
  background: rgba(127, 182, 232, 0.08);
  border-left: 3px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 12px 18px;
}
.civ-box-vision .civ-box-lbl { color: var(--accent-light); }
.civ-box-vision p {
  color: white;
  font-size: 14px;
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}
.civ-box-lbl {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700;
}
.civ-box p {
  font-size: 16px; line-height: 1.55;
  color: #D0DAEA;
  margin: 0;
}
@media (max-width: 900px) {
  .civ-item { grid-template-columns: 1fr; gap: 14px; }
  .civ-pair-4 { grid-template-columns: 1fr; }
  .civ-pair { grid-template-columns: 1fr; }
}
.role-promise-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  animation: rolePromiseFade .22s ease;
}
.role-promise-inner[hidden] { display: none; }
@keyframes rolePromiseFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.role-promise-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 20px;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.role-promise-stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.role-promise-big {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 26px); font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.role-promise-cap {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

.role-panel { display: none; }
.role-panel.active {
  display: block;
  animation: rolePanelFade .22s ease;
}
@keyframes rolePanelFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .role-promise-inner { grid-template-columns: 1fr; gap: 16px; }
  .role-promise-stat { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.18); }
  .role-promise-stat:first-child { padding-top: 0; border-top: 0; }
  .role-promise-big { font-size: 26px; white-space: normal; }
}
@media (max-width: 768px) {
  .civ-roles-tabs { flex-direction: column; }
  .civ-roles-tabs .tab { font-size: 14px; padding: 14px 18px; min-width: 0; }
  .civ-roles-title { font-size: 24px; }
  .role-promise { padding: 22px 22px; }
}

/* Updated problem/solution colors — Red Team feedback */
.civ-box-prob {
  background: rgba(232, 97, 46, 0.14);
  border-left: 3px solid #E8612E;
}
.civ-box-prob .civ-box-lbl { color: #FFA987; }
.civ-box-sol {
  background: rgba(37, 99, 235, 0.18);
  border-left: 3px solid var(--accent-cta);
}
.civ-box-sol .civ-box-lbl { color: #93B8FF; }
.civ-box-sol b { color: #93B8FF; }

/* 4-block Pain→Cost→Vision→Solution structure */
.civ-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.civ-pair-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.civ-box-cost {
  background: rgba(232, 97, 46, 0.06);
  border-left: 3px solid #E8612E;
  border-radius: var(--radius);
  padding: 12px 18px;
}
.civ-box-cost .civ-box-lbl { color: #E8612E; }
.civ-box-cost p {
  font-family: var(--font-mono);
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.civ-box-cost .small { font-size: 12px; color: #D0DAEA; font-family: var(--font-sans); font-weight: 400; display: block; margin-top: 4px; }
.civ-box-vision {
  background: rgba(127, 182, 232, 0.08);
  border-left: 3px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 12px 18px;
}
.civ-box-vision .civ-box-lbl { color: var(--accent-light); }
.civ-box-vision p {
  color: white;
  font-size: 14px;
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .civ-pair-4 { grid-template-columns: 1fr; }
}

/* DDU NEUSTOIKA CALCULATOR — inside civ-hero */
.civ-hero-calc {
  padding: 36px 44px 40px;
}
.civ-hero-title {
  font-size: 30px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  margin-top: 4px;
}
.civ-hero-desc {
  font-size: 16px; color: var(--ink-2); line-height: 1.5;
  max-width: 760px;
  margin-bottom: 28px;
}
.civ-hero-desc strong { color: var(--accent-2); }

.ddu-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  position: relative;
}

.ddu-controls {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.ddu-field { display: flex; flex-direction: column; gap: 8px; }
.ddu-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.ddu-row label {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-2); font-weight: 700;
}
.ddu-val {
  font-family: var(--font-mono); font-size: 16px;
  font-weight: 700; color: var(--accent-cta);
}
.ddu-field input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 8px; background: rgba(255,255,255,0.7); border-radius: 4px; outline: none;
  cursor: pointer;
}
.ddu-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-cta); cursor: pointer; border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent-cta), 0 4px 12px rgba(37,99,235,0.4);
}
.ddu-field input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-cta);
  cursor: pointer; border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent-cta), 0 4px 12px rgba(37,99,235,0.4);
}
.ddu-formula {
  font-size: 13px; color: var(--ink-3); line-height: 1.5;
  padding-top: 16px; margin-top: 6px;
  border-top: 1px solid rgba(14, 42, 74, 0.12);
}
.ddu-formula-title {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-cta); font-weight: 700;
  margin-bottom: 8px;
}
.ddu-formula-line { color: var(--ink-2); margin-bottom: 10px; }
.ddu-formula-line b { color: var(--accent-cta); font-weight: 700; }
.ddu-formula-note { font-size: 12px; color: var(--muted); line-height: 1.55; }

.ddu-result {
  background: linear-gradient(135deg, var(--accent-cta) 0%, var(--accent-2) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 28px 32px 24px;
  display: flex; flex-direction: column;
  align-items: flex-start;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(37,99,235,0.45);
}
.ddu-result::after {
  content: ''; position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.ddu-result-label {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85); font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}
.ddu-result-big {
  font-size: 56px; line-height: 1; font-weight: 700;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 14px;
  position: relative;
  font-variant-numeric: tabular-nums;
}
.ddu-result-period {
  font-size: 14px; color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  line-height: 1.4;
  position: relative;
}
.ddu-result-period span { font-weight: 700; }
.ddu-cta {
  position: relative;
  background: white !important;
  color: var(--accent-cta) !important;
  margin-bottom: 16px;
}
.ddu-cta:hover {
  background: var(--paper-2) !important;
  color: var(--accent-2) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}
.ddu-disclaimer {
  font-size: 11px; color: rgba(255,255,255,0.7);
  line-height: 1.5;
  position: relative;
}

@media (max-width: 900px) {
  .civ-hero-calc { padding: 26px 22px 30px; }
  .civ-hero-title { font-size: 22px; }
  .civ-hero-desc { font-size: 14px; margin-bottom: 20px; }
  .ddu-calc { grid-template-columns: 1fr; gap: 20px; }
  .ddu-controls { padding: 20px 18px; gap: 16px; }
  .ddu-result-big { font-size: 40px; }
  .ddu-result { padding: 22px 22px 20px; }
}

/* legacy civ-hero-grid styles kept for backward compat (not used now) */
.civ-hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, #B8D6F0 100%);
  color: var(--ink);
  padding: 36px 44px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.civ-hero::before {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 260px; height: 260px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  pointer-events: none;
}
.civ-hero-label {
  font-family: var(--font-mono); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-2); font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}
.civ-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
  position: relative;
}
.civ-hero-amount {
  font-size: 56px; line-height: 1; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 10px;
}
.civ-hero-period {
  font-size: 17px; color: var(--ink-2); font-weight: 500;
  line-height: 1.4;
}
.civ-hero-right p {
  font-size: 17px; color: var(--ink); line-height: 1.55;
  margin-bottom: 14px;
}
.civ-hero-right strong { color: var(--accent-2); }
.civ-hero-resolve {
  display: flex; gap: 12px;
  background: rgba(255,255,255,0.4);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 16px; line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--accent);
}
.civ-hero-resolve-arr { color: var(--accent); font-weight: 700; flex-shrink: 0; font-family: var(--font-mono); }

.civ-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.civ-cols.civ-cols-stacked {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.civ-col {
  background: var(--ink-2);
  padding: 32px 36px 36px;
  display: flex; flex-direction: column;
}
.civ-col-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
.civ-col-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--accent-light); color: var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.civ-col-title { font-size: 32px; font-weight: 700; color: white; line-height: 1; letter-spacing: -0.01em; }
.civ-col-sub {
  font-family: var(--font-mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #93A4BC; font-weight: 700;
  margin-top: 8px;
}

.civ-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-top: 1px dashed var(--line-dark);
}
.civ-item:first-of-type { border-top: 0; padding-top: 8px; }

.civ-item-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 4px;
}
.civ-item-stat b {
  font-size: 30px; font-weight: 700;
  color: var(--accent-light);
  line-height: 1; letter-spacing: -0.02em;
  font-family: var(--font-mono);
}
.civ-item-stat span {
  font-family: var(--font-mono); font-size: 12px;
  color: #93A4BC; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  line-height: 1.3;
}

.civ-item-body { min-width: 0; }
.civ-item-body h5 {
  font-size: 22px; font-weight: 700; color: white;
  margin-bottom: 16px; line-height: 1.25;
}
.civ-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.civ-box {
  padding: 18px 22px;
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 10px;
}
.civ-box-prob {
  background: rgba(185, 28, 28, 0.12);
  border-left: 2px solid #E89090;
}
.civ-box-sol {
  background: rgba(127, 182, 232, 0.12);
  border-left: 2px solid var(--accent-light);
}
.civ-box-lbl {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700;
}
.civ-box-prob .civ-box-lbl { color: #E89090; }
.civ-box-sol .civ-box-lbl { color: var(--accent-light); }
.civ-box p {
  font-size: 16px; line-height: 1.55;
  color: #D0DAEA;
  margin: 0;
}
.civ-box-sol p { color: white; }
.civ-box-sol b { color: var(--accent-light); font-weight: 700; }

/* Legacy classes — kept for safety in case any old markup remains */
.civ-prob, .civ-sol { display: none; }

.civ-cta {
  margin-top: 32px;
  background: var(--ink);
  border: 1.5px solid var(--accent-light);
  padding: 32px 40px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.civ-cta-text h4 {
  font-size: 22px; color: white; margin-bottom: 6px; line-height: 1.2;
}
.civ-cta-text p {
  font-size: 14px; color: #D0DAEA; line-height: 1.45;
}

@media (max-width: 900px) {
  .civ-hero { padding: 26px 22px; }
  .civ-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .civ-hero-amount { font-size: 40px; }
  .civ-cols { grid-template-columns: 1fr; }
  .civ-col { padding: 22px 20px 26px; }
  .civ-item { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .civ-item-stat { flex-direction: row; align-items: baseline; gap: 8px; padding-top: 0; }
  .civ-item-stat b { font-size: 18px; }
  .civ-pair { grid-template-columns: 1fr; gap: 8px; }
  .civ-cta { grid-template-columns: 1fr; padding: 24px; text-align: left; }
  .civ-cta .btn { width: 100%; justify-content: center; }
}

/* ============ VALUE-BY-SEGMENT GRID ============ */
.value-group { margin-top: 36px; }
.value-group:first-of-type { margin-top: 0; }
.value-group-head {
  display: flex; align-items: center; gap: 14px;
  font-size: 22px; font-weight: 700; color: white;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.value-group-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent-light);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}

/* Inside .value-group: cards are full-width with problem/solution side by side */
.value-group .value-grid {
  grid-template-columns: 1fr;
  gap: 1px;
}
.value-group .value-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 24px 28px;
}
.value-group .value-card .vc-role {
  border-bottom: 0;
  padding-bottom: 0;
  padding-right: 12px;
  border-right: 1px solid var(--line-dark);
  align-self: center;
  font-size: 17px;
  line-height: 1.25;
}
.value-group .value-card .vc-block {
  gap: 8px;
}
.value-group .value-card .vc-solution {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 900px) {
  .value-group .value-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .value-group .value-card .vc-role {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    padding-right: 0;
    padding-bottom: 14px;
  }
  .value-group .value-card .vc-solution {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-dark);
  }
}

@media (max-width: 768px) {
  .value-group-head { font-size: 18px; }
  .value-group-letter { width: 30px; height: 30px; font-size: 13px; }
}

.seg-intro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.seg-intro h3 {
  font-size: 32px; line-height: 1.1; margin-bottom: 14px; color: white;
  letter-spacing: -0.02em;
}
.seg-intro .seg-intro-left p {
  color: #D0DAEA; font-size: 17px; line-height: 1.5;
}
.seg-intro .seg-intro-right { display: flex; flex-direction: column; gap: 16px; }
.seg-intro .pain-taran {
  background: rgba(232, 240, 251, 0.08);
  border-left: 4px solid var(--accent-light);
  padding: 18px 22px;
  font-size: 16px; line-height: 1.45;
  color: white;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.seg-intro .pain-taran b { color: var(--accent-light); font-weight: 700; }
.seg-intro .seg-intro-right p {
  color: #D0DAEA; font-size: 15px; line-height: 1.5;
}

.value-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line-dark); border: 1px solid var(--line-dark);
}
.value-card {
  background: var(--ink-2);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.value-card .vc-role {
  font-size: 20px; font-weight: 700; color: white;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-dark);
  display: flex; align-items: baseline; gap: 12px;
  letter-spacing: -0.01em;
}
.value-card .vc-role small {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.value-card .vc-block { display: flex; flex-direction: column; gap: 8px; }
.value-card .vc-lbl {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.value-card .vc-problem .vc-lbl { color: #E6A4A4; }
.value-card .vc-problem p { color: #D0DAEA; font-size: 15px; line-height: 1.45; }
.value-card .vc-solution {
  margin-top: 4px; padding-top: 16px;
  border-top: 1px dashed var(--line-dark);
}
.value-card .vc-solution .vc-lbl { color: var(--accent-light); }
.value-card .vc-solution p { color: white; font-size: 15px; line-height: 1.45; font-weight: 500; }

@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }

/* ============ TRUST ============ */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trust-cell {
  background: white; padding: 28px;
  display: flex; flex-direction: column; gap: 8px; min-height: 180px;
}
.trust-cell .mark {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.trust-cell h5 { font-size: 18px; margin-top: 6px; }
.trust-cell p { font-size: 13px; color: var(--ink-3); margin-top: auto; }

@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ IMPLEMENTATION ============ */
.impl-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}
.impl-step { background: var(--ink-2); padding: 36px 32px; position: relative; }
.impl-step .phase {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: #93A4BC; text-transform: uppercase; font-weight: 700;
}
.impl-step .num {
  font-family: var(--font-mono); font-size: 56px; color: var(--accent-light);
  line-height: 1; margin: 14px 0 12px; font-weight: 700;
}
.impl-step h4 { font-size: 22px; color: white; margin-bottom: 10px; }
.impl-step .timeline {
  display: inline-block;
  background: var(--accent-light);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.impl-step ul { list-style: none; padding: 0; margin: 0; }
.impl-step li {
  padding: 8px 0 8px 18px;
  position: relative; font-size: 14px; color: #D0DAEA;
}
.impl-step li::before {
  content: '→'; position: absolute; left: 0; color: var(--accent-light); font-family: var(--font-mono); font-weight: 700;
}
.dark .lede strong, .dark p strong { color: white; font-weight: 700; }

@media (max-width: 900px) { .impl-track { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { #implementation .section-head h2 { white-space: normal !important; } }

/* m0104: light variant of Внедрение — white cards on paper-2 (contrast) bg */
section.contrast .impl-track {
  background: var(--line);
  border: 1px solid var(--line);
}
section.contrast .impl-step {
  background: white;
}
section.contrast .impl-step .phase {
  color: var(--ink-3);
}
section.contrast .impl-step .num {
  color: var(--accent-cta);
}
section.contrast .impl-step h4 {
  color: var(--ink);
}
section.contrast .impl-step .timeline {
  background: var(--accent-cta);
  color: white;
}
section.contrast .impl-step li {
  color: var(--ink-2);
}
section.contrast .impl-step li::before {
  color: var(--accent-cta);
}
.impl-caption {
  margin-top: 10px;
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

/* ============ FOUNDER ============ */
.founder { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.founder-photo {
  aspect-ratio: 1; background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 8px, var(--paper) 8px 9px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-align: center; padding: 16px;
  border-radius: var(--radius-lg);
}
.founder-photo.founder-photo-img {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 30px 60px -20px rgba(14, 42, 74, 0.25);
}
.founder-photo.founder-photo-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}
.founder-text h3 { font-size: 36px; margin-bottom: 16px; line-height: 1.1; }
.founder-text p.lede { font-size: 18px; color: var(--ink-3); margin-bottom: 24px; max-width: 560px; }
.founder-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 460px; }
.founder-stat .big { font-size: 48px; color: var(--accent); font-weight: 700; letter-spacing: -0.02em; }
.founder-stat .lab { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

/* ============ FORM ============ */
.form-wrap {
  background: linear-gradient(160deg, #0E2247 0%, #122B5C 60%, #1B3A78 120%);
  color: white;
  padding: 80px; border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start;
  position: relative; overflow: hidden;
}
.form-wrap::before {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 400px; height: 400px; background: var(--accent-light); border-radius: 50%;
  filter: blur(120px); opacity: 0.35;
}
.form-info { position: relative; }
.form-info h2 { font-size: 48px; line-height: 1.05; margin-bottom: 20px; color: white; }
.form-info h2 .accent-em { color: var(--accent-light); font-style: normal; }
.form-info p.lede { font-size: 18px; color: #D0DAEA; margin-bottom: 32px; max-width: 480px; }
.form-paras { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }
.form-paras p { font-size: 18px; line-height: 1.6; color: #D0DAEA; margin: 0; }
.form-paras p b { color: #fff; }
.form-paras p.accent-em, .form-paras p.accent-em b { color: var(--accent-light); }
.form-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.form-checklist-title { font-size: 15px; font-weight: 700; color: white; margin: 0 0 16px; }
.form-checklist li { display: flex; gap: 12px; font-size: 15px; color: white; }
.form-checklist li::before {
  content: '✓'; color: var(--accent-light); font-family: var(--font-mono); font-weight: 700;
}

.form { position: relative; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: #C7D2E0;
  margin-bottom: 6px; font-weight: 700;
}
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; font-size: 15px; font-family: inherit;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .15s, background .15s;
}
.form select {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,0.45); }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--accent-light); background: rgba(127,179,240,0.1);
}
.form select option { color: var(--ink); background: white; }
.form .agree { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #C7D2E0; margin-top: 4px; }
.form .agree-link {
  margin-top: 4px;
  padding-left: 26px;
  font-size: 12px;
}
.form .agree-link a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(127,179,240,0.5);
}
.form .agree a { color: var(--accent-light); text-decoration: underline; text-decoration-color: rgba(127,179,240,0.5); }
.form .agree input { width: 16px; height: 16px; flex-shrink: 0; }
.form .btn { margin-top: 12px; justify-content: center; background: white; color: var(--accent); }
.form .btn:hover { background: var(--accent-light); color: var(--ink); }
.form-success {
  display: none; padding: 32px; background: rgba(47,122,74,0.18);
  border: 1px solid var(--ok); border-radius: var(--radius);
  font-size: 16px; color: white;
}
.form-success.show { display: block; }
.form-success-back { margin: 16px 0 0; font-size: 13px; opacity: 0.65; }
.form-success-countdown { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .form-wrap { grid-template-columns: 1fr; padding: 40px 24px; gap: 40px; }
  .form-info h2 { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ FAQ ============ */
.faq { max-width: 920px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; font-size: 19px; font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font-mono); font-size: 24px; color: var(--accent);
  transition: transform .2s; font-weight: 700;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans { padding: 0 0 22px; font-size: 16px; color: var(--ink-3); max-width: 760px; }

/* ============ FOOTER ============ */
footer {
  background: var(--ink); color: #D0DAEA;
  padding: 26px 0 20px;
  border-top: 0;
}
.foot-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 16px;
}
.foot-logo-img { height: 52px; width: auto; display: block; flex-shrink: 0; }
.foot-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #93A4BC;
  line-height: 1.5;
  text-align: center;
}
.foot-meta .fm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
}
.foot-meta a { color: var(--accent-light); }
.foot-meta a:hover { color: #fff; }
.foot-meta .fm-email,
.foot-meta .fm-tel { font-weight: 700; }
.foot-meta .fm-tel { white-space: nowrap; }
.foot-meta .fm-sep { color: #43597C; }
.foot-bot-v2 {
  border-top: 1px solid var(--line-dark);
  padding-top: 16px;
  display: flex; flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: #93A4BC; text-align: left;
}
.foot-bot-text { display: flex; flex-direction: column; gap: 8px; align-items: center; flex: 1; text-align: center; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; }
.foot-legal-links a { color: #93A4BC; font-size: 12px; font-family: var(--font-mono); }
.foot-legal-links a:hover { color: var(--accent-light); }
.foot-dot { color: #43597C; }
@media (max-width: 600px) {
  .foot-meta .fm-sep { display: none; }
  .foot-meta { gap: 12px; }
  .foot-meta .fm-row { flex-direction: column; align-items: center; gap: 4px; }
}

/* legacy footer grid (other layouts) */
.footer-logo {
  background: white;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  display: inline-flex;
  color: var(--ink) !important;
}
.footer-logo small {
  color: var(--muted) !important;
  border-left-color: var(--line) !important;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.foot-col h6 {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: #93A4BC;
  font-weight: 700; margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: #D0DAEA; }
.foot-col a:hover { color: var(--accent-light); }
.foot-brand p { font-size: 14px; max-width: 320px; margin-top: 16px; color: #93A4BC; }
.foot-bot {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: #93A4BC;
}

@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .nav-right { margin-left: auto; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px -16px rgba(10,42,74,0.25);
    padding: 8px 0;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: 14px 24px;
    border-bottom: 0;
    width: 100%;
  }
  .nav-menu a.active { border-color: transparent; }
  .nav-menu a:not(:last-child)::after { display: none; }
  .nav-div { display: none; }
  .nav.nav--open { position: relative; }
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Sub-nav (section anchors) ---- */
.subnav-inner {
  display: flex;
  border-top: 1px solid var(--line);
}
.subnav-menu {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subnav-menu::-webkit-scrollbar { display: none; }
.subnav-menu a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.subnav-menu a:hover,
.subnav-menu a.active { color: var(--accent-cta); border-color: var(--accent-cta); }
@media (max-width: 600px) {
  .subnav-menu { gap: 20px; }
  .subnav-menu a { font-size: 11px; }
}

/* ---- Footer v2 (rl-inform parity) ---- */
.foot-grid-v2 { grid-template-columns: 2fr 1fr 1.2fr; }
.foot-brand .footer-logo { margin-bottom: 20px; display: inline-flex; }
.foot-group { font-size: 14px; color: #D0DAEA; margin: 0 0 18px; max-width: 320px; }
.foot-group a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.foot-group a:hover { color: #fff; }
.foot-legal-entity { font-size: 14px; color: #D0DAEA; margin: 0 0 10px; line-height: 1.5; }
.foot-reg { font-family: var(--font-mono); font-size: 12px; color: #93A4BC; margin: 0; letter-spacing: 0.02em; }
.foot-contacts .foot-address { font-size: 14px; color: #93A4BC; line-height: 1.55; }
.foot-bot-v2 { align-items: center; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.foot-legal-links a { color: #93A4BC; font-size: 12px; font-family: var(--font-mono); }
.foot-legal-links a:hover { color: var(--accent-light); }
.foot-dot { color: #4A5E7E; }

@media (max-width: 760px) {
  .foot-grid-v2 { grid-template-columns: 1fr; }
}

/* ============ VIDEO SECTION ============ */
.video-sec { padding: 96px 0; }
.video-poster {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  box-shadow: 0 24px 60px -28px rgba(10,42,74,0.45);
  transition: transform .2s, box-shadow .2s;
}
.video-poster:hover { transform: translateY(-2px); box-shadow: 0 30px 70px -28px rgba(10,42,74,0.55); }
.video-poster img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  opacity: 0.9;
}
.video-poster:hover img { opacity: 1; }
.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent-cta);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 36px -8px rgba(37,99,235,0.7);
  transition: transform .2s, background .2s;
}
.video-play svg { width: 36px; height: 36px; margin-left: 4px; }
.video-poster:hover .video-play { transform: translate(-50%, -50%) scale(1.06); background: var(--accent-light); }
.video-cap {
  position: absolute; left: 20px; bottom: 18px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff;
  background: rgba(10,26,54,0.7);
  backdrop-filter: blur(4px);
  padding: 8px 14px; border-radius: 999px;
}

/* Video modal */
.video-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal[hidden] { display: none; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(6,16,34,0.86); backdrop-filter: blur(6px); }
.video-modal-inner { position: relative; width: min(1080px, 100%); }
.video-modal-inner video { width: 100%; border-radius: var(--radius-lg); display: block; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6); }
.video-modal-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px;
  background: transparent; border: 0; cursor: pointer;
  color: #fff; font-size: 32px; line-height: 1;
}
.video-modal-close:hover { color: var(--accent-light); }

@media (max-width: 600px) {
  .video-sec { padding: 56px 0; }
  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 26px; height: 26px; }
}

/* ============ FLOW (BEFORE/AFTER) ============ */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.flow-note {
  margin: 18px 0 0;
  padding-left: 70px;
  width: 50%;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 900px) {
  .flow-note { width: 100%; padding-left: 56px; }
}
@media (max-width: 600px) {
  .flow-note { padding-left: 0; text-align: center; }
}
.flow-side { background: white; padding: 36px; }
.flow-side.bad { background: var(--paper-2); }
.flow-side.good { background: var(--ink); color: white; }
.flow-side h4 { font-size: 22px; margin-bottom: 6px; }
.flow-side.good h4 { color: white; }
.flow-side .lab { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.flow-side.bad .lab { color: var(--bad); }
.flow-side.good .lab { color: var(--accent-light); }
.flow-side {
  position: relative;
  padding-left: 70px;
  counter-reset: step-counter;
}
.flow-side::before {
  content: '';
  position: absolute;
  top: 110px;
  bottom: 36px;
  left: 41px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.flow-side.bad::before {
  background: var(--bad);
  opacity: 0.85;
}
.flow-side.good::before {
  background: var(--accent-light);
}
.flow-side .step-line {
  counter-increment: step-counter;
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 4px;
  padding: 14px 0;
  position: relative;
  border-top: 0;
}
.flow-side .step-line::before {
  content: counter(step-counter);
  position: absolute;
  left: -45px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  line-height: 1;
  z-index: 1;
  border: 3px solid var(--paper-2);
}
.flow-side.bad .step-line::before { background: var(--bad); }
.flow-side.good .step-line::before {
  background: var(--accent-light);
  color: var(--ink);
  border-color: var(--ink);
}
.flow-side .step-line:first-of-type { border-top: 0; }
.flow-side .step-line .t {
  position: relative;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: transparent;
  display: block;
  width: auto; height: auto;
  padding: 0;
  line-height: 1.2;
  margin-bottom: 4px;
  border-radius: 0;
}
.flow-side .step-line .t::after,
.flow-side .step-line .t::before { content: none; }
.flow-side.bad .step-line .t { color: var(--bad); }
.flow-side .step-line .e {
  font-size: 15px; line-height: 1.4; color: var(--ink-2);
}
.flow-side.good .step-line .e { color: white; opacity: 0.92; }
.flow-side.good .step-line .t { color: var(--accent-light); }

.flow-side h4 { margin-bottom: 20px; }

@media (max-width: 900px) {
  .flow-side { padding-left: 56px; }
  .flow-side::before { left: 26px; }
  .flow-side .step-line::before {
    left: -42px;
    width: 28px; height: 28px;
    font-size: 12px;
    border-width: 2px;
  }
}

@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }

/* ============ MOBILE-ONLY EFFECT CARDS ============ */
.eff-mobile-cards { display: none; }
@media (max-width: 768px) {
  .eff-mobile-cards { display: block; margin-top: 8px; }
  .eff-table-wrap { display: none !important; }
  .eff-table-scroll-hint { display: none !important; }
  .effm-card, .effm-total {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .effm-total {
    background: #122B5C;
    border-color: #1F3D66;
  }
  .effm-title {
    font-family: 'PT Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #122B5C;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .effm-total .effm-title {
    color: white;
    border-bottom-color: #1F3D66;
  }
  .effm-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
  }
  .effm-lbl {
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748B;
    font-weight: 700;
    flex-shrink: 0;
  }
  .effm-total .effm-lbl { color: #93A4BC; }
  .effm-val {
    font-family: 'PT Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #122B5C;
    text-align: right;
    word-break: break-word;
  }
  .effm-save { color: #2F7A4A; }
  .effm-total .effm-val,
  .effm-total .effm-total-val { color: #7FB6E8; font-size: 16px; }
}

/* ============ UTIL ============ */
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.center { text-align: center; }

/* Sticky bottom CTA */
.sticky-cta {
  position: fixed;
  right: 24px; bottom: 24px;
  background: var(--accent-cta);
  color: white;
  padding: 16px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 16px 36px -10px rgba(37,99,235,0.55);
  display: inline-flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .25s, transform .25s, box-shadow .2s, background .15s;
  z-index: 100;
  font-family: var(--font-sans);
}
.sticky-cta.visible {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.sticky-cta:hover {
  background: var(--accent-cta-2);
  box-shadow: 0 20px 44px -10px rgba(37,99,235,0.65);
  transform: translateY(-2px);
}
.sticky-cta .arr { font-family: var(--font-mono); }
@media (max-width: 768px) {
  .sticky-cta { right: 12px; bottom: 12px; padding: 14px 20px; font-size: 14px; }
}

/* Scroll-to-top — top-left */
.to-top {
  position: fixed;
  left: 24px; top: 80px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink-2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(18,43,92,0.45);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .25s, transform .25s, background .15s, box-shadow .15s, border-color .15s;
  z-index: 60;
  cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.to-top svg { width: 18px; height: 18px; display: block; }
.to-top:hover { background: var(--ink); box-shadow: 0 12px 28px -6px rgba(18,43,92,0.55); transform: translateY(2px); border-color: #fff; }
.to-top:active { background: var(--ink); transform: translateY(0); }
.to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top.visible:hover { transform: translateY(2px); }
@media (max-width: 768px) {
  .to-top { left: 12px; top: 72px; width: 42px; height: 42px; }
}

/* ============ MOBILE RESPONSIVE PASS ============ */

/* Tablet (≤768px) */
@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  body { font-size: 16px; }

  section { padding: 56px 0; border-top: 1px solid var(--line); }
  section.dark { padding: 56px 0; }

  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .section-head h2 { font-size: 38px; line-height: 1.1; }
  .section-head p.lede { font-size: 17px; }

  /* NAV — compact: logo + sole CTA, hide phone */
  .nav-inner { height: 60px; gap: 12px; }
  .logo { font-size: 16px; }
  .logo-img { height: 34px; }
  .logo small { display: none; }
  .nav-phone { display: none; }
  .nav-right .btn-sm { padding: 8px 14px; font-size: 12px; }

  /* HERO — компактнее, влезает в один экран вместе с логобаром */
  .hero { padding: 24px 0 28px; }
  .hero-top {
    font-size: 10px; margin-bottom: 18px; gap: 6px;
  }
  .hero-top .sep { display: none; }
  .hero-h1 { font-size: 28px; line-height: 1.08; margin-bottom: 14px; word-break: normal; overflow-wrap: break-word; }
  .hero-h1 .hh-line2, .hero-h1 .hh-line3 { font-size: 18px; margin-top: 8px; }
  .hero-h1 .strike { text-decoration-thickness: 2px; }
  .hero-h1 .hh-line2, .hero-h1 .hh-line3 { white-space: normal; }
  /* Show laptop image on mobile, scaled down */
  .hero-device.hero-device-laptop {
    display: block;
    max-width: 320px;
    margin: 12px auto 0;
  }
  .hero-sub { font-size: 14px; margin-bottom: 18px; line-height: 1.4; max-width: none; }
  .hero-cta { gap: 8px; margin-bottom: 10px; }
  .hero-cta .btn-lg { padding: 12px 18px; font-size: 14px; width: 100%; justify-content: center; }
  .hero-hint { font-size: 11px; margin-bottom: 22px; }
  .hero-top-grid { gap: 0; grid-template-columns: 1fr; margin-bottom: 0; }
  /* На мобильном сохраняем device-laptop, hide избыточных device-side */
  .device-side { display: none; }
  .hero-stats { margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.16); grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 14px 8px; }
  .hero-stat:first-child { padding-left: 8px; }
  .hero-stat:nth-child(2) { border-right: 0; }
  .hero-stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.16); }
  .hero-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.16); }
  .hero-stat .num { font-size: 24px; justify-content: center; }
  .hero-stat .lab { font-size: 9px; margin-top: 3px; }
  .hero-stat { text-align: center; }
  /* 3-column stats — identical full-height dividers, no stray top borders */
  .hero-stats.hero-stats-3 { border-top: 0; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .hero-stats.hero-stats-3 .hero-stat { border-right: 1px solid var(--line); border-top: 0; }
  .hero-stats.hero-stats-3 .hero-stat:last-child { border-right: 0; }

  /* LOGOS — встык к hero, чтобы всё в один экран */
  .logos { padding: 22px 0 28px; border-top: 0; }
  .logos-head { gap: 12px; margin-bottom: 16px; }
  .logos-head > div:first-child > div:last-child {
    font-size: 20px; line-height: 1.3; font-weight: 700;
    text-align: center; text-wrap: balance; margin: 0 auto;
  }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-cell { height: 56px; font-size: 8px; padding: 4px; line-height: 1.2; }
  .logo-cell:nth-child(3n) { border-right: 0; }
  .logo-cell:nth-child(2n),
  .logo-cell:nth-last-child(-n+2),
  .logo-cell:nth-last-child(3),
  .logo-cell:nth-last-child(4) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .logo-cell:nth-child(3n) { border-right: 0; }
  .logo-cell:nth-last-child(-n+3) { border-bottom: 0; }
  .logos-chips .chip { font-size: 9px; padding: 3px 6px; }

  /* PAIN cards */
  .pain-card { padding: 24px 20px; min-height: auto; }
  .pain-card h3 { font-size: 22px; }
  .pain-banner { padding: 24px 22px; gap: 20px; grid-template-columns: 1fr; }
  .pain-banner .big { font-size: 32px; }
  .pain-chart-big { font-size: 24px; white-space: normal; }
  .pain-banner .right h4 { font-size: 18px; }
  .pain-banner .right p { font-size: 13px; }

  /* SOLUTION cards */
  .sol-card { min-height: auto; }
  .sol-card .body { padding: 24px 22px 28px; }
  .sol-card h3 { font-size: 21px; }

  /* SWIMLANE / FLOW already collapses via existing rules */
  .sl-header, .sl-footer { padding: 12px 16px; font-size: 10px; flex-direction: column; gap: 6px; align-items: flex-start; }
  .sl-note { padding: 14px 16px; font-size: 13px; }
  .sl-note-icon { width: 28px; height: 28px; font-size: 14px; }
  .sl-reports-label { padding: 14px 16px; }
  .sl-reports-flow { padding: 14px 8px; gap: 4px; }
  .sl-tick .sl-tick-num { font-size: 9px; }
  .sl-tick { padding: 0 2px; }

  /* EFFECT calculator — pure CSS card layout, no JS dependency */
  .eff-wrap { gap: 24px; }
  .eff-controls { padding: 22px; }
  .eff-table-wrap { overflow: visible; }
  .eff-table { width: 100%; border: 0; background: transparent; display: block; }
  .eff-table thead, .eff-table colgroup { display: none; }
  .eff-table tbody, .eff-table tfoot { display: block; }
  .eff-table tbody tr {
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .eff-table tbody tr:hover { background: white; }
  .eff-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    text-align: left !important;
    font-size: 15px;
    font-family: var(--font-mono);
    color: var(--ink);
    font-weight: 700;
    white-space: normal;
  }
  .eff-table tbody td:first-child {
    display: block;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    padding: 0 0 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .eff-table tbody td:nth-child(2)::before { content: 'Без ПО'; }
  .eff-table tbody td:nth-child(3)::before { content: 'Сокращение'; }
  .eff-table tbody td:nth-child(4)::before { content: 'Примерный эффект'; }
  .eff-table tbody td:not(:first-child)::before {
    font-family: var(--font-mono); font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--muted); font-weight: 700;
    flex-shrink: 0;
  }
  .eff-table tbody td.save { color: var(--ok); }
  .eff-table tfoot tr {
    display: block;
    background: var(--ink);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-top: 12px;
  }
  .eff-table tfoot td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: transparent;
    color: white;
    padding: 6px 0;
    text-align: left !important;
    font-family: var(--font-mono);
    font-size: 18px;
    border: 0;
  }
  .eff-table tfoot td.eff-total-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 17px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line-dark);
    margin-bottom: 8px;
  }
  .eff-table tfoot td#effTotalBase::before { content: 'Без ПО'; }
  .eff-table tfoot td#effTotalSave::before { content: 'Примерный эффект'; }
  .eff-table tfoot td#effTotalBase::before,
  .eff-table tfoot td#effTotalSave::before {
    font-family: var(--font-mono); font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: #93A4BC; font-weight: 700;
  }
  .eff-table tfoot td.eff-total-num {
    color: var(--accent-light);
    font-size: 18px;
    white-space: nowrap;
  }
  .eff-table tfoot td:empty,
  .eff-table tfoot td.num:not([id]) { display: none; }
  .eff-table-scroll-hint { display: none; }
  /* Hide sticky CTA over the calculator so it doesn't cover values */
  #effect ~ section .sticky-cta { display: none; }

  /* TABS — better scroll on mobile */
  .tabs { gap: 0; margin-bottom: 24px; margin-left: -20px; margin-right: -20px; padding: 0 20px; }
  .tab { padding: 12px 14px; font-size: 13px; }
  .tab small { font-size: 9px; margin-right: 4px; }

  /* VALUE cards 1-col already; refine */
  .value-card { padding: 22px 20px; gap: 12px; }
  .value-card .vc-role { font-size: 17px; padding-bottom: 10px; }
  .value-card .vc-problem p, .value-card .vc-solution p { font-size: 14px; }
  .seg-intro { grid-template-columns: 1fr !important; gap: 20px !important; margin-bottom: 28px !important; }
  .seg-intro h3 { font-size: 26px !important; }
  .seg-intro p { font-size: 15px !important; }

  /* ROLE pains (in dark roles section) */
  .role-grid { gap: 20px; }
  .role-meta h3 { font-size: 24px; }
  .role-pain { padding: 18px; }
  .role-pain .pain { font-size: 15px; }

  /* SEGMENTS */
  .seg-content h3 { font-size: 26px; }
  .seg-content .pain-taran { font-size: 14px; padding: 14px 16px; }
  .seg-route { font-size: 11px; padding: 12px 14px; }
  .seg-card { padding: 22px; }
  .seg-card .actor { grid-template-columns: 80px 1fr; gap: 10px; padding: 12px 0; }

  /* TRUST grid */
  .trust-cell { padding: 22px 18px; min-height: 150px; }
  .trust-cell h5 { font-size: 16px; }

  /* IMPLEMENTATION */
  .impl-step { padding: 28px 24px; }
  .impl-step .num { font-size: 44px; }
  .impl-step h4 { font-size: 20px; }

  /* FOUNDER */
  .founder { gap: 24px; }
  .founder-photo { aspect-ratio: 4 / 3; }
  .founder-text h3 { font-size: 26px; }
  .founder-text p.lede { font-size: 16px; }
  .founder-stat .big { font-size: 36px; }

  /* FORM */
  .form-wrap { padding: 36px 22px; gap: 32px; }
  .form-info h2 { font-size: 28px; }
  .form-info p.lede { font-size: 18px; }
  .form-paras { gap: 12px; }
  .form-paras p { font-size: 18px; line-height: 1.55; }
  .form-checklist li { font-size: 14px; }

  /* FAQ */
  .faq-item summary { padding: 18px 0; font-size: 16px; gap: 14px; }
  .faq-item summary::after { font-size: 20px; }
  .faq-item .ans { font-size: 14px; padding-bottom: 18px; }

  /* FINAL CTA */
  section[style*="background: var(--ink)"] h2,
  section[style*="background:#0E2A4A"] h2 { font-size: 32px !important; }
  section[style*="background: var(--ink)"] .container > p,
  section[style*="background:#0E2A4A"] .container > p { font-size: 15px !important; }

  /* FOOTER */
  footer { padding: 56px 0 24px; }
  .foot-grid { gap: 32px; margin-bottom: 40px; }
  .foot-bot { font-size: 10px; flex-direction: column; gap: 8px; align-items: flex-start; }

  /* FLOW (before/after) */
  .flow-side { padding: 26px 22px 26px 56px; }
  .flow-side h4 { font-size: 20px; }
  .flow-side::before { left: 28px; }
  .flow-side .step-line { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .flow-side .step-line .t { padding-left: 22px; font-size: 13px; }
  .flow-side .step-line .t::before { left: -20px; width: 12px; height: 12px; }
  .flow-side .step-line .e { font-size: 14px; padding-left: 22px; }
}

/* Small phone (≤480px) */
@media (max-width: 480px) {
  .hero { padding: 20px 0 22px; }
  .hero-h1 { font-size: 24px; line-height: 1.1; }
  .hero-sub { font-size: 13px; margin-bottom: 14px; }
  .hero-stats { margin-top: 14px; }
  .hero-stat { padding: 10px 4px; }
  .hero-stat .num { font-size: 20px; }
  .hero-stat .num small { font-size: 11px; }
  .hero-stat .lab { font-size: 8px; }

  .section-head h2 { font-size: 26px; }
  .pain-banner .big { font-size: 28px; }
  .pain-card h3 { font-size: 20px; }
  .pain-card { padding: 22px 18px; }

  .foot-grid { grid-template-columns: 1fr; gap: 24px; }

  .logos { padding: 18px 0 22px; }
  .logos-head > div:first-child > div:last-child { font-size: 18px; }
  .logo-cell { height: 48px; font-size: 7px; }

  .form-row { grid-template-columns: 1fr; }

  /* Show some hint that tabs scroll */
  .tabs {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
  }

  /* Prevent horizontal overflow on any screen */
  html, body { overflow-x: hidden; max-width: 100vw; }
  .container { max-width: 100%; }

  /* Sticky nav even tighter */
  .nav-inner { height: 56px; }
  .logo-img { height: 32px; }

  /* Founder stats stack */
  .founder-stats { grid-template-columns: 1fr; gap: 14px; }
  .founder-stat .big { font-size: 32px; }
}

/* Touch-friendly: disable hover-only transforms on coarse pointers */
@media (hover: none) and (pointer: coarse) {
  .sol-card:hover,
  .value-card:hover,
  .seg-card:hover,
  .lc-node:hover,
  .sl-node:hover,
  .fc-node:hover { transform: none; }
}

.eff-title-nowrap { white-space: nowrap; }
@media (max-width: 900px) {
  .eff-title-nowrap { white-space: normal; }
}

/* ============================================================
   ROLES TABLE (m0128 Вариант 1): 3-col table
   [role label] [Проблема] [Решение CIS] — one header row, then 4 role rows
   ============================================================ */
.roles-table {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr 1fr;
  column-gap: 32px;
  row-gap: 0;
  margin-top: 32px;
  padding: 8px 0;
}

/* Column headers (row 1) */
.rt-col-head {
  padding: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.rt-col-head-prob { color: #E8612E; }
.rt-col-head-sol  { color: #7FB6E8; }
.rt-col-head-role { color: #E8612E; }
.rt-col-head-spacer { /* empty */ }

/* Role rows (subsequent rows share 3 cells each) */
.rt-role,
.rt-cell {
  padding: 22px 0 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
/* No top border on the first role row (header has its own bottom border) */
.roles-table > .rt-col-head + .rt-col-head + .rt-col-head + .rt-role,
.roles-table > .rt-col-head + .rt-col-head + .rt-col-head + .rt-role + .rt-cell,
.roles-table > .rt-col-head + .rt-col-head + .rt-col-head + .rt-role + .rt-cell + .rt-cell {
  border-top: 0;
  padding-top: 26px;
}

.rt-role {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}
.rt-role-name { flex: 1 1 auto; }
.rt-role-note {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #E8612E;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-transform: none;
  white-space: nowrap;
  margin-top: 8px;
}
.rt-role-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #E8612E;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.rt-role-name {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  color: #E8612E;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.rt-cell.rt-cell-prob p { color: #D0DAEA; }
.rt-cell.rt-cell-prob ul { color: #D0DAEA; }
.rt-cell p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: #D0DAEA;
}
.rt-cell p + p,
.rt-cell p + ul,
.rt-cell ul + p { margin-top: 6px; }
.rt-cell ul {
  margin: 0;
  padding-left: 12px;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: #D0DAEA;
}
.rt-cell ul li::before { content: '– '; }

/* Mobile: collapse to 1 column with inline labels */
@media (max-width: 900px) {
  .rt-role-name br { display: none; }
  .roles-table {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .rt-col-head-spacer,
  .rt-col-head-role,
  .rt-col-head-prob,
  .rt-col-head-sol { display: none; }
  .rt-role {
    padding: 22px 0 6px;
    border-top: 1px solid rgba(255,255,255,0.18);
  }
  .rt-cell { padding: 8px 0 8px; border-top: 0; }
  .rt-cell-prob::before {
    content: 'Проблема';
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #E8612E;
    margin-bottom: 6px;
  }
  .rt-cell-sol::before {
    content: 'Решение CIS';
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #7FB6E8;
    margin-bottom: 6px;
  }
  .roles-table > .rt-col-head + .rt-col-head + .rt-col-head + .rt-role { border-top: 0; padding-top: 8px; }
}

/* ============================================================
   CIV-ITEM REWORK (m0007):
   - stat-badge to the RIGHT
   - body to the LEFT (Problem/Vision/Solution flush left)
   - "Цена бездействия" extracted to a full-width strip below
   m0017 update: Problem / Vision / Solution in a single 3-col row;
                  "Цена бездействия" text rendered in red.
   ============================================================ */
.civ-item {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 14px;
}
.civ-item-body  { display: contents; }
.civ-item-body h5 { grid-column: 1 / 3; grid-row: 1; margin-bottom: 0; align-self: end; }
.civ-item-stat  { grid-column: 3; grid-row: 1; align-items: flex-end; text-align: right; }
.civ-item-stat b      { color: var(--accent-light); }
.civ-item-stat span   { text-align: right; }

/* Pair wrappers dissolve so all boxes become direct children of civ-item */
.civ-pair, .civ-pair-4 { display: contents; }
.civ-box-prob   { grid-column: 1; grid-row: 2; margin: 0; }
.civ-box-vision { grid-column: 2; grid-row: 2; margin: 0; }
.civ-box-sol    { grid-column: 3; grid-row: 2; margin: 0; }
.civ-box-cost   { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; }

/* Cost as a horizontal one-line strip — fully red */
.civ-box-cost {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(232, 97, 46, 0.08);
  border-left: 3px solid #E8612E;
  border-radius: var(--radius);
}
.civ-box-cost .civ-box-lbl {
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1px solid rgba(232, 97, 46, 0.35);
  line-height: 1.4;
  color: #E8612E;
}
.civ-box-cost p {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #FFA987;
  font-weight: 700;
  line-height: 1.4;
}
.civ-box-cost .small {
  display: inline;
  margin-top: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  color: #FFA987;
  opacity: 0.85;
}
.civ-box-cost .small::before {
  content: "·";
  margin-right: 6px;
  color: #E8612E;
  opacity: 0.6;
}

/* Tighten gap between column subheader and the first item's title */
.civ-col-head { padding-bottom: 10px; margin-bottom: 14px; }
.civ-item:first-of-type { padding-top: 0; }
.civ-item { padding: 20px 0; }

/* Mobile: stat goes ABOVE body again; everything collapses to 1 col */
@media (max-width: 900px) {
  .civ-item { grid-template-columns: 1fr; }
  .civ-item-body h5 { grid-column: 1; grid-row: 2; }
  .civ-item-stat { grid-column: 1; grid-row: 1; align-items: baseline; text-align: left; }
  .civ-item-stat span { text-align: left; }
  .civ-box-prob, .civ-box-vision, .civ-box-sol { grid-column: 1; grid-row: auto; }
  .civ-box-cost { grid-column: 1; grid-row: auto; }
  .civ-box-cost { flex-direction: column; align-items: flex-start; gap: 6px; }
  .civ-box-cost .civ-box-lbl { border-right: 0; padding-right: 0; }
}

/* ============================================================
   SUBPAGES (О нас, Стоимость, Документация, Контакты)
   ============================================================ */
.page-hero {
  padding: 56px 0 48px;
  background: var(--paper-2);
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(18,43,92,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18,43,92,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(120% 100% at 80% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute; top: -40%; right: -10%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(127,182,232,0.20) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.ts-sec { background: #fff; border-top: 1px solid var(--line); }
.minc-acc-wrap { margin-top: 28px; }
.page-hero-docs { padding-bottom: 80px; }
.page-hero-merged { padding-bottom: 80px; }
.page-hero-merged .price-grid, .page-hero-merged .contact-grid { margin-top: 36px; }
body.page-fill { display: flex; flex-direction: column; min-height: 100vh; }
body.page-fill .page-hero-merged { flex: 1 0 auto; }
body.page-fill footer { flex-shrink: 0; }
.page-subhead {
  font-size: 38px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.015em; color: var(--accent);
  margin: -8px 0 0;
}
.page-hero-docs .doc-cat:first-of-type { margin-top: 44px; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  margin-bottom: 22px; letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent-cta); }
.breadcrumb .sep { color: #B6C4D8; }
.page-hero h1 {
  font-size: 52px; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 20px; font-weight: 700;
}
.page-hero .page-lead {
  font-size: 19px; line-height: 1.6; color: var(--ink-3);
  max-width: 760px; margin: 0;
}
.page-hero .eyebrow { color: var(--accent-cta); margin-bottom: 14px; }

/* Facts (О нас) */
.facts { padding: 80px 0; background: var(--paper-2); }
.facts-grid-hero { margin-top: 44px; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 2px 14px -10px rgba(10,42,74,0.14);
  transition: transform .2s, box-shadow .2s;
}
.fact-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -18px rgba(10,42,74,0.22); }
.fact-card.fact-wide { grid-column: 1 / -1; }
.fact-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent-cta); letter-spacing: 0.08em;
}
.fact-card h3 {
  font-size: 20px; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--ink); margin: 0; font-weight: 700;
}
.fact-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-3); }
.fact-card .more {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent-cta); letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px; margin-top: 2px;
}
.fact-card .more:hover { color: var(--accent-light); }
.fact-card .more .arr { transition: transform .15s; }
.fact-strong { color: var(--ink); font-size: 16px; line-height: 1.5; }
.fact-strong b { color: var(--ink); }
.fact-card .more:hover .arr { transform: translateX(3px); }

/* Intro lead block */
.about-intro { padding: 72px 0 8px; }
.about-intro p {
  font-size: 22px; line-height: 1.6; color: var(--ink-2);
  max-width: 880px; margin: 0; font-weight: 400; letter-spacing: -0.01em;
}
.about-intro .since {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-cta);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 18px; display: inline-block;
}

/* Stat band */
.stat-band { padding: 56px 0; background: var(--ink); color: #fff; }
.stat-band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-band .sb {
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 0;
}
.stat-band .sb-num { font-size: 46px; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.stat-band .sb-num span { color: var(--accent-light); }
.stat-band .sb-cap { font-size: 14px; color: #93A4BC; line-height: 1.4; }

/* CTA strip */
.cta-strip { padding: 80px 0; }
.cta-strip-inner {
  background: linear-gradient(135deg, #122B5C 0%, #0E2247 100%);
  border-radius: var(--radius-xl);
  padding: 56px 56px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  border: 1px solid var(--line-dark);
}
.cta-strip-inner h2 { color: #fff; font-size: 30px; margin: 0 0 8px; letter-spacing: -0.01em; }
.cta-strip-inner p { color: #B7C5DC; margin: 0; font-size: 16px; }

/* Pricing page */
.price-wrap { padding: 72px 0; }
.price-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.price-points { display: flex; flex-direction: column; gap: 0; }
.price-points .pp {
  display: flex; gap: 18px; padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.price-points .pp:first-child { padding-top: 0; }
.price-points .pp-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper-3); color: var(--accent-cta);
  display: flex; align-items: center; justify-content: center;
}
.price-points .pp-ico svg { width: 20px; height: 20px; }
.price-points .pp h4 { margin: 0 0 6px; font-size: 17px; color: var(--ink); font-weight: 700; }
.price-points .pp p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.55; }

.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 36px 36px; box-shadow: 0 18px 50px -28px rgba(10,42,74,0.3);
  position: sticky; top: 96px;
}
.price-card h3 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.price-card .price-sub { margin: 0 0 24px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.price-card .field { margin-bottom: 16px; }
.price-card label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.price-card input, .price-card select, .price-card textarea {
  width: 100%; box-sizing: border-box;
  padding: 13px 14px; font-size: 15px; font-family: var(--font-sans);
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.price-card input:focus, .price-card select:focus, .price-card textarea:focus {
  outline: none; border-color: var(--accent-cta);
}
.price-card .consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; }
.price-card .consent input { width: auto; margin-top: 3px; }
.price-card .consent label { font-size: 12px; font-weight: 400; color: var(--ink-3); line-height: 1.5; margin: 0; }
.price-card .consent a { color: var(--accent-cta); text-decoration: underline; }
.price-card .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* Generic content (Документация / Контакты) */
.doc-wrap { padding: 72px 0; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 30px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 2px 14px -10px rgba(10,42,74,0.14);
  transition: transform .2s, box-shadow .2s;
}
.doc-card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -18px rgba(10,42,74,0.22); }
.doc-card .doc-ico { width: 44px; height: 44px; border-radius: var(--radius); background: var(--paper-3); color: var(--accent-cta); display: flex; align-items: center; justify-content: center; }
.doc-card .doc-ico svg { width: 22px; height: 22px; }
.doc-card h3 { margin: 0; font-size: 18px; color: var(--ink); }
.doc-card p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.doc-card .more { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-cta); text-transform: uppercase; letter-spacing: 0.04em; margin-top: auto; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 28px; }
.contact-item .ci-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 8px; }
.contact-item .ci-value { font-size: 18px; color: var(--ink); font-weight: 700; }
.contact-item .ci-value a { color: var(--accent-cta); }
.contact-item .ci-sub { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin-top: 4px; }

/* Document list (Документация) */
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: 0 2px 12px -10px rgba(10,42,74,0.14);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.doc-row:hover { transform: translateY(-1px); border-color: var(--accent-cta); box-shadow: 0 14px 30px -16px rgba(10,42,74,0.22); }
.doc-row-ico {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--paper-3); color: var(--accent-cta);
  display: flex; align-items: center; justify-content: center;
}
.doc-row-ico svg { width: 22px; height: 22px; }
.doc-row-title { font-size: 16px; color: var(--ink); font-weight: 700; line-height: 1.4; }
.doc-row-act {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent-cta); text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.doc-row:hover .doc-row-act .arr { transform: translateX(3px); }
.doc-row-act .arr { transition: transform .15s; }

/* Pricing simple layout */
.price-grid-simple { grid-template-columns: 1fr 0.9fr; align-items: center; }
.price-illu img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.price-grid-simple .price-card { position: static; }

/* Contact map */
.contact-map { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.contact-map iframe { display: block; width: 100%; border: 0; }

/* ---- Consent gating + toast ---- */
.btn.is-disabled { opacity: 0.45; cursor: not-allowed; }
.agree.agree-warn, .consent.agree-warn { color: #FFC2A6; }
.agree.agree-warn a, .consent.agree-warn a { color: #FFC2A6; text-decoration-color: rgba(255, 194, 166, 0.6); }
.agree.agree-warn input[type="checkbox"],
.consent.agree-warn input[type="checkbox"] { outline: 2px solid #E8612E; outline-offset: 2px; }
/* Required field error highlight — dark forms */
.form input.input-error, .form select.input-error, .form textarea.input-error {
  border-color: #E8612E !important;
  background: rgba(232, 97, 46, 0.1) !important;
}
/* Required field error highlight — light forms (price-card / stoimost) */
.price-card input.input-error, .price-card select.input-error, .price-card textarea.input-error {
  border-color: #E8612E !important;
  background: rgba(232, 97, 46, 0.05) !important;
}
.cc-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  z-index: 1200; max-width: min(92vw, 460px);
  background: #2A1410; color: #FFD9C7;
  border: 1px solid #E8612E; border-radius: var(--radius);
  padding: 14px 20px; font-size: 14px; font-weight: 700; line-height: 1.4;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5);
  opacity: 0; transition: opacity .25s, transform .25s; text-align: center;
}
.cc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Phone field with country code ---- */
.phone-field { display: flex; gap: 8px; }
.phone-field .phone-cc {
  flex: 0 0 auto; width: 74px; min-width: 0;
  padding-left: 10px; padding-right: 22px;
  background-position: right 7px center;
}
.phone-field input[type="tel"] { flex: 1 1 auto; min-width: 60px; }

/* ---- Document lightbox (О нас) ---- */
.doc-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.doc-modal.open { display: block; }
.doc-modal-backdrop { position: absolute; inset: 0; background: rgba(8,18,38,0.82); backdrop-filter: blur(2px); }
.doc-modal-box {
  position: absolute; inset: 0; margin: auto;
  width: min(960px, 94vw); height: min(88vh, 1000px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.doc-modal-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper-2); flex-shrink: 0;
}
.doc-modal-back {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--accent-cta); display: inline-flex; align-items: center; gap: 7px;
}
.doc-modal-back:hover { color: var(--ink); }
.doc-modal-zoom {
  margin: 0 auto; display: inline-flex; align-items: center; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 2px; flex-shrink: 0;
}
.doc-zoom-btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-weight: 700; color: var(--ink-2);
  height: 30px; min-width: 30px; padding: 0 6px; border-radius: 6px;
  font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.doc-zoom-btn.doc-zoom-lvl { font-size: 12px; min-width: 46px; }
.doc-zoom-btn:hover { background: var(--paper-2); color: var(--accent-cta); }
.doc-zoom-btn:active { background: var(--accent-soft); }
.doc-modal-open {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-3); flex-shrink: 0;
}
.doc-modal-open:hover { color: var(--accent-cta); }
.doc-modal-close {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid var(--line); background: #fff; border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--ink-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.doc-modal-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.doc-modal-stage {
  flex: 1; min-height: 0; overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  touch-action: pan-x pan-y;
}
.doc-modal-stage.zoomed { display: block; }
.doc-modal-stage.zoomed .doc-modal-img { margin: 0 auto; cursor: zoom-out; }
.doc-modal-img {
  max-width: 100%; max-height: 100%; height: auto; display: block;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,0.35);
  cursor: zoom-in; user-select: none; -webkit-user-drag: none;
}
.doc-modal-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.doc-modal-stage.stage-doc { display: block; align-items: stretch; }
.doc-pdf-pages { width: 100%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.doc-pdf-page { width: 100%; background: #fff; box-shadow: 0 6px 22px -10px rgba(0,0,0,0.35); min-height: 40px; }
.doc-pdf-page canvas { width: 100%; height: auto; display: block; }
.doc-modal-loading { padding: 48px 20px; text-align: center; font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); }
@media (max-width: 600px) {
  .doc-modal-box { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .doc-modal-bar { gap: 8px; padding: 10px 10px; }
  .doc-modal-open { display: none; }
  .doc-modal-back { font-size: 12px; }
  .doc-modal-stage { padding: 10px; }
  .doc-zoom-btn { height: 34px; min-width: 34px; }
}

/* ---- Документация v2 ---- */
.doc-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 22px; }
.doc-trust-item {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3);
}
a.doc-trust-item:hover { color: var(--accent-cta); }
.doc-trust-item .dt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-cta); flex-shrink: 0; }

.doc-cat { margin-bottom: 48px; }
.doc-cat:last-child { margin-bottom: 0; }
.doc-cat-title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 22px; font-weight: 700; color: var(--ink);
  margin: 0 0 22px; letter-spacing: -0.01em;
}
.doc-cat-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-cta); }

.docx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.docx-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; box-shadow: 0 2px 12px -10px rgba(10,42,74,0.14);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.docx-card:hover { transform: translateY(-2px); border-color: var(--accent-cta); box-shadow: 0 16px 34px -18px rgba(10,42,74,0.24); }
.docx-ico {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: var(--radius);
  background: var(--paper-3); color: var(--accent-cta);
  display: flex; align-items: center; justify-content: center;
}
.docx-ico svg { width: 23px; height: 23px; }
.docx-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.docx-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.docx-badge {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 3px 8px; border-radius: 4px;
}
.docx-arr {
  font-family: var(--font-mono); font-size: 18px; color: #B6C4D8; flex-shrink: 0;
  transition: transform .15s, color .15s;
}
.docx-card:hover .docx-arr { color: var(--accent-cta); transform: translateX(3px); }

/* Минцифры accordion */
.minc-acc { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.minc-acc > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; font-size: 19px; font-weight: 700; color: var(--ink);
}
.minc-acc > summary::-webkit-details-marker { display: none; }
.minc-acc-ic { font-family: var(--font-mono); font-size: 26px; color: var(--accent-cta); font-weight: 700; line-height: 1; transition: transform .2s; }
.minc-acc[open] .minc-acc-ic { transform: rotate(45deg); }
.minc-acc .minc-table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.minc-acc .minc-table thead { display: none; }

@media (max-width: 760px) {
  .docx-grid { grid-template-columns: 1fr; }
}

/* ---- Tech stack ---- */
.ts-sec { padding: 88px 0; }
.ts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ts-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.ts-card h4 {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); margin: 0 0 18px; line-height: 1.4;
}
.ts-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ts-card li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: var(--ink-3); line-height: 1.5;
}
.ts-card li::before {
  content: '▸'; position: absolute; left: 0; top: 0;
  color: var(--accent-cta); font-size: 12px;
}
.ts-card li b { color: var(--ink); font-weight: 700; }

/* ---- Минцифры table ---- */
.minc-sec { padding: 0 0 96px; }
.minc-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.minc-table { width: 100%; border-collapse: collapse; }
.minc-table thead th {
  background: var(--ink); color: #fff;
  text-align: left; font-size: 13px; font-weight: 700;
  padding: 16px 22px; letter-spacing: 0.02em;
}
.minc-table .minc-code { width: 110px; white-space: nowrap; }
.minc-table tbody td {
  padding: 22px; font-size: 14px; line-height: 1.6; color: var(--ink-2);
  border-top: 1px solid var(--line); vertical-align: top;
}
.minc-table tbody tr:nth-child(even) { background: var(--paper-2); }
.minc-table tbody td.minc-code {
  font-family: var(--font-mono); font-weight: 700; color: var(--accent-cta); font-size: 14px;
}
@media (max-width: 900px) {
  .ts-grid { grid-template-columns: 1fr 1fr; }
  .minc-table thead th, .minc-table tbody td { padding: 14px 14px; font-size: 13px; }
}
@media (max-width: 560px) {
  .ts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .doc-row { grid-template-columns: 36px 1fr; gap: 12px; }
  .doc-row-ico { width: 36px; height: 36px; }
  .doc-row-ico svg { width: 18px; height: 18px; }
  .doc-row-act { grid-column: 2; justify-self: start; }
  .price-grid-simple { grid-template-columns: 1fr; }
  .price-illu { display: none; }
}

@media (max-width: 900px) {
  .page-hero h1 { font-size: 38px; }
  .facts-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; gap: 36px; }
  .price-card { position: static; }
  .stat-band-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-strip-inner { grid-template-columns: 1fr; padding: 36px 28px; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-intro p { font-size: 19px; }
}

/* ============ COOKIE POPUP ============ */
.cookie-bar {
  position: fixed; top: 50%; left: 50%;
  z-index: 9999;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  font-family: var(--font-sans);
  font-size: 14px;
}
.cookie-bar.cb-visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cookie-bar-title {
  margin: 0 0 -4px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.cookie-bar-inner {
  padding: 28px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.cookie-bar-text {
  margin: 0;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.cookie-bar-text a {
  color: var(--accent-light);
  text-decoration: underline;
}
.cookie-bar-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.cookie-bar-btns .cookie-btn { width: 100%; text-align: center; }
.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: none; transition: background .15s, opacity .15s;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.cookie-btn-primary { background: var(--accent-cta); color: #fff; }
.cookie-btn-primary:hover { background: var(--accent-cta-2); }
.cookie-btn-secondary { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.25); }
.cookie-btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* Cookie settings panel (category toggles) */
.cookie-bar-settings {
  border-top: 1px solid rgba(255,255,255,0.12);
  background: var(--ink);
}
.cookie-bar-settings-inner {
  padding: 16px 22px 20px;
  display: flex; flex-direction: column;
  gap: 16px; align-items: stretch;
}
.cookie-category { color: rgba(255,255,255,0.75); }
.cookie-category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-weight: 700; }
.cookie-category-desc { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.45; }

.cookie-toggle { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.cookie-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--accent-cta); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(16px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.6; cursor: default; }

