/* ===========================================================
   Ferman — Marketing tokens v4: «Luminance Register»
   Dark, minimal, computational. Inter Tight + JetBrains Mono.
   =========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Lexend:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap");

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  /* Type */
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Ink (dark register) */
  --ink-0:   #08090C;   /* page bottom — true ink */
  --ink-1:   #0A0D12;   /* page background */
  --ink-2:   #0F141B;   /* card / elevated surface */
  --ink-3:   #161C26;   /* layer 3 — header strip etc */
  --ink-4:   #1F2733;   /* layer 4 — interactive hover */

  /* Foreground */
  --fg-1:    #FFFFFF;
  --fg-2:    #C4CBD6;
  --fg-3:    #8B95A4;
  --fg-4:    #5D6573;
  --fg-5:    #383E48;   /* muted dim text */

  /* Lines */
  --line-1:  rgba(255, 255, 255, 0.06);
  --line-2:  rgba(255, 255, 255, 0.10);
  --line-3:  rgba(255, 255, 255, 0.16);

  /* Single accent — cold azure */
  --azure:       #3DA9FF;
  --azure-soft:  rgba(61, 169, 255, 0.12);
  --azure-line:  rgba(61, 169, 255, 0.30);
  --azure-bright:#5BC0FF;
  --azure-deep:  #1F7FCC;

  /* Primary button — colour-scheme tokens (overridden per theme) */
  --btn-primary-bg:        var(--azure);
  --btn-primary-bg-hover:  var(--azure-bright);
  --btn-primary-bg-active: var(--azure-deep);
  --btn-primary-shadow:    rgba(61,169,255,0.45);
  --btn-primary-text:      var(--ink-0);

  /* Heading font (overridden to Lexend in color theme) */
  --heading-font: var(--sans);

  /* Editorial side margin */
  --edge: clamp(24px, 5vw, 80px);
  --max:  1320px;
  --col:  min(var(--max), 100vw - calc(var(--edge) * 2));
}

/* ===========================================================
   LIGHT THEME OVERRIDES
   Set on <html data-theme="light"> (or via the toggle).
   =========================================================== */
/* Footer stays dark for editorial colophon contrast — overrides inner vars. */
[data-theme="color"] .bureau-footer {
  --ink-0:   #08090C;
  --fg-1:    #FFFFFF;
  --fg-3:    #8B95A4;
  --fg-4:    #5D6573;
  --line-1:  rgba(255, 255, 255, 0.06);
  --line-2:  rgba(255, 255, 255, 0.10);
}

/* Modal backdrop + paper */
[data-theme="color"] .modal-back  { background: rgba(13, 16, 20, 0.62); }
[data-theme="color"] .modal-paper { background: var(--ink-1); border-color: var(--line-2); }

/* ===========================================================
   COLOR THEME — «Цветная» / vibrant corporate
   Royal blue surfaces · deep navy text · amber/gold CTA
   Hero and FinalCTA sections get full-bleed gradient backgrounds.
   =========================================================== */
[data-theme="color"] {
  /* Blue-tinted light surfaces */
  --ink-0:   #E8EFFE;
  --ink-1:   #F4F7FF;   /* page background */
  --ink-2:   #FFFFFF;   /* card surface */
  --ink-3:   #EBF0FF;
  --ink-4:   #D6E0FF;

  /* Foreground — deep navy spectrum */
  --fg-1:    #0D1F55;
  --fg-2:    #1A306E;
  --fg-3:    #3D5499;
  --fg-4:    #6B82BE;
  --fg-5:    #A4B5D9;

  /* Lines on color bg */
  --line-1:  rgba(20, 50, 120, 0.08);
  --line-2:  rgba(20, 50, 120, 0.14);
  --line-3:  rgba(20, 50, 120, 0.24);

  /* Primary — royal navy */
  --azure:       #1E3A8A;
  --azure-soft:  rgba(30, 58, 138, 0.10);
  --azure-line:  rgba(30, 58, 138, 0.28);
  --azure-bright:#2563EB;
  --azure-deep:  #1E40AF;

  /* CTA buttons — warm amber/gold (a11y: white text needs ≥ 4.5:1) */
  --btn-primary-bg:        #B45309;
  --btn-primary-bg-hover:  #C2410C;
  --btn-primary-bg-active: #92400E;
  --btn-primary-shadow:    rgba(180,83,9,0.40);
  --btn-primary-text:      #FFFFFF;

  /* Headings: Lexend for authority/readability */
  --heading-font: "Lexend", "Inter Tight", system-ui, sans-serif;
}

