:root {
  --bg: #07080c;
  --bg-alt: #101218;
  --bg-soft: #161922;
  --surface: rgba(16, 18, 24, 0.72);
  --text: #f4f5f7;
  --muted: #9aa3b2;
  --accent: #e10600;
  --accent-hover: #ff2a1f;
  --accent-soft: rgba(225, 6, 0, 0.14);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);
  --ok: #3dd68c;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

#scenario > .wrap {
  position: relative;
}

.scenario-sys-bridge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scenario-sys-bridge.is-on {
  opacity: 1;
}

.scenario-sys-bridge-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(225, 6, 0, 0.45));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 12, 0.96);
  border-bottom: 1px solid var(--border-soft);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 1025px) {
    header {
      background: rgba(7, 8, 12, 0.82);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-text em {
  font-style: normal;
  color: var(--text);
}

.logo-text b {
  font-weight: 700;
  color: var(--accent);
}

.site-nav {
  display: none;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .site-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    height: 57px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .site-nav a {
    pointer-events: auto;
  }
}

.site-nav a { color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }

.site-nav-cta,
.btn.site-nav-cta {
  display: none;
}

.nav-close {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

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

/* HERO */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: min(92vh, 900px);
  max-height: 980px;
  padding: 0;
  overflow: hidden;
}

.hero-visual {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: inherit;
  max-height: inherit;
  padding: 88px 0 28px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #07080c;
}

.hero-media .hero-video,
.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero-media .hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Taller hero + mid framing = more of the scene in frame */
  object-position: center 30%;
  background: #07080c;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  display: none;
}

.hero-media img {
  /* стартовый transform = from keyframes — без скачка при старте анимации */
  transform: scale(1.05);
  animation: heroKen 36s ease-in-out 1.2s infinite alternate;
  will-change: transform;
}

@keyframes heroKen {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-0.8%, -0.5%, 0); }
}

/* Same bottom fade as contact — darkens video into the next section */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(7, 8, 12, 0.28) 0%,
      rgba(7, 8, 12, 0.12) 28%,
      rgba(7, 8, 12, 0.18) 48%,
      rgba(7, 8, 12, 0.5) 72%,
      rgba(7, 8, 12, 0.85) 88%,
      var(--bg) 100%
    ),
    linear-gradient(
      90deg,
      rgba(7, 8, 12, 0.92) 0%,
      rgba(7, 8, 12, 0.72) 42%,
      rgba(7, 8, 12, 0.28) 72%,
      rgba(7, 8, 12, 0.45) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 72px;
}

.hero-main {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.hero-context {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  width: 100%;
  align-self: end;
  padding: 28px 0;
  pointer-events: none;
}

.hero-context .context-grid {
  pointer-events: auto;
}

.hero-scroll-hint {
  display: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.hero-brand {
  margin: 0 0 14px;
  font-family: var(--font-display), "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  /* меньше сдвиг метрик при swap шрифта */
  font-synthesis: none;
}

.hero-brand .tm {
  font-size: 0.35em;
  vertical-align: super;
  letter-spacing: 0;
}

.hero-line {
  margin: 0 0 24px;
  font-family: var(--font-display), "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  font-synthesis: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* CONTEXT */
.context {
  position: relative;
  padding: 8px 0 56px;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
}

.hero-context .context-grid {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(10, 12, 18, 0.72), rgba(7, 8, 12, 0.55));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(16, 18, 24, 0.92), rgba(10, 12, 18, 0.55));
}

.context-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 22px 22px 24px;
  min-width: 0;
}

.context-item + .context-item {
  border-left: 1px solid var(--border-soft);
}

.context-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.85;
}

.context-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1.2;
  padding-top: 2px;
}

.context-body {
  min-width: 0;
}

.context-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.context-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* CLIENTS MARQUEE */
.clients {
  padding: 38px 0;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.clients-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.clients-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.clients-marquee {
  position: relative;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: clients-marquee 32s linear infinite;
}

.clients-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.clients-list li {
  position: relative;
  padding: 0 28px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 245, 247, 0.55);
  white-space: nowrap;
}

.clients-list li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  transform: translate(50%, -50%);
  opacity: 0.75;
}

@keyframes clients-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
  .clients-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .clients-track .clients-list[aria-hidden="true"] { display: none; }
}

/* SECTIONS */
section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 36px;
  max-width: 720px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* COMPETENCIES */
#skills {
  /* No local grid — use the page-level fixed grid so lines join across sections */
  background: transparent;
}

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

.comp-card {
  padding: 24px 22px;
  border: none;
  border-radius: 24px;
  background: #0c0d12;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    12px 12px 28px #000000,
    -10px -10px 22px #151821;
  transition:
    box-shadow 0.3s ease,
    transform 0.25s ease;
}

.comp-card:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow:
    14px 14px 32px #000000,
    -12px -12px 26px #1a1e2a;
}

.comp-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  object-fit: contain;
}

.comp-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.comp-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* SCENARIO */
.scenario-lead {
  max-width: 760px;
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.scenario-flow {
  margin-bottom: 40px;
}

.scenario-track {
  --track-offset: 0;
  --track-on: 0;
  position: relative;
  min-height: 560px;
  padding: 0;
}

.scenario-track-svg {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 20%;
  bottom: 24%;
  width: 84%;
  height: 56%;
  pointer-events: none;
  z-index: 0;
}

.scenario-track-outer {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 34;
  stroke-linejoin: round;
}

.scenario-track-asphalt {
  fill: rgba(12, 14, 20, 0.45);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 20;
  stroke-linejoin: round;
}

.scenario-track-lane {
  display: none;
}

.scenario-track-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0 100;
  stroke-dashoffset: 0;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(225, 6, 0, 0.55));
  transition:
    stroke-dasharray 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

.scenario-track.is-live .scenario-track-progress {
  opacity: 1;
}

.scenario-track-dot {
  fill: rgba(255, 255, 255, 0.28);
  stroke: #0b0d12;
  stroke-width: 2;
  transition: fill 0.25s ease, r 0.25s ease;
}

.scenario-track-dot.is-active {
  fill: var(--accent);
}

.scenario-mobile-links {
  display: none;
}

.scenario-stages {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  min-height: 560px;
}

.scenario-stages > li {
  position: absolute;
  margin: 0;
  width: min(300px, 32%);
  display: flex;
}

