:root {
  --canvas: #080b0f;
  --surface: #121820;
  --surface-raised: #1a222c;
  --text: #e6edf3;
  --text-secondary: #6b7a8c;
  --accent: #5dffc8;
  --accent-dim: color-mix(in srgb, var(--accent) 25%, transparent);
  --pain: #ff6b4a;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 10px;
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --container: min(1080px, calc(100% - 32px));
  --grid-max: 1280px;
  --grid-gutter: clamp(12px, 2vw, 24px);
  --grid-margin: clamp(16px, 4vw, 40px);
  --header-h: 52px;
  --scene-h: 280vh;
  --ow-chart: rgba(107, 122, 140, 0.55);
  --ow-line: rgba(107, 122, 140, 0.75);
}

@media (min-width: 768px) {
  :root {
    --scene-h: 260vh;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--text);
  line-height: 1.55;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

/* ── Preloader (1 с) ── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.preloader-logo {
  animation: preloader-pulse 1.2s ease-in-out infinite;
}

.preloader-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

@keyframes preloader-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

html.is-preloading body {
  overflow: hidden;
}

html.is-preloading .header,
html.is-preloading main,
html.is-preloading footer,
html.is-preloading .sticky-cta {
  visibility: hidden;
}

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

.container { width: var(--container); margin-inline: auto; }
.narrow { max-width: 620px; }

/* ── 12-column grid (единая сетка для header / секций / footer) ── */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  row-gap: calc(var(--grid-gutter) * 1.25);
  width: 100%;
  max-width: var(--grid-max);
  margin-inline: auto;
  padding-inline: var(--grid-margin);
}

/* Рails — все блоки выравниваются по одним линиям */
.col-full { grid-column: 1 / -1; }
.col-narrow { grid-column: 3 / 11; }  /* 8 col — заголовки, текст, форма */
.col-wide { grid-column: 2 / 12; }   /* 10 col — интерактивные сцены */
.col-center { grid-column: 4 / 10; }  /* 6 col — toggle, узкие контролы */

/* Header / footer spans */
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }

@media (max-width: 767px) {
  .col-narrow,
  .col-wide,
  .col-center,
  .col-span-4,
  .col-span-6 {
    grid-column: 1 / -1;
  }
}

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

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  align-items: center;
  height: var(--header-h);
  row-gap: 0;
  padding-inline: max(var(--grid-margin), env(safe-area-inset-left)) max(var(--grid-margin), env(safe-area-inset-right));
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.logo-mark {
  display: flex;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent))
          drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 25%, transparent));
}

.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo-word {
  letter-spacing: -0.02em;
}

.logo:hover .logo-mark {
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 70%, transparent))
          drop-shadow(0 0 20px color-mix(in srgb, var(--accent) 35%, transparent));
}

/* ── Beat progress ── */
.beat-progress {
  position: fixed;
  right: max(10px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid transparent;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.beat-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
  transform: scale(1.35);
}

@media (max-width: 640px) {
  .beat-progress { display: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--text);
  color: var(--canvas);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 24px var(--accent-dim);
}

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

.btn-secondary:hover { border-color: var(--text-secondary); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.875rem;
}

.btn-ghost:hover { color: var(--text); }

.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }

.btn-link {
  background: none;
  color: var(--text-secondary);
  border: none;
  min-height: auto;
  padding: 8px 0;
  font-weight: 500;
}

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

/* Кнопки в стиле поля чата (сервис NeedRa) */
.btn-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  background: color-mix(in srgb, var(--surface-raised) 88%, var(--canvas));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.15s;
}

.btn-service:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.btn-service:active { transform: scale(0.98); }

.btn-service--primary {
  color: var(--text);
  font-weight: 600;
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-dim), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.btn-service--primary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-dim), 0 8px 32px rgba(0, 0, 0, 0.5);
  background: color-mix(in srgb, var(--surface-raised) 92%, var(--accent) 8%);
}

.below-section .btn-service:focus-visible,
.sticky-cta.btn-service:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Hero / Singularity scene ── */
.hero { position: relative; }

.hero-scene { position: relative; }

.scene-scroll {
  height: var(--scene-h);
  position: relative;
}

.scene-pin {
  position: relative;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  padding:
    var(--header-h)
    max(8px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
  background: var(--canvas);
  transform: translateZ(0);
  contain: layout style;
}

/* ── Starfield ── */
.starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 140% 100% at 50% 0%, #0a1220 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(30, 50, 90, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(20, 35, 60, 0.12) 0%, transparent 55%);
}

.starfield canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Snapshot canvas на scroll-scrub — без live-перерисовки */
.hero-backdrop-freeze {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.hero-backdrop-freeze img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop-freeze--bh {
  z-index: 1;
}

html.hero-backdrop-live .hero-backdrop-freeze,
html.hero-backdrop-frozen .hero-backdrop-freeze {
  opacity: 1;
  visibility: visible;
}

html.hero-backdrop-live #starCanvas,
html.hero-backdrop-frozen #starCanvas {
  visibility: hidden;
}

html.scene-scrolling .orbit-widget {
  will-change: transform, opacity;
}

html.scene-scrolling .orbit-arm {
  will-change: transform;
}

.singularity-stage {
  position: absolute;
  inset: var(--header-h) 0 0;
  z-index: 2;
  pointer-events: none;
}

.void-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 28% 28% at 50% 42%, rgba(0, 0, 0, 0.55) 0%, transparent 62%),
    radial-gradient(circle at 50% 42%, rgba(255, 120, 50, 0.06) 0%, transparent 42%);
  pointer-events: none;
}

