/* NEYRUSS Group — лендинг по макету Figma (node 64:2)
   Дизайн-токены сняты с макета: цвета, типографика, сетка «спайна». */

:root {
  --bg: #e6e1d6;
  --surface: #f2eee5;
  --ink: #12100e;
  --ink-2: #1d1c15;
  --muted: #6e665a;
  --muted-2: #4c4640;
  --line: #d8d2c4;
  --gold: #b8863a;
  --gold-soft: #ffc572;
  --sand: #b3a88c;

  --accent-1: #b3a88c;
  --accent-2: #9a6b3c;
  --accent-3: #3f7a6a;
  --accent-4: #7e8c95;

  --spine: 64px;
  --rail-gap: 16px;   /* воздух между цифрой и направляющей */
  --gutter: 64px;
  --page: 1280px;
  /* Отступ, которым центрируется контент на широких экранах. Раньше рос
     без предела — на мониторе 1920px спайн и линия оказывались в 384px
     от края, логотип в 320px, половина экрана пустовала. Капаем в 140px:
     на 1280–1560px отступ ещё растёт естественно, дальше перестаёт —
     контент «прибивает» ближе к краю вместо бесконечного центрирования. */
  --center-offset: max(0px, min(140px, calc((100% - var(--page)) / 2)));
  --nav-h: 75px;
  --section-pad: 140px;   /* воздух сверху и снизу каждой секции */
  --facts-h: 96px;        /* полоса фактов — влезает в первый экран вместе с hero */
  /* у первого экрана свой отступ: он подстраивается под высоту устройства,
     чтобы hero и полоса фактов вместе поместились в один экран. Раньше
     контент вставал ровно вплотную к расчётной высоте (0–1px запаса) —
     на реальном окне (другая высота хрома браузера, другой масштаб)
     факты уезжали за экран. Здесь — с явным запасом. */
  --hero-pad: clamp(28px, 5.5vh, 72px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Unbounded", "Manrope", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* Фоны секций — во всю ширину экрана, содержимое — в общей колонке 1280px.
   За счёт этого номера 01–08 и текст стоят на одной вертикали на любом экране. */
/* здесь был overflow-x: clip — он создаёт контекст обрезки вокруг sticky-шапки
   и та начинает подрагивать при скролле. Ничего по горизонтали не вылезает,
   так что обрезка не нужна. */
.page { position: relative; }

.hero__row,
.facts,
.about,
.structure,
.portfolio,
.audience,
.goals,
.cta,
.contact {
  padding-inline: var(--center-offset);
}

/* --- общие типографические роли ------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  color: var(--muted);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #000;
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 30px;
  line-height: 34px;
  letter-spacing: -0.9px;
  margin: 0;
}

.lead {
  font-size: 19px;
  line-height: 30.4px;
  color: var(--ink);
}

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

/* --- «спайн»: номер секции + вертикальная подпись ---------------------
   Один компонент на все секции: номера 01–08 стоят на одной вертикали
   (64px от края), одного размера и цвета, на одной высоте от верха секции. */

.spine {
  width: var(--spine);
  flex: 0 0 var(--spine);
  align-self: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;          /* цифра и подпись по одной оси у линии */
  gap: 20px;
  padding: var(--section-pad, 96px) var(--rail-gap) 0 0;
  pointer-events: none;
}

.spine__num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 34px;
  line-height: 34px;
  color: var(--line);
  /* --hot 0..1 считает скрипт по положению «головы» прогресса на линии:
     цифра разгорается, когда линия до неё доходит, и гаснет следом */
  color: color-mix(in srgb, var(--gold) calc(var(--hot, 0) * 100%), var(--line));
}

.spine__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--line);
  /* та же --hot, что у цифры, но вполсилы: цифра остаётся главной,
     подпись только подхватывает её состояние */
  color: color-mix(in srgb, var(--gold) calc(var(--hot, 0) * 62%), var(--line));
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Сплошная направляющая на всю страницу. Один элемент, а не отрезок
   в каждой секции: на стыках линия рвалась. Концы уходят в прозрачность
   градиентом, поэтому она нигде не обрывается резко.
   Цвет подобран так, чтобы одинаково читаться и на светлом фоне,
   и на тёмных блоках 07 и футере. */
.rail {
  position: absolute;
  top: var(--nav-h);
  /* высоту до начала футера проставляет скрипт: в тёмный футер линия лезть
     не должна, а высота футера зависит от контента */
  height: var(--rail-h, 60vh);
  left: calc(var(--center-offset) + var(--spine));
  width: 1px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(128, 120, 105, 0) 0,
    rgba(128, 120, 105, 0.22) 180px,
    rgba(128, 120, 105, 0.22) calc(100% - 260px),
    rgba(128, 120, 105, 0) 100%
  );
}

/* --- кнопки со срезанным углом --------------------------------------- */

