/* ============================================================
   ИИ-Упряжка · Депо. Лендинг-демо на артефактах мира.
   Два слоя: плакат (первый экран и акцент) и чертёж (весь остальной лист).
   Токены из assets/tokens.css, сетка 40 px, линия 2 px, поля 6 vw.
   ============================================================ */

:root {
  --paper: #edeae1;
  --paper-cool: #e9ebe8;
  --cream: #f4efe4;
  --ink: #141414;
  --line: #23282b;
  --line-soft: rgba(35, 40, 43, 0.28);
  --line-faint: rgba(35, 40, 43, 0.11);

  --red: #c8231f;
  --red-deep: #9e1a17;
  --marker: #d2691e;

  --display: "Unbounded", system-ui, sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
  --mono: "PT Mono", ui-monospace, monospace;

  --pad: clamp(20px, 6vw, 96px);
  --sec: clamp(56px, 7vw, 112px);
  --d1: clamp(2rem, 4vw, 3.5rem);
  --d2: clamp(1.5rem, 3vw, 2.5rem);
  --lead: clamp(1rem, 1.15vw, 1.1875rem);
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, figure, figcaption, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
section { scroll-margin-top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible,
.site-head :focus-visible,
.booth :focus-visible,
.site-foot :focus-visible { outline-color: var(--cream); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- типографика --- */
.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.98;
  word-spacing: 0.06em;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.d2 { font-size: var(--d2); }
.mono { font-family: var(--mono); }

/* --- кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 clamp(18px, 2vw, 28px);
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--red);
  min-height: 56px;
  font-size: clamp(14px, 1.15vw, 16px);
  padding: 0 clamp(22px, 2.6vw, 34px);
}
.btn-cream:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-ghost {
  background: transparent;
  border-color: rgba(244, 239, 228, 0.7);
  color: var(--cream);
  font-size: 12px;
  padding: 0 clamp(12px, 1.4vw, 18px);
}
.btn-ghost:hover { background: var(--cream); border-color: var(--cream); color: var(--red); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  min-height: 52px;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-red {
  background: var(--red);
  color: var(--cream);
  min-height: 56px;
  font-size: clamp(14px, 1.15vw, 16px);
}
.btn-red:hover { background: var(--red-deep); }
.btn-paper {
  background: var(--cream);
  color: var(--ink);
  min-height: 52px;
  padding: 0 22px;
}
.btn-paper:hover { background: var(--red); color: var(--cream); }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-head { background: var(--red); color: var(--cream); }
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px clamp(16px, 2.4vw, 40px);
  padding: 12px var(--pad);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
}
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(13px, 1.05vw, 15px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(10px, 1.6vw, 26px); }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ============================================================
   ПЕРВЫЙ ЭКРАН: красный плакат, артефакты в композиции
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  align-items: stretch;
  gap: clamp(12px, 2.4vw, 40px);
  padding-inline: var(--pad);
  min-height: clamp(430px, 38vw, 545px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 30px);
  min-width: 0;
  padding-block: clamp(26px, 4vw, 54px) clamp(22px, 3vw, 44px);
}
.hero-title { font-size: var(--d1); }
.hero-sub {
  font-size: clamp(1rem, 1.2vw, 1.1875rem);
  line-height: 1.4;
  max-width: 44ch;
}
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-note {
  font-family: var(--mono);
  font-size: clamp(11px, 0.95vw, 12.5px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-width: 46ch;
}

.hero-art { position: relative; min-height: 100%; }

.lantern {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(56px, 6vw, 82px);
}
.lantern__cord { display: block; width: 2px; height: clamp(26px, 3vw, 44px); background: var(--cream); }
.lantern__img { width: 100%; height: auto; }

/* --- схема упряжки: рукоять, тросы, агенты (чертёж поверх плаката) --- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.rig { display: block; width: 100%; height: auto; overflow: visible; }
.rig__line,
.rig__lines { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rig__dim { fill: none; stroke: var(--cream); stroke-width: 1; stroke-linecap: round; opacity: 0.6; }
.rig__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  fill: var(--cream);
}
/* продолжение тросов на портрете: линия чертежа и оранжевый сердечник, как в рисунке */
.rig--portrait { max-width: 470px; margin-left: auto; }
.rig--portrait img { display: block; width: 100%; height: auto; }
.rig__tail { display: block; width: 100%; height: auto; margin-top: -2px; }
.rig__rope { fill: none; stroke: var(--line); stroke-width: 2.4; stroke-linecap: round; }
.rig__core { fill: none; stroke: #be5300; stroke-width: 0.9; stroke-linecap: round; }

/* --- карточка пропуска на стойке (в блоке формы) --- */
.pass-card {
  width: clamp(150px, 15vw, 196px);
  margin-top: clamp(20px, 2.6vw, 30px);
  padding: 10px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
}
.pass-card__img { width: 100%; height: auto; }
.pass-card__cap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}
.pass-card__k {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.pass-card__v { font-family: var(--mono); font-size: 11.5px; line-height: 1.4; }

/* --- опознавательная полоса фактов --- */
.facts { background: var(--ink); color: var(--cream); }
.facts__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 13px var(--pad);
  font-family: var(--mono);
  font-size: clamp(11px, 0.95vw, 12.5px);
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.facts__side { color: rgba(244, 239, 228, 0.72); }

/* ============================================================
   ОБЩИЕ СЕКЦИИ
   ============================================================ */
.sec { padding: var(--sec) var(--pad); }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(18px, 3vw, 56px);
  margin-bottom: clamp(30px, 4.2vw, 60px);
}
.sec-head__copy { min-width: 0; }
.sec-lead {
  font-size: var(--lead);
  line-height: 1.45;
  max-width: 56ch;
  margin-top: clamp(12px, 1.6vw, 18px);
}

/* ============================================================
   ТРИ ЗАЛА
   ============================================================ */
.halls .sec-head { grid-template-columns: minmax(0, 1.18fr) auto; align-items: end; }

.signboard {
  position: relative;
  width: clamp(220px, 27vw, 400px);
}
.signboard img { width: 100%; height: auto; }
.signboard__text {
  position: absolute;
  left: 23.7%;
  top: 51.7%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64.6%;
  height: 34.1%;
  font-size: calc(clamp(220px, 27vw, 400px) * 0.105);
  line-height: 0.9;
  color: var(--ink);
  letter-spacing: -0.035em;
}

.hall-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.8vw, 44px);
}
.hall-grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.hall { display: flex; flex-direction: column; min-width: 0; }
.hall__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.hall__cords { position: relative; display: block; height: clamp(28px, 3.4vw, 48px); }
.hall__cords i { position: absolute; top: 0; width: 4px; height: 100%; background: var(--line); }
.hall__cords i:first-child { left: 27%; }
.hall__cords i:last-child { left: 70%; }

.hall-sign { background: var(--ink); padding: 8px 8px 0; }
.hall-sign__top {
  padding: 4px 4px 9px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--cream);
}
.hall-sign__plate {
  padding: clamp(12px, 1.2vw, 16px) 12px clamp(14px, 1.4vw, 18px);
  border: 2px solid var(--red);
  background: var(--cream);
}
.hall-sign__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.hall__body { padding-top: 18px; }
.hall__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--line);
}
.hall__desc { margin-top: 12px; font-size: 16px; line-height: 1.45; }
.hall__out { margin-top: auto; padding-top: 12px; font-size: 15px; line-height: 1.45; color: var(--line); }
.hall__out-k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.honest {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 8px clamp(20px, 3vw, 48px);
  margin-top: clamp(32px, 4.5vw, 64px);
  padding-top: 18px;
  border-top: 2px solid var(--line);
}
.honest__label { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: 0.04em; }
.honest__text { font-size: 15.5px; line-height: 1.55; max-width: 82ch; }

