/* ─────────────────────────────────────────────
   Marina Lodvikova — Календарь июня 2026
   Стиль: old money / quiet luxury
   ───────────────────────────────────────────── */

:root {
  --ink: #0B0B0B;
  --ink-soft: #1A1A1A;
  --cream: #EFEDE6;
  --cream-warm: #E6E1D4;
  --gold: #B69968;
  --gold-soft: #C9B58A;
  --navy: #1A2236;
  --burgundy: #5C1E26;
  --sepia: #4A3A28;
  --muted: #7A746A;
  --rule: rgba(182, 153, 104, 0.35);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Утилиты ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.headline {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}
.headline.xl  { font-size: clamp(2.4rem, 6vw, 5.2rem); }
.headline.lg  { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.headline.md  { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  font-style: italic;
  color: var(--muted);
}
p { font-size: 1rem; line-height: 1.75; }

/* Тонкая линия с золотой «бусиной» */
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.rule .bead {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Контурная «капсула» */
.pill {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--navy);
}
.dark .pill { color: var(--cream); border-color: rgba(182, 153, 104, 0.5); }

/* Вторичная CTA-ссылка (например «Пройти тест») — тихая, без обводки */
.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(182, 153, 104, 0.4);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.cta-ghost:hover {
  color: var(--ink);
  border-color: var(--gold);
}
.cta-ghost .arrow { font-style: normal; font-family: var(--serif); }
.section.dark .cta-ghost { color: var(--gold-soft); border-color: rgba(201, 181, 138, 0.4); }
.section.dark .cta-ghost:hover { color: var(--cream); border-color: var(--gold-soft); }

/* Ряд из CTA «Записаться» + вторичной «+ В календарь» */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  margin-top: 40px;
}

/* Вторичная кнопка «+ В календарь» — тихая, не конкурирует с CTA */
.add-cal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: transparent;
  border: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.add-cal:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(182, 153, 104, 0.06);
}
.add-cal.copied {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(182, 153, 104, 0.12);
}
.section.dark .add-cal {
  color: rgba(239, 237, 230, 0.65);
  border-color: rgba(201, 181, 138, 0.25);
}
.section.dark .add-cal:hover {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 38px;
  border: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}
.cta:hover { background: var(--gold); color: var(--ink); }
.dark .cta:hover { color: var(--ink); }

.cta .arrow { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; }

/* ─── Тёмные и светлые секции ─── */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
}
.section.dark {
  background: var(--ink);
  color: var(--cream);
}
.section.dark .lede { color: rgba(239, 237, 230, 0.65); }
.section.dark p { color: rgba(239, 237, 230, 0.78); }
.section.dark .pill { color: var(--cream); border-color: rgba(201, 181, 138, 0.4); }
.section.dark .eyebrow { color: var(--gold-soft); }

/* ─── Навигация ─── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  background: rgba(11, 11, 11, 0.0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(11, 11, 11, 0.85);
  border-bottom-color: rgba(182, 153, 104, 0.2);
}
.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 300;
}
.brand-mobile {
  display: none;
  font-family: var(--serif);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 300;
  font-size: 0.84rem;
}
.topnav {
  display: flex;
  gap: 36px;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
}
.topnav a { opacity: 0.7; transition: opacity 0.3s ease, color 0.3s ease; }
.topnav a:hover { opacity: 1; color: var(--gold-soft); }

/* Правый рейл с датами */
.rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-end;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.rail a .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s ease, transform 0.3s ease;
}
.rail a .label { opacity: 0; transition: opacity 0.3s ease; }
.rail a:hover { color: var(--gold); }
.rail a:hover .dot { background: var(--gold); transform: scale(1.4); }
.rail a:hover .label { opacity: 1; }
.rail a.active { color: var(--gold); }
.rail a.active .dot { background: var(--gold); transform: scale(1.4); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 80% 30%, rgba(182, 153, 104, 0.08), transparent 60%),
    radial-gradient(50% 60% at 20% 80%, rgba(92, 30, 38, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: 0.04em;
  line-height: 0.98;
  margin-bottom: 32px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  max-width: 640px;
  color: rgba(239, 237, 230, 0.75);
  margin-bottom: 48px;
  line-height: 1.55;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 56px;
  align-items: center;
  margin-top: 60px;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(239, 237, 230, 0.55);
}
.hero-meta span::before {
  content: "•";
  color: var(--gold);
  margin-right: 14px;
}
.hero-scroll {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 48px;
  background: var(--gold);
  opacity: 0.5;
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.2; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 0.8; }
}