.void-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.singularity-hub {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: min(95vw, 850px);
  height: min(95vw, 850px);
  border-radius: 50%;
  pointer-events: none;
}

.blackhole-hub {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

/* Чёрная дыра — PNG-арт в центре hub */
.bh-art {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  transform-origin: center center;
  will-change: transform;
}

.bh-img {
  display: block;
  width: 118%;
  height: 118%;
  max-width: none;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
  user-select: none;
}

html:not(.scene-scrolling) .bh-art {
  animation: none;
}

html.scene-enhanced .bh-art {
  animation: none;
}

html.scene-scrolling .scene-pin {
  contain: strict;
}

html.scene-scrolling .orbit-field {
  contain: layout style paint;
}

.orbit-field {
  position: absolute;
  inset: var(--header-h) 0 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
  contain: layout style;
}

.orbit-field::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--canvas) 55%, transparent) 45%, var(--canvas) 92%);
  pointer-events: none;
  z-index: 4;
}

.orbit-arm {
  position: absolute;
  left: 50%;
  top: 50%;
  transform:
    translate3d(-50%, -50%, 0)
    rotate(var(--slot-rot, 0deg))
    scale(var(--slot-scale, 1));
  pointer-events: none;
}

.orbit-anim {
  transform: translateZ(0);
}

html.scene-scrolling .orbit-anim {
  will-change: transform, opacity;
}

html.scene-settled .orbit-anim {
  will-change: auto;
}

/* ── Orbit widgets (таблицы, графики, KPI) ── */
.orbit-widget {
  --ow-w: clamp(76px, 22vw, 132px);
  position: relative;
  width: calc(var(--ow-w) * var(--ow-scale, 1));
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 92%, #fff 8%), var(--surface));
  border: 1px solid color-mix(in srgb, var(--text-secondary) 28%, var(--border));
  border-radius: 9px;
  overflow: hidden;
  backface-visibility: hidden;
}

.orbit-widget.is-pain {
  border-color: color-mix(in srgb, var(--pain) 45%, var(--border));
}

.orbit-widget--table,
.orbit-widget--table-list,
.orbit-widget--dashboard { --ow-w: clamp(88px, 26vw, 148px); }

.orbit-widget--report,
.orbit-widget--excel,
.orbit-widget--csv { --ow-w: clamp(84px, 24vw, 140px); }

.orbit-widget--kpi,
.orbit-widget--menu,
.orbit-widget--tabs { --ow-w: clamp(72px, 20vw, 108px); }

.orbit-widget--sparkline,
.orbit-widget--bars,
.orbit-widget--dual-bars,
.orbit-widget--funnel,
.orbit-widget--donut { --ow-w: clamp(68px, 18vw, 100px); }

.ow-head {
  padding: 5px 7px;
  font-size: clamp(0.5625rem, 2.4vw, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--text);
  background: color-mix(in srgb, var(--canvas) 60%, var(--surface-raised));
  border-bottom: 1px solid var(--border);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.orbit-widget.is-pain .ow-head {
  color: color-mix(in srgb, var(--pain) 75%, var(--text));
}

.ow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.4375rem, 1.5vw, 0.5625rem);
}

.ow-table td {
  padding: 2px 5px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.ow-table td:last-child { text-align: right; }

.ow-sku {
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 0.9em;
  color: var(--text-secondary);
}

.ow-dash {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.ow-svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 4px 5px 6px;
}

.ow-svg--donut {
  width: 36px;
  margin: 4px auto 2px;
  padding: 0;
}

.ow-list {
  list-style: none;
  padding: 3px 5px 5px;
  font-size: clamp(0.4375rem, 1.5vw, 0.5625rem);
}

.ow-list li {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.ow-kpi {
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ow-kpi-val {
  font-size: clamp(0.875rem, 3vw, 1.125rem);
  font-weight: 700;
  font-family: var(--font-display);
}

.ow-kpi-bar {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ow-chart) 0%, var(--ow-chart) 55%, transparent 55%);
}

.ow-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px 5px 6px;
}

.ow-kpi-grid--sm { padding-top: 2px; }

.ow-kpi-cell {
  display: grid;
  place-items: center;
  min-height: 22px;
  background: color-mix(in srgb, var(--canvas) 50%, transparent);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
}

.ow-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 5px 6px 7px;
}

.ow-filter {
  font-size: clamp(0.4375rem, 1.4vw, 0.5625rem);
  padding: 2px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--canvas) 40%, var(--surface));
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.ow-filter--more {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.ow-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 5px 6px;
}

.ow-menu-item {
  font-size: clamp(0.4375rem, 1.4vw, 0.5625rem);
  padding: 3px 5px;
  border-radius: 3px;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--canvas) 35%, transparent);
}

.ow-menu-item:first-child {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.ow-report-tabs {
  display: flex;
  gap: 2px;
  padding: 3px 5px 0;
}

.ow-report-tabs span {
  font-size: 0.5rem;
  padding: 2px 4px;
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--canvas) 50%, transparent);
  color: var(--text-secondary);
}

.ow-report-tabs .is-active {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--text);
}

.ow-report-body .ow-svg { padding-top: 2px; }

.ow-excel {
  padding: 5px 6px 6px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.ow-excel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  flex: 1;
}

.ow-excel-grid span {
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--accent) 15%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 1px;
}

.ow-excel-grid span:nth-child(odd) {
  background: color-mix(in srgb, var(--canvas) 30%, var(--surface));
}

.ow-excel-label {
  font-size: 0.5rem;
  color: var(--text-secondary);
  font-family: ui-monospace, Menlo, monospace;
}

