/* ==========================================================================
   BASHGID — дизайн-система 2026
   Палитра: хвоя, камень, песчаник, крем. Типографика: Prata + Manrope.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Prata&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Цвет */
  --ink: #0b1712;
  --pine: #0d2a20;
  --pine-soft: #143a2c;
  --moss: #1c5a41;
  --brand: #009846;
  --brand-dark: #007a38;
  --sand: #e7dcc6;
  --sand-deep: #d8c9ab;
  --cream: #f7f3ea;
  --paper: #fdfbf6;
  --stone: #e4ded1;
  --gold: #c39655;
  --muted: #6d7469;
  --line: rgba(13, 42, 32, 0.13);
  --line-light: rgba(255, 255, 255, 0.18);
  --white: #ffffff;

  /* Шрифты */
  --font-display: 'Prata', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Размеры */
  --container: 1280px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 10px rgba(11, 23, 18, 0.06);
  --shadow-md: 0 14px 40px -18px rgba(11, 23, 18, 0.28);
  --shadow-lg: 0 30px 80px -30px rgba(11, 23, 18, 0.45);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: 1520px; }
.container--narrow { max-width: 880px; }

.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.section--dark { background: var(--pine); color: var(--cream); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }

/* ---------- Типографика ---------- */
.display,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display { font-size: clamp(42px, 6.6vw, 92px); }
h1 { font-size: clamp(38px, 5.4vw, 74px); }
h2 { font-size: clamp(30px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.16; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 18px; letter-spacing: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section--dark .eyebrow { color: var(--sand); }

.lead {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
  text-wrap: pretty;
}
.section--dark .lead { color: rgba(247, 243, 234, 0.72); }

.muted { color: var(--muted); }
.serif { font-family: var(--font-display); font-weight: 400; }
.text-accent { color: var(--brand); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.section-head__text { max-width: 720px; display: grid; gap: 18px; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 152, 70, 0.8); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
  opacity: 0.9;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: currentColor; box-shadow: none; }
.section--dark .btn--ghost { color: var(--cream); }

.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: var(--shadow-md); }

.btn--dark { background: var(--pine); color: var(--cream); }
.btn--dark:hover { background: var(--ink); }

.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 19px 36px; font-size: 16px; }

