:root {
  --ink: #182126;
  --muted: #65727c;
  --paper: #f4f1e9;
  --surface: #ffffff;
  --line: rgba(24, 33, 38, 0.14);
  --red: #b64235;
  --green: #1d6f62;
  --blue: #285f88;
  --gold: #d7a437;
  --night: #1f3038;
  --shadow: 0 18px 42px rgba(24, 33, 38, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 233, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav,
.section-inner,
.hero-inner,
.page-hero-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--green));
  border-radius: var(--radius);
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(29, 111, 98, 0.1);
}

.hero,
.page-hero {
  position: relative;
  color: #fff;
  background: var(--night);
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 33, 38, 0.92), rgba(24, 33, 38, 0.54));
  z-index: 1;
}

.hero-home {
  background-image: url("/assets/red-square.svg");
  background-size: cover;
  background-position: center;
}

.places-hero {
  background-image: url("/assets/river-kremlin.svg");
  background-size: cover;
  background-position: center;
}

.routes-hero {
  background-image: url("/assets/history-layers.svg");
  background-size: cover;
  background-position: center;
}

.events-hero {
  background-image: url("/assets/evening.svg");
  background-size: cover;
  background-position: center;
}

.history-hero {
  background-image: url("/assets/metro.svg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 42px;
  align-items: end;
  min-height: 690px;
  padding: 86px 0 76px;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 82px 0 72px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.tag {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 880px;
  font-size: clamp(40px, 6vw, 76px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 23px;
}

p {
  margin: 0;
}

.lead {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}

.button.secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.44);
}

.hero-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hero-photo img {
  height: 420px;
  object-fit: cover;
}

.hero-photo figcaption {
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 700;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 24px;
  background: var(--surface);
}

.fact strong {
  display: block;
  color: var(--red);
  font-size: 30px;
  line-height: 1;
}

.fact span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: #ebe6da;
}

.section.dark {
  color: #fff;
  background: var(--night);
}