.btn {
  --notch: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn__shape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 17px 32px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

/* вариант со срезом снизу справа */
.btn--flip .btn__shape,
.btn--flip .btn__inner {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}

.btn--mono {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
}

.btn--mono .btn__shape { padding: 16px 24px; }

.btn--gold .btn__shape { background: var(--gold); color: var(--ink); }
.btn--light .btn__shape { background: var(--bg); color: var(--ink); }

.btn--solid .btn__shape {
  background: var(--ink);
  color: #fff;
}

.btn--ghost .btn__shape {
  background: var(--ink);
  padding: 1px;
}

.btn--ghost .btn__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px 31px;
  background: var(--bg);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.btn--sm { font-size: 14px; line-height: 21px; }
.btn--sm .btn__inner { padding: 9px 25px; }

/* стрелка справа в кнопке — сейчас только в мобильном hero (см. медиа-запрос);
   margin-left:auto прижимает её к правому краю независимо от justify-content
   родителя, текст при этом остаётся у левого края */
.btn__arrow {
  display: none;
  flex: none;
  width: 18px;
  height: 13px;
  margin-left: auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===================================================================== */
/* 01 — шапка                                                            */
/* ===================================================================== */

/* Шапка не меняется при скролле: ни высоты, ни тени — иначе страница дёргается.
   translateZ(0) выносит её на отдельный слой: с backdrop-filter без этого
   браузер перерисовывает область блюра на каждом кадре и она дрожит. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* обрамление и подложка появляются, только когда контент подходит под шапку */
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
  /* max-width+margin:auto центрировал независимо от --center-offset —
     на широком экране логотип уезжал на 320px от края. Тот же капнутый
     отступ, что у остальных секций, держит шапку в одной сетке с ними. */
  padding-inline: calc(var(--center-offset) + var(--gutter));
}

.nav__logo { width: 152.42px; height: 26.39px; position: relative; }
.nav__logo img { position: absolute; left: 0; top: 4.14px; width: 149px; height: 18.27px; }

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

.nav__link {
  position: relative;
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav__link:hover::after { opacity: 1; }

/* --- гамбургер и мобильное меню --------------------------------------- */

.nav__burger {
  display: none;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.nav__burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}

.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 19.25px; }
.nav__burger span:nth-child(3) { top: 24.5px; }

/* открыто — три линии складываются в крестик */
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 19.25px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 19.25px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 24px;
  padding: 24px var(--gutter) 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  /* сама шапка уже стоит над контентом; меню — на том же уровне */
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu__list a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.mobile-menu__cta { align-self: flex-start; }

/* ===================================================================== */
/* Hero                                                                  */
/* ===================================================================== */

.hero { background: var(--bg); }

.hero__row {
  display: flex;
  align-items: stretch;
  /* svh, а не vh: на мобильных vh считается без панели браузера и экран уезжает */
  min-height: calc(100vh - var(--nav-h) - var(--facts-h));
  min-height: calc(100svh - var(--nav-h) - var(--facts-h));
}

.hero__body {
  flex: 1 1 auto;
  min-width: 0;
  /* конструкция стоит по центру экрана, а не прижата к шапке */
  display: flex;
  align-items: center;
  padding: var(--hero-pad) var(--gutter);
}

/* цифра 01 остаётся вверху: центрируется только текстовая конструкция */
.hero .spine { padding-top: calc(var(--hero-pad) + 8px); }

/* Grid, а не flex: порядок в DOM (title → figure → lead → actions, под
   мобильное чтение) и порядок на экране развязаны через grid-template-areas.
   На десктопе фигура растягивается на все четыре ряда текста и стоит справа;
   на мобильном сетка схлопывается в одну колонку в том же порядке DOM. */
.hero__content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 96px);
  align-items: center;
  grid-template-areas:
    "eyebrow figure"
    "title   figure"
    "lead    figure"
    "actions figure";
}

.hero__eyebrow { grid-area: eyebrow; padding-bottom: 32px; }
/* короткая версия только для мобильного (правило видимости — ниже, в медиа-запросе) */
.hero__eyebrow-short { display: none; }
.hero__title { grid-area: title; padding-bottom: 40px; }
.hero__title .dim { color: var(--muted); }
.hero__lead { grid-area: lead; max-width: 520px; padding-bottom: 48px; }

.hero__actions {
  grid-area: actions;
  display: flex;
  gap: 16px;
}

/* --- скульптура справа от текста --------------------------------------- */

.hero__figure {
  grid-area: figure;
  min-width: 0;
  max-width: 460px;
  margin: 0;
  align-self: center;
  justify-self: center;
}

.hero__figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* .hero .hero__figure — на класс длиннее, чем общий .js .reveal ниже по файлу,
   так что своя (более медленная, со scale) анимация не перетирается общей */
.js .hero .hero__figure {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.9s var(--ease) 0.24s, transform 0.9s var(--ease) 0.24s;
}

.js .hero .hero__figure.is-in { opacity: 1; transform: none; }

/* ===================================================================== */
/* Полоса фактов                                                         */
/* ===================================================================== */

.facts {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.facts__spacer {
  width: var(--spine);
  flex: 0 0 var(--spine);
}

.facts__list { display: flex; flex: 1 1 auto; min-width: 0; }

.fact {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  height: 94px;
  padding: 32px 0 0 48px;
}

.fact + .fact { border-left: 1px solid var(--line); }

.fact__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 30px;
  line-height: 30px;
  color: var(--ink);
}

/* ===================================================================== */
/* 02 — О группе                                                         */
/* ===================================================================== */

.about { display: flex; align-items: stretch; background: var(--bg); }

.about__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 47.5px;
  padding: var(--section-pad) var(--gutter);
}

.about__title { max-width: 896px; }

/* Вкладки — вертикальное меню слева, текст справа. Горизонтальный ряд
   мелких моно-подписей не читался как выбор: люди принимали его
   за декоративную строку и не нажимали. */

.about__cols {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.tabs__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.tab {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 18px 12px 18px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

/* риска слева — тот же приём, что у меню предложений в блоке 04 */
.tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.tab__no {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #c2b9a6;
  transition: color 0.25s var(--ease);
}

.tab__name {
  font-size: 17px;
  line-height: 24px;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.tab:hover { background: rgba(184, 134, 58, 0.05); }
.tab:hover .tab__name { color: var(--ink); }

.tab[aria-selected="true"]::before { transform: scaleY(1); }
.tab[aria-selected="true"] { background: rgba(184, 134, 58, 0.06); }
.tab[aria-selected="true"] .tab__no { color: var(--gold); }
.tab[aria-selected="true"] .tab__name { color: var(--ink); font-weight: 500; }

.about__panels { position: relative; }

.tabs__panel {
  display: none;
  flex-direction: column;
  gap: 18px;
  max-width: 620px;
}

.tabs__panel[data-active] { display: flex; }
.tabs__panel p { font-size: 18px; line-height: 30px; color: var(--ink-2); }

.about__media {
  --notch: 40px;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.about__media img { width: 100%; height: auto; }

/* ===================================================================== */
/* 03 — Структура                                                        */
/* ===================================================================== */

.structure {
  display: flex;
  align-items: stretch;
  background: var(--bg);
}

.structure__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--section-pad) var(--gutter);
}

.structure__lead {
  text-wrap: pretty;
  max-width: 780px;
  padding: 20px 0 64px;
  font-size: 17px;
  line-height: 27.2px;
  color: var(--muted);
}

.dirs { display: flex; flex-direction: column; gap: 20px; }

.dir {
  --accent: var(--accent-1);
  --notch: 48px;
  position: relative;
  display: flex;
  align-items: center;
  height: 280px;
  width: 100%;
}

/* поверхность карточки со срезанным углом — отдельным слоем,
   иначе clip-path обрезал бы и цветной треугольник в вырезе */
.dir::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.dir > * { position: relative; }

.dir__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--notch);
  height: var(--notch);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.dir--2 { --accent: var(--accent-2); }
.dir--3 { --accent: var(--accent-3); }
.dir--4 { --accent: var(--accent-4); }

.dir__brand {
  flex: 0 0 363px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 38px;
}

.dir__cube { width: 76px; height: 88px; flex: none; }
.dir__cube img { width: 100%; height: 100%; object-fit: contain; }

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

.dir__mark { display: flex; align-items: flex-end; gap: 4px; }
.dir__mark .word { width: 135px; height: 18px; }
.dir__mark .suffix { height: 13px; width: auto; }

.dir__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
}

