/* ═══════════════════════════════════════════════
   Барнаул · Природное наследие Железнодорожного района
   Дизайн-система: редакционный стиль, бумага и хвоя
   ═══════════════════════════════════════════════ */

:root {
  --paper:      #f5f2ea;
  --paper-2:    #ebe6d8;
  --card:       #fdfcf8;
  --ink:        #1c2a21;
  --ink-soft:   #4b5c50;
  --green:      #22452f;
  --green-deep: #142a1e;
  --green-soft: #dde5da;
  --gold:       #8a6826;
  --gold-soft:  #d8c48d;
  --line:       rgba(28, 42, 33, .16);
  --line-light: rgba(245, 242, 234, .22);
  --serif: 'Prata', 'Georgia', 'Times New Roman', serif;
  --sans:  'Manrope', 'Segoe UI', system-ui, sans-serif;
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 24px 60px -24px rgba(20, 42, 30, .35);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.18; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

/* длинные русские слова и ссылки не должны распирать колонки на узких экранах */
.pull, .street__quote, .street__tag, .q-card h3, .hypothesis__text, .chips li, .timeline li {
  overflow-wrap: break-word;
}

a { color: var(--green); text-decoration: none; }

.container { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }

::selection { background: var(--gold-soft); color: var(--green-deep); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 1200;
  background: var(--green-deep); color: var(--paper);
  padding: .6rem 1.2rem; border-radius: 0 0 10px 10px; font-weight: 700; font-size: .9rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ── Прогресс чтения ─────────────────────────── */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000;
  background: transparent;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

/* ── Шапка ───────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  padding: 1rem 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-solid {
  /* без backdrop-filter: он создаёт containing block для fixed-панели меню
     и ломает её позиционирование после прокрутки */
  background: rgba(245, 242, 234, .97);
  padding: .65rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .65rem; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text {
  font-family: var(--serif); font-size: 1.02rem; letter-spacing: .02em; color: #fff;
  white-space: nowrap; transition: color .3s;
}
.logo__text em { font-style: normal; color: var(--gold-soft); margin: 0 .18em; }
.header.is-solid .logo__text { color: var(--green-deep); }
.header.is-solid .logo__text em { color: var(--gold); }

.nav { display: flex; gap: 1.6rem; }
.nav a {
  font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.85); position: relative; padding: .25rem 0;
  transition: color .3s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--gold-soft); transition: width .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.header.is-solid .nav a { color: var(--ink-soft); }
.header.is-solid .nav a:hover, .header.is-solid .nav a.is-active { color: var(--green-deep); }
.header.is-solid .nav a::after { background: var(--gold); }

.burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: .5rem; cursor: pointer;
}
.burger span { width: 24px; height: 2px; background: #fff; transition: .3s var(--ease); border-radius: 2px; }
.header.is-solid .burger span { background: var(--green-deep); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Типографика разделов ────────────────────── */
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1.1rem; display: flex; align-items: center; gap: .9rem;
}
.kicker::before { content: ''; width: 34px; height: 1px; background: var(--gold); flex: none; }
.kicker--light { color: var(--gold-soft); }
.kicker--light::before { background: var(--gold-soft); }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--paper-2); }
.section--dark {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(216, 196, 141, .12), transparent 60%),
    var(--green-deep);
  color: var(--paper);
}

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.01em; }
.section__lead { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }
.section--dark .section__lead { color: rgba(245,242,234,.75); }

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  /* «ПК-режим» телефона сообщает вьюпорт ~2000px высоты — ограничиваем hero разумной высотой */
  min-height: min(100vh, 950px);
  min-height: min(100svh, 950px);
  display: flex; align-items: flex-end;
  color: #fff; isolation: isolate; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.08);
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(12deg, rgba(15, 30, 22, .88) 8%, rgba(15, 30, 22, .45) 46%, rgba(15, 30, 22, .18) 78%),
    linear-gradient(180deg, rgba(15, 30, 22, .7), transparent 32%);
}
.hero__content { padding: clamp(4.5rem, 12vh, 9rem) 0 clamp(3.5rem, 9vh, 6.5rem); }
.hero__title {
  font-size: clamp(1.85rem, 5.4vw, 4.4rem);
  max-width: 19ch;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}
.hero__title em { font-style: italic; color: var(--gold-soft); }
.hero__lead { max-width: 46rem; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.88); margin-bottom: 2rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn--gold { background: var(--gold-soft); color: var(--green-deep); }
.btn--gold:hover { background: #e5d6ab; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); transform: translateY(-2px); }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin: 0;
  padding-top: 1.8rem; border-top: 1px solid var(--line-light);
}
.hero__stats dt { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--gold-soft); }
.hero__stats dd { margin: .2rem 0 0; font-size: .85rem; color: rgba(255,255,255,.82); letter-spacing: .02em; }