.section.dark .tag,
.section.dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.section-head.compact {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.grid,
.day-grid,
.story-row,
.place-grid,
.districts,
.season-grid,
.guide-grid {
  display: grid;
  gap: 18px;
}

.grid.three,
.day-grid,
.story-row {
  grid-template-columns: repeat(3, 1fr);
}

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

.place-grid {
  grid-template-columns: repeat(4, 1fr);
}

.guide-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.district,
.season,
.place-card,
.story-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section.dark .card {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.card,
.district,
.season,
.guide-card {
  padding: 24px;
}

.guide-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.guide-card strong {
  width: max-content;
  margin-bottom: 18px;
  padding: 6px 9px;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  font-size: 13px;
}

.card.accent {
  border-color: rgba(182, 66, 53, 0.32);
  background: #fff8ee;
}

.card p,
.district p,
.season p,
.guide-card p,
.place-info p,
.story-card p,
.editorial p {
  margin-top: 12px;
  color: var(--muted);
}

.section.dark .card p {
  color: rgba(255, 255, 255, 0.74);
}

.place-card img,
.story-card img {
  height: 210px;
  object-fit: cover;
}

.place-info,
.story-card div {
  padding: 20px;
}

.story-card {
  display: flex;
  flex-direction: column;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.8fr);
  gap: 38px;
  align-items: center;
}

.editorial > img {
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: rgba(29, 111, 98, 0.08);
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.timeline article {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline strong {
  color: var(--red);
}

.timeline span {
  color: var(--muted);
}

.plan-lanes,
.feature-list,
.route-detail-grid {
  display: grid;
  gap: 18px;
}

.plan-lanes,
.route-detail-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-list {
  grid-template-columns: repeat(4, 1fr);
}

.lane,
.feature-list article,
.route-detail,
.info-panel,
.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lane,
.feature-list article,
.route-detail {
  padding: 24px;
}

.lane p,
.feature-list p,
.route-detail p {
  margin-top: 12px;
  color: var(--muted);
}

.lane ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list article {
  min-height: 250px;
}

.feature-list strong {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 9px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 6px;
  font-size: 13px;
}

.feature-list.light article {
  background: #fffaf0;
}

.section.dark .feature-list article,
.section.dark .compare-table {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.section.dark .feature-list p,
.section.dark .compare-table span {
  color: rgba(255, 255, 255, 0.74);
}

.route-detail dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px 14px;
  margin: 22px 0 0;
}

.route-detail dt {
  color: var(--red);
  font-weight: 800;
}

.route-detail dd {
  margin: 0;
  color: var(--muted);
}

.info-panel,
.compare-table {
  display: grid;
  overflow: hidden;
}

.info-panel div,
.compare-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.info-panel div:last-child,
.compare-table div:last-child {
  border-bottom: 0;
}

.info-panel strong,
.compare-table strong {
  color: var(--red);
}

.info-panel span,
.compare-table span {
  color: var(--muted);
}

.deep-grid,
.essay-grid,
.qa-grid,
.compact-notes,
.district-map,
.season-board {
  display: grid;
  gap: 18px;
}

.deep-grid {
  grid-template-columns: repeat(3, 1fr);
}

.essay-grid,
.qa-grid,
.district-map,
.season-board {
  grid-template-columns: repeat(2, 1fr);
}

.compact-notes {
  grid-template-columns: repeat(4, 1fr);
}

.deep-card,
.essay-card,
.qa-card,
.note-card,
.district-map article,
.season-board article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.deep-card,
.essay-card,
.qa-card,
.note-card,
.district-map article,
.season-board article {
  padding: 24px;
}

.deep-card strong,
.note-card strong,
.district-map strong,
.season-board strong {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 14px;
}

.deep-card p,
.essay-card p,
.qa-card p,
.note-card p,
.district-map p,
.season-board p {
  margin-top: 12px;
  color: var(--muted);
}

.essay-card {
  min-height: 300px;
}

.essay-card h3 {
  font-size: 30px;
}

.qa-card h3 {
  font-size: 22px;
}

.note-card {
  min-height: 190px;
}

.section.dark .deep-card,
.section.dark .essay-card,
.section.dark .qa-card,
.section.dark .note-card,
.section.dark .district-map article,
.section.dark .season-board article {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.section.dark .deep-card p,
.section.dark .essay-card p,
.section.dark .qa-card p,
.section.dark .note-card p,
.section.dark .district-map p,
.section.dark .season-board p {
  color: rgba(255, 255, 255, 0.74);
}

.section.dark .deep-card strong,
.section.dark .note-card strong,
.section.dark .district-map strong,
.section.dark .season-board strong {
  color: var(--gold);
}

.site-footer {
  padding: 28px 0;
  color: #fff;
  background: var(--night);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner span {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .hero-inner,
  .split,
  .editorial {
    grid-template-columns: 1fr;
  }

  .place-grid,
  .guide-grid,
  .plan-lanes,
  .feature-list,
  .route-detail-grid,
  .deep-grid,
  .essay-grid,
  .qa-grid,
  .compact-notes,
  .district-map,
  .season-board,
  .grid.three,
  .day-grid,
  .story-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-inner,
  .page-hero-inner {
    padding: 62px 0 54px;
  }

  .page-hero-inner {
    min-height: 360px;
  }

  .fact-strip,
  .place-grid,
  .guide-grid,
  .plan-lanes,
  .feature-list,
  .route-detail-grid,
  .deep-grid,
  .essay-grid,
  .qa-grid,
  .compact-notes,
  .district-map,
  .season-board,
  .grid.three,
  .grid.two,
  .day-grid,
  .story-row,
  .districts,
  .season-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .hero-photo img,
  .editorial > img {
    height: 320px;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .info-panel div,
  .compare-table div,
  .route-detail dl {
    grid-template-columns: 1fr;
  }
}
