/* ═══════════════════════════════════════════════════════════════
   Шёлк · франшиза — токен-система (в фирменном стиле sushi-na-severe.ru)
   Чёрный #171717 + фирменный красный + золото промо-цифр.
   Красная нить — сигнатура: нить диалога AI и «красной нитью» честность.
   Золото — только деньги и ключевые цифры; серый — «обещание рынка».
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #171717;
  --bg-2: #1F1F1F;
  --line: rgba(255, 255, 255, 0.10);
  --paper: #F6F1E7;
  --paper-2: #FCF9F1;
  --paper-line: rgba(28, 23, 32, 0.14);
  --red: #F44336;
  --red-deep: #C62828;
  --red-paper: #B03A30;      /* красный на бумаге (печать, акценты) */
  --red-faint: rgba(244, 67, 54, 0.55);
  --gold: #E9B949;
  --gold-deep: #8B6B2E;
  --dim: #8F8F8F;            /* «обещание рынка» — блёклый рекламный шум */

  --text: #D6D6D6;
  --muted: #9E9E9E;
  --head: #FFFFFF;
  --text-paper: #2B241E;
  --muted-paper: #6E6659;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --radius: 8px;
  --thread-x: clamp(22px, 5vw, 64px);
  --wrap-max: 1060px;
  --section-py: clamp(84px, 13vh, 150px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

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

::selection { background: var(--red); color: #fff; }

/* ── Layout ── */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: calc(var(--thread-x) + 36px) clamp(20px, 5vw, 64px);
}

main { position: relative; }

/* Красная нить — вертикальная, по левому краю */
main::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: var(--thread-x);
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0,
    var(--red-faint) 40px,
    var(--red-faint) calc(100% - 40px),
    transparent 100%);
  pointer-events: none;
  z-index: 2;
}

section { position: relative; padding-block: var(--section-py); }

/* Узел нити у якоря секции */
.node {
  position: absolute;
  left: calc(var(--thread-x) - 4px);
  top: calc(var(--section-py) + 0.4em);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--red);
  z-index: 3;
  transition: background-color 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}
.on-paper .node { background: var(--paper); }
.threaded.in-view .node {
  background: var(--red);
  transform: scale(1.35);
  animation: node-pulse 2.4s ease-out 1;
}
@keyframes node-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(244, 67, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

/* ── Типографика ── */
.eyebrow {
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}
.on-paper .eyebrow { color: var(--red-paper); }

h1 {
  font: 600 clamp(2.7rem, 6vw, 4.7rem)/1.1 var(--font-display);
  letter-spacing: 0.01em;
  color: var(--head);
  max-width: 16em;
}
h1 em {
  font-style: normal;
  color: var(--red);
  border-bottom: 3px solid var(--red-faint);
}

.section-title {
  font: 600 clamp(1.8rem, 3.4vw, 2.7rem)/1.15 var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--head);
  max-width: 18em;
  margin-bottom: 20px;
}
.on-paper .section-title { color: var(--text-paper); }