.ow-csv {
  margin: 0;
  padding: 4px 6px 6px;
  font-size: clamp(0.375rem, 1.2vw, 0.5rem);
  line-height: 1.35;
  font-family: ui-monospace, Menlo, monospace;
  color: var(--text-secondary);
  white-space: pre;
  overflow: hidden;
}

.ow-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 5px 7px;
}

.ow-tab {
  flex: 1;
  text-align: center;
  font-size: clamp(0.4375rem, 1.4vw, 0.5625rem);
  padding: 4px 2px;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--canvas) 45%, var(--surface));
  border: 1px solid var(--border);
  border-bottom: none;
  color: var(--text-secondary);
}

.ow-tab.is-active {
  background: color-mix(in srgb, var(--pain) 12%, var(--surface));
  color: var(--text);
  border-color: color-mix(in srgb, var(--pain) 35%, var(--border));
  transform: translateY(-2px);
}

.ow-funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 8px 8px;
}

.ow-funnel span {
  display: block;
  height: 5px;
  width: var(--w);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ow-chart), color-mix(in srgb, var(--accent) 40%, var(--ow-chart)));
}

.ow-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 4px 6px;
}

.ow-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.ow-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 2px 3px 4px;
}

.ow-dual .ow-svg { padding: 2px 3px; }

.ow-ad {
  position: relative;
  padding: 2px 3px 4px;
}

.ow-ad-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.4375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--canvas));
  padding: 1px 4px;
  border-radius: 3px;
}

.ow-dup {
  padding: 4px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ow-dup-row {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.4375rem, 1.4vw, 0.5625rem);
  padding: 3px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--canvas) 40%, transparent);
  border: 1px solid var(--border);
}

.ow-dup-row.is-conflict {
  border-color: color-mix(in srgb, var(--pain) 40%, var(--border));
  background: color-mix(in srgb, var(--pain) 8%, var(--surface));
}

.ow-dash-mini {
  padding: 2px 4px 5px;
}

.chat-singularity {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(92%, 440px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.chat-compose {
  position: relative;
  width: 52px;
  min-height: 52px;
  overflow: visible;
  border-radius: var(--radius);
  background: transparent;
  transition: box-shadow 0.55s ease;
}

.chat-compose-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--surface-raised) 88%, var(--canvas));
  opacity: 0;
  pointer-events: none;
}

.chat-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.chat-frame-rect {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chat-compose-body {
  position: relative;
  z-index: 2;
  min-height: 52px;
}

.chat-compose-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform-origin: center center;
  pointer-events: none;
  transition: filter 0.45s ease;
}

.chat-compose-label {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 18px 12px 54px;
  margin: 0;
  font-size: clamp(0.875rem, 3.5vw, 1rem);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
}

.chat-brand {
  font-weight: 600;
  color: var(--text);
}

.chat-singularity.is-live .chat-compose-label {
  color: var(--text);
}

.chat-singularity.is-live .chat-compose-logo {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
}

.chat-singularity.is-filled {
  backdrop-filter: blur(8px);
  transition: backdrop-filter 0.5s ease;
}

.chat-singularity.is-filled .chat-compose {
  box-shadow: 0 0 40px var(--accent-dim), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.chat-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1.25s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(18%, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 12;
  margin-top: 0;
  font-size: 0.8125rem;
  color: var(--accent);
  opacity: 0.85;
  animation: cue-pulse 3.2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes cue-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.95; transform: translateX(-50%) translateY(2px); }
}

html.scene-enhanced .scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
  animation: none;
  transition: opacity 0.35s ease;
}

html.scene-scrolling .scroll-cue {
  animation-play-state: paused;
}

@media (max-width: 480px) {
  .orbit-widget {
    --ow-w: clamp(88px, 42vw, 118px);
  }

  .orbit-widget--table,
  .orbit-widget--table-list,
  .orbit-widget--dashboard { --ow-w: clamp(92px, 44vw, 124px); }

  .orbit-arm {
    transform: translate3d(-50%, -50%, 0) rotate(var(--slot-rot, 0deg)) scale(calc(var(--slot-scale, 1) * 0.92));
  }

  .ow-head {
    font-size: 0.5625rem;
    min-height: 2.35em;
  }

  .scroll-cue { bottom: max(12%, env(safe-area-inset-bottom, 0px)); font-size: 0.75rem; }
}