.dir--1 .dir__label { color: #000; }

.dir__rule {
  flex: none;
  width: 1px;
  height: 169px;
  background: var(--accent);
}

.dir--2 .dir__rule { background: var(--gold); }

.dir__text {
  flex: 1 1 auto;
  min-width: 0;
  /* карточка теперь во всю колонку, но строку длиннее ~70 знаков не читают */
  max-width: 620px;
  padding: 0 35px 0 27px;
  font-size: 16px;
  line-height: 23px;
  color: var(--ink-2);
}

/* ===================================================================== */
/* 04 — Продуктовый портфель                                             */
/* ===================================================================== */

.portfolio { display: flex; align-items: stretch; background: var(--bg); }

.portfolio__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: var(--section-pad) var(--gutter);
}

.level { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.level > * { width: 100%; }
.level > .btn { width: auto; }

.level__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.level__text {
  max-width: 820px;
  font-size: 17px;
  line-height: 27.63px;
  color: rgba(18, 16, 14, 0.8);
}

/* ядро — тёмная карточка */
.core {
  --notch: 34px;
  position: relative;
  background: var(--ink);
  color: var(--bg);
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.core__title { font-size: 32px; line-height: 48px; font-weight: 400; margin: 0; }

.core__lead {
  max-width: 800px;
  font-size: 18px;
  line-height: 28px;
  color: rgba(230, 225, 214, 0.8);
}

.core__quote {
  max-width: 800px;
  margin: 0;
  padding-left: 26px;
  border-left: 2px solid var(--gold);
  font-size: 18px;
  line-height: 28px;
  color: #e8d097;
}

.core__meta { margin: 0; padding-top: 15px; display: flex; flex-direction: column; gap: 7px; }
.core__meta b { font-weight: 600; font-size: 15px; line-height: 22.5px; color: var(--bg); }
.core__meta span { font-weight: 400; color: rgba(230, 225, 214, 0.7); }

/* B2C-карточки */
.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.app {
  --c: var(--sand);
  --notch: 34px;
  position: relative;
  min-height: 256px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: --notch 0.3s var(--ease), transform 0.3s var(--ease);
}

/* поверхность отдельным слоем — иначе clip-path съел бы цветной уголок */
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: background 0.3s var(--ease);
}

.app > * { position: relative; }

.app__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--notch);
  height: var(--notch);
  background: var(--c);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.app__mark {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--c);
  stroke-width: 1.5;
  stroke-linecap: square;
  transition: transform 0.35s var(--ease);
}

.app:hover { --notch: 52px; transform: translateY(-4px); }
.app:hover::before { background: #efe9dd; }
.app:hover .app__mark { transform: translateY(-3px); }

.app h4 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 2px solid var(--c);
}

.app p { font-size: 15px; line-height: 24.38px; color: rgba(18, 16, 14, 0.7); }

