/* ==========================================================================
   ЗЕЛЁНАЯ СИБИРЬ · ТОМСК
   Палитра: графитовый тёмный фон, тёмно-бордовый акцент розы и глубокий хвойный
   ========================================================================== */

:root {
  --bg: #0c0f0d;
  --bg-elevated: #121714;
  --bg-panel: #171d19;

  --ink: #e8e5dc;
  --ink-secondary: #a5a39a;
  --ink-muted: #6e6e66;

  --line: rgba(232, 229, 220, 0.12);
  --line-strong: rgba(232, 229, 220, 0.28);

  /* Фирменный тёмно-бордовый цвет розы и тёмно-зелёный лесной */
  --burgundy: #8f2d38;
  --burgundy-bright: #b84350;
  --burgundy-soft: rgba(143, 45, 56, 0.22);

  --forest: #496e50;
  --moss: #7fa082;
  --moss-soft: rgba(73, 110, 80, 0.22);
  --ochre: #c89d6c;
  --danger: #c44949;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

/* ==========================================================================
   ПРЕЛОАДЕР: 3D-РОЗА ИЗ СИМВОЛОВ + ЛИНИЯ БЕЗ ПРОЦЕНТОВ
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #090b0a;
  transition: opacity 0.75s var(--ease), visibility 0.75s var(--ease);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px;
}

.ascii-rose {
  font-family: var(--font-mono);
  font-size: clamp(8px, 1.42vh, 13px);
  line-height: 1.08;
  white-space: pre;
  user-select: none;
  min-height: 36em;
  display: block;
}

.rt-1 { color: #6e242c; }
.rt-2 { color: #a33944; }
.rt-3 { color: #cf5c66; }
.rt-4 { color: #e8959c; }
.rt-5 { color: #3c5740; }
.rt-6 { color: #5f8564; }
.rt-7 { color: #8ab08e; }

.preloader__line-track {
  width: min(260px, 64vw);
  height: 1.5px;
  background: rgba(232, 229, 220, 0.14);
  overflow: hidden;
}

.preloader__line-fill {
  width: 0%;
  height: 100%;
  background: #d8d4c8;
}

/* ==========================================================================
   ШАПКА И ОБЩИЕ ЭЛЕМЕНТЫ
   ========================================================================== */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}

.reading-bar__fill {
  width: 0%;
  height: 100%;
  background: var(--burgundy-bright);
}

.container {
  width: min(1260px, calc(100% - 44px));
  margin: 0 auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 140;
  background: rgba(12, 15, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.wordmark__city {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--moss);
  border: 1px solid var(--line);
  padding: 2px 7px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--ink);
}

