/* =========================================================
   SINGLE TOUR - STRUCTURE (VARIANT A)
   Mobile-first внутри каждого блока.
   После базовых стилей блока идут его брейкпоинты:
   @media (min-width: 600px) - планшеты
   @media (min-width: 900px) - десктоп мини
   @media (min-width: 1200px) - десктоп макс
========================================================= */

/* =========================================================
   SINGLE TOUR, HEADER
   Чистый блок шапки без неиспользуемых селекторов и дублей
========================================================= */

/* фон */
body.single-tour {
  background-color: #f3f3f3;
}

/* Контейнер под бейдж(и) */
.tour-card__seasons{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 8px 0 0 0;
}

/* Базовый бейдж только в шапке тура */
.tour-card__seasons .badge {
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
}

/* Общий вид для сезона */
.badge--season{
  color: #111;
  text-transform: none;
}

.tour-card__seasons .badge--season{
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
  color: #111;
  background: transparent;
  border: 0;
  padding: 0;
}

/* Шапка */
.tour-header {
  display: block;
}

.tour-header__media {
  width: 100%;
}

.tour-header__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
}

.tour-header__info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tour-header__title {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  color: #000;
  margin: 20px 0 20px;
}

.tour-header__season-switch {
  margin: 0;
  display: flex;
  gap: 12px;
}

.tour-header__season-switch.is-single {
  display: none;
}

/* Линия с кнопками Лето и Зима */
.tour-header__season-row{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:12px;
  margin-bottom:8px;
  margin-left: 20px;
  margin-right: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: visible;
}

/* Кнопки сезона */
.tour-header__season-switch .season-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background-color: #e3e3e3;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tour-header__season-switch .season-btn svg {
  flex-shrink: 0;
}

.tour-header__season-switch .season-btn:hover {
  background-color: var(--color-primary);
}

.tour-header__season-switch .season-btn.is-active {
  background-color: #333;
  color: #fff;
}

/* Рейтинг в шапке одиночного тура */
.tour-single__reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 30px;
  font-size: 20px;
  color: #222;
}

.tour-single__rating-star {
  font-size: 20px;
  line-height: 1;
  color: #F5C518;
}

.tour-single__rating-value {
  font-weight: 600;
  font-size: 20px;
  color: #222;
}

.tour-single__reviews-link {
  text-decoration: none;
  color: #1a73e8;
  font-size: 20px;
}

.tour-single__reviews-link:hover {
  text-decoration: underline;
}

.tour-single__reviews-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  color: #777;
}

.tour-single__reviews-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #777;
}

.tour-single__reviews-label {
  font-size: 20px;
}

