:root {
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #898781;
  --surface: #fcfcfb;
  --bg: #f9f9f7;
  --border: rgba(11, 11, 11, .10);
  --r-kolomna: #2a78d6;
  --r-tarusa: #eb6834;
  --r-pereslavl: #1baf7a;
  --r-suzdal: #eda100;
  --r-nikola: #e87ba4;
  --r-torzhok: #008300;
  --radius: 16px;
  --nav-h: 58px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--r-kolomna); }

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin: 0 0 .4rem;
  letter-spacing: -.02em;
}

.section-sub {
  color: var(--text-2);
  margin: 0 0 1.6rem;
  max-width: 60ch;
}

main > section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1rem;
}

:focus-visible {
  outline: 3px solid var(--r-kolomna);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Навигация ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(252, 252, 251, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.nav-links a:hover { background: rgba(11, 11, 11, .06); color: var(--text); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #1c4e9c, #7a3fa0, #d1652a, #1baf7a, #1c4e9c);
  background-size: 300% 300%;
  animation: hero-flow 18s ease-in-out infinite;
}

@keyframes hero-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.hero-photo[hidden] { display: none; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 20, .35) 0%, rgba(8, 10, 20, .55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.25rem;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  margin: 0 0 2rem;
  opacity: .95;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}

.btn-primary {
  display: inline-block;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
  transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
}

.hero-credit {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  font-size: .72rem;
  color: rgba(255, 255, 255, .75);
  margin: 0;
}

/* ---------- Статы ---------- */
.stats { padding-top: 2.2rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.stat-num {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.stat-label { color: var(--text-3); font-size: .9rem; }

/* ---------- Карта ---------- */
.map-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  align-items: stretch;
}

.map-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .55rem .6rem;
  font: inherit;
  font-size: .93rem;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.legend-item:hover { background: rgba(11, 11, 11, .05); }

.legend-item[aria-pressed="true"] {
  background: color-mix(in srgb, var(--lc) 10%, transparent);
  border-color: color-mix(in srgb, var(--lc) 45%, transparent);
}

.legend-swatch {
  flex: 0 0 auto;
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--lc);
}

.legend-name { font-weight: 600; }

.legend-km { margin-left: auto; color: var(--text-3); font-size: .85rem; white-space: nowrap; }

.btn-ghost {
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-2);
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .5rem .8rem;
  cursor: pointer;
  transition: background .15s;
}

.btn-ghost:hover { background: rgba(11, 11, 11, .05); }

.legend-detail {
  border-top: 1px solid var(--border);
  padding-top: .7rem;
  font-size: .9rem;
  color: var(--text-2);
}

.legend-detail h3 { margin: 0 0 .3rem; font-size: 1rem; color: var(--text); }
.legend-detail p { margin: 0 0 .5rem; }
.legend-detail a { font-weight: 600; }

.leaflet-host {
  min-height: 540px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #e8ecef;
}

.mk-city {
  background: #fff;
  border: 3px solid var(--mc, #444);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.mk-dest {
  background: var(--mc, #444);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.mk-moscow {
  background: #0b0b0b;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.leaflet-popup-content { font-family: inherit; font-size: .9rem; line-height: 1.45; margin: 10px 14px; }

.leaflet-popup-content .popup-photo {
  display: block;
  width: 230px;
  max-width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 7px;
  background: rgba(11, 11, 11, .05);
}
.leaflet-popup-content b { font-size: 1rem; }
.leaflet-popup-content-wrapper { border-radius: 12px; }

@keyframes route-draw {
  from { stroke-dashoffset: var(--route-len, 2000); }
  to   { stroke-dashoffset: 0; }
}

.route-animate {
  animation: route-draw 1.4s ease-out forwards;
}

/* ---------- Карточки маршрутов ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.route-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--rc);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(11, 11, 11, .12);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 8.5;
  background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 75%, #fff), color-mix(in srgb, var(--rc) 100%, #000 15%));
  color: rgba(255, 255, 255, .85);
  overflow: hidden;
}

.media-fallback {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
}

.card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media img.img-failed { display: none; }

.media-credit {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 6px;
  font-size: .68rem;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  padding: .1rem .45rem;
  border-radius: 999px;
}

.card-body { padding: 1.2rem 1.3rem 1.4rem; }

.route-card h3 {
  margin: 0 0 .6rem;
  font-size: 1.35rem;
  letter-spacing: -.01em;
}

.route-card h4 {
  margin: 1.1rem 0 .5rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-3);
}

.road-name { font-weight: 400; text-transform: none; letter-spacing: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
  font-size: .82rem;
  font-weight: 600;
  padding: .28rem .65rem;
  border-radius: 999px;
  background: rgba(11, 11, 11, .055);
  color: var(--text-2);
}

.chip-accent {
  background: color-mix(in srgb, var(--rc) 14%, transparent);
  color: color-mix(in srgb, var(--rc) 75%, #000);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 .25rem;
}

.timeline li {
  position: relative;
  display: flex;
  gap: .8rem;
  padding: 0 0 .85rem 1.1rem;
  border-left: 2px solid color-mix(in srgb, var(--rc) 35%, transparent);
}

.timeline li:last-child { padding-bottom: .1rem; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: .42em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rc);
  border: 2px solid var(--surface);
}

.tl-km {
  flex: 0 0 56px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--rc);
  font-variant-numeric: tabular-nums;
  padding-top: .12em;
}

.timeline div { font-size: .93rem; color: var(--text-2); }
.timeline strong { color: var(--text); }

.sights {
  margin: 0;
  padding-left: 1.15rem;
  font-size: .93rem;
  color: var(--text-2);
}

.sights li { margin-bottom: .3rem; }
.sights li::marker { color: var(--rc); }

.tl-photo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  margin-left: auto;
  flex: 0 0 auto;
  background: rgba(11, 11, 11, .05);
}

.tl-photo.img-failed { display: none; }

.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .93rem;
  color: var(--text-2);
}

.shots li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .35rem;
}

.shots li::before {
  content: "📸";
  position: absolute;
  left: 0;
  top: .1em;
  font-size: .85em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: .9rem;
}

.gallery img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(11, 11, 11, .05);
}

.gallery img.img-failed { display: none; }

.option {
  margin: .9rem 0 0;
  font-size: .9rem;
  color: var(--text-2);
  background: rgba(11, 11, 11, .04);
  border-radius: 10px;
  padding: .55rem .8rem;
}

.warn {
  margin: .4rem 0 .2rem;
  font-size: .9rem;
  background: #fdf3e6;
  border: 1px solid #f0ddc0;
  color: #6b4a12;
  border-radius: 10px;
  padding: .65rem .85rem;
}

/* ---------- Калькулятор ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.calc-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: grid;
  gap: 1rem;
}

.field { display: grid; gap: .35rem; }

.field label, .field-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
}

.field select,
.field input[type="number"] {
  font: inherit;
  padding: .6rem .7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.field-note {
  font-size: .75rem;
  color: var(--text-3);
  font-weight: 500;
}

.seg { display: flex; gap: .5rem; }

.seg-opt { position: relative; flex: 1; }

.seg-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.seg-opt span {
  display: block;
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  padding: .55rem .5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: background .15s, color .15s, border-color .15s;
}

.seg-opt input:checked + span {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.seg-opt input:focus-visible + span {
  outline: 3px solid var(--r-kolomna);
  outline-offset: 2px;
}

.field-check label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  color: var(--text);
  font-size: .92rem;
}

.field-check small { color: var(--text-3); }

.calc-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.result-caption { margin: 0; color: var(--text-3); font-size: .9rem; }

.result-total {
  margin: .1rem 0 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.result-pp { margin: 0 0 .8rem; color: var(--text-2); font-weight: 600; }

.result-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: .9rem;
  color: var(--text-2);
}

.result-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .3rem 0;
  border-bottom: 1px dashed var(--border);
}

.result-lines .val { font-variant-numeric: tabular-nums; white-space: nowrap; }

.best {
  margin: 0 0 .9rem;
  font-size: .95rem;
  line-height: 1.45;
  background: color-mix(in srgb, var(--r-pereslavl) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--r-pereslavl) 30%, transparent);
  border-radius: 12px;
  padding: .7rem .9rem;
}

.tariff-edit {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: .5rem .7rem .7rem;
  margin: .5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.tariff-edit legend {
  font-size: .75rem;
  color: var(--text-3);
  padding: 0 .3rem;
}

.tariff-edit label {
  display: grid;
  gap: .2rem;
  font-size: .72rem;
  color: var(--text-3);
  font-weight: 500;
}

.tariff-edit input {
  font: inherit;
  font-size: .9rem;
  width: 100%;
  padding: .35rem .45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.best-alt {
  display: block;
  margin-top: .35rem;
  padding-top: .35rem;
  border-top: 1px solid color-mix(in srgb, var(--r-pereslavl) 25%, transparent);
  font-size: .88rem;
  color: var(--text-2);
}

.options { display: grid; gap: .45rem; margin-bottom: 1rem; }

.opt-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) 1fr 84px;
  align-items: center;
  gap: .6rem;
  font-size: .87rem;
  padding: .3rem .45rem;
  border-radius: 8px;
}

.opt-row.opt-current { background: rgba(11, 11, 11, .05); }

.opt-name { color: var(--text-2); font-weight: 600; }
.opt-win .opt-name { color: var(--text); }

.opt-badge {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #0d6b47;
  background: color-mix(in srgb, var(--r-pereslavl) 18%, transparent);
  border-radius: 999px;
  padding: .1rem .4rem;
  white-space: nowrap;
}

.opt-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(11, 11, 11, .06);
  overflow: hidden;
}

.opt-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--text-3);
  transition: width .5s cubic-bezier(.25, .8, .3, 1);
}

.opt-win .opt-bar { background: var(--r-pereslavl); }

.opt-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.opt-win .opt-val { color: var(--text); }

/* Рейтинг маршрутов по цене */
.cheapest {
  margin-top: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.cheapest h3 { margin: 0 0 .2rem; font-size: 1.1rem; letter-spacing: -.01em; }
.cheapest-sub { margin: 0 0 1rem; font-size: .88rem; color: var(--text-3); }

.cheapest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ch;
  display: grid;
  gap: .3rem;
}

.cheapest-list li {
  counter-increment: ch;
  display: grid;
  grid-template-columns: 1.6fr 62px 1.5fr 84px 92px;
  align-items: center;
  gap: .7rem;
  padding: .55rem .6rem .55rem 2rem;
  border-radius: 10px;
  font-size: .89rem;
  position: relative;
  border-left: 3px solid var(--rc);
}

.cheapest-list li:nth-child(odd) { background: rgba(11, 11, 11, .03); }

.cheapest-list li::before {
  content: counter(ch);
  position: absolute;
  left: .7rem;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.cheapest-list li:first-child::before { color: var(--r-pereslavl); }

.cheapest-list a { font-weight: 600; text-decoration: none; color: var(--text); }
.cheapest-list a:hover { text-decoration: underline; }

.ch-km, .ch-way { color: var(--text-3); font-size: .84rem; }
.ch-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-pp { text-align: right; color: var(--text-3); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 700px) {
  .cheapest-list li { grid-template-columns: 1fr 84px; row-gap: .15rem; }
  .ch-km, .ch-way { grid-column: 1; font-size: .8rem; }
  .ch-val, .ch-pp { grid-column: 2; }
  .opt-row { grid-template-columns: 1fr 76px; }
  .opt-track { grid-column: 1 / -1; }
}

.compare { display: grid; gap: .5rem; margin-bottom: 1rem; }

.compare-row {
  display: grid;
  grid-template-columns: 108px 1fr 76px;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
}

.compare-name { color: var(--text-2); font-weight: 600; }

.compare-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(11, 11, 11, .06);
  overflow: hidden;
}

.compare-bar {
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width .7s cubic-bezier(.25, .8, .3, 1);
}

.bar-own { background: var(--r-pereslavl); }
.bar-share { background: var(--r-suzdal); }

.compare-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  white-space: nowrap;
}

.fine-print { margin: 0; font-size: .78rem; color: var(--text-3); }

.carshare-notes {
  margin-top: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  font-size: .88rem;
  color: var(--text-2);
}

.carshare-notes summary { cursor: pointer; font-weight: 600; color: var(--text); }
.carshare-notes ul { margin: .7rem 0 .2rem; padding-left: 1.2rem; }
.carshare-notes li { margin-bottom: .35rem; }

/* ---------- Советы + запасные идеи ---------- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
}

.tip-ic { font-size: 1.4rem; line-height: 1.2; }
.tip p { margin: 0; font-size: .92rem; color: var(--text-2); }
.tip strong { color: var(--text); }

.backup-title { margin: 2.4rem 0 1rem; font-size: 1.25rem; letter-spacing: -.01em; }

.backup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}

.backup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  font-size: .9rem;
  transition: transform .2s, box-shadow .2s;
}

.backup:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(11, 11, 11, .1); }

.backup img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: .45rem;
  background: rgba(11, 11, 11, .05);
}

.backup img.img-failed { display: none; }

.backup-km { font-size: .78rem; font-weight: 700; color: var(--text-3); }
.backup strong { font-size: .98rem; }
.backup span:last-child { color: var(--text-2); font-size: .84rem; }

/* ---------- Футер ---------- */
.footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem 2.6rem;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-3);
  font-size: .84rem;
}

.footer p { max-width: 90ch; }

/* ---------- Анимации появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .backup-grid { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { grid-template-columns: 1fr; }
  .map-panel { order: 2; }
  .leaflet-host { min-height: 430px; }
  .calc-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: 1fr; }
  .backup-grid { grid-template-columns: 1fr 1fr; }
  .nav-logo { font-size: .95rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .route-card, .backup, .btn-primary, .compare-bar { transition: none; }
  .route-animate { animation: none; }
}
