/* =========================================================
   Halden — общие стили для всех страниц
   ========================================================= */
:root {
  --ink: #0b1013;
  --ink-2: #10171b;
  --panel: rgba(14, 19, 23, 0.84);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --hover: rgba(255, 255, 255, 0.065);
  --text: #ffffff;
  --soft: rgba(255, 255, 255, 0.74);
  --muted: rgba(255, 255, 255, 0.60);
  --faint: rgba(255, 255, 255, 0.42);
  --accent: #7fd6d0;
  --error: #ff8f80;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --morph: 0.5s;
  --gutter: clamp(20px, 3.4vw, 52px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: "Geist", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img { display: block; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(127, 214, 208, 0.35); }

h1, h2, h3, h4 { font-weight: 500; margin: 0; }
p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Главный экран ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg,
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #1b2a30 var(--img) center 45% / cover no-repeat;
  animation: heroIn 2.4s var(--ease) both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6,10,12,0.35) 0%, rgba(6,10,12,0) 22%),
    linear-gradient(to top, rgba(6,9,11,0.8) 0%, rgba(6,9,11,0.25) 30%, rgba(6,9,11,0) 55%);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
  animation: fadeUp 1s var(--ease) 0.9s both;
}
.scroll-cue span:first-child,
.scroll-cue span:last-child { opacity: 0.8; transition: transform 0.4s var(--ease); }
.scroll-cue:hover span:first-child { transform: translateX(-4px); }
.scroll-cue:hover span:last-child { transform: translateX(4px); }

/* Страницы разделов: первый экран с заголовком */
.page-hero {
  position: relative;
  min-height: 560px;
  height: 82vh;
  height: 82svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
.page-hero.is-short { height: 62vh; height: 62svh; min-height: 480px; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(6,10,12,0.45) 0%, rgba(6,10,12,0) 26%),
    linear-gradient(to top, rgba(11,16,19,1) 0%, rgba(11,16,19,0.55) 34%, rgba(11,16,19,0) 66%);
}
.page-hero-inner {
  padding-bottom: clamp(40px, 6vw, 80px);
  animation: fadeUpPlain 1.1s var(--ease) 0.5s both;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a { transition: color 0.25s ease; }
.crumbs a:hover { color: #fff; }
.page-hero h1 {
  font-size: clamp(46px, 8vw, 116px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 12ch;
}
.page-hero .lead {
  margin-top: 26px;
  max-width: 600px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--soft);
}

@keyframes heroIn {
  from { transform: scale(1.08); filter: brightness(0.6); }
  to   { transform: scale(1);    filter: brightness(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fadeUpPlain {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
}

/* ---------- Шапка ---------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
.bar {
  height: 76px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo {
  width: 30px;
  height: 26px;
  display: inline-flex;
  justify-self: start;
  animation: fadeDown 0.9s var(--ease) 0.35s backwards;
}
.logo svg { width: 30px; height: 26px; }

/* Только прозрачность: transform сделал бы nav контейнером для выпадающего меню */
.desktop-nav { animation: fadeIn 0.9s ease 0.45s backwards; }
.links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trigger,
.plain-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 14.5px;
  color: var(--soft);
  transition: color 0.25s ease;
}
.trigger:hover,
.plain-link:hover,
.plain-link[aria-current="page"],
.trigger.is-current,
.trigger[aria-expanded="true"] { color: #fff; }
.trigger svg {
  width: 8px;
  height: 5px;
  transition: transform 0.35s var(--ease);
}
.trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.actions {
  justify-self: end;
  display: flex;
  gap: 10px;
  animation: fadeDown 0.9s var(--ease) 0.55s backwards;
}
.cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  background: #fff;
  color: #0b0f12;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s, transform 0.25s;
}
.cta:hover { background: #e9eef0; transform: translateY(-1px); }

.menu-btn {
  display: none;
  width: 36px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}
.menu-btn svg { width: 16px; height: 16px; }

/* ---------- Выпадающее меню с морфингом ---------- */
.dd {
  --x: 0px;
  --w: 400px;
  --h: 300px;
  --s: 0.97;
  position: absolute;
  top: 64px;
  left: 0;
  width: var(--w);
  height: var(--h);
  transform: translateX(var(--x)) scale(var(--s));
  transform-origin: 50% 0;
  opacity: 0;
  pointer-events: none;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.65), 0 2px 10px rgba(0,0,0,0.2);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  overflow: hidden;
  transition:
    transform var(--morph) var(--ease),
    width var(--morph) var(--ease),
    height var(--morph) var(--ease),
    opacity 0.3s ease;
}
.dd.open { --s: 1; opacity: 1; pointer-events: auto; }
.dd.instant { transition: opacity 0.3s ease, transform var(--morph) var(--ease); }
.dd.instant.snap { transition: none; }

.panel {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  filter: blur(8px);
  transform: translateX(0);
  transition:
    opacity 0.26s ease,
    transform var(--morph) var(--ease),
    filter 0.4s ease,
    visibility 0s linear var(--morph);
}
.panel[data-state="exit-left"]  { transform: translateX(-56px); }
.panel[data-state="exit-right"] { transform: translateX(56px); }
.panel[data-state="active"] {
  opacity: 1;
  visibility: visible;
  filter: blur(0);
  transform: translateX(0);
  transition:
    opacity 0.36s ease 0.06s,
    transform var(--morph) var(--ease),
    filter 0.45s ease 0.04s,
    visibility 0s;
}
.panel.snap { transition: none !important; }

#p-discover {
  width: 664px;
  height: 358px;
  display: grid;
  grid-template-columns: 236px 1fr;
}
.d-list {
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 2px;
}
.d-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  transition: background 0.3s;
}
.d-item.is-active { background: var(--hover); }
.d-item strong { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.d-item span { font-size: 13px; line-height: 1.42; color: var(--muted); }

.d-media {
  position: relative;
  overflow: hidden;
  border-radius: 0 15px 15px 0;
}
.d-media::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right, rgba(14,19,23,0.55), rgba(14,19,23,0));
}
.d-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(10px);
  transition: opacity 0.6s ease, transform 0.9s var(--ease), filter 0.6s ease;
}
.d-media img.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  z-index: 1;
}

