/* Сайт экскурсий — дополнительные стили */

body {
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  overflow-x: clip;
  overscroll-behavior-y: none;
  /* pan-x pan-y без manipulation — отключает pinch-zoom страницы (viewport + meta) */
  touch-action: pan-x pan-y;
}

/* Убираем подсветку при тапе/клике на телефоне и десктопе */
.no-tap-highlight {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
button, a, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}
button:focus, a:focus, input:focus, [role="button"]:focus {
  outline: none;
}

/* Телефон: для tel: оставляем auto — предсказуемый вызов из Safari */
a[href^="tel:"] {
  touch-action: auto;
}

/* Мгновенный переход по якорям; pinch-zoom отключён (см. viewport + pan-x pan-y) */
html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: pan-x pan-y;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

/* Hero: полноэкранное фото — svh стабильнее при схлопывании панели браузера, чем один vh */
.hero-fullscreen {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* LCP: фон с первого кадра (до JS); при загрузке API renderHero может подменить URL */
  background-image: url(/images/kavkaz.webp);
}

/* Тёмный градиент поверх фото для читаемости текста */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Бренд в hero: круглый логотип + название */
.hero-brand {
  position: absolute;
  z-index: 20;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  gap: 0.625rem;
  max-width: calc(100vw - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  text-decoration: none;
  color: #ffffff;
  -webkit-tap-highlight-color: transparent;
}
.hero-brand-mark {
  display: block;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  box-sizing: border-box;
}
.hero-brand-mark picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero-brand-name {
  font-size: 1.4rem;
  font-weight:700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
@media (min-width: 640px) {
  .hero-brand {
    top: max(1rem, env(safe-area-inset-top, 0px));
    left: max(1rem, env(safe-area-inset-left, 0px));
    gap: 0.75rem;
  }
  .hero-brand-mark {
    width: 3.75rem;
    height: 3.75rem;
    border-width: 2px;
  }
  .hero-brand-name {
    font-size: 1.125rem;
  }
}
.hero-brand:hover .hero-brand-mark {
  border-color: #ffffff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}
.hero-brand:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 0.5rem;
}

/* Кнопка Hero: светлая, выделяется на фоне */
.hero-cta {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Второстепенные кнопки Hero: прозрачные с обводкой */
.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

/* Плавное появление картинок и кнопок на первом экране */
.hero-content .hero-over-cta {
  animation: heroFadeUp 0.75s ease-out;
}
.hero-content .hero-cta-row .hero-cta {
  animation: heroFadeUp 0.75s ease-out 0.2s both;
}
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Микроанимация появления модального окна */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.2s ease-out;
}

/* Hero: два фото + SEO-заголовок с ротацией городов */
.hero-over-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-bottom: 0.5rem;
  padding-top: 0.35rem;
  padding-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-over-cta {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
}

.hero-over-cta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.65rem;
}

@media (min-width: 640px) {
  .hero-over-cta-row {
    gap: 1rem 1.25rem;
  }
}

.hero-over-cta-card {
  flex: 0 1 auto;
  padding: 0.1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 1.25rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(248, 250, 252, 0.94) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.38),
    0 4px 12px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-over-cta-row--photos .hero-over-cta-card__stack {
  position: relative;
  width: 100%;
  border-radius: 0.875rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.12);
}

.hero-over-cta-row--photos .hero-over-cta-img--layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: inherit;
}

.hero-over-cta-row--photos .hero-over-cta-card__stack .hero-over-cta-img--layer:nth-child(1) {
  z-index: 1;
  animation: heroOverCtaFadeA 9s ease-in-out infinite both;
}

.hero-over-cta-row--photos .hero-over-cta-card__stack .hero-over-cta-img--layer:nth-child(2) {
  z-index: 0;
  animation: heroOverCtaFadeB 9s ease-in-out infinite both;
}

@keyframes heroOverCtaFadeA {
  0%,
  38% {
    opacity: 1;
  }
  45%,
  88% {
    opacity: 0;
  }
  95%,
  100% {
    opacity: 1;
  }
}

@keyframes heroOverCtaFadeB {
  0%,
  38% {
    opacity: 0;
  }
  45%,
  88% {
    opacity: 1;
  }
  95%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-over-cta-row--photos .hero-over-cta-card__stack .hero-over-cta-img--layer {
    animation: none;
  }
  .hero-over-cta-row--photos .hero-over-cta-card__stack .hero-over-cta-img--layer:nth-child(2) {
    opacity: 0;
    pointer-events: none;
  }
}

.hero-over-cta-card:hover {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 6px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-over-cta-card:focus {
  outline: none;
}

.hero-over-cta-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

/* Ряд с кроссфейдом: у карточек явная ширина — абсолютные img не задают min-content, иначе на телефоне схлопывание в «полоски» */
.hero-over-cta-row--photos .hero-over-cta-card {
  flex-shrink: 0;
}

.hero-over-cta-row--photos .hero-over-cta-card--primary {
  flex: 0 0 auto;
  width: min(54%, 15rem);
}

.hero-over-cta-row--photos .hero-over-cta-card--secondary {
  flex: 0 0 auto;
  width: min(42%, 11.5rem);
}

@media (min-width: 640px) {
  .hero-over-cta-row--photos .hero-over-cta-card--primary {
    width: min(48%, 22rem);
  }

  .hero-over-cta-row--photos .hero-over-cta-card--secondary {
    width: min(38%, 16rem);
  }
}

@media (min-width: 1024px) {
  .hero-over-cta-row--photos .hero-over-cta-card--primary {
    width: 24rem;
  }

  .hero-over-cta-row--photos .hero-over-cta-card--secondary {
    width: 17rem;
  }
}

/* Крупнее + чуть выше на мобилке */
.hero-over-cta-card--primary {
  max-width: min(54%, 15rem);
  transform: translateY(-0.6rem);
}

/* Меньше + чуть ниже, в один ряд с первой */
.hero-over-cta-card--secondary {
  max-width: min(42%, 11.5rem);
  transform: translateY(0.85rem);
}

@media (min-width: 640px) {
  .hero-over-cta-card {
    padding: 0.1rem;
    border-radius: 1.375rem;
  }

  .hero-over-cta-card--primary {
    max-width: min(48%, 22rem);
    transform: translateY(-0.35rem);
  }

  .hero-over-cta-card--secondary {
    max-width: min(38%, 16rem);
    transform: translateY(0.5rem);
  }
}

@media (min-width: 1024px) {
  .hero-over-cta-card--primary {
    max-width: 24rem;
    transform: translateY(-0.25rem);
  }

  .hero-over-cta-card--secondary {
    max-width: 17rem;
    transform: translateY(0.45rem);
  }
}

.hero-over-cta-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.875rem;
}

/* Явная высота стека — иначе absolute-картинки схлопывают блок */
.hero-over-cta-row--photos .hero-over-cta-card--primary .hero-over-cta-card__stack {
  height: min(32vw, 8.5rem);
}

.hero-over-cta-row--photos .hero-over-cta-card--secondary .hero-over-cta-card__stack {
  height: min(30vw, 8rem);
}

@media (min-width: 640px) {
  .hero-over-cta-row--photos .hero-over-cta-card--primary .hero-over-cta-card__stack {
    height: 10.5rem;
  }

  .hero-over-cta-row--photos .hero-over-cta-card--secondary .hero-over-cta-card__stack {
    height: 10rem;
  }
}

@media (min-width: 1024px) {
  .hero-over-cta-row--photos .hero-over-cta-card--primary .hero-over-cta-card__stack {
    height: 11.75rem;
  }

  .hero-over-cta-row--photos .hero-over-cta-card--secondary .hero-over-cta-card__stack {
    height: 11.5rem;
  }
}

/* Поверх базового .hero-over-cta-img { height: auto } — слои растягиваем на стек */
.hero-over-cta-row--photos .hero-over-cta-img.hero-over-cta-img--layer {
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 1.25rem;
}