.app__more {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.app__more::after { content: " →"; }
.app__more:hover { color: var(--ink); border-bottom-color: var(--gold); }

/* B2B-предложения */
/* Меню предложений для бизнеса: строка = одно предложение.
   Крупный индекс задаёт ритм, описание уходит на второй план. */
.offers {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.offer {
  --c: var(--gold);
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 340px) minmax(0, 1fr);
  gap: 6px 24px;
  align-items: baseline;
  /* отступ слева обязателен: без него золотая риска приходится вплотную
     к цифре и строка выглядит сбитой */
  padding: 24px 24px 24px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

/* риска слева выезжает по наведению — та же логика, что у карточек */
.offer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.offer:hover { background: rgba(184, 134, 58, 0.06); }
.offer:hover { border-bottom-color: #cfc6b3; }
.offer:hover::before { transform: scaleY(1); }
.offer:hover .offer__no { color: var(--c); }

.offer__no {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 24px;
  line-height: 1;
  color: #c2b9a6;
  transition: color 0.3s var(--ease);
}

.offer__title {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: var(--ink);
}

.offer__note {
  font-size: 15px;
  line-height: 26px;
  color: var(--muted);
}

/* итог блока — не ещё один абзац, а вывод: с золотой риской, как цитата */
.level__sum {
  max-width: 760px;
  padding-left: 26px;
  border-left: 2px solid var(--gold);
  font-size: 17px;
  line-height: 28px;
  color: var(--ink);
}

/* ===================================================================== */
/* 05 — Для кого                                                         */
/* ===================================================================== */

.audience { display: flex; align-items: stretch; background: var(--bg); }

.audience__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: var(--section-pad) var(--gutter);
}

.audience__header { display: flex; flex-direction: column; gap: 24px; }
.h2--caps { text-transform: uppercase; color: var(--ink); }
.audience__lead { max-width: 900px; font-size: 16px; line-height: 26px; color: var(--muted); }

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

.segment {
  --notch: 34px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background: var(--surface);
  padding: 32px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.segment h4 { margin: 0 0 15px; font-weight: 600; font-size: 17px; line-height: 21.25px; color: var(--ink); }
.segment p { font-size: 15px; line-height: 20.63px; color: var(--muted); }

.segment footer {
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 16.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.block { display: flex; flex-direction: column; gap: 48px; padding-top: 48px; border-top: 1px solid var(--line); }

.h3--mono {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 26.4px;
  letter-spacing: -0.77px;
  text-transform: uppercase;
  color: var(--ink);
}

.single-id { display: flex; align-items: center; gap: 72px; flex-wrap: wrap; }

.single-id__diagram {
  position: relative;
  width: 320px;
  flex: none;
  margin: 0;
}

.idmap {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}

.idmap__links line { stroke: var(--line); stroke-width: 1; }
.idmap__links line.is-held { stroke: var(--c); stroke-width: 1.6; }

/* прозрачная зона захвата: в квадрат 10 px пальцем не попасть */
.idmap__hit { fill: transparent; }

.idmap__node { cursor: grab; touch-action: none; }
.idmap__node.is-held { cursor: grabbing; }

.idmap__node rect { transition: transform 0.25s var(--ease); }
.idmap__node:hover rect,
.idmap__node.is-held rect { transform: scale(1.7); }

.idmap__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  fill: var(--muted);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

/* на тач-устройствах :hover залипает и подпись остаётся висеть */
@media (hover: hover) {
  .idmap__node:hover .idmap__label { opacity: 1; fill: var(--ink); }
}

.idmap__node.is-held .idmap__label { opacity: 1; fill: var(--ink); }

.idmap__hub { cursor: pointer; }
.idmap__hub rect { fill: var(--gold); stroke: var(--ink); stroke-width: 1; }

.idmap__hub text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  fill: var(--ink);
  text-anchor: middle;
}

/* импульс: данные стекаются в общий профиль */
.idmap__pulse { fill: var(--gold); opacity: 0; }

.single-id__side {
  flex: 1 1 320px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-id__text { font-size: 16px; line-height: 26.4px; color: var(--ink); }
.single-id__note { font-size: 15px; line-height: 24px; color: var(--muted); }

.flow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.flow__node {
  --c: var(--line);
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 2px solid var(--c);
  padding: 14px 19px;
  font-weight: 500;
  font-size: 15px;
  line-height: 24.75px;
  color: var(--ink);
}

.flow__arrow { width: 16px; height: 26.39px; flex: none; }

.flow__text { max-width: 896px; font-size: 16px; line-height: 26.4px; color: var(--ink); }

/* ===================================================================== */
/* 06 — Наши цели                                                        */
/* ===================================================================== */

.goals { display: flex; align-items: stretch; background: var(--bg); }

.goals__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 39px;
  padding: var(--section-pad) var(--gutter);
}

.goals__lead { max-width: 820px; font-size: 17px; line-height: 27.63px; color: var(--muted); }

/* Горизонты вместо двух равнозначных списков: год → главная цифра →
   расшифровка → детали. Приоритет читается за секунду. */
.horizons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  padding-top: 24px;
}

.horizon {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* засечка на оси времени */
.horizon::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold);
}

.horizon__when {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  color: var(--muted);
}

/* цифра всегда отдельной строкой — иначе «7» и «7 млн+» ведут себя
   по-разному и колонки перестают рифмоваться */
.horizon__metric { margin: 28px 0 36px; }

.horizon__metric b {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.horizon__metric span {
  display: block;
  max-width: 340px;
  font-size: 15px;
  line-height: 23px;
  color: var(--muted);
}

.horizon__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.horizon__list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-2);
}

.goals__note { font-size: 13px; line-height: 21.45px; color: var(--muted); }

/* ===================================================================== */
/* 07 — Открыты к диалогу                                                */
/* ===================================================================== */

.cta {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--ink);
}

.cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: #e8d097;
  opacity: 0.35;
}

.cta__spine .spine__num,
.cta__spine .spine__label { color: rgba(230, 225, 214, 0.22); }

.cta__inner {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head  photo"
    "body  photo";
  align-items: center;
  column-gap: 64px;
  row-gap: 28px;
  min-height: 620px;
  padding: var(--section-pad) var(--gutter);
}

.cta__head { grid-area: head; align-self: end; }
.cta__body { grid-area: body; align-self: start; }
.cta__photo { grid-area: photo; }

.cta__eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  color: #e8d097;
  margin-bottom: 24px;
}

.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--bg);
}

.cta__lead { max-width: 430px; font-size: 17px; line-height: 27.2px; color: #fff; }

/* кнопки под текстом и по левому краю */
.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta__actions .btn--mono .btn__shape { padding: 16px 20px; }

.cta__photo {
  width: min(400px, 34vw);
  margin: 0;
}

.cta__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

/* ===================================================================== */
/* 08 — Начать диалог                                                    */
/* ===================================================================== */

.contact { display: flex; align-items: stretch; background: var(--bg); }

.contact__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: var(--section-pad) var(--gutter);
}

.contact__header { display: flex; flex-direction: column; gap: 24px; max-width: 896px; }
.contact__lead { font-size: 17px; line-height: 25.5px; color: var(--muted); }

.contact__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }

.form {
  --notch: 34px;
  background: var(--surface);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

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

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

.field__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 11px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  color: var(--muted);
}

.field__input,
.field__area {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 1px solid #6b7280;
  padding: 12px;
  border-radius: 0;
  outline: none;
}

.field__input { height: 48px; }
.field__input::placeholder,
.field__area::placeholder { color: #6b7280; }
.field__input:focus,
.field__area:focus { border-bottom-color: var(--gold); }

.field__select {
  appearance: none;
  background-image: url("assets/icon-chevron.svg");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 24px 24px;
  padding-right: 40px;
  cursor: pointer;
}

.field__area {
  background: transparent;
  border-bottom-color: var(--line);
  min-height: 120px;
  resize: vertical;
  line-height: 24px;
}

.form__submit { padding-top: 16px; }

.contacts { list-style: none; margin: 0; padding: 44px 0 0; border-top: 1px solid var(--line); }

.contacts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 8px 21px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--line);
}