#p-journeys {
  width: 446px;
  height: 308px;
  padding: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  isolation: isolate;
}
.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.9s var(--ease), filter 0.5s;
}
.card:hover img,
.card:focus-visible img { transform: scale(1.05); filter: brightness(1.08); }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8,11,13,0.88) 0%, rgba(8,11,13,0.35) 38%, rgba(8,11,13,0) 60%);
}
.card strong { font-size: 15.5px; font-weight: 500; margin-bottom: 5px; }
.card span { font-size: 13px; line-height: 1.42; color: var(--muted); }

#p-regions {
  width: 232px;
  height: 218px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.r-link {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 15px;
  transition: background 0.25s;
}
.r-link:hover,
.r-link:focus-visible,
.r-link[aria-current="page"] { background: var(--hover); }

/* ---------- Мобильное меню ---------- */
.sheet {
  position: absolute;
  top: 68px;
  left: 12px;
  right: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  max-height: calc(100svh - 90px);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: 50% 0;
  transition: opacity 0.3s ease, transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.sheet.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, transform 0.45s var(--ease), visibility 0s;
}
.sheet h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 12px 6px;
}
.sheet a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 15px;
}
.sheet a:hover,
.sheet a[aria-current="page"] { background: var(--hover); }

/* =========================================================
   Контент страниц
   ========================================================= */
