@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ==========================================================================
   MOS — MilkTech Operating System
   Токены сняты пиксельной выборкой с рендеров Figma (файл 9pXXZVC2FI6gwHsQDFFQ9t)
   ========================================================================== */

:root {
  /* Цвет */
  --ink: #0b2641;
  --ink-2: #19334c;
  --green: #379138;
  --green-text: #2c7a2d;
  --green-soft: #e9f4e9;
  --green-on-dark: #4ade80;
  --blue: #0268b1;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --muted: #5b6470;
  --border: #e5e7eb;
  --divider: #edeff2;
  --disabled: #d0d5dd;
  --footer-label: #a8adb5;
  --danger: #e5484d;

  /* Тень */
  --shadow-card: 0 1px 2px rgba(11, 38, 65, 0.04), 0 1px 3px rgba(11, 38, 65, 0.06);
  --shadow-raised: 0 4px 12px rgba(11, 38, 65, 0.08), 0 2px 4px rgba(11, 38, 65, 0.04);
  --shadow-tooltip: 0 12px 32px rgba(11, 38, 65, 0.24), 0 4px 8px rgba(11, 38, 65, 0.12);
  --shadow-sphere: 0 18px 40px rgba(11, 38, 65, 0.14), 0 4px 10px rgba(11, 38, 65, 0.08);

  /* Ритм */
  /* В макете полезная ширина 1320px при полях по 60px, то есть внешняя
     граница контейнера — 1440. Если задать max-width 1320, контент
     сжимается до 1200 и вся страница едет относительно макета. */
  --container: 1440px;
  --gutter: 60px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 80px;

  /* Движение */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pulse-duration: 4s;
}

/* --------------------------------------------------------------------------
   Сброс и база
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   Типографика (переменные Figma: H1 64/1.1/-1, H2 40/1.0/-0.6, P1 22/1.6)
   -------------------------------------------------------------------------- */

.h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
}

.h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.lead {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

.body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green);
}

.section-note {
  font-size: 15px;
  color: var(--muted);
}

.accent {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Каркас
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 96px;
}

.section--tight {
  padding-block: 72px;
}

.section__head {
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 64px;
  text-align: center;
}

.section__head .eyebrow {
  margin-bottom: 16px;
}

.section__head .h2 {
  margin-bottom: 20px;
}

.section__head .h3 {
  margin-bottom: 20px;
  font-size: 32px;
}

.section__head .lead {
  margin-inline: auto;
  max-width: 900px;
}

.subhead {
  margin-bottom: 28px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.subhead--center {
  text-align: center;
}

.closing {
  margin-top: 88px;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.closing--quote {
  font-style: normal;
}

.stack {
  display: grid;
  gap: 24px;
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--divider);
  box-shadow: 0 1px 12px rgba(11, 38, 65, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.header__logo {
  flex: none;
}

.header__logo svg,
.header__logo img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav__item {
  position: relative;
}

.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav__trigger:hover,
.nav__item.is-open .nav__trigger {
  color: var(--ink);
  background: var(--divider);
}

.nav__chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.nav__item.is-open .nav__chevron {
  transform: rotate(180deg);
}

.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  min-width: 280px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}

.nav__item.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
  background: var(--bg);
}

.lang {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 4px;
  background: var(--divider);
  border-radius: 10px;
}

.lang__btn {
  padding: 8px 18px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 7px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.lang__btn[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.burger {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.header.is-open-mobile .burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.header.is-open-mobile .burger span:nth-child(2) {
  opacity: 0;
}

.header.is-open-mobile .burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 38, 65, 0.12);
}

.btn--primary:hover {
  background: #2f7d30;
  transform: translateY(-1px);
  box-shadow: var(--shadow-raised);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 18px 32px;
  font-size: 16px;
}

.header__cta {
  flex: none;
}

/* --------------------------------------------------------------------------
   Карточки
   -------------------------------------------------------------------------- */

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.card--numbered .card__badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
  background: var(--green-soft);
  color: var(--green-text);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
}

.card--flat {
  box-shadow: none;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--stretch > * {
  height: 100%;
}

/* Список «Пять ключевых проблем» — узкая колонка слева */
.problem-list {
  display: grid;
  gap: 16px;
}

.problem-list .card {
  padding: 22px 24px;
}

/* Строка с галочкой */
.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  font-size: 15px;
}

.check-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
}

