:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --text: #1f2a24;
  --muted: #6b746e;
  --accent: #2f6b4f;
  --accent-2: #c98a3d;
  --line: #e2ddd1;
  --hero-1: #1d3b4f;
  --hero-2: #2f6b4f;
  --hill-back: #3e7a5c;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141917;
    --surface: #1d2420;
    --text: #e8ece9;
    --muted: #9aa49e;
    --accent: #6fbf94;
    --accent-2: #e0a65c;
    --line: #2c3530;
    --hill-back: #2a5440;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; }
a { color: var(--accent); }
.muted { color: var(--muted); }

/* Навигация */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px;
  color: #fff;
  transition: background .3s, box-shadow .3s;
}
.nav--solid { background: rgba(20, 40, 32, .92); backdrop-filter: blur(6px); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.nav__logo { color: #fff; font-weight: 700; text-decoration: none; font-size: 20px; }
.nav__links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav__links a { color: #fff; text-decoration: none; opacity: .85; font-size: 15px; }
.nav__links a:hover { opacity: 1; }

/* Главный экран */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 210, 140, .35), transparent 40%),
    linear-gradient(180deg, var(--hero-1), var(--hero-2));
}
.hero__inner { position: relative; z-index: 1; padding: 0 16px 120px; }
.hero__kicker { letter-spacing: .12em; text-transform: uppercase; font-size: 14px; opacity: .8; margin: 0 0 12px; }
.hero__title { font-size: clamp(56px, 13vw, 140px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
.hero__lead { font-size: clamp(18px, 2.5vw, 24px); opacity: .9; margin: 8px 0 32px; }
.hero__more {
  display: inline-block; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.5); padding: 10px 22px; border-radius: 999px;
  animation: bob 2s ease-in-out infinite;
}
.hero__hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: 200px; }
.hill--back { fill: var(--hill-back); opacity: .8; }
.hill--front { fill: var(--bg); }

@keyframes bob { 50% { transform: translateY(6px); } }

/* Секции */
.section { max-width: 1040px; margin: 0 auto; padding: 72px 24px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about p { margin: 0; }

/* Хронология */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 0 0 28px 24px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-2); border: 3px solid var(--bg);
}
.timeline__year { font-weight: 800; color: var(--accent); font-size: 22px; }
.timeline p { margin: 0; color: var(--muted); }
.timeline h3 { margin-bottom: 4px; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat__num { display: block; font-size: 32px; font-weight: 800; color: var(--accent); }
.stat__label { color: var(--muted); font-size: 15px; }

.chart__title { margin-bottom: 16px; }
.chart {
  display: flex; align-items: flex-end; gap: 10px; height: 240px;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.bar {
  flex: 1; position: relative; border-radius: 6px 6px 0 0;
  background: var(--accent);
  height: 0; transition: height 1s cubic-bezier(.2,.7,.2,1);
}
.chart.is-visible .bar { height: calc(var(--v) / 2748 * 80%); }
.bar__val { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; }
.bar__year { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }
.chart { margin-bottom: 40px; padding-bottom: 32px; }

.facts { padding-left: 20px; }
.facts li { margin-bottom: 8px; }
.facts li::marker { color: var(--accent-2); }

/* Как добраться */
.route { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.route > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.route p { margin: 0 0 8px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-size: 16px;
}
@media (prefers-color-scheme: dark) { .btn { color: #10201a; } }

.footer { text-align: center; padding: 40px 16px; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__more { animation: none; }
}

/* Телефоны */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { padding: 10px 16px; }
  .nav__links { display: none; }
  .section { padding: 56px 16px; }
  .about, .route { grid-template-columns: 1fr; gap: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat__num { font-size: 26px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .chart { gap: 4px; padding: 16px 8px 32px; }
  .bar__val, .bar__year { font-size: 10px; }
}