.section { padding: clamp(80px, 10vw, 150px) 0; }
.section.tight { padding-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 18px;
  max-width: 16ch;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head p.side {
  max-width: 380px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.big-text {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
.big-text .dim { color: var(--faint); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  color: #0b0f12;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.25s, transform 0.25s var(--ease), border-color 0.25s;
}
.btn:hover { background: #e9eef0; transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--line-2);
}
.btn.ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--soft);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.text-link:hover { color: #fff; border-color: #fff; }

/* Цифры */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.stats strong {
  display: block;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stats span { display: block; margin-top: 12px; color: var(--muted); font-size: 14.5px; }

/* Плитки направлений */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tile {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.1s var(--ease), filter 0.6s;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8,11,13,0.9) 0%, rgba(8,11,13,0.3) 42%, rgba(8,11,13,0) 65%);
}
.tile:hover img,
.tile:focus-visible img { transform: scale(1.06); filter: brightness(1.08); }
.tile .num { position: absolute; top: 20px; left: 22px; font-size: 13px; color: rgba(255,255,255,0.8); }
.tile .go {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  transform: scale(0.85);
  opacity: 0;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.tile .go svg { width: 13px; height: 13px; }
.tile:hover .go,
.tile:focus-visible .go { opacity: 1; transform: none; }
.tile h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; }
.tile p { margin-top: 8px; color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.tile .meta { margin-top: 14px; font-size: 13px; color: var(--muted); }

.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tiles.two .tile { aspect-ratio: 16 / 11; padding: 30px; }
.tiles.two .tile h3 { font-size: clamp(26px, 2.8vw, 40px); }
.tiles.three { grid-template-columns: repeat(3, 1fr); }

/* Список регионов */
.rows { border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr auto 40px;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease), color 0.3s;
}
.row .idx { color: var(--faint); font-size: 14px; }
.row h3 {
  font-size: clamp(28px, 4vw, 54px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.row .where { color: var(--muted); font-size: 15px; text-align: right; }
.row .arrow { justify-self: end; transition: transform 0.45s var(--ease); }
.row .arrow svg { width: 18px; height: 18px; }
.row:hover { padding-left: 14px; }
.row:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.row .peek {
  position: absolute;
  right: 22%;
  top: 50%;
  width: 220px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  opacity: 0;
  transform: translateY(-50%) scale(0.92) rotate(-3deg);
  transition: opacity 0.4s, transform 0.6s var(--ease);
  pointer-events: none;
}
.row:hover .peek { opacity: 1; transform: translateY(-50%) scale(1) rotate(-3deg); }

/* Блок призыва */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  padding: clamp(48px, 8vw, 110px) clamp(28px, 6vw, 90px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.cta-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(8,11,13,0.88) 0%, rgba(8,11,13,0.55) 50%, rgba(8,11,13,0.25) 100%);
}
.cta-band h2 {
  font-size: clamp(32px, 4.6vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 14ch;
}
.cta-band p { margin-top: 18px; color: var(--soft); max-width: 460px; font-size: 16.5px; line-height: 1.55; }

/* Факты о маршруте */
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts div { padding: 26px 22px 26px 0; }
.facts div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 10px 0 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.01em; }

/* Текст в две колонки */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 100px);
}
.split .sticky { position: sticky; top: 40px; align-self: start; }
.prose p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--soft);
}
.prose p + p { margin-top: 1.1em; }
.prose p:first-child {
  color: #fff;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

/* Программа по дням */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline .day { color: var(--faint); font-size: 14px; padding-top: 4px; }
.timeline h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.015em; }
.timeline p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 640px; }