/* ============================================================
   КАРТА ДЕПО: чертёж на клетчатой бумаге
   ============================================================ */
.map-sec {
  background-color: var(--paper-cool);
  background-image:
    repeating-linear-gradient(to right, var(--line-faint) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, var(--line-faint) 0 1px, transparent 1px 40px);
}
.map-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.72fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
}
.map-col { min-width: 0; }
.map-sheet { position: relative; }
.map-sheet__art { width: 100%; height: auto; }
.map-node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--red);
}
.map-lab {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  font-family: var(--mono);
  font-size: clamp(10.5px, 0.85vw, 12px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ink);
}
.map-lab--closed {
  padding: 2px 6px;
  border: 1px dashed rgba(35, 40, 43, 0.55);
  background: var(--paper-cool);
  color: rgba(35, 40, 43, 0.75);
}

.map-list { display: none; }

.map-side { min-width: 0; }
.legend {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}
.legend__row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.45;
}
.legend__mark {
  display: block;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid var(--line);
  border-radius: 50%;
}
.legend__mark--now { border-color: var(--red); background: var(--red); }
.legend__mark--closed { border-style: dashed; }
.map-note {
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--line);
}

/* ============================================================
   КАК ЭТО РАБОТАЕТ: маршрут из четырёх станций
   ============================================================ */