@media (min-width: 640px) {
  .hero-over-cta-img:not(.hero-over-cta-img--layer) {
    border-radius: 1rem;
  }

  .hero-over-cta-row--photos .hero-over-cta-card__stack {
    border-radius: 1rem;
  }
}

/* Чуть компактнее по высоте — только если не слой в анимированном ряду */
.hero-over-cta-card--primary .hero-over-cta-img:not(.hero-over-cta-img--layer) {
  max-height: min(32vw, 8.5rem);
}

.hero-over-cta-card--secondary .hero-over-cta-img:not(.hero-over-cta-img--layer) {
  max-height: min(30vw, 8rem);
}

@media (min-width: 640px) {
  .hero-over-cta-card--primary .hero-over-cta-img:not(.hero-over-cta-img--layer) {
    max-height: 10.5rem;
  }

  .hero-over-cta-card--secondary .hero-over-cta-img:not(.hero-over-cta-img--layer) {
    max-height: 10rem;
  }
}

@media (min-width: 1024px) {
  .hero-over-cta-card--primary .hero-over-cta-img:not(.hero-over-cta-img--layer) {
    max-height: 11.75rem;
  }

  .hero-over-cta-card--secondary .hero-over-cta-img:not(.hero-over-cta-img--layer) {
    max-height: 11.5rem;
  }
}

/* Узкий экран (напр. 375×667): логотип absolute слева, ряд фото по центру — иначе налезание */
@media (max-width: 639px) {
  .hero-fullscreen > .hero-content {
    padding-top: max(3rem, calc(env(safe-area-inset-top, 0px) + 3.25rem))
  }
  .hero-over-cta-row.hero-over-cta-row--photos {
    box-sizing: border-box;
    justify-content: flex-start;
  }
  .hero-fullscreen .hero-over-cta-row--photos .hero-over-cta-card--primary {
    transform: translateY(0);
  }
  .hero-fullscreen .hero-over-cta-row--photos .hero-over-cta-card--secondary {
    transform: translateY(0.5rem);
  }
}

.hero-seo-block {
  width: 100%;
  max-width: min(36rem, 100%);
  margin: 0.35rem auto 0;
  padding: 1rem 0.75rem 0.85rem;
  border-radius: 1.125rem;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .hero-seo-block {
    padding: 0.85rem 1rem 1rem;
    border-radius: 1.25rem;
  }
}

.hero-seo-h1 {
  margin: 0;
  font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-seo-h1__motion {
  display: block;
}

.hero-seo-h1__reduced {
  display: none;
  font-size: clamp(0.98rem, 3.8vw, 1.2rem);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .hero-seo-h1__motion {
    display: none;
  }
  .hero-seo-h1__reduced {
    display: block;
  }
}

.hero-seo-h1__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem 0.45rem;
}

.hero-seo-h1__static {
  flex: 0 0 auto;
  font-weight: 700;
  white-space: nowrap;
}

.hero-seo-h1__rotor {
  display: inline-block;
  flex: 0 1 auto;
  min-width: min(11.5rem, 72vw);
  max-width: 100%;
  height: 1.38em;
  line-height: 1.38em;
  overflow: hidden;
  text-align: center;
  vertical-align: bottom;
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  box-sizing: content-box;
}

.hero-seo-h1__rail {
  display: block;
  will-change: transform;
  animation: heroSeoCityCycle 10s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-seo-h1__rail {
    animation: none;
    transform: none;
  }
}

.hero-seo-h1__city {
  display: block;
  height: 1.38em;
  line-height: 1.38em;
  white-space: nowrap;
  font-weight: 700;
}

@keyframes heroSeoCityCycle {
  0%,
  14% {
    transform: translateY(0);
  }
  18%,
  32% {
    transform: translateY(-20%);
  }
  36%,
  50% {
    transform: translateY(-40%);
  }
  54%,
  68% {
    transform: translateY(-60%);
  }
  72%,
  86% {
    transform: translateY(-80%);
  }
  90%,
  100% {
    transform: translateY(0);
  }
}

/* Промо-строка под H1 в hero: крупнее лида, хорошо читается на стекле */
.hero-seo-promo {
  margin: 0.65rem 0 0;
  padding: 0;
  font-size: clamp(1.0625rem, 3.6vw, 1.45rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #e2ad24;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 2px 14px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .hero-seo-promo {
    margin-top: 0.75rem;
    font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  }
}

.hero-seo-lead {
  margin: 0.45rem 0 0;
  font-size: clamp(0.8125rem, 2.9vw, 0.9375rem);
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .hero-seo-h1 {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  }
  .hero-seo-h1__rotor {
    min-width: 12.5rem;
  }
  .hero-seo-promo {
    margin-top: 0.8rem;
  }
  .hero-seo-lead {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
  }
}

/* H2: 28px mobile, 36px desktop */
@media (max-width: 640px) {
  #directions-title,
  #contacts-title {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  #directions-title,
  #contacts-title {
    font-size: 36px;
  }
}

/* Модалка направления: крупная плитка фото */
.destination-modal-box {
  display: flex;
  flex-direction: column;
}
.modal-gallery-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .modal-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
.modal-gallery-item {
  aspect-ratio: 4/3;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  outline: none;
}
.modal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Полноэкранная галерея: свайп без pinch-zoom */
#fullscreen-gallery {
  touch-action: pan-x pan-y;
}
.fullscreen-track {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fullscreen-track::-webkit-scrollbar {
  display: none;
}
.fullscreen-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0.5rem 2rem;
  box-sizing: border-box;
}
.fullscreen-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}
.fullscreen-nav {
  touch-action: pan-x pan-y;
}
@media (max-width: 640px) {
  .fullscreen-nav {
    padding: 0.75rem;
  }
}

