/* ============================================================
   Redesign layer — портирование нового дизайна «На абордаж».
   Грузится ПОСЛЕ style.css и переопределяет ключевые компоненты.
   Палитра UI — существующая (Meta Blue как акцент вместо золотого).
   Художественные сцены анимаций сохраняют родные тёплые/ночные цвета.
   ============================================================ */

:root {
  --rd-accent: var(--meta-blue, #0064E0);
  --rd-accent-soft: var(--meta-blue-light, #47A5FA);
  --rd-head: 'Oswald', 'Inter', system-ui, sans-serif;
  --rd-body: 'Manrope', 'Inter', system-ui, sans-serif;
  --rd-hero-ink: #f7f1e6;               /* текст поверх тёмной сцены */
  --rd-hero-ink-soft: rgba(247, 241, 230, 0.82);
}

/* ---------- Типографика ---------- */
body { font-family: var(--rd-body); }
h1, h2, h3,
.section-header h2,
.hero h1 {
  font-family: var(--rd-head);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero h1 { font-weight: 700; }
.section-header h2 { font-weight: 700; }

.rd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rd-head);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rd-accent);
  margin-bottom: 14px;
}
.rd-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

/* ============================================================
   HERO — анимированная сцена (закат + рыбак + океан)
   ============================================================ */
.hero {
  position: relative;
  height: min(94vh, 900px);
  min-height: 620px;
  overflow: hidden;
  background: #081726;
  display: block;
}
.hero > video { display: none; }        /* прячем старое видео, если осталось */

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-scene__sky,
.hero-scene__svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-scene__gradient-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a1a30 0%, #23395c 38%, #6a4860 58%, #bf6730 82%, #f3a850 100%);
}
.hero-scene__vanta {
  position: absolute;
  left: 0; right: 0; top: 42%; bottom: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%);
}
/* Читаемость текста: затемняющий скрим слева и снизу */
.hero-scene__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Без тяжёлого затемнения анимации — только лёгкая подложка снизу под текст. */
  background: linear-gradient(180deg, rgba(7,17,28,0) 64%, rgba(7,17,28,.42) 100%);
}
/* Читаемость текста без общего затемнения сцены */
.hero-inner h1,
.hero-inner .hero-subtitle,
.hero-inner .rd-eyebrow { text-shadow: 0 2px 16px rgba(3,10,20,.6); }

.hero-inner {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 80px) clamp(34px, 6vh, 68px);
  text-align: left;
  color: var(--rd-hero-ink);
}
.hero-inner > * { animation: rdFade .9s ease both; }
.hero h1 {
  color: var(--rd-hero-ink);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 0.96;
  margin: 0 0 18px;
  max-width: 12ch;
}
.hero .hero-subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--rd-hero-ink-soft);
  max-width: 460px;
  margin: 0 0 26px;
}
.hero-actions { justify-content: flex-start; }

@keyframes rdFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rdCue { 0% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(7px); opacity: 1; } 100% { transform: translateY(0); opacity: .5; } }

.hero-scroll-cue {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(247, 241, 230, 0.6);
  font-family: var(--rd-head);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
}
.hero-scroll-cue span { display: block; animation: rdCue 2s ease-in-out infinite; }

/* Кнопки hero поверх тёмной сцены */
.hero .btn-secondary {
  background: rgba(247, 241, 230, 0.08);
  color: var(--rd-hero-ink);
  border: 1px solid rgba(247, 241, 230, 0.34);
  backdrop-filter: blur(6px);
}
.hero .btn-secondary:hover {
  background: rgba(247, 241, 230, 0.16);
  color: var(--rd-hero-ink);
}

@media (max-width: 768px) {
  /* МОБИЛЬНЫЙ HERO главной: как на турах — сцена видна ЦЕЛИКОМ (аспект 60vw), на ней ТОЛЬКО заголовок.
     Никакого тёмного блока/затемнения: scrim выключен, читаемость — тенью на тексте.
     Подзаголовок и кнопки скрыты (разделы и меню доступны ниже). */
  .hero { display: block; position: relative; height: 60vw; min-height: 0; overflow: hidden; }
  .hero-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-scene__scrim { display: none; }
  .hero-inner {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    max-width: none; margin: 0; padding: 0 clamp(16px, 5vw, 22px) 16px; text-align: left;
  }
  .hero-inner .hero-subtitle,
  .hero-inner .hero-actions,
  .hero-scroll-cue { display: none !important; }
  .hero-inner h1 { max-width: none; margin: 0; font-size: clamp(26px, 7vw, 40px); }
}