.replay-link {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.replay-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.mono-muted {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.btn-burgundy {
  background: var(--burgundy);
  color: var(--ink);
  border: 1px solid var(--burgundy-bright);
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-burgundy:hover {
  background: var(--burgundy-bright);
}

/* ==========================================================================
   ПЕРВЫЙ ЭКРАН: ПОИСК ПО ТОМСКУ СЛЕВА + РЕАЛИСТИЧНАЯ 3D-ЗЕМЛЯ СПРАВА
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding: 102px 0 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 5.8vw, 84px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(21px, 2.05vw, 28px);
  line-height: 1.34;
  color: #d7d4c8;
  margin-bottom: 26px;
  max-width: 590px;
}

.hero-search {
  display: flex;
  max-width: 580px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  margin-bottom: 14px;
}

.hero-search__input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14.5px;
  outline: none;
}

.hero-search__input::placeholder {
  color: var(--ink-muted);
}

.hero-search__btn {
  background: var(--burgundy);
  color: var(--ink);
  border: none;
  border-left: 1px solid var(--line-strong);
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.hero-search__btn:hover {
  background: var(--burgundy-bright);
}

.hero__quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 34px;
}

.quick-jump {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  padding: 3px 10px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.quick-jump:hover {
  border-color: var(--burgundy-bright);
  color: var(--ink);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.fact dt {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.fact dd {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.hero__globe {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.globe-frame {
  width: min(530px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.earth-canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  cursor: grab;
}

.earth-canvas:active {
  cursor: grabbing;
}

.globe-note {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
}

.hero-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.hero-stagger-globe {
  opacity: 0;
  transition: opacity 1.1s ease;
}

body.is-ready .hero-stagger {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready .hero-stagger:nth-child(1) { transition-delay: 0.04s; }
body.is-ready .hero-stagger:nth-child(2) { transition-delay: 0.12s; }
body.is-ready .hero-stagger:nth-child(3) { transition-delay: 0.20s; }
body.is-ready .hero-stagger:nth-child(4) { transition-delay: 0.28s; }
body.is-ready .hero-stagger:nth-child(5) { transition-delay: 0.34s; }
body.is-ready .hero-stagger:nth-child(6) { transition-delay: 0.42s; }

body.is-ready .hero-stagger-globe {
  opacity: 1;
  transition-delay: 0.12s;
}

/* ==========================================================================
   СЕКЦИИ И ЗАГОЛОВКИ
   ========================================================================== */
.section {
  padding: 96px 0;
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.chapter-head {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 20px;
  margin-bottom: 44px;
  align-items: baseline;
}

.chapter-head--with-action {
  grid-template-columns: 68px 1fr auto;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--burgundy-bright);
}

.chapter-head__titles {
  max-width: 760px;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 14px;
}

.chapter-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.sub-heading {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   БЛОК I: ИНТЕРАКТИВНАЯ КАРТА ТОМСКА + ПОИСК ВТОРСЫРЬЯ
   ========================================================================== */
.map-workspace {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.map-toolbar {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.map-search-box {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}

.map-search-box__icon {
  margin-left: 14px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.map-search-box__input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.map-search-box__clear {
  background: none;
  border: none;
  color: var(--ink-muted);
  padding: 0 14px;
  font-size: 15px;
  cursor: pointer;
}

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

.map-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  padding: 6px 13px;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.map-chip.is-active {
  background: var(--burgundy);
  border-color: var(--burgundy-bright);
  color: var(--ink);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot--burgundy {
  background: var(--burgundy-bright);
  box-shadow: 0 0 0 3px rgba(184, 67, 80, 0.28);
}

.legend-dot--green {
  background: var(--forest);
  box-shadow: 0 0 0 3px rgba(73, 110, 80, 0.28);
}

.map-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: 560px;
}

.points-sidebar {
  border-right: 1px solid var(--line);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.point-item {
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  color: var(--ink);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.18s ease;
}

.point-item:hover {
  background: rgba(232, 229, 220, 0.03);
}

.point-item.is-selected {
  background: var(--bg-panel);
  box-shadow: inset 3px 0 0 var(--burgundy-bright);
}

.point-item.is-dimmed {
  opacity: 0.38;
}

.point-item__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.point-item__addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ochre);
}

.point-item__status {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--line);
}

.point-item__status--open {
  color: var(--moss);
  border-color: rgba(127, 160, 130, 0.35);
}

.point-item__status--closed {
  color: var(--ink-muted);
}

.point-item__name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.point-item__rules {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.48;
}

.point-item__warn {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #e2959d;
  background: var(--burgundy-soft);
  padding: 2px 7px;
}

.tomsk-map-wrap {
  position: relative;
  height: 100%;
  background: #0d110e;
}

.tomsk-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Тёмная подложка карты Томска без искажения цветов маркеров и без водяных плашек */
.leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.84) contrast(0.95) saturate(0.45);
}

.leaflet-control-attribution {
  display: none !important;
}

/* Кастомные маркеры в палитре розы (тёмно-бордовый) и хвои (тёмно-зелёный) */
.tomsk-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tomsk-pin__core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #e8e5dc;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tomsk-pin--burgundy .tomsk-pin__core {
  background: #9e333e;
  box-shadow: 0 0 0 6px rgba(158, 51, 62, 0.38);
  transform: scale(1.18);
}

.tomsk-pin--green .tomsk-pin__core {
  background: #496e50;
  box-shadow: 0 0 0 5px rgba(73, 110, 80, 0.32);
}

.tomsk-pin--muted .tomsk-pin__core {
  background: #383d39;
  border-color: #777;
  opacity: 0.45;
  transform: scale(0.82);
}

/* Всплывающее окошко информации о точке на карте Томска */
.leaflet-popup-content-wrapper {
  background: #141916 !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong);
  border-radius: 0 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65) !important;
}

.leaflet-popup-tip {
  background: #141916 !important;
}

.leaflet-popup-content {
  margin: 16px 18px !important;
  line-height: 1.5 !important;
}

.popup-card__district {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ochre);
  margin-bottom: 3px;
}

.popup-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 8px;
}

.popup-card__hours {
  font-size: 12.5px;
  color: var(--ink);
  padding: 6px 9px;
  background: rgba(232, 229, 220, 0.05);
  border-left: 2px solid var(--moss);
  margin-bottom: 10px;
}

.popup-card__row {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 7px;
}

.popup-card__row strong {
  color: var(--ink);
  font-weight: 500;
}

.popup-card__min {
  font-size: 12px;
  padding: 7px 9px;
  background: var(--burgundy-soft);
  border-left: 2px solid var(--burgundy-bright);
  color: #edd5d8;
}

/* ==========================================================================
   БЛОК II: ДОСКА ЭКО-ОБЪЯВЛЕНИЙ ТОМСКА
   ========================================================================== */
.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.event-filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-filter.is-active,
.event-filter:hover {
  border-color: var(--moss);
  color: var(--ink);
  background: var(--moss-soft);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 26px 28px;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.event-card:hover {
  border-color: var(--burgundy-bright);
  background: var(--bg-panel);
  transform: translateY(-2px);
}

.event-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.event-card__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ochre);
}

.event-card__age {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 2px 8px;
  background: var(--burgundy-soft);
  border: 1px solid rgba(184, 67, 80, 0.45);
  color: #f0b6bd;
}

.event-card__title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.14;
  margin-bottom: 12px;
}

.event-card__desc {
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin-bottom: 18px;
}

