/* ============================================================
   ЭКСКУРСИОН — макет «Тёплая бумага»
   Дизайн-система: тёплый фон, серифные заголовки, тонкие линии
   ============================================================ */

:root {
  /* палитра из скетча */
  --bg: #FEFBF6;
  --bg-deep: #F8F3E9;
  --surface: #FFFFFF;
  --surface-2: #FAF6EF;
  --ink: #3E3A33;
  --ink-2: #8A8177;
  --ink-3: #B0A697;
  --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 {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-lg); background: var(--surface);
}
.hero-card img { width: 100%; height: 400px; object-fit: cover; }
.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 i { flex: 1; background: var(--line-strong); border-radius: 2px; display: block; min-height: 3px; }
.wave i.on { 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: none; }
}
@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: var(--ink-3); 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; }