/* Hero — full-bleed navy gradient with white text */
[data-theme="color"] .hero {
  background: linear-gradient(140deg, #0C1E60 0%, #1E3A8A 45%, #1A5BAD 100%);
  border-bottom-color: rgba(255,255,255,0.08);
  /* Push local vars white so all child text/elements read on dark bg */
  --fg-1: #FFFFFF;
  --fg-2: rgba(255,255,255,0.82);
  --fg-3: rgba(255,255,255,0.58);
  --fg-4: rgba(255,255,255,0.38);
  --line-1: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.15);
  --line-3: rgba(255,255,255,0.26);
  /* Golden accent inside blue hero */
  --azure: #FCD34D;
  --azure-line: rgba(252,211,77,0.35);
  /* Keep amber CTA in hero (a11y-darkened for white-on-amber 4.5:1) */
  --btn-primary-bg:        #B45309;
  --btn-primary-bg-hover:  #C2410C;
  --btn-primary-shadow:    rgba(180,83,9,0.55);
}
[data-theme="color"] .hero::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
}
[data-theme="color"] .hero .btn-ghost {
  border-color: rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.88);
}
[data-theme="color"] .hero .btn-ghost:hover {
  border-color: #FCD34D;
  color: #FCD34D;
}
[data-theme="color"] .hero .hero-browser {
  border-color: rgba(255,255,255,0.20);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 32px 80px rgba(0,0,0,0.55), 0 0 100px rgba(30,58,138,0.40);
}
[data-theme="color"] .hero .hero-browser-bar {
  background: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.10);
}
[data-theme="color"] .hero .hero-browser-url {
  color: rgba(255,255,255,0.48);
}

/* FinalCTA — amber/gold gradient */
[data-theme="color"] .final {
  background: linear-gradient(140deg, #78350F 0%, #B45309 55%, #D97706 100%);
  border-top-color: rgba(255,255,255,0.12);
  --fg-1: #FFFFFF;
  --fg-2: rgba(255,255,255,0.85);
  --fg-3: rgba(255,255,255,0.65);
  --fg-4: rgba(255,255,255,0.45);
  --line-3: rgba(255,255,255,0.30);
  /* White primary button on amber bg */
  --btn-primary-bg:        #FFFFFF;
  --btn-primary-bg-hover:  #F1F5F9;
  --btn-primary-bg-active: #E2E8F0;
  --btn-primary-shadow:    rgba(0,0,0,0.22);
  --btn-primary-text:      #78350F;
}
[data-theme="color"] .final .btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.90);
}
[data-theme="color"] .final .btn-ghost:hover {
  border-color: rgba(255,255,255,0.80);
  color: #FFFFFF;
}
[data-theme="color"] .final .eyebrow { color: rgba(255,255,255,0.55); }
[data-theme="color"] .final .eyebrow .idx { color: #FCD34D; }

html, body {
  margin: 0;
  background: var(--ink-1);
  color: var(--fg-1);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "ss01" 1, "tnum" 1, "cv01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 240ms ease, color 240ms ease;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }

.shell { width: var(--col); margin: 0 auto; }

/* ===========================================================
   TYPE
   =========================================================== */
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.tnum { font-variant-numeric: tabular-nums; }

h1, h2, h3 { margin: 0; color: var(--fg-1); font-family: var(--heading-font); }
h1 {
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 500;
}
h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 500;
}
h3 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 500;
}

p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.6; letter-spacing: -0.005em; }
.lead { color: var(--fg-2); font-size: 17px; line-height: 1.55; letter-spacing: -0.008em; max-width: 56ch; font-weight: 400; }
.body-muted { color: var(--fg-3); }
.body-dim { color: var(--fg-4); }

/* The bureau "stamp" — mono uppercase label, used as section eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);                /* a11y: was --fg-4 (3.5:1 на 11px не проходило) */
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow .idx { color: var(--azure); }
.eyebrow .sep {
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--fg-5);
  transform: translateY(-3px);
}

.numeric-display {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ===========================================================
   HEADER
   =========================================================== */
.bureau-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px var(--edge);
  background: color-mix(in srgb, var(--ink-1) 86%, transparent);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid var(--line-1);
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-monogram .mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line-3);
  background: transparent;
  color: var(--fg-1);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  position: relative;
}
/* No accent dot — clean monogram square only. */
.brand-monogram .word {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.bureau-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.bureau-nav a { position: relative; padding: 6px 0; transition: color 200ms ease; }
.bureau-nav a:hover { color: var(--fg-1); }
.bureau-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--azure);
}

.bureau-utility {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bureau-utility a { color: var(--fg-3); transition: color 200ms ease; }
.bureau-utility a:hover { color: var(--fg-1); }

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 0;
  border-radius: 2px;
  transition: background 200ms ease, transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms ease;
}
.btn-primary:hover { background: var(--btn-primary-bg-hover); transform: translateY(-2px); box-shadow: 0 8px 24px var(--btn-primary-shadow); }
.btn-primary i { width: 14px; height: 14px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  color: var(--fg-1);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid var(--line-3);
  border-radius: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}