/* Правая панель: дни, ближайший, сезоны */
.tour-header__days{
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
  color: #111;
  margin: 0;
  padding: 0 0 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.tour-single__next-row{
  margin: 0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.tour-single__next-label{
  font-size: 16px;
  line-height: 1.2;
  color: #7a7a7a;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tour-single__next-line{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
}

.tour-single__next-date{
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  color: #111;
}

.tour-single__next-more{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dcdcdc;
  color: #111;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  font-weight: 300;
}

.tour-single__next-more:hover{
  text-decoration: none;
}

/* Цена и кнопка */
.tour-header__price {
  font-size: 28px;
  color: #000;
  font-weight: 600;
  margin-top: 20px;
}

.tour-header__price-prefix {
  font-weight: 400;
  font-size: 16px;
  margin-right: 0.25em;
  color: #333;
}

.tour-header__price-old {
  font-size: 16px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.tour-header__discount {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #E86B18;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  margin-left: 0.5em;
  align-self: center;
}

.tour-header__book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  width: auto;
  margin: 20px 0 20px;
}



.tour-header__book-btn svg {
  margin-left: 10px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.tour-header__book-btn:hover svg {
  transform: translateX(4px);
}

.tour-header__book-btn:hover {
  background-color: #d86214;
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

/* =========================================================
   STICKY BOOKING BUTTON
   Отдельная кнопка снизу: на мобильной сбоку, на ПК по центру
========================================================= */

/* mobile по умолчанию */
body.single-tour {
  padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
}

.tour-mobile-booking-btn {
  position: fixed;
  left: 20px;
  right: 96px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1250;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  box-sizing: border-box;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(232, 107, 24, 0.70);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  color: #fff;

  font-size: 14px;
  line-height: 1.15;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  box-shadow:
    0 10px 30px rgba(232, 107, 24, 0.26),
    0 3px 12px rgba(0, 0, 0, 0.14);

opacity: 0;
transform: translateY(22px) scale(0.98);
pointer-events: none;
visibility: hidden;

transition:
  opacity 0.45s ease,
  transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
  visibility 0s linear 0.45s,
  background 0.25s ease,
  border-color 0.25s ease,
  box-shadow 0.25s ease;
}

.tour-mobile-booking-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.tour-mobile-booking-btn:hover,
.tour-mobile-booking-btn:focus-visible {
  background: rgba(232, 107, 24, 0.50);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  text-decoration: none;
}

.tour-mobile-booking-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(232, 107, 24, 0.22),
    0 10px 30px rgba(232, 107, 24, 0.26),
    0 3px 12px rgba(0, 0, 0, 0.14);
}

.tour-mobile-booking-btn__text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Держим кнопку связи на одном уровне с нижней кнопкой бронирования */
body.single-tour .tour-chat-widget {
  right: 20px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

/* Старое нижнее меню тура скрываем */
.tour-bottom-btn,
#tourMenuSheet {
  display: none !important;
}

/* планшеты */
@media (min-width: 600px) {
  .tour-mobile-booking-btn {
    left: 24px;
    right: 104px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    height: 58px;
    min-height: 58px;
    padding: 0 20px;
    font-size: 20px;
  }

  body.single-tour .tour-chat-widget {
    right: 24px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

/* десктоп мини */
@media (min-width: 900px) {
  body.single-tour {
    padding-bottom: 0;
  }

  .tour-mobile-booking-btn {
    left: 50%;
    right: auto;
    bottom: 32px;

    width: auto;
    min-width: 260px;
    max-width: 380px;
    height: 46px;
    min-height: 46px;
    padding: 0 24px;

    font-size: 16px;

    transform: translateX(-50%) translateY(22px) scale(0.98);
  }

  .tour-mobile-booking-btn.is-visible {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* десктоп макс */
@media (min-width: 1200px) {
  .tour-mobile-booking-btn {
    bottom: 36px;
    min-width: 280px;
    max-width: 400px;
    height: 48px;
    min-height: 48px;
    padding: 0 26px;
    font-size: 16px;
  }
}


/* mobile по умолчанию */
.single-tour .tour-header__media-wrap {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.single-tour .tour-header__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.reply-author { display:flex; align-items:center; gap:8px; }
.reply-badge { 
  font-size:12px; line-height:1; padding:4px 8px; 
  border-radius:999px; background:#eef5ff; color:#1a56db; 
  border:1px solid #d8e7ff;
}
.reply.admin .reply-badge { background:#fff4ea; color:#c45500; border-color:#ffe2c5; }

/* =========================================================
   SINGLE TOUR, HEADER - BREAKPOINTS
========================================================= */
@media (min-width: 600px) {
  .tour-header__media img {
    aspect-ratio: 4 / 3;
  }

  .tour-card__seasons .badge--season{
    font-size: 20px;
  }

  .single-tour .tour-header__media-wrap {
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .tour-header__season-row {
    margin-left: 0;
    margin-right: 0;
  }

  .single-tour .tour-header__media img {
    border-radius: 10px;
  }

}

@media (min-width: 900px) {
  .tour-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 50px;
    align-items: start;
  }

  .single-tour .tour-header__media-wrap {
  grid-column: 1;
  }

  .tour-header__info {
    grid-column: 2;
  }

  .tour-header__title {
    font-size: 38px;
    margin: 0 0 30px;
  }

  .tour-header__days{
    font-size: 20px;
  }

  .tour-single__next-label{
    font-size: 20px;
  }

  .tour-single__next-date{
    font-size: 20px;
  }

  .tour-single__next-more{
    height: 24px;
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .tour-header {
    gap: 10px 100px;
  }

  .tour-header__price {
    font-size: 34px;
    color: #000;
    font-weight: 500;
  }

  .tour-header__price-prefix {
    font-weight: 400;
    font-size: 18px;
    margin-right: 0.25em;
    color: #333;
  }

  .tour-header__title {
    font-size: 40px;
    margin: 0 0 20px;
  }
}


/* =========================================================
   TOUR QUICKNAV (липкое меню), MOBILE FIRST
========================================================= */
.tour-quicknav{
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  padding: 10px 10px 10px;
  border-bottom: 1px solid #eee;
  background: #fff;
  box-shadow: 0px 2px 2px 0px #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #606060, 0 -1px 0 #ffffff, 0 3px 13px rgb(0 0 0 / 8%);
  border-radius: 20px;
  margin: 20px 0 20px;

  position: sticky;
  top: var(--mobile-sticky-offset, 10px);
  z-index: 50;
}

.tour-quicknav::-webkit-scrollbar{
  display: none;
}

.tour-quicknav .quicknav-link{
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: 14px;
  background: #f5f6f7;
  color: #000;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .15s ease;
}

.tour-quicknav .quicknav-link:hover{
  transform: translateY(-1px);
}

/* =========================================================
   TOUR QUICKNAV - BREAKPOINTS
========================================================= */
@media (min-width: 900px) {

  .tour-quicknav{
  top: 15px;
  }

}


/* =========================================================
   TOUR AUDIO, MOBILE FIRST
========================================================= */

/* mobile (по умолчанию) */
.tour-audio{
  margin: 8px 0;
}

/* Контейнер */
.tour-audio__block{ 
  width: 100%; 
  margin-bottom: 30px;
  padding: 10px 12px;
  border-radius: 12px;
}

.tour-audio__block.season-content{
  padding: 20px 40px;      /* внутренние отступы карточки */
  margin-top: 40px;        /* внешний сверху */
  margin-bottom: 30px;     /* внешний снизу */
}

.tour-audio__intro{
  display: block;
  font-size: 14px;
  line-height: 1.3;
  color: #222;
  margin: 6px 0 10px;
}

.tour-audio__badge{
  display: block;
  margin-bottom: 4px;
  color: #E86B18;
  font-weight: 700;
  font-size: 18px;
}

.tour-audio__text{
  font-size: 14px;
  line-height: 1.3;
  color: #222;
}

/* Плеер */
.ap{
  --ap-accent: #E86B18;
  --ap-bg: #E7EAEE;
  --ap-buffer: rgba(232,107,24,.25);
  --ap-text: #2b2f33;

  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;

  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
}

/* Большая круглая кнопка */
.ap__btn{
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ap-accent);
  cursor: pointer;
  margin-right: 10px;
}

.ap__btn:focus-visible{
  outline: 2px solid var(--ap-accent);
  outline-offset: 2px;
}

/* Иконка play */
.ap__btn::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%,-50%);
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Иконка pause */
.ap__btn.is-playing::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 22px;
  height: 22px;
  border: 0;
  background:
    linear-gradient(#fff,#fff) left 2px top 0 / 7px 100% no-repeat,
    linear-gradient(#fff,#fff) right 2px top 0 / 7px 100% no-repeat;
}

/* Полоса прогресса */
.ap__bar{
  position: relative;
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: var(--ap-bg);
  cursor: pointer;
}

.ap__buffer,
.ap__progress{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
}

.ap__buffer{
  width: 0%;
  background: var(--ap-buffer);
}

.ap__progress{
  width: 0%;
  background: var(--ap-accent);
}

/* Ползунок */
.ap__handle{
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%,-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--ap-accent);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.ap__handle:active{
  cursor: grabbing;
}

/* Время */
.ap__time{
  flex: 0 0 auto;
  min-width: 72px;
  font-size: 12px;
  color: var(--ap-text);
  text-align: right;
}

.ap__sep{
  opacity: .6;
}

/* =========================================================
   TOUR AUDIO - BREAKPOINTS
========================================================= */
@media (min-width: 600px) {
    .tour-audio{
    margin: 0;
  }

  .tour-audio__block{
    padding: 0;
    border-radius: 0;
  }

  .tour-audio__intro{
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 16px;
    line-height: 1.4;
    margin: 6px 0 12px;
  }

  .tour-audio__badge{
    display: inline;
    margin-bottom: 0;
  }

  .tour-audio__text{
    font-size: 16px;
    line-height: 1.4;
  }

  .ap{
    gap: 14px;
    padding: 12px 14px;
  }

  .ap__btn{
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin-right: 0;
  }

  .ap__bar{
    height: 10px;
  }

  .ap__time{
    min-width: 90px;
    font-size: 14px;
  }

}


/* =========================================================
   SEASON CARD TITLES (h2), MOBILE FIRST
========================================================= */
.season-content h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 500;
  color: #111;
}

@media (min-width: 900px) {

    .season-content h2 {
    font-size: 30px;
  }

}


/* =========================================================
   OPISANIE + MARSHRUT, MOBILE FIRST
========================================================= */
/* Базовая раскладка */
.opisanie-marshrut{
  --om-collapsed-height: 8.2em;
}

.opisanie-marshrut-columns{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opisanie-marshrut .opisanie p,
.opisanie-marshrut .marshrut p{
  margin-bottom: 20px;
}

/* Мобильный заголовок секции */
.opisanie-marshrut-mobile-title{
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 500;
  color: #111;
}

/* На мобилке прячем внутренние h2, чтобы не было дубля */
.opisanie-marshrut .opisanie > h2{
  display: none;
}

/* Тело блока */
.opisanie-marshrut-body{
  position: relative;
}

/* Градиент для “обрезки” на мобилке */
.opisanie-marshrut-fade{
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

/* Кнопка “показать полностью” */
.opisanie-marshrut-toggle{
  display: none;
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.opisanie-marshrut-toggle:hover{
  border-color: #d6d6d6;
}

/* Свернутый режим (включает JS, если текста много) */
.opisanie-marshrut .js-om-body.is-collapsed .opisanie{
  max-height: var(--om-collapsed-height);
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.opisanie-marshrut .js-om-body.is-collapsed .marshrut{
  display: none;
}

.opisanie-marshrut .js-om-body.is-collapsed .opisanie-marshrut-fade{
  display: block;
}

.opisanie-marshrut .js-om-body.is-collapsed ~ .opisanie-marshrut-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Развернутый режим */
.opisanie-marshrut .js-om-body.is-expanded .marshrut{
  display: block;
}

.opisanie-marshrut .js-om-body.is-expanded ~ .opisanie-marshrut-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   OPISANIE + MARSHRUT - BREAKPOINTS
========================================================= */
@media (min-width: 600px) {
    .opisanie-marshrut{
    --om-collapsed-height: 9.5em;
  }

  .opisanie-marshrut-toggle{
    font-size: 15px;
    padding: 10px 16px;
  }


}

@media (min-width: 900px) {
    /* Две колонки */
  .opisanie-marshrut-columns{
    flex-direction: row;
    justify-content: space-between;
    gap: 100px;
  }

  .opisanie-marshrut-columns > div{
    flex: 1;
    min-width: 0;
  }

  /* На десктопе показываем нормальные заголовки внутри колонок */
  .opisanie-marshrut-mobile-title{
    display: none;
  }

  .opisanie-marshrut .opisanie > h2{
    display: block;
  }

  /* На десктопе ничего не сворачиваем */
  .opisanie-marshrut .js-om-body.is-collapsed .opisanie,
  .opisanie-marshrut .js-om-body.is-expanded .opisanie{
    max-height: none;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .opisanie-marshrut .js-om-body.is-collapsed .marshrut,
  .opisanie-marshrut .js-om-body.is-expanded .marshrut{
    display: block;
  }

  .opisanie-marshrut .js-om-body.is-collapsed .opisanie-marshrut-fade,
  .opisanie-marshrut .js-om-body.is-expanded .opisanie-marshrut-fade{
    display: none;
  }

  .opisanie-marshrut .js-om-body.is-collapsed ~ .opisanie-marshrut-toggle,
  .opisanie-marshrut .js-om-body.is-expanded ~ .opisanie-marshrut-toggle{
    display: none;
  }
}


/* =========================================================
   SEASON (Лето/Зима): скрываем неактивный сезон, MOBILE FIRST
========================================================= */

/* Скрываем все сезонные блоки по умолчанию */
.season-content{
  display: none;
}

/* ВАЖНО: галерея имеет классы и season-gallery, и tour-gallery */
.season-gallery.tour-gallery{
  display: none;
}

/* JS включен (класс .js-enabled на <html>), показываем активный */
.js-enabled .season-content.is-visible{
  display: block;
}
.js-enabled .season-gallery.tour-gallery.is-visible{
  display: grid;
}

/* =========================================================
   TOUR GALLERY (под описанием), MOBILE FIRST
   Брейкпоинты: 600 / 900 / 1200
========================================================= */

/* опционально: скрыть placeholder PhotoSwipe */
.pswp__img--placeholder{
  display: none !important;
}

/* =========================================================
   Галерея, mobile (по умолчанию)
========================================================= */

.tour-gallery{
  display: grid;

  /* ВАЖНО: minmax(0, ...) чтобы контент (вертикальные фото) не раздувал колонку */
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, auto);

  gap: 10px;
  align-items: stretch;

  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tour-gallery .gallery-item{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  display: block;

  /* ВАЖНО для grid: иначе элемент может тянуть колонку шире экрана */
  min-width: 0;
}

/* Базовая картинка */
.tour-gallery .gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FIX: если в галерее есть минимум 3 фото,
   1-я (большая слева) не должна раздувать высоту grid-рядов.
   Иначе правые элементы перестают быть квадратами на мобилке. */
.tour-gallery .gallery-item:nth-child(1):nth-last-child(n+3) > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   FIX: правые элементы всегда квадратные на мобилке
   (не зависит от aspect-ratio и глобальных img-стилей)
========================================================= */

.tour-gallery .gallery-item:nth-child(2),
.tour-gallery .gallery-item:nth-child(3),
.tour-gallery .gallery-item.gallery-more{
  position: relative;
}

/* создаём квадрат высотой = ширине */
.tour-gallery .gallery-item:nth-child(2)::before,
.tour-gallery .gallery-item:nth-child(3)::before,
.tour-gallery .gallery-item.gallery-more::before{
  content: "";
  display: block;
  padding-top: 100%;
}

/* картинку растягиваем на весь квадрат */
.tour-gallery .gallery-item:nth-child(2) > img,
.tour-gallery .gallery-item:nth-child(3) > img,
.tour-gallery .gallery-item.gallery-more > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   Логика показа элементов на мобилке
========================================================= */

/* Скрываем всё после 6-го (на мобиле всё равно показываем 1-3 и +N) */
.tour-gallery .gallery-item:nth-child(n+7){
  display: none;
}

/* Большая картинка слева */
.tour-gallery .gallery-item:nth-child(1){
  grid-column: 1;
  grid-row: 1 / span 2;
}

/* Показываем только первые 2 фото и +N (gallery-more) */
.tour-gallery .gallery-item:nth-child(1),
.tour-gallery .gallery-item:nth-child(2),
.tour-gallery .gallery-item:nth-child(3),
.tour-gallery .gallery-item.gallery-more:nth-child(4){
  display: block;
}

/* Сначала скрыть всё начиная с 4-й */
.tour-gallery .gallery-item:nth-child(n+4){
  display: none;
}

/* Но показать gallery-more, где бы он ни был */
.tour-gallery .gallery-item.gallery-more{
  display: block;

  grid-column: 2;
  grid-row: 2;
}

/* Маленькие справа */
.tour-gallery .gallery-item:nth-child(2){
  grid-column: 2;
  grid-row: 1;
}

.tour-gallery .gallery-item:nth-child(3){
  grid-column: 2;
  grid-row: 2;
}

/* Если gallery-more оказался 3-м, держим его на правом нижнем */
.tour-gallery .gallery-item.gallery-more:nth-child(3){
  grid-column: 2;
  grid-row: 2;
}

/* +N */
.gallery-more-label{
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.5);
  color: #fff;

  font-size: 18px;
  font-weight: 500;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  border-radius: 12px;
  z-index: 1;
}

/* Скрытие лишних фото в галерее Зима/Лето (видно только в слайдере) */
.gallery-item--hidden{
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;

  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;

  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

/* =========================================================
   TOUR GALLERY - BREAKPOINTS
========================================================= */

@media (min-width: 1200px){

  .tour-gallery{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 14px;
  }

  /* вернуть показ элементов, которые скрывали на мобилке */
  .tour-gallery .gallery-item:nth-child(n+4){
    display: block;
  }

  .tour-gallery .gallery-item:nth-child(n+7){
    display: block;
  }

  /* Первые 2 фото, по 2 колонки */
  .tour-gallery .gallery-item:nth-child(1){
    grid-column: 1 / span 2;
    grid-row: auto;
    aspect-ratio: 2 / 1.3;
  }

  .tour-gallery .gallery-item:nth-child(2){
    grid-column: 3 / span 2;
    grid-row: auto;
    aspect-ratio: 2 / 1.3;
  }

  /* Маленькие снизу, по 1 колонке */
  .tour-gallery .gallery-item:nth-child(3),
  .tour-gallery .gallery-item:nth-child(4),
  .tour-gallery .gallery-item:nth-child(5),
  .tour-gallery .gallery-item:nth-child(6){
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 1.4 / 1;
  }

  /* на широком экране не фиксируем gallery-more в правый низ */
  .tour-gallery .gallery-item.gallery-more{
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1.4 / 1;
  }

  /* DESKTOP: отключаем квадратный фикс (у ПК свои пропорции) */
  .tour-gallery .gallery-item:nth-child(2)::before,
  .tour-gallery .gallery-item:nth-child(3)::before,
  .tour-gallery .gallery-item.gallery-more::before{
    display: none;
  }

  .tour-gallery .gallery-item:nth-child(2) > img,
  .tour-gallery .gallery-item:nth-child(3) > img,
  .tour-gallery .gallery-item.gallery-more > img{
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* =========================================================
   PROGRAM (Программа тура), MOBILE FIRST
   Собрано в одном месте (заголовок, дни, блоки, фото, видео)
========================================================= */

/* Аккордеон программы тура */
.program-accordion{
  margin-top: 1.5em;
}

.program-accordion .accordion-item{
  width: auto;
}

.program-accordion .accordion-header{
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  text-align: left;
  padding: 15px 15px;
  padding-right: 2.5em;

  font-weight: 600;
  font-size: 18px;

  cursor: pointer;
  border: 1px solid #ddd;
  background: #ffffff;
  margin-bottom: 15px;

  word-break: break-word;
  position: relative;

  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.program-accordion .accordion-header::after{
  content: '+';
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25em;
  line-height: 1;
}

.program-accordion .accordion-header.is-open::after{
  content: '−';
}

.program-accordion .accordion-header.is-open{
  background: #e9e9e9;
}

.program-accordion .accordion-body{
  display: none;
  padding: 0.75em 1em;
  border: 1px solid #ddd;
  border-top: none;
  margin-bottom: 0.75em;
}

/* Ограничиваем ширину вложенного контента в аккордеоне */
.program-accordion .accordion-body img,
.program-accordion .accordion-body .wp-caption{
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

/* Скрыть все блоки программы по умолчанию */
.season-program{
  display: none;
}

/* Показывать активный, когда JS включён и стоит класс is-visible */
.js-enabled .season-program.is-visible{
  display: block;
}

/* Заголовок раздела «Программа тура» */
.tour-program-title{
  font-size: 32px;
  font-weight: 500;
  color: black;
  margin: 60px 0 20px;
  line-height: 1.2;
}

.tour-program-mobile-controls{
  display: none;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin: -8px 0 16px;
  text-align: right;
}

.tour-program-toggle-all{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  cursor: pointer;
  text-align: right;
  text-decoration: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.2s ease;
}

.tour-program-toggle-all:hover,
.tour-program-toggle-all:focus-visible{
  color: var(--color-primary);
  background: transparent;
  box-shadow: none;
  outline: none;
}

.tour-program-toggle-all:active{
  color: var(--color-primary);
  background: transparent;
}

.tour-program-toggle-all[hidden]{
  display: none;
}

@media (min-width: 600px){
  .tour-program-mobile-controls{
    margin: -8px 0 18px;
  }
}

@media (min-width: 900px){
  .tour-program-mobile-controls{
    display: flex;
  }

  .tour-program-toggle-all{
    font-size: 18px;
    margin-right: 20px;
  }
}

@media (min-width: 1200px){
  .tour-program-toggle-all{
    font-size: 18px;
  }
}

/* Контейнер программы дня */
.day-block{
  margin-bottom: 40px;
}

/* Заголовок дня */
.day-block__title{
  border-bottom: 2px solid rgba(0,0,0,0.1);
  margin-bottom: 30px;
  font-size: 40px;
  font-weight: 400;
  padding-bottom: 10px;
  color: #949494;
  grid-column: 1 / -1;
}

/* Время блока */
.program-block__time{
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 15px 0 0;
}

/* Общий блок программы */
.program-block{
  padding-bottom: 20px;
  margin-bottom: 20px;
}

/* Заголовки в части программы */
.program-block__title{
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.4;
}

/* Текст в части программы */
.program-block__desc p{
  font-size: 16px;
  color: black;
  margin-bottom: 1.2em;
}

/* Галерея */
.program-block__gallery{
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0 0;
}

.program-block__gallery img,
.program-slider{
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}

/* Swiper внутри программы */
.program-slider,
.program-slider .swiper-wrapper,
.program-slider .swiper-slide{
  width: 100%;
  height: 100%;
}

/* Виджеты внутри программы (Отправление и т.п.) */
.widget--otpravleniya{
  background-color: #ffffff;
  padding: 20px;
  border-radius: 20px;
  border: 2px solid rgba(0, 0, 0, 0.16);
}

.widget--otpravleniya li a{
  font-family: var(--font-main);
  font-size: 18px;
}

.widget--otpravleniya__title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  position: relative;
}

.widget--otpravleniya__title svg{
  width: 40px;
  height: 40px;
  margin-right: 8px;
  vertical-align: middle;
}

.widget--otpravleniya__text{
  margin-left: calc(24px + 30px);
}

/* Видео внутри блока программы (oEmbed/shortcode) */
.video-wrapper,
.program-block__video{
  border-radius: 12px;
}

/* ===== Видео тура: шапка, бейдж, контейнер ===== */

/* Контейнер заголовка и подзаголовка */
.season-video-header{
  max-width: 1000px;
  margin: 40px auto 16px;
  text-align: center;

  /* mobile padding по умолчанию */
  padding: 0 16px;
}

/* Заголовок служит якорем для бейджа */
.season-video-title{
  position: relative;
  display: inline-block;
  font-size: clamp(44px, 9vw, 132px);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0 0 40px;
}

/* Бейдж на мобиле: в потоке */
.season-video-badge{
  position: static;
  display: inline-block;
  margin-left: 8px;
  transform: rotate(-6deg);
  pointer-events: none;
}

.season-video-badge__text{
  display: inline-block;
  background: #f6d05f;
  color: #222;
  font-weight: 700;
  font-size: clamp(12px, 2.2vw, 18px);
  padding: 8px 14px;
  border-radius: 14px;
  white-space: nowrap;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.08));
}

/* Подзаголовок */
.season-video-subtitle{
  margin: 0 0 18px;
  font-size: clamp(14px, 2.2vw, 20px);
  line-height: 1.5;
  color: #2b2b2b;
  opacity: .9;
  text-align: center;
}

/* Контейнер видео */
.season-video{
  max-width: 1000px;
  margin: 16px auto 40px;

  /* mobile padding по умолчанию */
  padding: 0 16px;
}

/* Видео и iframe адаптивно, 16:9 */
.season-video iframe,
.season-video video{
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

/* =========================
   @media (min-width: 600px)
========================= */
@media (min-width: 600px){
  /* Бейдж прижимаем к правому краю заголовка (как было после 640px) */
  .season-video-badge{
    position: absolute;
    right: 0;
    bottom: clamp(-14px, -1.2vw, -6px);
    transform: rotate(-8deg);
    display: block;
    margin-left: 0;
  }
}

/* =========================
   @media (min-width: 900px)
========================= */
@media (min-width: 900px){
  .program-block{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
  }

  .program-block__gallery{
    overflow: hidden;
  }

  .program-block__gallery .swiper-slide{
    width: 100% !important;
  }
}

/* =========================
   @media (min-width: 1200px)
========================= */
@media (min-width: 1200px){
  .program-block{
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
    margin-bottom: 60px;
  }

  .program-block__title{
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 15px;
    line-height: 1.4;
  }

  .tour-program-title{
    font-size: 70px;
    font-weight: 500;
    color: black;
    margin: 80px 0 60px;
    line-height: 1.2;
  }

  .program-block__desc p{
    font-size: 17px;
    color: black;
    margin-bottom: 1.2em;
  }

  .program-block__gallery{
    max-width: 100%;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    margin: 0;
  }

  .program-block__gallery img{
    display: block;
    max-width: 100%;
  }

  /* На больших экранах можно без внутренних отступов */
  .season-video,
  .season-video-header{
    padding: 0;
  }
}

/* =========================================================
   PROGRAM DAY CARDS (дни программы), MOBILE FIRST
   Вставить ПЕРЕД блоком PROGRAM INCLUSIONS
========================================================= */

/* mobile: дни во всю ширину экрана */
.program-day-card{
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.program-day-card__summary{
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  border-top: 1px solid rgb(0 0 0 / 11%);
  border-bottom: 1px solid rgb(0 0 0 / 11%);
  transition: background-color 0.2s ease;
}

.program-day-card__summary::-webkit-details-marker{
  display: none;
}

.program-day-card__summary:focus{
  outline: none;
}

.program-day-card__summary:focus-visible{
  outline: 2px solid rgba(var(--color-primary-rgb, 232, 107, 24), 0.55);
  outline-offset: -2px;
}

.program-day-card__label{
  display: block;
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
  color: #111;
}

.program-day-card__summary::after{
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23878787' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 15 12 9 18 15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  transform: rotate(180deg);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.program-day-card[open] > .program-day-card__summary::after{
  transform: rotate(0deg);
}

.program-day-card:not([open]) > .program-day-card__summary:hover{
  background-color: rgb(232 107 24 / 12%);
}

.program-day-card:not([open]) > .program-day-card__summary:hover::after{
  background-color: rgba(232, 107, 24, 0.10);
  border-color: rgba(232, 107, 24, 0.22);
}

.program-day-card__summary:hover::after{
  background-color: rgba(0, 0, 0, 0.03);
}

/* mobile: открытая вкладка без лишнего верхнего отступа */
.program-day-card[open] > .program-day-card__summary{
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 0;
}

.program-day-card[open] > .program-day-card__summary .program-day-card__label{
  transform: none;
}

.program-day-card__content{
  padding: 0 20px 24px;
  background: #fff;
}

.program-day-card__content .program-block:last-child{
  margin-bottom: 0;
  padding-bottom: 0;
}

.program-day-card--single .program-day-card__summary{
  display: none;
}

.program-day-card--single{
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.program-day-card--single .program-day-card__content{
  padding: 24px 20px;
  background: #fff;
}

/* планшеты и выше: возвращаем карточки как были */
@media (min-width: 600px){
  .program-day-card{
    position: static;
    left: auto;
    right: auto;
    width: auto;
    margin: 0 0 18px;
    border: 1px solid rgb(0 0 0 / 11%);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
  }

  .program-day-card__summary{
    padding: 24px 24px;
    background: #fff;
    border-top: 0;
    border-bottom: 0;
    transition:
      padding 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.2s ease;
  }

  .program-day-card__label{
    font-size: 30px;
    transform: translateY(0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .program-day-card__summary::after{
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    background-size: 20px 20px;
  }

  .program-day-card[open] > .program-day-card__summary{
    padding-top: 38px;
    padding-bottom: 20px;
    border-bottom: 0;
  }

  .program-day-card[open] > .program-day-card__summary .program-day-card__label{
    transform: translateY(4px);
  }

  .program-day-card__content{
    padding: 0 24px 24px;
  }

  .program-day-card--single{
    position: static;
    left: auto;
    right: auto;
    width: auto;
    margin: 0 0 18px;
    border: 1px solid rgb(0 0 0 / 11%);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
  }

  .program-day-card--single .program-day-card__content{
    padding: 30px;
  }
}

@media (min-width: 900px){
  .program-day-card{
    margin-bottom: 20px;
    border-radius: 18px;
  }

  .program-day-card__summary{
    padding: 28px 32px;
    transition:
      padding 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      background-color 0.2s ease;
  }

  .program-day-card__label{
    font-size: 30px;
    transform: translateY(0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .program-day-card__summary::after{
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    background-size: 20px 20px;
  }

  .program-day-card[open] > .program-day-card__summary{
    padding-top: 42px;
    padding-bottom: 24px;
  }

  .program-day-card[open] > .program-day-card__summary .program-day-card__label{
    transform: translateY(6px);
  }

  .program-day-card__content{
    padding: 0 32px 32px;
  }

  .program-day-card--single .program-day-card__content{
    padding: 40px;
  }
}

@media (min-width: 1200px){
  .program-day-card__summary{
    padding: 20px 60px;
  }

  .program-day-card__label{
    font-size: 30px;
  }

  .program-day-card__summary::after{
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .program-day-card__content{
    padding: 40px 60px 60px;
  }

  .program-day-card--single .program-day-card__content{
    padding: 60px;
  }
}

/* =========================================================
   PROGRAM INCLUSIONS (что входит / не входит), MOBILE FIRST
========================================================= */

.program-inclusions {
        gap: 100px;
        border-radius: 20px;
        margin-bottom: 60px;
        margin-top: 60px;
    }

.program-inclusions--desktop{
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 120px;
  align-items: start;
}

.program-inclusions--mobile{
  display: block;
}

.program-inclusions__col{
  min-width: 0;
}

.program-inclusions--mobile-heading{
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  color: #111;
}

.program-inclusions__col > h3 {
  font-size: 24px;          /* размер заголовка */
  font-weight: 600;           /* полужирный */
  margin-bottom: 1rem;        /* отступ снизу */
    align-self: center;
}

.program-subtitle {
font-size: 18px;
        font-weight: 600;
        margin: 1rem 0 0.5rem;
        color: #000000;
}

@media (min-width: 600px){
  .program-inclusions--mobile-heading{
    font-size: 32px;
    margin-bottom: 16px;
  }
}

@media (min-width: 900px) {
  .program-inclusions{
    display: grid;
    gap: 80px;
    align-items: start;
  }
  
  .program-inclusions {
  display: block;
  width: 100%;
  background: #fff;
  padding: 40px 60px;
  border-radius: 20px;
  margin-bottom: 80px;
  box-sizing: border-box;
}



  /* На десктопе показываем DESKTOP версию, мобильную прячем */
  .program-inclusions--desktop{
    display: grid;
  }

  .program-inclusions--mobile{
    display: none;
  }

  .program-inclusions--mobile-heading{
    display: none;
  }
}

/* ДЕСКТОП макс 1200 */
@media (min-width: 1200px) {
  /* что входит и не входит */
  .program-inclusions {
    display: block;
    width: 100%;
    background: #fff;
    padding: 40px 60px;
    border-radius: 20px;
    margin-top: 80px;
    margin-bottom: 80px;
    box-sizing: border-box;
  }
  .program-subtitle {
    margin-top: 1rem;   /* настройте по вкусу */
    margin-bottom: 0.5rem;
  }

  /* Стили для заголовков секций «Что входит» и «Что не входит» */
  .program-inclusions__col > h3 {
    font-size: 32px;          /* размер заголовка */
    font-weight: 500;           /* полужирный */
    margin-bottom: 1rem;        /* отступ снизу */
    border-bottom: 2px solid #ddd; /* линия под заголовком */
    padding-bottom: 0.5rem;     /* отступ между текстом и линией */
  }

  /* Стили для подзаголовков внутри секций */
  .program-subtitle {
  font-size: 22px;
          font-weight: 600;
          margin: 1rem 0 0.5rem;
          color: #000000;
  }

  .program-inclusions__title svg {
    vertical-align: middle;
    margin-right: 0.5rem;
  }
}


/* =========================================================
   Табы-капсулы: «Скидки / Акции / Даты выезда»
   Mobile-first: базовые стили = мобила, дальше 600/900/1200
========================================================= */

/* Капсулы (segmented control), MOBILE */
.tour-tabs__nav{
  display: flex;
  align-items: center;
  gap: 20px;

  width: fit-content;
  max-width: 100%;

  padding: 5px;
  background: #dadada;
  border-radius: 9999px;

  margin: 20px auto 18px;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tour-tabs__nav::-webkit-scrollbar{
  display: none;
}

.tour-tab{
  appearance: none;
  border: 0;
  background: transparent;

  color: rgba(29,29,31,.86);
  font-size: 15px;

  padding: 10px 14px;
  border-radius: 9999px;

  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;

  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.tour-tab:hover{
  color: rgba(29,29,31,1);
  transform: translateY(-1px);
}

.tour-tab:focus-visible{
  outline: 2px solid rgba(29,29,31,.45);
  outline-offset: 2px;
}

.tour-tab.is-active,
.tour-tab[aria-selected="true"]{
  background: #1d1d1f;
  color: #fff;
  transform: none;
}


/* Контейнеры контента во вкладках, MOBILE */
.season-content {
  background: #fff;
  padding: 40px 40px;
  font-size: 16px;
  border-radius: 20px;
  margin-bottom: 30px;
}

/* ── Скидки для туристов (чистая версия) ───────────────────────── */
.tour-discounts{
    margin: 60px auto 100px;
    padding: 30px;
    border-radius: 16px;
    background: #ffffff;
    max-width: 800px;
}
.tour-discounts h3{
  margin:0 0 12px;
  font-size: 30px;
  font-weight:600;
}
.tour-discounts__list{
    margin: 0;
    padding: 0 0 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tour-discounts__item{
  display:flex;
  align-items:center;
  gap:12px;
}
.tour-discounts__who{
  white-space:nowrap;
  font-weight:500;
}
.tour-discounts__dots{
  flex:1;
  height:0;                     /* линия рисуется бордером */
  border-bottom:1px dotted rgba(0,0,0,.35);
  margin:0 8px;
  transform:translateY(-.2px);  /* тонкая подправка для ретины */

  /* убираем текст внутри спана с «точками» */
  font-size: 0;          /* текст невидим */
  line-height: 0;
  color: transparent;
  user-select: none;     /* нельзя выделить эти точки */
}
.tour-discounts__amount{
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  font-weight:600;
}

/* ── Заголовки категорий скидок ───────────────────────────── */
.tour-discounts h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: #222;
}


/* ── Скидки: Условия предоставления ───────────────────────────── */
.tour-discounts .tour-discounts-terms{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(0,0,0,.08);
}
.tour-discounts .tour-discounts-terms summary{
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    outline: none;
    justify-content: center;
}
.tour-discounts .tour-discounts-terms summary::-webkit-details-marker{display:none}
.tour-discounts .tour-discounts-terms summary::after{
  content:"";
  width:12px; height:12px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);        /* стрелка вправо-вниз */
  transition:transform .2s ease;
  opacity:.7;
}
.tour-discounts .tour-discounts-terms[open] summary::after{
  transform:rotate(45deg);        /* стрелка вверх */
}
.tour-discounts .tour-discounts-terms__content{
  margin-top:10px;
  color:#333;
  font-size:15px; line-height:1.5;
}
.tour-discounts .tour-discounts-terms__content ol{
  margin:8px 0 0; padding-left:22px;
}
.tour-discounts .tour-discounts-terms__content p{margin:0 0 8px}

/* ПЛАНШЕТЫ 600: капсулы */
@media (min-width: 600px){
  .tour-tabs__nav{
    padding: 6px;
    margin: 30px auto 24px;
  }

  .tour-tab{
    padding: 12px 18px;
    font-size: 20px;
  }
}

/* ДЕСКТОП мини 900: отступы контейнеров и скидки */
@media (min-width: 900px){
  .season-content{
    margin: 40px 0;
  }

  .tour-discounts{
    margin: 60px auto 100px;
    padding: 60px;
  }
}

/* ДЕСКТОП макс 1200: колонки и календарь */
@media (min-width: 1200px){

  /* По умолчанию скрываем сезонные галереи (если они есть) */
  .season-gallery{
    display: none;
  }

  .season-columns{
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
  }

  .season-content{
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .season-columns > div{
    flex: 1;
    min-width: 300px;
  }

  .season-columns h2{
    margin-top: 0;
    font-size: 30px;
  }
}

/* =========================================================
   MAKET 1 + MAKET 2, SAFE SCOPED CSS THROUGH data-maket
   Ничего в PHP не трогаем
========================================================= */

/* =========================================================
   MAKET 1, mobile-first
========================================================= */

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .header-row{
  display: flex;
  gap: 20px;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .header-col-left{
  flex: 1 1 70%;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .header-col-right{
  flex: 1 1 30%;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .header-col-left h2{
  font-size: 50px;
  font-weight: 500;
  margin: 0;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .header-col-left p{
  margin: 8px 0 0;
  font-size: 18px;
  color: #333;
  line-height: 1.3;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .info-button{
  padding: 10px 16px;
  font-size: 16px;
  background: #cccccc;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: #111;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .info-button i{
  font-style: normal;
  font-size: 16px;
  line-height: 1;
}


.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .maket-cen-wrapper{
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 20px;
  margin-top: 40px;
  background: #fff;
  box-shadow: none;
  border: 1px solid #e6e6e6;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-row:first-child{
  border-top: none;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-row{
  margin-bottom: 10px;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-columns{
  display: flex;
  gap: 0;
  position: relative;
  flex-direction: column;
  width: 100%;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-left{
  box-sizing: border-box;
  min-width: 0;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-right{
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .v-line{
  width: 1px;
  background-color: #ccc;
  margin: 0;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-info h3{
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-info .opis{
  font-size: 16px;
  color: #000;
  line-height: 1.5;
  margin: 20px 0 20px;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #777777;
  border-radius: 8px;
  padding: 16px 14px;
  margin-bottom: 12px;
  background: #fff;
  cursor: pointer;
  gap: 10px;
  transition: all .25s ease;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-row:hover{
  border-color: #f26522;
  box-shadow: 0 0 0 2px rgba(242,101,34,.15);
  background: #fff8f5;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-left{
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .v-split{
  width: 1px;
  align-self: stretch;
  background: #ddd;
  border-radius: 1px;
  flex: 0 0 1px;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-select{
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 16px;
  color: #333;
  justify-content: flex-end;
  font-weight: 500;
  flex: 0 0 auto;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-select .circle{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #f26522;
  background: transparent;
  display: inline-block;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-row.selected{
  border: 2px solid #E86B18;
  background: #e86b1912;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-row.selected .price-select .circle{
  background: #f26522;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-row.selected .price-select .label{
  color: #f26522;
  font-weight: 500;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-output{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: 22px;
  font-weight: 500;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-output ins{
  order: 1;
  font-weight: 600;
  color: #f26522;
  text-decoration: none;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-output del{
  order: 2;
  color: #999;
  text-decoration: line-through;
  font-size: 12px;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-label{
  font-size: 16px;
  color: #8b8b8b;
  margin: 0;
  font-weight: 500;
}

/* =========================================================
   MAKET 2, mobile-first
========================================================= */

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-category-help{
  margin: 20px 0 0;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-category-help__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #efefef;
  color: #111;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-category-help__btn:hover{
  background: #e3e3e3;
  border-color: #c9c9c9;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .maket-cen-wrapper{
  width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  padding: 20px;
  margin-top: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid #e6e6e6;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-row{
  padding: 20px 0;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-row:first-child{
  border-top: none;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-info{
  box-sizing: border-box;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-info h3{
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-row .ticket-info .sub-info{
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin: 20px 0;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #777777;
  border-radius: 8px;
  padding: 16px 14px;
  margin-bottom: 12px;
  background: #fff;
  cursor: pointer;
  gap: 10px;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-left{
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .v-split{
  width: 1px;
  align-self: stretch;
  background: #ddd;
  border-radius: 1px;
  flex: 0 0 1px;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-select{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
  font-size: 16px;
  color: #333;
  flex: 0 0 auto;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-select .circle{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #f26522;
  background: transparent;
  display: inline-block;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-row:hover{
  border-color: #f26522;
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.15);
  background: #fff8f5;
  transition: all 0.25s ease;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-row.selected{
  border-color: #f26522;
  box-shadow: 0 0 0 2px rgba(242, 101, 34, 0.15) inset;
  background: #fafafa;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-row.selected .price-select .circle{
  background: #f26522;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-row.selected .price-select .label{
  color: #f26522;
  font-weight: 500;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-output{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: 22px;
  font-weight: 500;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-output ins{
  order: 1;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-output del{
  order: 2;
  color: #999;
  text-decoration: line-through;
  font-size: 14px;
}

.maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-label{
  font-size: 16px;
  color: #000;
  margin: 0;
  font-weight: 400;
}

/* =========================================================
   BREAKPOINTS
========================================================= */

/* mobile (по умолчанию) */
@media (min-width: 600px){
  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-category-help{
    margin-top: 24px;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-category-help__btn{
    min-height: 48px;
    padding: 12px 18px;
    font-size: 18px;
  }
}

@media (min-width: 900px){
  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .header-row{
    gap: 0;
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-columns{
    display: flex;
    gap: 0;
    position: relative;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-left{
    box-sizing: border-box;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .ticket-right{
    width: 30%;
    padding-left: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .maket-cen-wrapper{
    padding: 40px;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-output{
    font-size: 26px;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .price-output del{
    font-size: 18px;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-info{
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-row{
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .maket-cen-wrapper{
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto 0;
    background: #fff;
    box-shadow: none;
    border: 1px solid #e6e6e6;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-info h3{
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 600;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-output{
    font-size: 24px;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-category-help{
    margin-top: 28px;
  }
}

@media (min-width: 1200px){
  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_1"] .header-col-left h2{
    font-size: 60px;
    font-weight: 500;
    margin: 0;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-category-title{
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-category-help__btn{
    font-size: 18px;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-row{
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-info{
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .maket-cen-wrapper{
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto 0;
    background: #fff;
    box-shadow: none;
    border: 1px solid #e6e6e6;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .ticket-info h3{
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 600;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-output{
    font-size: 26px;
  }

  .maket-wrap[data-maket="polya_cen_edinaya_gibkiy_maket_2"] .ticket-layout--maket-2 .price-output del{
    font-size: 18px;
  }
}

/* =========================================================
   HOTEL CATEGORY HINT, MOBILE FIRST
========================================================= */

.ticket-category-help{
  margin: 20px 0 0;
}

.ticket-category-help__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  background: #efefef;
  color: #111;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ticket-category-help__btn:hover{
  background: #e3e3e3;
  border-color: #c9c9c9;
}

.hotel-hint-modal[hidden]{
  display: none;
}

.hotel-hint-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.hotel-hint-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.hotel-hint-modal__dialog{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hotel-hint-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex: 0 0 auto;
}

.hotel-hint-modal__title{
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
  color: #111;
  flex: 1 1 auto;
  min-width: 0;
}

.hotel-hint-modal__close{
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  z-index: 3;
  font-size: 0;
}

.hotel-hint-modal__close::before,
.hotel-hint-modal__close::after{
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  left: 50%;
  top: 50%;
  transform-origin: center;
}

.hotel-hint-modal__close::before{
  transform: translate(-50%, -50%) rotate(45deg);
}

.hotel-hint-modal__close::after{
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hotel-hint-modal__close span{
  display: none;
}

.hotel-hint-modal__content{
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  padding-right: 4px;
}

.hotel-hint-modal__content p{
  margin: 0 0 14px;
}

.hotel-hint-modal__content ul,
.hotel-hint-modal__content ol{
  margin: 0 0 14px 20px;
}

html.hotel-hint-modal-open,
body.hotel-hint-modal-open{
  overflow: hidden;
}

@media (min-width: 600px){
  .ticket-category-help{
    margin-top: 24px;
  }

  .ticket-category-help__btn{
    min-height: 48px;
    padding: 12px 18px;
    font-size: 18px;
  }

  .hotel-hint-modal{
    padding: 24px;
  }

  .hotel-hint-modal__dialog{
    max-width: 760px;
    max-height: calc(100dvh - 48px);
    padding: 28px;
    border-radius: 24px;
  }

  .hotel-hint-modal__header{
    margin-bottom: 20px;
  }

  .hotel-hint-modal__title{
    font-size: 32px;
  }

  .hotel-hint-modal__close{
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
  }

  .hotel-hint-modal__close::before,
  .hotel-hint-modal__close::after{
    width: 22px;
  }

  .hotel-hint-modal__content{
    font-size: 17px;
  }
}

@media (min-width: 900px){
  .ticket-info{
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
  }

  .ticket-row{
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
  }

  .maket-cen-wrapper{
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto 0;
    background: #fff;
    box-shadow: none;
    border: 1px solid #e6e6e6;
  }

  .ticket-info h3{
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 600;
  }

  .price-output{
    font-size: 24px;
  }

  .ticket-category-help{
    margin-top: 28px;
  }

  .hotel-hint-modal{
    padding: 40px;
  }

  .hotel-hint-modal__dialog{
    width: min(760px, calc(100vw - 80px));
    max-height: calc(100dvh - 80px);
    padding: 32px 40px 40px;
  }

  .hotel-hint-modal__title{
    font-size: 36px;
  }
}

@media (min-width: 1200px){
  .ticket-category-title{
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .ticket-category-help__btn{
    font-size: 18px;
  }

  .ticket-row{
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
  }

  .ticket-info{
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
  }

  .maket-cen-wrapper{
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto 0;
    background: #fff;
    box-shadow: none;
    border: 1px solid #e6e6e6;
  }

  .ticket-info h3{
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 600;
  }

  .price-output{
    font-size: 26px;
  }

  .price-output del{
    font-size: 18px;
  }
}

/* =========================================================
   TOUR CALENDAR + BOOKING (календарь, туристы, итог), MOBILE FIRST
========================================================= */

.tour-calendar-title {
  text-align: center;
  font-size: 30px;     /* размер шрифта */
  margin: 2rem 0 1rem;     /* отступ сверху и снизу */
  color: black;          /* цвет текста */
  font-weight: 500;        /* чуть более жирный */
}

    .tour-calendar-podtekst {
        text-align: center;
        font-size: 18px;
        margin: 10px 0 30px;
        color: black;
        font-weight: 400;
    }



.tour-booking-card,
.svodka-blok {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  box-shadow: none;
  border: 1px solid #e6e6e6;
}

.tour-booking-card {
  border-radius: 12px;
  overflow: hidden;
}

.spisok-turistov,
.itogo-blok,
.send-request-wrap {
  width: 100%;
  margin: 0;
  background: transparent;
  box-shadow: none;
}

.spisok-turistov {
  padding: 20px 20px 10px;
}

.itogo-blok {
  padding: 0 20px 20px;
}



.send-request-wrap {
  padding: 0 20px 20px;
}

.svodka-blok {
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.tour-booking-section{
  width: 100%;
  max-width: 800px;
  margin: 40px auto 0;
}

.tour-booking-card-title{
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 500;
  color: #111;
}

.flatpickr-calendar.inline {
  padding: 20px !important;
  margin: 0 -20px 40px;               /* «тянем» влево и вправо на 20px */
  width: calc(100% + 40px);      /* компенсируем эти -20px с обеих сторон */
  max-width: none !important;
}

@media (min-width: 1200px){

.flatpickr-calendar.inline{
    width: 800px;
    max-width: none;
    margin: 0 auto;
    display: block;
    margin-bottom: 60px;
  }

  .tour-calendar-title{
    font-size: 60px;
    margin: 4rem 0 1rem;
  }

  .tour-calendar-podtekst{
    font-size: 20px;
  }

  .tour-booking-section{
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
  }

  .svodka-blok{
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0;
  }

  .tour-booking-card{
    width: 100%;
    margin: 0;
  }

  .tour-booking-card-title{
    margin: 0 0 20px;
  }

  .spisok-turistov{
    padding: 40px 40px 20px;
  }

  .itogo-blok{
    padding: 0 40px 20px;
  }

  .send-request-wrap{
    padding: 0 40px 40px;
  }

  .svodka-blok{
    padding: 40px;
  }
}


/* =========================================================
   FAQ (Частые вопросы), MOBILE FIRST
========================================================= */

/* Контейнер FAQ */
.tour-faq{
  max-width: 800px;
  margin: 80px  auto;          /* по центру */
  padding: 0 16px;            /* небольшие поля по краям */
}

/* Заголовок блока */
.tour-faq h2{
  text-align: center;
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
}

/* Список вопросов — вертикальный с зазором */
.faq-list{
  display: flex;
  flex-direction: column;
  gap: 16px;                  /* расстояние между элементами */
}

/* Карточка вопроса */
.faq-item{
  border: 1px solid #E6E6E6;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;           /* чтобы скругления работали */
}

/* Заголовок-вопрос */
.faq-q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;

  padding: 16px 44px 16px 16px;
  background: #F5F5F5;
  border: 0;
  cursor: pointer;

  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

/* Плюс/минус справа */
.faq-q::after{
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
}

.faq-item.is-open .faq-q::after{
  content: '–';
}

/* Ответ */
.faq-a{
  display: none;               /* открывается JS-классом is-open */
  padding: 16px;
  border-top: 1px solid #EEE;
  font-size: 16px;
  line-height: 1.6;

  /* чтобы длинные слова/ссылки не ломали вёрстку */
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Когда открыт */
.faq-item.is-open .faq-a{
  display: block;
}

/* Базовые отступы у текстов внутри ответа */
.faq-a p{ margin: 0 0 12px; }
.faq-a ul, .faq-a ol{ margin: 0 0 14px 20px; }

@media (min-width: 1200px){
  .tour-faq{
    margin: 120px auto;
  }
}


/* =====================================
   REVIEWS (ОТЗЫВЫ), MOBILE FIRST
   Собрано из кода после отметки
===================================== */

.review-thanks {
  margin: 1em 0;
  padding: 1em;
  background: #e6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 4px; /* при желании */
  color: #2d662f;     /* при желании */
}

/* === Секция отзывов на туре === */
.tour-reviews-section {
  margin: 60px 0;
}

.tour-reviews-section h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 1em;
  text-align: center;
}

.tour-reviews {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Один отзыв */
.review {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fafafa;
}

/* Имя автора */
.review-author {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0.5em;
}

/* Звёзды */
.review-rating {
  color: #FFD707;
  font-size: 20px;
  margin-bottom: 0.5em;
}

/* Текст отзыва */
.review-text {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 1em;
}

/* Фото в отзыве */
.review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tour-reviews .review-text p {
  margin: 0 0 1em; /* 1em — отступ после каждого параграфа */
}

.review-photos img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

/* Ответы администратора */
.review-replies {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #ccc;
}

.reply {
  margin-top: 10px;
  padding: 10px;
  background: #f3f3f3;
  border-radius: 4px;
}

.reply-author {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.reply-date {
  font-weight: normal;
  color: #888;
  margin-left: 8px;
  font-size: 13px;
}

.reply-text {
  font-size: 15px;
  line-height: 1.4;
}

/* === Секция формы отзыва === */
.tour-review-form-section {
  margin: 60px 0;
}

.tour-review-form-section h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 1em;
  text-align: center;
}

/* Форма */
.tour-review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto 60px;
}

.tour-review-form label {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.tour-review-form input[type="text"],
.tour-review-form select,
.tour-review-form textarea,
.tour-review-form input[type="file"] {
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  background: white;
  transition: border-color 0.2s;
}

.tour-review-form input:focus,
.tour-review-form textarea:focus,
.tour-review-form select:focus {
  border-color: #666;
  outline: none;
}

/* Кнопка отправки */
.tour-review-form button[type="submit"] {
  margin-top: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tour-review-form button[type="submit"]:hover {
  background-color: #333;
}

/* Контейнер кнопки */
.add-review-btn-wrapper {
  text-align: center;
  margin: 2em 0;
}

/* Сама кнопка */
#show-review-form-btn {
  display: inline-block;
  background-color: var(--color-primary);      /* основной цвет фона */
  color: #fff;                    /* цвет текста */
  font-size: 1rem;                /* размер шрифта */
  font-weight: 600;
  padding: 0.75em 1.5em;          /* внутренние отступы */
  border: none;
  border-radius: 0.375rem;        /* скругление углов */
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Ховер и фокус */
#show-review-form-btn:hover,
#show-review-form-btn:focus {
  background-color: #e65b50;
  transform: translateY(-1px);
  outline: none;
}

/* Активное нажатие */
#show-review-form-btn:active {
  background-color: #cc5045;
  transform: translateY(0);
}

/* —— Стили для блока выбора звездного рейтинга —— */

.rating-stars input {
  display: none;
}
.rating-stars label {
  font-size: 40px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s ease;
}
.rating-stars label::before {
  content: '★';
}
/* Hover: подсветить все звезды до наведённой */
.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: #f5b301;
}
/* Checked: подсветить все звезды до выбранной */
.rating-stars input:checked + label,
.rating-stars input:checked + label ~ label {
  color: #f5b301;
}

.rating-value-display {
  font-size: 1rem;
  margin-left: 0.5em;
  vertical-align: middle;
  color: #333;
  white-space: nowrap;
}

.rating-stars legend {
  margin-right: auto;
  padding: 0 0.5em;
}


/* регулирует размер шрифта текста */
.upload-label__text {
  font-size: 22px; /* поставьте нужный вам размер */
  line-height: 1;  /* выровняет по высоте относительно иконки */
}


.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 14px 20px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s ease;
}
.upload-label:hover {
  background: #eaeaea;
}


.upload-label svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  margin-right: 0.5em;
  flex: 0 0 auto;
}
/* счётчик справа */
.selected-files-count {
  margin-left: 0.75em;
  font-size: 0.9em;
  color: #555;
}

/* Блок «Рейтинг» выравниваем по левому краю */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0;
    border: none;
    flex-direction: row;
}

/* Сам контейнер со звёздами */
.rating-stars .rating-inputs {
    display: inline-flex;
    order: 1;
    flex-direction: row-reverse;
}

/* Цифровой индикатор */
.rating-stars .rating-value-display {
  order: 2;      /* цифры после звёзд */
  font-weight: 500;
}

/* Отступы между абзацами в тексте ответов */
.tour-reviews-section .reply-text p {
  margin-top: 0;
  margin-bottom: 1em;  /* подберите нужную величину */
  font-size: 16px;
}

.review-hidden {
  display: none;
}

.review-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.review-date {
  color: #aaa;
  font-size: 14px;
  white-space: nowrap;
}

.review-avatar-and-name {
  display: flex;
  align-items: center;
  gap: 12px; /* расстояние между инициалами и именем */
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #333;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

.tour-reviews-section,
.tour-review-form-section {
  max-width: 800px;   /* меняй под нужную фикс-ширину */
  width: 100%;         /* или вместо max-width использовать только width в % */
  margin: 50px auto;     /* центр по горизонтали */
}

.rating-distribution {
  margin: 1em 0;
}
.rating-distribution .dist-row {
  display: flex;
  align-items: center;
  margin: 0.5em 0;
}
.dist-label {
  font-size: 0.9em;
}
.dist-bar {
  flex: 1;
  background: #eee;
  height: 0.8em;
  margin: 0 0.5em;
  position: relative;
  border-radius: 0.4em;
  overflow: hidden;
}
.dist-fill {
  background: #fbbd03;
  height: 100%;
}
.dist-pct {
  width: 3ch;
  text-align: right;
  font-size: 0.9em;
}

.rating-summary-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  background: white;
    padding: 20px;
    border-radius: 20px;
}

/* левая «обзорная» панель */
.rating-overview {
  text-align: center;
  border-right: 1px solid #dde2e6;
  padding-right: 20px;
  margin-right: 20px;
}

.rating-overview .average-rating {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}

.rating-overview .average-stars {
  margin: 8px 0;
  font-size: 20px;
  color: #fbbd08; /* ваш цвет звёзд */
}

.rating-overview .average-text {
  font-size: 14px;
  color: #333;
}

/* правая панель с распределением */
.rating-distribution {
  flex: 1;                /* занимает всё оставшееся место */
}

.rating-distribution .dist-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.rating-distribution .dist-label {
  width: 80px;
  font-size: 14px;
  color: #333;
}

.rating-distribution .dist-bar {
  flex: 1;
  background: #ebebeb;
  height: 22px;
  margin: 0 12px;
  position: relative;
}

.rating-distribution .dist-fill {
  height: 100%;
  background: #fbbd08;
}

.rating-distribution .dist-pct {
  width: 40px;
  text-align: right;
  font-size: 14px;
  color: #333;
}

.review-loading {
  margin: 1em 0;
  color: #666;
  font-style: italic;
}

/* контейнер ответа админа */
.reply.admin {
  display: flex;
  align-items: flex-start;
  margin-top: 1.5em;
}

/* сам кружок-аватарка */
.reply.admin .reply-avatar {
  width: 48px;
  height: 48px;
 background-color: var(--color-primary);     /* серый фон */
  border-radius: 50%;          /* круг */
  position: relative;
  flex-shrink: 0;
  margin-right: 1em;
}


/* тело ответа */
.reply.admin .reply-body {
  flex: 1;
}

/* 1) Убираем пунктирную линию над блоком ответов */
/* Если линия — это border-top у .review-replies, то: */
.review-replies {
  border-top: none !important;
  margin-top: 0; /* или подберите ваше значение */
}


/* 3) Блок со стрелкой */
.reply-arrow {
  top: 8px;                   /* отступ от верхнего края .reply */
  left: 16px;                 /* смещаем влево от левого края .reply */
  width: 50px;                /* размер SVG */
  height: 50px;
}

.review-hidden + .review-replies { display: none; }

/* =========================================================
   AFTER REVIEWS (прочее, вынесено из хвоста)
========================================================= */

/* Только если JS включен — показываем активный */
.js-enabled .season-content.is-visible {
  display: block;
}
.js-enabled .season-gallery.is-visible {
  display: grid; /* или flex/block — как тебе нужно */
}

/* Стрелки в обычных слайдерах (на странице): круг, белый фон, тень */
.program-slider .swiper-button-prev,
.program-slider .swiper-button-next,
.attr-slider .swiper-button-prev,
.attr-slider .swiper-button-next,
.tour-related-section .related-tours-prev,
.tour-related-section .related-tours-next{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  color: #111;            /* цвет иконки стрелки */
  z-index: 3;
}

.program-slider .swiper-button-prev::after,
.program-slider .swiper-button-next::after,
.attr-slider .swiper-button-prev::after,
.attr-slider .swiper-button-next::after,
.tour-related-section .related-tours-prev::after,
.tour-related-section .related-tours-next::after{
  font-size: 18px;        /* размер иконки */
}

/* Положение стрелок относительно слайдера */
.program-slider .swiper-button-prev,
.attr-slider   .swiper-button-prev{ left: 8px; }
.program-slider .swiper-button-next,
.attr-slider   .swiper-button-next{ right: 8px; }

/* Отключённые стрелки — полупрозрачные */
.program-slider .swiper-button-disabled,
.attr-slider   .swiper-button-disabled,
.tour-related-section .swiper-button-disabled{
  opacity: .35;
}

/* Hover-эффект на десктопах */
@media (hover:hover){
  .program-slider .swiper-button-prev:hover,
  .program-slider .swiper-button-next:hover,
  .attr-slider   .swiper-button-prev:hover,
  .attr-slider   .swiper-button-next:hover,
  .tour-related-section .related-tours-prev:hover,
  .tour-related-section .related-tours-next:hover{
    box-shadow: 0 8px 26px rgba(0,0,0,.22);
    transform: translateY(-1px);
  }
}

/* Доступность: фокус-кольцо */
.program-slider .swiper-button-prev:focus-visible,
.program-slider .swiper-button-next:focus-visible,
.attr-slider   .swiper-button-prev:focus-visible,
.attr-slider   .swiper-button-next:focus-visible,
.tour-related-section .related-tours-prev:focus-visible,
.tour-related-section .related-tours-next:focus-visible{
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}


/* ── База модалки ─────────────────────────── */
.attr-modal[hidden]{display:none}
.attr-modal{
  position:fixed; inset:0; z-index:9999;
  display:grid; align-items:center; justify-items:center;
}
.attr-modal__overlay{position:absolute; inset:0; background:rgba(0,0,0,.45)}
.attr-modal__dialog{
  position:relative; width:min(720px,calc(100vw - 32px)); max-width:100%;
  max-height:min(90vh,calc(100dvh - 32px));
  margin:0; background:#fff; border-radius:14px;
  padding:clamp(16px,3.2vw,24px); box-shadow:0 20px 60px rgba(0,0,0,.25);
  overflow:auto; box-sizing:border-box;
}
.attr-modal__close{
  position: absolute;
  top: 12px;
  right: 12px;
font-size: 28px;       /* размер крестика */
  width: 40px;            /* одинаковые ширина/высота */
  height: 40px;
  padding: 0;             /* убираем "пилюлю" от браузера */
  border: 0;
  border-radius: 50%;     /* круг */
  background: #ececec;    /* серый фон по умолчанию */
  color: #111;

  display: inline-flex;   /* центрируем крестик */
  align-items: center;
  justify-content: center;
  line-height: 1;

}
.attr-modal__title{margin:0 32px 12px 0; font-size:22px}

/* ── 4:3 для всех слайдеров (модалка + программа + аттракционы) ── */
.attr-modal-swiper .swiper-slide,
.program-slider .swiper-slide,
.attr-slider .swiper-slide{
  aspect-ratio:4/3; position:relative; overflow:hidden; border-radius:10px;
}
.attr-modal-swiper .swiper-slide img,
.program-slider .swiper-slide img,
.attr-slider .swiper-slide img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center;
}

/* ── Стрелки в модалке ─────────────────────── */
.attr-modal-swiper .swiper-button-prev,
.attr-modal-swiper .swiper-button-next{
  width:64px; height:64px; border-radius:50%;
  background:#fff; box-shadow:0 6px 20px rgba(0,0,0,.18);
  color:#111; transform:scale(.69); transform-origin:center; z-index:5;
}
.attr-modal-swiper .swiper-button-prev::after,
.attr-modal-swiper .swiper-button-next::after{font-size:18px}
.attr-modal-swiper .swiper-button-prev{left:8px}
.attr-modal-swiper .swiper-button-next{right:8px}
@media (hover:hover){
  .attr-modal-swiper .swiper-button-prev:hover,
  .attr-modal-swiper .swiper-button-next:hover{
    box-shadow:0 8px 26px rgba(0,0,0,.22); transform:scale(.69) translateY(-1px);
  }
}
.attr-modal-swiper .swiper-button-prev:focus-visible,
.attr-modal-swiper .swiper-button-next:focus-visible{
  outline:2px solid #1a73e8; outline-offset:2px;
}

/* ── Карточки 4:3 ──────────────────────────── */
.attr-card__image{ position:relative; display:block; width:100%; padding-top:75%; overflow:hidden; }
.attr-card__image img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }


/* ── Кнопка «Подробнее про отель» ───────────── */
.hotel-modal-more-btn{
  display:block; width:100%; text-align:center; margin-top:12px;
  padding:12px 16px; background:#1a73e8; color:#fff;
  border-radius:10px; text-decoration:none; font-weight:600;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.hotel-modal-more-btn:hover{filter:brightness(0.95)}
.hotel-modal-more-btn:focus-visible{outline:2px solid #1a73e8; outline-offset:2px}



/* ── Сетка и контент карточек ──────────────── */
.attr-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.attr-card{border:1px solid #eee;border-radius:12px;overflow:hidden;background:#fff;cursor:pointer}
.attr-card__body{padding:12px}
.attr-card__badge{display:inline-block;margin-bottom:6px;font-size:12px;background:#f0f4ff;border:1px solid #dfe6ff;border-radius:6px;padding:2px 6px}
.attr-card__title{margin:4px 0 6px;font-size:18px}
.attr-card__teaser{color:#555;font-size:14px}

/* ── Слайдер в списке достопримечательностей ─ */
.attr-slider .swiper-slide{height:auto}
.attr-slider .attr-card{height:100%}

/* ── Слайдер в модалке: отступы/размер иконок ─ */
.attr-modal-swiper{margin:8px 0 16px}
.attr-modal-prev,.attr-modal-next{--swiper-navigation-size:24px}


.clamp-3{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}


/*ДЕСКТОП мини 900 */
@media (min-width: 900px) and (max-width: 1199px) {
.megamenu-inner {
    display: flex;
    gap: 30px;
    padding: 30px 20px 30px 15px;
}

.megamenu-list {
    flex-wrap: nowrap;
    white-space: normal;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
}

/* ДЕСKTOP макс и выше ==== */



body.js-enabled .season-content.is-visible {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Скрытие лишних фото в галрее Зима Лето (видно только в слайдере */
.gallery-item--hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}



/* Скрываем миниатюрное изображение-плейсхолдер в лайтбоксе */
.pswp__img--placeholder {
  display: none !important;
}


/* Отступ при переходе к якорю */
#booking {
    scroll-margin-top: 100px; /* можно менять под себя */
}



/* Нижнее меню тура скрываем на мобильном и десктопе */
.tour-bottom-btn,
#tourMenuSheet {
  display: none !important;
}

/* Шторка */
.tour-sheet[hidden]{ display:none; }
.tour-sheet{
  position: fixed; inset: 0;
  z-index: 1001;
}
.tour-sheet__overlay{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.25);
  opacity: 0; transition: opacity .2s ease;
}
.tour-sheet__panel{
  position: absolute; left: 0; right: 0;
  bottom: 0;
  max-height: 80vh;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 30px rgba(0,0,0,.12);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  touch-action: none; /* для свайпа */
}
.tour-sheet__title{
  margin: 10px 16px 8px;
  font: 700 18px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.tour-sheet__handle{
  width: 40px; height: 5px; border-radius: 999px;
  background: #cfcfd4;
  margin: 8px auto 6px;
}
.tour-sheet__nav{
  padding: 6px 12px 12px;
  overflow: auto;
}
.tour-sheet__nav a{
  display: block;
  padding: 14px 12px;
  margin: 4px 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
  text-decoration: none;
  color: #111;
  font: 600 16px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Состояние "открыто" */
.tour-sheet.is-open .tour-sheet__panel{ transform: translateY(0); }
.tour-sheet.is-open .tour-sheet__overlay{ opacity: 1; }

/* Блокируем прокрутку контента под шторкой */
html.tour-sheet-open, body.tour-sheet-open{ overscroll-behavior: none; }
body.tour-sheet-open{ overflow: hidden; }

/* Якоря не попадают под фиксированные шапки/кнопки */
:target{ scroll-margin-top: 80px; }


/* ==== PAY NOTE — тултип снизу по умолчанию со стрелкой к иконке ==== */

.pay-note{
  --gap: 10px;
  --shift: 0px;      /* горизонтальная подстройка тултипа у краёв экрана */
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tour-calendar-podtekst.pay-note{
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 10px auto 30px;
}

/* иконка */
.pay-note__icon{
  border: 0;
  background: transparent;
  padding: 6px;
  line-height: 0;
  cursor: help;
  opacity: .85;
  border-radius: 8px;
}
.pay-note__icon:hover,
.pay-note__icon:focus-visible{ opacity: 1; }
.pay-note__icon svg{ width: 28px; height: 28px; stroke-width: 2; }

/* тултип (снизу) */
.pay-note__tooltip{
  position: absolute;
  left: 50%;
  top: calc(100% + var(--gap));
  transform: translateX(calc(-50% + var(--shift)));
  width: min(92vw, 560px);
  background: #111; color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px; line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
  z-index: 50;
}

/* маленькая стрелочка — позиция берётся из --arrow-x */
.pay-note__tooltip::before{
  content:"";
  position:absolute;
  left: var(--arrow-x, 50%);
  top: -8px;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #111;      /* стрелка вверх (тултип снизу) */
}

/* режим «сверху» */
.pay-note--above .pay-note__tooltip{
  top: auto;
  bottom: calc(100% + var(--gap));
}
.pay-note--above .pay-note__tooltip::before{
  top: auto; bottom: -8px;
  border: 8px solid transparent;
  border-top-color: #111;         /* стрелка вниз (тултип сверху) */
}

/* показать */
.pay-note__icon:hover + .pay-note__tooltip,
.pay-note__icon:focus-visible + .pay-note__tooltip,
.pay-note.pay-note--open .pay-note__tooltip{
  opacity: 1; visibility: visible; pointer-events: auto;
}

/* тултип всегда поверх всего */
.pay-note__tooltip{
  z-index: 10000;                 /* выше заголовков/календаря */
  --gap: 12px;                    /* чуть больше зазор от иконки */
}

/* сам «хвостик» не перехватывает клики и не перекрывает ничего */
.pay-note__tooltip::before{
  pointer-events: none;           /* пропускает клики/тапы сквозь треугольник */
}

/* режим «сверху» — тоже с зазором и хвостик вниз */
.pay-note--above .pay-note__tooltip{
  bottom: calc(100% + var(--gap));
}


/* на очень узких экранах — ещё выше/ниже, чтобы не прилипал к краям */
@media (max-width: 480px){
  .pay-note__tooltip{ --gap: 14px; }
}

/* не даём родителям обрезать хвост */
.pay-note,
.pay-note__tooltip{ overflow: visible; }

/* сносим старый бордер-хвост */
.pay-note__tooltip::before{ content: none !important; }

/* новый хвост-«ромб», позиция берётся из --arrow-x */
.pay-note__tooltip::after{
  content:"";
  position:absolute;
  left: var(--arrow-x, 50%);
  width: 14px; height: 14px;
  background:#111;
  border-radius: 2px;              /* чуть сгладить углы */
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  pointer-events: none;            /* не перехватывает клики */
  top: 0;                          /* по умолчанию тултип СНИЗУ, хвост наверху */
  transform: translate(-50%,-50%) rotate(45deg);
  z-index: 1;                      /* над фоном тултипа */
}

/* когда тултип ВЕРХОМ — хвост снизу */
.pay-note--above .pay-note__tooltip::after{
  top: auto; bottom: 0;
  transform: translate(-50%,50%) rotate(45deg);
}

/* на всякий случай держим тултип поверх всего */
.pay-note__tooltip{ z-index: 10000; }

/* ============================
   ДАТЫ В ТУРЕ — ЧИСТАЯ ВЕРСИЯ
   База → мобильные → десктоп
   ============================ */
   
   #tab-dates .tour-dates{
  margin: 60px auto 100px;
  padding: 30px;
  border-radius: 16px;
  background: #ffffff;
  max-width: 800px;
}

#tab-dates .tour-dates h3{
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 600;
}

/* ДЕСКТОП мини 900: отступы контейнеров и скидки */
@media (min-width: 900px){
  .season-content{
    margin: 40px 0;
  }

  .tour-discounts{
    margin: 60px auto 100px;
    padding: 60px;
  }

  #tab-dates .tour-dates{
    margin: 60px auto 100px;
    padding: 60px;
  }
}

/* База (общие отступы/шрифты) */
#tab-dates .tour-dates__year{
  font-size: 28px;
  font-weight: 400;
  margin: 24px 0 8px;
  color: #666;
}

#tab-dates .tour-dates__list{
  margin: 0 0 16px;
}

#tab-dates .tour-dates__list dt{
  display: block;
  margin: 10px 0 4px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

#tab-dates .tour-dates__list dd{
  display: block;
  white-space: normal;
  margin: 0 0 14px;
}

/* ДЕСКТОП мини 900 */
@media (min-width: 900px){
  #tab-dates .tour-dates__list{
    display: grid;
    grid-template-columns: minmax(80px, 80px) 1fr;
    column-gap: 24px;
    row-gap: 10px;
    align-items: baseline;
  }

  #tab-dates .tour-dates__list dt{
    margin: 0;
  }

  #tab-dates .tour-dates__list dd{
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    word-spacing: .2ch;
  }
}

/* =========================================
   БЕЙДЖ «Ближайший выезд» — отдельно
   (ПК в строку, на мобилке метка сверху)
   ========================================= */

.badge--date{
  display: inline-block;
}

.badge--date .badge__label{
  display: block;
  line-height: 1.2;
  margin: 0 0 2px 0;
}

.badge--date .badge__date{
  display: inline;
  font-weight: 600;
}

.badge--date .badge__more{
  display: inline;
  margin-left: .3ch;
}

@media (min-width: 600px){
  .badge--date .badge__label{
    display: inline;
    margin: 0 .3ch 0 0;
  }
}

/* === Кнопка "наверх" — ПК, крупная === */
.scroll-top-btn{
  position: fixed;
left: 20px;
right: auto;
  bottom: 24px;
  z-index: 1200;

  place-items: center;

  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  cursor: pointer;

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.scroll-top-btn.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover{
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}

.scroll-top-btn:focus-visible{
  outline: 2px solid #5b9cff;
  outline-offset: 3px;
}

.scroll-top-btn[hidden]{ display: none !important; }

/* стрелка больше и чуть толще */
.scroll-top-btn svg{
  width: 32px;
  height: 32px;
  stroke-width: 2.6; /* можно 3 для ещё толще */
  display: block;     /* без просветов */
  pointer-events: none;
}

/* уважение к reduce-motion */
@media (prefers-reduced-motion: reduce){
  .scroll-top-btn{ transition: none; }
  html{ scroll-behavior: auto; }
}

.scroll-top-btn{
  display: none;
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine){
  .scroll-top-btn{
    display: grid;
  }
}



/* Линия с кнопками Лето и Зима и ссылкой Про сезоны */

/* =======================================
   Рейтинг в шапке одиночного тура
   ======================================= */


/* Похожие туры под отзывами */
.tour-related-section {
  margin: 80px 0;
}

.tour-related-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 24px;
  text-align: center;
}

.tour-related-slider-wrap {
  position: relative;
}

.tour-related-section .tours-slider {
  position: relative;
  padding: 10px 10px 40px;
}

.tour-related-section .related-tours-prev {
  left: 8px;
}

.tour-related-section .related-tours-next {
  right: 8px;
}

.tour-related-section .related-tours-pagination {
  display: none;
  position: static;
  margin-top: 16px;
  line-height: 1;
}

@media (min-width: 1024px) {
  .tour-related-section .related-tours-prev {
    left: -26px;
  }

  .tour-related-section .related-tours-next {
    right: -26px;
  }
}

@media (min-width: 1200px) {
  .tour-related-section .related-tours-prev {
    left: -58px;
  }

  .tour-related-section .related-tours-next {
    right: -58px;
  }
}

@media (max-width: 767px) {
  .tour-related-section .related-tours-prev,
  .tour-related-section .related-tours-next {
    display: none;
  }

  .tour-related-section .related-tours-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .tour-related-section .related-tours-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 999px;
    background: #cfd5dd;
    opacity: 1;
    transition: width .2s ease, background-color .2s ease;
  }

  .tour-related-section .related-tours-pagination .swiper-pagination-bullet-active {
    width: 24px;
    background: #f26a0a;
  }
}

.tour-related-section .swiper-wrapper {
  align-items: stretch;
}

.tour-related-section .swiper-slide {
  height: auto;
}

.tour-related-section .swiper-slide .tour-card {
  height: 100%;
}

/* ==============================
   АКЦИИ: компактные карточки
   ============================== */

.tour-akcii {
  margin-top: 10px;
}

.tour-akcii__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 14px;
}

.tour-akcii__media {
  border-radius: 14px;
  overflow: hidden;
  background: #f3f3f3;
  aspect-ratio: 16 / 9;
}

.tour-akcii__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-akcii__body {
  min-width: 0;
}

.tour-akcii__top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.tour-akcii__name {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.tour-akcii__dates {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(232,107,24,0.10);
  color: #7a3306;
  font-size: 13px;
  line-height: 1;
}

.tour-akcii__details {
  margin-top: 6px;
}

.tour-akcii__summary {
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  line-height: 1.2;
  color: #E86B18;
  font-weight: 600;
}

.tour-akcii__summary::-webkit-details-marker {
  display: none;
}

.tour-akcii__summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 6px;
  margin-right: 8px;
  background: rgba(232,107,24,0.12);
  color: #E86B18;
}

.tour-akcii__details[open] .tour-akcii__summary::before {
  content: "−";
}

.tour-akcii__text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #222;
}

.tour-akcii__text p {
  margin: 0 0 10px;
}

.tour-akcii__text p:last-child {
  margin-bottom: 0;
}

@media (min-width: 600px) {
  .tour-akcii__item {
    grid-template-columns: 140px 1fr;
  }

  .tour-akcii__media {
    aspect-ratio: 4 / 3;
  }
}

/* ==============================
   СКИДКА НАД ИТОГО В ФОРМЕ БРОНИ
   ============================== */

.booking-discount-blok {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 4px;
  padding: 0 20px;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.35;
  color: #737373;
  font-weight: 500;
}

.booking-discount-blok strong {
  font-weight: 500;
}

.booking-discount-blok + .itogo-blok {
  margin-top: 0;
}

@media (min-width: 1200px) {
  .booking-discount-blok {
    padding: 0 40px;
  }
}
