/* Страница «Об исследовании»: оглавление слева, разделы справа.
 * Цвета и шрифты — переменные из css/site.css (светлая и тёмная темы).
 */

.about {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 72px;
}
.about-body { min-width: 0; max-width: 760px; }

/* --- Оглавление ------------------------------------------------------------ */
.about-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}
.about-toc__title {
  margin: 0 0 10px;
  color: var(--muted);
  font: 600 0.75rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.about-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.about-toc li { counter-increment: toc; }
.about-toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--fg-soft);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
}
.about-toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.about-toc a:hover { color: var(--accent); }

/* --- Разделы --------------------------------------------------------------- */
.about-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.about-section:first-child { padding-top: 0; border-top: 0; }
.about-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
}
.about-section__num {
  flex: none;
  color: var(--accent);
  font: 600 0.85rem/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.about-text { color: var(--fg-soft); line-height: 1.7; }
.about-text > * { margin: 0; }
.about-text > * + * { margin-top: 1em; }
.about-text strong { color: var(--fg); }

/* Первый абзац страницы — название проекта, крупнее */
.about-section:first-child .about-text > p:first-child {
  padding-left: 18px;
  border-left: 3px solid var(--accent-bright);
  color: var(--fg);
  font: 500 clamp(1.08rem, 1rem + 0.4vw, 1.25rem)/1.55 var(--font-serif);
}

.about-text ul {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.about-text li {
  position: relative;
  padding-left: 22px;
}
.about-text li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
}

/* Цифры результатов: те же плитки, что .stats, но подписи длиннее */
.about-text > .about-stats { margin-top: 1.25em; }
.about-stats > div { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.about-stats dt { line-height: 1.35; }
.about-stats dd { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }

.about-note {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--fg-soft);
  font-size: 0.93rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-toc { position: static; }
}