.btn-ghost:hover { border-color: var(--azure); color: var(--azure); transform: translateY(-1px); }
.btn-ghost i { width: 13px; height: 13px; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--fg-1);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--line-3);
  transition: border-color 200ms ease, color 200ms ease;
}
.btn-text:hover { border-bottom-color: var(--azure); color: var(--azure); }
.btn-text i { width: 13px; height: 13px; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.9fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding: clamp(64px, 8vw, 120px) var(--edge) clamp(80px, 9vw, 144px);
  border-bottom: 1px solid var(--line-1);
  position: relative;
}
.hero .figure { display: flex; justify-content: flex-end; }
.hero .hero-browser { width: 100%; max-width: 640px; }

/* dot grid that fades — azure computational background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(61,169,255,0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 90% 70% at 68% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 68% 45%, black 20%, transparent 75%);
}

.hero-left { padding-top: 8px; position: relative; }

.hero-lead {
  margin: 28px 0 0;
  color: var(--fg-2);
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 40ch;
  font-weight: 400;
}

/* "Spec sheet" — replaces the SaaS bullet list */
.spec {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.spec-cell {
  padding: 20px 0;
  border-right: 1px solid var(--line-1);
  display: grid;
  gap: 8px;
}
.spec-cell:last-child { border-right: 0; }
.spec-cell .label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.spec-cell .value {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  color: var(--fg-1);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.spec-cell .value .accent { color: var(--azure); }
.spec-cell .unit {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 40px 0 0;
  align-items: center;
}

.hero-micro {
  margin: 24px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--fg-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Figure — chrome around the video */
.figure {
  position: relative;
}
.figure-frame {
  margin: 0;
  border: 1px solid var(--line-2);
  background: var(--ink-2);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}
.figure-frame iframe,
.figure-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--ink-1);
}

/* ===========================================================
   PARTNERS TICKER  — right-to-left marquee with vignette-fade edges.
   Names emerge from darkness in the center, fade back into darkness on the left.
   =========================================================== */
.partners {
  padding: 56px 0 60px;
  background: var(--ink-1);
  border-bottom: 1px solid var(--line-1);
  position: relative;
  overflow: hidden;
}
.partners-shell {
  display: grid;
  gap: 28px;
}
.partners-eyebrow {
  padding: 0 var(--edge);
  opacity: 0.55;
}

.ticker {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 56px;
  /* Vignette-fade on BOTH edges — left fades to ink as names exit, right fades in as names enter.
     The center is bright; both edges go to pure ink. */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 12%,
    rgba(0, 0, 0, 0.95) 32%,
    #000 50%,
    #000 60%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.4) 92%,
    transparent 100%
  );
          mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.4) 12%,
    rgba(0, 0, 0, 0.95) 32%,
    #000 50%,
    #000 60%,
    rgba(0, 0, 0, 0.95) 78%,
    rgba(0, 0, 0, 0.4) 92%,
    transparent 100%
  );
}

.ticker-track {
  display: flex;
  gap: 72px;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  /* Translate by exactly half the track width (we duplicated the list once),
     so the loop is seamless. */
  100% { transform: translateX(-50%); }
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--fg-2);
  white-space: nowrap;
  line-height: 1;
  text-transform: uppercase;
  font-feature-settings: "ss01" 1;
}

@media (max-width: 1024px) {
  .ticker-track { gap: 48px; animation-duration: 48s; }
  .ticker-item { font-size: 18px; }
}

/* ===========================================================
   SECTION primitives
   =========================================================== */
.section {
  padding: clamp(80px, 9vw, 140px) var(--edge);
  border-bottom: 1px solid var(--line-1);
  position: relative;
}
.section--ink-2 { background: var(--ink-2); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: end;
  margin-bottom: clamp(56px, 6vw, 88px);
}
.section-head .lead { margin: 0; }
.section-head .eyebrow { display: none; }

/* ===========================================================
   ANALYTICAL CORE — «ФАС глазами практики» (flagship section)
   =========================================================== */
.core-bridge {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure);
}
.core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.core-card {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 26px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.core-card:hover {
  border-color: var(--azure-line);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(20, 50, 120, 0.09);
}
.core-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.core-icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--azure-soft);
  color: var(--azure);
}
.core-icon i { width: 23px; height: 23px; }
.core-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.core-card-title {
  font-family: var(--heading-font);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 12px;
}
.core-card-what {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 18px;
}
.core-what-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure);
  margin-right: 9px;
  transform: translateY(-1px);
}
.core-benefits {
  list-style: none;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line-1);
  display: grid;
  gap: 11px;
}
.core-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-2);
}
.core-benefits li i {
  flex-shrink: 0;
  width: 15px; height: 15px;
  margin-top: 3px;
  color: var(--azure);
  stroke-width: 2.5;
}

