/* ============================================================
   lteradar.ru — «бумага и прибор»
   Светлая печатная тема: тёплая бумага, волосяные линии,
   моноширинная разметка полей, глубокий зелёный как единственный
   акцент. Карта — картографическая врезка, а не экран.
   Ни одного внешнего запроса.
   ============================================================ */

:root {
  --paper:    #f5f3ee;
  --paper-2:  #edeae3;
  --paper-3:  #e4e0d7;
  --plate:    #eae7df;

  --line:     #d9d5ca;
  --line-hot: #b8b2a3;

  --ink:      #16191b;
  --ink-2:    #394245;
  --dim:      #4f5a5c;   /* 5.9–6.4 к фону */
  --faint:    #5e6769;   /* 4.7–5.2 к фону, включая панель и плиту карты */

  --accent:      #0f7a54;   /* фосфор, переведённый в краску */
  --accent-soft: #d7e8df;
  --amber:       #a4700f;
  --crimson:     #a8382f;

  --display: 'Unbounded', 'Golos Text', sans-serif;
  --body:    'Golos Text', 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --gut: clamp(20px, 5vw, 76px);
  --rail: 54px;
  --maxw: 1420px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Зерно бумаги и координатная сетка — слои фона самого body, а не
   отдельные закреплённые элементы поверх страницы. Раньше это были два
   полноэкранных слоя, один из них с mix-blend-mode: браузер пересобирал их
   на каждом кадре прокрутки. Здесь они рисуются один раз вместе с фоном. */
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E"),
    linear-gradient(to right, #0000000d 1px, transparent 1px),
    linear-gradient(to bottom, #0000000d 1px, transparent 1px);
  background-size: 220px 220px, 96px 96px, 96px 96px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

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

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* ─────────────────────────────────────────────────── типографика */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;              /* на светлом 700 читается тяжеловесно */
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow__tick {
  width: 7px; height: 7px;
  background: var(--accent);
  animation: blip 2.4s var(--ease) infinite;
}

@keyframes blip {
  0%, 72%, 100% { opacity: 1; }
  80%, 92%      { opacity: .2; }
}

/* ────────────────────────────────────────────── боковая рейка */

.rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail);
  z-index: 80;                    /* выше липкой шапки, иначе метка LR под ней */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 26px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.rail__mark {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}

.rail__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.rail__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: blip 3.6s var(--ease) infinite;
}

/* ──────────────────────────────────────────────── верхняя панель */

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gut) 0 calc(var(--rail) + 26px);
  height: 62px;
  border-bottom: 1px solid var(--line);
  /* Без backdrop-filter: размытие пересчитывалось на каждом кадре прокрутки,
     а под шапкой всё равно почти всегда ровная бумага. */
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand__mark {
  width: 19px; height: 19px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.brand__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.02em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--dim);
}

.topnav a { position: relative; padding: 4px 0; transition: color .25s; }
.topnav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { right: 0; }

.topnav__cta {
  color: var(--paper) !important;
  background: var(--accent);
  padding: 6px 14px !important;
  font-weight: 500;
}
.topnav__cta::after { display: none; }
.topnav__cta:hover { background: #0c6446; }

/* ────────────────────────────────────────────────────────── герой */

.hero {
  position: relative;
  min-height: calc(100svh - 62px);
  display: flex;
  align-items: center;
  padding: clamp(60px, 9vw, 120px) var(--gut) clamp(48px, 7vw, 96px)
           calc(var(--rail) + var(--gut));
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__inner { position: relative; z-index: 2; max-width: 1100px; width: 100%; }

.hero__title {
  margin: 28px 0 0;
  font-size: clamp(34px, 5.9vw, 84px);
  line-height: .98;
}

.hero__title span { display: block; }

/* Одна строка вывернута наизнанку — контур вместо заливки.
   Единственный «громкий» приём на всей странице. */
.hero__title--out {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  text-stroke: 1px var(--accent);
  padding-left: clamp(18px, 6vw, 96px);
}

.hero__lede {
  margin-top: clamp(24px, 3vw, 38px);
  max-width: 56ch;
  font-size: clamp(15px, 1.45vw, 18.5px);
  color: var(--ink-2);
}

.tenets {
  list-style: none;
  margin: clamp(30px, 4vw, 42px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 1px solid var(--line-hot);
}

.tenets li {
  padding: 18px 22px 18px 0;
  border-right: 1px solid var(--line);
}
.tenets li:last-child { border-right: 0; }
.tenets li + li { padding-left: 22px; }

.tenets b {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}

.tenets span { font-size: 13.5px; color: var(--dim); line-height: 1.5; }

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 28px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color .25s;
}
.hero__scroll svg {
  width: 9px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  animation: nudge 2.6s var(--ease) infinite;
}
.hero__scroll:hover { color: var(--accent); }

@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* ──────────────────────────────────────────────────────── секции */

.section {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 10vw, 150px) var(--gut) 0 calc(var(--rail) + var(--gut));
  max-width: calc(var(--maxw) + var(--rail));
}

.section--wide { max-width: none; }

.section__head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0 24px;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid var(--line-hot);
}

