/* =========================================================================
   IMINERA — концепция B «ДАННЫЕ»
   Тёмный лабораторный / приборный стиль.
   Mobile-first. Breakpoints: 640 / 768 / 1024 / 1280.
   ========================================================================= */

@import url("../../shared-assets/fonts/fonts.css");

:root {
  /* ---- Цвета -------------------------------------------------------- */
  --bg: #131315;
  --bg-alt: #1c1c20;
  --bg-elevated: #202024;
  --bg-elevated-2: #26262b;
  --fg: #f2f1f0;
  --fg-muted: #a9a9af;
  --fg-faint: #6f6f76;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #e91e63;       /* малиновый IMINERA — данные, линии, точки */
  --accent-dark: #c2185b;  /* тёмный малиновый — сплошные CTA-кнопки */
  --accent-dim: rgba(233, 30, 99, 0.14);
  --accent-dim-strong: rgba(233, 30, 99, 0.28);
  --steel: #8e97a6;        /* холодный светло-серый — второй ряд данных */

  /* ---- Типографика ---------------------------------------------------- */
  --font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 30px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;
  --fs-5xl: 60px;

  /* ---- Отступы (шкала 4/8/12/16/24/32/48/64/96/128) ------------------ */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* ---- Форма / тень ---------------------------------------------------- */
  --radius: 4px;
  --radius-sm: 2px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);

  --container: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 420ms;
}

/* ---- Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, p, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

/* якоря секций не должны прятаться под sticky-шапкой */
[id] {
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

/* ---- Фокус (доступность) ---------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  background: var(--accent-dark);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--sp-3);
}

/* ---- Контейнер ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-6);
  }
}

.section {
  padding-block: var(--sp-8);
  border-top: 1px solid var(--border);
}

.section--alt {
  background: var(--bg-alt);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--sp-9);
  }
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--sp-6);
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: var(--sp-7);
  }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--fs-3xl);
  }
}

.section-lede {
  margin-top: var(--sp-3);
  color: var(--fg-muted);
  font-size: var(--fs-md);
  max-width: 58ch;
}

.text-muted {
  color: var(--fg-muted);
}

/* ---- Кнопки ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

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

.btn--primary {
  background: var(--accent-dark);
  color: #fff;
}

.btn--primary:hover {
  background: #a8134e;
}

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

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

.btn--block {
  width: 100%;
}

@media (min-width: 640px) {
  .btn--block {
    width: auto;
  }
}

/* =========================================================================
   0. ШАПКА
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(19, 19, 21, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-fast) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: 26px;
  width: auto;
  /* исходный логотип залит чёрным — инвертируем под тёмную подложку */
  filter: invert(1) brightness(1.05);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.header-actions {
  display: none;
  align-items: center;
  gap: var(--sp-4);
}

.proto-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  flex-shrink: 0;
}
.proto-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 2px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.proto-switch__btn:hover { color: var(--fg); }
.proto-switch__btn.is-active {
  background: var(--accent);
  color: #fff;
}

.header-phone {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  transition: color var(--dur-fast) var(--ease);
}

.header-phone:hover {
  color: var(--fg);
}

.primary-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: var(--sp-6) var(--sp-4);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
}

.primary-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease), visibility 0s;
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.primary-nav a {
  display: block;
  padding: var(--sp-4) var(--sp-2);
  font-size: var(--fs-lg);
  border-bottom: 1px solid var(--border);
}

.primary-nav .header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    inset: auto;
    background: none;
    padding: 0;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    flex: 1;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--sp-6);
  }

  .primary-nav a {
    padding: var(--sp-2) 0;
    font-size: var(--fs-sm);
    border-bottom: none;
    color: var(--fg-muted);
    transition: color var(--dur-fast) var(--ease);
  }

  .primary-nav a:hover {
    color: var(--fg);
  }

  .primary-nav .header-actions {
    display: none;
  }

  .header-actions {
    display: flex;
  }
}

/* =========================================================================
   1. HERO
   ========================================================================= */
.hero {
  padding-block: var(--sp-7) var(--sp-8);
  border-top: none;
}

.hero-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

.hero-copy {
  max-width: 34ch;
}

.hero-title {
  font-size: var(--fs-3xl);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: var(--sp-4);
  color: var(--fg-muted);
  font-size: var(--fs-md);
  max-width: 44ch;
}

.hero-actions {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.hero-visual {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

.hero-visual-caption {
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-block: var(--sp-9) var(--sp-9);
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--sp-9);
  }

  .hero-title {
    font-size: var(--fs-5xl);
  }
}

/* =========================================================================
   Графики (SVG) — общие правила
   ========================================================================= */
.chart {
  width: 100%;
  height: auto;
}