.section-lead {
  max-width: 620px;
  font-size: 1.06rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.on-paper .section-lead { color: var(--muted-paper); }

.num { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.strong { font-weight: 600; color: var(--gold); }
.on-paper .strong { color: var(--gold-deep); }

.link-quiet {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--red-faint);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.link-quiet:hover { color: var(--red); }

/* ── Кнопки ── */
.btn {
  display: inline-block;
  font: 500 15px/1 var(--font-body);
  letter-spacing: 0.02em;
  padding: 16px 30px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.btn-gold { background: var(--red); color: #fff; }
.btn-gold:hover { background: var(--red-deep); color: #fff; }
.btn-gold:active { transform: translateY(1px); }
.btn-sm { padding: 11px 20px; font-size: 13.5px; }
.btn-full { width: 100%; }

/* ── Шапка ── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 23, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head-inner {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding: 12px calc(var(--thread-x) + 36px) 12px;
  padding-right: clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--head);
  font: 600 1.3rem/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wordmark .logo { width: 42px; height: 42px; }
.wordmark-sub {
  font: 500 10.5px/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

/* ── Hero ── */
.hero { padding-block: clamp(90px, 16vh, 170px) clamp(40px, 7vh, 70px); }
.hero-sub {
  max-width: 560px;
  margin-top: 28px;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero-sub .num { color: var(--gold); font-weight: 500; }
.hero-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-tagline {
  margin-top: 34px;
  font: 500 0.92rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0.92;
}
.hero-tagline::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  vertical-align: middle;
  margin-right: 12px;
}

/* ── Фото-подложка секции (общий паттерн: фото + затемняющая вуаль) ── */
.has-photo { overflow: hidden; }
.has-photo > .wrap,
.has-photo > .site-foot-inner { position: relative; z-index: 1; }
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* базовая вуаль: тёмная сверху и снизу — стык секций без шва */
  background: linear-gradient(180deg,
    var(--bg) 0%, rgba(18, 14, 14, 0.86) 14%,
    rgba(18, 14, 14, 0.82) 86%, var(--bg) 100%);
}

/* Hero: фото на весь экран, текст слева */
.hero-with-photo {
  min-height: clamp(560px, 92vh, 920px);
  display: flex;
  align-items: center;
}
.hero .section-bg img { object-position: 32% 38%; }
.hero .section-bg::after {
  background:
    linear-gradient(90deg, rgba(12, 9, 9, 0.94) 0%, rgba(12, 9, 9, 0.82) 26%, rgba(12, 9, 9, 0.4) 52%, rgba(12, 9, 9, 0.08) 74%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 9, 9, 0.15) 16%, transparent 40%);
}

/* Доказательство: три колонки по всей ширине — нужна ровная плотная вуаль */
.proof .section-bg img { opacity: 0.55; }
.proof .section-bg::after {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(20, 16, 16, 0.72) 26%, rgba(20, 16, 16, 0.72) 74%, var(--bg) 100%),
    linear-gradient(90deg, rgba(20, 16, 16, 0.5) 0%, rgba(20, 16, 16, 0.32) 50%, rgba(20, 16, 16, 0.5) 100%);
}

/* Столпы: текст в левой половине, картинка «дышит» справа */
.pillars .section-bg img { object-position: 65% 45%; }
.pillars .section-bg::after {
  background:
    linear-gradient(90deg, rgba(14, 11, 11, 0.95) 0%, rgba(14, 11, 11, 0.93) 46%, rgba(14, 11, 11, 0.86) 62%, rgba(14, 11, 11, 0.5) 82%, rgba(14, 11, 11, 0.32) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
}

/* Пакет: сетка 3×2 по всей ширине — плотная ровная вуаль */
.package .section-bg img { opacity: 0.5; }
.package .section-bg::after {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(18, 14, 14, 0.8) 20%, rgba(18, 14, 14, 0.82) 80%, var(--bg) 100%);
}

/* Рынок: две колонки — вуаль ровная, чуть светлее сверху */
.market .section-bg img { opacity: 0.6; }
.market .section-bg::after {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(16, 13, 13, 0.66) 18%, rgba(16, 13, 13, 0.8) 55%, rgba(16, 13, 13, 0.86) 82%, var(--bg) 100%);
}

/* Заявка: форма слева, свет рассвета остаётся справа */
.apply .section-bg img { object-position: 62% 50%; }
.apply .section-bg::after {
  background:
    linear-gradient(90deg, rgba(14, 11, 11, 0.95) 0%, rgba(14, 11, 11, 0.93) 46%, rgba(14, 11, 11, 0.78) 62%, rgba(14, 11, 11, 0.5) 82%, rgba(14, 11, 11, 0.36) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, rgba(14, 11, 11, 0.6) 100%);
}

/* Подвал: только фактура, ссылки должны читаться безусловно */
.site-foot { position: relative; }
.site-foot .section-bg img { opacity: 0.5; }
.site-foot .section-bg::after {
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.8) 0%, rgba(23, 23, 23, 0.9) 100%);
}

/* ── Акцентное фото в светлых секциях ── */
.lead-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(26px, 4vw, 48px);
}
.lead-row-text { flex: 1 1 auto; min-width: 0; }
.lead-row-text > .section-lead:last-child,
.lead-row-text > .section-title:last-child { margin-bottom: 0; }
.section-accent {
  flex: 0 0 auto;
  width: clamp(230px, 31%, 330px);
  margin: 6px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  background: var(--paper-2);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.45);
}
.section-accent img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* В «Процессе» заголовок короткий — акцент делаем компактнее, чтобы не «повисала» пустота */
.process .section-accent { width: clamp(210px, 26%, 280px); }