.contacts a { font-weight: 600; font-size: 16px; line-height: 24px; color: var(--ink); }
.contacts a:hover { color: var(--gold); }
.contacts span { font-size: 15px; line-height: 22.5px; color: var(--muted); }

/* ===================================================================== */
/* Футер                                                                 */
/* ===================================================================== */

.footer { background: var(--ink); padding: 87px 0 36px; }

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer__headline {
  padding-bottom: 32.75px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #e8d097;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(230, 225, 214, 0.15);
  border-bottom: 1px solid rgba(230, 225, 214, 0.15);
}

.footer__col { display: flex; flex-direction: column; gap: 16px; }

.footer__title {
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
  color: rgba(230, 225, 214, 0.45);
}

.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 15px; line-height: 22.5px; color: var(--bg); }
.footer__col a:hover { color: #e8d097; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 19.5px;
  color: rgba(230, 225, 214, 0.5);
}

.footer__legal { display: flex; gap: 16px; flex-wrap: wrap; }

.footer__legal a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 16.5px;
  color: rgba(230, 225, 214, 0.45);
}

.footer__legal a:hover { color: #e8d097; }

/* Спайн занимает слева var(--spine), поэтому справа добавляем столько же —
   иначе контентная колонка визуально смещена влево от центра экрана. */
.hero__body,
.about__body,
.structure__body,
.portfolio__body,
.audience__body,
.goals__body,
.contact__body,
.cta__inner {
  padding-right: calc(var(--spine) + var(--gutter));
}

/* ===================================================================== */
/* Зерно, манифест, тёмная панель, засечки                               */
/* ===================================================================== */

/* Плоская бежевая заливка на 10 000 px читается пластиково. Тончайшее зерно
   поверх всей страницы даёт «бумажность». Генерится SVG-фильтром — ноль
   килобайт и никаких картинок. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- манифест: смена ритма на длинном скролле ------------------------- */

.manifest {
  /* мысль занимает экран целиком: сверху и снизу ничего не спорит
     за внимание, рамок нет — воздух держит фокус лучше линий */
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  padding-block: clamp(96px, 18vh, 200px);
  padding-inline: max(var(--gutter), calc(var(--center-offset) + var(--spine) + var(--gutter)));
}

.manifest__text {
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(30px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.manifest__text .dim { color: var(--muted); }

/* --- тёмная панель «Единый ID» ---------------------------------------- */

.block--dark {
  --notch: 48px;
  position: relative;
  background: var(--ink);
  padding: clamp(32px, 5vw, 64px);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  border-top: 0;
}

/* Блок сразу после тёмной панели не рисует свой разделитель: волосяная
   линия в 48px под чёрной плитой читается как случайная полоса.
   Вместо линии — просто больше воздуха. */
.block--dark + .block {
  border-top: 0;
  padding-top: clamp(72px, 9vh, 120px);
}

.block--dark .h3--mono { color: var(--bg); }
.block--dark .single-id__text { color: var(--bg); }
.block--dark .single-id__note { color: rgba(230, 225, 214, 0.6); }
.block--dark .single-id__hint { color: rgba(230, 225, 214, 0.45); }
.block--dark .idmap__links line { stroke: rgba(230, 225, 214, 0.28); }
.block--dark .idmap__hub rect { stroke: rgba(230, 225, 214, 0.5); }

@media (hover: hover) {
  .block--dark .idmap__node:hover .idmap__label { fill: var(--bg); }
}

.block--dark .idmap__node.is-held .idmap__label { fill: var(--bg); }
.block--dark .idmap__label { fill: rgba(230, 225, 214, 0.55); }

/* --- засечки и прогресс на направляющей -------------------------------- */

.rail__tick {
  position: absolute;
  left: -5px;
  width: 11px;
  height: 1px;
  background: rgba(128, 120, 105, 0.4);
}

.rail__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  /* оба конца уходят в прозрачность: снизу была резкая обрубленная кромка,
     она читалась как дефект, а не как «докуда дочитано» */
  background: linear-gradient(
    to bottom,
    rgba(184, 134, 58, 0) 0,
    rgba(184, 134, 58, 0.9) 160px,
    rgba(184, 134, 58, 0.9) calc(100% - 130px),
    rgba(184, 134, 58, 0) 100%
  );
}

/* ===================================================================== */
/* Моушн                                                                 */
/* ===================================================================== */

/* срез угла анимируется только если переменная зарегистрирована как длина;
   в браузерах без @property угол просто не анимируется — вёрстка не ломается */
@property --notch {
  syntax: "<length>";
  inherits: true;
  initial-value: 14px;
}

/* --- появление по скроллу -------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* первый экран прячем прямо в CSS: он попадает в первую отрисовку,
   и если ждать скрипт — элементы успевают мигнуть */
.js .hero__eyebrow,
.js .hero__lead,
.js .hero__actions {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .hero__eyebrow.is-in,
.js .hero__lead.is-in,
.js .hero__actions.is-in { opacity: 1; transform: none; }

.js .hero__lead { transition-delay: 0.08s; }
.js .hero__actions { transition-delay: 0.16s; }

/* --- построчный выезд заголовка из-под маски -------------------------- */

.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.ln > i { display: block; font-style: normal; }

.js [data-lines] .ln > i {
  transform: translateY(110%);
  transition: transform 0.85s var(--ease);
}

.js [data-lines].is-in .ln > i { transform: none; }

/* --- спайн ------------------------------------------------------------ */

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

/* Номер и подпись живут только пока блок в фокусе: поднимаясь к шапке,
   цифра уходит вверх и растворяется. Линия при этом сплошная — она общая
   для всей страницы. --fade и --lift каждый кадр считает скрипт. */

.spine__num { opacity: var(--fade, 1); transform: translateY(var(--lift, 0px)); }

.spine__label {
  opacity: var(--fade, 1);
  transform: translateY(var(--lift, 0px)) rotate(180deg);
}

/* --- срезанный угол как реакция на курсор ----------------------------- */

.btn {
  transition: --notch 0.25s var(--ease), opacity 0.2s var(--ease),
    transform 0.25s var(--ease);
}

.btn:hover { --notch: 24px; opacity: 1; }
.btn:active { transform: translateY(1px); }

.btn--solid .btn__shape,
.btn--gold .btn__shape,
.btn--light .btn__shape { transition: filter 0.25s var(--ease); }

.btn--solid:hover .btn__shape { filter: brightness(1.35); }
.btn--gold:hover .btn__shape { filter: brightness(1.08); }
.btn--light:hover .btn__shape { filter: brightness(0.96); }
.btn--ghost:hover .btn__inner { background: var(--surface); }

/* --- карточки --------------------------------------------------------- */

.dir { transition: --notch 0.35s var(--ease); }
.dir::before { transition: background 0.35s var(--ease); }
.dir__rule { transition: height 0.45s var(--ease), background 0.35s var(--ease); }
.dir__cube img { transition: transform 0.45s var(--ease); }

.dir:hover { --notch: 72px; }
.dir:hover::before { background: #efe9dd; }
.dir:hover .dir__rule { height: 210px; }
.dir:hover .dir__cube img { transform: translateY(-5px); }

.app,
.segment {
  transition: --notch 0.3s var(--ease), transform 0.3s var(--ease),
    background 0.3s var(--ease);
}

.app:hover,
.segment:hover {
  --notch: 52px;
  transform: translateY(-4px);
  background: #efe9dd;
}

.core { transition: --notch 0.3s var(--ease); }
.core:hover { --notch: 52px; }

.flow__node { transition: border-color 0.25s var(--ease), background 0.25s var(--ease); }
.flow__node:hover { border-color: var(--c); background: var(--surface); }

.contacts li { transition: background 0.25s var(--ease); }
.contacts li:hover { background: rgba(184, 134, 58, 0.07); }

/* --- схема «Единый ID» ------------------------------------------------- */

.idmap__links line { stroke-dasharray: 1; }

.js .idmap__links line {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.8s var(--ease), stroke 0.25s var(--ease),
    stroke-width 0.25s var(--ease);
}

.js .single-id.is-in .idmap__links line { stroke-dashoffset: 0; }

.js .idmap__nodes g { opacity: 0; transition: opacity 0.45s var(--ease); }
.js .single-id.is-in .idmap__nodes g { opacity: 1; }

.js .idmap__hub { opacity: 0; transition: opacity 0.5s var(--ease) 0.45s; }
.js .single-id.is-in .idmap__hub { opacity: 1; }

.js .idmap__links line:nth-child(1) { transition-delay: 0.10s; }
.js .idmap__links line:nth-child(2) { transition-delay: 0.18s; }
.js .idmap__links line:nth-child(3) { transition-delay: 0.26s; }
.js .idmap__links line:nth-child(4) { transition-delay: 0.34s; }
.js .idmap__links line:nth-child(5) { transition-delay: 0.42s; }
.js .idmap__links line:nth-child(6) { transition-delay: 0.50s; }
.js .idmap__links line:nth-child(7) { transition-delay: 0.58s; }

.js .idmap__nodes g:nth-child(1) { transition-delay: 0.50s; }
.js .idmap__nodes g:nth-child(2) { transition-delay: 0.58s; }
.js .idmap__nodes g:nth-child(3) { transition-delay: 0.66s; }
.js .idmap__nodes g:nth-child(4) { transition-delay: 0.74s; }
.js .idmap__nodes g:nth-child(5) { transition-delay: 0.82s; }
.js .idmap__nodes g:nth-child(6) { transition-delay: 0.90s; }
.js .idmap__nodes g:nth-child(7) { transition-delay: 0.98s; }

/* --- вкладки ---------------------------------------------------------- */

.tabs__panel { transition: opacity 0.16s var(--ease); }
.tabs__panel.is-swapping { opacity: 0; }

/* --- форма ------------------------------------------------------------ */

.form__submit { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.form__status {
  min-height: 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.form__status[data-kind="error"] { color: #a8402c; }
.form__status[data-kind="ok"] { color: var(--accent-3); }

/* --- фокус с клавиатуры ----------------------------------------------- */

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- уважение к системной настройке ----------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================================================== */
/* Адаптив                                                               */
/* ===================================================================== */

/* меню не помещается рядом с логотипом и кнопкой раньше остальной вёрстки */
@media (max-width: 1000px) {
  .nav__links,
  .nav__cta { display: none; }

  /* логотип слева, гамбургер справа — вместо скрытого меню */
  .nav__burger { display: flex; }

  .mobile-menu.is-open { display: flex; }
}

@media (max-width: 1100px) {
  :root { --spine: 128px; --gutter: 40px; --section-pad: 96px; }

  .dir { width: 100%; }
  .dir__brand { flex-basis: 260px; padding-left: 24px; }
  .dir__text { padding-right: 32px; }

  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-id { gap: 48px; }
  .cta__photo { width: min(320px, 30vw); }
  .cta__actions { justify-content: flex-start; }
  .contact__cols { grid-template-columns: 1fr; gap: 40px; }
  .contacts { padding-top: 0; }
}

@media (max-width: 860px) {
  :root {
    --gutter: 24px;
    --section-pad: 104px;
    --facts-h: 86px;
    /* компактнее, чем десктопный clamp(40px,7vh,96px) — картинка и так
       забирает высоту, воздух сверху/снизу можно ужать */
    --hero-pad: clamp(12px, 2.2vh, 28px);
  }

  /* на узком экране надзаголовок переносится — плотный интерлиньяж макета слипается */
  .eyebrow { line-height: 1.7; }

  /* .hero__body раньше попадал в общий список секций ниже (padding: 32px
     var(--gutter) 64px) — тот фиксированный 64px снизу давал пустой
     блок под кнопками, а --hero-pad для hero__body был мёртвым кодом.
     Задаём паддинг явно и только здесь. */
  /* align-items:center из базового правила собирал весь текст в середину
     экрана: на высоких телефонах (iPhone 14 Pro Max, 932pt) сверху
     оставалась дыра, а кнопки висели посреди блока. Растягиваем
     .hero__content на всю высоту — заголовок уходит вверх, кнопки вниз. */
  .hero__body {
    align-items: stretch;
    padding: var(--hero-pad) var(--gutter) 40px;
  }

  /* Картинка больше не отдельный ряд в сетке — она бегущим пятном стоит
     за текстом и уходит за правый край экрана, поэтому у неё нет своей
     area в разметке; .hero__content — контейнер для её абсолютного
     позиционирования. */
  .hero__content {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "lead"
      "actions";
    /* весь свободный воздух отдаём последнему ряду — кнопки уезжают
       к низу первого экрана, а не болтаются сразу под текстом */
    grid-template-rows: auto auto auto 1fr;
    row-gap: 0;
  }

  .hero__eyebrow { padding-bottom: 16px; }

  /* заголовок был зафиксирован на полу clamp() в 38px и не мог стать
     меньше на узких экранах — здесь свой предел, поменьше десктопного */
  /* Размер выведен по ширине строки, а не «на глаз»: в рефе «Предлагаем»
     занимает ~225px при экране 390 — это ~30px кегля. Интерлиньяж по
     рефу заметно свободнее десктопного (там 1.05), строки не слипаются. */
  .hero__title {
    font-size: clamp(24px, 7.6vw, 32px);
    line-height: 1.28;
    padding-bottom: 10px;
  }

  /* По рефу подзаголовок заметно мельче и плотнее заголовка (контраст
     примерно 1:3) и стоит узкой колонкой в левой половине — справа от
     него идёт скульптура. При 17px/27px и 76% ширины он забивал собой
     весь блок и лез под картинку.
     Селектор на класс длиннее обычного: ниже по файлу, в блоке ≤520px,
     стоит общий `.lead {font-size:17px}` — с равной специфичностью он
     выигрывал бы просто потому, что идёт позже. */
  /* 57% — не «на глаз»: при этой ширине строки ложатся в четыре ровные
     строки без висячего «рынка.» в последней. Точный перенос рефа
     («продукты» / «и медиа…») нашей гарнитурой недостижим ни при какой
     ширине — там строка 1 требует <185px, а строка 2 не влезает уже в
     200px; судя по метрикам, реф снят на подстановочном шрифте. */
  .hero .hero__lead {
    max-width: 57%;
    font-size: 13px;
    line-height: 1.38;
    padding-bottom: 14px;
  }

  /* надзаголовок по рефу тоже компактнее общего .eyebrow */
  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  /* align-self:end — сам ряд растянут на 1fr, кнопки прижимаем к его низу */
  .hero__actions { flex-wrap: wrap; margin-top: 28px; align-self: end; }
  .hero__actions .btn { width: 100%; }
  .btn__arrow { display: block; }

  /* Раньше картинка была отдельным центрированным блоком между заголовком
     и подзаголовком (было 320px, потом сжали до 132px). Теперь — крупное
     пятно, которое стоит поверх правой части блока и уходит за край
     экрана; z-index держит её под текстом, --hero-row-ctx ниже создаёт
     локальный стек, чтобы -1 не утёк за пределы hero. */
  .hero__figure {
    /* grid-area:figure из десктопного правила ссылался на область, которой
       нет в мобильной сетке выше, — браузер тогда создавал под неё
       фантомную колонку и разъезжалась вся раскладка. auto снимает это. */
    grid-area: auto;
    position: absolute;
    /* 128px было угадано под одну ширину экрана: на других ширинах
       заголовок/подзаголовок переносятся по-другому, и с фиксированным
       top картинка либо наезжала на кнопки, либо повисала в пустоте.
       script.js меряет реальную высоту текста и подставляет top и
       max-height инлайном; это значение — просто фолбэк до JS/для no-JS. */
    /* По рефу скульптура живёт в правой половине экрана и заметно уходит
       за правый край; текст стоит слева от неё, а не под ней. Значения
       ниже — фолбэк для no-JS, точные величины считает script.js от
       clientWidth (vw и window.innerWidth расходятся при полосе
       прокрутки, из-за чего расчёт уезжал). */
    top: 128px;
    right: -18vw;
    width: 60vw;
    z-index: -1;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  /* на мобильном нумерация и вертикальные подписи секций не показываются —
     это чисто десктопный приём, на узком экране он только съедает высоту */
  .hero__row,
  .about,
  .structure,
  .portfolio,
  .audience,
  .goals,
  .cta,
  .contact { flex-direction: column; }

  /* локальный стек для .hero__figure — её z-index:-1 не должен утечь
     за пределы hero и спрятаться за фон страницы.
     overflow-x:clip обрезает вылет скульптуры по краю экрана: без него
     страница получала горизонтальную прокрутку. Обрезаем именно здесь,
     а не на .page — там clip ломает sticky-шапку (см. комментарий у
     .page выше). clip, а не hidden: hidden по одной оси заставил бы
     браузер сделать вторую auto и обрезал бы hero по высоте. */
  .hero__row {
    position: relative;
    z-index: 0;
    overflow-x: clip;
    overflow-y: visible;
  }

  .spine,
  .rail { display: none; }

  .manifest { padding-inline: var(--gutter); }
  .block--dark { padding: 28px 24px 36px; }

  /* .hero__body сюда не входит — у него своя, более тесная раскладка выше:
     секции ниже по странице просторные, а hero должен уместиться в экран */
  .about__body,
  .structure__body,
  .portfolio__body,
  .audience__body,
  .goals__body,
  .contact__body,
  .cta__inner { padding: 32px var(--gutter) 64px; gap: 32px; }

  /* три факта в одну центрированную строку — и компактнее, и влезает
     в первый экран вместе с hero */
  .facts { flex-direction: column; }
  .facts__spacer { display: none; }
  .fact {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: auto;
    padding: 18px 6px;
    text-align: center;
  }
  .fact + .fact { border-left: 1px solid var(--line); }
  .fact__num { font-size: 26px; line-height: 26px; }
  .fact .eyebrow { font-size: 9px; letter-spacing: 1.1px; line-height: 1.4; }

  /* логотип направления не влезал под срезанный угол */
  .dir { --notch: 36px; }
  .dir__brand { gap: 12px; }
  .dir__cube { width: 56px; height: 66px; }
  .dir__mark .word { width: 104px; }
  .dir__mark .suffix { height: 10px; }

  /* заголовок → фото → текст → кнопки */
  .cta__inner {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "photo" "body";
    row-gap: 32px;
    min-height: 0;
  }
  .cta__head, .cta__body { align-self: auto; }
  .cta__photo { width: min(300px, 76%); justify-self: center; }

  /* короткая строка вместо длинного десктопного надзаголовка */
  .hero__eyebrow-full { display: none; }
  .hero__eyebrow-short { display: block; }

  /* на мобильном граница шапки видна сразу, а не только после is-stuck —
     на узком экране это первое, что отделяет хедер от контента */
  .nav { border-bottom-color: var(--line); }

  /* схема ID по центру колонки */
  .single-id { justify-content: center; }
  .single-id__diagram { margin-inline: auto; }

  .dir { height: auto; flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px 24px 40px; }
  .dir__brand { flex: none; padding-left: 0; }
  .dir__rule { width: 100%; height: 1px; }
  .dir__text { padding: 0; }

  .about__cols { grid-template-columns: 1fr; gap: 28px; }
  .tabs__list { flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tab { border-bottom: 0; padding: 12px 16px 14px 14px; grid-template-columns: auto; gap: 4px; }
  .tab__no { display: none; }
  .tab::before { top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 2px; transform: scaleX(0); }
  .tab[aria-selected="true"]::before { transform: scaleX(1); }

  .core { padding: 32px 24px; }
  .core__title { font-size: 26px; line-height: 34px; }
  .core__lead, .core__quote { font-size: 16px; line-height: 25px; }

  .apps { grid-template-columns: 1fr; }
  .segments { grid-template-columns: 1fr; }
  .segment { min-height: 0; }

  .offer {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 22px 16px;
  }
  .offer__no { grid-row: span 2; font-size: 20px; }
  .level__sum { padding-left: 18px; }

  .single-id { flex-direction: column; align-items: flex-start; }
  .single-id__diagram { width: min(260px, 100%); }

  .horizons { grid-template-columns: 1fr; gap: 40px; }


  .form { padding: 28px 24px; }
  .form__row { grid-template-columns: 1fr; gap: 20px; }

  .footer { padding: 56px 0 32px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (max-width: 520px) {
  .lead { font-size: 17px; line-height: 27px; }

  .hero__actions .btn,
  .cta__actions .btn { width: 100%; }
  .hero__actions .btn__shape,
  .cta__actions .btn__shape { width: 100%; }

  /* цепочка продуктов вертикально: в строку она рвётся с висящими стрелками.
     Поворот через rotate, а не transform — иначе его сотрёт анимация появления */
  .flow { flex-direction: column; align-items: stretch; gap: 10px; }
  .flow__node { text-align: center; }
  .flow__arrow { rotate: 90deg; align-self: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .contacts li { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Длинные подписи в разрядку и капслоком («Запросить инвестиционные
     материалы», «Запросить презентацию продуктов») не влезают в узкий
     экран, а у .btn стоит white-space:nowrap — кнопка распирала сетку
     секции шире вьюпорта, и вся страница получала горизонтальную
     прокрутку. Здесь разрешаем перенос всем моно-кнопкам. */
  .btn--mono {
    white-space: normal;
    /* у .btn--mono стоит line-height:11px при кегле 11px — интерлиньяж
       ровно 1.0. Это было безопасно, пока nowrap держал одну строку;
       с переносом две строки слипались бы вплотную. */
    line-height: 1.45;
  }
  .btn--mono .btn__shape { padding: 14px 18px; }
}

/* ===================================================================== */
/* Служебные страницы, согласие, ловушка для ботов                       */
/* ===================================================================== */

/* Поле-ловушка: снято с потока и с экранных читалок, но остаётся в DOM,
   чтобы автозаполнялки ботов его нашли. display:none часть ботов пропускает. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--gold); }

/* --- текстовая страница (политика) ------------------------------------ */

.doc {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(48px, 9vh, 104px) var(--gutter) clamp(64px, 12vh, 128px);
}

.doc > * { max-width: 760px; }

.doc__title {
  margin: 20px 0 12px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.doc__meta {
  margin-bottom: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.doc h2 {
  margin: 44px 0 14px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.doc p,
.doc li { font-size: 16px; line-height: 27px; color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 12px 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--gold); }

/* --- 404 --------------------------------------------------------------- */

.err {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(64px, 16vh, 180px) var(--gutter) clamp(80px, 18vh, 200px);
}

.err__code {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(72px, 14vw, 160px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--line);
}

.err__title {
  margin: 24px 0 16px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.err__text { max-width: 520px; font-size: 17px; line-height: 27px; color: var(--muted); }
.err__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

/* ===================================================================== */
/* Модальная форма заявки                                                */
/* ===================================================================== */

.modal {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(18, 16, 14, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal__panel {
  --notch: 40px;
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.modal__close:hover { color: var(--ink); transform: rotate(90deg); }

.modal__title {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.modal__lead { margin-bottom: 28px; font-size: 15px; line-height: 24px; color: var(--muted); }

/* внутри окна подложку и срез даёт панель — форме они не нужны */
.form--modal {
  padding: 0;
  background: none;
  clip-path: none;
  gap: 20px;
}

/* появление окна: без резкого щелчка, но и без задержки */
.modal[open] { animation: modal-in 0.28s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.28s var(--ease); }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* пока окно открыто, страница под ним не прокручивается */
body:has(.modal[open]) { overflow: hidden; }

@media (max-width: 640px) {
  .modal { width: calc(100vw - 20px); }
  .modal__panel { --notch: 28px; }
  .form--modal .form__row { grid-template-columns: 1fr; gap: 20px; }
}