.btn--link {
  background: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
}
.btn--link::after {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.btn--link:hover { background: none; transform: none; box-shadow: none; }
.btn--link:hover::after { width: 44px; }

/* ---------- Шапка ---------- */
body > .header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--cream);
  transition: background 0.4s var(--ease), color 0.4s, box-shadow 0.4s, height 0.4s;
}
body > .header::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  transition: opacity 0.4s;
}
body > .header.is-scrolled {
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  color: var(--ink);
  height: 72px;
  box-shadow: 0 1px 0 var(--line);
}
body > .header.is-scrolled::after { opacity: 0; }
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  width: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand--logo { gap: 0; }
.brand__logo { display: block; height: 62px; width: auto; }
body > .header.is-scrolled .brand__logo { height: 52px; }
body > .header:not(.is-scrolled) .brand__logo { filter: drop-shadow(0 4px 16px rgba(6, 16, 12, 0.38)); }
.brand__logo--dark { display: none; }
body > .header:not(.is-scrolled) .brand__logo--light { display: block; }
body > .header:not(.is-scrolled) .brand__logo--dark { display: none; }
body > .header.is-scrolled .brand__logo--light { display: none; }
body > .header.is-scrolled .brand__logo--dark { display: block; }
.footer__brand .brand__logo { height: 72px; }
body.is-error-page > .header {
  background: rgba(247, 243, 234, 0.96);
  color: var(--ink);
  height: 72px;
  box-shadow: 0 1px 0 var(--line);
}
body.is-error-page > .header::after { opacity: 0; }
body.is-error-page > .header .brand__logo--light { display: none; }
body.is-error-page > .header .brand__logo--dark { display: block; }
body.is-error-page > .header .burger { border-color: var(--line); background: transparent; }
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: 0 8px 20px -10px rgba(0, 152, 70, 0.9);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); margin-left: auto; }
.nav__link {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 0;
  transition: opacity 0.25s;
  opacity: 0.88;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { opacity: 1; }
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  font-size: 15px;
}
.header__phone span { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.55; text-transform: uppercase; }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  place-items: center;
  color: inherit;
}
body > .header.is-scrolled .burger { border-color: var(--line); }
body > .header:not(.is-scrolled) .burger { background: rgba(6, 16, 12, 0.28); backdrop-filter: blur(6px); }
.burger span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: 0.3s; }
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: 0.3s;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* Мобильное меню */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: var(--pine);
  color: var(--cream);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-101%);
  transition: transform 0.55s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: none; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 40px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-nav__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; font-size: 15px; opacity: 0.8; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(940px, 100svh);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: var(--cream);
  background: var(--pine);
  overflow: hidden;
}
.hero--video { min-height: min(1000px, 100svh); }
.hero__media { position: absolute; inset: -8% 0 -8%; z-index: -2; background-size: cover; background-position: center 55%; }
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero__media img {
  transform: scale(1.06);
  will-change: transform;
  animation: heroZoom 18s var(--ease-out) forwards;
}
.hero__video {
  transform: scale(1.035);
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  filter: contrast(1.04) saturate(1.03) brightness(0.9);
  will-change: opacity;
}
.hero__video.is-playing { opacity: 1; }
.hero--video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 24, 18, 0.5) 0%, rgba(9, 24, 18, 0.06) 32%, rgba(9, 24, 18, 0.72) 80%, rgba(9, 24, 18, 0.95) 100%),
    linear-gradient(90deg, rgba(9, 24, 18, 0.74) 0%, rgba(9, 24, 18, 0.38) 46%, rgba(9, 24, 18, 0.02) 78%);
}
.hero__inner {
  width: 100%;
  padding-top: calc(var(--header-h) + 90px);
  padding-bottom: clamp(28px, 4vw, 48px);
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}
.hero__content { max-width: 1000px; display: grid; gap: clamp(18px, 2.4vw, 30px); }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.78);
}
.hero__eyebrow::before { content: ''; width: 44px; height: 1px; background: var(--sand); }
.hero h1 {
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 17ch;
}
.hero h1 em { font-style: italic; color: var(--sand); }
.hero__sub {
  max-width: 52ch;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
  color: rgba(247, 243, 234, 0.82);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

.hero__foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: clamp(18px, 2.4vw, 28px);
}
.hero-stat { display: grid; gap: 4px; padding-right: 16px; }
.hero-stat__value { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 38px); line-height: 1; }
.hero-stat__label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 46px;
  background: currentColor;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Бегущая строка направлений ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  padding-block: 18px;
}
.ticker__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 44s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.2vw, 19px);
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--pine);
}
.ticker__item::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro-grid__aside { display: grid; gap: 28px; }
.intro-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.intro-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.intro-figure:hover img { transform: scale(1.05); }
.intro-figure__badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(253, 251, 246, 0.14);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.intro-stats__item { background: var(--paper); padding: 24px; display: grid; gap: 6px; }
.intro-stats__value { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.intro-stats__label { font-size: 13px; color: var(--muted); }

.feature-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.feature-list__num { font-family: var(--font-display); font-size: 14px; color: var(--brand); padding-top: 4px; }
.feature-list h4 { margin-bottom: 4px; }
.feature-list p { font-size: 15px; color: var(--muted); }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 16px;
}
.bento__cell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.bento__cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento__cell--photo { padding: 0; border: 0; color: #fff; }
.bento__cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bento__cell--photo:hover img { transform: scale(1.06); }
.bento__cell--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 24, 18, 0.05) 30%, rgba(9, 24, 18, 0.78));
}
.bento__cell--photo > * { position: relative; z-index: 1; }
.bento__cell--dark { background: var(--pine); color: var(--cream); border-color: transparent; }
.bento__cell--green { background: var(--moss); color: var(--cream); border-color: transparent; }
.bento__cell--sand { background: var(--sand); border-color: transparent; }
.bento__cell--c2 { grid-column: span 2; }
.bento__cell--c3 { grid-column: span 3; }
.bento__cell--c4 { grid-column: span 4; }
.bento__cell--c5 { grid-column: span 5; }
.bento__cell--c6 { grid-column: span 6; }
.bento__cell--c7 { grid-column: span 7; }
.bento__cell--c8 { grid-column: span 8; }
.bento__cell--r2 { grid-row: span 2; }
.bento__icon { width: 30px; height: 30px; opacity: 0.85; }
.bento h3 { font-size: clamp(20px, 1.9vw, 26px); }
.bento p { font-size: 15px; color: var(--muted); }
.bento__cell--dark p, .bento__cell--green p, .bento__cell--photo p { color: rgba(247, 243, 234, 0.72); }

