@charset "UTF-8";
/*
 * Manas Tour — enhance layer
 * 1) Мобильный адаптив недостающих блоков
 * 2) Визуальные улучшения: hero-градиент, таймлайн программы, карточки
 * Подключается после всех стилей темы и переопределяет их точечно.
 */

/* ============ 0. Глобальные защитные правила ============ */

main img {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: clip;
}

h1, h2, h3 {
  overflow-wrap: break-word;
}

/* ============ 1. Hero страниц туров (фоновая картинка) ============ */

.wallpaper[style*="background-image"] {
  position: relative;
  background-attachment: scroll;
  overflow: hidden;
}

/* затемняющий градиент для читаемости заголовков */
.wallpaper[style*="background-image"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 19, 18, 0.05) 0%, rgba(23, 19, 18, 0.25) 55%, rgba(23, 19, 18, 0.55) 100%);
  pointer-events: none;
}

.wallpaper[style*="background-image"] > .container {
  position: relative;
  z-index: 1;
}

/* лёгкий «выезд» заголовка hero */
@media (prefers-reduced-motion: no-preference) {
  .wallpaper[style*="background-image"] h1,
  .wallpaper[style*="background-image"] p,
  .wallpaper[style*="background-image"] h3 {
    animation: manasHeroIn 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .wallpaper[style*="background-image"] p { animation-delay: 0.15s; }
  .wallpaper[style*="background-image"] h3 { animation-delay: 0.2s; }
}

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

/* ============ 2. Программа тура — вертикальный таймлайн ============ */

.program__timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 64px;
  counter-reset: manas-step;
}

.program__timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #68b456 0%, rgba(104, 180, 86, 0.15) 100%);
  border-radius: 2px;
}