.scenario-stages > li:nth-child(1) { top: 0; left: 0; }
.scenario-stages > li:nth-child(2) { top: 0; left: 50%; transform: translateX(-50%); }
.scenario-stages > li:nth-child(3) { top: 0; right: 0; }
.scenario-stages > li:nth-child(4) { right: 0; }
.scenario-stages > li:nth-child(5) { left: 50%; transform: translateX(-50%); }
.scenario-stages > li:nth-child(6) { left: 0; }

.scenario-stages > li:nth-child(4),
.scenario-stages > li:nth-child(5),
.scenario-stages > li:nth-child(6) {
  top: auto;
  bottom: 0;
  height: 148px;
  align-items: flex-start;
}

.scenario-stages > li:nth-child(1) .scenario-stage,
.scenario-stages > li:nth-child(6) .scenario-stage {
  margin-right: auto;
}

.scenario-stages > li:nth-child(3) .scenario-stage,
.scenario-stages > li:nth-child(4) .scenario-stage {
  margin-left: auto;
}

.scenario-stages > li:nth-child(2) .scenario-stage,
.scenario-stages > li:nth-child(5) .scenario-stage {
  margin-inline: auto;
}

.scenario-stage {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
}

.scenario-stage:focus:not(:focus-visible) {
  outline: none;
}

.scenario-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0b0d12;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.scenario-stage-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 6px;
}

.scenario-stage-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(244, 245, 247, 0.58);
  transition: color 0.2s ease;
}

.scenario-stage-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(154, 163, 178, 0.7);
  transition: color 0.2s ease;
}

.scenario-roles {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 5px;
  margin-top: 2px;
}

.scenario-roles span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(244, 245, 247, 0.55);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.scenario-stage.is-active .scenario-num,
.scenario-stage[aria-current="step"] .scenario-num,
.scenario-stage.is-anchor .scenario-num {
  border-color: var(--accent);
  color: #fff;
  background: rgba(225, 6, 0, 0.2);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.14);
}

.scenario-stage.is-active .scenario-stage-title,
.scenario-stage[aria-current="step"] .scenario-stage-title,
.scenario-stage.is-anchor .scenario-stage-title {
  color: var(--text);
}

.scenario-stage.is-active .scenario-stage-text,
.scenario-stage[aria-current="step"] .scenario-stage-text {
  color: var(--muted);
}

.scenario-stage.is-active .scenario-roles span,
.scenario-stage[aria-current="step"] .scenario-roles span {
  border-color: rgba(225, 6, 0, 0.35);
  color: rgba(244, 245, 247, 0.85);
}

.scenario-stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shot-inline {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #000;
  aspect-ratio: 16 / 9;
}

.shot-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shot-inline--small { max-width: 280px; }
.shot-inline--medium { max-width: 420px; }
.shot-inline--center { margin-left: auto; margin-right: auto; }

/* USP — executive comparison dashboard */
.usp {
  /* Page-level fixed grid (.landing-page::before) — no local tile so seams align */
  background: transparent;
}

.f1-business-dashboard {
  display: flex;
  gap: 32px;
  padding: 0;
  background: transparent;
  font-family: var(--font-body);
  color: #f4f4f5;
}

.legacy-format-card {
  flex: 1;
  min-width: 0;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.legacy-format-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #a1a1aa;
  margin: 0 0 24px 0;
}

.legacy-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legacy-points-list li {
  font-size: 14px;
  line-height: 1.5;
  color: #71717a;
  position: relative;
  padding-left: 20px;
}

.legacy-points-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #3f3f46;
}

.platform-features-panel {
  flex: 2.2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.dashboard-top-bar h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.status-indicator {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e11d48;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.features-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-widget-item {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-widget-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e11d48;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.dashboard-widget-item:hover {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.dashboard-widget-item:hover::before {
  opacity: 1;
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.widget-icon {
  flex-shrink: 0;
  color: #e11d48;
  background: rgba(225, 29, 72, 0.05);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(225, 29, 72, 0.15);
}

.widget-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.dashboard-widget-item h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #f4f4f5;
  line-height: 1.3;
}

.dashboard-widget-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #a1a1aa;
}

@media (max-width: 992px) {
  .f1-business-dashboard {
    flex-direction: column;
    padding: 0;
    gap: 20px;
  }

  .features-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* legacy card helpers kept for other pages if any */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.usp-card {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(16, 18, 24, 0.85);
  min-height: 100%;
}

.usp-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  object-fit: contain;
}

.usp-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.usp-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.usp-vs {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(154, 163, 178, 0.85);
}

.mid-cta {
  margin-top: 40px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(225, 6, 0, 0.28);
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.14), rgba(16, 18, 24, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mid-cta p {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  color: rgba(244, 245, 247, 0.9);
}

/* ANALYTICS */
.analytics-sector {
  position: relative;
  overflow: hidden;
}

.analytics-sector::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 28px,
      rgba(255, 255, 255, 0.015) 28px 29px
    );
  opacity: 0.7;
}

.analytics-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
}

.analytics-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.analytics-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 8px 8px 0;
  min-width: 0;
}

.analytics-intro-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.analytics-intro-text {
  margin: 0 0 22px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.analytics-report-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color 0.2s, border-color 0.2s;
}

.analytics-report-link:hover {
  color: #fff;
  border-color: var(--accent);
}

.an-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(165deg, rgba(22, 26, 36, 0.95), rgba(10, 12, 18, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.an-card-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 245, 247, 0.78);
}

.an-card--radar {
  padding-bottom: 14px;
  min-height: 320px;
}

.an-radar {
  position: relative;
  flex: 1;
  min-height: 210px;
  margin: 0 0 8px;
  padding: 24px 40px 28px;
}

.an-radar-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 250px;
  margin: 0 auto;
}

.an-radar-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.an-radar-axis {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.an-radar-stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(225, 6, 0, 0.45));
}