@media (min-width: 900px) {
  .singularity-hub {
    width: min(58vw, 800px);
    height: min(58vw, 800px);
  }

  .orbit-widget {
    --ow-w: clamp(108px, 11vw, 156px);
  }

  .orbit-widget--table,
  .orbit-widget--table-list,
  .orbit-widget--dashboard { --ow-w: clamp(118px, 12vw, 168px); }

  .ow-head {
    font-size: 0.6875rem;
    padding: 6px 8px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ── Below hero sections ── */
.below-section {
  --section-canvas: #0a0e14;
  --section-surface: #121820;
  --section-text: #e8edf2;
  --section-muted: #8b95a3;
  --section-accent: #5dffc8;
  --section-warm: #ff6b4a;

  padding: clamp(48px, 10vw, 72px) 0;
  border-top: 1px solid var(--border);
  background: var(--section-canvas);
}

.below-section--muted {
  background: color-mix(in srgb, var(--section-surface) 55%, var(--section-canvas));
}

.below-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-head { margin-bottom: 4px; }

.below-head { margin-bottom: 0; }

.below-lead {
  color: var(--section-muted);
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  line-height: 1.55;
  transition: color 0.35s ease;
}

.below-lead.is-highlight { color: var(--section-text); }

/* Relief split */
.relief-stage { margin-top: 8px; }

.relief-split {
  --relief-pct: 60%;
  position: relative;
  min-height: clamp(280px, 52vw, 400px);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--section-surface);
}

.relief-chaos,
.relief-order {
  position: absolute;
  inset: 0;
  padding: 16px;
}

.relief-chaos {
  display: block;
  padding: 0;
  clip-path: inset(0 calc(100% - var(--relief-pct)) 0 0);
  transition: clip-path 0.25s ease, opacity 0.35s ease;
  background: #0a0e14;
}

.relief-chaos.is-faded { opacity: 0.35; }

/* ── Хаос: экран монитора ── */
.chaos-desk {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0c1118;
}

/* Базовый слой — браузер на весь экран */
.chaos-base {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #151b24;
  border-radius: 0;
}

.chaos-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #0e131a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.chaos-chrome--xl {
  background: linear-gradient(180deg, #1e3d2a 0%, #163022 100%);
}

.chaos-dots {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 4px 50%, #ff5f57 3px, transparent 3.5px),
    radial-gradient(circle at 14px 50%, #febc2e 3px, transparent 3.5px),
    radial-gradient(circle at 24px 50%, #28c840 3px, transparent 3.5px);
  flex-shrink: 0;
  opacity: 0.85;
}

.chaos-chrome-title {
  font-size: 0.5625rem;
  color: var(--section-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chaos-file-badge {
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: #217346;
  color: #e8fff0;
  letter-spacing: 0.04em;
}

.chaos-file-badge--pdf {
  background: #c43e2f;
  color: #fff5f3;
}

.chaos-tabs {
  display: flex;
  gap: 1px;
  padding: 3px 4px 0;
  background: #0a0e14;
  overflow: hidden;
  flex-shrink: 0;
}

.chaos-tabs--dense .chaos-tab {
  font-size: 0.4375rem;
  padding: 3px 5px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chaos-tab {
  font-size: 0.5rem;
  padding: 3px 6px;
  border-radius: 4px 4px 0 0;
  color: var(--section-muted);
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
  border: 1px solid transparent;
  border-bottom: none;
}

.chaos-tab.is-active {
  background: #151b24;
  color: var(--section-text);
  border-color: rgba(255, 255, 255, 0.06);
}

.chaos-tab.is-wb.is-active {
  box-shadow: inset 0 -2px 0 #cb11ab;
}

.chaos-tab.is-sheet { color: #9dcea8; }
.chaos-tab.is-svc { color: #9ab0c4; }

.chaos-url {
  font-size: 0.5rem;
  padding: 3px 10px;
  margin: 4px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: color-mix(in srgb, var(--section-muted) 85%, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.chaos-base-body {
  flex: 1;
  display: flex;
  min-height: 0;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.chaos-base-nav {
  width: 36px;
  flex-shrink: 0;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #10161e;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.chaos-base-nav i {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.chaos-base-nav i:first-child {
  background: color-mix(in srgb, #cb11ab 35%, rgba(255, 255, 255, 0.08));
}

.chaos-base-main {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  opacity: 0.7;
}

.chaos-base-filters {
  display: flex;
  gap: 5px;
}

.chaos-base-filters span {
  height: 10px;
  width: 48px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chaos-base-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  min-height: 0;
}

.chaos-base-grid i {
  display: block;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
}

.chaos-base-grid i:nth-child(5),
.chaos-base-grid i:nth-child(8) {
  background: color-mix(in srgb, var(--section-warm) 12%, rgba(255, 255, 255, 0.04));
}

/* Окна поверх экрана — ровно, без «пляски» */
.chaos-win {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a222c;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.chaos-pane {
  flex: 1;
  min-height: 0;
  position: relative;
}

.chaos-sheet-bar {
  display: flex;
  gap: 8px;
  padding: 2px 7px;
  font-size: 0.5rem;
  color: var(--section-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.chaos-pane--sheet {
  padding: 4px;
}

.chaos-pane--sheet .chaos-sheet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0;
  height: 100%;
  background: #0f151c;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chaos-pane--sheet .chaos-sheet-grid b {
  display: block;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(52, 168, 83, 0.07);
}

.chaos-pane--sheet .chaos-sheet-grid b:nth-child(odd) {
  background: rgba(52, 168, 83, 0.13);
}

.chaos-sheet-tabs,
.chaos-xl-tabs {
  display: flex;
  gap: 2px;
  padding: 3px 5px;
  background: #141b24;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.chaos-sheet-tabs span,
.chaos-xl-tabs span {
  font-size: 0.5rem;
  padding: 2px 6px;
  border-radius: 3px 3px 0 0;
  color: var(--section-muted);
  background: rgba(255, 255, 255, 0.03);
}

.chaos-sheet-tabs span.is-on {
  background: color-mix(in srgb, #34a853 25%, #1a222c);
  color: #b8e6c4;
}

.chaos-xl-tabs span.is-on {
  background: color-mix(in srgb, #217346 40%, #1a222c);
  color: #c8ecd4;
}

/* Excel — узнаваемая сетка */
.chaos-win--excel {
  top: 16%;
  left: 6%;
  width: 50%;
  height: 70%;
  z-index: 6;
  background: #1c2420;
  border-color: color-mix(in srgb, #217346 40%, rgba(255, 255, 255, 0.1));
}

.chaos-xl-ribbon {
  display: flex;
  gap: 2px;
  padding: 2px 6px;
  background: #24352c;
  border-bottom: 1px solid rgba(33, 115, 70, 0.35);
  flex-shrink: 0;
}

.chaos-xl-ribbon span {
  font-size: 0.4375rem;
  padding: 2px 6px;
  color: #9bb8a6;
  border-radius: 2px;
}

.chaos-xl-ribbon span.is-on {
  background: rgba(33, 115, 70, 0.35);
  color: #e4f5ea;
}

.chaos-xl-formula {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  background: #152018;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.4375rem;
  color: #a8c4b4;
  flex-shrink: 0;
}

.chaos-xl-formula em {
  font-style: normal;
  font-weight: 700;
  color: #217346;
  padding: 0 3px;
  background: rgba(33, 115, 70, 0.2);
  border-radius: 2px;
}

.chaos-pane--xl {
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.chaos-xl-sheet {
  display: grid;
  grid-template-columns: 16px 1fr;
  grid-template-rows: 12px 1fr;
  height: 100%;
  min-height: 72px;
  font-size: 0.4375rem;
  color: #1a1a1a;
}

.chaos-xl-corner {
  background: #e8e8e8;
  border-right: 1px solid #c5c5c5;
  border-bottom: 1px solid #c5c5c5;
}

.chaos-xl-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #e8e8e8;
  border-bottom: 1px solid #c5c5c5;
}

.chaos-xl-cols b {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #444;
  border-right: 1px solid #d0d0d0;
  font-size: 0.4375rem;
}

.chaos-xl-rows-n {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  background: #e8e8e8;
  border-right: 1px solid #c5c5c5;
}

.chaos-xl-rows-n span {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  border-bottom: 1px solid #d0d0d0;
  font-size: 0.4375rem;
}

.chaos-xl-cells {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  background: #fff;
}

.chaos-xl-cells > span {
  display: flex;
  align-items: center;
  padding: 0 3px;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.chaos-xl-cells > span.is-head {
  font-weight: 700;
  background: #f3f3f3;
  color: #333;
}

.chaos-xl-cells > span.is-err {
  background: #fde7e9;
  color: #c41e3a;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #e85a6b;
}

.chaos-xl-cells > span.is-warn {
  background: #fff4e5;
  color: #b45f06;
}

.chaos-xl-error {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  max-width: 72%;
  padding: 5px 7px;
  border-radius: 4px;
  background: #2a1518;
  border: 1px solid color-mix(in srgb, var(--section-warm) 55%, transparent);
  box-shadow:
    0 0 14px color-mix(in srgb, var(--section-warm) 30%, transparent),
    0 6px 14px rgba(0, 0, 0, 0.35);
  animation: chaos-error-pulse 2.4s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chaos-xl-error strong {
  font-size: 0.5rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--section-warm) 85%, #fff);
}

.chaos-xl-error strong::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--section-warm);
  box-shadow: 0 0 6px var(--section-warm);
  vertical-align: 0.05em;
}

.chaos-xl-error span {
  font-size: 0.4375rem;
  line-height: 1.3;
  color: color-mix(in srgb, var(--section-warm) 40%, #ddd);
}

.chaos-pane--pdf {
  background: #2a3038;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.chaos-pdf-page {
  width: 78%;
  height: 90%;
  background: #e8edf2;
  border-radius: 2px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.chaos-pdf-page em {
  display: block;
  height: 3px;
  background: rgba(20, 30, 40, 0.25);
  border-radius: 1px;
}

.chaos-pdf-page em:nth-child(2) { width: 80%; }
.chaos-pdf-page em:nth-child(3) { width: 65%; }

.chaos-pdf-chart {
  margin-top: auto;
  height: 16px;
  background:
    linear-gradient(90deg, #6b7a8c 12%, transparent 12% 20%, #6b7a8c 20% 32%, transparent 32% 40%, #ff6b4a 40% 52%, transparent 52% 60%, #6b7a8c 60% 72%, transparent 72% 80%, #6b7a8c 80% 92%, transparent 92%);
  background-size: 100% 70%;
  background-repeat: no-repeat;
  background-position: bottom;
  opacity: 0.85;
}

.chaos-pane--files {
  padding: 5px 6px;
}

.chaos-files {
  list-style: none;
  font-size: 0.5rem;
  color: var(--section-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}

.chaos-files li {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chaos-files li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
}

.chaos-files li.is-dir::before {
  background: color-mix(in srgb, var(--section-muted) 70%, #c9a227);
}

.chaos-files li.is-xls::before { background: #217346; }
.chaos-files li.is-csv::before { background: #5b7c99; }

.chaos-files li.is-pain {
  color: color-mix(in srgb, var(--section-warm) 70%, var(--section-text));
}

.chaos-files li.is-pain::before {
  background: var(--section-warm);
}

.chaos-files li.is-selected {
  background: color-mix(in srgb, #3a6ea5 35%, transparent);
  color: var(--section-text);
  border-radius: 2px;
  margin: 0 -2px;
  padding: 0 2px;
}

/* Контекстное меню ПКМ */
.chaos-ctx {
  position: absolute;
  top: 28%;
  left: 28%;
  z-index: 4;
  min-width: 88px;
  padding: 3px 0;
  border-radius: 4px;
  background: #2a323c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.chaos-ctx > span {
  font-size: 0.5rem;
  padding: 3px 10px 3px 8px;
  color: var(--section-text);
  white-space: nowrap;
}

.chaos-ctx > span.is-hover {
  background: #3a6ea5;
  color: #fff;
}

.chaos-ctx > span.is-sep {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2px;
  padding-top: 4px;
  color: color-mix(in srgb, var(--section-warm) 55%, var(--section-muted));
}

.chaos-cursor {
  position: absolute;
  left: 58px;
  top: 18px;
  width: 12px;
  height: 16px;
  background: #fff;
  clip-path: polygon(0 0, 0 88%, 28% 68%, 48% 100%, 60% 94%, 38% 60%, 72% 60%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.chaos-pane--chart {
  padding: 8px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.chaos-line-chart {
  width: 100%;
  height: 48px;
  color: #8aa0b4;
}

.chaos-chart-legend {
  display: flex;
  gap: 4px;
}

.chaos-chart-legend span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.chaos-chart-legend span:nth-child(2) {
  background: color-mix(in srgb, #8aa0b4 40%, transparent);
}

.chaos-pane--donut {
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chaos-donut {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.chaos-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
}

.chaos-bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.12);
}

.chaos-bars i:nth-child(2) { background: rgba(139, 107, 122, 0.55); }
.chaos-bars i:nth-child(3) { background: rgba(107, 138, 158, 0.55); }
.chaos-bars i:nth-child(4) { background: rgba(122, 139, 107, 0.45); }

/* Позиции оверлеев — ровно на мониторе */
.chaos-win--sheets {
  top: 8%;
  right: 4%;
  width: 36%;
  height: 34%;
  z-index: 4;
}

.chaos-win--pdf {
  top: 8%;
  right: 42%;
  width: 16%;
  height: 28%;
  z-index: 3;
}

.chaos-win--explorer {
  top: 44%;
  right: 3%;
  width: 28%;
  height: 48%;
  z-index: 5;
  overflow: visible;
}

.chaos-win--explorer .chaos-pane--files {
  overflow: visible;
}

.chaos-win--chart {
  top: 58%;
  left: 52%;
  width: 22%;
  height: 32%;
  z-index: 4;
}

.chaos-win--donut {
  top: 42%;
  right: 32%;
  width: 20%;
  height: 28%;
  z-index: 3;
}

@keyframes chaos-error-pulse {
  0%, 100% {
    box-shadow:
      0 0 10px color-mix(in srgb, var(--section-warm) 28%, transparent),
      0 6px 14px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow:
      0 0 18px color-mix(in srgb, var(--section-warm) 48%, transparent),
      0 6px 14px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 600px) {
  .chaos-win--pdf,
  .chaos-win--donut { display: none; }

  .chaos-win--excel {
    width: 60%;
    height: 64%;
    top: 20%;
    left: 3%;
  }

  .chaos-win--sheets {
    width: 42%;
    height: 32%;
  }

  .chaos-win--explorer {
    width: 36%;
    height: 40%;
  }

  .chaos-win--chart {
    width: 28%;
    left: 48%;
  }

  .chaos-tabs--dense .chaos-tab:nth-child(n+7) { display: none; }
}

.relief-order {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 16px 18px;
  clip-path: inset(0 0 0 var(--relief-pct));
  transition: clip-path 0.25s ease;
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, color-mix(in srgb, var(--section-accent) 8%, transparent), transparent 65%),
    color-mix(in srgb, var(--section-accent) 3%, var(--section-surface));
}

/* ── Порядок: ясная панель ── */
.order-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.order-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--section-accent) 40%, var(--border));
  background: color-mix(in srgb, var(--section-surface) 55%, #000);
  box-shadow: 0 0 18px color-mix(in srgb, var(--section-accent) 12%, transparent);
  flex-shrink: 0;
}

.order-prompt-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--section-accent) 50%, transparent));
}

.order-prompt-label {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--section-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.order-prompt-brand {
  font-weight: 600;
  color: var(--section-text);
}

.order-prompt-text {
  color: var(--section-text);
}

.order-blocks {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.2fr;
  gap: 8px;
  min-height: 0;
}

.order-block {
  padding: 8px 9px 7px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: color-mix(in srgb, var(--section-surface) 88%, #000);
  min-width: 0;
}

.order-block-title {
  margin: 0 0 6px;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--section-muted);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.625rem;
}

.order-table td {
  padding: 2px 0;
  color: var(--section-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.order-table tr:last-child td { border-bottom: none; }

.order-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding-left: 8px;
}

.order-table .is-up { color: var(--section-accent); }
.order-table .is-down { color: color-mix(in srgb, var(--section-warm) 70%, var(--section-muted)); }

.order-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.order-kpi {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.order-kpi-label {
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--section-muted);
}

.order-kpi-val {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--section-text);
  letter-spacing: -0.02em;
}

.order-block--chart {
  display: flex;
  flex-direction: column;
}

.order-chart {
  width: 100%;
  height: 56px;
  color: var(--section-accent);
  flex: 1;
  min-height: 44px;
}

.order-chart-line {
  opacity: 0.95;
}

.order-chart-area {
  fill: color-mix(in srgb, var(--section-accent) 14%, transparent);
}

.order-chart-days {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 0.5rem;
  color: var(--section-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .order-blocks {
    grid-template-columns: 1fr 1fr;
  }

  .order-block--chart {
    grid-column: 1 / -1;
  }

  .order-prompt-label { font-size: 0.75rem; }

  .order-chart { height: 40px; min-height: 36px; }
}

.relief-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--relief-pct);
  width: 2px;
  background: var(--section-accent);
  box-shadow: 0 0 12px var(--section-accent);
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 0.25s ease;
}

.relief-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 4px 0;
}

.relief-slider-label {
  font-size: 0.75rem;
  color: var(--section-muted);
  min-width: 52px;
}

.relief-slider-label:last-child { text-align: right; }

.relief-slider {
  flex: 1;
  min-height: 44px;
  accent-color: var(--section-accent);
  cursor: pointer;
}

/* Essence keywords */
.essence-text {
  font-size: clamp(1.0625rem, 2.8vw, 1.375rem);
  line-height: 1.65;
  color: var(--section-text);
}

.kw {
  display: inline;
  padding: 0 2px;
  margin: 0 1px;
  background: none;
  border: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--section-accent) 50%, transparent);
  color: var(--section-accent);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.kw:hover,
.kw.is-active {
  background: color-mix(in srgb, var(--section-accent) 12%, transparent);
  border-bottom-style: solid;
}

.kw-card {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--section-surface);
  border: 1px solid color-mix(in srgb, var(--section-accent) 25%, var(--border));
  border-radius: var(--radius);
  position: relative;
}

.kw-card-ring {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.875rem;
  color: var(--section-muted);
  opacity: 0.6;
}

.kw-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.kw-card-body {
  font-size: 0.875rem;
  color: var(--section-muted);
}

/* Onboard */
.onboard-intro {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  margin-bottom: 20px;
  color: var(--section-text);
}

.onboard-stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.step-btn {
  flex: 1;
  min-width: 100px;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius);
}

.step-btn.is-active {
  border-color: var(--section-accent);
  color: var(--section-text);
  box-shadow: 0 0 20px color-mix(in srgb, var(--section-accent) 18%, transparent);
}

.below-section .step-btn {
  background: color-mix(in srgb, var(--section-surface) 88%, var(--section-canvas));
  border-color: var(--border);
}

.below-section .step-btn.is-active {
  border-color: var(--section-accent);
  background: color-mix(in srgb, var(--section-surface) 92%, var(--section-accent) 8%);
}

.step-num {
  font-weight: 700;
  font-size: 0.875rem;
}

.onboard-panel {
  padding: 20px;
  background: var(--section-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.panel-hint {
  font-size: 0.875rem;
  color: var(--section-muted);
  margin-bottom: 14px;
}

.wb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.wb-chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
}

.wb-chip.is-on {
  border-color: var(--section-accent);
  color: var(--section-text);
  background: color-mix(in srgb, var(--section-accent) 10%, var(--section-surface));
  box-shadow: 0 0 16px color-mix(in srgb, var(--section-accent) 15%, transparent);
}

.below-section .wb-chip {
  background: color-mix(in srgb, var(--section-surface) 88%, var(--section-canvas));
}

.flow-ring {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 999px;
  opacity: 0.4;
  transition: opacity 0.4s, border-color 0.4s;
}

.flow-ring.is-flowing {
  opacity: 1;
  border-color: color-mix(in srgb, var(--section-accent) 40%, var(--border));
}

.flow-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--section-accent);
  opacity: 0;
}

.flow-ring.is-flowing .flow-dot {
  opacity: 1;
  animation: flow-orbit 2.4s linear infinite;
}

.flow-ring.is-flowing .flow-dot:nth-child(1) { animation-delay: 0s; }
.flow-ring.is-flowing .flow-dot:nth-child(2) { animation-delay: 0.8s; }
.flow-ring.is-flowing .flow-dot:nth-child(3) { animation-delay: 1.6s; }

@keyframes flow-orbit {
  0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

.flow-chat {
  font-size: 0.75rem;
  color: var(--section-muted);
}

.flow-ring.is-flowing .flow-chat { color: var(--section-accent); }

/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gutter);
  align-items: stretch;
}

@media (max-width: 767px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pricing-toggle-label {
  font-size: 0.875rem;
  color: var(--section-text);
  transition: opacity 0.25s;
}

.pricing-toggle-label.is-muted { opacity: 0.45; }

.pricing-toggle {
  width: 52px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--section-surface) 88%, var(--section-canvas));
  cursor: pointer;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.pricing-toggle:hover {
  border-color: color-mix(in srgb, var(--section-accent) 35%, var(--border));
}

.pricing-toggle.is-on {
  border-color: var(--section-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--section-accent) 15%, transparent);
}

.pricing-toggle-thumb {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--section-muted);
  transition: transform 0.25s ease, background 0.25s;
}

.pricing-toggle.is-on .pricing-toggle-thumb {
  transform: translateX(24px);
  background: var(--section-accent);
}

.price-card {
  height: 100%;
  padding: 20px 18px;
  background: var(--section-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.price-card.is-glow {
  border-color: color-mix(in srgb, var(--section-accent) 45%, var(--border));
  box-shadow: 0 0 24px color-mix(in srgb, var(--section-accent) 12%, transparent);
}

.price-bullets--paid li {
  color: color-mix(in srgb, var(--section-text) 82%, var(--section-muted));
}

.price-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--section-accent) 15%, transparent);
  color: var(--section-accent);
  border-radius: 4px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.price-amount {
  font-variant-numeric: tabular-nums;
  font-size: 1.375rem;
}

.price-period {
  font-size: 0.875rem;
  color: var(--section-muted);
  font-weight: 400;
}

.price-desc {
  font-size: 0.875rem;
  color: var(--section-muted);
  line-height: 1.5;
}

.price-bullets {
  margin-top: 12px;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: var(--section-muted);
}

.price-expand {
  margin-top: 12px;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: 999px;
  color: var(--section-accent);
  font-size: 0.8125rem;
}

.below-section .price-expand {
  background: color-mix(in srgb, var(--section-surface) 88%, var(--section-canvas));
}

.below-section .price-expand:hover {
  border-color: var(--section-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--section-accent) 12%, transparent);
}

.signup-wrap {
  position: relative;
}

/* Signup */
.below-section--signup {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--section-accent) 6%, transparent), transparent),
    var(--section-canvas);
}

.signup-stars {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.signup-star {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

.signup-star.is-lit {
  background: var(--section-accent);
  box-shadow: 0 0 10px var(--section-accent);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  padding: 24px 20px;
  background: color-mix(in srgb, var(--section-surface) 85%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--section-text);
}

.field-label abbr { text-decoration: none; color: var(--section-warm); }

.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="text"] {
  min-height: 48px;
  padding: 12px 14px;
  background: var(--section-canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--section-text);
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--section-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--section-accent) 20%, transparent);
}

.field-api {
  display: flex;
  gap: 8px;
}

.field-api input { flex: 1; }

.btn-api-toggle {
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.below-section .btn-api-toggle {
  background: color-mix(in srgb, var(--section-surface) 88%, var(--section-canvas));
  color: var(--section-muted);
}

.below-section .btn-api-toggle:hover {
  color: var(--section-text);
  border-color: color-mix(in srgb, var(--section-accent) 40%, var(--border));
}

.field-hint,
.field-todo {
  font-size: 0.75rem;
  color: var(--section-muted);
}

.field-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--section-muted);
  cursor: pointer;
}

.field-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--section-accent);
}

.field-error {
  font-size: 0.75rem;
  color: var(--section-warm);
}

.signup-submit {
  width: 100%;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.signup-submit:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--section-accent) 25%, transparent), transparent 70%);
  pointer-events: none;
}

.signup-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--section-muted);
}

.signup-fallback {
  margin-top: 12px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--section-muted);
}