.check-item__icon svg {
  width: 12px;
  height: 12px;
}

/* --------------------------------------------------------------------------
   Таблица сравнения
   -------------------------------------------------------------------------- */

.compare {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.compare table {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 19px 28px;
  text-align: left;
  font-size: 15px;
}

.compare thead th {
  background: var(--bg);
  font-weight: 600;
  color: var(--ink);
}

.compare thead th:last-child {
  color: var(--green);
}

.compare tbody tr + tr {
  border-top: 1px solid var(--divider);
}

.compare tbody td:first-child {
  color: var(--muted);
}

.compare tbody td:last-child {
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Схемы: общая механика
   Узлы позиционируются в процентах от системы координат макета,
   поэтому схема масштабируется без пересчёта.
   -------------------------------------------------------------------------- */

/* --dw / --dh — безразмерные числа системы координат схемы:
   они задают и пропорцию, и предельную ширину в пикселях. */
.diagram {
  position: relative;
  width: 100%;
  max-width: calc(var(--dw) * 1px);
  margin-inline: auto;
  aspect-ratio: var(--dw) / var(--dh);
}

.diagram__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.link {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
  transition: stroke 0.22s var(--ease), stroke-width 0.22s var(--ease);
}

.link--dashed {
  stroke-dasharray: 5 6;
}

.link.is-active {
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-dasharray: none;
}

.pulse {
  fill: var(--ink);
  r: 4;
  offset-rotate: 0deg;
  animation: pulse-travel var(--pulse-duration) linear infinite;
  animation-delay: var(--delay, 0s);
}

.pulse--green {
  fill: var(--green);
}

.pulse--blue {
  fill: var(--blue);
}

.pulse--muted {
  fill: var(--muted);
}

@keyframes pulse-travel {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}

/* Узел */
.node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  width: max-content;
  max-width: 190px;
  text-align: center;
}

.node__btn {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
}

.node__label {
  order: -1;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.node__ring {
  width: var(--r, 34px);
  height: var(--r, 34px);
  background: var(--surface);
  border: 2px solid var(--ring, var(--ink));
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.node--dot .node__ring {
  --r: 22px;
  background: var(--ring, var(--green));
  border-color: var(--ring, var(--green));
}

.node__caption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--green-text);
}

.node.is-active .node__ring {
  border-color: var(--green);
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(55, 145, 56, 0.12), var(--shadow-card);
}

.node.is-active .node__label {
  color: var(--green-text);
}

/* Узел-таблетка (главы 3, 7) */
/* В макете узел такой схемы — карточка, внутри которой и заголовок, и зелёная
   подпись. Поэтому карточкой служит сама кнопка, а не отдельная строка: иначе
   подпись выпадает наружу и налезает на соседние узлы. */
.node--pill .node__btn {
  gap: 6px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

/* Карточка шире обычного узла: подпись внутри неё должна укладываться
   в одну-две строки, иначе схема растёт по высоте и узлы сходятся. */
.node--pill {
  max-width: 230px;
}

.node--pill .node__label {
  order: 0;
}

.node--pill .node__caption {
  order: 1;
}

.node--pill.is-active .node__btn {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(55, 145, 56, 0.1), var(--shadow-card);
}

.node--pill.is-active .node__label {
  color: var(--ink);
}

/* Узел-карточка (главы 4, 5, 9) */
.node--card .node__btn {
  gap: 0;
}

.node--card .node__label {
  order: 0;
  display: grid;
  gap: 6px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.node--card.is-active .node__label {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(55, 145, 56, 0.1), var(--shadow-card);
}

/* Ядро MOS — глянцевая сфера основного макета */
.core {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
      circle at 35% 28%,
      #ffffff 0%,
      #fbfcfd 42%,
      #eef1f5 78%,
      #e3e8ee 100%
    );
  box-shadow: var(--shadow-sphere), inset 0 -14px 28px rgba(11, 38, 65, 0.06),
    inset 0 8px 20px rgba(255, 255, 255, 0.9);
}

.core__logo {
  width: 58%;
  height: auto;
}

.core--green {
  background: var(--green);
  box-shadow: var(--shadow-raised);
  color: #fff;
  gap: 2px;
}

.core--green .core__title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.core--green .core__sub {
  font-size: 13px;
  opacity: 0.92;
}

/* Тултип схемы */
.tip {
  position: absolute;
  z-index: 40;
  /* Пока тултип скрыт, он всё равно участвует в расчёте ширины прокрутки.
     Прижимаем его к левому верхнему углу схемы, иначе статическая позиция
     уводит его за правый край и появляется горизонтальный скролл. */
  left: 0;
  top: 0;
  width: min(340px, 78vw);
  padding: 20px 24px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-tooltip);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  pointer-events: none;
}

.tip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tip__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--green-on-dark);
}