/* ---------- Категории ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--pine);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  cursor: pointer;
}
.pill:hover { border-color: var(--pine); transform: translateY(-1px); }
.pill.is-active { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.pill__count { font-size: 11px; opacity: 0.55; }

/* ---------- Карточки туров ---------- */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tour-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone);
}
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.07); }
.tour-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 24, 18, 0.28) 0%, transparent 42%, transparent 70%, rgba(9, 24, 18, 0.4));
}
.tour-card__badges {
  position: absolute;
  z-index: 1;
  inset: 14px 14px auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(253, 251, 246, 0.92);
  color: var(--pine);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.badge--accent { background: var(--brand); color: #fff; }
.badge--dark { background: rgba(9, 24, 18, 0.62); color: #fff; }
.badge--sand { background: var(--sand); color: #6c5a35; }
.tour-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tour-card__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  opacity: 0.85;
}
.chip + .chip::before { content: '·'; margin-right: 6px; opacity: 0.5; }
.tour-card__title { font-size: clamp(20px, 1.7vw, 25px); line-height: 1.15; }
.tour-card__title a { transition: color 0.25s; }
.tour-card__title a:hover { color: var(--brand); }
.tour-card__meta {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tour-card__price { display: grid; gap: 2px; }
.tour-card__price b { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.tour-card__price span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tour-card__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s;
  flex: none;
}
.tour-card:hover .tour-card__arrow { background: var(--brand); color: #fff; border-color: var(--brand); transform: rotate(-45deg); }
.tour-card__arrow svg { width: 17px; height: 17px; }

.tours-empty { padding: 60px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); }
.stat { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.stat__value { font-family: var(--font-display); font-size: clamp(40px, 5vw, 72px); line-height: 0.95; letter-spacing: -0.02em; }
.stat__label { font-size: 13.5px; color: rgba(247, 243, 234, 0.66); max-width: 22ch; }

/* ---------- Split (санатории/гид) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-lg);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media:hover img { transform: scale(1.04); }
.split__body { display: grid; gap: 22px; justify-items: start; }
.split__body p { color: var(--muted); max-width: 52ch; }
.split__list { display: grid; gap: 12px; width: 100%; }
.split__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--pine); }
.split__list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 4px; }

/* ---------- Карточки санаториев ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  isolation: isolate;
  transition: transform 0.45s var(--ease);
}
.mini-card:hover { transform: translateY(-4px); }
.mini-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mini-card:hover img { transform: scale(1.06); }
.mini-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(9, 24, 18, 0.8)); }
.mini-card h4 { font-size: 18px; line-height: 1.2; }
.mini-card span { display: block; font-size: 12px; opacity: 0.7; margin-top: 4px; letter-spacing: 0.05em; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--pine);
  color: var(--cream);
  padding: clamp(34px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(32px, 4vw, 64px);
  isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(13, 42, 32, 0.96) 20%, rgba(13, 42, 32, 0.55) 100%);
}
.cta__body { display: grid; gap: 20px; align-content: center; justify-items: start; }
.cta__body p { color: rgba(247, 243, 234, 0.72); max-width: 44ch; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.section--dark .field label, .cta .field label { color: rgba(247, 243, 234, 0.62); }
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cta .input, .section--dark .input, .cta .textarea, .section--dark .textarea {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.cta .input::placeholder, .section--dark .input::placeholder { color: rgba(255, 255, 255, 0.4); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 152, 70, 0.15);
}
.textarea { min-height: 110px; resize: vertical; }
.form__note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.cta .form__note, .section--dark .form__note { color: rgba(247, 243, 234, 0.5); }
.form__note a { text-decoration: underline; text-underline-offset: 2px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.checkbox input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.cta .checkbox, .section--dark .checkbox { color: rgba(247, 243, 234, 0.6); }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: var(--cream); padding-top: clamp(56px, 7vw, 96px); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand p { font-size: 14px; color: rgba(247, 243, 234, 0.55); max-width: 34ch; }
.footer__col { display: grid; gap: 12px; align-content: start; }
.footer__col h5 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.42);
  font-weight: 700;
  margin-bottom: 6px;
}
.footer__col a, .footer__col span { font-size: 14.5px; color: rgba(247, 243, 234, 0.78); transition: color 0.25s; }
.footer__col a:hover { color: #fff; }
.footer__socials { display: flex; gap: 10px; margin-top: 6px; }
.social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.social:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 26px;
  font-size: 12.5px;
  color: rgba(247, 243, 234, 0.42);
}
.footer__bottom a { transition: color 0.25s; }
.footer__bottom a:hover { color: var(--cream); }

/* ---------- Внутренняя страница ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(60px, 8vw, 110px));
  padding-bottom: clamp(48px, 6vw, 80px);
  color: var(--cream);
  background: var(--pine);
  isolation: isolate;
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9, 24, 18, 0.55), rgba(9, 24, 18, 0.9));
}
.page-hero__inner { display: grid; gap: 22px; max-width: 900px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247, 243, 234, 0.55); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span::before { content: '/'; margin-right: 10px; opacity: 0.5; }

.prose { font-size: 17.5px; line-height: 1.72; color: #26352d; overflow-wrap: break-word; }
.prose [id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Пагинация ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: clamp(34px, 4vw, 54px); }
.pagination__link {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; font-weight: 700; background: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.pagination__link:hover { border-color: var(--brand); color: var(--brand-dark); }
.pagination__link.is-active { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.pagination__gap { align-self: center; color: var(--muted); padding: 0 4px; }

/* ---------- Архив старой страницы тура ---------- */
.legacy-archive {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px clamp(18px, 2.4vw, 28px);
}
.legacy-archive > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 24px);
  color: var(--pine);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legacy-archive > summary::-webkit-details-marker { display: none; }
.legacy-archive > summary::before {
  content: '+';
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  color: var(--brand);
  transition: transform .25s var(--ease);
}
.legacy-archive[open] > summary::before { transform: rotate(45deg); }
.legacy-archive .prose { font-size: 16px; }

/* ---------- Содержание длинных страниц ---------- */
.toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 14px 16px;
  margin-bottom: clamp(28px, 3vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.toc[hidden] { display: none; }
.toc__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}
.toc__link {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13, 42, 32, 0.05);
  color: var(--pine);
  transition: background 0.18s, color 0.18s;
}
.toc__link:hover { background: var(--brand); color: #fff; }
.toc__link--sub { opacity: 0.75; font-weight: 500; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 38px); margin-top: 1.6em; line-height: 1.12; }
.prose h3 { font-family: var(--font-display); font-size: clamp(21px, 2vw, 28px); margin-top: 1.4em; }
.prose p { max-width: 72ch; }
.prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.prose ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: 8px; }
.prose blockquote {
  border-left: 2px solid var(--brand);
  padding: 6px 0 6px 24px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--pine);
}
.prose img { border-radius: var(--radius); }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Аккордеон ---------- */
.accordion { display: grid; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: 0;
  text-align: left;
  font-weight: 700;
  font-size: 17px;
  color: var(--pine);
}
.acc__icon { position: relative; width: 18px; height: 18px; flex: none; }
.acc__icon::before, .acc__icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s;
}
.acc__icon::after { transform: rotate(90deg); }
.acc.is-open .acc__icon::after { transform: rotate(0); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__body p { padding-bottom: 22px; color: var(--muted); max-width: 72ch; }

/* ---------- Хлебные крошки над контентом ---------- */
.page-body { padding-block: clamp(48px, 6vw, 88px); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; min-width: 0; }
.page-grid > * { min-width: 0; }
.side-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 24px;
  display: grid;
  gap: 16px;
}
.side-card h4 { font-size: 15px; }
.side-card p { font-size: 14px; color: var(--muted); }