/* Trust panel */
.core-trust {
  margin-top: 22px;
  padding: clamp(28px, 4vw, 40px);
  background: var(--azure-soft);
  border: 1px solid var(--azure-line);
  border-radius: 14px;
}
.core-trust-title {
  font-family: var(--heading-font);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 24px;
}
.core-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
}
.core-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
}
.core-trust-list li i {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  color: var(--azure);
}
.core-trust-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--azure-line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
}
.core-trust-note i {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--fg-4);
}
.core-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .core-grid { grid-template-columns: 1fr; }
  .core-trust-list { grid-template-columns: 1fr; }
}

/* OPIS — rule-separated rows, the canonical content block */
.opis-table { border-top: 1px solid var(--line-2); }

.opis-line {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1.2fr) minmax(0, 2.4fr);
  gap: clamp(20px, 3vw, 40px);
  padding: 28px 0;
  border-bottom: 1px solid var(--line-1);
  align-items: baseline;
  transition: background 240ms ease;
}
.opis-line:hover { background: rgba(255, 255, 255, 0.012); }
.opis-line .num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 4px;
}
.opis-line .num .accent { color: var(--azure); }
.opis-line .title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1.22;
  letter-spacing: -0.012em;
}
.opis-line .text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
  letter-spacing: -0.003em;
  max-width: 60ch;
}
.opis-line .meta { display: none; }   /* мелкие mono-метки убраны */

/* FAQ */
.opis-faq .opis-line {
  cursor: pointer;
  grid-template-columns: 72px 1fr 24px;
}
.opis-faq .opis-line .title { font-size: 17px; }
.opis-faq .opis-answer {
  grid-column: 2 / span 2;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-3);
  max-width: 64ch;
  /* Accordion animation */
  overflow: hidden;
  max-height: 0;
  margin: 0;
  opacity: 0;
  transition: max-height 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 220ms ease-out,
              margin 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.opis-faq .opis-answer--open {
  max-height: 240px;
  opacity: 1;
  margin: 8px 0 20px;
}
.opis-faq .caret { color: var(--fg-4); transition: transform 260ms cubic-bezier(.22,.61,.36,1), color 200ms ease; }
.opis-faq .opis-line:hover .caret { color: var(--azure); }
.opis-faq .caret.open { transform: rotate(180deg); color: var(--azure); }

/* ===========================================================
   PROBLEM GRID — 4 cells, dark
   =========================================================== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.problem-cell {
  display: grid;
  align-content: space-between;
  padding: 40px 32px;
  background: var(--ink-1);
  min-height: 220px;
  transition: background 240ms ease;
}
.problem-cell:hover { background: var(--ink-2); }
.problem-cell .num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--azure);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.problem-cell .text {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.28;
  color: var(--fg-1);
  letter-spacing: -0.015em;
  max-width: 32ch;
}

/* ===========================================================
   MODULE GRID — proves «один сервис вместо пяти» with 5 module tiles
   =========================================================== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}
.module-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.module-tile:hover {
  border-color: var(--azure-line);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.module-tile-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--azure);
}
.module-tile-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--azure-soft);
  border-radius: 6px;
  color: var(--azure);
  margin-bottom: 4px;
}
.module-tile-icon i { width: 20px; height: 20px; }
.module-tile-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-1);
  letter-spacing: -0.005em;
}
.module-tile-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-3);
}
.module-grid-caption {
  margin: 28px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-4);
}
@media (max-width: 1100px) {
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===========================================================
   PULL-QUOTE — single moment of emphasis
   =========================================================== */