/* Сетка маршрутов: меньше работы композитинга до скролла к блоку */
#directions {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Карточки маршрутов: тёмная обводка 1px, без тени; в сетке — одна высота в ряду */
.destination-card.destination-card--grid {
  height: 100%;
  align-self: stretch;
}
.destination-card {
  box-shadow: none;
  border: 1px solid #a3a3a3;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

/* Стикеры на фото карточки маршрута («Мини группа», «Акция») */
.route-card-photo-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.route-card-photo-badges {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: calc(100% - 1rem);
  pointer-events: none;
}
.route-card-sale-badge,
.route-card-mini-group-badge {
  padding: 0.3125rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.route-card-sale-badge {
  background: #ea580c;
}
.route-card-mini-group-badge {
  background: #2563eb;
}
@media (max-width: 399px) {
  .route-card-sale-badge,
  .route-card-mini-group-badge {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
  }
}
.route-card-cover-img {
  display: block;
  vertical-align: top;
}

/* Погода на детальной странице маршрута (Open-Meteo), slug в script.js */
.route-card-weather-slot[hidden] {
  display: none !important;
}
.route-card-weather-slot:not([hidden]) {
  display: block;
  flex-shrink: 0;
}
.destination-card.destination-card--grid > .route-card-weather-slot {
  flex-shrink: 0;
}
.route-card-weather-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  user-select: none;
}
.route-card-weather-now {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-right: 0.15rem;
}
.route-card-weather-svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: #2563eb;
}
.route-card-weather-temp {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.route-page-weather-section:not(.hidden) .route-page-weather-slot .route-card-weather-strip {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.route-page-weather-section .route-card-weather-svg--sun {
  color: #f59e0b;
}
.route-page-weather-section .route-card-weather-svg--sun circle {
  fill: #facc15;
  stroke: #f59e0b;
}

/* Фон до декодирования — на медленной сети не «пустая» карточка */
.vizitka-progressive-img {
  background-color: #e2e8f0;
}
.destination-card[id^='route-card-'] {
  scroll-margin-top: 1rem;
}
@media (min-width: 640px) {
  .destination-card[id^='route-card-'] {
    scroll-margin-top: 1.25rem;
  }
}

.route-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

/* Свойство маршрута «На автомобиле» — без фона; flex (не inline-flex), чтобы цена шла строкой ниже, а не в один ряд с бейджем */
.route-card-vehicle-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  width: 100%;
  box-sizing: border-box;
}

/* Панель вкладки: flex только когда видна — иначе перебивает Tailwind .hidden (обе панели оказывались на экране) */
.route-card-transport-panel[hidden],
.route-card-transport-panel.hidden {
  display: none !important;
}
.route-card-transport-panel:not([hidden]):not(.hidden) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.route-card-transport--simple {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.route-card-transport-panel .route-card-price.vizitka-price-block,
.route-card-transport--simple .route-card-price.vizitka-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
.route-card-vehicle-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: #64748b;
}

/* Переключатель «Машина» / «Автобус» в карточке направлений (не сжимать во flex-карточке с min-h-0) */
.route-card-transport--with-toggle {
  flex-shrink: 0;
  min-width: 0;
}
.route-card-transport-frame {
  box-sizing: border-box;
  padding: 0.5rem 0.55rem 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Сегментированный переключатель в одну строку — обе опции всегда видны */
.route-card-transport-tabs--segmented {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  min-height: 3.75rem;
  padding: 0.2rem;
  border-radius: 0.65rem;
  border: 2px solid #cbd5e1;
  background: #e2e8f0;
  box-sizing: border-box;
}
.route-card-transport-tabs--segmented .route-card-transport-tab {
  flex: 1 1 50%;
  min-width: 0;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.25rem;
  background: transparent;
  color: #475569;
  box-shadow: none;
}
.route-card-transport-tabs--segmented .route-card-transport-tab:hover {
  background: rgba(255, 255, 255, 0.45);
  color: #334155;
}
.route-card-transport-tabs--segmented .route-card-transport-tab.is-active,
.route-card-transport-tabs--segmented .route-card-transport-tab.route-card-transport-tab--active {
  background: #ffffff;
  color: #1e40af;
  border: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.route-card-transport-tab__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  pointer-events: none;
}
.route-card-transport-tabs--segmented .route-card-transport-tab__text {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.route-card-transport-tabs--segmented .route-card-transport-tab__check {
  width: 1.25rem;
  height: 1.25rem;
  flex-basis: 1.25rem;
}
.route-card-transport-legend {
  margin: 0 0 0.4rem;
  padding: 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}

.route-card-transport-placeholder {
  margin: 0.35rem 0 0;
  padding: 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #64748b;
  text-align: center;
}

.route-card-transport-tab {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.route-card-transport-tab__check {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  color: #16a34a;
  transition:
    border-color 0.15s ease,
    border-style 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}
.route-card-transport-check-svg {
  display: block;
  width: 1rem;
  height: 1rem;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.route-card-transport-tab.is-active .route-card-transport-check-svg,
.route-card-transport-tab.route-card-transport-tab--active .route-card-transport-check-svg {
  opacity: 1;
  transform: scale(1);
}
.route-card-transport-tab__text {
  flex: 1;
  min-width: 0;
}
.route-card-transport-tab:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.route-card-transport-tab:hover:not(.is-active):not(.route-card-transport-tab--active) .route-card-transport-tab__check {
  border-color: #64748b;
  background: #f1f5f9;
}
.route-card-transport-tab:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.route-card-transport-tab.is-active,
.route-card-transport-tab.route-card-transport-tab--active {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #1e40af;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.route-card-transport-tab.is-active .route-card-transport-tab__check,
.route-card-transport-tab.route-card-transport-tab--active .route-card-transport-tab__check {
  border-style: solid;
  border-color: #22c55e;
  background: #ecfdf5;
  color: #15803d;
  transform: scale(1.02);
}

/* Кнопка «Подробнее» в карточке маршрута (вся карточка — один button) */
.route-card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  box-sizing: border-box;
  border-radius: 0.75rem;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  transition: background 0.15s ease, transform 0.15s ease;
}
.route-card-more-label {
  border: 0;
  padding: 0;
}
.destination-card:hover .route-card-more {
  background: #1d4ed8;
}
.route-card-more-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #ffffff;
  transition: transform 0.15s ease;
}
.destination-card:hover .route-card-more-icon {
  transform: translateX(3px);
}

/* Описание маршрута в карточке (стили в CSS, не только Tailwind в JS — иначе CDN Tailwind не генерирует классы) */
.route-card-description {
  margin-top: 0.5rem;
  color: #2b2d30;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
}

/* Обрезка через JS + ссылка «Читать ещё» — без line-clamp */
.route-card-description.route-card-description--plain {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.route-card-readmore {
  display: inline;
  font-weight: 600;
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.route-card-readmore:hover {
  color: #1d4ed8;
}
.destination-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.route-card-price {
  flex-shrink: 0;
}

/* Динамическое ценообразование: зачёркнутая и текущая цена */
.vizitka-price-block,
.vizitka-price-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  line-height: 1.2;
}
.vizitka-price-strike {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.72em;
  font-weight: 500;
}
.vizitka-price-current {
  font-weight: 700;
  color: #2563eb;
}
#route-price-details .route-price-details__price .vizitka-price-strike,
#booking-form-heading .vizitka-price-strike {
  color: #9ca3af;
  font-size: 0.68em;
  font-weight: 500;
}
#route-price-details .route-price-details__price .vizitka-price-current,
#booking-form-heading .vizitka-price-current {
  color: #1d4ed8;
  font-weight: 800;
}

/* Строка «Всего N отзывов» на мобилке (жирнее и крупнее основного подзаголовка) */
#reviews-total-line .reviews-total-count,
#route-reviews-total-line .reviews-total-count {
  display: inline-block;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
  color: #111827;
}
@media (max-width: 767px) {
  #reviews-total-line .reviews-total-count,
  #route-reviews-total-line .reviews-total-count {
    font-size: 1rem;
    line-height: 1.3;
  }
}

/* Страница маршрута: слайдер фото */
.route-slider-wrap {
  overflow: hidden;
  width: 100%;
}
.route-slider-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.route-slider-track::-webkit-scrollbar {
  display: none;
}
.route-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.route-slider-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(70vh, 28rem);
  background: #f1f5f9;
}
/* Десктоп: не даём первому фотоблоку визуально "растягиваться" по ширине. */
@media (min-width: 768px) {
  .route-slider-wrap {
    max-width: 54rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
  }
  .route-slider-img {
    width: 100%;
    height: clamp(22rem, 44vw, 34rem);
    max-height: 34rem;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0.9rem;
  }
}
.route-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #2563eb;
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.route-slider-arrow:hover:not(:disabled) {
  background: #eff6ff;
}
.route-slider-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.route-sight-line {
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
  margin: 0;
}

/* Маршрут: галерея мест (мобилка — крупный свайп, десктоп — сетка) */
.route-sight-gallery {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}
.route-sight-gallery::-webkit-scrollbar {
  height: 6px;
}
.route-sight-gallery::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.route-sight-gallery .route-sight-place-cell {
  flex: 0 0 88%;
  width: 88%;
  min-width: 88%;
  scroll-snap-align: start;
}
.route-sight-gallery-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #6b7280;
}
@media (min-width: 768px) {
  .route-sight-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    overflow: visible;
    padding-bottom: 0;
  }
  .route-sight-gallery .route-sight-place-cell {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .route-sight-gallery-hint {
    display: none;
  }
}