/* ── О районе ────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start; margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.about-grid__text p { color: var(--ink-soft); }
.about-grid__text strong { color: var(--ink); }

.pull {
  margin: 2rem 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.18rem; line-height: 1.55; color: var(--green);
}

.framed { margin: 0; }
.framed img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; }
.framed figcaption {
  margin-top: .8rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
}

.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.timeline li {
  background: var(--card); padding: 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .5rem;
  transition: background .3s;
}
.timeline li:hover { background: var(--green-soft); }
.timeline__year { font-family: var(--serif); font-size: 1.35rem; color: var(--gold); }
.timeline li span:last-child { font-size: .86rem; line-height: 1.5; color: var(--ink-soft); }

.map-card { margin: 1.6rem 0 0; }
.map-card .map-wrap {
  max-width: 880px; margin-inline: auto;
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.map-card iframe {
  display: block; width: 100%; height: 380px; height: clamp(320px, 45vw, 460px);
  border: 0; filter: saturate(.82);
}
/* на тач-устройствах и всех узких экранах («ПК-режим» телефона) карта
   перехватывает палец/колесо: сначала активируем по тапу */
.map-hint {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 42, 30, .10);
}
@media (hover: none) and (pointer: coarse), (max-width: 1020px) {
  .map-hint {
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 1rem;
  }
  .map-hint span {
    background: var(--paper); color: var(--green-deep);
    border: 1px solid var(--line); border-radius: 999px;
    padding: .55rem 1.1rem; font-size: .85rem; font-weight: 700; letter-spacing: .03em;
    box-shadow: var(--shadow);
  }
  .map-wrap.is-active .map-hint { opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
}
.map-card figcaption {
  margin-top: .8rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); text-align: center;
}

/* ── Урбанистика ─────────────────────────────── */
.epoch-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.epoch {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.epoch:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.epoch__media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.epoch__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.epoch:hover .epoch__media img { transform: scale(1.05); }
.epoch__body { padding: 1.5rem 1.6rem 1.7rem; }
.epoch--text .epoch__body { padding-top: 2rem; }
.epoch--text { background: var(--green-soft); border-color: transparent; }
.epoch__era {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: .55rem;
}
.epoch h3 { font-size: 1.32rem; }
.epoch p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ── Природа: бенто ──────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.bento__item {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.7rem 1.7rem 1.6rem; display: flex; flex-direction: column; gap: .35rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bento__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bento__item h3 { font-size: 1.3rem; }
.bento__item p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.bento__item figure { margin: -1.7rem -1.7rem 1.2rem; }
.bento__item figure img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px 16px 0 0; }
.bento__item--wide { grid-column: span 2; flex-direction: row; padding: 0; overflow: hidden; }
.bento__item--wide figure { margin: 0; flex: 0 0 44%; }
.bento__item--wide figure img { height: 100%; border-radius: 16px 0 0 16px; }
.bento__item--wide .bento__text { padding: 1.7rem; flex: 1; }
.bento__num {
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1;
  margin-bottom: .8rem;
}
.bento__item--img { padding: 0; overflow: hidden; }
.bento__item--img figure { margin: 0; }
.bento__item--img figure img { height: 190px; border-radius: 16px 16px 0 0; }
.bento__item--img .bento__text { padding: 1.4rem 1.6rem 1.6rem; }

/* ── Полоса статистики ───────────────────────── */
.stats-strip {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.stat { background: var(--card); padding: 1.8rem 1.5rem; text-align: center; }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--green); }
.stat__label { font-size: .84rem; color: var(--ink-soft); letter-spacing: .03em; }

/* ── Проспекты ───────────────────────────────── */
.street {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.8rem, 5vw, 4.2rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.street:last-child { border-bottom: 1px solid var(--line); }
.street__index {
  position: absolute; top: clamp(2.2rem, 4vw, 3.2rem); right: 0;
  font-family: var(--serif); font-size: clamp(4rem, 9vw, 7rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line); pointer-events: none;
  user-select: none;
}
.street--flip .street__index { right: auto; left: 0; }
.street__body { max-width: 34rem; }
.street--flip .street__body { order: 2; }
.street--flip .street__media { order: 1; }
.street__tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green);
  background: var(--green-soft); padding: .45rem .9rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.street h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .9rem; }