/* ---------- Тур ---------- */
.tour-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.tour-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.tour-hero__meta .badge { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); }
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 4vw, 64px); align-items: start; min-width: 0; }
.tour-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); min-width: 0; }
.split--facts { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.booking-widget, #booking-widget { max-width: 100%; overflow-x: auto; }
.tour-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; min-width: 0; }
.booking-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 26px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-md);
}
.booking-card__price { display: grid; gap: 3px; }
.booking-card__price b { font-family: var(--font-display); font-size: 32px; font-weight: 400; line-height: 1; }
.booking-card__price span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.booking-card dl { display: grid; gap: 10px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.booking-card dl div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.booking-card dt { color: var(--muted); }
.booking-card dd { margin: 0; font-weight: 700; text-align: right; }

.program { display: grid; gap: 0; border-top: 1px solid var(--line); }
.program__day { border-bottom: 1px solid var(--line); }
.program__head { display: grid; grid-template-columns: 66px 1fr 24px; gap: 16px; align-items: center; padding: 22px 0; width: 100%; background: none; border: 0; text-align: left; }
.program__num { font-family: var(--font-display); font-size: 15px; color: var(--brand); letter-spacing: 0.06em; text-transform: uppercase; }
.program__title { font-weight: 700; font-size: 16.5px; }
.program__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.program__day.is-open .program__body { grid-template-rows: 1fr; }
.program__body > div { overflow: hidden; }
.program__body .prose { padding: 0 0 24px 82px; font-size: 15.5px; }

/* ---------- Расписание ---------- */
.schedule-list { display: grid; border-top: 1px solid var(--line); }
.schedule-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1fr) 150px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.schedule-row__date { display: grid; gap: 2px; }
.schedule-row__date b { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1; }
.schedule-row__date span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.schedule-row h4 { font-size: 16px; }
.schedule-row__meta { font-size: 13.5px; color: var(--muted); }