/* ---------- Keyframes сцены hero (из HeroScene) ---------- */
@keyframes hsGlow { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
@keyframes hsBird { 0% { transform: translate(0px, 0px); } 100% { transform: translate(1320px, -26px); } }
@keyframes hsBub  { 0% { transform: translateY(0px); opacity: 0; } 18% { opacity: .55; } 100% { transform: translateY(-140px); opacity: 0; } }
@keyframes hsShim { 0%, 100% { opacity: .15; } 50% { opacity: .7; } }

/* ============================================================
   TOUR HERO — анимированный герой страниц туров (.service-hero)
   Вставляется вместо .page-hero; cms.js его не перезаписывает.
   ============================================================ */
.service-hero.tour-anim-hero {
  position: relative;
  height: min(92vh, 860px);
  min-height: 560px;
  overflow: hidden;
  background: #060d19;
  padding: 0;
}
.tour-anim-hero .tour-scene { position: absolute; inset: 0; z-index: 0; }
.tour-anim-hero .tour-scene__svg,
.tour-anim-hero .tour-scene__vanta { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.tour-anim-hero .tour-scene__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(6,13,25,.92) 0%, rgba(6,13,25,.55) 30%, rgba(6,13,25,.08) 54%, rgba(6,13,25,0) 68%),
    linear-gradient(180deg, rgba(6,13,25,.5) 0%, rgba(6,13,25,0) 18%);
}
.tour-anim-hero .service-hero-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  max-width: 1320px; margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 80px) clamp(38px, 7vh, 80px);
  text-align: left;
  animation: rdFade .9s ease both;
}
.tour-anim-hero .service-hero-title {
  font-family: var(--rd-head);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(38px, 5vw, 72px); line-height: .96;
  margin: 0 0 16px; color: #f7f1e6; max-width: 14ch;
}
.tour-anim-hero .service-hero-desc {
  font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55;
  color: rgba(247,241,230,.82); max-width: 420px; margin: 0 0 22px;
}
.tour-anim-hero .tour-hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.tour-anim-hero .tour-hero-price {
  font-family: var(--rd-head); font-size: 22px; font-weight: 700;
  color: var(--rd-accent-soft);
}
.tour-anim-hero .tour-hero-note { font-size: 14px; color: rgba(247,241,230,.65); }
.tour-anim-hero .tour-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rd-head); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--rd-accent-soft); margin-bottom: 14px;
}
.tour-anim-hero .tour-hero-eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

@keyframes sqStar { 0%,100% { opacity: .22; } 50% { opacity: .88; } }
@keyframes sqBub  { 0% { opacity: 0; transform: translateY(0); } 14% { opacity: .5; } 100% { opacity: 0; transform: translateY(-140px); } }