.pullquote-section {
  padding: clamp(88px, 11vw, 168px) var(--edge);
  background: var(--ink-1);
  border-bottom: 1px solid var(--line-1);
  position: relative;
  overflow: hidden;
}
.pullquote-section::before {
  /* Subtle dot pattern bg */
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(61, 169, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 80%);
}
.pullquote-frame {
  display: grid;
  grid-template-columns: minmax(60px, 0.5fr) minmax(0, 3fr) minmax(60px, 0.5fr);
  gap: 32px;
  position: relative;
}
.pullquote-frame .quote {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  color: var(--fg-1);
  letter-spacing: -0.028em;
}
.pullquote-frame .quote .accent { color: var(--azure); }
.pullquote-frame .attribution {
  margin-top: 36px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pullquote-frame .attribution .sep { display: inline-block; width: 24px; height: 1px; background: var(--fg-5); transform: translateY(-3px); }

/* ===========================================================
   FINAL CTA
   =========================================================== */
.final {
  padding: clamp(96px, 11vw, 160px) var(--edge);
  background: var(--ink-1);
  text-align: center;
  border-bottom: 1px solid var(--line-1);
  position: relative;
}
.final .eyebrow { display: none; }
.final h2 { max-width: 18ch; margin: 0 auto; }
.final p { max-width: 50ch; margin: 26px auto 0; color: var(--fg-3); }
.final .hero-actions { justify-content: center; margin-top: 40px; }
.final-includes {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 28px;
  max-width: 760px;
  text-align: left;
}
.final-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-2);
}
.final-includes li i {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--azure);
  stroke-width: 2.5;
}
[data-theme="color"] .final-includes li { color: rgba(255,255,255,0.88); }
[data-theme="color"] .final-includes li i { color: #FCD34D; }
.final .marginalia {
  display: block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.bureau-footer {
  padding: 72px var(--edge) 40px;
  background: var(--ink-0);
  color: var(--fg-3);
  border-top: 1px solid var(--line-1);
}
.colophon {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-1);
}
.colophon-about p {
  max-width: 36ch;
  margin: 22px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
}
.colophon-col h3 {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.colophon-col a {
  display: block;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-3);
  transition: color 200ms ease;
}
.colophon-col a:hover { color: var(--fg-1); }

.legal-strip {
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: baseline;
}
.legal-text { display: grid; gap: 8px; }
.legal-strip p {
  margin: 0;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--fg-4);
  letter-spacing: -0.002em;
  max-width: 80ch;
}
.legal-strip .stamps {
  display: grid;
  gap: 6px;
  text-align: right;
}
.legal-strip .stamps span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===========================================================
   MODAL
   =========================================================== */
.modal-back {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(14px);
}
.modal-paper {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 48px 44px 40px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.modal-paper .modal-stamp {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--azure);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.modal-paper h2 { max-width: 18ch; padding-right: 32px; font-size: 30px; }
.modal-paper > p { margin: 14px 0 32px; color: var(--fg-3); font-size: 14.5px; }
.modal-close-x {
  position: absolute;
  top: 18px; right: 18px;
  display: grid; place-items: center;
  width: 32px; height: 32px;
  background: transparent; border: 0;
  color: var(--fg-3);
}
.modal-close-x:hover { color: var(--fg-1); }

.modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 22px;
}
.modal-form label { display: grid; gap: 8px; }
.modal-form label.full, .modal-form .form-note, .modal-form .btn-primary { grid-column: 1 / -1; }
.modal-form label span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.modal-form input, .modal-form textarea {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--line-3);
  padding: 10px 0;
  color: var(--fg-1);
  background: transparent;
  outline: none;
  font: 400 15px/1.4 var(--sans);
  border-radius: 0;
  letter-spacing: -0.003em;
}
.modal-form input:focus, .modal-form textarea:focus { border-bottom-color: var(--azure); }
.modal-form .form-note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--fg-4);
  line-height: 1.55;
}
.success-state {
  text-align: center;
  padding: 40px 0 16px;
  display: grid; gap: 18px; justify-items: center;
}
.success-state h2 { padding: 0; font-size: 28px; }
.success-state p { margin: 0; max-width: 40ch; color: var(--fg-3); font-size: 14.5px; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .bureau-nav { display: none; }
  .bureau-utility { gap: 12px; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .section-head { grid-template-columns: 1fr; gap: 28px; }
  .opis-line { grid-template-columns: 72px 1fr; }
  .opis-line .text { grid-column: 2; }
  .opis-line .meta { grid-column: 2; text-align: left; }
  .opis-faq .opis-line { grid-template-columns: 72px 1fr 24px; }
  .pullquote-frame { grid-template-columns: 1fr; }
  .colophon { grid-template-columns: 1fr 1fr; }
  .legal-strip { grid-template-columns: 1fr; }
  .legal-strip .stamps { text-align: left; }
  .spec { grid-template-columns: 1fr; }
  .spec-cell { border-right: 0; border-bottom: 1px solid var(--line-1); padding: 14px 0; }
}
@media (max-width: 640px) {
  .bureau-header { grid-template-columns: 1fr auto; padding: 14px var(--edge); }
  .problem-grid { grid-template-columns: 1fr; }
  .modal-form { grid-template-columns: 1fr; }
  .modal-paper { padding: 36px 24px 28px; }
  .colophon { grid-template-columns: 1fr; gap: 32px; }
  /* New sections responsive */
  .scenario-stepper { gap: 0; }
  .role-grid { grid-template-columns: 1fr; }
  .showcase-tabs { gap: 6px; }
  .showcase-tab { padding: 10px 14px; font-size: 12px; }
  .diff-header { display: none; }
  .diff-row { grid-template-columns: 1fr; gap: 0; }
  .diff-cell-left { border-bottom: 0; opacity: 0.5; }
  .diff-cell-right { border-top: 1px solid var(--line-2); }
}

/* ===========================================================
   HERO CHECKLIST  (replaces SaaS bullet-list)
   =========================================================== */
.hero-checklist {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line-2);
  padding-top: 28px;
}
.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  letter-spacing: -0.003em;
}
.hero-check-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-top: 1px;
  color: var(--azure);
}
.hero-check-icon i { width: 13px; height: 13px; }

