:root {
  --sky: #e9f1f5;
  --ink: #18232c;
  --muted: #5a6a74;
  --forest: #2d6a4a;
  --line: #c8d6dd;
  --panel: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #10181d;
    --ink: #e2eaee;
    --muted: #93a5ae;
    --forest: #6fbf91;
    --line: #26343c;
    --panel: #16212737;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
nav a { margin-left: 1.4rem; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--forest); }
a { color: var(--forest); }
a:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }

.hero { padding: 3.5rem 0 1rem; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 850; margin: 0 0 1rem; max-width: 14ch;
}
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin: 0; }
/* профиль высот — главный графический элемент */
.profile { display: block; width: 100%; height: auto; margin: 2.5rem 0 .4rem; }
.profile path.fill { fill: var(--forest); opacity: .14; }
.profile path.lineY { fill: none; stroke: var(--forest); stroke-width: 2.5; stroke-linejoin: round; }
.profile-cap { color: var(--muted); font-size: .9rem; margin: 0 0 3rem; }

h1 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -.02em; margin: 2.5rem 0 1rem; }
h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 2.4rem 0 .7rem; }
p, ul { max-width: 40rem; }
.meta { color: var(--muted); }

table.routes { width: 100%; border-collapse: collapse; margin: 1rem 0 3rem; }
table.routes th { text-align: left; font-weight: 600; color: var(--muted); font-size: .9rem; padding: .5rem .75rem .5rem 0; border-bottom: 2px solid var(--ink); }
table.routes td { padding: .9rem .75rem .9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.routes td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.routes a { font-weight: 700; text-decoration: none; }
table.routes a:hover { text-decoration: underline; }
.scroll { overflow-x: auto; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 1.5rem 0 2rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

footer.bottom { border-top: 1px solid var(--line); margin-top: 4rem; color: var(--muted); font-size: .9rem; }
footer.bottom .wrap { padding-top: 1.5rem; padding-bottom: 2.5rem; }
@media (max-width: 36rem) {
  nav a { margin: 0 1.2rem 0 0; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: .6rem; }
}