.tip__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Потоки и таймлайны
   -------------------------------------------------------------------------- */

.flow {
  display: grid;
  justify-items: center;
  gap: 0;
}

.flow__step {
  width: 100%;
  max-width: 424px;
  padding: 20px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.flow__step--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.flow__step--green {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.flow__step--outline {
  border-color: var(--green);
}

.flow__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.flow__step--outline .flow__title {
  color: var(--green-text);
}

.flow__sub {
  margin: 0;
  font-size: 13px;
  color: var(--green-text);
}

.flow__step--dark .flow__sub,
.flow__step--green .flow__sub {
  color: rgba(255, 255, 255, 0.85);
}

.flow__arrow {
  display: grid;
  place-items: center;
  width: 2px;
  height: 28px;
  background: linear-gradient(var(--border), var(--border));
  position: relative;
}

.flow__arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-1px, -1px);
}

/* Таймлайн работает как схема: у каждого шага свой тултип */
.proof__timeline {
  position: relative;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline__row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 24px;
  padding-bottom: 34px;
  position: relative;
  cursor: default;
  border-radius: var(--radius-md);
  transition: background-color 0.18s ease;
}

.timeline__row:hover,
.timeline__row:focus-visible,
.timeline__row.is-active {
  background: rgba(55, 145, 56, 0.05);
  outline: none;
}

.timeline__row.is-active .timeline__title {
  color: var(--green);
}

.timeline__row:last-child {
  padding-bottom: 0;
}

.timeline__row::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: repeating-linear-gradient(
    var(--green) 0 5px,
    transparent 5px 11px
  );
}

.timeline__row:last-child::before {
  display: none;
}

.timeline__row--todo::before {
  background: repeating-linear-gradient(
    var(--disabled) 0 5px,
    transparent 5px 11px
  );
}

.timeline__dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--green);
  border-radius: 50%;
}

.timeline__row--todo .timeline__dot {
  background: var(--disabled);
}

.timeline__dot svg {
  width: 16px;
  height: 16px;
}

.timeline__year {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-text);
}

.timeline__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}

.timeline__text {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 20px 28px;
  background: var(--green);
  border-radius: var(--radius);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.status-bar__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.status-bar__icon svg {
  width: 13px;
  height: 13px;
}

/* Цепочка «Логика движения» */
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.chain__item {
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
  font-weight: 600;
}

.chain__arrow {
  color: var(--green);
  font-size: 16px;
}

/* Слоёный стек главы 9 */
.stack-layers {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-inline: auto;
}

.layer {
  padding: 18px 28px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.layer__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.layer__sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--green-text);
}

.layer__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.layer__dots i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.layer--top .layer__dots i {
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   Контакты и форма
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: 416px 1fr;
  gap: 28px;
  align-items: start;
}

.contact__card {
  padding: 40px 36px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: #fff;
}

.contact__label {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--footer-label);
}

.contact__name {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.contact__role {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.contact__links {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.contact__link:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.24);
}

.contact__link svg {
  flex: none;
  width: 16px;
  height: 16px;
  opacity: 0.75;
}

.contact__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.contact__note strong {
  color: #fff;
  font-weight: 600;
}

.form-card {
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-card__title {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 700;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
}

.field__label .req {
  color: var(--danger);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(55, 145, 56, 0.14);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}

.field__error {
  display: none;
  font-size: 13px;
  color: var(--danger);
}

.field.has-error .field__error {
  display: block;
}

.form__foot {
  margin-top: 22px;
}

.form__hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.form__status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--green-text);
}

/* --------------------------------------------------------------------------
   Футер
   -------------------------------------------------------------------------- */

.footer {
  padding-block: 60px 40px;
  background: var(--bg);
  border-top: 1px solid var(--divider);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: 20px;
}

.footer__about {
  margin: 0;
  max-width: 340px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.footer__label {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--footer-label);
}