.signup-fallback a { color: var(--section-accent); }

/* FAQ terminal */
.faq-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 20px;
  padding: 10px 14px;
  background: var(--section-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-search-prefix {
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--section-accent);
  white-space: nowrap;
}

.faq-search {
  flex: 1;
  min-height: 36px;
  border: none;
  background: transparent;
  color: var(--section-text);
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 0.875rem;
}

.faq-search:focus { outline: none; }

.faq-terminal .faq-item {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.faq-item.is-hidden { display: none; }

.faq-terminal summary {
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
  padding: 4px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-terminal summary::-webkit-details-marker { display: none; }

.faq-prompt {
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  color: var(--section-accent);
  margin-right: 8px;
}

.faq-terminal p {
  margin-top: 8px;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--section-muted);
  line-height: 1.5;
}

.faq-reply {
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  color: var(--section-muted);
  margin-right: 6px;
}

.sticky-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .relief-chaos,
  .relief-order,
  .relief-divider { transition: none; }
  .chaos-xl-error { animation: none; }
  .flow-ring.is-flowing .flow-dot { animation: none; opacity: 0.6; }
  .signup-submit:hover::after { display: none; }
}

/* ── Legacy section styles (unused, kept minimal) ── */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section-muted {
  background: color-mix(in srgb, var(--surface) 40%, var(--canvas));
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section h2 em {
  font-style: normal;
  color: var(--accent);
}

.section-lead {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pain-list li {
  padding: 14px 16px;
  background: color-mix(in srgb, var(--pain) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--pain) 22%, var(--border));
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.prompt-examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-chip {
  text-align: left;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  font-family: inherit;
  line-height: 1.45;
}

.prompt-chip:hover,
.prompt-chip.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  padding: 16px 16px 16px 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  font-size: 0.9375rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
}

/* ── Product mock ── */
.product-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 8px;
}