.steps-sec { background: var(--cream); }
.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}
.route::before {
  content: "";
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}
.step { position: relative; min-width: 0; padding-top: 72px; }
.step__num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--mono);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.step__dot {
  position: absolute;
  top: 38px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--line);
}
.step__title {
  margin: 0 0 10px;
  font-family: var(--text);
  font-weight: 600;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.step__text { font-size: 15.5px; line-height: 1.5; color: var(--line); max-width: 34ch; }
.route-cta { margin-top: clamp(34px, 4.5vw, 58px); }

/* ============================================================
   ЖИВОЙ ИНСТРУМЕНТ: настоящие скриншоты Harness в чертёжной рамке
   ============================================================ */
.harness {
  background-color: var(--paper-cool);
  background-image:
    repeating-linear-gradient(to right, var(--line-faint) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, var(--line-faint) 0 1px, transparent 1px 40px);
}
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.2vw, 46px) clamp(20px, 2.6vw, 40px);
}
.shot { margin: 0; min-width: 0; }
.shot--wide { grid-column: 1 / -1; }
.shot__cap {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--line);
}
.shot__fig { color: var(--ink); }
.shot__frame { position: relative; border: 2px solid var(--ink); background: var(--cream); }
.shot__frame::before,
.shot__frame::after { content: ""; position: absolute; width: 13px; height: 13px; border: 2px solid var(--ink); }
.shot__frame::before { left: -9px; top: -9px; border-right: 0; border-bottom: 0; }
.shot__frame::after { right: -9px; bottom: -9px; border-left: 0; border-top: 0; }
.shot__frame img { display: block; width: 100%; height: auto; }

/* выноска: номер в кружке на короткой линейке, расшифровка под кадром */
.shot__mark {
  position: absolute;
  left: calc(var(--x) - 10.5px);
  top: var(--y);
  z-index: 2;
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}
.shot__mark::before {
  content: attr(data-n);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
}
.shot__mark::after { content: ""; width: 30px; height: 1px; background: var(--ink); }
.shot__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--line);
}
.shot__legend b { font-weight: 400; color: var(--ink); }
.shot--dark .shot__frame { background: var(--ink); }
.shot--dark .shot__mark::before { border-color: var(--cream); background: var(--ink); color: var(--cream); }
.shot--dark .shot__mark::after { background: var(--cream); }
.shot--dark .shot__legend b { color: var(--ink); }

.shots__note {
  align-self: start;
  padding-top: 12px;
  border-top: 2px solid var(--line);
}
.shots__note-k {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--line);
}
.shots__note-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
}
.shots__note-list li { padding-left: 16px; position: relative; }
.shots__note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 1px;
  background: var(--line);
}
.shots__note-v {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--line);
}

.harness-note {
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--line);
}

/* ============================================================
   КТО ВЕДЁТ
   ============================================================ */
