* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); margin: 0; }
h2 { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
section { padding: 56px 0; }

/* ---------- шапка ---------- */
.nav {
  position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, 100% - 28px); height: 58px; padding: 0 10px 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px -18px rgba(12, 30, 22, .4);
  animation: nav-in .7s var(--ease) both;
}
@keyframes nav-in { from { opacity: 0; transform: translate(-50%, -20px); } }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none;
  background: conic-gradient(from 210deg, var(--hiking), var(--river), var(--bike), var(--auto), var(--hiking));
  animation: spin 14s linear infinite;
}
.brand-mark svg { width: 19px; height: 19px; animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav nav { display: flex; gap: 4px; }
.nav nav a { padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.nav nav a:hover, .nav nav a[aria-current] { background: var(--soft); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px;
  border: 0; border-radius: 17px; background: var(--card); color: var(--ink); font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -16px rgba(12, 30, 22, .5);
  transition: transform .3s var(--ease), box-shadow .3s, filter .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 30px -16px rgba(12, 30, 22, .55); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px var(--accent); position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.6s var(--ease) infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- первый экран ---------- */
.hero { position: relative; min-height: 100svh; padding: 0; display: flex; align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 78% 45%, color-mix(in srgb, var(--river) 22%, transparent), transparent 70%),
  radial-gradient(40% 40% at 12% 85%, color-mix(in srgb, var(--hiking) 20%, transparent), transparent 70%),
  radial-gradient(35% 35% at 30% 8%, color-mix(in srgb, var(--bike) 14%, transparent), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.08); } }
#globe { position: absolute; top: 50%; right: -12vw; width: min(92vh, 78vw); aspect-ratio: 1; transform: translateY(-50%); opacity: 0; transition: opacity 1.6s ease .2s; pointer-events: none; }
#globe.on { opacity: 1; }
#globe .maplibregl-control-container { display: none; }
.hero-text { position: relative; z-index: 2; width: min(1180px, 100% - 40px); margin-inline: auto; padding: 110px 0 60px; }
.hero-text > * { max-width: 600px; animation: rise .9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(44px, 7.4vw, 92px); line-height: .98; font-weight: 800; letter-spacing: -.045em; }
h1 em, .final h2 em { font-style: normal; background: linear-gradient(90deg, var(--hiking), var(--river), var(--bike), var(--auto), var(--hiking)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.lead { margin: 22px 0 30px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 520px !important; }
.counters { display: flex; gap: 34px; margin: 44px 0 0; }
.counters div { display: grid; }
.counters dt { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.counters dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- типы ---------- */
.type-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type-card {
  position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 22px; border-radius: 26px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 12%, var(--card)); text-decoration: none;
  transition: opacity .8s var(--ease), transform .5s var(--ease), box-shadow .4s, background .4s, color .3s; transition-delay: calc(var(--i, 0) * 70ms), 0s, 0s, 0s, 0s;
}
.type-card::before { content: ""; position: absolute; right: -50px; bottom: -50px; width: 190px; height: 190px; border-radius: 50%; background: var(--c); opacity: .16; transition: transform .7s var(--ease), opacity .4s; }
.type-card .ico { position: relative; width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: var(--c); color: #fff; transition: transform .5s var(--ease), background .3s, color .3s; }
.type-card .ico svg { width: 28px; height: 28px; }
.type-card b { position: relative; margin-top: auto; font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.type-card h3 { position: relative; margin: 6px 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.type-card p { position: relative; margin: 0; font-size: 14px; opacity: .72; }
.type-card.in:hover { transform: translateY(-8px); background: var(--c); color: #fff; box-shadow: 0 26px 46px -22px var(--c); }
.type-card:hover::before { transform: scale(3.4); opacity: .22; background: #fff; }
.type-card:hover .ico { transform: rotate(-8deg) scale(1.08); background: #fff; color: var(--c); }

/* ---------- бегущая лента ---------- */
.featured { padding-bottom: 30px; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.head h2 { margin: 0; }
.more { font-weight: 800; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.marquee { overflow: hidden; padding: 10px 0 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 18px; width: max-content; animation: slide var(--dur, 80s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(calc(-50% - 9px)); } }
.track .card { width: 300px; flex: none; }

/* ---------- карточка маршрута ---------- */
.card { position: relative; display: block; height: 360px; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; background: color-mix(in srgb, var(--c) 45%, #14201a); box-shadow: 0 16px 34px -22px rgba(12, 30, 22, .7); transition: transform .5s var(--ease), box-shadow .5s; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s, transform 1.2s var(--ease); }
.card img.ok { opacity: 1; }
.card .ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 30%, #000)); }
.card .ph svg { width: 86px; height: 86px; opacity: .3; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0, transparent 35%, rgba(0, 0, 0, .82)); }
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 46px -24px rgba(12, 30, 22, .8); }
.card:hover img { transform: scale(1.09); }
.card .badge { position: absolute; z-index: 2; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 9px; border-radius: 999px; background: var(--c); font-size: 12px; font-weight: 800; }
.card .badge svg { width: 14px; height: 14px; }
.card .info { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; }
.card .where { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.card h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; font-weight: 600; opacity: .88; }
.card .meta span + span::before { content: "·"; margin-right: 8px; opacity: .6; }
.card .go { position: absolute; z-index: 2; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #101b15; font-weight: 800; opacity: 0; transform: translate(-8px, 8px) scale(.8); transition: .4s var(--ease); }
.card:hover .go { opacity: 1; transform: none; }

/* ---------- регионы ---------- */
.districts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.district { padding: 20px 20px 14px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.district h3 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.district a { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -10px; padding: 7px 10px; border-radius: 11px; text-decoration: none; font-weight: 600; font-size: 15px; transition: background .2s, transform .3s var(--ease); }
.district a span { color: var(--muted); font-size: 13px; opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.district a:hover { background: var(--soft); transform: translateX(4px); }
.district a:hover span { opacity: 1; transform: none; }

.final { padding: clamp(36px, 6vw, 70px); border-radius: 34px; color: #fff; text-align: center; background: linear-gradient(120deg, #0f7a55, #136fb5, #6b3fc9, #0f7a55); background-size: 300% 300%; animation: flow 14s ease infinite; }
@keyframes flow { 50% { background-position: 100% 50%; } }
.final h2 { margin-bottom: 10px; }
.final p { margin: 0 auto 26px; max-width: 520px; opacity: .88; }
.final .cta { justify-content: center; }
.final .btn { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.final .btn.primary { background: #fff; color: #0f3d2d; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.foot { padding: 20px 0 46px; font-size: 13px; color: var(--muted); }

/* ---------- список маршрутов ---------- */
.catalog main { padding-top: 112px; min-height: 80vh; }
.cat-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 22px; animation: rise .7s var(--ease) both; }
.cat-head h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.filters { position: sticky; z-index: 10; top: 84px; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; gap: 10px; padding: 10px; margin-bottom: 26px; border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 14px 34px -24px rgba(12, 30, 22, .6); animation: rise .7s var(--ease) .08s both; }
.field { position: relative; }
.field svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.field select, .field input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: 14px; background: var(--soft); -webkit-appearance: none; appearance: none; transition: background .2s, border-color .2s, box-shadow .2s; }
.field select:focus, .field input:focus { outline: 0; background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.pills { display: flex; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 14px 0 11px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--c) 13%, transparent); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.pill svg { width: 19px; height: 19px; color: var(--c); transition: color .25s; }
.pill:hover { transform: translateY(-2px); }
.pill[aria-pressed=true] { background: var(--c); color: #fff; box-shadow: 0 10px 20px -10px var(--c); }
.pill[aria-pressed=true] svg { color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.grid .card { height: 330px; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.grid .empty { grid-column: 1 / -1; padding: 70px 0; text-align: center; color: var(--muted); }
.more-wrap { display: flex; justify-content: center; padding: 34px 0 10px; }

@media (max-width: 900px) {
  .type-cards { grid-template-columns: repeat(2, 1fr); }
  .type-card { min-height: 200px; }
  #globe { right: -40vw; width: 120vw; opacity: 0 !important; top: 34%; }
  #globe.on { opacity: .5 !important; }
  .filters { grid-template-columns: 1fr 1fr; position: static; }
  .pills { grid-column: 1 / -1; overflow-x: auto; }
  .counters { gap: 22px; }
}
@media (max-width: 520px) {
  .brand span:last-child { display: none; }
  .filters { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  section { padding: 38px 0; }
  .type-card b { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .track { animation: none; overflow-x: auto; }
}