/* Figure caption below hero iframe */
.figure-caption {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-top: 12px;
  padding: 0 2px;
}

/* ===========================================================
   SCENARIO WALKTHROUGH  — vertical stepper
   =========================================================== */
.scenario-stepper {
  display: grid;
  gap: 0;
  max-width: 800px;
}

.scenario-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 28px;
}

.scenario-step-track {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scenario-step-node {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--azure-line);
  background: var(--azure-soft);
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.scenario-step-rail {
  flex: 1;
  width: 1px;
  background: var(--line-2);
  min-height: 32px;
}

.scenario-step-body {
  padding: 6px 0 48px;
}

.scenario-step-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1.22;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
}

.scenario-step-text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
  letter-spacing: -0.003em;
  margin: 0 0 14px;
  max-width: 58ch;
}

.scenario-step-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-1);
  padding: 4px 10px;
}

/* ===========================================================
   ROLE CARDS  — 2x2 grid (replaces opis-table for roles)
   =========================================================== */
.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}

.role-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 36px 32px 40px;
  background: var(--ink-2);
  transition: background 240ms ease;
}
.role-card:hover { background: var(--ink-4); }

.role-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-2);
  color: var(--azure);
}
.role-icon i { width: 16px; height: 16px; }

.role-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--fg-5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-1);
  line-height: 1.28;
  letter-spacing: -0.012em;
  margin: 0;
}

.role-value {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--fg-3);
  letter-spacing: -0.003em;
  margin: 0;
}

.role-items {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line-1);
  padding-top: 16px;
}
.role-items li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--fg-4);
  letter-spacing: -0.002em;
}
.role-item-dot {
  flex-shrink: 0;
  width: 3px; height: 3px;
  background: var(--azure);
  border-radius: 50%;
}

/* ===========================================================
   INTERFACE SHOWCASE  — tab switcher + product screenshot
   =========================================================== */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.showcase-tab {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
  text-align: left;
}
.showcase-tab:hover { border-color: var(--azure-line); color: var(--fg-1); }
.showcase-tab.active {
  border-color: var(--azure);
  color: var(--fg-1);
  background: var(--azure-soft);
}

.showcase-panel {
  border: 1px solid var(--line-2);
  background: var(--ink-2);
}

.showcase-figure {
  margin: 0;
  overflow: hidden;
  line-height: 0;
}

.showcase-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 560px;
  object-position: top left;
}

/* Value block — strong phrase + supporting line per active screen */
.showcase-value {
  position: relative;
  padding: 28px 32px 32px;
  border-top: 1px solid var(--line-1);
  animation: showcaseValueIn 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.showcase-value::before {
  content: '';
  position: absolute;
  left: 0;
  top: 30px;
  width: 2px;
  height: 50px;
  background: var(--azure);
}
.showcase-value-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.showcase-value-kicker .mono {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--azure);
}
.showcase-value-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);                /* a11y: было --fg-4 (3.8:1 на 10.5px не проходило) */
}
.showcase-value-phrase {
  margin: 0;
  max-width: 800px;
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--fg-1);
}
.showcase-value-desc {
  margin: 13px 0 0;
  max-width: 660px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-3);
}
.showcase-img { animation: showcaseImgIn 480ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes showcaseValueIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes showcaseImgIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-value, .showcase-img { animation: none; }
}

/* ===========================================================
   DIFFERENTIATION TABLE  — vs comparison
   =========================================================== */
.diff-table {
  border: 1px solid var(--line-2);
  margin-bottom: 40px;
}

.diff-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}

.diff-col-label {
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.diff-col-ferman { color: var(--azure); border-left: 1px solid var(--line-2); }

.diff-ferman-badge {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--azure);
  border: 1px solid var(--azure-line);
  padding: 3px 8px;
  letter-spacing: 0.1em;
}

.diff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line-1);
  transition: background 200ms ease;
}
.diff-row:last-child { border-bottom: 0; }
.diff-row:hover { background: rgba(255, 255, 255, 0.012); }

.diff-cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 28px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.003em;
}

.diff-cell-left {
  color: var(--fg-4);
  border-right: 1px solid var(--line-1);
}
.diff-cell-right { color: var(--fg-2); }

.diff-cross {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-top: 1px;
  color: var(--fg-5);
  border: 1px solid var(--line-1);
}
.diff-check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-top: 1px;
  color: var(--azure);
  border: 1px solid var(--azure-line);
  background: var(--azure-soft);
}

.diff-cta {
  display: flex;
  justify-content: flex-start;
}

/* ===========================================================
   HERO BROWSER CHROME  — Mac-style frame around the iframe
   =========================================================== */
