/* Академия Партнёра. Палитра и типографика - те же, что на сайте и в открытом
   курсе: бумага, графит, терракота, Fraunces в заголовках и Inter в тексте. */

:root {
  --ink: #1A1614;
  --ink-soft: #3A332E;
  --terracotta: #C85A3C;
  --forest: #2D4A3E;
  --cream: #F5F0E8;
  --cream-deep: #EDE5D6;
  --paper: #FAF6EE;
  --tan: #D4B896;
  --graphite: #6B625A;
  --fog: #DDD4C4;
  --line: rgba(26, 22, 20, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Шапка - единая шапка сайта (site-header.css + site-nav.css);
   в правом блоке вместо кнопки - мета: имя и «выйти». */
.bar-meta { font-size: 13px; color: var(--graphite); }
.bar-meta a { color: var(--graphite); text-decoration: none; border-bottom: 1px solid var(--fog); }
.bar-meta a:hover { color: var(--terracotta); }
/* Правый блок с метой виден и на мобильном: длинная строка сжимается
   с многоточием, бургер остаётся на месте */
@media (max-width: 900px) {
  .site-header .site-header__right { display: flex; margin-left: auto; min-width: 0; flex: 0 1 auto; }
  .site-header .burger { margin-left: 0; flex: 0 0 auto; }
  .site-header .bar-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

main { flex: 1; }

.kicker {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 16px; font-weight: 500;
}
h1 {
  font-family: 'Fraunces', Georgia, serif; letter-spacing: -0.02em;
  font-size: 42px; font-weight: 400; line-height: 1.15; margin-bottom: 20px;
}

/* ---------- Форма входа ---------- */

.gate { padding: 76px 24px 96px; max-width: 620px; }
.gate-lead { color: var(--ink-soft); margin-bottom: 36px; }
.gate-form { display: flex; flex-direction: column; gap: 16px; max-width: 380px; }
.gate-form label { display: flex; flex-direction: column; gap: 7px; }
.gate-form label span { font-size: 14px; color: var(--ink-soft); }
.gate-form input {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--fog); border-radius: 10px; background: #fff;
}
.gate-form input:focus { outline: none; border-color: var(--ink); }
.gate-err { font-size: 14px; color: var(--terracotta); }
.gate-note { font-size: 14px; color: var(--graphite); line-height: 1.5; }

.btn {
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 13px 32px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: opacity 0.15s; align-self: flex-start;
}
.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.35; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); }
/* Шаг назад: перечитать предыдущую карточку. Держим неприметной - основное
   движение по уроку вперёд. */
.btn.back {
  background: transparent; border-color: transparent; color: var(--graphite);
  padding: 13px 10px;
}
/* Стоит первой в ряду - левый край держим по тексту карточки. */
.actions .btn.back:first-child { padding-left: 0; }

/* ---------- Оглавление программы ---------- */

.head { padding: 64px 0 40px; }
.head-lead { color: var(--ink-soft); max-width: 560px; margin-bottom: 30px; }

.counter { max-width: 380px; }
.counter-track { height: 3px; background: var(--cream-deep); border-radius: 2px; overflow: hidden; }
.counter-fill { height: 100%; background: var(--terracotta); transition: width 0.4s ease; }
.counter-text { font-size: 13px; color: var(--graphite); margin-top: 8px; }
.counter-text a { color: var(--terracotta); text-decoration: none; }
.counter-text a:hover { text-decoration: underline; }

.block { padding: 20px 0 32px; }
.block-title {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--graphite); font-weight: 500;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.block-lead { font-size: 14px; color: var(--graphite); margin: 12px 0 4px; }

.day { display: flex; align-items: baseline; gap: 18px; padding: 18px 0 6px; }
.day .num {
  flex: 0 0 34px; font-family: 'Fraunces', Georgia, serif;
  font-size: 20px; color: var(--tan);
}
.day-body { display: block; }
.day .name { font-size: 18px; color: var(--ink); display: block; }
.day .goal { font-size: 14px; color: var(--graphite); margin-top: 3px; display: block; }
.day .status { margin-left: auto; font-size: 13px; color: var(--graphite); white-space: nowrap; }
.day .status .done { color: var(--forest); }
.day.soon { opacity: 0.5; }