/* ── Доказательство ── */
.proof { padding-block: clamp(40px, 7vh, 70px) var(--section-py); }
.proof .node { top: calc(clamp(40px, 7vh, 70px) + 0.4em); }
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
/* ── Пиктограммы (мелкие смысловые значки) ── */
.pictogram {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.pictogram-proof { display: block; color: var(--gold); opacity: 0.85; margin-bottom: 10px; }
.pictogram-bullet {
  position: absolute;
  left: 0; top: 0.15em;
  width: 13px; height: 13px;
  stroke-width: 2.2;
}
.market-promise .pictogram-bullet { color: var(--dim); }
.market-fact .pictogram-bullet { color: var(--gold); }
.package-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.package-item-head h3 { margin-bottom: 0; }
.package-item-head .pictogram { color: var(--red); width: 22px; height: 22px; }
.step-head { display: flex; align-items: center; justify-content: space-between; }
.step-head .pictogram { color: var(--red-paper); width: 20px; height: 20px; }

.proof-num {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}
.proof-label { font-size: 0.95rem; color: var(--muted); }
.proof-label a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red-faint);
  text-underline-offset: 3px;
}
.proof-label a:hover { color: var(--red); }

/* ── Столпы ── */
.pillar { max-width: 640px; margin-top: 56px; }
.pillar h2 {
  font: 500 clamp(1.5rem, 2.5vw, 2rem)/1.25 var(--font-display);
  letter-spacing: 0.02em;
  color: var(--head);
  margin-bottom: 16px;
}
.pillar p { color: var(--muted); }
.pillar p a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red-faint);
  text-underline-offset: 3px;
}
.pillar p a:hover { color: var(--red); }
.pillar-points { margin-top: 16px; display: grid; gap: 8px; }
.pillar-points li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.98rem;
}
.pillar-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 10px; height: 1px;
  background: var(--red);
}
.pillar-more { margin-top: 14px; }

/* ── Экономика: светлая секция + гроссбух ── */
.on-paper { background: var(--paper); color: var(--text-paper); }

.ledger {
  position: relative;
  max-width: 720px;
  margin-top: 44px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0 0.13 0 0 0 0.028 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper-2);
  border: 1px solid var(--paper-line);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.5);
  padding: clamp(22px, 4vw, 44px);
}
.ledger::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(28, 23, 32, 0.08);
  pointer-events: none;
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 600 11px/1.5 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-paper);
  border-bottom: 2px solid var(--text-paper);
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.ledger-table { width: 100%; border-collapse: collapse; }
.ledger-table th,
.ledger-table td {
  padding: 11px 0;
  border-bottom: 1px dashed rgba(28, 23, 32, 0.18);
  vertical-align: baseline;
}
.ledger-table th {
  text-align: left;
  font: 500 0.95rem/1.4 var(--font-body);
  color: var(--text-paper);
  padding-right: 16px;
}
.ledger-table td {
  text-align: right;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--text-paper);
}
.ledger-table td.pct {
  width: 5.5em;
  color: var(--muted-paper);
  font-size: 0.85rem;
}
.ledger-table tr.total th,
.ledger-table tr.total td {
  font-weight: 600;
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(28, 23, 32, 0.4);
  padding-block: 14px;
}
.ledger-table tr.total th { font-weight: 700; }
.ledger-table tr:last-child th,
.ledger-table tr:last-child td { border-bottom: none; }

/* Печать — как красная печать-логотип «Шёлк» */
.stamp {
  position: absolute;
  right: clamp(-6px, 1vw, 26px);
  bottom: -18px;
  transform: rotate(-4deg);
  font: 600 10.5px/1.5 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-paper);
  border: 2px solid var(--red-paper);
  border-radius: 4px;
  padding: 7px 12px;
  background: var(--paper-2);
  opacity: 0.85;
}

.honesty-note {
  max-width: 640px;
  margin-top: 46px;
  padding-left: 20px;
  border-left: 2px solid var(--red-paper);
  color: var(--muted-paper);
  font-size: 0.98rem;
}
.market .honesty-note,
.apply .honesty-note { border-color: var(--red); color: var(--muted); }

