/* ============================================================
   ЭКСКУРСИОН — макет «Тёплая бумага»
   Дизайн-система: тёплый фон, серифные заголовки, тонкие линии
   ============================================================ */

:root {
  /* палитра из скетча */
  --bg: #FEFBF6;
  --bg-deep: #F8F3E9;
  --surface: #FFFFFF;
  --surface-2: #FAF6EF;
  --ink: #3E3A33;
  --ink-2: #6E645A;
  --ink-3: #7C7165;
  --line: #E8DECE;
  --line-strong: #D8C9B2;
  --accent: #876F5D;
  --accent-2: #755F4F;
  --accent-ink: #FFFFFF;
  --accent-soft: #F1E7DA;
  --sage: #C0C9C0;
  --blush: #D7C3BA;
  --gold: #A98B54;

  /* форма */
  --r: 16px;
  --r-lg: 22px;
  --r-sm: 10px;
  --pill: 999px;

  /* тени */
  --sh: 0 6px 18px rgba(120, 96, 70, .07);
  --sh-lg: 0 22px 48px -22px rgba(120, 96, 70, .3);
  --sh-accent: 0 10px 24px -10px rgba(135, 111, 93, .55);

  /* типографика */
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 46% at 88% -4%, #F3E9DA 0%, transparent 62%),
    radial-gradient(42% 40% at -6% 22%, #F6EEE2 0%, transparent 70%);
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }

/* ---------- типографика ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 500; }
h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 500; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .65; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border-radius: var(--pill);
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  box-shadow: var(--sh-accent);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn.sm { padding: 9px 16px; font-size: 13px; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 251, 246, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 15px;
}
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 13px; border-radius: var(--pill); font-size: 14px; color: var(--ink-2); transition: .18s; }
.nav a:hover, .nav a.is-active { color: var(--ink); background: var(--accent-soft); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); transition: .18s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--line-strong); background: var(--surface); }

/* ---------- герой ---------- */
.hero { padding: 76px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { margin: 18px 0 26px; }

.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 7px 7px 7px 18px;
  max-width: 470px; box-shadow: var(--sh);
}
.search input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }
.search button { border-radius: var(--pill); padding: 10px 20px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; }

