/* ============================================================
   Карта проектов изменений · ЕВМ
   Тёмная тема на базе фирменного Pantone 534 C (#1B365D)
   ============================================================ */

:root {
  --brand: #1B365D;          /* Pantone 534 C */
  --bg: #0C1A30;             /* глубокий фон (производный от 534) */
  --bg-2: #0A1526;
  --panel: rgba(27, 54, 93, .55);
  --panel-solid: #14274A;
  --border: #27406B;
  --border-soft: #1D3357;
  --text: #E8EEF7;
  --text-dim: #A9BBD8;
  --muted: #7C93B8;
  --accent: #5B9BFF;
  --accent-2: #3E7FE8;
  --ok: #4ADE80;
  --err: #FB7185;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(3, 10, 22, .55);
  --header-h: 64px;
  --filter-h: 54px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

  /* Графика карты — значения тёмной темы. Светлая переопределяет их
     в theme-light.css, поэтому переключение не требует перерисовки SVG. */
  --map-guide: #1B2F52;
  --map-band-fill: rgba(255, 255, 255, .018);
  --map-band-line: #27406B;
  --map-hub-row-line: #1D3357;
  --map-bg: #0C1A30;              /* заливка колец и точек: маскирует линии под ними */
  --map-hub-ring: #F1F5F9;
  --map-halo: #5B9BFF;
  --map-cap: #7C93B8;             /* «СЛОЖНОСТЬ», номера станций */
  --map-band-lvl: #E8EEF7;
  --map-hub-label: #F1F5F9;
  --map-station-label: #C7D5EA;
  --map-label-halo: #0C1A30;      /* обводка-подложка текста поверх линий */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1100px 640px at 45% 0%, #16294a 0%, var(--bg) 55%, var(--bg-2) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--header-h); padding: 0 22px;
  background: rgba(12, 26, 48, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; min-width: 0; }
.brand-logo { flex: none; height: 30px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.22; min-width: 0; }
.brand-title { font-family: var(--font-serif); font-size: 17px; font-weight: 700; letter-spacing: .2px; color: #F4F7FC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 22px; flex: none; }
.nav-link { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-link:hover { color: #fff; }

/* Переключатель темы */
.theme-toggle {
  flex: none; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: rgba(255, 255, 255, .05); color: var(--text-dim);
  font-size: 15px; line-height: 1; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); background: rgba(91, 155, 255, .12); }
.ico-moon { display: none; }
:root[data-theme="light"] .ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: inline; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  padding: 10px 18px; transition: filter .15s, transform .15s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #06162e;
  box-shadow: 0 0 22px rgba(91, 155, 255, .28);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-wide { width: 100%; justify-content: center; }
.btn-ico { font-size: 14px; }
.caret { font-size: 10px; margin-left: 2px; opacity: .8; }
.pdf-btn-short { display: none; }

/* Дропдаун PDF */
.pdf-drop { position: relative; }
.pdf-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  width: 258px; padding: 6px;
  background: var(--panel-solid); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  animation: softIn .18s ease-out;
}
.pdf-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
}
.pdf-item small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.pdf-item:hover { background: rgba(91, 155, 255, .12); }
.pdf-ico {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.pdf-ico.tg { background: rgba(42, 171, 238, .16); color: #55b9ee; }
.pdf-ico.vk { background: rgba(70, 128, 194, .2); color: #6f9fd8; }

/* ---------- Панель фильтров ---------- */
.filter-bar {
  position: sticky; top: var(--header-h); z-index: 55;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  min-height: var(--filter-h); padding: 8px 22px;
  background: rgba(10, 21, 38, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.filter-label { flex: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
/* Чипы переносятся по строкам — горизонтальной прокрутки быть не должно */
.filter-chips { display: flex; flex: 1 1 auto; min-width: 0; gap: 8px; flex-wrap: wrap; }
.chip {
  flex: none; display: flex; align-items: center; gap: 7px;
  padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 999px; background: rgba(27, 54, 93, .35);
  color: var(--text-dim); font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: rgba(91, 155, 255, .16); border-color: var(--accent); color: #DBE9FF; }
.chip .chk {
  display: flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 4px;
  font-size: 9px; line-height: 1;
}
.chip:not(.on) .chk { color: transparent; border-color: var(--muted); }
.filter-meta { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; }
.match-count { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .5px; color: var(--muted); }
.btn-reset {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
}
.btn-reset:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Карта: «доска» с масштабом и перемещением ---------- */
/* Колонка на всю высоту экрана: панель фильтров может переноситься
   на несколько строк, карта просто занимает остаток — без расчётов высоты. */
body.page-map {
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden; overscroll-behavior: none;
}
/* top у sticky-панелей здесь обнуляем — иначе relative сдвигает их вниз */
body.page-map .site-header, body.page-map .filter-bar { position: relative; top: 0; flex: none; }
.map-area {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  overflow: hidden;
  touch-action: none;
}
.map-scroll {
  position: absolute; inset: 0;
  overflow: hidden;
  cursor: grab;
}
.map-scroll.dragging { cursor: grabbing; }
.map-canvas {
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  /* will-change ставится из app.js только на время жеста */
}
.map-canvas svg { display: block; font-family: var(--font-sans); }

/* Панель масштаба */
.map-controls {
  position: absolute; left: 18px; bottom: 96px; z-index: 46;
  display: flex; flex-direction: column; align-items: stretch; gap: 5px;
  padding: 6px 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.mc-row { display: flex; align-items: center; gap: 6px; }
.mc-btn {
  width: 30px; height: 30px; flex: none;
  border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255,255,255,.05); color: var(--text-dim);
  font-family: inherit; font-size: 16px; line-height: 1; cursor: pointer;
  transition: all .15s;
}
.mc-btn:hover { color: #fff; border-color: var(--accent); background: rgba(91,155,255,.14); }
.mc-fit { font-size: 13px; }
.mc-val {
  min-width: 46px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  user-select: none;
}
.mc-hint {
  padding-top: 5px; border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .3px; line-height: 1.4;
  color: var(--muted); text-align: center; cursor: default; user-select: none;
}
.map-hint {
  position: absolute; left: 18px; bottom: 68px; z-index: 46;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .6px;
  color: var(--muted); opacity: .75; pointer-events: none;
  transition: opacity .4s;
}
.map-hint.gone { opacity: 0; }

/* Всплывающая подсказка по наведению */
.map-tip {
  position: fixed; z-index: 80; max-width: 320px;
  padding: 11px 13px;
  background: rgba(20, 39, 74, .97); border: 1px solid var(--border);
  border-radius: 11px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
  pointer-events: none;
  animation: softIn .13s ease-out;
}
.map-tip .tip-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--accent); }
.map-tip .tip-title { margin: 3px 0 0; font-family: var(--font-serif); font-size: 14.5px; font-weight: 700; line-height: 1.3; color: #F4F7FC; }
.map-tip .tip-meta { margin-top: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 11px; color: var(--text-dim); }
.map-tip .tip-dir { display: inline-flex; align-items: center; gap: 6px; }
.map-tip .tip-dir .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.map-tip .tip-desc { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-dim); }
.map-tip .tip-more { margin: 8px 0 0; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }

/* Графика SVG через переменные — цвет темы применяется без пересборки карты */
.guide { stroke: var(--map-guide); }
.band-fill { fill: var(--map-band-fill); }
.band-line { stroke: var(--map-band-line); }
.hub-row-line { stroke: var(--map-hub-row-line); }
.band-cap { fill: var(--map-cap); }
.band-lvl { fill: var(--map-band-lvl); }
.hub-ring { fill: var(--map-bg); stroke: var(--map-hub-ring); }
.st-dot { fill: var(--map-bg); }
.halo { stroke: var(--map-halo); }
.st-label text { paint-order: stroke; stroke: var(--map-label-halo); stroke-width: 4px; stroke-linejoin: round; }
.st-num { fill: var(--map-cap); }
.station .st-title { fill: var(--map-station-label); }
.station.is-hub .st-title { fill: var(--map-hub-label); }

.station { cursor: pointer; }
.station text { pointer-events: none; }
.station .st-hit { pointer-events: all; cursor: pointer; }
.station:hover .st-label text { fill: var(--text); }
.station .halo { opacity: 0; }
.station.match .halo { opacity: 1; animation: haloPulse 1.8s ease-in-out infinite; }
.dimmed { opacity: .16; transition: opacity .25s; }
.line-path, .station, .line-title { transition: opacity .25s; }

@keyframes haloPulse {
  0%, 100% { transform: scale(.9); }
  50% { transform: scale(1.12); }
}
@keyframes softIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Легенда ---------- */
.legend {
  position: absolute; right: 18px; top: 16px;
  max-height: calc(100% - 130px); overflow-y: auto;
  z-index: 45; width: 250px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(12px);
  box-shadow: var(--shadow); padding: 13px 15px;
}
.legend-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.legend-title { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.legend-toggle {
  width: 22px; height: 22px; border: none; border-radius: 6px;
  background: rgba(255,255,255,.06); color: var(--muted);
  font-size: 13px; line-height: 1; cursor: pointer;
}
.legend.min .legend-body { display: none; }
.legend-body { margin-top: 11px; display: flex; flex-direction: column; gap: 8px; }
.legend-item {
  display: flex; align-items: center; gap: 10px;
  border: none; background: none; padding: 3px 4px; border-radius: 7px;
  color: var(--text-dim); font-family: inherit; font-size: 12.3px; font-weight: 600;
  text-align: left; cursor: pointer; line-height: 1.3;
}
.legend-item:hover { background: rgba(255,255,255,.05); }
.legend-item.on { color: #fff; background: rgba(91,155,255,.12); }
.legend-swatch { flex: none; width: 16px; height: 4px; border-radius: 2px; }
.legend-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 8px; }
.legend-note .row { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); }

/* Кнопка легенды на узких экранах, где легенда сама скрыта (см. адаптив ниже) */
.legend-fab {
  display: none; position: absolute; right: 18px; top: 16px; z-index: 47;
  width: 34px; height: 34px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--panel); color: var(--text-dim); font-size: 15px; cursor: pointer;
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
}

/* ---------- Карточка проекта ---------- */
.project-card {
  position: absolute; left: 18px; top: 16px;
  z-index: 50; width: 372px; max-height: calc(100% - 130px);
  overflow-y: auto;
  background: rgba(20, 39, 74, .96); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(14px);
  box-shadow: var(--shadow); padding: 18px 20px;
  animation: softIn .2s ease-out;
}
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-dirs { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-dir { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--text-dim); }
.pc-dir .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.pc-close {
  flex: none; width: 24px; height: 24px; border: none; border-radius: 7px;
  background: rgba(255,255,255,.07); color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer;
}
.pc-num { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 1px; }
.pc-title { margin: 4px 0 0; font-family: var(--font-serif); font-size: 18.5px; font-weight: 700; line-height: 1.3; color: #F4F7FC; }
.pc-level { margin-top: 10px; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--text-dim); }
.pc-level .bars { display: flex; gap: 3px; }
.pc-level .bar { width: 13px; height: 5px; border-radius: 2px; background: var(--border); }
.pc-level .bar.f { background: var(--accent); }
.pc-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tag { padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.pc-desc { margin: 13px 0 0; font-size: 13.5px; color: var(--text-dim); }
.pc-block { margin-top: 12px; padding: 10px 12px; background: rgba(12, 26, 48, .55); border: 1px solid var(--border-soft); border-radius: 10px; }
.pc-block h4 { margin: 0 0 4px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.pc-block p { margin: 0; font-size: 13px; color: var(--text-dim); }
.pc-cta { margin-top: 14px; width: 100%; }

/* ---------- Нижняя CTA-панель ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(12,26,48,0) 0%, rgba(10,21,38,.88) 34%, rgba(9,18,33,.97) 100%);
  pointer-events: none;
}
.cta-inner {
  pointer-events: auto;
  margin: 0 auto; max-width: 880px;
  display: flex; align-items: center; gap: 18px;
  padding: 13px 20px;
  background: linear-gradient(180deg, rgba(27,54,93,.95), rgba(17,34,62,.95));
  border: 1px solid var(--border); border-radius: 16px;
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.cta-ico {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(91,155,255,.14); color: var(--accent); font-size: 16px;
}
.cta-text { flex: 1 1 auto; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.cta-bar .btn { flex: none; }

/* ---------- Модальное окно ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(5, 11, 22, .72); backdrop-filter: blur(6px);
  animation: softIn .15s ease-out;
}
.modal {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--panel-solid); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow); padding: 26px 28px;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border: none; border-radius: 8px;
  background: rgba(255,255,255,.07); color: var(--muted);
  font-size: 16px; line-height: 1; cursor: pointer;
}
.modal-title { margin: 0 28px 18px 0; font-family: var(--font-serif); font-size: 19px; line-height: 1.35; color: #F4F7FC; }
.field { display: block; margin-bottom: 13px; }
.field span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: var(--text-dim); }
.field input {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg-2); color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--accent); }
.form-error { margin: 0 0 12px; font-size: 12.5px; color: var(--err); }
.form-done { text-align: center; padding: 18px 0 6px; }
.done-big { margin: 0; font-size: 17px; font-weight: 700; color: var(--ok); }
.done-small { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 1520px) {
  /* На узких экранах основную роль легенды играют подписи линий на самой карте,
     но полная легенда всё равно доступна по кнопке — как всплывающая панель. */
  .legend { display: none; }
  .legend-fab { display: flex; }
  .legend.open {
    display: block;
    width: min(250px, calc(100vw - 36px));
    z-index: 90;
  }
}
@media (max-width: 760px) {
  /* В шапке помещаются логотип, ссылка, переключатель темы и кнопка PDF —
     название до появления кнопки уже сжималось в многоточие, теперь убираем
     его целиком, чтобы строка не выглядела слипшейся. */
  .brand-text { display: none; }
  .brand-logo { height: 26px; }
  .site-header { padding: 0 14px; gap: 10px; }
  .site-nav { gap: 12px; }
  .theme-toggle { width: 32px; height: 32px; font-size: 14px; }
  .pdf-btn-full { display: none; }
  .pdf-btn-short { display: inline; }
  .nav-link { font-size: 13px; }
  .btn { padding: 9px 13px; font-size: 12.5px; }
  .filter-bar { padding: 8px 14px; gap: 6px 10px; }
  .filter-label { display: none; }
  .chip { font-size: 11.5px; padding: 5px 9px; gap: 5px; }
  .filter-meta { margin-left: auto; gap: 8px; }
  .project-card {
    position: fixed;
    left: 0; right: 0; top: auto; bottom: 0; width: auto;
    max-height: 62vh; border-radius: 18px 18px 0 0;
    padding-bottom: 26px;
    z-index: 59; /* поверх нижней CTA-панели */
  }
  .map-controls { left: 10px; bottom: 150px; padding: 5px 6px; gap: 4px; }
  .map-hint { display: none; }
  .mc-hint { display: none; }
  .legend-fab { top: 12px; right: 14px; }
  .map-tip { max-width: calc(100vw - 24px); }
  .cta-inner { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .cta-text { flex-basis: 100%; font-size: 13px; }
  .cta-ico { display: none; }
  .cta-bar .btn { width: 100%; justify-content: center; }
}

/* ---------- Экономия ресурсов на слабых устройствах ---------- */
/* backdrop-filter заставляет размывать фон под панелью на каждом кадре
   панорамы — на телефонах это заметно дороже, чем выглядит. Меняем
   размытие на плотный фон: визуально почти то же, рисуется даром. */
@media (max-width: 760px) {
  .site-header, .filter-bar, .legend, .project-card,
  .cta-inner, .modal-backdrop, .modal, .map-tip, .pdf-menu {
    backdrop-filter: none;
  }
  .site-header { background: #0C1A30; }
  .filter-bar { background: #0A1526; }
  .legend, .project-card, .map-tip { background: #16294A; }
  .cta-inner { background: #1B365D; }
  .modal-backdrop { background: rgba(5, 11, 22, .92); }
  /* пульсация подсветки — это перерисовка области карты 33 раза в секунду
     всё время, пока включён фильтр; на мобильном оставляем статичный ореол */
  .station.match .halo { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .station.match .halo { animation: none; }
  .pdf-menu, .project-card, .map-tip, .modal-backdrop { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Страница «О карте» ---------- */
.about-wrap { max-width: 780px; margin: 0 auto; padding: 40px 22px 140px; }
.about-wrap h1 { font-family: var(--font-serif); font-size: 32px; line-height: 1.22; margin: 0 0 6px; color: #F4F7FC; }
.about-wrap h2 { font-family: var(--font-serif); font-size: 22px; margin: 38px 0 12px; color: #F4F7FC; }
.about-wrap h3 { font-size: 16px; margin: 26px 0 10px; color: var(--text); }
.about-wrap .lead { font-size: 17px; color: var(--text-dim); }
.about-wrap p { color: var(--text-dim); font-size: 15px; }
.about-wrap li { color: var(--text-dim); margin-bottom: 9px; }
.about-wrap strong { color: var(--text); }
.about-wrap em { color: var(--text-dim); }
.about-wrap hr { border: none; border-top: 1px solid var(--border-soft); margin: 32px 0; }
.about-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.about-back:hover { text-decoration: underline; }
.about-cta { margin-top: 34px; }