.an-radar-labels {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.an-radar-labels li {
  position: absolute;
  max-width: 108px;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgba(154, 163, 178, 0.95);
  text-align: center;
}

.an-radar-labels li:nth-child(1) {
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  max-width: 130px;
}

.an-radar-labels li:nth-child(2) {
  top: 18%;
  right: 4px;
  text-align: right;
}

.an-radar-labels li:nth-child(3) {
  bottom: 22%;
  right: 4px;
  text-align: right;
}

.an-radar-labels li:nth-child(4) {
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: 120px;
}

.an-radar-labels li:nth-child(5) {
  bottom: 28%;
  left: 4px;
  text-align: left;
}

.an-radar-labels li:nth-child(6) {
  top: 18%;
  left: 4px;
  text-align: left;
}

.an-score {
  align-self: flex-end;
  max-width: 150px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.an-score strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.an-score strong span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.an-score > span {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  color: var(--muted);
}

.an-card--lists {
  padding: 0;
  gap: 0;
}

.an-list-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 18px 16px;
}

.an-list-block + .an-list-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.an-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.an-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(244, 245, 247, 0.92);
}

.an-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.04);
  position: relative;
}

.an-ico::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.an-ico--grow {
  border-color: rgba(225, 6, 0, 0.45);
  background:
    radial-gradient(circle at 50% 50%, rgba(225, 6, 0, 0.28), transparent 70%),
    rgba(225, 6, 0, 0.08);
}

.an-ico--grow::after {
  background: var(--accent);
}

.an-roles {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.an-roles li {
  display: grid;
  grid-template-columns: 78px 1fr 36px;
  gap: 8px;
  align-items: center;
}

.an-role-name {
  font-size: 11px;
  color: rgba(244, 245, 247, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-role-bar {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.an-role-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w);
  border-radius: inherit;
  background: var(--c);
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.25);
}

.an-role-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
  color: var(--muted);
}

.an-spark {
  height: 64px;
  margin-top: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.an-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.an-spark-grid line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.an-spark-line {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.an-spark-line--a { stroke: #e10600; }
.an-spark-line--b { stroke: #3b82f6; }
.an-spark-line--c { stroke: #f5d000; }

.an-spark-wave {
  animation: an-spark-drift 7s linear infinite;
}

.an-spark-wave--b {
  animation-duration: 9.5s;
  animation-direction: reverse;
}

.an-spark-wave--c {
  animation-duration: 11s;
  animation-delay: -2s;
}

@keyframes an-spark-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-240px); }
}

/* legacy glass cards still used? keep minimal */
.glass-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.glass-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  min-height: 2.4em;
}

.glass-card p {
  margin: 0 0 16px;
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 15px;
}

.glass-card .shot-inline {
  margin-top: auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

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

.step {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--bg-alt);
}

.step-num {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
}

.step p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

/* CONTACT */
.contact {
  position: relative;
  min-height: min(68vh, 620px);
  display: flex;
  align-items: center;
  padding: 80px 0 96px;
  overflow: visible;
  background: transparent;
}

.contact > .wrap {
  position: relative;
  z-index: 3;
  width: 100%;
}

.contact-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #07080c;
  overflow: hidden;
}

.contact-video,
.contact-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  background: #07080c;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.contact-fallback {
  display: none;
}

/* Gradients sit ON the video (inside .contact-media), under .contact-grid */
.contact-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(7, 8, 12, 0.88) 10%,
      rgba(7, 8, 12, 0.4) 28%,
      rgba(7, 8, 12, 0.18) 48%,
      rgba(7, 8, 12, 0.5) 72%,
      rgba(7, 8, 12, 0.85) 88%,
      var(--bg) 100%
    ),
    linear-gradient(
      90deg,
      rgba(7, 8, 12, 0.94) 0%,
      rgba(7, 8, 12, 0.78) 34%,
      rgba(7, 8, 12, 0.28) 62%,
      rgba(7, 8, 12, 0.4) 100%
    );
}

/* Grid ABOVE scrim — not affected by video darkening */
.contact-grid {
  display: none;
}

.contact-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
}

.contact-content .section-head {
  margin-bottom: 18px;
}

.contact-content .section-title {
  color: #fff;
}

.cta-copy {
  max-width: 520px;
  margin: 0 0 18px;
  font-size: 16px;
  color: rgba(244, 245, 247, 0.82);
  line-height: 1.7;
}

.cta-copy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-video {
    display: none;
  }

  .contact-fallback {
    display: block;
  }
}

footer {
  position: relative;
  z-index: 1;
  padding: 36px 0 40px;
  border-top: 0;
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: dotted;
}

.footer-legal a:hover {
  color: var(--text);
}

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  padding: 14px 0 max(14px, env(safe-area-inset-bottom, 0px));
  background: rgba(7, 8, 12, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.cookie-banner-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 920px;
}