.metrics { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.metrics div { font-size: 13px; color: var(--ink-2); }
.metrics b { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 700; }

.hero-visual { position: relative; }
.hero-card {
  display: block;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-lg); background: var(--surface);
}
.hero-card img { display: block; width: 100%; height: 400px; object-fit: cover; border-radius: inherit; }
.hero-card .cap { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
.hero-badge {
  position: absolute; left: -20px; bottom: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 16px; box-shadow: var(--sh); display: flex; gap: 12px; align-items: center; font-size: 13px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- секции ---------- */
section { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.sec-head p { margin: 7px 0 0; color: var(--ink-2); font-size: 14px; }
.sec-link { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sec-link:hover { color: var(--accent); }

/* ---------- карточки городов ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }
.card img { width: 100%; height: 210px; object-fit: cover; transition: transform .55s ease; }
.card:hover img { transform: scale(1.045); }
.card-body { padding: 15px 17px 17px; }
.card-body h3 { margin-bottom: 5px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em;
  padding: 4px 10px; border-radius: var(--pill);
  background: var(--accent-soft); color: var(--accent-2);
}
.chip.overlay { position: absolute; top: 12px; left: 12px; background: rgba(255, 253, 248, .92); backdrop-filter: blur(6px); }
.chip.ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }
.rel { position: relative; }

/* ---------- точки дня ---------- */
.spotlight {
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 42px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px; box-shadow: var(--sh);
}
.spotlight img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--r); }

/* ---------- плеер ---------- */
.player {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--pill); padding: 10px 18px 10px 10px; margin-top: 20px;
}
.player.big { border-radius: var(--r); padding: 16px; gap: 18px; }
.play {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 16px; box-shadow: var(--sh-accent);
  transition: transform .18s;
}
.play:hover { transform: scale(1.06); }
.player.big .play { width: 56px; height: 56px; flex-basis: 56px; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 30px; }
.wave span { flex: 1; background: var(--line-strong); border-radius: 2px; display: block; min-height: 3px; }
.wave i { flex: 1; background: var(--line-strong); border-radius: 2px; display: block; min-height: 3px; }
.wave i.on, .wave i.is-played, .wave span.is-played { background: var(--accent); }
.time { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.player-tools { display: flex; gap: 6px; }
.player-tools .icon-btn { width: 32px; height: 32px; }

/* ---------- список точек ---------- */
.stop-list { display: grid; gap: 12px; }
.stop {
  display: grid; grid-template-columns: 46px 132px 1fr auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 18px 12px 12px; transition: .2s;
}
.stop:hover { border-color: var(--line-strong); box-shadow: var(--sh); transform: translateX(3px); }
.stop .num { font-family: var(--serif); font-size: 24px; color: var(--accent); text-align: center; }
.stop img { width: 132px; height: 88px; object-fit: cover; border-radius: var(--r-sm); }
.stop h4 { margin-bottom: 3px; }
.stop .sub { font-size: 13px; color: var(--ink-2); }
.stop .tools { display: flex; align-items: center; gap: 8px; }
.stop .dur { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }

/* ---------- маршруты ---------- */
.route {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 22px; transition: .2s;
}
.route:hover { border-color: var(--line-strong); box-shadow: var(--sh); transform: translateX(3px); }
.route .num { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1; }
.route h3 { margin-bottom: 4px; }
.route .facts { display: flex; gap: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.route .facts span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.step .n { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .12em; }
.step h3 { margin: 10px 0 8px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- врезки ---------- */
.callout {
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  padding: 16px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 22px 0; font-size: 14.5px;
}
.callout b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.callout.legend { border-left-color: var(--gold); }
.callout.legend b { color: var(--gold); }

/* ---------- хлебные крошки ---------- */
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); padding-top: 26px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .5; }

/* ---------- заголовок города ---------- */
.city-hero { padding: 26px 0 0; }
.city-hero-in { display: grid; grid-template-columns: 1fr 420px; gap: 44px; align-items: end; padding-bottom: 30px; }
.city-hero h1 { margin: 10px 0 12px; }
.city-stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.city-stats div { font-size: 12.5px; color: var(--ink-2); }
.city-stats b { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); }
.city-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.city-cover img { width: 100%; height: 280px; object-fit: cover; }

/* ---------- фильтры ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 22px; }
.filters button {
  padding: 8px 15px; border-radius: var(--pill); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); background: var(--surface); transition: .18s;
}
.filters button:hover { border-color: var(--line-strong); color: var(--ink); }
.filters button.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- карта-заглушка ---------- */
.map {
  position: relative; height: 300px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-strong); background: #F4EEE2;
  background-image:
    linear-gradient(to right, rgba(135,111,93,.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(135,111,93,.10) 1px, transparent 1px);
  background-size: 38px 38px;
}
.map .pin {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-family: var(--mono); font-size: 10px;
  box-shadow: var(--sh);
}
.map .pin.is-active { background: var(--accent); color: var(--accent-ink); transform: scale(1.18); }
.map .label {
  position: absolute; left: 16px; bottom: 14px;
  background: rgba(255,253,248,.92); border: 1px solid var(--line); border-radius: var(--pill);
  padding: 6px 13px; font-size: 11.5px; color: var(--ink-2); font-family: var(--mono);
}

/* ---------- статья точки ---------- */
.article { max-width: 720px; }
.article p { font-size: 16.5px; line-height: 1.75; color: #4A453D; }
.article h2 { margin: 34px 0 14px; }
.article h3 { margin: 26px 0 10px; font-size: 18px; }

.attraction-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.attraction-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.attraction-cover img { width: 100%; height: 430px; object-fit: cover; }
.meta-list { display: flex; gap: 22px; flex-wrap: wrap; margin: 16px 0 0; font-size: 13px; color: var(--ink-2); }
.meta-list span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- полоса ---------- */
.band {
  background: var(--accent-soft); border-radius: var(--r-lg);
  padding: 40px 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.band h2 { margin-bottom: 6px; }
.band p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- подвал ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: 30px; padding: 36px 0 48px;
  color: var(--ink-2); font-size: 13px;
}
.footer-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.footer-in h4 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 12px; font-weight: 600; }
.footer-in a { display: block; padding: 3px 0; }
.footer-in a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* ---------- метка макета ---------- */
.maket-badge {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  background: rgba(20,22,26,.9); color: #F3EFE7; text-decoration: none;
  border-radius: var(--pill); padding: 8px 14px; font-size: 11.5px;
  font-family: var(--mono); letter-spacing: .06em; opacity: .8; transition: .2s;
}
.maket-badge:hover { opacity: 1; }

/* ---------- адаптив ---------- */
@media (max-width: 1040px) {
  .hero-in, .spotlight, .attraction-hero, .city-hero-in { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .nav { display: flex; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .topbar-in { height: auto; min-height: 64px; padding: 10px 0; flex-wrap: wrap; row-gap: 8px; }
  .nav a { white-space: nowrap; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .grid-4, .grid-3, .steps { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 40px; }
  .hero-card img, .spotlight img, .attraction-cover img { height: 260px; }
  .stop { grid-template-columns: 34px 1fr; grid-template-areas: "n t" "i i" "m m"; row-gap: 10px; }
  .stop .num { grid-area: n; text-align: left; font-size: 18px; }
  .stop img { grid-area: i; width: 100%; height: 160px; }
  .stop .tools { grid-area: m; justify-content: space-between; }
  .route { grid-template-columns: 40px 1fr; }
  .route .facts { grid-column: 1 / -1; }
  .band { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .footer-in { grid-template-columns: 1fr; }
  .city-hero-in { gap: 24px; }
}

/* ---------- дополнения для реальных данных ---------- */
.card-blank {
  height: 210px;
  background:
    radial-gradient(70% 70% at 30% 20%, #EFE4D4 0%, transparent 60%),
    linear-gradient(140deg, #F6EEDF 0%, #EADCCC 100%);
}
.stop-blank {
  width: 132px; height: 88px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  display: grid; place-items: center; color: #8A7B6B; font-size: 18px;
}
.hero-blank .blank-art {
  height: 400px;
  background:
    radial-gradient(60% 60% at 75% 25%, #F1E4D2 0%, transparent 65%),
    linear-gradient(160deg, #FBF5EA 0%, #E9DAC7 100%);
}
.city-index { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.city-index-title { font-family: var(--serif); font-size: 19px; margin-bottom: 14px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip { padding: 7px 13px; font-size: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.city-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.city-chip .muted { color: var(--ink-3); margin-left: 4px; }
.filters-bar { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.filters-bar input {
  flex: 1; min-width: 220px; padding: 12px 18px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface);
  color: var(--ink); outline: none; box-shadow: var(--sh);
}
.filters-bar input:focus { border-color: var(--line-strong); }
a.stop, a.route, a.card { color: inherit; }

/* ---------- карта и аудиометки ---------- */
.map-live {
  height: 460px; width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #F4EEE2;
  z-index: 0;
}
.leaflet-container { font-family: var(--sans); font-size: 13px; }
.leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: var(--sh); }
.leaflet-popup-content { margin: 10px 14px; }
.leaflet-popup-content a { color: var(--ink); }

.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; }
.legend .lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.lg-audio { background: #0E8A3E; box-shadow: 0 0 0 3px rgba(14,138,62,.18); }
.lg-empty { background: #8A7B6B; box-shadow: 0 0 0 3px rgba(138,123,107,.16); }

.badge-audio {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: #0E8A3E; background: rgba(14, 138, 62, .10);
  padding: 3px 9px; border-radius: var(--pill); white-space: nowrap;
}
.stop-blank.has-audio {
  color: #0E8A3E; border-color: rgba(14, 138, 62, .38); background: rgba(14, 138, 62, .08);
}
.listen-note { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; font-family: var(--mono); letter-spacing: .04em; }
/* ---------- переключатель карты ---------- */
.map-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 16px; flex-wrap: wrap;
}
.map-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface);
            border: 1px solid var(--line); border-radius: var(--pill); }
.map-tabs button {
  padding: 9px 18px; border-radius: var(--pill); font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); transition: .18s; display: inline-flex; gap: 7px; align-items: center;
}
.map-tabs button span { font-family: var(--mono); font-size: 11px; opacity: .7; }
.map-tabs button:hover:not(:disabled) { color: var(--ink); }
.map-tabs button.is-active { background: var(--accent); color: var(--accent-ink); }
.map-tabs button.is-active span { opacity: .85; }
.map-tabs button:disabled { opacity: .4; cursor: default; }
.map-hint { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.lg-route { background: var(--accent); }

/* ---------- кластеры ---------- */
.cluster-wrap { background: transparent; border: 0; }
.cluster-pin {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(135, 111, 93, .92);
  color: #FFFDF9;
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
  border: 2px solid rgba(255, 253, 249, .85);
  box-shadow: 0 4px 14px rgba(90, 70, 50, .28);
}
.route-label-wrap { background: transparent; border: 0; }
.route-label {
  position: absolute; transform: translate(-50%, -50%);
  background: rgba(255, 253, 249, .95);
  border: 1px solid var(--accent);
  border-radius: var(--pill);
  padding: 4px 11px; font-size: 11px; white-space: nowrap;
  color: var(--ink); box-shadow: var(--sh);
}

/* ---------- подсветка строк ---------- */
.stop.is-highlighted, .stop.is-playing {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--sh);
}
.play-stop {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; transition: .18s;
}
.play-stop:hover { background: var(--accent); color: #fff; }

/* ---------- мини-плеер маршрута ---------- */
.mini-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255, 253, 249, .97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -12px 34px -22px rgba(90, 70, 50, .45);
}
.mp-progress { height: 3px; background: var(--line); }
.mp-progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .25s linear; }
.mp-body {
  max-width: var(--wrap); margin: 0 auto;
  padding: 12px 24px; display: flex; align-items: center; gap: 18px;
}
.mp-info { flex: 1; min-width: 0; }
.mp-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.mp-title { font-family: var(--serif); font-size: 16px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-controls { display: flex; align-items: center; gap: 6px; }
.mp-play {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: var(--sh-accent);
}
@media (max-width: 640px) {
  .mp-body { padding: 10px 14px; gap: 10px; }
  .mp-title { font-size: 14px; }
}

/* ---------- пустой результат ---------- */
.empty-block {
  padding: 40px; text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.empty-block h3 { margin-bottom: 8px; }
.empty-block p { color: var(--ink-2); margin-bottom: 16px; }
/* ---------- сегментированный переключатель карты ---------- */
.segmented {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: inset 0 1px 2px rgba(120, 96, 70, .06);
}
.segmented button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--pill);
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.segmented button .icon { font-size: 15px; opacity: .8; }
.segmented button:hover:not(:disabled):not(.is-active) { color: var(--ink); background: rgba(255,255,255,.7); }
.segmented button.is-active {
  background: var(--ink); color: #FEFBF6;
  box-shadow: 0 2px 8px rgba(62, 58, 51, .22);
}
.segmented button.is-active .icon { opacity: 1; }
.segmented button:disabled { opacity: .35; cursor: default; }
.seg-count {
  font-family: var(--mono); font-size: 10.5px;
  background: rgba(0,0,0,.07); color: inherit;
  padding: 2px 7px; border-radius: var(--pill);
}
.segmented button.is-active .seg-count { background: rgba(255,255,255,.2); }
.city-chip.is-on { background: var(--ink); border-color: var(--ink); color: #FEFBF6; }
.city-chip.is-on .muted { color: rgba(255,255,255,.65); }
.stop-text { min-width: 0; }
.stop-text a { color: inherit; }
.stop-text a:hover h4 { color: var(--accent); }
/* ---------- заголовок карты ---------- */
.map-title { font-family: var(--serif); font-size: 21px; color: var(--ink); }
.map-title span {
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: var(--pill); margin-left: 6px; vertical-align: middle;
}
.map-live { height: 480px; }
/* ---------- лайк ---------- */
.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--ink-2); cursor: pointer; transition: .18s;
}
.like-btn:hover { border-color: #B4645A; color: #B4645A; }
.like-btn.is-liked { background: rgba(180,100,90,.1); border-color: #B4645A; color: #B4645A; }
.like-btn.is-liked .icon { fill: #B4645A; }
.like-btn b { font-weight: 600; }
.route-label {
  max-width: 260px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- маршруты: номера остановок и список ---------- */
.route-pin {
  width: 26px; height: 26px; border-radius: 50%;
  color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid rgba(255, 253, 249, .95);
  box-shadow: 0 2px 8px rgba(60, 40, 30, .35);
  transition: opacity .2s ease;
}
.route-panel { display: grid; gap: 10px; }
.route-row {
  display: grid; grid-template-columns: 14px 1fr auto auto;
  gap: 16px; align-items: center;
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.route-row:hover, .route-row.is-active {
  border-color: var(--line-strong); background: var(--surface-2); box-shadow: var(--sh);
}
.route-dot { width: 14px; height: 14px; border-radius: 50%; display: block; }
.route-row h3 { font-size: 17px; margin-bottom: 3px; }
.route-row h3:hover { color: var(--accent); }
.route-row-body .sub { font-size: 12.5px; }
.route-row-facts { display: flex; gap: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.route-row-facts span { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 780px) {
  .route-row { grid-template-columns: 14px 1fr; row-gap: 10px; }
  .route-row-facts { grid-column: 2; }
  .route-row > .btn { grid-column: 2; justify-self: start; }
}

/* текущая остановка маршрута на карте */
.route-pin.is-current {
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(255, 253, 249, .75), 0 4px 14px rgba(60, 40, 30, .4);
}

/* ---------- перемотка и время ---------- */
.mp-time {
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  margin-top: 2px; letter-spacing: .03em;
}
.mp-progress { cursor: pointer; touch-action: none; height: 5px; }
.mp-progress:hover .mp-progress-fill { background: var(--accent-2); }
.wave { touch-action: none; }
.wave:hover i { background: var(--line-strong); }
.wave:hover i.on { background: var(--accent); }

/* строка маршрута — ссылка целиком */
.route-row-go { color: var(--ink-3); display: grid; place-items: center; transition: .18s; }
.route-row:hover .route-row-go { color: var(--accent); transform: translateX(3px); }
a.route-row { color: inherit; }

/* доступные размеры нажатия на мобильных */
@media (max-width: 1040px) {
  .nav a { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 14px; }
  .crumbs, .crumbs a { min-height: 32px; display: inline-flex; align-items: center; }
  .sec-link { min-height: 32px; }
}
/* бейдж на главной не выходит за край */
.hero-badge { left: 0; max-width: calc(100% - 8px); }

/* ---------- живой поиск ---------- */
.live-search {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--pill);
  max-width: 460px;
}
.live-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196, 98, 63, .10); }
.live-search input {
  flex: 1; border: 0; background: none; outline: none;
  font: inherit; font-size: 15px; color: var(--ink);
}
.live-search input::placeholder { color: var(--ink-3); }


/* Выпадающие результаты поиска на главной */
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line, #E7E0D5);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(60, 45, 30, 0.14);
  max-height: 320px;
  overflow: auto;
  z-index: 40;
}
.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line-2, #F1EBE2);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: #F8F4EE; }


/* Карточка города без фотографии */
.card-plain {
  height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background:
    radial-gradient(80% 80% at 30% 15%, #F3E7D6 0%, transparent 65%),
    linear-gradient(150deg, #FBF4E9 0%, #E9DAC8 100%);
}
.card-plain span {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  color: #6B5B47;
  opacity: .75;
}
.badge-soon {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A7A64;
  background: rgba(138, 122, 100, .12);
  padding: 3px 9px;
  border-radius: var(--pill);
  white-space: nowrap;
}
.chip-audio {
  margin-left: 4px;
  font-size: 10px;
  color: #0E8A3E;
  background: rgba(14, 138, 62, .10);
  padding: 1px 6px;
  border-radius: var(--pill);
}


/* Фильтры на странице городов */
.filter-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--pill);
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.filter-chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-chip.toggle { margin-left: auto; }
.sec-more { display: flex; justify-content: center; margin-top: 26px; }


/* Подпись над баннером */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.hero-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}


/* Глобальный плеер: не перекрывает содержимое */
body.has-player { padding-bottom: 92px; }
@media (max-width: 640px) { body.has-player { padding-bottom: 108px; } }


/* Кнопка прослушивания у остановки маршрута */
.stop-play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; transition: background .2s; }
.stop-play:hover, .stop-play:focus-visible { background: rgba(255,255,255,.35); outline: none; }


/* Удобные тап-таргеты */
@media (max-width: 719px) {
  .chip, .city-chip, .tab, .map-tab { min-height: 44px; display: inline-flex; align-items: center; }
  .icon-btn, .play-stop, .like-btn, .stop-play { min-width: 44px; min-height: 44px; }
  .btn { min-height: 44px; }
  .btn.sm { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
  input[type="search"], input[type="text"], input[type="email"], .search input { font-size: 16px; }
}


/* Видимый фокус поиска и кнопок */
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 14px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* Эквалайзер во время воспроизведения */
.wave.is-playing i, .wave.is-playing span { animation: eq-bar .9s ease-in-out infinite alternate; transform-origin: center; }
.wave.is-playing i:nth-child(3n), .wave.is-playing span:nth-child(3n) { animation-duration: 1.15s; }
.wave.is-playing i:nth-child(3n+1), .wave.is-playing span:nth-child(3n+1) { animation-duration: .72s; }
.wave.is-playing i:nth-child(4n+2), .wave.is-playing span:nth-child(4n+2) { animation-duration: 1.0s; }
@keyframes eq-bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .wave.is-playing i, .wave.is-playing span { animation: none; } }