.street p { color: var(--ink-soft); }
.street__quote {
  margin: 1.6rem 0; padding: 1.3rem 1.5rem; border-left: 3px solid var(--gold);
  background: var(--card); border-radius: 0 12px 12px 0;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; color: var(--green);
}
.street__quote cite {
  display: block; margin-top: .7rem; font-family: var(--sans); font-style: normal;
  font-size: .8rem; letter-spacing: .04em; color: var(--ink-soft);
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0 0; }
.chips li {
  font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
}
.street__media { display: grid; gap: 1.3rem; align-content: start; }
.street__media .framed:nth-child(even) { width: 88%; margin-left: auto; }
.street__media .framed:nth-child(odd) { width: 92%; }

/* ── Интервью ────────────────────────────────── */
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.q-card {
  background: rgba(245, 242, 234, .06); border: 1px solid var(--line-light);
  border-radius: 16px; padding: 1.8rem 1.7rem;
  display: flex; flex-direction: column;
  transition: background .3s, transform .35s var(--ease);
}
.q-card:hover { background: rgba(245, 242, 234, .1); transform: translateY(-5px); }
.q-card__n { font-family: var(--serif); font-size: 1rem; color: var(--gold-soft); margin-bottom: 1rem; }
.q-card h3 { font-size: 1.12rem; line-height: 1.45; color: #fff; }
.q-card p { margin: .4rem 0 0; font-size: .93rem; color: rgba(245,242,234,.72); }

.interview__cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line-light); border-radius: 16px; padding: clamp(1.6rem, 3.5vw, 2.4rem);
  background: rgba(245, 242, 234, .05);
}
.interview__num .stat__num { font-size: clamp(3.2rem, 6vw, 4.6rem); color: var(--gold-soft); }
.interview__cta-text h3 { color: #fff; font-size: 1.3rem; margin-bottom: .4rem; }
.interview__cta-text p { margin: 0; color: rgba(245,242,234,.72); }

/* ── Видеофильм (Приложение 25) ──────────────── */
.film {
  margin: 1.4rem 0 0; padding: clamp(1rem, 2.5vw, 1.6rem);
  background: rgba(245, 242, 234, .05); border: 1px solid var(--line-light);
  border-radius: 16px;
}
.film video {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain;
  background: #0b1a12; border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}
.film figcaption {
  margin-top: 1rem; font-size: .84rem; letter-spacing: .05em;
  color: rgba(245, 242, 234, .68); text-align: center;
}
.film video::-webkit-media-controls-panel { background-image: linear-gradient(transparent, rgba(11, 26, 18, .85)); }

/* ── Итоги ───────────────────────────────────── */
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.result {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column; gap: .4rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.result:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.result span { font-family: var(--serif); color: var(--gold); font-size: 1.05rem; }
.result h3 { font-size: 1.16rem; }
.result p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

.hypothesis {
  text-align: center; max-width: 46rem; margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--green-deep); color: var(--paper); border-radius: 20px;
  position: relative; overflow: hidden;
}
.hypothesis::before {
  content: '❧'; position: absolute; top: .9rem; left: 50%; transform: translateX(-50%);
  font-size: 1.6rem; color: var(--gold-soft); opacity: .8;
}
.hypothesis__label {
  font-size: .78rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-soft); margin: .6rem 0 1rem;
}
.hypothesis__text { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.5; margin: 0 auto 1.2rem; max-width: 34rem; }
.hypothesis__text em { color: var(--gold-soft); font-style: italic; }
.hypothesis__persp { margin: 0; font-size: .9rem; color: rgba(245,242,234,.65); }

/* ── Галерея ─────────────────────────────────── */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.gallery__item {
  position: relative; margin: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  background: var(--green-deep); border: 0; padding: 0; display: block; width: 100%;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3;
  transition: transform .7s var(--ease), opacity .4s;
}
.gallery__item:hover img { transform: scale(1.06); opacity: .85; }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem .9rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(15, 30, 22, .82));
  color: #fff; font-size: .8rem; letter-spacing: .03em; line-height: 1.4;
  opacity: 0; transform: translateY(6px); transition: .35s var(--ease);
}
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { opacity: 1; transform: translateY(0); }