.cookie-banner-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-ok {
  flex-shrink: 0;
  min-width: 72px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner-ok:hover { background: var(--accent-hover); }

/* Demo modal */
.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal.active {
  opacity: 1;
  visibility: visible;
}

.demo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.demo-modal-content {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  width: calc(100% - 40px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.demo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.demo-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.demo-modal-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 24px;
  padding-right: 28px;
}

.demo-form-group { margin-bottom: 16px; }

.demo-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.required { color: var(--accent); }

.demo-form-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.demo-form-input:focus {
  outline: none;
  border-color: rgba(225, 6, 0, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.demo-form-error {
  display: block;
  min-height: 16px;
  margin-top: 4px;
  font-size: 12px;
  color: #ff6b6b;
}

.demo-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.demo-checkbox-label,
.demo-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.demo-consent-text { line-height: 1.45; }
.demo-consent-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-submit { background: var(--accent); color: #fff; }
.btn-cancel {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.demo-success-message { text-align: center; padding: 12px 0; }
.demo-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(61, 214, 140, 0.15);
  color: var(--ok);
  font-size: 28px;
}
.demo-success-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
}
.demo-success-text {
  margin: 0 0 18px;
  color: var(--muted);
}
.btn-download { text-decoration: none; }

/* Interactive 3D strategy block */
.s3d {
  --s3d-line: rgba(225, 6, 0, 0.55);
  --s3d-line-dim: rgba(255, 255, 255, 0.14);
  position: relative;
  margin-top: 40px;
  padding: 28px 24px 24px;
  border: 1px solid var(--s3d-line-dim);
  background:
    linear-gradient(90deg, rgba(225, 6, 0, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(225, 6, 0, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(165deg, rgba(18, 20, 28, 0.98), rgba(7, 8, 12, 0.98));
  clip-path: polygon(
    0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px,
    100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px)
  );
}

.s3d:has(.s3d-select-wrap.is-open) {
  clip-path: none;
}

.s3d::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.s3d::after {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}

.s3d-head { margin-bottom: 22px; max-width: 720px; }

.s3d-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.s3d-pulse {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55);
  animation: s3d-pulse 1.8s ease-out infinite;
}

@keyframes s3d-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(225, 6, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

.s3d-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.s3d-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.s3d-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.28fr);
  grid-template-areas:
    "controls stage"
    "controls telemetry";
  gap: 16px;
  align-items: stretch;
}

.s3d-controls { grid-area: controls; }
.s3d-stage { grid-area: stage; }
.s3d-telemetry { grid-area: telemetry; }

.s3d-head-row {
  display: block;
}

.s3d-field--inline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.s3d-inline-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.s3d-field-grow {
  flex: 1;
  min-width: 0;
  width: auto;
  position: relative;
  z-index: 1;
}

.s3d-field-grow:has(.s3d-select-wrap.is-open),
.s3d-select-wrap.is-open {
  z-index: 30;
}

.s3d-controls {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px 16px;
  border: 1px solid var(--s3d-line-dim);
  background: rgba(5, 6, 10, 0.72);
  overflow: visible;
}

.s3d-panel-tag {
  position: absolute;
  top: -1px;
  right: 12px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--accent);
}

.s3d-field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(154, 163, 178, 0.9);
}

.s3d-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.s3d-chip {
  appearance: none;
  position: relative;
  border: 1px solid var(--s3d-line-dim);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.s3d-chip > span {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.s3d-chip--sm > span { padding: 6px 9px; min-width: 28px; text-align: center; }
.s3d-chip--num > span { min-width: 34px; text-align: center; font-weight: 600; }

.s3d-chip:hover {
  border-color: rgba(225, 6, 0, 0.55);
  background: rgba(225, 6, 0, 0.06);
}

.s3d-chip.is-active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.92), rgba(180, 8, 0, 0.95));
  color: #fff;
}

.s3d-chip.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 7px;
  background: #fff;
  opacity: 0.85;
}

.s3d-chip.is-active[data-level="0"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.s3d-chip.is-active[data-level="0"]::after { display: none; }

.s3d-select-wrap {
  position: relative;
  z-index: 1;
}

.s3d-select-wrap.is-open {
  z-index: 30;
}

.s3d-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.18s ease;
}

.s3d-select-wrap.is-open::after {
  transform: translateY(-20%) rotate(225deg);
}

.s3d-select {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 10px 32px 10px 12px;
  border-radius: 0;
  border: 1px solid var(--s3d-line-dim);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px; /* iOS Safari: <16px на фокусе зумит страницу */
  letter-spacing: 0.02em;
  text-align: left;
  appearance: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.s3d-select span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s3d-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(225, 6, 0, 0.35);
}

.s3d-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: min(240px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--s3d-line-dim);
  background: #0b0d12;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  z-index: 40;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.s3d-select-menu[hidden] {
  display: none !important;
}

.s3d-select-option {
  padding: 11px 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.s3d-select-option:hover,
.s3d-select-option:focus {
  background: rgba(225, 6, 0, 0.12);
  outline: none;
}

.s3d-select-option.is-active {
  background: rgba(225, 6, 0, 0.22);
  color: #fff;
}

.s3d-upgrades {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s3d-upgrade-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 8px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.s3d-upgrade-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.s3d-upgrade-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.s3d-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.s3d-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--s3d-line-dim);
  background:
    radial-gradient(circle at 70% 20%, rgba(225, 6, 0, 0.14), transparent 42%),
    radial-gradient(circle at 30% 80%, rgba(225, 6, 0, 0.08), transparent 40%),
    linear-gradient(180deg, #10131a, #05060a);
  display: flex;
  flex-direction: column;
}

.s3d-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
  z-index: 1;
}

.s3d-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(225, 6, 0, 0.08), transparent);
  animation: s3d-scan 5.5s linear infinite;
  z-index: 2;
  mix-blend-mode: screen;
}

@keyframes s3d-scan {
  0% { top: -30%; }
  100% { top: 110%; }
}

.s3d-hud-corners {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 4;
}

.s3d-hud-corners i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.9;
}

.s3d-hud-corners .tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.s3d-hud-corners .tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.s3d-hud-corners .bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.s3d-hud-corners .br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.s3d-hud-top {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

.s3d-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.s3d-live i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  animation: s3d-pulse 1.4s ease-out infinite;
}

.s3d-canvas {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  touch-action: none;
}

.s3d-loading,
.s3d-error {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  pointer-events: none;
  background: rgba(7, 8, 12, 0.45);
}

.s3d-car-meta {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.s3d-car-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(225, 6, 0, 0.45);
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.s3d-telemetry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.s3d-meter {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0;
  border: 1px solid var(--s3d-line-dim);
  background: rgba(5, 6, 10, 0.78);
  overflow: hidden;
}

.s3d-meter-code {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--s3d-line-dim);
  background: rgba(225, 6, 0, 0.1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  writing-mode: horizontal-tb;
}

.s3d-meter-body {
  padding: 10px 12px;
  min-width: 0;
}

.s3d-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.s3d-meter-top span {
  flex-shrink: 0;
}

.s3d-meter-top strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s3d-meter-bar {
  height: 4px;
  border-radius: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 2px,
      transparent 2px 5px
    );
  overflow: hidden;
}

.s3d-meter-bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 0;
  background: linear-gradient(90deg, #ff4d3d, var(--accent));
  box-shadow: 0 0 10px rgba(225, 6, 0, 0.45);
  transition: width 0.35s ease;
}