/* «На чём едем»: моб. — обычный слайдер 1 фото = 100% ширины слайда; ≥500px — сетка */
.route-vehicles-wrap {
  overflow: hidden;
  width: 100%;
}
.route-vehicles-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.route-vehicles-track::-webkit-scrollbar {
  display: none;
}
.route-vehicles-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 0 0.75rem;
}
.route-vehicles-slide-img {
  display: block;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-height: min(70vh, 28rem);
  background: #e2e8f0;
  border-radius: 0.75rem;
  pointer-events: none;
  user-select: none;
}
/* Слайдер «Гиды»: в окне два фото, в ленте — по одной ячейке; шаг скролла = одна ячейка */
#route-guides-track.route-guides-track--step {
  gap: 0.5rem;
}
#route-guides-track.route-guides-track--step > .route-guides-slide-cell {
  flex: 0 0 calc((100% - 0.5rem) / 2);
  width: calc((100% - 0.5rem) / 2);
  min-width: calc((100% - 0.5rem) / 2);
  max-width: calc((100% - 0.5rem) / 2);
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
#route-guides-track.route-guides-track--step.route-guides-track--solo {
  justify-content: center;
}
#route-guides-track.route-guides-track--step.route-guides-track--solo > .route-guides-slide-cell--solo {
  flex: 0 0 calc((100% - 0.5rem) / 2);
  width: calc((100% - 0.5rem) / 2);
  min-width: calc((100% - 0.5rem) / 2);
  max-width: calc((100% - 0.5rem) / 2);
}
.route-vehicles-img {
  display: block;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  border-radius: 0.75rem;
  pointer-events: none;
  user-select: none;
}
.route-vehicles-arrows-wrap {
  display: block;
}
.route-vehicles-arrows {
  display: flex;
}
@media (min-width: 500px) {
  .route-vehicles-arrows-wrap {
    display: none !important;
  }
}
.route-vehicles-mobile-host {
  display: block;
}
.route-vehicles-grid-host {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.route-vehicles-grid-host .route-vehicles-grid-cell {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  overflow: hidden;
}
.route-vehicles-grid-host .route-vehicles-img {
  min-height: 0;
}
@media (min-width: 500px) {
  .route-vehicles-mobile-host {
    display: none !important;
  }
  .route-vehicles-grid-host {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .route-vehicles-grid-host {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Крестик поверх контента: fixed — не создаёт пустую полосу в потоке; белый только у кнопки */
.route-page-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  z-index: 40;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.route-page-bar .route-page-close {
  pointer-events: auto;
}

.route-page-close {
  touch-action: pan-x pan-y;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin: calc(0.4rem + env(safe-area-inset-top, 0px)) calc(0.5rem + env(safe-area-inset-right, 0px)) 0 0;
  color: #111827;
  background: #ffffff;
  border-radius: 0.625rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: color 0.15s ease, box-shadow 0.15s ease;
  min-width: 2.5rem;
  min-height: 2.5rem;
}
.route-page-close:hover {
  color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
.route-page-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.route-page-close-icon {
  display: block;
  width: 3.25rem;
  height: 2.25rem;
}
@media (min-width: 640px) {
  .route-page-close {
    padding: 0.55rem;
    margin: calc(0.5rem + env(safe-area-inset-top, 0px)) calc(0.65rem + env(safe-area-inset-right, 0px)) 0 0;
    min-width: 2.65rem;
    min-height: 2.65rem;
  }
  .route-page-close-icon {
    width: 3.375rem;
    height: 2.375rem;
  }
}

/* Страница маршрута: компактный рейтинг под заголовком (кнопка — модалка «Все отзывы») */
.route-rating-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0 0 1rem;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 0.5rem;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.route-rating-teaser:hover {
  background: rgba(37, 99, 235, 0.05);
}
.route-rating-teaser:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.route-rating-teaser__body {
  flex: 1;
  min-width: 0;
}
.route-rating-teaser__score-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.1;
}
.route-rating-teaser__value {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}
.route-rating-teaser__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}
.route-rating-teaser__star {
  position: relative;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  display: inline-flex;
}
.route-rating-teaser__star svg {
  width: 100%;
  height: 100%;
  display: block;
}
.route-rating-teaser__star--empty {
  color: #e5e7eb;
}
.route-rating-teaser__star--full {
  color: #ff4d6d;
}
.route-rating-teaser__star--half {
  color: #e5e7eb;
}
.route-rating-teaser__star--half svg {
  color: #e5e7eb;
}
.route-rating-teaser__star--half::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ff4d6d;
  -webkit-clip-path: inset(0 50% 0 0);
  clip-path: inset(0 50% 0 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M9.99964 14.2747L5.64534 17.4195C5.31813 17.6558 4.88024 17.3335 5.00866 16.9508L6.72685 11.8308L2.34997 8.66654C2.02364 8.43061 2.19053 7.91491 2.59321 7.91491H7.94164L9.60472 2.78709C9.72887 2.4043 10.2704 2.4043 10.3946 2.78709L12.0576 7.91491H17.4061C17.8088 7.91491 17.9757 8.43061 17.6493 8.66654L13.2724 11.8308L14.9906 16.9508C15.119 17.3335 14.6812 17.6558 14.3539 17.4195L9.99964 14.2747Z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M9.99964 14.2747L5.64534 17.4195C5.31813 17.6558 4.88024 17.3335 5.00866 16.9508L6.72685 11.8308L2.34997 8.66654C2.02364 8.43061 2.19053 7.91491 2.59321 7.91491H7.94164L9.60472 2.78709C9.72887 2.4043 10.2704 2.4043 10.3946 2.78709L12.0576 7.91491H17.4061C17.8088 7.91491 17.9757 8.43061 17.6493 8.66654L13.2724 11.8308L14.9906 16.9508C15.119 17.3335 14.6812 17.6558 14.3539 17.4195L9.99964 14.2747Z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.route-rating-teaser__meta {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #374151;
}
.route-rating-teaser__reviews-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.route-rating-teaser:hover .route-rating-teaser__reviews-link {
  color: #2563eb;
}
.route-rating-teaser__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #202020;
  padding: 0.25rem;
  margin: -0.25rem -0.25rem -0.25rem 0;
  border-radius: 0.375rem;
}
.route-rating-teaser:hover .route-rating-teaser__arrow {
  color: #2563eb;
}

/* Страница маршрута: описание — на мобилке фиксированная высота и «Ещё» */
.route-page-description-wrap {
  margin-bottom: 0.25rem;
}
.route-page-description-inner {
  min-height: 0;
}
.route-page-description-more {
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.route-page-description-more:hover {
  color: #1d4ed8;
}
.route-page-description-more:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 0.25rem;
}
@media (max-width: 639px) {
  .route-page-description-wrap:not(.is-expanded) .route-page-description-inner {
    max-height: none;
    min-height: 0;
    overflow: visible;
  }
  /* Многоточие в конце обрезанного текста (до «Ещё») */
  .route-page-description-wrap:not(.is-expanded) .route-page-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .route-page-description-wrap.is-expanded .route-page-description-inner {
    max-height: none;
    min-height: 0;
    overflow: visible;
  }
  .route-page-description-wrap.is-expanded .route-page-description {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }
}

/* Страница маршрута: выбор города (надбавка к цене «на машине») */
.route-city-select-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.route-city-select-label {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.01em;
}
.route-city-select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.35;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}
.route-city-select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: #93c5fd;
}

/* Страница маршрута: переключатель транспорта (сегменты — классы route-card-transport-*) */
.route-transport-toggle-wrap {
  margin-top: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
}
.route-price-details__unit-transport {
  font-weight: 500;
}

/* Страница маршрута: цена, кнопки бронирования, доверие */
.route-price-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
  position: relative;
}
#route-price-details .route-price-details__sale-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.25rem;
  z-index: 2;
}
.route-price-details__price-block {
  margin-bottom: 1.25rem;
}
.route-price-details__price {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.02em;
}
.route-price-details__unit {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #6b7280;
}
.route-price-details__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.route-price-details__btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.route-price-details__btn--primary {
  background: #111827;
  color: #fff;
}
.route-price-details__btn--primary:hover {
  opacity: 0.92;
}
.route-price-details__btn--secondary {
  background: #f3f4f6;
  color: #111827;
}
.route-price-details__btn--secondary:hover {
  background: #e5e7eb;
}
#route-price-details-telegram {
  background: #0b1220;
  color: #ffffff;
}
#route-price-details-telegram:hover {
  background: #030712;
  opacity: 1;
}
#route-price-details-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
#route-price-details-whatsapp:hover {
  background: #20ba5a;
  opacity: 1;
}
.route-price-details__btn--max {
  background: #2563eb;
  color: #ffffff;
}
.route-price-details__btn--max:hover {
  background: #1d4ed8;
  opacity: 1;
}
.route-price-details__btn--max:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.route-price-details-btn__icon {
  flex-shrink: 0;
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}
.route-price-details__btn--max .route-price-details-btn__icon {
  width: 1.2rem;
  height: 1.2rem;
}
.route-price-details__trust {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.route-price-details__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.route-price-details__trust-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #eff6ff;
  color: #2563eb;
}
.route-price-details__trust-icon svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  stroke: currentColor;
}
.route-price-details__trust-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
}
.route-price-details__trust-link {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.route-price-details__trust-link:hover {
  color: #2563eb;
}

/* Страница маршрута: лист «Написать гиду» снизу */
.route-guide-sheet {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  visibility: hidden;
}
.route-guide-sheet--promo-main {
  z-index: 70;
}
.route-guide-sheet:not([hidden]) {
  pointer-events: auto;
  visibility: visible;
}
.route-guide-sheet__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.route-guide-sheet--open .route-guide-sheet__backdrop {
  opacity: 1;
}
.route-guide-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-height: min(92vh, 34rem);
  overflow-y: auto;
  padding: 0 1.25rem 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1.125rem 1.125rem 0 0;
  background: #fff;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.route-guide-sheet--open .route-guide-sheet__panel {
  transform: translateY(0);
}
.route-guide-sheet__handle {
  width: 2.5rem;
  height: 0.25rem;
  margin: 0.5rem auto 0.75rem;
  border-radius: 999px;
  background: #e5e7eb;
}
.route-guide-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.route-guide-sheet__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  padding-top: 0.125rem;
}
.route-guide-sheet__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.625rem;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.route-guide-sheet__close:hover {
  background: #e5e7eb;
  color: #111827;
}
.route-guide-sheet__close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.route-guide-sheet__close-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.route-guide-sheet__intro {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4b5563;
}
.route-guide-sheet__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.route-guide-sheet__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.route-guide-sheet__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
}
.route-guide-sheet__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  color: #111827;
  background: #fff;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.route-guide-sheet__input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.route-guide-sheet__message {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.route-guide-sheet__submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #111827;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.route-guide-sheet__submit:hover:not(:disabled) {
  opacity: 0.92;
}
.route-guide-sheet__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.route-guide-sheet__success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}
.route-guide-sheet__success-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #166534;
}
.route-guide-sheet__success-text {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #15803d;
}