.section__idx {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent);
  padding-top: 9px;
}

.section__title {
  font-size: clamp(28px, 4.2vw, 56px);
  grid-column: 2;
}

.section__note {
  grid-column: 2;
  margin-top: 14px;
  max-width: 52ch;
  color: var(--dim);
  font-size: 15.5px;
}

/* ─────────────────────────────────────────────── 01 · три шага */

.steps {
  list-style: none;
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* Явные три колонки под три шага: auto-fit раскладывал их на четыре и
   оставлял пустую ячейку с фоном сетки. */
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.step {
  background: var(--paper-2);
  padding: 30px 28px 34px;
  position: relative;
  transition: background .4s var(--ease);
}
.step:hover { background: var(--paper); }

.step::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .5s var(--ease);
}
.step:hover::after { width: 100%; }

.step__idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--accent);
}

.step h3 {
  margin: 14px 0 12px;
  font-size: 21px;
  letter-spacing: -.02em;
}

.step p { color: var(--ink-2); font-size: 14.8px; }

.pull {
  margin: clamp(40px, 5vw, 70px) 0 0;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 54px);
  border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, #a4700f14, transparent 70%);
}

.pull p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 2.1vw, 26px);
  line-height: 1.34;
  letter-spacing: -.02em;
  max-width: 40ch;
}

/* ──────────────────────────────────────────────── 02 · объекты */

.objects {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(30px, 4vw, 60px);
}

.objects__label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-hot);
  margin-bottom: 4px;
}

.obj {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.obj__glyph {
  width: 44px; height: 44px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .35s;
}
.obj:hover .obj__glyph { stroke: var(--accent); }

.obj__ring {
  stroke: var(--accent);
  stroke-dasharray: 3 5;
  opacity: .45;
  transform-origin: 24px 24px;
  animation: slowspin 9s linear infinite;
}
.obj__hold { stroke: var(--amber); }

@keyframes slowspin { to { transform: rotate(360deg); } }

.obj__body h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}

.obj__body p { color: var(--ink-2); font-size: 14.4px; max-width: 46ch; }

.obj__tag {
  grid-column: 2;
  justify-self: start;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--faint);
  border: 1px solid var(--line-hot);
  padding: 3px 9px;
}

.obj--accent .obj__body h3 { color: var(--amber); }
.obj--accent .obj__tag { color: var(--amber); border-color: #a4700f55; }
.obj--accent::before {
  content: '';
  position: absolute;
  left: -14px; top: 24px; bottom: 22px;
  width: 2px;
  background: var(--amber);
}

.disclaimer {
  margin-top: clamp(34px, 4vw, 56px);
  max-width: 68ch;
  font-size: 13.6px;
  color: var(--dim);
  padding-left: 18px;
  border-left: 1px solid var(--line-hot);
}

/* ────────────────────────────────────────────────── 03 · карта */

.mapwrap {
  margin-top: clamp(36px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* width:100% обязателен: без него aspect-ratio считает ширину от min-height
   и элемент вылезает за колонку грида на узких экранах. */
.mapstage {
  position: relative;
  width: 100%;
  min-width: 0;
  background: var(--plate);
  aspect-ratio: 2000 / 1074;
  min-height: 380px;
  cursor: grab;
  overflow: hidden;
  /* Вертикальная прокрутка страницы остаётся за браузером — карта
     забирает только горизонтальный жест. */
  touch-action: pan-y;
}
.mapstage:active { cursor: grabbing; }
.mapstage:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }

.mapstage__canvas { display: block; width: 100%; height: 100%; }

.mapstage__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--plate);
  transition: opacity .5s;
}
.mapstage__loading[hidden] {
  display: flex;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .5s, visibility 0s .5s;
}
.mapstage__loading[hidden] .spinner { animation: none; }

.mapstage__nojs { display: none; }

.spinner {
  width: 11px; height: 11px;
  border: 1px solid var(--line-hot);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Выноска закреплена в углу, а не тянется за курсором: так она не дрожит
   и не закрывает то место, которое разглядывают. */
.readout {
  position: absolute;
  left: 14px;
  bottom: 14px;
  pointer-events: none;
  min-width: 210px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--line-hot);
  border-left: 2px solid var(--accent);
  padding: 9px 13px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  z-index: 4;
}
.readout__hint { color: var(--faint); }
.readout__name { display: block; color: var(--ink); }
.readout__val  { display: block; color: var(--accent); }
.readout__fd   { display: block; color: var(--faint); font-size: 10px; }

.mapzoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: stretch;
  gap: 6px;
  z-index: 4;
}

.mapzoom button,
.mapzoom__val {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border: 1px solid var(--line-hot);
  color: var(--dim);
}

.mapzoom button {
  width: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.mapzoom button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.mapzoom button:disabled { opacity: .38; cursor: default; }

.mapzoom__val {
  display: grid;
  place-items: center;
  min-width: 52px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.mapzoom__reset {
  width: auto !important;
  padding: 0 12px;
  font-size: 10.5px;
  letter-spacing: .12em;
}

.ctl__note {
  font-size: 11.6px;
  line-height: 1.55;
  color: var(--dim);
}
.ctl__note kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--line-hot);
  border-bottom-width: 2px;
  padding: 1px 5px;
  color: var(--ink);
}

.mapside {
  background: var(--paper-2);
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.counters { display: grid; gap: 16px; }

.counter b {
  display: block;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.counter span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .04em;
}

.ctl { border: 0; padding: 0; margin: 0; }

.ctl legend {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 0 11px;
}

.segbar { display: flex; border: 1px solid var(--line-hot); }
.segbar button {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 9px 6px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.segbar button + button { border-left: 1px solid var(--line-hot); }
.segbar button:hover { color: var(--ink); }
.segbar button.is-on { background: var(--accent); color: var(--paper); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--line-hot);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color .22s, color .22s, opacity .22s;
}
.chip:hover { color: var(--ink); border-color: var(--dim); }
.chip[aria-pressed="false"] { opacity: .4; }

.chip__swatch {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chip[aria-pressed="true"] {
  color: var(--chip, var(--accent));
  border-color: color-mix(in srgb, var(--chip, var(--accent)) 55%, transparent);
}

.ctl__foot {
  margin-top: auto;
  font-size: 11.6px;
  line-height: 1.55;
  color: var(--dim);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ctl__foot b { color: var(--ink); font-weight: 600; }

/* ──────────────────────────────────────────── 04 · демонстрация */

.demo {
  margin-top: clamp(36px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.demo__stage {
  position: relative;
  width: 100%;
  min-width: 0;
  background: var(--plate);
  aspect-ratio: 16 / 9;
  min-height: 320px;
  overflow: hidden;
}

.demo__canvas { display: block; width: 100%; height: 100%; }

.demo__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #0f7a540d 46%, #0f7a5421 50%, #0f7a540d 54%, transparent);
  transform: translateX(-100%);
  animation: sweep 7s var(--ease) infinite;
  animation-play-state: paused;          /* идёт только когда сцена на экране */
}
.demo__stage.is-live .demo__scan { animation-play-state: running; }
@keyframes sweep {
  0%       { transform: translateX(-100%); }
  55%,100% { transform: translateX(100%); }
}

.demo__panel {
  background: var(--paper-2);
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
}

.demo__picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -10px; }

.demo__picker button {
  background: transparent;
  border: 1px solid var(--line-hot);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  padding: 7px 11px;
  cursor: pointer;
  transition: border-color .22s, color .22s, background .22s;
}
.demo__picker button:hover { color: var(--ink); border-color: var(--dim); }
.demo__picker button.is-on {
  background: var(--accent); border-color: var(--accent);
  color: var(--paper); font-weight: 500;
}

.verdict {
  border: 1px solid var(--line-hot);
  border-left: 2px solid var(--faint);
  padding: 18px 18px 20px;
  background: var(--paper);
  transition: border-color .4s;
}

.verdict__label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.verdict__class {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -.02em;
  line-height: 1.14;
  color: var(--ink);
}

.verdict__sub {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.verdict[data-tone="air"]     { border-left-color: var(--crimson); }
.verdict[data-tone="air"] .verdict__class { color: var(--crimson); }
.verdict[data-tone="hover"]   { border-left-color: var(--amber); }
.verdict[data-tone="hover"] .verdict__class { color: var(--amber); }
.verdict[data-tone="ground"]  { border-left-color: var(--accent); }
.verdict[data-tone="ground"] .verdict__class { color: var(--accent); }

.tele { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tele > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  background: var(--paper);
  padding: 9px 12px;
}
.tele dt { font-size: 12px; color: var(--dim); }
.tele dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.demo__foot {
  margin-top: auto;
  font-size: 11.6px;
  line-height: 1.55;
  color: var(--dim);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ─────────────────────────────────────────────── 05 · сценарии */

.uses {
  list-style: none;
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* Шесть сценариев в три колонки — ровно два полных ряда. */
@media (min-width: 1040px) {
  .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.uses li {
  background: var(--paper-2);
  padding: 28px 26px 32px;
  transition: background .4s var(--ease);
}
.uses li:hover { background: var(--paper); }

.uses span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent);
}

.uses h3 {
  margin: 12px 0 10px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.uses p { color: var(--ink-2); font-size: 14.2px; }

/* ─────────────────────────────────────────────── 06 · контакты */

.section--contact { padding-bottom: clamp(80px, 10vw, 150px); }

.contact {
  border-top: 1px solid var(--line-hot);
  padding-top: 34px;
  max-width: 780px;
}

.contact h2 {
  margin: 12px 0 20px;
  font-size: clamp(34px, 6vw, 76px);
}

.contact p { color: var(--ink-2); max-width: 48ch; font-size: 15.5px; }

/* ─────────────────────────────────────────────────── форма запроса */

.form {
  margin-top: 40px;
  display: grid;
  gap: 20px;
  max-width: 640px;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.field { display: grid; gap: 8px; }

.field__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}
.field__label b { color: var(--accent); font-weight: 400; }

.field__input {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-hot);
  border-radius: 0;
  padding: 11px 13px;
  width: 100%;
  transition: border-color .22s, background .22s;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: var(--faint); }
.field__input:hover { border-color: var(--dim); }
.field__input:focus-visible,
.field__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  background: var(--paper);
}
.field__input--area { resize: vertical; min-height: 120px; line-height: 1.55; }

.field__input[aria-invalid="true"] { border-color: var(--crimson); }

/* Ловушка для роботов: убрана из потока, но не display:none — часть ботов
   такие поля пропускает. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.form__send {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  padding: 12px 22px;
  cursor: pointer;
  transition: background .22s, opacity .22s;
}
.form__send:hover:not(:disabled) { background: #0c6446; }
.form__send:disabled { opacity: .5; cursor: default; }

.form__status {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--dim);
  margin: 0;
}
.form__status[data-tone="ok"]  { color: var(--accent); }
.form__status[data-tone="err"] { color: var(--crimson); }

.form__note {
  font-size: 12.4px;
  line-height: 1.55;
  color: var(--faint);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.contact__links {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 26px;
}

.contact__site {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--faint);
  text-transform: uppercase;
}

/* ───────────────────────────────────────────────────────── подвал */

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px var(--gut) 26px calc(var(--rail) + var(--gut));
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--faint);
}
.foot a { transition: color .25s; }
.foot a:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────── появление */

.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in, .reveal-up.is-in { opacity: 1; transform: none; }

/* Появление блоков ставит сценарий. Если сценариев нет, содержимое обязано
   быть видно сразу, иначе страница остаётся пустой. */
@media (scripting: none) {
  .reveal, .reveal-up { opacity: 1; transform: none; transition: none; }
  /* Карта рисуется сценарием; честнее сказать это, чем крутить индикатор. */
  .mapstage__wait, .spinner { display: none; }
  .mapstage__nojs { display: inline; }
}

/* ──────────────────────────────────────────────── адаптивность */

/* На широком экране высоту ряда задаёт боковая панель, а сцена тянется под
   неё: иначе aspect-ratio фиксирует высоту и под картой остаётся пустой блок. */
@media (min-width: 1081px) {
  .mapstage    { aspect-ratio: auto; height: 100%; min-height: 520px; }
  .demo__stage { aspect-ratio: auto; height: 100%; min-height: 440px; }
}

@media (max-width: 1080px) {
  .mapwrap, .demo { grid-template-columns: minmax(0, 1fr); }
  .mapstage { aspect-ratio: 16 / 10; }
  .mapside, .demo__panel { padding: 24px var(--gut) 30px; }
}

@media (max-width: 860px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .topbar { padding-left: var(--gut); height: 56px; }
  .topnav { gap: 0; }
  .topnav a:not(.topnav__cta) { display: none; }
  .section, .hero, .foot { padding-left: var(--gut); }
  .section__head { grid-template-columns: minmax(0, 1fr); }
  .section__idx { grid-column: 1; padding-top: 0; padding-bottom: 10px; }
  .section__title, .section__note { grid-column: 1; }
  .tenets li, .tenets li + li { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero__title--out { padding-left: 0; }
  .mapstage { aspect-ratio: 3 / 2; min-height: 300px; }
  .demo__stage { aspect-ratio: 4 / 3; }
  /* Наведения курсором тут не бывает — выноска только занимала бы место. */
  .readout { display: none; }
  .mapzoom { left: 14px; right: 14px; justify-content: flex-end; }
  .obj--accent::before { left: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-up { opacity: 1; transform: none; transition: none; }
  .demo__scan, .obj__ring, .eyebrow__tick, .rail__dot,
  .hero__scroll svg { animation: none; }
}