@media (max-width: 768px) {
  /* МОБИЛЬНЫЙ HERO туров: сцена видна ЦЕЛИКОМ (аспект 60vw), на ней — ТОЛЬКО заголовок
     (eyebrow-бейдж + h1). Описание/цена/кнопки скрыты — всё это есть в контенте страницы ниже. */
  .service-hero.tour-anim-hero { display: block; position: relative; height: 60vw; min-height: 0; overflow: hidden; }
  .tour-anim-hero .tour-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
  .tour-anim-hero .tour-scene__scrim {
    display: block; inset: 0;
    background: linear-gradient(180deg, rgba(6,13,25,0) 48%, rgba(6,13,25,.74) 100%);
  }
  .tour-anim-hero .service-hero-content {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    max-width: none; margin: 0; padding: 0 clamp(16px, 5vw, 22px) 16px; text-align: left;
  }
  .tour-anim-hero .service-hero-desc,
  .tour-anim-hero .service-hero-price,
  .tour-anim-hero .service-hero .service-price,
  .tour-anim-hero .tour-hero-price,
  .tour-anim-hero .tour-hero-note,
  .tour-anim-hero .tour-hero-meta,
  .tour-anim-hero .service-hero-buttons { display: none !important; }
  .tour-anim-hero .service-badge { margin-bottom: 8px; }
  .tour-anim-hero .service-hero-title {
    max-width: none; margin: 0; font-size: clamp(26px, 7vw, 40px);
    text-shadow: 0 2px 16px rgba(3,10,20,.6);
  }
}
@keyframes snRay { 0%,100% { opacity: .07; } 50% { opacity: .19; } }
@keyframes iaBird { 0% { transform: translate(-80px, 0); } 100% { transform: translate(1320px, -34px); } }
@keyframes iaGlow { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }
@keyframes iaShim { 0%, 100% { opacity: .18; } 50% { opacity: .6; } }
@keyframes djBub { 0% { opacity: 0; transform: translateY(0); } 14% { opacity: .4; } 100% { opacity: 0; transform: translateY(-200px); } }

/* ---- Минималистичный hero-контент туров (как в редизайне) ---- */
/* Бейдж → «eyebrow»: без пилюли, акцентный, с ведущей чертой */
.tour-anim-hero .service-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--rd-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rd-accent-soft);
  box-shadow: none;
}
.tour-anim-hero .service-badge::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
/* Метапилюли (Длительность/Группа/Уровень) — убираем, чтобы не плодить блоки;
   эта информация есть в секциях ниже. */
.tour-anim-hero .service-hero-meta { display: none; }

/* Цена — инлайн-акцент вместо крупной стеклянной плашки */
.tour-anim-hero .service-hero-price {
  display: inline-flex;
  align-items: center;
  margin: 0 16px 12px 0;
  padding: 0;
}
.tour-anim-hero .service-hero .service-price,
.tour-anim-hero .service-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: var(--rd-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--rd-accent-soft);
}
.tour-anim-hero .service-hero .service-price .price-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--rd-accent-soft);
  text-shadow: none;
}
/* Цена + кнопки — одной компактной строкой */
.tour-anim-hero .service-hero-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  vertical-align: middle;
}

/* ============================================================
   ПРОРАБОТКА АНИМАЦИЙ (ui-ux-pro-max §7 Animation)
   Правила: easing (ease-out вход), spring-physics (естественность),
   stagger-sequence (30–50мс), scale-feedback (press), motion-consistency,
   reduced-motion (CRITICAL a11y). Токены единые для всего сайта.
   ============================================================ */
:root {
  --rd-ease-spring: cubic-bezier(0.34, 1.42, 0.52, 1);   /* мягкий overshoot — «живое» касание */
  --rd-ease-emph:   cubic-bezier(0.16, 1, 0.3, 1);        /* выразительный ease-out для входа */
}

/* --- Ступенчатый вход контента hero (stagger 80мс, выразительный ease-out) --- */
.hero-inner > * { animation: rdFadeUp 640ms var(--rd-ease-emph) both; }
.hero-inner > *:nth-child(1) { animation-delay: 60ms; }
.hero-inner > *:nth-child(2) { animation-delay: 140ms; }
.hero-inner > *:nth-child(3) { animation-delay: 220ms; }
.hero-inner > *:nth-child(4) { animation-delay: 300ms; }

.tour-anim-hero .service-hero-content { animation: none; }   /* было целиком — теперь по детям */
.tour-anim-hero .service-hero-content > * { animation: rdFadeUp 600ms var(--rd-ease-emph) both; }
.tour-anim-hero .service-hero-content > *:nth-child(1) { animation-delay: 60ms; }
.tour-anim-hero .service-hero-content > *:nth-child(2) { animation-delay: 140ms; }
.tour-anim-hero .service-hero-content > *:nth-child(3) { animation-delay: 220ms; }
.tour-anim-hero .service-hero-content > *:nth-child(4) { animation-delay: 300ms; }
.tour-anim-hero .service-hero-content > *:nth-child(5) { animation-delay: 360ms; }
.tour-anim-hero .service-hero-content > *:nth-child(6) { animation-delay: 420ms; }