/* ─── Манифест ─── */
.manifesto {
  text-align: center;
}
.manifesto .body {
  max-width: 760px;
  margin: 0 auto;
}
.manifesto .body p { margin: 22px 0; }
.manifesto .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin: 56px auto 12px;
  max-width: 820px;
}
.manifesto .quote em {
  color: var(--gold);
  font-style: italic;
}
.section.dark .manifesto .quote { color: var(--cream); }

/* ─── Track / Маршрут ─── */
.track {
  text-align: center;
}
.track-header { margin-bottom: 80px; }
.track-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 60px;
}
.track-grid::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--rule);
}
.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}
.track-step .node {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
  margin-bottom: 24px;
}
.section.dark .track-step .node { background: var(--ink); }
.track-step .step-date {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.track-step .step-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 180px;
}
.section.dark .track-step .step-q { color: var(--cream); }

/* ─── Карточка события ─── */
.event {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.event.reverse { grid-template-columns: 1.2fr 1fr; }
.event.reverse .event-visual { order: 2; }

.event-meta-col .pill { margin-bottom: 36px; }
.event-meta-col .num {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}
.event-meta-col h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.event-meta-col h2 .accent { color: var(--gold); font-style: italic; text-transform: none; letter-spacing: 0.01em; }
.event-meta-col .question {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.45;
}
.section.dark .event-meta-col .question { color: rgba(239, 237, 230, 0.65); }
.event-meta-col p {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sepia);
  margin-bottom: 22px;
}
.section.dark .event-meta-col p { color: rgba(239, 237, 230, 0.85); }

/* dl.specs — только значения, компактный шрифт как в первоначальной версии */
.event-meta-col .specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 28px 0 36px;
}
.event-meta-col .specs .spec-row { display: block; }
.event-meta-col .specs dt { display: none; }
.event-meta-col .specs dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--sepia);
  line-height: 1.5;
}
.section.dark .event-meta-col .specs dd { color: var(--cream); }

/* Списки внутри события */
.event-details {
  margin-top: 36px;
}
.event-details summary {
  cursor: pointer;
  font-family: var(--serif);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.event-details summary::-webkit-details-marker { display: none; }
.event-details summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}
.event-details[open] summary::after { content: "—"; }
.event-details .content {
  padding: 28px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.event-details h4 {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 400;
}
.event-details ul {
  list-style: none;
}
.event-details ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sepia);
}
.section.dark .event-details ul li { color: rgba(239, 237, 230, 0.85); }
.event-details ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* Визуальный блок события — фото с золотой рамкой */
.event-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream-warm);
  overflow: hidden;
}
.section.dark .event-visual {
  background: var(--ink-soft);
}

.event-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.18) sepia(0.08) contrast(1.02);
  transition: transform 1.6s ease, filter 1s ease;
}
.event-visual:hover img {
  transform: scale(1.03);
  filter: grayscale(0.05) sepia(0.04) contrast(1.05);
}

.event-visual .frame {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(239, 237, 230, 0.55);
  pointer-events: none;
  z-index: 2;
}
.event-visual .frame::before,
.event-visual .frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--gold);
}
.event-visual .frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.event-visual .frame::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* Римская цифра — теперь в углу как «номер главы», тонко поверх фото */
.event-visual .numeral {
  position: absolute;
  top: 30px; right: 36px;
  z-index: 3;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
  user-select: none;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}