/* Bottom sheet «Все отзывы» (мобилка) */
.route-guide-sheet--reviews-all {
  z-index: 56;
}
.route-guide-sheet--reviews-all .route-guide-sheet__panel {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  overflow: hidden;
  padding: 0;
}
.route-guide-sheet--reviews-all .route-guide-sheet__handle {
  flex-shrink: 0;
}
.route-guide-sheet--reviews-all .route-guide-sheet__head {
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0 1.25rem 0.75rem;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}
.reviews-all-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.75rem 1.25rem 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
.reviews-all-sheet-subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.35;
}
.reviews-all-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.reviews-all-sheet-list .review-card {
  margin: 0;
}
.reviews-all-sheet-yandex {
  display: block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2563eb;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.35rem 0 0.15rem;
}
.reviews-all-sheet-yandex:hover {
  color: #1d4ed8;
}

/* Под открытой модалкой / нижним листом — не скроллить страницу (в т.ч. iOS) */
html.vizitka-scroll-locked {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body.vizitka-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

/* Блок отзывов (стиль Яндекса, светлая тема) */
.reviews-yandex-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 7px;
}
/* Навигация отзывов: ‹ 1 2 3 › */
.reviews-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}
.reviews-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 700;
  color: #2563eb;
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}
.reviews-nav-arrow:hover:not(:disabled) {
  background: #eff6ff;
}
.reviews-nav-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.reviews-nav-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: min(100%, 22rem);
}
.reviews-nav-page {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #2563eb;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.reviews-nav-page:hover {
  border-color: #2563eb;
  background: #f8fafc;
}
.reviews-nav-page.is-active {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
}
.reviews-nav-sep {
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
  user-select: none;
  pointer-events: none;
}

.reviews-nav-ellipsis {
  font-size: 0.875rem;
  font-weight: 600;
  color: #9ca3af;
  user-select: none;
  pointer-events: none;
  padding: 0 0.15rem;
}

/* Мобилка: горизонтальные «страницы»; на каждой — 2 отзыва столбиком + слайд «Все отзывы» */
@media (max-width: 767px) {
  .reviews-track.reviews-track--mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 0.5rem;
    margin: 0;
    scrollbar-width: thin;
  }
  .reviews-track.reviews-track--mobile::-webkit-scrollbar {
    height: 6px;
  }
  .reviews-track.reviews-track--mobile::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
  }
  .reviews-mobile-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: stretch;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0;
  }
  .reviews-mobile-slide .review-card {
    min-width: 0;
    width: 100%;
    padding: 0.55rem 0.7rem 0.55rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  /* Слайд-кнопка «Все отзывы» (паттерн как на Яндексе) */
  .reviews-mobile-slide--show-all {
    justify-content: center;
  }
  .reviews-mobile-slide--show-all .show-all-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.5rem;
    min-height: 9rem;
  }
  .reviews-show-all-external-link {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #2563eb;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0.35rem 0;
  }
  .reviews-show-all-external-link:hover {
    color: #1d4ed8;
  }
  .reviews-show-all-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #202020;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }
  .reviews-show-all-btn--link:hover,
  .reviews-show-all-btn--neutral:hover {
    background: #f3f4f6;
  }
  .reviews-show-all-btn-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #202020;
  }
  .reviews-show-all-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
  }
  .reviews-show-all-line--total {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
  }
  .reviews-show-all-line--remaining {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.3;
  }
  .reviews-track--mobile .review-avatar-wrap {
    width: 2.25rem;
    height: 2.25rem;
  }
  .reviews-track--mobile .review-author {
    font-size: 0.875rem;
    line-height: 1.25;
  }
  .reviews-track--mobile .review-meta-line {
    font-size: 0.75rem;
    margin-top: 0.05rem;
  }
  .reviews-track--mobile .review-card .review-rating-row {
    margin-top: 0.35rem;
  }
  .reviews-track--mobile .reviews-star {
    font-size: 0.9rem;
  }
  .reviews-track--mobile .review-date {
    font-size: 0.75rem;
    margin-left: 0.3rem;
  }
  .reviews-track--mobile .review-card > .review-text {
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
  }
  .reviews-track--mobile .review-text-short {
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
  }
  .reviews-track--mobile .review-text-full:not(.hidden) {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .reviews-track--mobile .review-read-more {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
  }
  .reviews-track.reviews-track--mobile {
    padding: 0 0 0.25rem;
  }
  /* Компактная пагинация только у блока отзывов (не промо и др.) */
  #reviews-nav.reviews-nav,
  #route-reviews-nav.reviews-nav {
    gap: 0.35rem 0.45rem;
    margin-top: 0.35rem;
  }
  #reviews-nav .reviews-nav-arrow,
  #route-reviews-nav .reviews-nav-arrow {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.25rem;
    border-radius: 0.6rem;
    border-width: 1px;
  }
  #reviews-nav .reviews-nav-pages,
  #route-reviews-nav .reviews-nav-pages {
    gap: 0.25rem;
  }
  #reviews-nav .reviews-nav-page,
  #route-reviews-nav .reviews-nav-page {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    border-width: 1px;
  }
  #reviews-nav .reviews-nav-ellipsis,
  #route-reviews-nav .reviews-nav-ellipsis {
    font-size: 0.8125rem;
    padding: 0 0.1rem;
  }
}

@media (min-width: 768px) {
  .reviews-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .reviews-track .review-card {
    min-width: 0;
  }
}