/* Списки «включено» */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.list-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 40px);
}
.list-card h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 22px; }
.list-card ul { list-style: none; margin: 0; padding: 0; }
.list-card li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 15.5px;
}
.list-card li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(127,214,208,0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-5' fill='none' stroke='%237fd6d0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.list-card.minus li::before {
  background: rgba(255,255,255,0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M6 9h6' fill='none' stroke='white' stroke-opacity='.6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Карточки преимуществ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.feature:hover { background: rgba(255,255,255,0.05); border-color: var(--line-2); transform: translateY(-4px); }
.feature .n { font-size: 13px; color: var(--faint); }
.feature h3 { margin-top: auto; font-size: 21px; letter-spacing: -0.015em; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Ближайшие выезды */
.departures { border-top: 1px solid var(--line); }
.dep {
  display: grid;
  grid-template-columns: 1.1fr 2fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.dep .date { font-weight: 500; }
.dep .route { color: #fff; }
.dep .route small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.dep .seats { color: var(--muted); }
.dep .seats.low { color: var(--accent); }
.dep .price { font-weight: 500; }
.dep .btn { height: 40px; padding: 0 18px; font-size: 14px; }

/* Маршруты региона */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.route {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.025);
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.route:hover { border-color: var(--line-2); transform: translateY(-4px); }
.route .pic { aspect-ratio: 16 / 10; overflow: hidden; }
.route .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.route:hover .pic img { transform: scale(1.05); }
.route .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.route h3 { font-size: 22px; letter-spacing: -0.015em; }
.route p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.route .meta {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--soft);
}
.route .meta b { font-weight: 500; color: #fff; }

/* Цитата */
.quote {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 26ch;
}
.quote-by { margin-top: 26px; color: var(--muted); font-size: 15px; }

/* Команда */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.person {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: rgba(255,255,255,0.03);
}
.person .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(127,214,208,0.35), rgba(255,255,255,0.06));
  border: 1px solid var(--line-2);
}
.person h3 { margin-top: 26px; font-size: 21px; letter-spacing: -0.015em; }
.person .role { margin-top: 4px; color: var(--accent); font-size: 14px; }
.person p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Листалка между страницами */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pager a {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 28px;
  transition: border-color 0.3s, background 0.3s;
}
.pager a:hover { border-color: var(--line-2); background: rgba(255,255,255,0.03); }
.pager small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.pager strong { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.pager .next { text-align: right; }

/* ---------- Форма заявки ---------- */
.contact {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}
.contact-aside .h2 { max-width: 12ch; }
.contact-aside > p { margin-top: 22px; color: var(--soft); font-size: 16.5px; line-height: 1.6; max-width: 380px; }
.contact-info { margin-top: 40px; display: grid; gap: 22px; }
.contact-info small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-info a, .contact-info span { display: inline-block; margin-top: 6px; font-size: 18px; }
.contact-info a:hover { color: var(--accent); }

.form-wrap {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 3.4vw, 44px);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label,
.field legend {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}
.field fieldset { border: 0; margin: 0; padding: 0; }
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: rgba(255,255,255,0.32); }
.input:hover { border-color: rgba(255,255,255,0.22); }
.input:focus { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); }
textarea.input { height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
select.input {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='white' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 10px 6px;
  cursor: pointer;
}
select.input option { background: #141b20; color: #fff; }
.field .err { display: none; margin-top: 7px; font-size: 13px; color: var(--error); }
.field.is-error .input { border-color: var(--error); }
.field.is-error .err { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 14.5px;
  color: var(--soft);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip span:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.chip input:checked + span { background: #fff; color: #0b0f12; border-color: #fff; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.consent input:checked {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.2l2.6 2.6 5.4-5.6' fill='none' stroke='%230b0f12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  border-color: #fff;
}
.field.is-error .consent input { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-foot .note { font-size: 13px; color: var(--faint); max-width: 300px; }
.form-fail { color: var(--error); font-size: 14px; }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(11,15,18,0.25);
  border-top-color: #0b0f12;
  animation: spin 0.8s linear infinite;
  display: none;
}
.is-sending .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Заявка отправлена */
.success { display: none; text-align: center; padding: clamp(20px, 4vw, 48px) 0; }
.is-sent .form { display: none; }
.is-sent .success { display: block; animation: fadeUpPlain 0.8s var(--ease) both; }
.check {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(127,214,208,0.12);
  box-shadow: 0 0 0 1px rgba(127,214,208,0.3), 0 0 60px rgba(127,214,208,0.25);
}
.check svg { width: 40px; height: 40px; }
.check path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.is-sent .check path { animation: draw 0.7s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 {
  margin-top: 30px;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.success p { margin: 16px auto 0; color: var(--soft); max-width: 460px; font-size: 16.5px; line-height: 1.6; }
.ticket {
  margin: 32px auto 0;
  max-width: 440px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 20px;
}
.ticket div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 14.5px; }
.ticket div + div { border-top: 1px solid var(--line); }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; text-align: right; }
.success .actions-row { margin-top: 34px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.footer { padding: clamp(64px, 8vw, 110px) 0 36px; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer .brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.footer .brand svg { width: 30px; height: 26px; }
.footer .about { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 320px; }
.footer h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--soft); font-size: 15px; transition: color 0.25s; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--faint);
}
.wordmark {
  margin-top: clamp(40px, 6vw, 70px);
  font-size: clamp(90px, 21vw, 330px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: rgba(255,255,255,0.05);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* Появление при прокрутке */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts div:nth-child(4) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .dep { grid-template-columns: 1fr 2fr 1fr auto; }
  .dep .seats { display: none; }
}

@media (max-width: 860px) {
  .bar { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-btn { display: inline-flex; }

  .split, .contact { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .tiles.two, .tiles.three, .routes, .team, .lists { grid-template-columns: 1fr; }
  .tiles.two .tile { aspect-ratio: 4 / 3.4; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta-band { grid-template-columns: 1fr; }
  .row { grid-template-columns: 40px 1fr 30px; }
  .row .where, .row .peek { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .dep { grid-template-columns: 1fr auto; row-gap: 8px; }
  .dep .route { grid-column: 1 / -1; grid-row: 2; }
  .dep .price { grid-row: 1; grid-column: 2; }
  .dep .btn { grid-column: 1 / -1; }
}
@media (min-width: 861px) {
  .sheet { display: none; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 4 / 4.6; }
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature h3 { margin-top: 28px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div, .facts div + div { padding: 20px 14px 20px 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --morph: 0.01s; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
  }
  .panel, .panel[data-state="active"], .d-media img { filter: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