.invest {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.invest-item {
  background: var(--paper);
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.invest-label {
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-paper);
}
.invest-num { font-size: 1.35rem; font-weight: 600; color: var(--text-paper); }
.invest-key { background: var(--bg); box-shadow: inset 0 3px 0 var(--red); }
.invest-key .invest-label { color: var(--gold); }
.invest-key .invest-num { color: var(--gold); font-size: 1.55rem; }
.invest-foot { font-size: 0.8rem; color: var(--muted-paper); line-height: 1.5; }
.invest-key .invest-foot { color: var(--muted); }

/* ── Пакет ── */
.package-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 44px);
}
.package-item h3 {
  font: 500 1.02rem/1.3 var(--font-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0;
}
.package-item p { color: var(--muted); font-size: 0.97rem; }

/* Раскрывающееся «Подробнее» внутри карточки пакета */
.package-more { margin-top: 14px; }
.package-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}
.package-more > summary::-webkit-details-marker { display: none; }
.package-more > summary::after {
  content: '';
  flex: none;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.package-more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.package-more > summary:hover { color: var(--red); }
.package-more-body {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 11px;
}
.package-more-body p { font-size: 0.92rem; color: var(--muted); }
.package-more-body strong { color: var(--text); font-weight: 500; }

/* ── Продукт и кухня ── */
.photo-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
}
.photo-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  background: var(--paper-2);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.35);
}
.photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-grid-portrait .photo-card img { aspect-ratio: 3 / 4; }
.photo-card figcaption {
  padding: 12px 14px 14px;
  font-size: 0.83rem;
  color: var(--muted-paper);
}
.gallery-sub {
  margin-top: 64px;
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-paper);
}
/* ── Рынок и честность ── */
.market-contrast {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  max-width: 880px;
}
.market-col {
  border-top: 2px solid;
  padding-top: 20px;
}
.market-col h3 {
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.market-col ul { display: grid; gap: 12px; }
.market-col li {
  position: relative;
  padding-left: 24px;
  font-size: 0.97rem;
  color: var(--muted);
}
.market-col li a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red-faint);
  text-underline-offset: 3px;
}
.market-col li a:hover { color: var(--red); }
.market-promise { border-color: var(--dim); }
.market-promise h3 { color: var(--dim); }
.market-promise li { color: var(--dim); }
.market-fact { border-color: var(--gold); }
.market-fact h3 { color: var(--gold); }
.market-closing { max-width: 620px; margin-top: 40px; font-size: 1.05rem; }

/* ── Кому подходит ── */
.fit-thesis {
  font: 500 clamp(1.35rem, 2.4vw, 1.8rem)/1.35 var(--font-display);
  letter-spacing: 0.02em;
  max-width: 22em;
  margin-bottom: 18px;
}
.fit .honesty-note { margin-top: 34px; }

/* ── Процесс ── */
.process { padding-top: 0; }
.process .wrap { border-top: 1px solid var(--paper-line); padding-top: var(--section-py); }
.process .node { top: calc(var(--section-py) + 0.4em); }
.process-steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px clamp(24px, 3vw, 44px);
}
.process-steps li { position: relative; padding-top: 14px; }
.process-steps li::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--paper-line);
}
.step-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red-paper);
}
.process-steps h3 {
  font: 500 1.2rem/1.3 var(--font-display);
  letter-spacing: 0.02em;
  margin: 6px 0 6px;
}
.process-steps p { font-size: 0.92rem; color: var(--muted-paper); }