.product-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}

.product-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.product-mock-url {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.product-mock-body {
  padding: 24px 16px 28px;
}

.product-mock-hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.product-mock-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-mock-input input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
}

.product-mock-input input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.product-mock-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.proof-cta { margin-top: 20px; text-align: center; }

.scarcity p {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.cta-block {
  text-align: center;
  padding: 64px 0;
}

.cta-inner h2 { margin-bottom: 10px; }

.cta-inner p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cta-inner .btn-link { display: block; margin-top: 12px; }

/* ── FAQ ── */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-secondary);
  font-weight: 400;
}

.faq details[open] summary::after { content: "−"; }

.faq p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ── Footer ── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  align-items: center;
  row-gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-contacts {
  text-align: right;
}

/** Ссылка на Telegram администратора в футере. */
.footer-tg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, transform 0.15s;
}

.footer-tg-label {
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
}

.footer-tg-icon {
  color: #2aabee;
  filter: drop-shadow(0 0 8px rgba(42, 171, 238, 0.25));
}

.footer-tg-handle {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-tg:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.footer-tg:hover .footer-tg-icon {
  filter: drop-shadow(0 0 12px rgba(42, 171, 238, 0.45));
}

@media (max-width: 767px) {
  .footer-inner { text-align: center; }
  .footer-contacts { text-align: center; }
}

@media (min-width: 768px) {
  .footer-inner > :nth-child(1) { text-align: left; }
  .footer-inner > :nth-child(2) { text-align: center; }
  .footer-contacts { text-align: right; }
  .footer-tg { align-items: flex-end; }
  .footer-tg-label { text-align: right; }
}

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

/* ── Sticky CTA ── */
.sticky-cta {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 180;
  white-space: nowrap;
  font-size: 0.875rem;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .preloader-logo { animation: none; }
  .scene-scroll { height: auto; }
  .scene-pin {
    position: static;
    height: auto;
    min-height: auto;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 48px;
  }
  .bh-art { animation: none; }
  .orbit-arm { animation: none; }
  .singularity-hub { opacity: 0; }
  .orbit-field { display: none; }
  .chat-singularity {
    opacity: 1;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
  }
  .chat-singularity.is-filled .chat-compose {
    box-shadow: 0 0 40px var(--accent-dim), 0 8px 32px rgba(0, 0, 0, 0.5);
  }
  .phase-hint { display: none; }
  .scroll-cue { display: none; }
  .chat-cursor { animation: none; opacity: 0; }
}