@keyframes rdFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* --- Плавное появление самой сцены (без «поп-ина»); включается JS-классом --- */
.hero-scene, .tour-scene { transition: opacity 600ms var(--rd-ease-emph); }

/* --- Tactile CTA в hero: пружинистый hover + чёткий press (scale-feedback) --- */
.hero-actions .btn,
.tour-anim-hero .service-hero-buttons .btn {
  transition: background var(--t-fast), color var(--t-fast),
              transform 240ms var(--rd-ease-spring), box-shadow var(--t-base);
  will-change: transform;
}
.hero-actions .btn:hover,
.tour-anim-hero .service-hero-buttons .btn:hover { transform: translateY(-2px); }
.hero-actions .btn:active,
.tour-anim-hero .service-hero-buttons .btn:active { transform: translateY(0) scale(0.96); }

/* --- Видимый focus-ring для доступности (skill §1 focus-states) --- */
.hero-actions .btn:focus-visible,
.tour-anim-hero .service-hero-buttons .btn:focus-visible {
  outline: 3px solid var(--rd-accent-soft);
  outline-offset: 3px;
}

/* ============================================================
   REDUCED MOTION — уважать системную настройку (skill: reduced-motion).
   Замораживаем все декоративные анимации сцен, vanta, звёзды, пузыри,
   птиц, блики, hero-cue и вход контента. JS-циклы сцен уже сами
   не запускаются при reduce (рисуют один статичный кадр).
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-inner > *,
  .tour-anim-hero .service-hero-content > *,
  .hero-scroll-cue span { animation: none !important; opacity: 1 !important; transform: none !important; }

  [data-hero-svg] *, [data-tour-svg] *,
  .hero-scene__sky *,
  .hero-scene__vanta *, .tour-scene__vanta * { animation: none !important; }

  .hero-scene, .tour-scene,
  [data-hero-svg], [data-tour-svg] { opacity: 1 !important; transition: none !important; }
}
@keyframes sqLamp { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }

/* ============================================================
   КОНТЕНТ ТУРОВ — текстовые блоки в стиле редизайна
   (чистые списки, минималистичное расписание, градиентная CTA).
   Таргет строго по tour-классам, чтобы не задеть главную.
   ============================================================ */

/* Лейблы колонок «Программа» / «Включено» → компактный eyebrow */
.tour-info-row__col .section-header { margin-bottom: 18px; }
.tour-info-row__col .section-header h2 {
  font-family: var(--rd-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rd-accent-soft);
  margin: 0;
  padding: 0;
  border: none;
}
.tour-info-row__col .section-header h2::after { display: none; }

/* Расписание → простые строки «время + текст», без карточек */
.program-timeline { display: flex; flex-direction: column; gap: 16px; }
.program-timeline .timeline-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  background: none !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.program-timeline .timeline-time {
  font-family: var(--rd-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--rd-accent-soft);
  min-width: 58px;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  text-align: left;
}
.program-timeline .timeline-content h3 {
  font-family: var(--rd-head);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 3px;
  color: var(--text-primary);
}
.program-timeline .timeline-content p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  color: var(--text-secondary);
}

/* Включено → чистый список с акцентными буллетами ✦, без плиток */
.block-features-grid--pair,
.block-features-grid--compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 32px;
  background: none;
}
@media (min-width: 620px) {
  .block-features-grid--pair.block-features-grid--cols-2 { grid-template-columns: 1fr 1fr; }
}
.block-features-grid .feature-card--pair-col,
.block-features-grid .feature-card {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left !important;
  transform: none !important;
}
.block-features-grid .feature-card--pair-col::before {
  content: "✦";
  color: var(--rd-accent-soft);
  flex: none;
  line-height: 1.5;
  font-size: 14px;
}
.block-features-grid .feature-card--pair-col .feature-icon,
.block-features-grid .feature-card--pair-col img { display: none; }
.block-features-grid .feature-card--pair-col .feature-title {
  font-family: var(--rd-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0;
  color: var(--text-primary);
}
.block-features-grid .feature-card--pair-col .feature-text:empty { display: none; }
.block-features-grid .feature-card--pair-col .feature-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 2px 0 0;
}