/* ── Лайтбокс ────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(12, 22, 16, .94);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox__figure img {
  max-width: 100%; max-height: 78vh; border-radius: 10px; margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox__figure figcaption { color: rgba(255,255,255,.85); margin-top: 1rem; font-size: .92rem; letter-spacing: .03em; }
.lightbox__close, .lightbox__arrow {
  background: rgba(245,242,234,.08); color: #fff; border: 1px solid rgba(245,242,234,.25);
  border-radius: 999px; cursor: pointer; flex: none;
  transition: background .25s, transform .25s;
}
.lightbox__close { width: 46px; height: 46px; font-size: 1.5rem; position: absolute; top: 1.2rem; right: 1.2rem; }
.lightbox__arrow { width: 52px; height: 52px; font-size: 1.25rem; }
.lightbox__close:hover, .lightbox__arrow:hover { background: rgba(245,242,234,.18); transform: scale(1.06); }

/* ── Подвал ──────────────────────────────────── */
.footer { background: var(--green-deep); color: rgba(245,242,234,.78); }
.footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr .7fr .8fr; gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.footer__col h4 {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-soft); margin: 1.6rem 0 .7rem;
}
.footer__col h4:first-child { margin-top: 0; }
.footer__col p { font-size: .92rem; line-height: 1.65; margin-bottom: .6rem; }
.footer__about p { margin-top: 1.2rem; max-width: 24rem; }
.logo--light .logo__text { color: #fff; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer__nav a { color: rgba(245,242,234,.78); font-size: .92rem; transition: color .25s; overflow-wrap: anywhere; }
.footer__nav a:hover { color: var(--gold-soft); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--line-light);
}
.footer__bottom p { margin: 0; font-size: .8rem; color: rgba(245,242,234,.62); letter-spacing: .04em; }

/* ── Анимации появления ──────────────────────── */
/* класс .js ставит скрипт: без JS весь контент виден сразу */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; } .d5 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Адаптив ─────────────────────────────────── */
@media (max-width: 1060px) {
  /* меню-панель: на планшетах и узких окнах пункты уже не влезают в строку */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    background: var(--green-deep); flex-direction: column; gap: 0;
    padding: 6rem 2.2rem 2rem; transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 950;
  }
  .nav.is-open { transform: none; box-shadow: -30px 0 80px rgba(0,0,0,.35); }
  .nav a { color: var(--paper) !important; font-size: 1.05rem; padding: .85rem 0; border-bottom: 1px solid var(--line-light); }
  .burger { display: flex; position: relative; z-index: 960; }
  .header.is-solid { background: rgba(20, 42, 30, .92); }
  .header.is-solid .logo__text { color: #fff; }
  .header.is-solid .logo__text em { color: var(--gold-soft); }
  .header.is-solid .nav a { color: var(--paper); }
  .header.is-solid .burger span { background: #fff; }
}

/* альбомная ориентация с низким экраном: телефоны в горизонтали, ПК с масштабом */
@media (max-height: 540px) and (orientation: landscape) {
  .hero__content { padding: 4rem 0 3rem; }
  .hero__title { font-size: clamp(1.5rem, 7vh, 2.4rem); margin-bottom: .7rem; }
  .hero__lead { margin-bottom: 1.1rem; font-size: .95rem; }
  .hero__actions { margin-bottom: 1.1rem; }
  .hero__stats { padding-top: .9rem; gap: .9rem 2.5rem; }
  .hero__stats dt { font-size: 1.3rem; }
}

@media (max-width: 1020px) {
  .epoch-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--wide { grid-column: span 2; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .street { grid-template-columns: 1fr; }
  .street .street__body, .street--flip .street__body { order: -1; max-width: none; }
  .street__index { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .header { background: transparent; }
  .hero__content { padding: clamp(4.5rem, 11vh, 7.5rem) 0 clamp(3rem, 8vh, 5.5rem); }
  .about-grid { grid-template-columns: 1fr; }
  .epoch-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: span 1; flex-direction: column; }
  .bento__item--wide figure { flex: none; }
  .bento__item--wide figure img { height: 210px; border-radius: 16px 16px 0 0; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .q-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .interview__cta { flex-direction: column; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero__stats { gap: 1.2rem 2rem; }
  .street__media .framed:nth-child(even) { width: 100%; }
  .street__media .framed:nth-child(odd) { width: 100%; }
  /* лайтбокс: фото на всю ширину, стрелки — рядом под ним */
  .lightbox { flex-wrap: wrap; align-content: center; row-gap: .9rem; padding: 3.2rem .8rem 1.2rem; }
  .lightbox__figure { flex: 0 0 100%; }
  .lightbox__figure img { max-height: 60vh; }
  .lightbox__close { top: .6rem; right: .6rem; width: 40px; height: 40px; }
  .lightbox__arrow { width: 46px; height: 46px; }
}

/* совсем узкие экраны */
@media (max-width: 380px) {
  .container { width: calc(100% - 2rem); }
  .logo { gap: .45rem; }
  .logo__mark { width: 28px; height: 28px; }
  .logo__text { font-size: .82rem; }
  .hero__title { font-size: 1.55rem; }
  .hero__stats { gap: .9rem 1.3rem; }
  .hero__stats dt { font-size: 1.45rem; }
  .film video { min-height: 180px; }
}

/* старые браузеры без aspect-ratio: видео не схлопывается */
@supports not (aspect-ratio: 16 / 9) {
  .film video { height: 56.25vw; }
}