.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}
.author-copy { min-width: 0; }
.author-lead {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-size: clamp(1.0625rem, 1.35vw, 1.3125rem);
  line-height: 1.45;
  max-width: 46ch;
}
.author-facts {
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: 14px;
  border-top: 2px solid var(--line);
  font-family: var(--mono);
  font-size: clamp(11.5px, 1vw, 13px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.author-link { margin-top: 10px; font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.author-link a { text-decoration: underline; text-underline-offset: 4px; }
.author-art img { width: 100%; max-width: 470px; height: auto; margin-left: auto; }

/* ============================================================
   ПРОПУСК: форма на чёрной плашке
   ============================================================ */
.booth-sec { background: var(--cream); padding-top: clamp(40px, 5.5vw, 88px); }
.booth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(26px, 3.6vw, 48px);
  background: var(--ink);
  color: var(--cream);
}
.booth__copy { min-width: 0; }
.booth__copy h2 { color: var(--cream); }
.booth__lead {
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.5;
  max-width: 38ch;
  color: rgba(244, 239, 228, 0.9);
}
.booth__tg {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(244, 239, 228, 0.8);
}
.booth__tg a { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }

.booth__form { min-width: 0; }
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.chooser { padding: 0; border: 0; }
.chooser__legend {
  padding: 0;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(244, 239, 228, 0.85);
}
.chooser__row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice__box {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 clamp(16px, 1.8vw, 24px);
  border: 2px solid rgba(244, 239, 228, 0.5);
  color: var(--cream);
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.choice input:checked + .choice__box { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--cream); outline-offset: 3px; }

.field__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(244, 239, 228, 0.85);
}
.field__input {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid var(--cream);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.4;
}
.field__input::placeholder { color: rgba(20, 20, 20, 0.45); }
.field__input:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.field__input[aria-invalid="true"] { border-color: #ffb4b0; }
.field__error { margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: #ffb4b0; }
.lead-form .btn-red { width: 100%; }
.form-demo {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(244, 239, 228, 0.62);
}

.form-done { padding: clamp(20px, 2.6vw, 28px); border: 2px solid var(--cream); }
.form-done:focus { outline: none; }
.form-done__k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.7);
}
.form-done__title {
  margin: 10px 0 12px;
  font-family: var(--text);
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.2;
}
.form-done__text { font-size: 15px; line-height: 1.5; color: rgba(244, 239, 228, 0.9); }
.form-done__btns { margin-top: 18px; }
.form-done__url { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: rgba(244, 239, 228, 0.7); }

.booth-note {
  margin-top: clamp(20px, 2.6vw, 28px);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--line);
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.site-foot {
  padding: clamp(40px, 5.5vw, 72px) var(--pad) clamp(26px, 3.4vw, 44px);
  background: var(--ink);
  color: var(--cream);
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  gap: clamp(24px, 4vw, 72px);
}
.foot-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(13px, 1.05vw, 15px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.foot-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  max-width: 40ch;
  color: rgba(244, 239, 228, 0.85);
}
.foot-links { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-dict { min-width: 0; }
.foot-dict__k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 228, 0.6);
}
.foot-dict__v {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: clamp(12px, 1.05vw, 13.5px);
  line-height: 1.9;
  max-width: 44ch;
}
.foot-mark {
  margin-top: clamp(36px, 6vw, 76px);
  padding-top: clamp(18px, 2.6vw, 30px);
  border-top: 2px solid rgba(244, 239, 228, 0.3);
  font-size: min(9rem, calc((100vw - 2 * var(--pad)) / 8.85));
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
  overflow: hidden;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(16px, 2.4vw, 26px);
  padding-top: 16px;
  border-top: 1px solid rgba(244, 239, 228, 0.22);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(244, 239, 228, 0.75);
}

/* ============================================================
   ПЛАНШЕТ
   ============================================================ */
@media (max-width: 1100px) {
  .map-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); }
  .booth { gap: 28px; }
}

/* ============================================================
   МОБИЛЬНЫЙ И УЗКИЕ ЭКРАНЫ
   ============================================================ */