.program__timeline .program__item {
  position: relative;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid rgba(104, 180, 86, 0.22);
  border-radius: 14px;
  padding: 20px 22px 8px;
  box-shadow: 0 8px 20px rgba(23, 19, 18, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  counter-increment: manas-step;
}

.program__timeline .program__item:hover {
  transform: translateY(-3px);
  border-color: rgba(104, 180, 86, 0.5);
  box-shadow: 0 14px 30px rgba(104, 180, 86, 0.18);
}

/* номер шага */
.program__timeline .program__item::before {
  content: counter(manas-step) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -64px;
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #68b456;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 0 0 5px rgba(104, 180, 86, 0.18);
}

.program__timeline .program__item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.program__timeline .program__item p:last-child {
  margin-bottom: 12px !important;
}

@media (max-width: 575.98px) {
  .program__timeline {
    padding-left: 48px;
    gap: 14px;
  }
  .program__timeline::before {
    left: 15px;
  }
  .program__timeline .program__item {
    padding: 16px 16px 6px;
  }
  .program__timeline .program__item::before {
    left: -48px;
    width: 32px;
    height: 32px;
    font-size: 17px;
    top: 14px;
  }
  .program__timeline .program__item h3 {
    font-size: 17px;
  }
}

/* ============ 3. Карточки «Что входит» и цен ============ */

.highlights__item,
.pricing__item {
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.highlights__item:hover,
.pricing__item:hover {
  transform: translateY(-4px);
  border-color: rgba(104, 180, 86, 0.65);
  box-shadow: 0 14px 30px rgba(104, 180, 86, 0.16);
}

.highlights__item h3 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.highlights__item h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #68b456, rgba(104, 180, 86, 0.25));
}

/* ============ 4. Мобильный адаптив ============ */

@media (max-width: 991.98px) {
  /* модалка меню: прокрутка и высота на мобильных */
  .menu-modal .modal-content {
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* модалка бронирования на весь экран без «прыжков» */
  .booking-modal .modal-dialog {
    margin: 0 auto;
    max-width: 100%;
  }
  .booking-modal .modal-content {
    border-radius: 16px !important;
  }

  /* героическая секция главной: видео не должно создавать полос */
  .wallpaper__video {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  /* заголовки не упираются в края */
  main h2 {
    line-height: 1.15;
  }
}

@media (max-width: 767.98px) {
  /* карточки туров на главной (слайдер) — гарантированная высота */
  .directions__slider .direction,
  .directions__wrapper .direction {
    min-height: 420px;
    background-size: cover;
    background-position: center;
  }

  /* сетки контента складываются в одну колонку */
  .highlights__grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* блог-карточки на главной */
  .blog-item {
    min-height: 320px;
  }

  /* отступы секций скромнее */
  .about__content p {
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 575.98px) {
  /* контейнеры с воздухом по краям */
  main .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* подвал: колонки в столбик, без сжатия */
  .footer nav .d-flex.mb-64 {
    flex-wrap: wrap;
    gap: 28px;
  }
  .footer nav .me-48 {
    margin-right: 0 !important;
  }
  .footer__social {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  /* формы бронирования: элементы на всю ширину */
  .wallpaper__booking .dropdown.custom-select,
  .wallpaper__booking .btn-booking,
  .menu-modal__booking .dropdown.custom-select,
  .menu-modal__booking .date-picker-wrapper,
  .menu-modal__booking .btn-booking {
    width: 100%;
  }
  .wallpaper__booking {
    gap: 10px;
  }

  /* цены/галереи уже адаптированы в page-kyrgyzstan-tour.css;
     подстраховка для прочих страниц */
  .pricing__content {
    grid-template-columns: 1fr !important;
  }
  .content-gallery__grid {
    column-count: 1 !important;
  }

  /* хедер-кнопки не слипаются */
  .header__button {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ============ 5. Отзывы TripAdvisor на главной ============ */

/* сетка вместо float-колонок плагина */
.reviews [class*="wptripadvisor_t1_outer_div"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
}

.reviews [class*="wptripadvisor_t1_outer_div"]::before,
.reviews [class*="wptripadvisor_t1_outer_div"]::after {
  display: none;
}

.reviews .wptripadvisor_t1_DIV_1 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(104, 180, 86, 0.2);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(23, 19, 18, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.reviews .wptripadvisor_t1_DIV_1:hover {
  transform: translateY(-4px);
  border-color: rgba(104, 180, 86, 0.5);
  box-shadow: 0 16px 34px rgba(104, 180, 86, 0.16);
}

/* «пузырь» превращаем в обычное тело карточки */
.reviews .wptripadvisor_t1_DIV_2 {
  position: relative;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 22px 22px 8px !important;
  flex: 1;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #171312;
}

/* убираем устаревшие кавычку-вензель и хвостик пузыря */
.reviews .wptripadvisor_t1_DIV_2::before,
.reviews .wptripadvisor_t1_DIV_2::after {
  display: none !important;
  content: none !important;
}

/* текст отзыва: аккуратная обрезка без гигантских пустых карточек */
.reviews .wptripadvisor_t1_P_3 {
  position: relative;
  margin: 0 0 12px !important;
  color: rgba(23, 19, 18, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* звёзды — отдельной строкой над текстом */
.reviews [class*="wptripadvisor_star_imgs_T"] {
  display: block;
  margin-bottom: 10px;
}

.reviews .wptripadvisor_t1_star_img_file {
  height: 18px;
  width: auto;
}

/* заголовок отзыва, если есть */
.reviews .wptripadvisor_t1_DIV_2 strong,
.reviews .wptripadvisor_t1_DIV_2 b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #171312;
}

/* ссылка «читать далее» — в потоке текста, без absolute-хаков */
.reviews .wprs_rd_more {
  display: inline !important;
  position: static !important;
  color: #68b456 !important;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}

.reviews .wprs_rd_more:hover {
  color: #171312 !important;
}

/* логотип TripAdvisor — маленький, в углу тела карточки */
.reviews .wptripadvisor_t1_tripadvisor_logo {
  height: 24px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.reviews .wptripadvisor_t1_tripadvisor_logo:hover {
  opacity: 1;
}

/* футер карточки: аватар + имя + дата */
.reviews .wptripadvisor_t1_A_8 {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 18px 22px;
  vertical-align: middle;
}

.reviews .wptripadvisor_t1_IMG_4 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(104, 180, 86, 0.55);
  box-shadow: 0 0 0 3px rgba(104, 180, 86, 0.12);
}

.reviews .wptripadvisor_t1_SPAN_5 {
  display: inline-block;
  vertical-align: middle;
  margin: 4px 22px 18px 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: #171312 !important;
}

.reviews [class*="wprev_showdate_T"] {
  font-weight: 500;
  font-size: 12px;
  color: rgba(23, 19, 18, 0.5);
}

@media (max-width: 991.98px) {
  .reviews [class*="wptripadvisor_t1_outer_div"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 575.98px) {
  .reviews [class*="wptripadvisor_t1_outer_div"] {
    grid-template-columns: 1fr;
  }
  .reviews .wptripadvisor_t1_P_3 {
    -webkit-line-clamp: 6;
  }
}


/* альтернативная ссылка «..More» и раскрытый текст */
.reviews .ta_morelink {
  color: #68b456;
  font-weight: 600;
  text-decoration: underline;
}

.reviews .wprs_rd_more_text {
  display: inline;
}

/* ============ 6. Общесайтовый визуальный слой ============ */

/* фирменное выделение текста и скроллбар */
::selection {
  background: #68b456;
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f4eee3;
}

::-webkit-scrollbar-thumb {
  background: rgba(104, 180, 86, 0.55);
  border-radius: 8px;
  border: 2px solid #f4eee3;
}

::-webkit-scrollbar-thumb:hover {
  background: #68b456;
}

/* тонкая топографическая текстура фона — «карта гор» */
body {
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560' viewBox='0 0 560 560'%3E%3Cg fill='none' stroke='%2368b456' stroke-opacity='0.045' stroke-width='1.5'%3E%3Cpath d='M0 90 Q140 40 280 90 T560 90'/%3E%3Cpath d='M0 160 Q140 110 280 160 T560 160'/%3E%3Cpath d='M0 300 Q100 250 200 300 T400 300 T560 280'/%3E%3Cpath d='M0 380 Q140 330 280 380 T560 380'/%3E%3Cpath d='M0 470 Q100 430 220 470 T460 470 T560 450'/%3E%3Ccircle cx='280' cy='230' r='34'/%3E%3Ccircle cx='280' cy='230' r='58'/%3E%3Ccircle cx='280' cy='230' r='86'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}

/* кнопки: живой отклик */
.btn-primary {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(104, 180, 86, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* шапка при прокрутке: стекло с блюром (класс вешает JS) */
.header.manas-scrolled {
  background: rgba(244, 238, 227, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(23, 19, 18, 0.08);
}

/* ---- hero главной (видео) ---- */
.wallpaper {
  position: relative;
  overflow: hidden;
}

.wallpaper > .container {
  position: relative;
  z-index: 1;
}

.wallpaper__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* виньетка на видео-hero для читаемости (на турах уже есть своя) */
.wallpaper:not([style*="background-image"])::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 19, 18, 0.12) 0%, rgba(23, 19, 18, 0.05) 45%, rgba(23, 19, 18, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

/* индикатор «листай вниз» (создаёт JS на главной) */
.manas-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.manas-scroll-hint::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 5px;
  height: 9px;
  margin-left: -2.5px;
  border-radius: 3px;
  background: #fff;
  animation: manasWheel 1.8s ease-in-out infinite;
}

@keyframes manasWheel {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 991.98px) {
  .manas-scroll-hint { display: none; }
}

/* ---- карточки туров на главной ---- */
.direction {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.direction::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(23, 19, 18, 0.68) 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.direction > div {
  position: relative;
  z-index: 1;
}

.direction:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(23, 19, 18, 0.22);
}

.direction:hover::after {
  opacity: 1;
}

.direction .direction__button svg {
  transition: transform 0.25s ease;
}

.direction:hover .direction__button svg {
  transform: translateX(6px);
}

/* ---- карточки блога ---- */
.blog-item {
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(23, 19, 18, 0.18);
}

/* ---- изображения-блоки (about, road): мягкая тень + JS-параллакс ---- */
.img-block {
  will-change: background-position;
  box-shadow: 0 16px 40px rgba(23, 19, 18, 0.12);
}

/* акцентная линия над подвалом */
.footer {
  border-top: 4px solid #68b456;
}

/* ============ 7. Плавные появления (класс вешает JS) ============ */

.manas-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.manas-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .manas-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ======== END OF FILE — manas-enhance v1.5.3 — если вы видите эту строку, файл загружен целиком ======== */