/* Штамп даты */
.event-visual .stamp {
  position: absolute;
  left: 30px; bottom: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 24px;
  border: 1px solid var(--gold);
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
}
.event-visual .stamp .day {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
}
.event-visual .stamp .month {
  font-family: var(--serif);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-soft);
}

/* ─── Финал ─── */
.closing {
  text-align: center;
  background: var(--ink);
  color: var(--cream);
}
.closing h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.05em;
  line-height: 1.15;
  margin-bottom: 36px;
}
.closing h2 em { color: var(--gold); font-style: italic; }
.closing p { max-width: 620px; margin: 0 auto 44px; color: rgba(239, 237, 230, 0.7); }

/* ─── Footer ─── */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px var(--gutter) 40px;
  border-top: 1px solid rgba(182, 153, 104, 0.2);
}
footer .footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
footer .footer-brand {
  font-family: var(--serif);
  letter-spacing: 0.45em;
  font-size: 0.92rem;
  text-align: center;
}
footer .footer-tg {
  text-align: right;
  color: var(--gold);
  transition: color 0.3s ease;
}
footer .footer-tg:hover { color: var(--cream); }
footer .footer-meta { color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════
   ВТОРАЯ ИТЕРАЦИЯ — крупные даты, тезисы манифеста, новый трек,
   нумерация событий, mobile-first
   ═══════════════════════════════════════════════════════════════════ */

/* ─── HERO: большие кликабельные даты ─── */
.hero-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin-top: 56px;
}
.hero-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  min-width: 64px;
  min-height: 64px;
  border: 1px solid rgba(182, 153, 104, 0.35);
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.hero-date:hover,
.hero-date:focus-visible {
  border-color: var(--gold);
  background: rgba(182, 153, 104, 0.08);
  transform: translateY(-2px);
  outline: none;
}
.hero-date .d {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}
.hero-date .m {
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.75;
}
.hero-date-sep {
  font-family: var(--serif);
  color: rgba(182, 153, 104, 0.4);
  font-size: 1.3rem;
  user-select: none;
  align-self: center;
}
.hero-tags {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(239, 237, 230, 0.55);
}
.hero-tags span:nth-child(even) { color: var(--gold); }

/* ─── Манифест: сетка тезисов ─── */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 48px;
  text-align: left;
}
.manifesto-card {
  border: 1px solid var(--rule);
  padding: 36px 32px;
  position: relative;
  background: rgba(255, 255, 255, 0.3);
}
.manifesto-card .card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.manifesto-card p {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--navy);
  margin: 0;
}
.manifesto-card p em {
  font-style: italic;
  color: var(--gold);
}

/* ─── Новый трек июня (вертикальный с карточками) ─── */
.track-list {
  list-style: none;
  padding: 0;
  margin: 60px auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.track-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.track-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.4;
  color: var(--cream);
  padding: 0 16px;
  max-width: 560px;
}
.track-arrow {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.4rem;
  margin: 14px 0 16px;
  opacity: 0.7;
  user-select: none;
}
.track-card {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 24px;
  align-items: center;
  padding: 22px 28px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.02);
  color: var(--cream);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  margin-bottom: 26px;
}
.track-card:hover,
.track-card:focus-visible {
  background: rgba(182, 153, 104, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
  outline: none;
}
.track-card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  min-width: 44px;
  text-align: center;
}
.track-card-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.3;
}
.track-card-date {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  white-space: nowrap;
}