.event-card__details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.event-card__details strong {
  color: var(--ink);
  font-weight: 500;
}

.event-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--moss);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.event-card:hover .event-card__cta {
  color: #e8959c;
}

.board-how-it-works {
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(232, 229, 220, 0.02);
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.board-how-it-works strong {
  color: var(--ink);
  font-weight: 500;
}

/* ==========================================================================
   БЛОК III: ОПРЕДЕЛИТЕЛЬ МАРКИРОВКИ И СИМВОЛИКИ ПЛАСТИКА
   ========================================================================== */
.decoder-panel {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 28px;
}

.decoder-search-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}

.decoder-input-wrap {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.decoder-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 13px 15px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14.5px;
  outline: none;
}

.decoder-input:focus {
  border-color: var(--burgundy-bright);
}

.decoder-safety-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.safety-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--line);
}

.safety-pill--safe {
  border-color: rgba(127, 160, 130, 0.45);
  color: var(--moss);
}

.safety-pill--once {
  border-color: rgba(200, 157, 108, 0.45);
  color: var(--ochre);
}

.safety-pill--danger {
  border-color: rgba(196, 73, 73, 0.55);
  color: #e58787;
}

.visual-clue-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.clue-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  padding: 5px 11px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clue-btn:hover {
  border-color: var(--ochre);
  color: var(--ink);
}

.decoder-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.symbols-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sym-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.sym-tile:hover {
  border-color: var(--line-strong);
}

.sym-tile.is-active {
  background: var(--bg-panel);
  border-color: var(--burgundy-bright);
  box-shadow: inset 0 0 0 1px var(--burgundy-bright);
}

.sym-tile.is-filtered-out {
  opacity: 0.25;
}

.sym-tile__svg {
  width: 46px;
  height: 46px;
}

.sym-tile__code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.sym-tile__short {
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.25;
}

.sym-tile__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sym-tile__dot--safe { background: var(--moss); }
.sym-tile__dot--once { background: var(--ochre); }
.sym-tile__dot--danger { background: var(--danger); }

.symbol-verdict {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 26px;
}

.verdict-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.verdict-head__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.verdict-head__title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.12;
  margin-top: 4px;
}

.verdict-block {
  margin-bottom: 16px;
}

.verdict-block h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.verdict-block p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.62;
}

.verdict-alert {
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.55;
}

.verdict-alert--safe {
  background: var(--moss-soft);
  border-left: 3px solid var(--moss);
  color: #d3e5d5;
}

.verdict-alert--once {
  background: rgba(200, 157, 108, 0.14);
  border-left: 3px solid var(--ochre);
  color: #ebd7be;
}

.verdict-alert--danger {
  background: rgba(196, 73, 73, 0.16);
  border-left: 3px solid var(--danger);
  color: #f2c4c4;
}

.verdict-map-jump {
  display: inline-block;
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--burgundy-bright);
  color: var(--ink);
  padding: 9px 15px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.verdict-map-jump:hover {
  background: var(--burgundy);
}

/* ==========================================================================
   БЛОК IV: ПРОБЛЕМЫ ТОМСКА И ОРГАНИЗАЦИИ ДЛЯ НОВИЧКОВ
   ========================================================================== */
.tomsk-problems-grid,
.orgs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.problem-card,
.org-card {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 26px 28px;
}

.problem-card__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ochre);
  margin-bottom: 10px;
}

.problem-card h4,
.org-card h4 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 10px;
}

.problem-card p,
.org-card p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.68;
}

.org-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.org-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--line);
}

.org-badge--offline {
  color: var(--moss);
  border-color: rgba(127, 160, 130, 0.4);
}

.org-badge--online {
  color: var(--ochre);
  border-color: rgba(200, 157, 108, 0.4);
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО И ФОРМА ДОСКИ ОБЪЯВЛЕНИЙ
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 7, 6, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-dialog {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  padding: 30px 32px;
}

.modal-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.modal-dialog__head h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
}

.modal-close {
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.modal-dialog__hint {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 10px 12px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.inline-selects {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
}

.modal-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.form-status {
  font-size: 13px;
  color: var(--moss);
}

.reg-demo-box {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 28px;
}

/* ==========================================================================
   ПОДВАЛ И АДАПТИВНОСТЬ
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__sub {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 6px;
}

.footer__right {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.footer__right strong {
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 400;
}

.footer__up {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

@media (max-width: 1020px) {
  .nav {
    display: none;
  }

  .hero__layout,
  .decoder-layout,
  .events-grid,
  .tomsk-problems-grid,
  .orgs-grid {
    grid-template-columns: 1fr;
  }

  .chapter-head,
  .chapter-head--with-action {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .map-split {
    grid-template-columns: 1fr;
    height: auto;
  }

  .points-sidebar {
    max-height: 280px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .tomsk-map-wrap {
    height: 420px;
  }

  .hero__globe {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero__facts,
  .field-row {
    grid-template-columns: 1fr;
  }

  .symbols-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search__btn {
    padding: 12px;
    border-left: none;
    border-top: 1px solid var(--line-strong);
  }
}