.chart > svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart .axis {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.chart .grid-line {
  stroke: var(--border);
  stroke-width: 1;
}

.chart .tick {
  fill: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.chart .bar-accent {
  fill: var(--accent);
}

.chart .bar-steel {
  fill: var(--steel);
}

.chart .bar-muted {
  fill: rgba(255, 255, 255, 0.14);
}

.chart .line-accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart .line-steel {
  fill: none;
  stroke: var(--steel);
  stroke-width: 2;
  stroke-dasharray: 3 4;
  stroke-linecap: round;
}

.chart .dot-accent {
  fill: var(--accent);
}

.chart .dot-steel {
  fill: var(--steel);
}

.chart .legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

.chart .legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.chart .legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 1px;
  flex-shrink: 0;
}

.chart .legend-swatch--accent {
  background: var(--accent);
}

.chart .legend-swatch--steel {
  background: var(--steel);
}

.chart-stub {
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

/* Анимация столбцов (прогрессивное улучшение: JS добавляет .charts-armed
   только если разрешено движение; иначе диаграммы сразу в конечном виде) */
.charts-armed .bar-anim {
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-base) var(--ease);
}

.charts-armed .bar-anim.in-view {
  transform: scaleY(1);
}

.charts-armed .dot-anim {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: center;
  transition: opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}

.charts-armed .dot-anim.in-view {
  opacity: 1;
  transform: scale(1);
}

.charts-armed .line-anim {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 700ms var(--ease);
}

.charts-armed .line-anim.in-view {
  stroke-dashoffset: 0;
}

/* =========================================================================
   Появление секций при скролле
   ========================================================================= */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}

.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group > * {
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
}

/* =========================================================================
   2. ПРОБЛЕМА
   ========================================================================= */
.problem-blocks {
  display: grid;
  gap: var(--sp-6);
}

.problem-block {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: grid;
  gap: var(--sp-5);
}

.problem-block__index {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
}

.problem-block__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.25;
  max-width: 34ch;
}

.problem-block__body {
  margin-top: var(--sp-3);
  color: var(--fg-muted);
  max-width: 56ch;
}

.problem-block__visual {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-5);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.stat-row__item {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  color: var(--fg-muted);
  padding-left: var(--sp-3);
  border-left: 2px solid var(--accent-dim-strong);
}

@media (min-width: 1024px) {
  .problem-block {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--sp-7);
  }

  .problem-block__visual {
    border-top: none;
    padding-top: 0;
  }

  .problem-block--reverse .problem-block__visual {
    order: -1;
  }
}

/* =========================================================================
   3. МЕТОД (что мы делаем с данными)
   ========================================================================= */
.method-grid {
  display: grid;
  gap: var(--sp-5);
}

.method-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.method-step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--fg-faint);
}