.footer__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.15s var(--ease);
}

.footer__list a:hover {
  color: var(--green);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.footer__tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Глава 1 — hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: 72px 120px;
  background: var(--surface);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.hero__copy .eyebrow {
  margin-bottom: 28px;
  line-height: 1.5;
  color: var(--ink);
}

.hero__copy .h1 {
  margin-bottom: 28px;
}

.hero__sub {
  margin: 0 0 28px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.hero__scroll {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 56px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}

.hero__scroll:hover {
  color: var(--green);
}

.hero__scroll svg {
  width: 16px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   Двухколоночный блок «список + схема»
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 656px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.split--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Схема из карточек требует больше ширины, чем список слева: при узкой
   колонке карточки начинают перекрывать друг друга. В макете под схему
   главы 3 отведено примерно 660px против 465px под список. */
.split--wide-figure {
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
}

.split__figure {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

/* Подписи внутри графа главы 2 */
.graph__center {
  position: absolute;
  left: 44%;
  top: 49.5%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.graph__label {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 4px;
  margin: 0;
  width: max-content;
  max-width: 220px;
  text-align: center;
}

.graph__label-title {
  font-size: 15px;
  font-weight: 600;
}

/* Нейтральное кольцо основного макета */
.node--soft {
  --ring: var(--border);
}

/* Узлы выше ядра: в макете подпись стоит НАД кружком, иначе линия связи
   и бегущая точка проходят сквозь текст. Кружок при этом должен остаться
   ровно на своей точке (--x, --y), поэтому узел якорим по нижнему краю. */
.node--above {
  transform: translate(-50%, calc(-100% + var(--r, 34px) / 2));
}

/* --------------------------------------------------------------------------
   Глава 4 — древовидная схема
   -------------------------------------------------------------------------- */

.diagram--tree {
  display: grid;
  justify-items: center;
  gap: 0;
  aspect-ratio: auto;
  max-width: 100%;
  position: relative;
}

.tree__row {
  display: grid;
  gap: 24px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

.tree__row--one {
  grid-template-columns: minmax(0, 424px);
}

.tree__row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1160px;
}

.tree__row--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1160px;
}

.tree__arrow {
  width: 2px;
  height: 44px;
  background: var(--border);
  position: relative;
}

.tree__arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateX(-50%) rotate(45deg);
}

.tree__dots {
  display: flex;
  gap: 12px;
  padding-block: 20px;
}

.tree__dots i {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
}

.diagram--tree .node,
.diagram--flow .node {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
}

.diagram--tree .node__btn,
.diagram--flow .node__btn {
  width: 100%;
}

.node__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.node--card .node__label {
  height: 100%;
  align-content: center;
  text-align: center;
}

.node--core .node__label {
  background: var(--green);
  border-color: var(--green);
  justify-items: center;
}

.node--core .node__logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.node--core .node__caption {
  color: rgba(255, 255, 255, 0.92);
}

.node--outline .node__label {
  border-color: var(--green);
}

.node--outline .node__title {
  color: var(--green-text);
}

.statement {
  margin: 72px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Глава 5 — поток и кластеры
   -------------------------------------------------------------------------- */

.diagram--flow {
  display: grid;
  justify-items: center;
  gap: 0;
  aspect-ratio: auto;
  max-width: 100%;
  position: relative;
}

.diagram--flow .node--step {
  max-width: 424px;
}

.clusters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-block: 24px 8px;
}

.node--cluster .node__btn {
  display: grid;
  gap: 4px;
  padding: 20px 16px;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-align: center;
  justify-items: center;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.node--cluster.is-active .node__btn {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(55, 145, 56, 0.1), var(--shadow-card);
}

.cluster__name {
  font-size: 15px;
  font-weight: 600;
}

.cluster__region {
  font-size: 14px;
  color: var(--muted);
}

.node--step .node__btn {
  display: grid;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   Глава 6 — проверенная основа
   -------------------------------------------------------------------------- */

.section__head--left {
  max-width: 100%;
  margin-inline: 0;
  text-align: left;
}

.section__head--left .lead {
  margin-inline: 0;
  max-width: 820px;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 645px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Прочее
   -------------------------------------------------------------------------- */

.check-list--grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.core--square {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-raised);
  font-size: 17px;
  font-weight: 600;
  gap: 6px;
  padding: 16px;
  text-align: center;
}

.core--square .core__logo {
  width: auto;
  height: 30px;
}

.cta-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.cta-card .btn {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Скролл-ревил
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */

/* Шапка в полном размере требует ~1375px (логотип + четыре пункта меню +
   переключатель языка + CTA при отступах 60px). Поэтому сжимать её нужно
   раньше остальной типографики, иначе кнопка уезжает за правый край. */
@media (max-width: 1400px) {
  :root {
    --gutter: 40px;
  }

  .nav__trigger {
    padding: 10px 10px;
    font-size: 14px;
  }

  .header__inner {
    gap: 20px;
  }

  .header__cta {
    padding: 12px 18px;
    font-size: 14px;
  }
}

@media (max-width: 1279px) {
  .h1 {
    font-size: 52px;
  }

  .h2 {
    font-size: 34px;
  }

  .closing {
    font-size: 30px;
  }

  /* Ниже 1280 колонка под схему становится уже её узлов: радиальные схемы
     начинают вылезать за контейнер. Поэтому раскладку разбиваем на строки —
     схема получает всю ширину контейнера и укладывается в свои --dw. */
  .hero__inner,
  .split,
  .split--even,
  .proof {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .split__figure {
    position: static;
  }

  .hero__copy {
    max-width: 720px;
  }
}

/* Полное меню перестаёт помещаться раньше мобильных ширин:
   логотип + четыре пункта + переключатель + CTA требуют ~1240px.
   Ниже этого — бургер. */
@media (max-width: 1240px) {
  .burger {
    display: block;
    order: 3;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-raised);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .header.is-open-mobile .nav {
    display: flex;
  }

  .nav__trigger {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
  }

  .nav__menu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 12px;
  }

  .nav__item.is-open .nav__menu {
    display: block;
  }

  .header__cta {
    display: none;
  }
}

@media (max-width: 1023px) {
  .section {
    padding-block: 72px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .tree__row--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clusters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .check-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .h1 {
    font-size: 40px;
    letter-spacing: -0.6px;
  }

  .h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 18px;
  }

  .closing {
    margin-top: 56px;
    font-size: 24px;
  }

  .section__head {
    margin-bottom: 44px;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .contact__card,
  .form-card {
    padding: 28px 22px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Схемы разворачиваются в вертикальный список */
  .diagram {
    aspect-ratio: auto;
    max-width: 100%;
    display: grid;
    gap: 12px;
  }

  .diagram__links {
    display: none;
  }

  .core,
  .node {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    max-width: 100%;
    width: 100%;
  }

  .core {
    width: 148px;
    height: 148px;
    margin-inline: auto;
  }

  /* Оформление узла переносится на кнопку только в радиальных схемах —
     у древовидной и потоковой узлы уже оформлены сами по себе. */
  .diagram:not(.diagram--tree):not(.diagram--flow) .node__btn {
    width: 100%;
    justify-items: start;
    text-align: left;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
  }

  .diagram:not(.diagram--tree):not(.diagram--flow) .node--pill .node__label {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .diagram:not(.diagram--tree):not(.diagram--flow) .node__ring {
    display: none;
  }

  .diagram:not(.diagram--tree):not(.diagram--flow) .node {
    text-align: left;
  }

  .graph__center,
  .graph__label {
    position: static;
    transform: none;
    max-width: 100%;
    text-align: left;
  }

  .tree__row--three,
  .tree__row--five,
  .clusters {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-block: 40px 72px;
  }

  .hero__sub {
    font-size: 24px;
  }

  .statement {
    margin-top: 48px;
    font-size: 17px;
  }

  .check-list--grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .graph__center {
    font-size: 17px;
  }

  /* Тултип раскрывается под узлом, без наведения */
  .tip {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: -4px;
    display: none;
  }

  .tip.is-visible {
    display: block;
  }

  .compare table,
  .compare thead,
  .compare tbody,
  .compare tr,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare thead {
    display: none;
  }

  .compare tbody tr {
    padding: 16px 20px;
  }

  .compare tbody td {
    padding: 4px 0;
  }

  .compare tbody td:first-child::before {
    content: attr(data-label) " ";
    color: var(--footer-label);
  }

  .compare tbody td:last-child::before {
    content: attr(data-label) " ";
    color: var(--green);
    font-weight: 600;
  }

  .flow__step {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pulse {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