.hero-browser {
  border: 1px solid rgba(61,169,255,0.22);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(61,169,255,0.08),
    0 24px 64px rgba(0,0,0,0.55),
    0 0 80px rgba(61,169,255,0.07);
  background: var(--ink-2);
  position: relative;
}

.hero-browser-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--ink-3);
  border-bottom: 1px solid rgba(61,169,255,0.14);
  gap: 6px;
}

.hero-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-browser-dot--red    { background: #FF5F57; }
.hero-browser-dot--yellow { background: #FFBD2E; }
.hero-browser-dot--green  { background: #28CA42; }

.hero-browser-url {
  flex: 1;
  margin: 0 10px;
  height: 20px;
  background: var(--ink-4);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--fg-5);
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

/* strip the old figure-frame border since browser-chrome provides it */
.hero-browser .figure-frame {
  border: 0;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}

/* ===========================================================
   UI/UX PRO MAX — ACCESSIBILITY & INTERACTION LAYER
   Priority 1–2 from the 10-category matrix:
   focus-visible, active press, contrast fixes, cursor, motion
   =========================================================== */

/* 1. FOCUS-VISIBLE RINGS — keyboard navigation (WCAG 2.4.7)
   Use outline instead of box-shadow so it overlaps borders cleanly. */
:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
}
/* Buttons and tab controls need a slightly larger offset */
button:focus-visible,
a:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Don't show for mouse clicks — only keyboard */
:focus:not(:focus-visible) { outline: none; }

/* 2. ACTIVE / PRESS STATES — immediate tactile feedback (150ms) */
.btn-primary {
  transition: background 200ms ease, transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms ease;
}
.btn-primary:active {
  transform: scale(0.97) translateY(0) !important;
  box-shadow: none !important;
  background: var(--btn-primary-bg-active);
}
.btn-ghost:active {
  transform: scale(0.97) !important;
  opacity: 0.85;
}
.showcase-tab:active { transform: scale(0.98); }
.role-card:active    { background: var(--ink-3); }

/* 3. CURSOR — all interactive divs/spans that aren't native buttons */
.showcase-tab,
.role-card,
.faq-q,
[role="tab"],
[role="button"] { cursor: pointer; }

/* 4. CONTRAST FIXES
   .role-tag used --fg-5 (#383E48) on --ink-2 → 1.8:1 ratio ❌
   .diff-cross used --fg-5 → same issue
   Fix: promote to --fg-4 (#5D6573) which gives ≈3.5:1 on dark bg.
   For eyebrow/micro text (10px uppercase) use --fg-3 for 7:1.     */
.role-tag   { color: var(--fg-4) !important; }
.hero-micro { color: var(--fg-3) !important; }
/* Eyebrow separators and idx numbers stay azure (already high contrast) */
.scenario-step-tag { color: var(--fg-3) !important; }
.diff-cross { color: var(--fg-4) !important; }

/* 5. PREFERS-REDUCED-MOTION — WCAG 2.3.3
   Remove all animations and transitions when user has the system
   preference enabled. Keeps content accessible for vestibular disorders. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .section-reveal { opacity: 1 !important; transform: none !important; }
}

/* 6. SCROLL-REVEAL — sections animate in from below the fold.
   The IntersectionObserver in App adds .section-reveal to below-fold
   sections and .section-reveal--visible when they enter the viewport. */
.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 480ms cubic-bezier(.25,.46,.45,.94),
              transform 480ms cubic-bezier(.25,.46,.45,.94);
}
.section-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a revealed section */
.section-reveal--visible .opis-line:nth-child(1) { transition-delay: 0ms; }
.section-reveal--visible .opis-line:nth-child(2) { transition-delay: 60ms; }
.section-reveal--visible .opis-line:nth-child(3) { transition-delay: 120ms; }
.section-reveal--visible .opis-line:nth-child(4) { transition-delay: 180ms; }
.section-reveal--visible .opis-line:nth-child(5) { transition-delay: 240ms; }
.section-reveal--visible .role-card:nth-child(1) { transition-delay: 0ms; }
.section-reveal--visible .role-card:nth-child(2) { transition-delay: 80ms; }
.section-reveal--visible .role-card:nth-child(3) { transition-delay: 160ms; }
.section-reveal--visible .role-card:nth-child(4) { transition-delay: 240ms; }

/* Role cards need their own opacity/transform for stagger to work */
.section-reveal .role-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out, background 240ms ease;
}
.section-reveal--visible .role-card {
  opacity: 1;
  transform: translateY(0);
}


/* ===========================================================
   Particle canvas -- theme-agnostic hero overlay
   Works across dark / light / color themes
   =========================================================== */

/* Canvas sits behind hero content */
#hero-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 0 !important;
  opacity: 0.72;
}

/* Keep all hero children in front of canvas */
.hero > *:not(#hero-particle-canvas) {
  position: relative;
  z-index: 1;
}

