/* ============================================================
   Тропа Зайцева — стили сайта
   Тёмная тема, акценты из логотипа (зелёный и синий).
   Сначала мобильная версия, потом расширения для экранов шире.
   ============================================================ */

:root {
  --bg: #0b110f;            /* фон страницы, глубокий тёмно-зелёный */
  --bg-2: #121a16;          /* фон карточек */
  --bg-3: #1a2420;          /* фон при наведении */
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef3ef;
  --muted: #9fb0a6;
  --green: #50ac4c;         /* из логотипа */
  --green-dark: #3f8f3c;
  --blue: #1084e4;          /* из логотипа */
  --font-head: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 20px;
  --container: 1200px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(1.9rem, 5.5vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }

/* Мелкая подпись над заголовком раздела: «01 — О забеге» */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--green);
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #06120a; }
.btn-primary:hover { background: #63c25f; }
.btn-outline { border-color: rgba(255,255,255,0.35); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.72rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
.header.is-scrolled {
  background: rgba(11, 17, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none !important;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.brand img {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; padding: 4px;
}
.nav { display: none; }
.nav a {
  color: var(--text); font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.header .btn-primary { display: none; }

/* Кнопка «бургер» для телефона */
.burger {
  width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(11,17,15,0.5);
  display: grid; place-items: center; cursor: pointer;
  padding: 0;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  position: relative; transition: transform 0.25s, background 0.25s;
}
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px;
  background: var(--text); transition: transform 0.25s, top 0.25s;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Мобильное меню — выезжает сверху */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(11,17,15,0.97);
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 1.4rem; color: var(--text); padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
body.menu-open { overflow: hidden; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px 0 56px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('../assets/img/hero-mobile.jpg?v=2');
  background-size: cover; background-position: center;
  transform: scale(1.04);
}
.hero::after {
  /* затемнение: сверху лёгкое, снизу плотное, чтобы текст читался */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,17,15,0.35) 0%, rgba(11,17,15,0.25) 40%, rgba(11,17,15,0.92) 100%),
    linear-gradient(90deg, rgba(11,17,15,0.4), transparent 60%);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #cfe6cc;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px;
  backdrop-filter: blur(6px); margin-bottom: 22px;
}
.hero-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.hero h1 {
  font-size: clamp(2.7rem, 12.5vw, 8.5rem);
  line-height: 0.95;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.hero h1 span { color: var(--green); }
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 500;
  max-width: 640px;
  margin-bottom: 28px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-note { font-size: 0.9rem; color: var(--muted); max-width: 560px; }

/* Таймер обратного отсчёта */
.countdown { margin-bottom: 32px; }
.countdown-label {
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.countdown-grid { display: flex; gap: 8px; }
.countdown-item {
  flex: 1 1 0; min-width: 0;
  background: rgba(11,17,15,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 12px 6px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.countdown-item b {
  display: block;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.5rem, 7vw, 2.6rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-item small {
  display: block; margin-top: 6px;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.countdown-done { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--green); }

/* ---------- Полоса фактов под первым экраном ---------- */
.facts {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.facts .container {
  display: grid; grid-template-columns: 1fr 1fr;
}
.fact {
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid var(--line);
}
.fact:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; }
.fact:nth-child(even) { padding-left: 16px; }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact small {
  display: block; font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.fact b { font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.25; display: block; }
.fact span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Общие правила разделов ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head h2 { max-width: 14ch; }

.grid { display: grid; gap: 16px; }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.18); }
.card h3 { margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.callout {
  border-left: 4px solid var(--green);
  background: rgba(80,172,76,0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  margin: 24px 0;
}
.callout-warn { border-color: #e6a23c; background: rgba(230,162,60,0.1); }
.callout b { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.callout p:last-child { margin: 0; }

/* Раскрывающийся блок: стандартный <details>, без скриптов */
details {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--bg-2); margin-bottom: 12px;
}
.section-alt details { background: var(--bg); }
summary {
  cursor: pointer; list-style: none;
  padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details .body { padding: 0 20px 20px; }
details .body > :last-child { margin-bottom: 0; }

/* ---------- О забеге ---------- */
.about-grid { display: grid; gap: 32px; }
.about-text p { font-size: 1.05rem; }
.about-text p:first-child { font-size: 1.25rem; font-weight: 500; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.perk {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  font-size: 0.9rem; font-weight: 500; line-height: 1.35;
}
.perk i {
  display: block; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(80,172,76,0.15); color: var(--green);
  margin-bottom: 10px; display: grid; place-items: center;
}
.perk i svg { width: 18px; height: 18px; }

/* ---------- Дистанции ---------- */
.dist-grid { grid-template-columns: 1fr; }
.dist {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 30px;
}
.dist::before {
  /* цветная полоска сверху карточки */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--green);
}
.dist.dist-blue::before { background: var(--blue); }
.dist-num {
  font-family: var(--font-head); font-weight: 900; line-height: 0.9;
  font-size: clamp(3.2rem, 9vw, 4.6rem); letter-spacing: -0.04em;
}
.dist-num small { font-size: 0.35em; font-weight: 700; margin-left: 6px; letter-spacing: 0; }
.dist-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-transform: uppercase; }
.dist-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.07); color: var(--text);
}
.tag-green { background: rgba(80,172,76,0.18); color: #8fdc8b; }
.tag-blue { background: rgba(16,132,228,0.18); color: #7fc0ff; }
.dist-desc { font-size: 0.92rem; color: var(--muted); flex: 1; }
.dist-desc p:last-child { margin: 0; }
.dist .btn { align-self: flex-start; }

/* ---------- Стартовый взнос: таблица ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
th, td { padding: 16px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-family: var(--font-head); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  background: rgba(255,255,255,0.03);
}
th small { display: block; font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; margin-top: 4px; color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
td.price { font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.price.now { color: var(--green); }
th.now { color: var(--green); }
td.name { font-weight: 700; }
td.name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; }

/* ---------- Клубный чемпионат ---------- */
.clubs-grid { grid-template-columns: 1fr; }
.club-card .cup {
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.club-card h3 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; }
.club-card .q { font-size: 1.05rem; font-weight: 500; color: var(--green); margin-bottom: 14px; }
.club-card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Тайминг ---------- */
.days { display: grid; gap: 28px; }
.day h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.day h3 small { font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; text-transform: none; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li {
  position: relative; padding: 0 0 18px 24px; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 2px;
}
.timeline li::before {
  content: ''; position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--green);
}
.timeline li.start::before { background: var(--green); box-shadow: 0 0 0 4px rgba(80,172,76,0.2); }
.timeline time { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline li.start time { color: var(--green); }
.timeline span { color: var(--muted); font-size: 0.95rem; }
.timeline li.start span { color: var(--text); font-weight: 600; }
.place {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px;
}
.place svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 3px; }
.place b { display: block; }
.place span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Маршруты ---------- */
.routes-grid { display: grid; gap: 24px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.7rem; line-height: 1; margin-bottom: 6px; }
.stat span { font-size: 0.82rem; color: var(--muted); }

/* ---------- Документы / правила ---------- */
.doc-list { list-style: none; padding: 0; margin: 0 0 8px; counter-reset: doc; }
.doc-list li {
  counter-increment: doc; position: relative; padding-left: 48px; margin-bottom: 14px;
}
.doc-list li::before {
  content: counter(doc, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--green);
  width: 34px; height: 34px; border: 1px solid rgba(80,172,76,0.4); border-radius: 10px;
  display: grid; place-items: center;
}
.doc-list li b { display: block; }
.doc-list li small { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin-top: 4px; }
.doc-link { display: inline-block; margin-top: 8px; font-size: 0.88rem; font-weight: 700; }
.doc-link::before { content: '↓ '; }
.rules-list li { color: var(--muted); }
.rules-list li strong { color: var(--text); font-weight: 600; }

/* ---------- Память ---------- */
.memory { position: relative; overflow: hidden; overflow: clip; }
.memory-grid { display: grid; gap: 28px; }
.memory-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; max-width: 440px;
}
.memory-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.memory-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,17,15,0.75));
}
.memory-photo figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1;
  font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.memory-text p { font-size: 1rem; }
.memory-text .memory-lead { font-size: 1.1rem; }
.memory-text .quote {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.1rem, 3vw, 1.5rem);
  line-height: 1.35; color: var(--text); border-left: 4px solid var(--green); padding-left: 18px; margin: 24px 0;
}

/* ---------- Контакты и подвал ---------- */
.contacts-grid { display: grid; gap: 14px; }
.contact {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  color: var(--text); text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
}
.contact:hover { border-color: var(--green); background: rgba(80,172,76,0.06); }
.contact i {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: rgba(80,172,76,0.15); color: var(--green); display: grid; place-items: center;
}
.contact i svg { width: 22px; height: 22px; }
.contact small { display: block; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contact b { font-size: 1.05rem; }

.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.88rem; color: var(--muted); }
.footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer .brand { font-size: 0.7rem; }
.footer .brand img { width: 34px; height: 34px; }

/* ---------- Плавное появление блоков ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ============================================================
   Планшет и шире
   ============================================================ */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .section { padding: 100px 0; }
  .hero { padding-bottom: 72px; }
  .hero-bg { background-image: url('../assets/img/hero.jpg?v=2'); }
  .countdown-grid { max-width: 520px; }
  .countdown-item { padding: 16px 10px; }
  .facts .container { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: 0; border-right: 1px solid var(--line); padding: 28px 20px; }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { border-right: 0; }
  .dist-grid { grid-template-columns: 1fr 1fr; }
  .clubs-grid { grid-template-columns: 1fr 1fr; }
  .days { grid-template-columns: 1fr 1.4fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .routes-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ============================================================
   Ноутбук и шире
   ============================================================ */
@media (min-width: 1024px) {
  .nav { display: flex; gap: 2px; }
  .burger { display: none; }
  .header .btn-primary { display: inline-flex; }
  .dist-grid { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 30px 26px; }
  .memory-grid { grid-template-columns: 440px 1fr; gap: 56px; align-items: start; }
  .memory-photo { position: sticky; top: 100px; }
}

/* ============================================================
   Таблица взносов на телефоне: каждая строка становится карточкой,
   подпись периода берётся из атрибута data-label ячейки.
   ============================================================ */
@media (max-width: 719px) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  table { min-width: 0; display: block; }
  thead { display: none; }
  tbody, tr, td { display: block; }
  tr {
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--bg-2); margin-bottom: 12px; overflow: hidden;
  }
  td { border-bottom: 1px solid var(--line); padding: 12px 16px; }
  td.name { background: rgba(255,255,255,0.03); font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; }
  td.name small { font-family: var(--font-body); text-transform: none; }
  td.price { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  td.price::before {
    content: attr(data-label);
    font-family: var(--font-body); font-weight: 500; font-size: 0.82rem; color: var(--muted);
  }
  tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  tr td:last-child { border-bottom: 0; }
}

/* ============================================================
   Версия 2: фотографии с прошлых стартов
   ============================================================ */

/* --- Первый экран: заголовок слева, стопка «полароидов» справа --- */
.hero-inner { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(2.7rem, 11vw, 6.8rem); }
.hero-photos { display: none; }

/* --- О забеге: большое фото и подпись --- */
.about-photo {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px; font-size: 0.85rem; font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(11,17,15,0.85));
}
.perks { margin-top: 28px; }

/* --- Галерея: сетка-мозаика, вертикальные кадры занимают две строки --- */
.gallery {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px;
}
.gl {
  margin: 0; position: relative; overflow: hidden;
  border-radius: 14px; cursor: zoom-in; background: var(--bg-3);
}
.gl img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gl:hover img { transform: scale(1.05); }
.gl figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px; font-size: 0.78rem; font-weight: 600; line-height: 1.3;
  background: linear-gradient(180deg, transparent, rgba(11,17,15,0.85));
}
.gl-tall { grid-row: span 2; }
.gl-wide { grid-column: span 2; }
.gallery-more { margin-top: 28px; }

/* --- Карточки дистанций: фото сверху, текст ниже --- */
.dist { padding: 0; gap: 0; }
.dist-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.dist-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transition: transform 0.5s ease;
}
.dist:hover .dist-photo img { transform: scale(1.04); }
.dist-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.dist-body .btn { align-self: flex-start; }
/* Кнопка трека до даты открытия: серая и не нажимается */
.btn.is-locked { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.track-note { margin-top: -6px; color: var(--muted); font-size: 0.8rem; }

/* --- Полоса с фотографией и цитатой из правил --- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 96px 0;
  background: url('../assets/img/foto/24-massovyy-start.jpg') center 35% / cover no-repeat;
}
.band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,17,15,0.88), rgba(11,17,15,0.6));
}
.band-inner { display: grid; gap: 14px; }
.band-quote {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.15rem, 3.4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em;
  max-width: 22ch; margin: 0;
}
.band-quote::before { content: '«'; color: var(--green); }
.band-quote::after { content: '»'; color: var(--green); }
.band-src { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Режим «забег прошёл» (с 11.10.2026) ----------
   Разделы, кнопки и пункты меню скрыты атрибутом hidden прямо в HTML,
   разметка сохранена целиком. Как вернуть — archive/КАК-ВЕРНУТЬ.md.
   !important нужен, потому что у .header .btn-primary и .nav display
   задаётся явно и иначе перебил бы hidden. */
[hidden] { display: none !important; }

/* Первый экран после забега: контента меньше, поэтому не тянем его на всю высоту окна */
.hero.hero--past { min-height: 0; padding: 130px 0 64px; }

/* Анонс следующего старта на первом экране, на месте таймера */
.hero-next { margin-bottom: 32px; }
.hero-next-label {
  display: block; font-family: var(--font-head); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.hero-next-title {
  display: inline-block; font-family: var(--font-head); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.5rem, 4.5vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--green); text-shadow: 0 0 32px rgba(80,172,76,0.4);
}

/* Финальный призыв перед подвалом: фото, большое «Увидимся в 2027», кнопка Telegram */
.finale {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 110px 0; text-align: center;
  border-top: 1px solid var(--line);
  background: url('../assets/img/foto/12-obyatiya-na-finishe.jpg') center 30% / cover no-repeat;
}
.finale::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(11,17,15,0.45), rgba(11,17,15,0.85) 70%),
    linear-gradient(180deg, rgba(11,17,15,0.9), rgba(11,17,15,0.35) 35%, rgba(11,17,15,0.35) 65%, var(--bg));
}
.finale-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.finale .eyebrow { margin-bottom: 0; }
.finale-title { font-size: clamp(2.4rem, 11vw, 8.5rem); line-height: 0.95; letter-spacing: -0.03em; margin: 0; }
.finale-title span { color: var(--green); }
.finale-text { font-size: 1.1rem; color: #cfe6cc; max-width: 560px; margin: 0 0 10px; }

/* --- Лайтбокс: просмотр фото из галереи на весь экран --- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 10, 8, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(100%, 1100px); text-align: center; }
.lightbox img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: 12px; margin: 0 auto; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox figcaption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  color: var(--text); font-size: 2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255,255,255,0.18); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

@media (min-width: 720px) {
  .finale { padding: 150px 0; }
  .gallery { grid-auto-rows: 210px; gap: 12px; }
  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: stretch; }
  .about-photo { aspect-ratio: auto; min-height: 100%; }
  .perks { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
  .band { padding: 130px 0; }
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 400px; align-items: end; }
  .hero-photos { display: block; position: relative; height: 540px; }
  .hp {
    position: absolute; margin: 0;
    background: #fff; padding: 10px 10px 34px; border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: rotate(var(--r));
    transition: transform 0.4s ease;
  }
  .hp:hover { transform: rotate(0deg) scale(1.04); z-index: 2; }
  .hp img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
  .hp-1 { --r: -7deg; left: 0; top: 0; width: 270px; height: 214px; }
  .hp-2 { --r: 5deg; right: 0; top: 90px; width: 205px; height: 300px; }
  .hp-3 { --r: -3deg; left: 70px; bottom: 0; width: 290px; height: 228px; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
  .lb-prev { left: 28px; }
  .lb-next { right: 28px; }
}