.review-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 1.125rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  text-align: left;
}
.review-author-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.review-avatar-wrap {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: #f3f4f6;
}
.review-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.review-author-col {
  min-width: 0;
  flex: 1;
}
.review-author {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #111827;
  line-height: 1.3;
}
.review-meta-line {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-top: 0.125rem;
}
.review-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}
.reviews-stars {
  display: inline-flex;
  gap: 0.1rem;
  letter-spacing: 0;
  line-height: 1;
}
.reviews-star {
  color: #fbbf24;
  font-size: 1rem;
  user-select: none;
}
.reviews-star-empty {
  color: #e5e7eb;
}
.review-date {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-left: 0.35rem;
}
.review-text {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #374151;
}
/* Перебивает display:-webkit-box у .review-text-short на мобилке — иначе Tailwind .hidden не скрывает абзац */
.review-text-short.hidden {
  display: none !important;
}
.review-read-more {
  margin-top: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.review-read-more:hover {
  color: #2563eb;
}

/* Страница /aktsiya: белый фон, без серой подложки блока акции */
body[data-page='aktsiya'] .promo-competition {
  background: #ffffff;
  border-top: none;
  border-bottom: none;
}

/* Отступ заголовка (не через Tailwind arbitrary — иначе класс может не попасть в tailwind.css на проде) */
body[data-page='aktsiya'] #aktsiya-page-title {
  padding-top: 4.5rem;
}

/* Блок «Постоянная акция» (розыгрыш) — нейтральный светлый фон */
.promo-competition {
  scroll-margin-top: 0.5rem;
  background: #f4f4f5;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 30px;
}
.directions-button {
  min-width: 227px;
}
.promo-competition #promo-competition-title {
  color: #0f172a;
}
.promo-competition .promo-competition-intro {
  color: #4b5563;
}
.promo-conditions-link:hover .promo-conditions-link-icon {
  transform: translateX(2px);
}
/* Иконка-стрелка у «Полные условия акции»: мобилка — круглая обводка; ПК — чуть крупнее под размер текста */
.promo-conditions-link-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  vertical-align: -0.15em;
  transition: transform 0.15s ease;
  border: 1px solid #2563eb;
  padding: 4px;
  border-radius: 100%;
  margin-left: 6px;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .promo-conditions-link-icon {
    width: 1.75rem;
    height: 1.75rem;
    padding: 5px;
    margin-left: 8px;
    vertical-align: -0.12em;
  }
}
.promo-competition .promo-rule-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
/* Кнопка «Участвовать в акции» — как «Подробнее» в карточке маршрута */
.promo-competition-cta-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .promo-competition-cta-wrap {
    margin-bottom: 1.5rem;
    padding-left: 0;
    padding-right: 0;
  }
}
.promo-competition-open-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.875rem 1rem;
  box-sizing: border-box;
  border: none;
  border-radius: 0.75rem;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.promo-competition-open-modal:hover {
  background: #1d4ed8;
}
.promo-competition-open-modal:active {
  transform: scale(0.98);
}
.promo-competition-open-modal__label {
  border: 0;
  padding: 0;
  margin: 0;
}
.promo-competition-open-modal__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #ffffff;
  transition: transform 0.15s ease;
}
.promo-competition-open-modal:hover .promo-competition-open-modal__icon {
  transform: translateX(3px);
}
@media (min-width: 640px) {
  .promo-competition-open-modal {
    width: auto;
    min-width: 17.5rem;
    max-width: 26rem;
    padding: 0.9375rem 1.375rem;
    font-size: 1.0625rem;
  }
}
.promo-competition .promo-competition-stats {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.promo-competition .promo-competition-stats-label {
  color: #0f172a;
}
.promo-competition-intro {
  font-size: 1.0625rem;
  line-height: 1.65;
}
@media (min-width: 640px) {
  .promo-competition-intro {
    font-size: 1.1875rem;
  }
}
@media (min-width: 768px) {
  .promo-competition-intro {
    font-size: 1.3125rem;
  }
}
.promo-rule-badge {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
}
@media (min-width: 640px) {
  .promo-rule-badge {
    font-size: 1rem;
  }
}
.promo-rule-lead {
  font-size: 1.0625rem;
  line-height: 1.5;
}
@media (min-width: 640px) {
  .promo-rule-lead {
    font-size: 1.1875rem;
  }
}
@media (min-width: 768px) {
  .promo-rule-lead {
    font-size: 1.25rem;
  }
}
.promo-form-title {
  font-size: 1.375rem;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .promo-form-title {
    font-size: 1.625rem;
  }
}
@media (min-width: 768px) {
  .promo-form-title {
    font-size: 1.875rem;
  }
}
.promo-form-subtitle {
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .promo-form-subtitle {
    font-size: 1.125rem;
  }
}
@media (min-width: 768px) {
  .promo-form-subtitle {
    font-size: 1.1875rem;
  }
}
.promo-form-label {
  font-size: 1.0625rem;
}
@media (min-width: 640px) {
  .promo-form-label {
    font-size: 1.125rem;
  }
}
.promo-form-input {
  font-size: 1.0625rem;
}
@media (min-width: 640px) {
  .promo-form-input {
    font-size: 1.125rem;
  }
}
.promo-form-message {
  font-size: 1rem;
  line-height: 1.45;
}
.promo-form-submit {
  font-size: 1.125rem;
}
@media (min-width: 640px) {
  .promo-form-submit {
    font-size: 1.1875rem;
  }
}
.promo-form-success-title {
  font-size: 1.25rem;
}
@media (min-width: 640px) {
  .promo-form-success-title {
    font-size: 1.375rem;
  }
}
.promo-form-success-text {
  font-size: 1.0625rem;
  line-height: 1.55;
}
@media (min-width: 640px) {
  .promo-form-success-text {
    font-size: 1.125rem;
  }
}
.promo-support-note {
  font-size: 1rem;
  line-height: 1.55;
}
@media (min-width: 640px) {
  .promo-support-note {
    font-size: 1.0625rem;
  }
}
.promo-competition-stats-label {
  font-size: 1.25rem;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .promo-competition-stats-label {
    font-size: 1.5rem;
  }
}
.promo-competition-total {
  font-size: 2.75rem;
  line-height: 1.1;
}
@media (min-width: 640px) {
  .promo-competition-total {
    font-size: 3.5rem;
  }
}
@media (min-width: 768px) {
  .promo-competition-total {
    font-size: 4rem;
  }
}
.promo-rule-list {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
  color: #374151;
  font-size: 1rem;
  line-height: 1.5;
}
@media (min-width: 640px) {
  .promo-rule-list {
    font-size: 1.0625rem;
  }
}
@media (min-width: 768px) {
  .promo-rule-list {
    font-size: 1.125rem;
  }
}
.promo-rule-list li {
  margin-top: 0.35rem;
}
.promo-rule-list li:first-child {
  margin-top: 0;
}
.promo-social-btn--wa {
  background: #22c55e;
  box-shadow: 0 2px 0 rgba(21, 128, 61, 0.35);
}
.promo-social-btn--wa:hover {
  background: #16a34a;
}
.promo-social-btn--tg {
  background: #229ed9;
  box-shadow: 0 2px 0 rgba(14, 116, 165, 0.35);
}
.promo-social-btn--tg:hover {
  background: #1c8ec4;
}
.promo-social-btn.promo-social-btn--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}
.promo-winners-title {
  font-size: 1.375rem;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .promo-winners-title {
    font-size: 1.625rem;
  }
}
@media (min-width: 768px) {
  .promo-winners-title {
    font-size: 1.875rem;
  }
}
.promo-winners-intro {
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .promo-winners-intro {
    font-size: 1.125rem;
  }
}
@media (min-width: 768px) {
  .promo-winners-intro {
    font-size: 1.1875rem;
  }
}
/* Фотослайдер под заголовком «Победители розыгрыша»: 2 фото на телефоне, 4 на ПК; только просмотр в карусели */
.promo-winners-gallery-viewport {
  overflow: hidden;
  border-radius: 0.875rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}