.method-step__title {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.method-step__body {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
}

.method-step__visual {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.readout {
  font-family: var(--font-mono);
}

.readout__value {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.readout__unit {
  font-size: var(--fs-sm);
  color: var(--fg-faint);
  margin-left: var(--sp-1);
}

.readout__label {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

.gap-meter {
  display: flex;
  gap: var(--sp-1);
}

.gap-meter__seg {
  height: 8px;
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}

.gap-meter__seg--active {
  background: var(--accent);
}

@media (min-width: 768px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .method-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================================
   4. ПРОДУКТЫ
   ========================================================================= */
.product-featured {
  border: 1px solid var(--accent-dim-strong);
  background: linear-gradient(
    165deg,
    var(--bg-elevated) 0%,
    var(--bg-elevated-2) 100%
  );
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: grid;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.product-featured__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-featured__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.2;
}

.product-featured__body {
  margin-top: var(--sp-3);
  color: var(--fg-muted);
  max-width: 56ch;
}

.product-featured__list {
  margin-top: var(--sp-5);
  display: grid;
  gap: var(--sp-2);
}

.product-featured__list li {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

.product-featured__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  flex-shrink: 0;
  background: var(--accent);
}

.product-rows {
  border-top: 1px solid var(--border);
}

.product-row {
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: var(--sp-4);
}

.product-row__name {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.product-row__body {
  margin-top: var(--sp-2);
  color: var(--fg-muted);
  max-width: 60ch;
}

.product-row__gives {
  margin-top: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.chip {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
}

.product-row__media img {
  border-radius: var(--radius);
  width: 100%;
  max-width: 220px;
  filter: grayscale(15%) contrast(1.05) brightness(0.92);
}

@media (min-width: 768px) {
  .product-featured {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: var(--sp-8);
  }

  .product-row {
    grid-template-columns: 1fr 2fr auto;
    align-items: start;
    gap: var(--sp-6);
  }
}

/* =========================================================================
   5. КАК ЭТО РАБОТАЕТ
   ========================================================================= */
.stepper {
  display: grid;
  gap: var(--sp-5);
  counter-reset: step;
}

.stepper__item {
  position: relative;
  padding-left: var(--sp-7);
}

.stepper__item::before {
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
}

.stepper__item::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 26px;
  bottom: -32px;
  width: 1px;
  background: var(--border-strong);
}

.stepper__item:last-child::after {
  display: none;
}

.stepper__title {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.stepper__body {
  margin-top: var(--sp-2);
  color: var(--fg-muted);
  max-width: 60ch;
}

@media (min-width: 1024px) {
  .stepper {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
  }

  .stepper__item {
    padding-left: 0;
    padding-top: var(--sp-7);
  }

  .stepper__item::before {
    top: 0;
    left: 0;
  }

  .stepper__item::after {
    left: 0;
    right: var(--sp-6);
    top: 24px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

/* =========================================================================
   6. ЭФФЕКТ
   ========================================================================= */
.effect-grid {
  display: grid;
  gap: var(--sp-6);
}

.effect-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
}

.effect-col--before {
  background: var(--bg-elevated);
}

.effect-col--after {
  background: var(--bg-elevated);
  border-color: var(--accent-dim-strong);
}

.effect-col__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.effect-col--after .effect-col__label {
  color: var(--accent);
}

.effect-col ul {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}

.effect-col li {
  padding-left: var(--sp-4);
  position: relative;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

.effect-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--fg-faint);
}

.effect-col--after li::before {
  background: var(--accent);
}

@media (min-width: 768px) {
  .effect-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================================
   7. ЛОГОТИПЫ (под вопросом)
   ========================================================================= */
.logos-note {
  font-size: var(--fs-sm);
  color: var(--fg-faint);
  margin-bottom: var(--sp-5);
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.logo-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  color: var(--fg-faint);
}

.logo-placeholder svg {
  width: 64px;
  height: 24px;
  opacity: 0.5;
}

.logo-placeholder span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

@media (min-width: 640px) {
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .logos-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* =========================================================================
   8. КОМУ (сегменты)
   ========================================================================= */
.segments {
  border-top: 1px solid var(--border);
}

.segment-row {
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: var(--sp-2);
}

.segment-row__name {
  font-weight: 700;
  font-size: var(--fs-md);
}

.segment-row__field {
  font-size: var(--fs-sm);
}

.segment-row__field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 2px;
}

.segment-row__pain {
  color: var(--fg-muted);
}

.segment-row__gain {
  color: var(--fg);
}

@media (min-width: 768px) {
  .segment-row {
    grid-template-columns: 1.1fr 1.3fr 1.3fr;
    align-items: center;
    gap: var(--sp-6);
  }
}

/* =========================================================================
   9. ПОЧЕМУ IMINERA
   ========================================================================= */
.why-layout {
  display: grid;
  gap: var(--sp-7);
}

.why-col {
  display: grid;
  gap: var(--sp-7);
  align-content: start;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.why-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: var(--bg-elevated);
}

.why-tile--lead {
  grid-column: span 2;
  background: linear-gradient(
    165deg,
    var(--bg-elevated) 0%,
    var(--bg-elevated-2) 100%
  );
  border-color: var(--accent-dim-strong);
}

.why-tile__value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-size: var(--fs-3xl);
}

.why-tile--lead .why-tile__value {
  font-size: var(--fs-4xl);
}

.why-tile__label {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
}

.why-facts {
  display: grid;
  gap: var(--sp-5);
}

.why-fact {
  padding-left: var(--sp-4);
  border-left: 2px solid var(--border-strong);
}

.why-fact p {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
}

.why-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05) brightness(0.9);
}

.why-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 19, 21, 0) 55%,
    rgba(19, 19, 21, 0.75) 100%
  );
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-tile--lead {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .why-layout {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: start;
  }
}

/* =========================================================================
   10. ФОРМА
   ========================================================================= */
.contact-layout {
  display: grid;
  gap: var(--sp-7);
}

.contact-form {
  display: grid;
  gap: var(--sp-4);
}

.form-field {
  display: grid;
  gap: var(--sp-2);
}

.form-field label {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.form-field .hint {
  font-size: var(--fs-xs);
  color: var(--fg-faint);
}

.form-field input,
.form-field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  color: var(--fg);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-faint);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  gap: var(--sp-4);
}

.form-status {
  margin-top: var(--sp-2);
  padding: var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid var(--accent-dim-strong);
  background: var(--accent-dim);
  font-size: var(--fs-sm);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.contact-side {
  display: grid;
  gap: var(--sp-5);
  align-content: start;
}

.contact-side__item {
  padding-left: var(--sp-4);
  border-left: 2px solid var(--border-strong);
}

.contact-side__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-side__value {
  margin-top: var(--sp-1);
  font-size: var(--fs-md);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* =========================================================================
   11. ФУТЕР
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-8);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  gap: var(--sp-6);
}

.footer-logo img {
  height: 22px;
  filter: invert(1) brightness(1.05);
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--sp-3);
}

.footer-col ul {
  display: grid;
  gap: var(--sp-2);
}

.footer-col a {
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--fg-faint);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* =========================================================================
   Reduced motion — отключаем всё движение, показываем конечное состояние
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  .charts-armed .bar-anim,
  .charts-armed .dot-anim {
    transform: none;
    opacity: 1;
  }

  .charts-armed .line-anim {
    stroke-dashoffset: 0;
  }
}