.track-final {
  margin-top: 36px;
  text-align: center;
}
.track-final p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: rgba(239, 237, 230, 0.8);
  max-width: 620px;
  margin: 28px auto 0;
}
.track-final p em {
  color: var(--gold);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   ОБЗОРНЫЙ КАЛЕНДАРЬ — главное на сайте: когда, что, где
   ═══════════════════════════════════════════════════════════════════ */
.calendar-section { padding: clamp(70px, 10vw, 130px) 0; }

.calendar-table {
  margin-top: 60px;
  border-top: 1px solid var(--rule);
}

.cal-row {
  display: grid;
  grid-template-columns: 120px 60px 1fr 40px;
  gap: 28px;
  align-items: center;
  padding: 28px 12px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s ease, padding 0.3s ease;
}
.cal-row:hover {
  background: rgba(182, 153, 104, 0.06);
  padding-left: 20px;
}

.cal-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--serif);
  line-height: 1;
}
.cal-date .cal-day {
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--gold);
}
.cal-date .cal-month {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--muted);
}
.cal-date .cal-weekday {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 8px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
}

.cal-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--gold);
  text-align: center;
  opacity: 0.7;
}

.cal-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cal-question {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 2px;
  opacity: 0.85;
}
.cal-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
/* cal-meta — только значения, без меток */
.cal-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.cal-meta .spec-row { display: block; }
.cal-meta dt { display: none; }
.cal-meta dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--sepia);
  line-height: 1.45;
}

/* Цена в карточке обзорного календаря */
.cal-price {
  align-self: flex-start;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  font-weight: 400;
  line-height: 1.1;
}

.cal-status {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  align-self: flex-start;
}
.cal-status--open { color: var(--gold); border-color: rgba(182, 153, 104, 0.5); }
.cal-status--limited { color: var(--burgundy); border-color: rgba(92, 30, 38, 0.4); }
.cal-status--closed { color: var(--muted); border-color: var(--rule); }