.promo-winners-gallery-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  transition: transform 0.45s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .promo-winners-gallery-track {
    transition: none;
  }
}
.promo-winners-gallery-page {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.5rem;
}
@media (min-width: 768px) {
  .promo-winners-gallery-page {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.65rem;
  }
}
.promo-winners-gallery-thumb {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.65rem;
  overflow: hidden;
  cursor: default;
  background: #e5e7eb;
  user-select: none;
  -webkit-user-drag: none;
}
.promo-winners-gallery-thumb img {
  display: block;
  width: 100%;
  height: 10rem;
  object-fit: cover;
}
@media (min-width: 768px) {
  .promo-winners-gallery-thumb img {
    height: 11rem;
  }
}

/* Карусель победителей: по 3 карточки на «страницу», стрелки снизу */
.promo-winners-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.promo-winners-title {
  color: #0f172a;
}
.promo-winners-intro {
  color: #57534e;
}
.promo-winners-strong {
  color: #0f172a;
}
.promo-winners-carousel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.promo-winners-nav-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 640px) {
  .promo-winners-nav-row {
    margin-top: 1.5rem;
    gap: 1.25rem;
  }
}
.promo-winners-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.promo-winners-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.35s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .promo-winners-track {
    transition: none;
  }
}
.promo-winners-slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.promo-winners-slide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}
@media (min-width: 640px) {
  .promo-winners-slide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
.promo-winners-card {
  margin: 0;
  padding: 1rem 1.125rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
  text-align: left;
}
@media (min-width: 640px) {
  .promo-winners-card {
    font-size: 1.0625rem;
    padding: 1.125rem 1.25rem;
  }
}
.promo-winners-slide--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-winners-nav.promo-winners-nav--off {
  display: none;
}
.promo-winners-line1 {
  font-weight: 600;
  color: #111827;
  font-size: 1.0625rem;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .promo-winners-line1 {
    font-size: 1.125rem;
  }
}
@media (min-width: 768px) {
  .promo-winners-line1 {
    font-size: 1.1875rem;
  }
}
.promo-winners-line2 {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-top: 0.4rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
}
@media (min-width: 640px) {
  .promo-winners-line2 {
    font-size: 1rem;
  }
}
@media (min-width: 768px) {
  .promo-winners-line2 {
    font-size: 1.0625rem;
  }
}
p.promo-winners-empty {
  background: transparent;
  border: 1px dashed #e5e7eb;
  border-radius: 0.75rem;
  list-style: none;
  font-size: 1rem;
  text-align: center;
  padding: 1.25rem 1rem;
  margin: 0;
  color: #6b7280;
  width: 100%;
}
@media (min-width: 640px) {
  p.promo-winners-empty {
    font-size: 1.0625rem;
    padding: 1.5rem 1.25rem;
  }
}

/* Иконки телефона в карточках гидов: размеры в CSS — классы из JS не всегда попадают в Tailwind */
.contact-guide-icon {
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}
.contact-guide-icon--link {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  max-width: 1.75rem;
  max-height: 1.75rem;
}
@media (min-width: 640px) {
  .contact-guide-icon--link {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    max-width: 2rem;
    max-height: 2rem;
  }
}
.contact-guide-icon--btn {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
  max-width: 1.5rem;
  max-height: 1.5rem;
}
@media (min-width: 640px) {
  .contact-guide-icon--btn {
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    min-height: 1.75rem;
    max-width: 1.75rem;
    max-height: 1.75rem;
  }
}
.contact-guide-phone-num {
  white-space: nowrap;
  min-width: 0;
}
.contact-guide-phone-link {
  justify-content: flex-start;
  text-align: left;
}

/* Строка «номер + Позвонить»: на ПК номер слева, кнопки справа без налезания (не зависит от Tailwind из JS) */
.contact-guide-phone-row {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .contact-guide-phone-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .contact-guide-phone-row .contact-guide-phone-link {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
  }
  .contact-guide-phone-row .contact-guide-phone-actions {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }
}

/* Реквизиты под телефонами в контактах (главная, подгружается JS) */
.contacts-legal-requisites-host {
  margin-top: 1.25rem;
}
.contacts-legal-requisites {
  max-width: 28rem;
  margin: 0 auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.6875rem;
  line-height: 1.5;
  font-weight: 400;
  color: #9ca3af;
  text-align: center;
  letter-spacing: 0.01em;
}
.contacts-legal-requisites p {
  margin: 0.15rem 0;
}

/* Ссылка MAX в строке мессенджеров (контакты) */
#contacts-links a.contact-link--max,
#route-contacts-links a.contact-link--max {
  color: #5e52f0;
}
#contacts-links a.contact-link--max:hover,
#route-contacts-links a.contact-link--max:hover {
  color: #4338ca;
}

/* Плавающая кнопка звонка (fixed, после прокрутки) */
.floating-call-btn {
  position: fixed;
  z-index: 45;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0.25rem 0.875rem rgba(37, 99, 235, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0.5rem, 0);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s;
  touch-action: pan-x pan-y;
}
.floating-call-btn--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}
.floating-call-btn--with-pwa {
  bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 4.8rem);
}
.floating-call-btn__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.floating-call-btn__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.floating-call-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
@media (min-width: 768px) {
  .floating-call-btn {
    display: none;
  }
}

/* Маршрут: фиксированный бар бронирования снизу */
.route-booking-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 46;
  padding: 0.6rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(6px);
}
.route-booking-sticky__inner {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}
.route-booking-sticky__price-wrap {
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.route-booking-sticky__price {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
}
.route-booking-sticky__price .vizitka-price-inner {
  gap: 0.35rem;
}
.route-booking-sticky__price .vizitka-price-strike {
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 500;
}
.route-booking-sticky__price .vizitka-price-current {
  font-size: 1.06rem;
  font-weight: 800;
}
.route-booking-sticky__btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.6rem;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.78rem 1.05rem;
  min-width: 9.5rem;
  text-decoration: none;
}
.route-booking-sticky__btn-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}
.route-booking-sticky__btn:hover {
  background: #1d4ed8;
  color: #fff;
}
/* Нижняя панель — только на узком экране; в карточке полный блок кнопок */
@media (min-width: 640px) {
  #route-booking-sticky {
    display: none !important;
    pointer-events: none;
  }
}
@media (max-width: 639px) {
  #route-page-main {
    padding-bottom: 1rem;
  }
}