.s3d-meter[data-meter="wear"] .s3d-meter-bar i {
  background: linear-gradient(90deg, #f5d000, #e10600);
  box-shadow: 0 0 10px rgba(245, 208, 0, 0.35);
}

.s3d-meter[data-meter="risk"] .s3d-meter-bar i {
  background: linear-gradient(90deg, #fb923c, #ef4444);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.s3d-meter[data-meter="budget"] .s3d-meter-bar i {
  background: linear-gradient(90deg, #22c55e, #84cc16);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.s3d-meter[data-meter="budget"] .s3d-meter-code {
  color: var(--ok);
  background: rgba(61, 214, 140, 0.1);
}

/* Desktop: компактный 3D + читаемые контролы */
@media (min-width: 1025px) {
  .s3d {
    margin-top: 24px;
    padding: 18px 18px 14px;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .s3d-head {
    margin-bottom: 14px;
    flex-shrink: 0;
    max-width: none;
  }

  .s3d-head-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
  }

  .s3d-title {
    font-size: 28px;
    margin: 0;
    flex-shrink: 0;
  }

  .s3d-sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    flex: 1;
    min-width: 220px;
  }

  .s3d-kicker { margin-bottom: 6px; font-size: 11px; }

  .s3d-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.3fr);
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "controls stage"
      "controls telemetry";
    gap: 12px;
    align-items: stretch;
  }

  .s3d-controls {
    gap: 14px;
    padding: 16px 14px 14px;
    overflow: visible;
    min-height: 0;
  }

  .s3d-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    gap: 0;
  }

  .s3d-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .s3d-field label { margin-bottom: 7px; font-size: 11px; }

  .s3d-field--inline {
    --s3d-ctrl-h: 42px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
  }

  .s3d-field--inline .s3d-inline-col {
    display: grid;
    grid-template-rows: auto var(--s3d-ctrl-h);
    gap: 7px;
    align-content: start;
  }

  .s3d-field--inline .s3d-inline-col > label {
    margin-bottom: 0;
    line-height: 1.2;
  }

  .s3d-field--inline .s3d-chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    height: var(--s3d-ctrl-h);
    min-height: var(--s3d-ctrl-h);
  }

  .s3d-field--inline .s3d-chip--num {
    display: flex;
    align-self: stretch;
    height: 100%;
  }

  .s3d-field--inline .s3d-chip--num > span {
    flex: 1;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    height: 100%;
    min-height: var(--s3d-ctrl-h);
    min-width: 36px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1;
  }

  .s3d-field--inline .s3d-select-wrap {
    height: var(--s3d-ctrl-h);
    min-height: var(--s3d-ctrl-h);
  }

  .s3d-field--inline .s3d-select {
    flex: none;
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--s3d-ctrl-h);
    min-height: var(--s3d-ctrl-h);
    padding: 0 32px 0 12px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1;
  }

  .s3d-chip > span { padding: 8px 12px; font-size: 12px; }
  .s3d-chip--sm > span { padding: 7px 10px; min-width: 34px; }
  .s3d-chip--num > span { min-width: 36px; }
  .s3d-select { padding: 10px 32px 10px 12px; font-size: 13px; }

  .s3d-upgrades { gap: 8px; }

  .s3d-upgrade-row {
    padding-bottom: 8px;
    grid-template-columns: 110px 1fr;
    gap: 8px;
  }

  .s3d-upgrade-name { font-size: 12px; }

  .s3d-canvas-wrap {
    flex: 1 1 auto;
    height: auto;
    min-height: 280px;
    align-self: stretch;
  }

  .s3d-canvas {
    min-height: 0;
    height: 100%;
  }

  .s3d-meter-code { font-size: 11px; min-width: 40px; }
  .s3d-meter-body { padding: 10px 12px; }
  .s3d-meter-top { margin-bottom: 7px; font-size: 11px; }
  .s3d-meter-top strong { font-size: 15px; }
  .s3d-car-meta { left: 12px; bottom: 12px; }
  .s3d-hud-top { top: 10px; left: 12px; right: 12px; font-size: 10px; }
}

@media (min-width: 1025px) and (max-height: 780px) {
  .s3d-canvas-wrap {
    min-height: 220px;
  }

  .s3d-title { font-size: 24px; }
  .s3d-controls { gap: 10px; padding: 12px; }
  .s3d-chip > span { padding: 7px 10px; font-size: 11px; }
}