.cal-go {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  text-align: right;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cal-row:hover .cal-go { opacity: 1; transform: translateX(6px); }

/* Приглашение пройти тест — карточка-баннер над архетипами */
.cal-quiz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px;
  margin-bottom: 18px;
  border: 1px solid var(--rule);
  background: rgba(182, 153, 104, 0.04);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.cal-quiz:hover {
  background: rgba(182, 153, 104, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.cal-quiz-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal-quiz-line1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.cal-quiz-line2 {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-quiz .arrow {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}

.calendar-final {
  margin-top: 56px;
  text-align: center;
}
.calendar-final-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 640px;
  margin: 28px auto 24px;
}
.calendar-final-text em {
  color: var(--gold);
  font-style: italic;
}
.calendar-note {
  margin-top: 24px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
}
.calendar-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

/* Ссылка-адрес (открывает Яндекс.Карты) + кнопка «скопировать» */
.map-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(182, 153, 104, 0.4);
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}
.map-link:hover { color: var(--gold-soft); }
.section.dark .map-link { color: var(--gold-soft); }

.copy-btn {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  vertical-align: middle;
}
.copy-btn:hover { color: var(--gold); border-color: var(--gold); }
.copy-btn.copied {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(182, 153, 104, 0.08);
}
.section.dark .copy-btn { color: rgba(239, 237, 230, 0.7); }
.section.dark .copy-btn:hover,
.section.dark .copy-btn.copied { color: var(--gold-soft); border-color: var(--gold-soft); }

.venue {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
}
.venue a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.section.dark .venue a { color: var(--gold-soft); }

/* Цена внутри подробной карточки */
.price {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Бейджи статусов внутри карточек событий (dl.specs) */
.badge {
  display: inline-block;
  padding: 5px 14px;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.badge--open { color: var(--gold); border-color: rgba(182, 153, 104, 0.55); }
.badge--limited { color: var(--burgundy); border-color: rgba(92, 30, 38, 0.4); }
.section.dark .badge--limited { color: #d99aa3; border-color: rgba(217, 154, 163, 0.4); }
.badge--closed { color: var(--muted); }

/* ─── Новый стиль нумерации мероприятий ─── */
.event-meta-col .num {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.event-meta-col .num-label {
  letter-spacing: 0.32em;
  color: var(--gold);
}
.event-meta-col .num-roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0;
  line-height: 1;
}
.event-meta-col .num-sep { opacity: 0.5; }
.section.dark .event-meta-col .num { color: rgba(239, 237, 230, 0.65); }

/* ═════════════════════ АДАПТИВ — desktop ≥ 901 ═════════════════════ */
@media (min-width: 901px) {
  /* На широком — манифест-тезисы в 4 колонки */
  .manifesto-grid { grid-template-columns: repeat(4, 1fr); }

  /* На широком — карточки трека получают «полосу» слева, имитируя ленту маршрута */
  .track-list { max-width: 720px; }
}

/* ═════════════════════ АДАПТИВ — tablet/mobile ≤ 900 ═════════════════════ */
@media (max-width: 900px) {
  .topnav { display: none; }
  .rail { display: none; }
  .event { grid-template-columns: 1fr; gap: 48px; }
  .event.reverse { grid-template-columns: 1fr; }
  .event.reverse .event-visual { order: 0; }
  .event-details .content { grid-template-columns: 1fr; gap: 24px; }

  .manifesto-grid { grid-template-columns: 1fr; gap: 24px; }
  .manifesto-card { padding: 28px 24px; }

  footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  footer .footer-tg, footer .footer-meta { text-align: center; }
}

/* ═════════════════════ MOBILE FIRST — phones ≤ 560 ═════════════════════ */
@media (max-width: 560px) {
  :root {
    --gutter: 22px;
  }
  body { font-size: 17px; }
  p { font-size: 1.02rem; line-height: 1.72; }

  /* TOPBAR — бренд по центру */
  .topbar {
    padding: 14px var(--gutter);
    justify-content: center;
  }
  .brand { font-size: 0.78rem; letter-spacing: 0.4em; text-align: center; }
  .brand-mobile { display: none; }

  /* HERO */
  .hero { min-height: auto; padding-top: 78px; padding-bottom: 56px; }
  .hero-inner { padding-top: 16px; gap: 28px; }
  .hero h1 { font-size: 4rem; margin-bottom: 24px; letter-spacing: 0.03em; }
  .hero .sub { font-size: 1.05rem; margin-bottom: 32px; }
  .hero-scroll { display: none; }

  /* Даты — все 5 в одну строку, равной ширины */
  .hero-dates {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 28px;
  }
  .hero-date {
    padding: 10px 4px;
    min-width: 0;
    min-height: 60px;
    gap: 2px;
  }
  .hero-date .d { font-size: 1.55rem; }
  .hero-date .m { font-size: 0.55rem; letter-spacing: 0.18em; }
  .hero-date-sep { display: none; }
  .hero-tags { margin-top: 22px; font-size: 0.68rem; letter-spacing: 0.3em; justify-content: flex-start; }

  /* SECTION padding */
  .section { padding: 64px 0; }

  /* CALENDAR на мобильном — карточки-билеты */
  .calendar-section { padding: 60px 0; }
  .calendar-table {
    margin-top: 32px;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .cal-row {
    grid-template-columns: 76px 1fr;
    grid-template-areas:
      "date  main"
      "date  status";
    gap: 6px 18px;
    padding: 20px 18px;
    border: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: rgba(182, 153, 104, 0.025);
    align-items: start;
  }
  .cal-row:hover { padding-left: 18px; background: rgba(182, 153, 104, 0.08); }

  .cal-date { grid-area: date; }
  .cal-date .cal-day { font-size: 2.2rem; }
  .cal-date .cal-month { font-size: 0.66rem; letter-spacing: 0.32em; margin-top: 4px; }
  .cal-date .cal-weekday { font-size: 0.7rem; margin-top: 6px; }

  .cal-num { display: none; }

  .cal-main { grid-area: main; gap: 6px; }
  .cal-question { font-size: 0.95rem; line-height: 1.25; margin-bottom: 4px; }
  .cal-name { font-size: 1.05rem; letter-spacing: 0.03em; }
  .cal-meta { font-size: 0.83rem; gap: 4px 8px; }
  .cal-time { font-size: 0.88rem; }

  .cal-status {
    grid-area: status;
    margin-top: 8px;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    padding: 4px 10px;
  }
  .cal-go { display: none; }

  .cal-quiz {
    padding: 18px 20px;
    margin-bottom: 14px;
    gap: 14px;
  }
  .cal-quiz-line1 { font-size: 1rem; }
  .cal-quiz-line2 { font-size: 0.72rem; letter-spacing: 0.24em; }
  .cal-quiz .arrow { font-size: 1.2rem; }

  .calendar-note { font-size: 0.88rem; padding: 0 12px; }

  /* MANIFESTO — текст в 2 строки за счёт чуть меньшего кегля и плотного межстрочного */
  .manifesto .quote { font-size: 1.5rem; margin: 32px auto 8px; }
  .manifesto-grid { gap: 18px; }
  .manifesto-card { padding: 22px 22px 24px; }
  .manifesto-card .card-num { font-size: 1.15rem; margin-bottom: 10px; }
  .manifesto-card p {
    font-size: 0.97rem;
    line-height: 1.42;
    text-wrap: balance;
  }

  /* TRACK */
  .track-list { margin-top: 36px; gap: 0; }
  .track-q { font-size: 1.12rem; }
  .track-arrow { margin: 10px 0 12px; font-size: 1.2rem; }
  .track-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num name"
      "num date";
    gap: 4px 16px;
    padding: 18px 20px;
    margin-bottom: 22px;
  }
  .track-card-num { grid-area: num; font-size: 2.4rem; min-width: 38px; }
  .track-card-name { grid-area: name; font-size: 0.95rem; }
  .track-card-date { grid-area: date; font-size: 0.72rem; letter-spacing: 0.28em; }
  .track-final p { font-size: 1.08rem; }

  /* EVENTS — порядок: всегда сначала фото, потом текст */
  .event,
  .event.reverse {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .event .event-visual,
  .event.reverse .event-visual { order: 0; }
  .event .event-meta-col,
  .event.reverse .event-meta-col { order: 1; }

  /* Скрываем словесную нумерацию (она дублируется римской цифрой на фото и штампом даты) */
  .event-meta-col .num { display: none; }

  /* Вместо неё — тонкая золотая черта с бусиной как декоративная связка между фото и заголовком */
  .event-meta-col h2 {
    position: relative;
    padding-top: 36px;
    font-size: 2.2rem;
    letter-spacing: 0.04em;
  }
  .event-meta-col h2::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 56px;
    height: 1px;
    background: var(--gold);
    opacity: 0.55;
  }
  .event-meta-col h2::after {
    content: "";
    position: absolute;
    top: -3px; left: 56px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%);
  }
  .event-meta-col .question { font-size: 1.08rem; }
  .event-meta-col .specs { font-size: 0.88rem; gap: 12px 18px; }
  .event-meta-col .specs dt { font-size: 0.7rem; letter-spacing: 0.25em; }
  .event-details summary { font-size: 0.78rem; letter-spacing: 0.25em; padding: 16px 0; }

  /* CTA — крупнее тап-зона */
  .cta-row { gap: 12px; }
  .cta {
    width: 100%;
    justify-content: center;
    padding: 20px 24px;
    font-size: 0.9rem;
    letter-spacing: 0.28em;
  }
  .add-cal {
    width: 100%;
    justify-content: center;
    padding: 16px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
  }

  /* Event visual */
  .event-visual { aspect-ratio: 3 / 4; }
  .event-visual .stamp { left: 18px; bottom: 18px; padding: 14px 18px; }
  .event-visual .stamp .day { font-size: 2rem; }
  .event-visual .stamp .month { font-size: 0.66rem; }
  .event-visual .numeral { top: 18px; right: 22px; font-size: 2.2rem; }
  .event-visual .frame { inset: 12px; }

  /* CLOSING */
  .closing h2 { font-size: 1.9rem; }
  .closing p { font-size: 1rem; }

  /* FOOTER */
  footer { padding: 44px var(--gutter) 32px; }
  footer .footer-inner { gap: 18px; }
}

/* ─── Анимации при появлении ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