@media (max-width: 880px) {
  :root { --pad: 20px; --sec: 48px; }

  .head-row { flex-wrap: nowrap; padding: 10px 20px; gap: 0 6px; }
  .nav { display: none; }
  .head-row .btn-ghost { font-size: 10.5px; padding: 0 8px; min-height: 44px; white-space: nowrap; }
  .brand { min-height: 40px; }
  .brand__name { font-size: 12px; letter-spacing: -0.03em; }
  .brand__sub { font-size: 10px; }
  .btn { white-space: nowrap; }

  /* первый экран в одну колонку */
  .hero-inner { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-inline: 20px; }
  .hero-copy { gap: 16px; padding: 24px 0 12px; }
  /* кегль заголовков на телефоне считается по самому длинному слову, переносы внутри слов запрещены */
  .hero-title { font-size: min(calc((100vw - 40px) / 12.46), 34px); }
  .d2 { font-size: min(calc((100vw - 40px) / 7.74), 30px); }
  .hero-sub { font-size: 15px; line-height: 1.4; }
  .hero-art { padding-top: 14px; }
  .rig { max-width: 420px; margin-inline: auto; }
  .lantern { right: 0; left: auto; width: 44px; }
  .lantern__cord { height: 10px; }
  .pass-card { width: 158px; padding: 8px; }
  .pass-card__cap { margin-top: 6px; padding-top: 6px; gap: 4px; }
  .pass-card__k { font-size: 10.5px; letter-spacing: 0.05em; }
  .pass-card__v { font-size: 10.5px; line-height: 1.35; }

  .facts__row { padding: 11px 20px; }
  .facts__side { display: none; }

  .sec { padding: var(--sec) 20px; }
  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 22px; margin-bottom: 30px; }
  .sec-lead { margin-top: 12px; }

  /* залы: подряд, без общей балки и тросов */
  .halls .sec-head { grid-template-columns: 1fr; }
  .signboard { width: 236px; justify-self: end; }
  .hall-grid { grid-template-columns: 1fr; gap: 0; }
  .hall-grid::before { display: none; }
  .hall { padding: 22px 0; border-top: 1px solid var(--line-soft); }
  .hall:first-child { padding-top: 20px; border-top: 2px solid var(--line); }
  .hall__cords { display: none; }
  .hall-sign { display: inline-block; padding: 7px 7px 0; }
  .hall-sign__top { padding: 3px 4px 7px; }
  .hall-sign__plate { padding: 12px 14px 14px; }
  .hall-sign__name { font-size: 15px; }
  .hall__body { padding-top: 14px; }
  .hall__meta { border-bottom: 0; padding-bottom: 0; }
  .hall__desc { margin-top: 10px; }
  .hall__out { padding-top: 10px; }
  .honest { grid-template-columns: 1fr; gap: 6px; margin-top: 28px; }

  /* карта: лист как основа, узлы списком с линией маршрута */
  .map-body { grid-template-columns: 1fr; gap: 26px; }
  .map-lab { display: none; }
  .map-list { display: grid; position: relative; padding-left: 26px; }
  .map-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--line);
  }
  .map-item {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .map-item:first-child { border-top: 2px solid var(--line); }
  .map-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 15px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--paper-cool);
  }
  .map-item.is-now::before { background: var(--red); border-color: var(--red); }
  .map-item.is-closed::before { border-style: dashed; }
  .map-item__k { font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: 0.03em; color: var(--line); }
  .map-item__n { font-size: 16px; font-weight: 600; line-height: 1.25; }
  .map-item.is-closed .map-item__n { color: rgba(35, 40, 43, 0.62); }
  .map-side { order: 2; }
  .legend { padding-top: 14px; }
  .map-note { margin-top: 20px; }

  /* маршрут: вертикально */
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { top: 6px; bottom: 10px; left: 6px; right: auto; width: 2px; height: auto; }
  .step { padding: 0 0 24px 36px; }
  .step:last-child { padding-bottom: 0; }
  .step__num { position: static; margin-bottom: 8px; font-size: 24px; }
  .step__dot { top: 5px; left: 0; width: 12px; height: 12px; }
  .step__text { max-width: none; }
  .route-cta { width: 100%; margin-top: 28px; }

  /* живой инструмент */
  .shots { grid-template-columns: 1fr; gap: 26px; }
  .shot__call { display: none; }

  /* автор */
  .author-grid { grid-template-columns: 1fr; gap: 26px; }
  .rig--portrait { max-width: 340px; margin-left: 0; }

  /* форма */
  .booth { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .booth__lead { max-width: none; }
  .booth-note { font-size: 12px; }

  /* подвал */
  .foot-top { grid-template-columns: 1fr; gap: 26px; }
  .foot-mark { font-size: calc((100vw - 40px) / 8.85); }
}

@media (max-width: 400px) {
  .signboard { width: 210px; }
  .rig__label { font-size: 12px; }
  .hall-sign__name { font-size: 14.5px; }
  .foot-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