/* Страница /booking — календарь и форма */
.booking-page-promo-hint {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ea580c;
}
@media (min-width: 640px) {
  .booking-page-promo-hint {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}
@media (max-width: 639px) {
  /* Запас под фиксированный крестик .route-page-bar (правый верх) */
  .booking-page__header {
    padding-right: calc(3.35rem + env(safe-area-inset-right, 0px));
    padding-top: 0.25rem;
  }
}
.booking-page-route-line {
  font-size: 1.125rem;
  line-height: 1.45;
  color: #2563eb;
  max-width: max-content;
  border-radius: 10px;
  text-decoration: underline;
}
@media (min-width: 640px) {
  .booking-page-route-line {
    font-size: 1.375rem;
  }
}
.booking-page-cal-lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .booking-page-cal-lead {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
  }
}
.booking-page__cols {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .booking-page__cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    gap: 2rem;
  }
}
.booking-calendar-root {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.booking-cal-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.booking-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.5rem;
}
.booking-cal-nav-title {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #111827;
  line-height: 1.25;
}
.booking-cal-nav-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.booking-cal-nav-btn:hover:not(:disabled) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}
.booking-cal-nav-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.booking-cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f9fafb;
}
.booking-cal-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.booking-cal-table-wrap {
  width: 100%;
}
.booking-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8125rem;
}
.booking-cal-th {
  padding: 0.35rem 0;
  font-weight: 500;
  color: #9ca3af;
  text-align: center;
}
.booking-cal-td {
  padding: 0.1rem;
  vertical-align: top;
}
.booking-cal-td--pad {
  border: none;
}
.booking-cal-day {
  width: 100%;
  min-height: 3rem;
  min-width: 0;
  padding: 0.35rem 0.2rem 0.45rem;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  line-height: 1.2;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

/* Маршрут на мобилке: визуально связываем карточки мест пунктиром */
@media (max-width: 767px) {
  #route-sights-inner .route-sight-place {
    position: relative;
    padding: 0.85rem;
  }

  #route-sights-inner .route-sight-place + .route-sight-place::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -1.4rem;
    width: 0;
    height: 1.3rem;
    border-left: 3px dashed rgba(37, 99, 235, 0.45);
    transform: translateX(-50%);
    pointer-events: none;
  }
  #route-sights-inner .route-sight-place h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
}
.booking-cal-day--free:hover {
  border-color: #2563eb;
  background: #eff6ff;
}
.booking-cal-day--current {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
  background: #eff6ff;
}
.booking-cal-day--disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f9fafb;
}
.booking-cal-day-num {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: #111827;
  flex-shrink: 0;
}
.booking-cal-day-price {
  font-size: 0.625rem;
  line-height: 1.2;
  color: #6b7280;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: center;
  max-width: 100%;
  width: 100%;
  font-variant-numeric: tabular-nums;
  padding: 0 0.05rem;
  font-weight: 600;
}
.booking-cal-legend-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
}
.booking-cal-legend-dot--free {
  background: #22c55e;
}
.booking-input {
  font-size: 1rem;
}
.booking-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}
#booking-people-count {
  width: 3rem;
  height: 3rem;
  font-size: 16px;
  min-width: 3rem;
  max-width: 3rem;
  -moz-appearance: textfield;
}
#booking-people-count::-webkit-outer-spin-button,
#booking-people-count::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#booking-people-minus,
#booking-people-plus {
  width: 3rem;
  height: 3rem;
  font-size: 26px;
  line-height: 1;
}
#booking-date-display {
  text-align: center;
}
.booking-aside-list .booking-aside-check {
  font-weight: 700;
}

/* ——— Страница трансфера: минималистичный layout + CTA ——— */
.transfer-page__main {
  padding-top: env(safe-area-inset-top, 0);
}
.transfer-page__hero {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 2rem;
}
@media (min-width: 640px) {
  .transfer-page__hero {
    padding-bottom: 2.5rem;
  }
}
.transfer-page__hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(12rem, 50vw);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.35), transparent);
  pointer-events: none;
}
.transfer-page__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.85);
  margin: 0 0 0.65rem;
}
.transfer-page__title {
  font-size: clamp(1.85rem, 5.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: #0f172a;
}
.transfer-page__lead {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 auto;
  max-width: 22rem;
}
.transfer-panel {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 48px -28px rgba(15, 23, 42, 0.18);
  padding: 1.2rem 1.1rem;
}
.transfer-panel--muted {
  background: rgba(248, 250, 252, 0.88);
}
.transfer-panel--accent {
  border-color: rgba(37, 99, 235, 0.14);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.72) 100%);
}
.transfer-panel__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  letter-spacing: -0.015em;
  color: #0f172a;
}
.transfer-panel__note {
  margin-top: -0.35rem;
}
.transfer-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.transfer-service-list__item {
  position: relative;
  padding: 0.62rem 0 0.62rem 0.95rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}
.transfer-service-list__item:last-child {
  border-bottom: 0;
}
.transfer-service-list__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2563eb;
  opacity: 0.5;
}
.transfer-price-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.transfer-price-rows__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}
.transfer-price-rows__row--last {
  border-bottom: 0;
}
.transfer-price-rows__route {
  color: #334155;
  flex: 1;
  min-width: 0;
}
.transfer-price-rows__price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}
.transfer-faq__heading {
  margin-bottom: 0.75rem;
}
.transfer-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.transfer-faq__item {
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}
.transfer-faq__q {
  list-style: none;
  cursor: pointer;
  padding: 0.82rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.transfer-faq__q::-webkit-details-marker {
  display: none;
}
.transfer-faq__q::after {
  content: '+';
  font-weight: 400;
  font-size: 1.1rem;
  opacity: 0.4;
  flex-shrink: 0;
}
.transfer-faq__item[open] .transfer-faq__q::after {
  content: '\2212';
  opacity: 0.55;
}
.transfer-faq__a {
  margin: 0;
  padding: 0 1rem 0.95rem;
  font-size: 0.875rem;
  line-height: 1.52;
  color: #64748b;
}
/* Компактная полоса контактов (маршрут + трансфер) */
.vizitka-cta-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.vizitka-cta-bar__call .vizitka-cta-pill--call {
  width: 100%;
  justify-content: center;
}
.vizitka-cta-bar__messengers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 380px) {
  .vizitka-cta-bar__messengers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.vizitka-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
  min-height: 2.7rem;
  box-sizing: border-box;
}
a.vizitka-cta-pill:active {
  transform: scale(0.98);
}
.vizitka-cta-pill--call {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 2px 12px -4px rgba(37, 99, 235, 0.55);
}
.vizitka-cta-pill--wa {
  background: #16a34a;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
}
.vizitka-cta-pill--tg {
  background: #0284c7;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
}
.vizitka-cta-pill--max {
  background: #2563eb;
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 2px 10px -4px rgba(37, 99, 235, 0.45);
}
.vizitka-cta-pill--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.vizitka-cta-pill__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
/* Трансфер — мессенджеры столбцом (в блоке «Связаться» и при том же классе полосы) */
.transfer-page__connect .vizitka-cta-bar__messengers,
.vizitka-cta-bar--transfer .vizitka-cta-bar__messengers {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  grid-template-columns: unset;
}
.transfer-page__connect .vizitka-cta-bar__messengers .vizitka-cta-pill,
.vizitka-cta-bar--transfer .vizitka-cta-bar__messengers .vizitka-cta-pill {
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

.transfer-booking-cal-wrap {
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.35rem;
  max-height: min(52vh, 22rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.transfer-svc-card__btn {
  margin-top: 0.65rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 1rem 1.25rem;
  min-height: 3.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  border-radius: 0.875rem;
  cursor: pointer;
  box-shadow: 0 2px 12px -4px rgba(37, 99, 235, 0.45);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}
.transfer-svc-card__btn:hover {
  background: #1d4ed8;
}
.transfer-svc-card__btn:active {
  transform: scale(0.98);
}

.transfer-page__connect-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}
@media (min-width: 640px) {
  .transfer-page__connect-title {
    font-size: 1.375rem;
    margin-bottom: 1.125rem;
  }
}

/* Главная: преимущества перед блоком маршрутов */
.home-advantages {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}
.home-advantages::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.home-advantages__inner {
  position: relative;
  z-index: 1;
}
.home-advantages__eyebrow {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}
.home-advantages__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .home-advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }
}
@media (min-width: 1024px) {
  .home-advantages__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}
.home-advantages-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  animation: home-advantages-in 0.55s ease both;
}
.home-advantages-card:nth-child(1) {
  animation-delay: 0.04s;
}
.home-advantages-card:nth-child(2) {
  animation-delay: 0.1s;
}
.home-advantages-card:nth-child(3) {
  animation-delay: 0.16s;
}
.home-advantages-card:nth-child(4) {
  animation-delay: 0.22s;
}
@media (hover: hover) {
  .home-advantages-card:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  }
}
.home-advantages-card:active {
  transform: scale(0.985);
}
.home-advantages-card--stat {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
}
.home-advantages-card__head {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.home-advantages-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.625rem;
  background: #eff6ff;
  color: #2563eb;
  flex-shrink: 0;
}
.home-advantages-card__icon svg {
  width: 1.0625rem;
  height: 1.0625rem;
}
.home-advantages-card__stat {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}
.home-advantages-card--stat .home-advantages-card__stat {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1d4ed8;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) {
  .home-advantages-card--stat .home-advantages-card__stat {
    font-size: 1.75rem;
  }
}
.home-advantages-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
}
@keyframes home-advantages-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-advantages-card {
    animation: none;
  }
  .home-advantages-card:hover,
  .home-advantages-card:active {
    transform: none;
  }
}