/* CTA-блок → градиентная карточка как в редизайне */
.block-cta {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-wash)) !important;
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
}
.block-cta h2 {
  font-family: var(--rd-head);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.block-cta p { max-width: 480px; margin: 0 auto 24px; }
.block-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@keyframes wfFall { from { transform: translateY(0); opacity: .9; } to { transform: translateY(392px); opacity: .5; } }
@keyframes wfMist { 0%, 100% { opacity: .5; transform: translateY(0); } 50% { opacity: .85; transform: translateY(-8px); } }

/* Сцена Янг Бэй (арт водопад/речка/храм): недостающие имена анимаций + keyframes к присланному SVG.
   Формы и per-element delay/duration из SVG сохранены — здесь только «оживление». */
.tour-scene__svg .yb-fall1 { fill: none; stroke-width: 9px; stroke-linecap: round; stroke-dasharray: 46px 30px; animation: ybFall1 .9s linear infinite; }
.tour-scene__svg .yb-fall2 { fill: none; stroke-width: 6px; stroke-linecap: round; stroke-dasharray: 34px 26px; animation: ybFall2 .9s linear infinite; }
.tour-scene__svg .yb-river { fill: none; stroke-width: 4px; stroke-linecap: round; stroke-dasharray: 26px 38px; animation: ybRiver 3.4s linear infinite; }
.tour-scene__svg .yb-foam { transform-box: fill-box; transform-origin: center; animation: ybFoam 2.6s ease-in-out infinite; }
.tour-scene__svg .yb-shimmer { animation: ybShimmer 3s ease-in-out infinite; }
.tour-scene__svg .yb-petal { transform-box: fill-box; transform-origin: center; animation: ybPetal 7s ease-in infinite; }
.tour-scene__svg .yb-cloud { animation: ybCloud 26s ease-in-out infinite; }
.tour-scene__svg .yb-cloud2 { animation: ybCloud 34s ease-in-out infinite; }
@keyframes ybFall1 { to { stroke-dashoffset: -76px; } }
@keyframes ybFall2 { to { stroke-dashoffset: -60px; } }
@keyframes ybRiver { to { stroke-dashoffset: -64px; } }
@keyframes ybFoam { 0%, 100% { opacity: .4; transform: scale(.92); } 50% { opacity: .85; transform: scale(1.08); } }
@keyframes ybShimmer { 0%, 100% { opacity: .2; } 50% { opacity: .6; } }
@keyframes ybPetal { 0% { transform: translate(0, 0) rotate(0deg); opacity: .85; } 100% { transform: translate(-30px, 70px) rotate(240deg); opacity: 0; } }
@keyframes ybCloud { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(24px); } }

/* Главная: «Наши услуги» сеткой (без слайдера/фильтра) — 2 в ряд на моб, 3 планшет, 4 на ПК */
.services-index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.services-index-grid > .services-catalog__empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: rgba(247,241,230,.7); }
@media (min-width: 700px) { .services-index-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .services-index-grid { grid-template-columns: repeat(4, 1fr); } }

/* Заголовок карточки: не рвём по одному слову на строку на узких карточках.
   Компактный адаптивный размер + ровный перенос. */
.services-index-grid .service-title {
  font-size: clamp(13px, 3.9vw, 20px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none;
}
.services-index-grid .service-overlay { padding: 14px; }
@media (min-width: 700px) {
  .services-index-grid .service-overlay { padding: 18px; }
  .services-index-grid .service-title { font-size: 18px; }
}

/* Программа тура: нумерованные остановки (dalat.html и др.) */
.program-list {
  list-style: none;
  counter-reset: prog;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) { .program-list { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.program-list li {
  counter-increment: prog;
  position: relative;
  padding: 20px 20px 20px 60px;
  border-radius: 16px;
  background: rgba(8, 26, 38, 0.42);
  border: 1px solid rgba(150, 225, 240, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.program-list li::before {
  content: counter(prog);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 15px;
  color: #04121b;
  background: linear-gradient(135deg, #57ffe0, #2fe0c4);
}
.program-list li h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #f7f1e6);
}
.program-list li p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary, rgba(247, 241, 230, 0.78));
}