/* ── Форма ── */
.apply .section-lead { margin-bottom: 0; }
.lead-form {
  max-width: 480px;
  margin-top: 44px;
  display: grid;
  gap: 22px;
}
.field label,
.field legend {
  display: block;
  font: 600 12px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  padding: 13px 14px;
  transition: border-color 0.2s ease;
}
.field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  padding: 13px 14px;
  transition: border-color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239E9E9E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
}
.field input::placeholder { color: var(--muted); opacity: 0.6; }
.field-hint {
  margin-top: 7px;
  font-size: 0.82rem;
  color: var(--muted);
}
.field-radio { border: none; }
.field-radio .radio {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 26px;
  margin-bottom: 0;
  cursor: pointer;
  font: 400 0.98rem/1.4 var(--font-body);
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
}
.radio input {
  appearance: none;
  width: 17px; height: 17px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.radio input:checked {
  border-color: var(--red);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--red);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  appearance: none;
  flex: none;
  width: 16px; height: 16px;
  margin-top: 2px;
  border: 1.5px solid var(--muted);
  border-radius: 3px;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.consent input:checked {
  background: var(--red);
  border-color: var(--red);
}
.consent input:checked::before {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.consent a { color: var(--text); text-underline-offset: 3px; }
.form-status { min-height: 1.5em; font-size: 0.95rem; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: #FF7A6E; }

/* ── Подвал ── */
.site-foot { border-top: 1px solid var(--line); }
.site-foot-inner {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding: 44px calc(var(--thread-x) + 36px) 52px;
  padding-right: clamp(20px, 5vw, 64px);
  display: grid;
  gap: 16px;
}
.foot-brand { font-size: 0.95rem; color: var(--muted); }
.foot-tagline { font: 500 0.85rem/1 var(--font-mono); color: var(--gold); letter-spacing: 0.02em; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.88rem;
}
.foot-links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.foot-links a:hover { color: var(--red); text-decoration-color: var(--red-faint); }
.foot-legal { font: 400 0.78rem/1.6 var(--font-mono); color: var(--muted); opacity: 0.75; }

/* ── Появление при скролле ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Мобильная версия ── */
@media (max-width: 900px) {
  .package-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .invest { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .lead-row { flex-direction: column; }
  .section-accent,
  .process .section-accent { width: 100%; max-width: 460px; margin-top: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 22px; }
  .hero-with-photo { min-height: 0; }
  .hero .section-bg img { object-position: 38% 30%; }
  .hero .section-bg::after {
    background:
      linear-gradient(180deg, rgba(12, 9, 9, 0.55) 0%, rgba(12, 9, 9, 0.72) 28%, rgba(12, 9, 9, 0.88) 60%, var(--bg) 100%);
  }

  /* На мобильном текст идёт во всю ширину — боковые вуали заменяем вертикальными */
  .pillars .section-bg img,
  .apply .section-bg img { object-position: center; }
  .proof .section-bg img,
  .package .section-bg img,
  .market .section-bg img { opacity: 0.42; }
  .pillars .section-bg::after,
  .package .section-bg::after,
  .market .section-bg::after,
  .apply .section-bg::after,
  .proof .section-bg::after {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(16, 13, 13, 0.86) 12%, rgba(16, 13, 13, 0.88) 88%, var(--bg) 100%);
  }
  .site-head-inner { padding: 10px 22px; }
  .site-foot-inner { padding: 36px 22px 44px; }
  .wordmark .logo { width: 36px; height: 36px; }

  /* Нить: на мобильном — горизонтальная, через всю ширину у якоря секции */
  main::before { display: none; }
  .node {
    left: 0; right: 0; top: 0;
    width: auto; height: 1px;
    border: none;
    border-radius: 0;
    background: linear-gradient(90deg, transparent, var(--red-faint) 18%, var(--red-faint) 82%, transparent);
    transition: none;
  }
  .node::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 7px; height: 7px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--red);
    opacity: 0.5;
    transition: opacity 0.5s ease, box-shadow 0.5s ease;
  }
  .threaded.in-view .node { transform: none; animation: none; background: linear-gradient(90deg, transparent, var(--red-faint) 18%, var(--red-faint) 82%, transparent); }
  .threaded.in-view .node::after {
    opacity: 1;
    animation: node-pulse 2.4s ease-out 1;
  }
  .hero .node { display: none; }

  .proof-row { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .package-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-sub { margin-top: 48px; }
  .market-contrast { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 26px; }
  .invest { grid-template-columns: 1fr; }
  .hero-cta { gap: 20px; }
  .btn-gold:not(.btn-sm) { width: 100%; text-align: center; }
  .link-quiet { display: inline-block; }
  .ledger { margin-inline: -6px; }
  .ledger-table th { font-size: 0.88rem; }
  .ledger-table td { font-size: 0.88rem; }
  .ledger-table td.pct { display: none; }
  .stamp { right: 4px; bottom: -16px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .node, .node::after { animation: none !important; transition: none; }
  .btn, .link-quiet, .foot-links a { transition: none; }
}