.lessons { border-bottom: 1px solid var(--line); padding: 0 0 16px 52px; }
.lesson-link {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 7px 0; font-size: 15px; color: var(--ink-soft); text-decoration: none;
}
a.lesson-link:hover { color: var(--terracotta); }
.lesson-link .st { font-size: 13px; color: var(--terracotta); white-space: nowrap; }
.lesson-link .st .done { color: var(--forest); }

/* ---------- Страница урока ---------- */

.progress-track { height: 3px; background: var(--cream-deep); }
.progress-fill { height: 100%; width: 0; background: var(--terracotta); transition: width 0.4s ease; }

/* Карточки урока. Под ними, в том же потоке, стоит карта вселенной. */
.lesson-page main { width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }

h1.card-title {
  font-family: 'Fraunces', Georgia, serif; letter-spacing: -0.02em;
  font-size: 34px; font-weight: 400; line-height: 1.2; margin-bottom: 24px;
}
.card-body p { margin-bottom: 16px; color: var(--ink-soft); }
.card-body strong { color: var(--ink); font-weight: 500; }
.card-body ul,
.card-body ol { margin: 0 0 16px 0; padding-left: 22px; color: var(--ink-soft); }
.card-body ol { padding-left: 26px; }
.card-body ol li { padding-left: 4px; margin-bottom: 8px; }
.card-body li { margin-bottom: 10px; }
.card-body a { color: var(--terracotta); }
.card.example .card-body { border-left: 3px solid var(--tan); padding-left: 22px; }