@media (max-width: 1024px) {
  .s3d {
    clip-path: none;
  }

  .s3d-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "telemetry"
      "controls";
  }

  .s3d-canvas-wrap,
  .s3d-canvas {
    min-height: 280px;
    touch-action: pan-y;
  }

  /* Compact meters: label + value on one line, less padding */
  .s3d-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .s3d-meter {
    grid-template-columns: 32px 1fr;
  }

  .s3d-meter-code {
    font-size: 9px;
    min-width: 0;
    letter-spacing: 0.04em;
  }

  .s3d-meter-body {
    padding: 7px 9px;
    min-width: 0;
  }

  .s3d-meter-top {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 5px;
    font-size: 9px;
  }

  .s3d-meter-top strong {
    font-size: 13px;
  }

  .s3d-meter-bar {
    height: 3px;
  }

  /* Compact CONFIG panel */
  .s3d-controls {
    gap: 10px;
    padding: 14px 12px 12px;
  }

  .s3d-field label {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .s3d-chips {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .s3d-chip {
    flex: 1 1 0;
    min-width: 0;
  }

  .s3d-chip > span {
    padding: 6px 6px;
    font-size: 10px;
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .s3d-chip--num {
    flex: 0 0 auto;
  }

  .s3d-chip--num > span {
    min-width: 32px;
    padding: 6px 10px;
  }

  .s3d-chip--sm {
    flex: 0 0 auto;
  }

  /* Pits + sponsor: same control height, shared baseline, no overlap */
  .s3d-field--inline {
    --s3d-ctrl-h: 44px;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .s3d-field--inline .s3d-inline-col {
    display: grid;
    grid-template-rows: auto var(--s3d-ctrl-h);
    gap: 5px;
    align-content: start;
  }

  .s3d-field--inline .s3d-inline-col > label {
    margin-bottom: 0;
    line-height: 1.2;
  }

  .s3d-field--inline .s3d-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    height: var(--s3d-ctrl-h);
    align-items: stretch;
  }

  .s3d-field--inline .s3d-chip--num {
    flex: 0 0 auto;
    display: flex;
    height: 100%;
    align-self: stretch;
  }

  .s3d-field--inline .s3d-chip--num > span {
    flex: 1;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    height: 100%;
    min-height: var(--s3d-ctrl-h);
    min-width: 36px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1;
  }

  .s3d-field--inline .s3d-select-wrap {
    height: var(--s3d-ctrl-h);
  }

  .s3d-field--inline .s3d-select {
    flex: none;
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--s3d-ctrl-h);
    min-height: var(--s3d-ctrl-h);
    padding: 0 28px 0 10px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1;
  }

  .s3d-select {
    font-size: 16px; /* iOS: avoid focus zoom */
    min-height: 36px;
    padding: 6px 28px 6px 10px;
  }

  .s3d-select-option {
    font-size: 16px;
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .s3d {
    padding: 18px 12px 14px;
    margin-top: 24px;
    clip-path: none;
  }

  .s3d-controls {
    gap: 8px;
    padding: 12px 10px 10px;
  }

  .s3d-field label {
    margin-bottom: 4px;
  }

  .s3d-chip > span {
    padding: 5px 4px;
    font-size: 9px;
  }

  /* One row per upgrade: name | chips */
  .s3d-upgrades {
    gap: 0;
  }

  .s3d-upgrade-row {
    grid-template-columns: minmax(72px, 0.9fr) minmax(0, 1.4fr);
    gap: 8px;
    padding-bottom: 6px;
    align-items: center;
  }

  .s3d-upgrade-name {
    font-size: 10px;
    line-height: 1.2;
  }

  .s3d-upgrade-row .s3d-chips {
    gap: 4px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .s3d-upgrade-row .s3d-chip {
    flex: 0 0 auto;
  }

  .s3d-upgrade-row .s3d-chip--sm > span {
    padding: 5px 7px;
    min-width: 28px;
    font-size: 10px;
  }

  .s3d-telemetry {
    gap: 5px;
  }

  .s3d-meter {
    grid-template-columns: 28px 1fr;
  }

  .s3d-meter-body {
    padding: 6px 8px;
  }

  .s3d-meter-top {
    margin-bottom: 4px;
    font-size: 8px;
  }

  .s3d-meter-top strong {
    font-size: 12px;
  }

  .s3d-canvas-wrap,
  .s3d-canvas {
    min-height: 240px;
  }

  .s3d-hud-top { font-size: 9px; }

  .s3d-field--inline {
    --s3d-ctrl-h: 44px;
    gap: 10px;
  }

  .s3d-select {
    min-height: 34px;
    padding: 4px 26px 4px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s3d-meter-bar i { transition: none; }
  .s3d-pulse,
  .s3d-live i,
  .s3d-scan { animation: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  header {
    background: #0a0b10;
  }

  .header-demo-btn {
    display: none !important;
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 120;
    flex-shrink: 0;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 110;
    display: flex !important;
    width: min(300px, 82vw);
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 32px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #151821;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 0;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.7);
    transform: translate3d(105%, 0, 0);
    transition: transform 0.28s ease;
    white-space: normal;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .site-nav {
    transform: translate3d(0, 0, 0);
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(0, 0, 0, 0.68);
  }

  .site-nav a {
    display: block;
    flex: 0 0 auto;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #ffffff !important;
    opacity: 1 !important;
  }

  .site-nav a:hover,
  .site-nav a:active {
    color: #fff !important;
  }

  .site-nav-cta,
  .btn.site-nav-cta {
    display: inline-flex !important;
    width: 100%;
    margin-top: 24px;
    justify-content: center;
    flex: 0 0 auto;
  }

  .nav-close {
    display: flex;
    position: sticky;
    top: 0;
    align-self: flex-end;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin: -8px -8px 12px auto;
    padding: 0;
    border: none;
    background: #151821;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
  }

  .nav-close span:first-child {
    transform: rotate(45deg);
  }

  .nav-close span:last-child {
    transform: rotate(-45deg);
  }

  .context-grid {
    grid-template-columns: 1fr;
  }

  .context-item + .context-item {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }

  .clients-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .clients-list li {
    font-size: 16px;
    padding: 0 22px;
  }

  .comp-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .an-card {
    min-height: 260px;
  }

  .an-card--radar {
    min-height: 340px;
  }

  .analytics-intro {
    grid-column: 1 / -1;
    padding: 0 0 8px;
  }

  .analytics-intro-text {
    max-width: 52ch;
  }

  .scenario-flow {
    margin-bottom: 28px;
  }

  .scenario-track {
    min-height: 0;
    padding: 0;
  }

  .scenario-track-svg {
    display: none;
  }

  .scenario-mobile-links {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
  }

  .scenario-mobile-link-base,
  .scenario-mobile-link-fill {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .scenario-mobile-link-base {
    stroke: rgba(255, 255, 255, 0.55);
  }

  .scenario-mobile-link-fill {
    stroke: var(--accent);
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(225, 6, 0, 0.4));
    transition: stroke-dashoffset 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  }

  .scenario-mobile-link-fill.is-on {
    opacity: 1;
  }

  /* Under stage text, above the strategy block — so 04→SYS hits the square. */
  .scenario-sys-bridge {
    z-index: 1;
  }

  #landingStrategy3d.s3d {
    position: relative;
    z-index: 0;
  }

  .scenario-stages {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding-left: 0;
    position: relative;
    z-index: 2;
  }

  .scenario-stages > li {
    position: relative;
    display: block;
    width: 100%;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    height: auto !important;
    z-index: 2;
  }

  .scenario-stages > li:nth-child(1),
  .scenario-stages > li:nth-child(2),
  .scenario-stages > li:nth-child(3),
  .scenario-stages > li:nth-child(4),
  .scenario-stages > li:nth-child(5),
  .scenario-stages > li:nth-child(6) {
    grid-area: auto;
    align-items: stretch;
  }

  .scenario-stages > li:not(:last-child)::after {
    display: none;
  }

  .scenario-stage {
    max-width: none;
    margin: 0 !important;
    padding: 20px 0 56px;
    position: relative;
    z-index: 2;
  }

  .scenario-num {
    z-index: 3;
    background: #07080c;
  }

  .scenario-stage-body {
    position: relative;
    z-index: 2;
    background: #07080c;
    border-radius: 2px;
  }

  /* Mobile zigzag: 1 right, 2 left, 3 right, ... */
  .scenario-stages > li:nth-child(odd) .scenario-stage {
    direction: rtl;
    padding-left: 4%;
    padding-right: 0;
  }

  .scenario-stages > li:nth-child(odd) .scenario-stage-body {
    direction: ltr;
    text-align: right;
  }

  .scenario-stages > li:nth-child(odd) .scenario-roles {
    justify-content: flex-end;
    margin-left: auto;
  }

  .scenario-stages > li:nth-child(even) .scenario-stage {
    direction: ltr;
    padding-right: 4%;
    padding-left: 0;
  }

  .scenario-stages > li:nth-child(even) .scenario-stage-body {
    direction: ltr;
    text-align: left;
  }

  .scenario-stages > li:nth-child(even) .scenario-roles {
    justify-content: flex-start;
    margin-left: 0;
  }

  /* 06 on the right so the 04→SYS drop stays clear of the final step. */
  .scenario-stages > li:nth-child(6) .scenario-stage {
    direction: rtl;
    padding-left: 4%;
    padding-right: 0;
  }

  .scenario-stages > li:nth-child(6) .scenario-stage-body {
    direction: ltr;
    text-align: right;
  }

  /* Clear a left corridor for the 04→SYS line past steps 05 and 06. */
  .scenario-stages > li:nth-child(5) .scenario-stage,
  .scenario-stages > li:nth-child(6) .scenario-stage {
    padding-left: 8%;
  }

  /* Align SYS pulse under the 04 column as closely as possible. */
  .s3d {
    padding-left: 15px;
    padding-right: 12px;
  }

  .s3d-kicker {
    margin-left: 0;
    gap: 8px;
  }

  .s3d-pulse {
    flex-shrink: 0;
  }

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

@media (max-width: 768px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-inner {
    padding: 12px 0;
    gap: 12px;
  }

  .logo {
    font-size: 12px;
    letter-spacing: 0.04em;
    max-width: calc(100vw - 84px);
    overflow: visible;
    margin-left: 14px;
    gap: 8px;
  }

  .logo-mark {
    width: 24px;
    height: 24px;
  }

  .nav-burger {
    width: 42px;
    height: 42px;
    margin-right: 8px;
    border: none;
    background: transparent;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .hero-visual {
    /* svh: не растёт при скрытии адресной строки — иначе cover-видео «зумится» */
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    padding: 80px 0 72px;
  }

  .hero-media .hero-video,
  .hero-media img { object-position: center 28%; }

  .hero-scrim {
    background:
      linear-gradient(
        180deg,
        rgba(7, 8, 12, 0.55) 0%,
        rgba(7, 8, 12, 0.28) 32%,
        rgba(7, 8, 12, 0.5) 68%,
        rgba(7, 8, 12, 0.88) 88%,
        var(--bg) 100%
      );
  }

  .hero-main {
    flex: 1 1 auto;
  }

  .hero-scroll-hint {
    display: flex;
    position: absolute;
    left: 50%;
    bottom: max(96px, calc(env(safe-area-inset-bottom, 0px) + 80px));
    z-index: 3;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: rgba(244, 245, 247, 0.72);
    background: transparent;
    border: 0;
    transform: translateX(-50%);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .hero-scroll-hint svg {
    display: block;
    animation: hero-scroll-bob 1.4s ease-in-out infinite;
  }

  .hero-scroll-hint:active {
    color: #fff;
  }

  @keyframes hero-scroll-bob {
    0%, 100% { transform: translateY(0); opacity: 0.55; }
    50% { transform: translateY(8px); opacity: 1; }
  }

  .hero-context {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
    width: 100%;
    margin: 0;
    padding: 20px 0 8px;
    background: var(--bg);
    pointer-events: auto;
  }

  .hero-context .context-grid {
    background:
      linear-gradient(180deg, rgba(16, 18, 24, 0.98), rgba(10, 12, 18, 0.92));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-content {
    padding-top: 0;
    max-width: none;
  }

  .hero-brand {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.05;
  }

  .hero-line {
    font-size: clamp(15px, 4.2vw, 18px);
    margin-bottom: 18px;
  }

  .hero-kicker {
    font-size: 9px;
    letter-spacing: 0.08em;
    gap: 6px;
    margin-bottom: 12px;
    white-space: nowrap;
    max-width: 100%;
  }

  .hero-kicker::before {
    width: 18px;
    flex-shrink: 0;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: fit-content;
    max-width: 100%;
    gap: 8px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .contact-content .section-head {
    margin-bottom: 12px;
    max-width: none;
  }

  .contact-content .section-kicker {
    font-size: 9px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    white-space: nowrap;
    max-width: 100%;
  }

  .contact-content .section-title {
    font-size: clamp(28px, 9vw, 40px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
  }

  .cta-copy {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.45;
    margin: 0 0 18px;
    max-width: none;
  }

  .cta-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: fit-content;
    max-width: 100%;
    gap: 8px;
    margin-top: 0;
  }

  .cta-buttons .btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .demo-form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .demo-form-actions .btn {
    width: 100%;
  }

  .contact {
    min-height: min(62svh, 520px);
    align-items: flex-end;
    padding: 56px 0 52px;
  }

  .footer-nav {
    gap: 12px 16px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .contact-scrim {
    background:
      linear-gradient(
        180deg,
        var(--bg) 0%,
        rgba(7, 8, 12, 0.75) 16%,
        rgba(7, 8, 12, 0.35) 40%,
        rgba(7, 8, 12, 0.55) 72%,
        rgba(7, 8, 12, 0.88) 88%,
        var(--bg) 100%
      );
  }

  .contact-content {
    max-width: none;
  }

  .contact-video,
  .contact-fallback {
    object-position: center 28%;
  }

  .context-grid {
    grid-template-columns: 1fr;
  }

  .context-item + .context-item {
    border-left: 0;
    border-top: 1px solid var(--border-soft);
  }

  .comp-grid,
  .usp-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .analytics-board {
    grid-template-columns: 1fr;
  }

  .an-card {
    min-height: 0;
  }

  .an-card--radar {
    min-height: 340px;
  }

  .an-radar {
    padding: 26px 36px 30px;
    min-height: 220px;
  }

  .an-radar-svg {
    width: 100%;
    max-height: 270px;
  }

  .an-radar-labels li {
    font-size: 9px;
    max-width: 120px;
  }

  .an-roles li {
    grid-template-columns: 84px 1fr 40px;
  }

  section { padding: 64px 0; }

  .section-title { font-size: 28px; }

  .demo-modal {
    width: calc(100% - 24px);
    padding: 22px 18px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cookie-banner-ok { width: 100%; }

  .demo-modal-content {
    padding: 24px 18px;
    width: calc(100% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-media img { animation: none; }

  .hero-scroll-hint svg { animation: none; }

  .hero-media .hero-video {
    display: none;
  }

  .hero-fallback {
    display: block;
  }

  .an-spark-wave {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .landing-page::before,
  .contact-grid,
  .sector::before,
  .sector.fx-armed::after,
  .fx-scan .shot-inline::after,
  .usp-card.fx-ticks::before {
    animation: none !important;
  }

  .fx-strike,
  .fx-scrub,
  .fx-ticks {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn.is-hit::after { animation: none !important; }
}

/* ========== LANDING FX (без блока Стратегия команды) ========== */

/* Фоновая сетка телеметрии — заметнее */
.landing-page {
  position: relative;
  isolation: isolate;
  background-color: var(--bg);
}

.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(225, 6, 0, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: fx-grid-drift 28s linear infinite;
}

.landing-page > header {
  z-index: 100;
}

/* Не трогаем position у fixed nav/modal — иначе nav падает в hero, а модалка даёт дыру внизу */
.landing-page > main,
.landing-page > footer,
.landing-page > .cookie-banner {
  position: relative;
  z-index: 1;
}

@keyframes fx-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 36px, 36px 0; }
}

/* Sector flash — ярче и дольше */
.sector {
  position: relative;
}

.sector::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 4px;
  background: linear-gradient(180deg, transparent 0%, #ff2a1f 20%, #e10600 50%, #ff2a1f 80%, transparent 100%);
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.75);
  opacity: 0;
  transform: scaleY(0.25);
  transform-origin: center;
  pointer-events: none;
  z-index: 5;
}

.sector.fx-armed::before,
.sector.is-visible.fx-armed::before {
  animation: fx-sector 1.15s ease forwards;
}

.sector.fx-armed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(90deg, rgba(225, 6, 0, 0.12), transparent 28%);
  opacity: 0;
  animation: fx-sector-wash 1.05s ease forwards;
}

@keyframes fx-sector {
  0% { opacity: 0; transform: scaleY(0.2); }
  25% { opacity: 1; transform: scaleY(1); }
  70% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}

@keyframes fx-sector-wash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/* Competency cascade + strike */
.fx-strike {
  opacity: 0;
  transform: translateY(28px) scale(0.94);
  transition:
    opacity 0.55s ease calc(var(--fx-i, 0) * 110ms),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--fx-i, 0) * 110ms),
    box-shadow 0.4s ease calc(var(--fx-i, 0) * 110ms);
}

.fx-strike.is-in {
  opacity: 1;
  transform: none;
  box-shadow:
    12px 12px 28px #000000,
    -10px -10px 22px #151821;
}

.fx-strike.is-in .comp-icon {
  animation: fx-strike-icon 0.65s cubic-bezier(0.2, 0.9, 0.2, 1) calc(var(--fx-i, 0) * 110ms + 100ms) both;
}

@keyframes fx-strike-icon {
  0% { transform: scale(0.55) rotate(-6deg); filter: brightness(0.6); }
  55% { transform: scale(1.16) rotate(2deg); filter: brightness(1.25); }
  100% { transform: scale(1) rotate(0); filter: none; }
}

/* Scenario / format scrub */
.fx-scrub {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s ease calc(var(--fx-i, 0) * 130ms),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--fx-i, 0) * 130ms);
}

.fx-scrub.is-in {
  opacity: 1;
  transform: none;
}

.fx-scrub .shot-inline {
  overflow: hidden;
}

.fx-scrub .shot-inline img {
  transform: scale(1.12) translateY(10px);
  filter: brightness(0.75);
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--fx-i, 0) * 130ms + 80ms),
    filter 0.9s ease calc(var(--fx-i, 0) * 130ms + 80ms);
}

.fx-scrub.is-in .shot-inline img {
  transform: scale(1) translateY(0);
  filter: none;
}

/* 7. USP telemetry ticks */
.usp-card.fx-ticks {
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease calc(var(--fx-i, 0) * 80ms),
    transform 0.5s ease calc(var(--fx-i, 0) * 80ms),
    border-color 0.25s;
}

.usp-card.fx-ticks.is-in {
  opacity: 1;
  transform: none;
}

.usp-card.fx-ticks::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 8px;
  opacity: 0;
  background:
    linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 6px) 0 0 / 6px 3px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 6px) 0 5px / 6px 3px repeat-x;
  pointer-events: none;
}

.usp-card.fx-ticks.is-in::before {
  opacity: 0.9;
  animation: fx-ticks 1.2s steps(6) calc(var(--fx-i, 0) * 80ms) 1;
}

@keyframes fx-ticks {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* 8. Analytics scan glow */
.fx-scan .shot-inline {
  position: relative;
}

.fx-scan .shot-inline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 28%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(225, 6, 0, 0.18),
    transparent
  );
}

.fx-scan.is-visible.is-scanning .shot-inline::after,
.fx-scan.is-scanning .shot-inline::after {
  animation: fx-scan 2.4s ease-in-out 0.2s 1;
}

@keyframes fx-scan {
  0% { top: -25%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 0.7; }
  100% { top: 105%; opacity: 0; }
}

/* 9. CTA micro-impact */
.btn {
  position: relative;
  overflow: hidden;
  transition:
    background 0.2s,
    transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1),
    border-color 0.2s,
    box-shadow 0.22s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.35), 0 10px 28px rgba(225, 6, 0, 0.18);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn.is-hit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  animation: fx-hit 0.45s ease forwards;
  pointer-events: none;
}

@keyframes fx-hit {
  from { opacity: 1; }
  to { opacity: 0; }
}

.btn--ghost:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Mobile scroll performance */
@media (max-width: 1024px) {
  .landing-page::before {
    animation: none;
    opacity: 0.2;
    background-size: 48px 48px;
  }

  .contact-grid {
    animation: none;
    opacity: 0.2;
    background-size: 48px 48px;
  }

  .hero-media img {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }

  .comp-card,
  .glass-card,
  .s3d-car-meta {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .s3d-scan,
  .s3d-pulse,
  .s3d-live i {
    animation: none !important;
  }

  .sector.fx-armed::after {
    display: none;
  }

  .fx-scrub .shot-inline img {
    transform: none;
    filter: none;
    transition: none;
  }

  .fx-scrub.is-in .shot-inline img {
    transform: none;
    filter: none;
  }

  .fx-strike,
  .fx-scrub,
  .fx-ticks {
    transition-duration: 0.35s;
  }

  .reveal {
    transition-duration: 0.4s;
  }
}