/* ---------- Хлебные крошки / фильтры каталога ---------- */
.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.search-box { position: relative; min-width: 240px; }
.search-box input { padding-left: 44px; }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

/* ---------- Уведомления ---------- */
.flash-stack { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 10px; max-width: 380px; }
.flash {
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--pine);
  color: var(--cream);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: flashIn 0.4s var(--ease-out);
}
.flash--error { background: #7f1d1d; }
.flash--success { background: var(--moss); }
@keyframes flashIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Появление при скролле ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(9, 24, 18, 0.7); backdrop-filter: blur(6px); }
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
}
.modal__close:hover { background: var(--stone); }

/* ---------- 404 ---------- */
.error-page { min-height: 80svh; display: grid; place-items: center; text-align: center; padding-block: 120px; }
.error-page__code { font-family: var(--font-display); font-size: clamp(90px, 18vw, 220px); line-height: 0.9; color: var(--sand-deep); }
.error-page h1 { margin-top: 8px; }
.error-page p { color: var(--muted); max-width: 46ch; margin: 14px auto 28px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__top > :last-child { grid-column: span 3; }
  .tour-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__actions .header__phone { display: none; }
  .header__actions { margin-left: auto; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__actions .header__phone { display: none; }
  .header__actions { margin-left: auto; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-figure { aspect-ratio: 16 / 10; order: -1; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { aspect-ratio: 16 / 10; }
  .page-grid, .tour-layout { grid-template-columns: 1fr; }
  .side-card, .tour-aside { position: static; }
  .cta { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__foot { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .bento__cell--c3, .bento__cell--c4 { grid-column: span 6; }
  .bento__cell--c5, .bento__cell--c7, .bento__cell--c8 { grid-column: span 12; }
  .schedule-row { grid-template-columns: 84px 1fr 130px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  /* Мобильный hero: видео отдельной кинематографичной полосой — без сильного кропа */
  .hero--video {
    min-height: 0;
    display: block;
    background-color: var(--pine);
    background-image:
      linear-gradient(180deg, rgba(9, 24, 18, 0.9), rgba(9, 24, 18, 0.97)),
      url('../img/brand/hero-video-poster.webp');
    background-size: cover;
    background-position: center 40%;
  }
  .hero--video::before,
  .hero--video::after { display: none; }
  .hero--video .hero__inner {
    padding-top: calc(var(--header-h) + 46px);
    padding-bottom: 10px;
    gap: 22px;
  }
  .hero--video .hero__content { order: 1; }
  .hero--video .hero__media {
    position: relative;
    inset: auto;
    order: 2;
    width: calc(100% + var(--gutter) * 2);
    margin-inline: calc(var(--gutter) * -1);
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    overflow: hidden;
    background-color: #0a1712;
  }
  .hero--video .hero__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
  }
  .hero--video .hero__foot { order: 3; }
  .hero--video .hero__scroll { display: none; }

  .brand__logo { height: 50px; }
  body > .header.is-scrolled .brand__logo { height: 42px; }
  :root { --header-h: 72px; }
  .hero { min-height: 88svh; }
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero__foot { grid-template-columns: 1fr 1fr; }
  .hero__scroll { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .tour-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item--wide { grid-column: span 2; }
  .mini-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: span 2; }
  .footer__top > :last-child { grid-column: span 2; }
  .form__row { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px; }
  .program__head { grid-template-columns: 52px 1fr 24px; }
  .program__body .prose { padding-left: 0; }
  .split--facts { grid-template-columns: 1fr; }
  .toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 12px 14px; }
  .toc::-webkit-scrollbar { display: none; }
  .toc__label, .toc__link { flex: 0 0 auto; }
  .catalog-bar .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .catalog-bar .pills::-webkit-scrollbar { display: none; }
  .catalog-bar .pills .pill { flex: 0 0 auto; }
  .schedule-row { grid-template-columns: 66px 1fr; gap: 6px 14px; padding-block: 18px; }
  .schedule-row > div:nth-child(3) { grid-column: 2; font-size: 12.5px; }
  .schedule-row > :last-child { grid-column: 1 / -1; justify-content: space-between; margin-top: 6px; }
  .schedule-row .btn { width: auto; padding: 9px 20px; }
  .cta { border-radius: var(--radius-lg); }
  .brand__sub { display: none; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .hero__foot { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .header__actions .btn { width: auto; }
  .hero__actions .btn { width: auto; }
  .tour-card__meta { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .header__actions .btn { display: none; }
  .header__actions { gap: 10px; }
  .brand__name { font-size: 19px; letter-spacing: 0.04em; }
  .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand__mark svg { width: 19px; height: 19px; }
}

/* ---------- Доступность / движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none; transform: none; }
  .ticker__track { animation: none; }
}

/* ---------- Печать ---------- */
@media print {
  body > .header, .footer, .hero__scroll, .cta, .booking-card { display: none !important; }
  body { background: #fff; }
}


/* ---------- Виджет бронирования Atom: вписываем в контейнер ---------- */
#booking-widget { width: 100%; max-width: 100%; min-width: 0; }
#booking-widget .container,
#booking-widget .width-100-percent {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#booking-widget .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
#booking-widget .col-sm-7,
#booking-widget .col-sm-5,
#booking-widget .col-sm-6 {
  min-width: 0;
}
#booking-widget .form-control { max-width: 100%; }
#booking-widget .tourists .row { display: block; width: 100%; }
#booking-widget .tourists .col-xs-6 { width: 100%; float: none; }

@media (max-width: 900px) {
  #booking-widget .col-sm-7,
  #booking-widget .col-sm-5,
  #booking-widget .col-sm-6 {
    width: 100% !important;
    float: none !important;
  }
  #booking-widget .col-sm-5 { margin-top: 14px; }
  #booking-widget .tourists .row { display: block; width: 100%; }
  #booking-widget .tourists .col-xs-6 { width: 100%; float: none; }
}


/* ---------- Стрелки лайтбокса ---------- */
.lb-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(9,24,18,.55);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s;
}
.lb-nav:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.05); }
.lb-nav:disabled { opacity: 0; pointer-events: none; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav--prev { left: clamp(12px, 3vw, 46px); }
.lb-nav--next { right: clamp(12px, 3vw, 46px); }
.lb-counter {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(9,24,18,.55);
  color: rgba(255,255,255,.8);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}
@media (max-width: 680px) {
  .lb-nav { width: 42px; height: 42px; margin-top: -21px; }
  .lb-nav--prev { left: 8px; }
  .lb-nav--next { right: 8px; }
}