.question-text {
  font-family: 'Fraunces', Georgia, serif; letter-spacing: -0.01em;
  font-size: 24px; font-weight: 400; line-height: 1.35; margin-bottom: 28px;
}
.options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.option {
  text-align: left; font-family: inherit; font-size: 16px; line-height: 1.5;
  padding: 16px 18px; border: 1px solid var(--fog); border-radius: 10px;
  background: #fff; color: var(--ink-soft); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex; gap: 12px; align-items: flex-start;
}
.option:hover:not(:disabled) { border-color: var(--graphite); }
.option .letter {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--fog); color: var(--graphite);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; margin-top: 1px;
}
.option.selected { border-color: var(--ink); background: var(--cream); }
.option.selected .letter { border-color: var(--ink); color: var(--ink); }
.option:disabled { cursor: default; }
.option.right { border-color: var(--forest); background: #E8EDE8; color: var(--ink); }
.option.right .letter { background: var(--forest); border-color: var(--forest); color: #fff; }
.option.wrong { border-color: var(--terracotta); background: #F7E8E2; }
.option.wrong .letter { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.option.dimmed { opacity: 0.55; }

.feedback { margin-top: 20px; padding: 18px 20px; border-radius: 10px; font-size: 16px; display: none; }
.feedback.show { display: block; }
.feedback.ok { background: #E8EDE8; color: var(--forest); }
.feedback.no { background: #F7E8E2; color: #8A3A22; }
.feedback .verdict {
  font-weight: 500; display: block; margin-bottom: 6px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}

.actions { margin-top: 36px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.actions .btn { text-decoration: none; display: inline-block; }
.score-line {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--graphite);
}

/* ---------- Сюжетные карточки ----------
   Курс идёт историей, поэтому карточки различаются на вид: эпизод читается
   как рассказ, правило - как выписка из канона, разбор - как слово наставника.
   Ученик по одному взгляду понимает, что перед ним. */

/* Дата и место эпизода - над заголовком, монопрописью. */
.when {
  font-size: 13px; letter-spacing: 0.06em; color: var(--graphite);
  margin: -14px 0 14px; font-variant-numeric: tabular-nums;
}

.card.scene .card-title { font-size: 30px; }
.card.scene .card-body p:first-child { font-size: 18px; }

/* Голосовое клиента: его формулировка, не пересказ. */
.voice {
  margin: 24px 0 0; padding: 18px 22px;
  background: var(--cream-deep); border-radius: 12px;
  font-size: 17px; line-height: 1.55; color: var(--ink);
}
.voice-who {
  display: block; margin-bottom: 6px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--graphite);
}

/* Правило канона - выписка, а не абзац из рассказа. */
.card.rule { background: var(--cream); border: 1px solid var(--fog); border-radius: 14px; padding: 30px 32px; }
.card.rule .kicker { color: var(--forest); }

/* Разбор наставника - как поступила Александра. */
.card.reveal .card-body { border-left: 3px solid var(--terracotta); padding-left: 22px; }

/* Что осело в реестрах клиента: короткие записи, не проза. */
.card.ledger .card-body ul { list-style: none; padding-left: 0; }
.card.ledger .card-body li {
  padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line);
  position: relative; margin: 0;
}
.card.ledger .card-body li::before {
  content: ''; position: absolute; left: 0; top: 20px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--tan);
}

.fade { animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Вселенная клиента ----------
   Карта построена в том же визуальном языке, что и большая карта вселенной:
   Виктор в центре, вокруг кольца - люди, активы, ритмы, сценарии, задачи.
   Цвет узла задаёт зона жизни клиента (переменная --z ставится в universe.js),
   форма - кольцо. Закрытый узел стоит на карте серым контуром без подписи:
   мир виден целиком, открыт пока не весь. */

.u-svg { display: block; width: 100%; height: 100%; overflow: visible; }

.u-ringline { fill: none; stroke: rgba(26,22,20,0.10); stroke-width: 1; }

.u-ringname, .u-zonename {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: 0.24em;
  fill: #6B625A;
}
.u-zonename { font-size: 13px; letter-spacing: 0.2em; fill: #8A8175; }

/* Закрытый узел: контур цвета выцветшей бумаги, буквы нет. */
.u-shape { fill: #FFFDFA; stroke: #CBC3B5; stroke-width: 1.3; transition: stroke 0.5s ease, fill 0.5s ease; }
.u-hole  { fill: var(--paper); stroke: none; }
.u-glyph { opacity: 0; transition: opacity 0.5s ease; }
.u-name  { opacity: 0; transition: opacity 0.25s ease; }
.u-r3 .u-shape { fill: #DDD6C9; stroke: var(--paper); stroke-width: 1.4; }
.u-r4 .u-shape { stroke-width: 1; }

/* Открытый: цвет зоны, буква и подпись. */
.u-n.open .u-shape { stroke: var(--z); }
.u-n.open.u-r3 .u-shape { fill: var(--z); }
/* Задача каталога вдвое мельче остальных узлов, и цветного контура в один
   пиксель на внешнем кольце не видно: открытых задач среди девяноста серых
   точек попросту не найти. Поэтому открытую задачу заливаем цветом зоны. */
.u-n.open.u-r4 .u-shape { fill: var(--z); }
.u-n.open .u-glyph { opacity: 1; }

/* Подпись узла - под курсором и на только что открытом узле. Двести
   постоянных подписей карту бы съели. */
.u-n.open:hover .u-name, .u-n.fresh .u-name { opacity: 1; }
.u-n:hover .u-shape { stroke-width: 2.2; }

.u-glyph {
  font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 500;
  fill: var(--z); text-anchor: middle; dominant-baseline: central;
}
.u-name {
  font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px;
  fill: var(--ink-soft); dominant-baseline: central;
  paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round;
}
/* Под уроком карта сжата чуть больше чем вдвое: 1005 px на экране при системе
   координат в 1560. Чтобы подпись ноды читалась в один размер с текстом
   урока - 17 px, - в единицах карты ей нужно 26,5. */
.lesson-page .u-name { font-size: 26.5px; stroke-width: 6px; }

/* ---------- Связи сценария ----------
   Курсор на пройденном сценарии - и видно, из кого и из чего он собран:
   линии к людям, активам, ритмам и задачам, остальная карта гаснет.
   Подписи выходят только у открытых нод: закрытая остаётся точкой. */

.u-ties, .u-leads { pointer-events: none; }
/* Поводок к подписи, которую увели от ноды, чтобы она не наехала на соседнюю. */
.u-lead { fill: none; stroke: #C4BDB1; stroke-width: 1.2; }
.u-n { transition: opacity 0.2s ease; }
.u-tie {
  fill: none; stroke: #9A9184; stroke-width: 1.1; stroke-opacity: 0.5;
  stroke-dasharray: 3 3;
}
.u-tie.open { stroke: var(--terracotta); stroke-width: 1.6; stroke-opacity: 0.72; stroke-dasharray: none; }

/* Режим tied - курсор на сценарии, focused - постоянный фокус урока на его
   странице. Гасят карту одинаково, разница только в поводе. */
.u-svg.tied .u-n, .u-svg.focused .u-n { opacity: 0.2; }
.u-svg.tied .u-n.u-hot, .u-svg.tied .u-n.u-lit,
.u-svg.focused .u-n.u-hot, .u-svg.focused .u-n.u-lit { opacity: 1; }
.u-svg.tied .u-ringnames, .u-svg.tied .u-zonenames,
.u-svg.focused .u-ringnames, .u-svg.focused .u-zonenames { opacity: 0.4; }
.u-n.u-lit .u-shape { stroke-width: 2.2; }
.u-n.u-lit:not(.open) .u-shape { stroke: #9A9184; }
/* Подпись выходит только у открытого узла: у закрытого не должно быть видно
   ни названия, ни описания, пока урок его не открыл. */
.u-n.u-lit.open .u-name, .u-n.u-hot.open .u-name { opacity: 1; }
.u-n.u-hot .u-shape { stroke-width: 2.6; }

.u-core-disc { fill: #7B2230; }
.u-core-glyph {
  font-family: 'Fraunces', Georgia, serif; font-size: 30px; fill: #FBF7F1;
  text-anchor: middle; dominant-baseline: central;
}
.u-core-name {
  font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; fill: var(--ink-soft); text-anchor: middle;
}

/* Урок открыл ноду - она загорается. */
.u-n.fresh .u-shape { animation: node-pop 1.1s cubic-bezier(0.2, 0.8, 0.25, 1.3); transform-box: fill-box; transform-origin: center; }
.u-n.fresh .u-glyph { animation: fade 0.7s 0.3s ease both; }
@keyframes node-pop {
  0%   { transform: scale(0.2); }
  55%  { transform: scale(1.55); }
  100% { transform: scale(1); }
}

/* ---------- Карта на странице урока ----------
   Круг стоит под карточками урока, Виктор в середине. Пройденный урок
   зажигает свои узлы прямо здесь. */

.universe {
  display: block; margin: 8px auto 8px;
  /* Блок шире круга ровно настолько, насколько шире холст: круг остаётся того
     же размера, а подписи нод получают поле и не режутся краем. */
  width: min(1005px, 96vw); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(212,184,150,0.18) 0%, rgba(212,184,150,0.05) 35%, rgba(212,184,150,0) 50%);
}
.universe-disc { width: 100%; height: 100%; }

.universe-label {
  margin: 0 auto 64px; width: min(760px, 92vw);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--graphite); text-align: center;
  display: flex; justify-content: center; gap: 14px;
}
.universe-label a { color: var(--terracotta); text-decoration: none; letter-spacing: 0.04em; }
.universe-label a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .u-n.fresh .u-shape { animation: none; }
}

/* ---------- Карта целиком (map.php) ---------- */

/* Карта держится в границах текста: страница читается одной колонкой, и круг
   не должен вылезать за края абзацев над ним. */
.map-wrap { margin: 8px 0 48px; }
.map-disc {
  position: relative;
  width: 100%; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(212,184,150,0.18) 0%, rgba(212,184,150,0.05) 46%, rgba(212,184,150,0) 66%);
}

/* Досье узла набрано как читалка большой вселенной: шапка с названием и
   крестиком, крошка капсом, крупный серифный заголовок, спокойный текст.
   Выезжает справа на половину экрана поверх карты и закрывается крестиком,
   клавишей Esc или щелчком вне окна. */
.map-side {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 30;
  width: 50vw; padding: 18px 18px 18px 0;
  transform: translateX(102%); transition: transform 0.22s ease;
  pointer-events: none;
}
.map-side.open { transform: none; pointer-events: auto; }
.map-hint { font-size: 14px; color: var(--graphite); margin-top: 14px; }
.side-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: -14px 0 44px rgba(26, 26, 24, 0.10);
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
}
.side-bar {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 16px 18px 15px 22px; border-bottom: 1px solid var(--line);
}
.side-bar-name {
  font-family: 'Fraunces', Georgia, serif; font-size: 16px; line-height: 1.3;
  color: var(--ink-soft); overflow-wrap: anywhere;
}
.side-close {
  margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--graphite);
  font-size: 13px; line-height: 1; cursor: pointer;
}
.side-close:hover { color: var(--ink); border-color: var(--ink); }
.side-body { padding: 26px 24px 28px; overflow-y: auto; flex: 1 1 auto; }
.side-crumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terracotta); overflow-wrap: anywhere;
}
.side-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tan); flex: none; }
.side-title {
  font-family: 'Fraunces', Georgia, serif; font-size: 28px; font-weight: 400;
  line-height: 1.22; letter-spacing: -0.01em; margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.side-note { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.side-rel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.side-lbl {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--graphite); margin-bottom: 12px;
}
.side-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.side-chip {
  font-family: inherit; font-size: 15px; line-height: 1.4; color: var(--terracotta);
  cursor: pointer; background: transparent; border: 0; padding: 0; text-align: left;
  border-bottom: 1px solid transparent; overflow-wrap: anywhere;
}
.side-chip:hover { border-bottom-color: var(--terracotta); }

/* ---------- Разбор задачи каталога ----------
   Задачи каталога - универсальная часть любой вселенной, и Партнёр читает про
   них то же, что клиент читает на сайте: шесть шагов Руководитель /
   Партнёр Alterum.
   Вёрстка повторяет читалку вселенной: пунктирная нить времени, слева метка
   стороны, шаг клиента на светлой карточке, шаг Партнёра на кремовой. */
.side-note strong { font-weight: 500; color: var(--ink); }
.side-rz { margin-top: 4px; }
.rz-lbl {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--graphite); margin: 20px 0 7px; font-weight: 500;
}
.rz-brief { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.rz-tl { position: relative; margin: 26px 0 4px; }
.rz-tl::before {
  content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px;
  border-left: 1px dashed var(--fog);
}
.rz-step { position: relative; margin: 0 0 18px 32px; }
.rz-step::after {
  content: ''; position: absolute; top: 24px; left: -32.5px;
  width: 9px; height: 9px; border-radius: 2px; background: var(--fog);
}
.rz-you::after { background: var(--terracotta); }
.rz-side {
  display: inline-block; font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 7px;
}
.rz-you .rz-side { color: var(--terracotta); }
.rz-ep  .rz-side { color: var(--graphite); }
.rz-card { border-radius: 12px; padding: 17px 19px; border: 1px solid var(--line); }
.rz-you .rz-card { background: #FFFCF7; }
.rz-ep  .rz-card { background: var(--cream); }
.rz-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 4px 14px;
}
.rz-name {
  font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 19px;
  line-height: 1.2; color: var(--ink); overflow-wrap: anywhere;
}
.rz-time { font-size: 12.5px; font-weight: 500; color: var(--terracotta); white-space: nowrap; }
.rz-text { margin: 9px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.rz-note {
  margin-top: 13px; background: var(--cream-deep); border-radius: 8px;
  padding: 11px 13px; font-size: 13.5px; line-height: 1.55; color: var(--graphite);
}
.rz-you .rz-note { background: var(--cream); }

/* Подпись открытого узла на большой карте - в один размер с основным текстом.
   Круг стоит в колонке текста: 812 px при системе координат 1260, то есть
   каждый знак на экране выходит примерно на треть меньше заданного. */
.map-disc .u-name { font-size: 21.5px; stroke-width: 5px; }

/* Узел, по которому щёлкнули: обвести, чтобы было видно, чьё это досье.
   Подпись ему даёт общее правило подсветки - выбранный узел встаёт головой
   ровно так же, как узел под курсором. */
.u-click { cursor: pointer; }
.u-sel .u-shape { stroke-width: 3; }
.u-core.u-sel .u-core-disc { stroke: var(--ink); stroke-width: 2; }

/* На узком экране половина - это уже нечитаемая колонка: досье занимает
   ширину целиком. */
@media (max-width: 900px) {
  .map-side { width: 100vw; padding: 12px 12px 12px 0; }
}

/* На телефоне двести узлов не читаются - карта остаётся на map.php. */
@media (max-width: 700px) {
  .universe { display: none; }
  .universe-label { margin-top: 32px; }
}

/* ---------- Подвал ---------- */

footer { border-top: 1px solid var(--line); margin-top: 24px; }
.foot { padding: 36px 24px 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.slogan { font-family: 'Fraunces', Georgia, serif; font-size: 19px; line-height: 1.35; color: var(--ink-soft); }
.foot .copy { font-size: 13px; color: var(--graphite); }

@media (max-width: 600px) {
  h1 { font-size: 32px; }
  .head { padding: 44px 0 28px; }
  .gate { padding: 48px 24px 64px; }
  .day .status { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
}
