:root {
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --text: #1f2a2e;
  --muted: #5d6a6e;
  --line: #e4ddd0;
  --accent: #1f6f8b;
  --accent-soft: #e2eff3;
  --warm: #b3541e;
  --sky-top: #cfe6ef;
  --sky-bottom: #f7f4ee;
  --water: #2c7a96;
  --water-deep: #1d5a70;
  --hill-far: #8fb3b8;
  --hill-near: #4f7f75;
  --snow: #ffffff;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a1d;
    --surface: #182327;
    --text: #e8eeee;
    --muted: #9fb0b3;
    --line: #2a393e;
    --accent: #6cc0dc;
    --accent-soft: #1c3640;
    --warm: #e08a55;
    --sky-top: #1b2d36;
    --sky-bottom: #121a1d;
    --water: #24647b;
    --water-deep: #18485a;
    --hill-far: #2f4a50;
    --hill-near: #23403a;
    --snow: #c9d8dc;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; display: block; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* шапка */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font: 600 20px/1 var(--serif); color: var(--text); text-decoration: none;
}
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px;
}
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* первый экран */
.hero { background: linear-gradient(var(--sky-top), var(--sky-bottom)); }
.hero .wrap { padding: 56px 0 0; }
.hero h1 {
  font: 600 clamp(34px, 6vw, 58px)/1.08 var(--serif);
  margin: 0 0 16px; max-width: 14ch; letter-spacing: -0.01em;
}
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 46ch; margin: 0 0 8px; }
.hero svg.scene { width: 100%; height: auto; margin-top: 24px; }

.page-head { padding: 48px 0 8px; }
.page-head h1 { font: 600 clamp(30px, 5vw, 44px)/1.12 var(--serif); margin: 0 0 12px; }
.page-head p { color: var(--muted); max-width: 60ch; margin: 0; font-size: 18px; }

main { padding-bottom: 64px; }

section { padding: 40px 0 8px; }
section > h2, .section-title {
  font: 600 clamp(24px, 3.4vw, 32px)/1.2 var(--serif); margin: 0 0 18px;
}

/* сетки карточек */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.card h3 { font: 600 20px/1.3 var(--serif); margin: 0 0 8px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }
.card .tag {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--warm); text-transform: uppercase; margin-bottom: 6px;
}

/* цифры */
.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fact {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 16px;
}
.fact b { display: block; font: 600 30px/1.1 var(--serif); }
.fact span { color: var(--muted); font-size: 15px; }

/* длинный текст */
/* строки текста не шире 70 знаков, но колонка выровнена по левому краю с карточками */
.prose > * { max-width: 70ch; }
.prose h2 { font: 600 clamp(24px, 3.4vw, 30px)/1.25 var(--serif); margin: 40px 0 10px; }
.prose h3 { font: 600 20px/1.3 var(--serif); margin: 28px 0 6px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

.route {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 0 0 18px;
}
.route h2 { margin-top: 0; }
.route .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.route .meta li {
  font-size: 14px; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 4px 12px; margin: 0;
}

.season-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
.season-table th, .season-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.season-table th { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.season-table td:first-child { color: var(--muted); white-space: nowrap; }

.note {
  background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0;
}
.note p { margin: 0; }

/* подвал */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

.center { text-align: center; }
.not-found { padding: 80px 0; }
.not-found h1 { font: 600 clamp(40px, 8vw, 72px)/1 var(--serif); margin: 0 0 12px; }
.not-found p { color: var(--muted); margin: 0 0 20px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero .wrap { padding-top: 36px; }
  .season-table, .season-table tbody, .season-table tr, .season-table td, .season-table th { display: block; width: 100%; }
  .season-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .season-table th, .season-table td { border: 0; padding: 2px 0; white-space: normal; }
  .season-table thead { display: none; }
  .season-table td.care::before { content: "Учесть: "; font-weight: 600; color: var(--warm); }
}