/* ===========================================================
   UPGRADE v7 — Design improvements
   Scroll spy, sticky bar, testimonials, hero stats, polish
   =========================================================== */

/* ── Focus rings (keyboard navigation) ───────────────────── */
:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Nav active state (scroll spy) ───────────────────────── */
.bureau-nav a.nav-link--active {
  color: var(--fg-1);
  font-weight: 500;
}
.bureau-nav a.nav-link--active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--azure);
}

/* ── Cursor pointer on interactive non-button elements ───── */
.role-card,
.showcase-tab,
.diff-row,
[role="tab"]            { cursor: pointer; }

/* ── Hero micro-stats row ─────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 20px 0 26px;
  padding: 16px 0;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-stat-value {
  font-family: var(--mono);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--azure);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--fg-4);
}
.hero-stat-sep {
  width: 1px;
  height: 26px;
  background: var(--line-2);
  flex-shrink: 0;
}

/* ── Sticky demo bar ─────────────────────────────────────── */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(15, 20, 27, 0.90);
  border-top: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 10px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 380ms cubic-bezier(0.23, 1, 0.32, 1);
}
.sticky-bar--visible { transform: translateY(0); }
.sticky-bar-copy {
  font-size: 13px;
  color: var(--fg-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-bar-copy strong { color: var(--fg-1); font-weight: 600; }
.sticky-bar .btn-primary {
  font-size: 12px;
  padding: 9px 18px;
  flex-shrink: 0;
  white-space: nowrap;
}
[data-theme="color"] .sticky-bar {
  background: rgba(249, 250, 251, 0.94);
  border-top-color: var(--line-2);
}
[data-theme="color"] .sticky-bar .sticky-bar-copy {
  color: var(--fg-2);
}
@media (max-width: 640px) {
  .sticky-bar-copy { display: none; }
}

/* ── Testimonials section ─────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.testimonial-card {
  background: var(--ink-2);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.testimonial-card:hover {
  border-color: var(--azure-line);
  box-shadow: 0 6px 28px rgba(0,0,0,0.14);
}
.testimonial-quote {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg-2);
  flex: 1;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-1);
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.3;
}
.testimonial-role {
  font-size: 11.5px;
  color: var(--fg-4);
  line-height: 1.4;
  margin-top: 2px;
}

/* ── iframe skeleton shimmer ─────────────────────────────── */
.figure-frame { position: relative; }
.figure-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--ink-2) 0%,
    var(--ink-3) 45%,
    var(--ink-4) 55%,
    var(--ink-2) 100%
  );
  background-size: 300% 100%;
  animation: shimmer-load 1.6s ease-in-out infinite;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 350ms ease;
}
.figure-skeleton--hidden {
  opacity: 0;
  pointer-events: none;
}
@keyframes shimmer-load {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

/* ===========================================================
   SKIP-LINK — a11y, visible only on keyboard focus
   =========================================================== */
.skip-link {
  position: absolute;
  top: -120px;
  left: 12px;
  z-index: 9999;
  padding: 10px 18px;
  background: var(--bg);
  color: var(--fg-1);
  border: 2px solid var(--azure);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus {
  top: 12px;
  outline: none;
}

/* ===========================================================
   MOBILE — late overrides.
   Must come AFTER base component definitions (.role-grid #1367,
   .diff-* #1570) so equal-specificity rules actually win.
   Earlier @media blocks were defeated by later base rules —
   that's why Roles/Differentiation looked crammed on phones.
   =========================================================== */
@media (max-width: 640px) {
  /* ── Roles — single column, de-crammed ── */
  .role-grid { grid-template-columns: 1fr; }
  .role-card { padding: 26px 22px 28px; }

  /* ── Differentiation — stacked, LABELLED cards (not a squeezed 2-col table) ── */
  .diff-table { border: 0; margin-bottom: 28px; }
  .diff-header { display: none; }
  .diff-row {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--ink-2);
  }
  .diff-row:last-child { margin-bottom: 0; }
  .diff-row:hover { background: var(--ink-2); }
  .diff-cell {
    position: relative;
    padding: 32px 16px 15px;
    border-right: 0;
    font-size: 13.5px;
    align-items: flex-start;
  }
  .diff-cell-left {
    color: var(--fg-3);
    opacity: 1;                       /* was 0.5 — restore contrast */
    border-bottom: 1px solid var(--line-1);
  }
  .diff-cell-right { color: var(--fg-1); }
  .diff-cell::before {
    position: absolute;
    top: 11px; left: 16px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .diff-cell-left::before  { content: "Обычный мониторинг"; color: var(--fg-3); }
  .diff-cell-right::before { content: "Ferman Закупки"; color: var(--azure); }
  .diff-cta { justify-content: stretch; }
  .diff-cta .btn-primary { width: 100%; justify-content: center; }
}
