/* ==========================================================================
   Explore.kg — главная страница, визуальное направление v2
   Фотография вместо рамок, editorial-типографика, минимум карточек.
   Токены палитры/шрифтов наследуются из base.css — здесь только дополняем.
   ========================================================================== */

:root {
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --clay-soft: #e3a06a;
}

/* ---- header: прозрачный поверх hero, сплошной при скролле ---- */
body.home-page { padding-top: 0; }
body.home-page > header {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}
body.home-page.header-scrolled > header {
  background: rgba(15,31,27,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

/* ---- generic section rhythm ---- */
.home-section { padding: 56px 0 8px; }
.home-section--minor { padding-top: 40px; }
.home-section__head { margin-bottom: 22px; }
.home-section__eyebrow {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent-hover); font-weight: 700; margin: 0 0 8px;
}
.home-section__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.home-section__row h2 { margin: 0; }
.home-section h2 {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 32px);
  color: var(--color-text); margin: 0; line-height: 1.15;
}
.home-section__all {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--color-accent-hover);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.home-section__all-wrap { margin-top: 18px; }
.listing-category-note { color: var(--color-text-secondary); font-size: 14px; margin-top: 6px; }
.listing-empty-message { color: var(--color-text-secondary); font-size: 15px; padding: 12px 0; }

/* ==========================================================================
   HERO — живое небо на vanta.js (three.js + vanta.clouds), см. home.js:initHeroVanta.
   ========================================================================== */
.hero-v2 {
  position: relative; width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0);
  --hp-sx: 0;   /* scroll parallax, -1..1, пишет home.js */
  --hp-sy: 0;
  --hp-px: 0px; /* pointer parallax (desktop fine pointer only), px, пишет home.js */
  --hp-py: 0px;
  --hp-depth: 6px; /* макс. смещение неба от parallax */
}
@media (min-width: 900px) {
  .hero-v2 { height: 92svh; max-height: 980px; }
}

.hero-v2__vanta {
  position: absolute; inset: -2%; /* небольшой запас на случай parallax-сдвига — без пустых краёв */
  /* статичный фолбэк на время загрузки three.js/vanta и при prefers-reduced-motion —
     тона подобраны под ту же палитру, что задана в JS-конфиге VANTA.CLOUDS */
  background: linear-gradient(180deg, #1e5f7a 0%, #6fa4c4 38%, #e7dcc3 78%, #f3eadc 100%);
  translate: calc(var(--hp-sx) * var(--hp-depth) + var(--hp-px) * .6) calc(var(--hp-sy) * var(--hp-depth) * .6);
}
.hero-v2__vanta canvas { display: block; }

.hero-v2__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,13,10,.55) 0%, rgba(6,13,10,.2) 42%, rgba(6,13,10,0) 68%),
    linear-gradient(180deg, rgba(6,13,10,0) 32%, rgba(6,13,10,.3) 64%, rgba(6,13,10,.66) 100%);
}
.hero-v2__content {
  position: absolute; left: 0; right: 0; bottom: max(34px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.hero-v2__eyebrow {
  font-family: var(--font-sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-soft); font-weight: 700; margin: 0 0 12px;
}
.hero-v2 h1 {
  font-family: var(--font-display); font-weight: 400; color: #fff;
  font-size: clamp(32px, 6vw, 54px); line-height: 1.1; margin: 0 0 14px; max-width: 16ch;
  text-wrap: balance; text-shadow: 0 2px 18px rgba(4,10,8,.3);
}
.hero-v2__sub { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.86); max-width: 46ch; margin: 0 0 22px; text-shadow: 0 1px 12px rgba(4,10,8,.25); }
.hero-v2__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--color-accent); color: #fff; font-family: var(--font-sans); font-weight: 600;
  font-size: 14.5px; padding: 15px 26px; border-radius: 100px; transition: background .2s ease, transform .2s ease;
}
.hero-v2__cta:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.hero-v2__cta:focus-visible {
  outline: none; box-shadow: 0 0 0 4px rgba(255,255,255,.55), 0 0 0 6px var(--color-accent-hover);
}

@media (max-width: 767px) {
  .hero-v2 { --hp-depth: 3px; } /* слабее parallax на мобильном */
}

@media (prefers-reduced-motion: reduce) {
  /* initHeroVanta вообще не запускает WebGL при reduced-motion — здесь только
     гасим CSS-parallax самого контейнера, чтобы статичный градиент-фолбэк не дрожал. */
  .hero-v2__vanta { translate: none !important; }
}

/* ---- region strip (collapsible, native <details>) ---- */
.region-strip { display: block; padding: 18px 20px; border: none; }
.region-strip__summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.region-strip__summary::-webkit-details-marker { display: none; }
.region-strip__summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 10px; }
.region-strip__left { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); }
.region-strip__left > .fa-location-dot { color: var(--color-accent); font-size: 14px; }
.region-strip__name { font-weight: 600; font-size: 15px; color: var(--color-text); }
.region-strip__chev { font-size: 11px; color: var(--color-text-secondary); transition: transform .25s ease; }
.region-strip[open] .region-strip__chev { transform: rotate(180deg); }
.region-strip__right { font-size: 12.5px; color: var(--color-text-secondary); font-family: var(--font-sans); }
.region-strip__panel { padding-top: 16px; max-width: 62ch; }
.region-strip__panel p { margin: 0 0 14px; color: var(--color-text-secondary); font-size: 14.5px; line-height: 1.6; }
.region-strip__facts { display: flex; flex-wrap: wrap; gap: 10px; }
.region-strip__facts span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--color-text); background: var(--color-bg-soft); padding: 8px 13px; border-radius: 999px;
}
.region-strip__facts i { color: var(--color-accent); }

/* ---- quick chips ---- */
.hero-chips {
  display: flex; gap: 9px; overflow-x: auto; padding: 0 20px 26px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
}
.hero-chips::-webkit-scrollbar { display: none; }
.hero-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 100px; background: var(--color-bg-soft);
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--color-text);
  transition: background .2s ease, color .2s ease;
}
.hero-chip i { font-size: 12px; color: var(--color-text-secondary); }
.hero-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.hero-chip:hover, .hero-chip--all {
  background: var(--color-primary-dark); color: #fff;
}
.hero-chip--all:hover { background: var(--color-primary); }
.hero-chip:hover i, .hero-chip--all i { color: var(--clay-soft); }

/* ==========================================================================
   TOURS — horizontal photo carousel
   ========================================================================== */
.tour-rail { width: 100%; }
.tour-rail__track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 20px 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tour-rail__track::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) {
  .tour-rail__track { padding-left: calc((100vw - 1200px) / 2 + 20px); padding-right: calc((100vw - 1200px) / 2 + 20px); }
}
.tour-tile {
  position: relative; display: block; flex: 0 0 74%; max-width: 320px;
  aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; scroll-snap-align: start;
}
@media (min-width: 620px) { .tour-tile { flex-basis: 280px; } }
.tour-tile__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tour-tile:hover .tour-tile__img { transform: scale(1.04); }
.tour-tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(6,13,10,.82) 100%);
}
.tour-tile__tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.22); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 6px 12px; border-radius: 999px;
}
.tour-tile__info { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.tour-tile__title { font-family: var(--font-display); font-size: 19px; font-weight: 400; line-height: 1.2; }
.tour-tile__meta { font-family: var(--font-sans); font-size: 11.5px; color: rgba(255,255,255,.78); }
.tour-tile__price { font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; color: var(--clay-soft); }
.tour-tile__price strong { font-size: 15.5px; }

/* ==========================================================================
   NEWS — editorial (первая с фото, остальные строкой)
   ========================================================================== */
.news-list { display: flex; flex-direction: column; }
.news-feature {
  position: relative; display: block; height: 220px; border-radius: 20px; overflow: hidden; margin-bottom: 6px;
}
.news-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-feature__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.74) 100%); }
.news-feature__info { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.news-feature__badge { display: block; font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--clay-soft); margin-bottom: 6px; }
.news-feature__title { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.25; }
.news-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--color-border); }
.news-row__thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
.news-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-row__tx { display: flex; flex-direction: column; gap: 3px; }
.news-row__title { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--color-text); line-height: 1.35; }
.news-row__meta { font-family: var(--font-sans); font-size: 11.5px; color: var(--color-text-secondary); }

/* ==========================================================================
   SERVICES — compact tiles, no borders
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
@media (min-width: 620px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.svc-tile__ic {
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--color-primary-light);
  font-size: 20px; transition: background .2s ease;
}
.svc-tile:hover .svc-tile__ic { background: var(--color-primary-dark); color: #fff; }
.svc-tile__ic img { width: 100%; height: 100%; object-fit: cover; }
.svc-tile__label { font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; color: var(--color-text-secondary); }

/* ==========================================================================
   BLOG — travel inspiration rail
   ========================================================================== */
.blog-tile { position: relative; display: block; flex: 0 0 240px; height: 300px; border-radius: 20px; overflow: hidden; scroll-snap-align: start; }
.blog-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-tile__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78) 100%); }
.blog-tile__badge {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.22); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; padding: 6px 12px; border-radius: 999px;
}
.blog-tile__info { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; }
.blog-tile__title { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 400; line-height: 1.25; margin-bottom: 6px; }
.blog-tile__meta { font-family: var(--font-sans); font-size: 11px; color: rgba(255,255,255,.75); }

/* ==========================================================================
   TRUST FACTS — no cards, straight on background
   ========================================================================== */
.trust-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; padding-top: 8px; }
@media (min-width: 760px) { .trust-facts { grid-template-columns: repeat(4, 1fr); } }
.trust-fact i { color: var(--color-accent); font-size: 19px; margin-bottom: 10px; display: block; }
.trust-fact strong { display: block; font-family: var(--font-sans); font-size: 14.5px; font-weight: 600; color: var(--color-text); margin-bottom: 4px; }
.trust-fact span { display: block; font-family: var(--font-sans); font-size: 12.5px; color: var(--color-text-secondary); line-height: 1.4; }

/* ==========================================================================
   REVIEWS — atmospheric band, not a card
   ========================================================================== */
.reviews-band {
  position: relative; width: 100%; background: var(--color-primary-dark); overflow: hidden;
  padding: 52px 0 30px; margin-top: 56px;
}
.reviews-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(201,107,36,.18), transparent 60%);
}
.reviews-band__track {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reviews-band__track::-webkit-scrollbar { display: none; }
.reviews-band__item {
  flex: 0 0 100%; scroll-snap-align: start; padding: 0 24px; max-width: 640px; margin: 0 auto;
  box-sizing: border-box;
}
.reviews-band__stars { color: var(--clay-soft); font-size: 13px; margin-bottom: 16px; }
.reviews-band__item q {
  display: block; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(19px, 2.6vw, 25px); line-height: 1.5; color: #fff; margin: 0 0 18px; quotes: none;
  text-wrap: balance;
}
.reviews-band__who { font-family: var(--font-sans); font-size: 12.5px; color: rgba(255,255,255,.62); letter-spacing: .02em; margin: 0; }
.reviews-band__dots { position: relative; display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.reviews-band__dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .2s ease; }
.reviews-band__dots span.on { background: var(--clay-soft); }

/* ==========================================================================
   FAQ — minimal accordion, no boxes
   ========================================================================== */
.faq-list-v2 { max-width: 720px; }
.faq-item-v2 { border-top: 1px solid var(--color-border); }
.faq-item-v2:last-child { border-bottom: 1px solid var(--color-border); }
.faq-question-v2 {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0; font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--color-text);
}
.faq-question-v2 i { font-size: 12px; color: var(--color-accent-hover); transition: transform .25s ease; flex: 0 0 auto; }
.faq-question-v2.active i { transform: rotate(180deg); }
.faq-answer-v2 { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq-answer-v2 > p { overflow: hidden; min-height: 0; margin: 0; color: var(--color-text-secondary); font-size: 14px; line-height: 1.6; padding-bottom: 18px; max-width: 62ch; }
.faq-answer-v2.active { grid-template-rows: 1fr; }

/* ==========================================================================
   FINAL CTA band
   ========================================================================== */
.home-final { background: var(--color-bg-soft); padding: 56px 0 60px; margin-top: 8px; }
.home-final h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 12px; color: var(--color-text); }
.home-final__sub { color: var(--color-text-secondary); font-size: 15px; max-width: 56ch; margin: 0 0 26px; }
.home-final__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.home-final__whatsapp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--color-text); }
.home-final__whatsapp i { color: #25d366; font-size: 17px; }

/* ==========================================================================
   STICKY CTA — slim bar, appears after hero
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  height: 58px; padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--color-primary-dark);
  transform: translateY(100%); transition: transform .3s ease;
  box-shadow: 0 -6px 20px rgba(0,0,0,.18);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: #fff;
}
.sticky-cta i { color: var(--clay-soft); font-size: 13px; }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* не даём старой кнопке "наверх" наезжать на новую sticky-CTA */
@media (max-width: 899px) {
  body.home-page .scroll-top { bottom: calc(58px + env(safe-area-inset-bottom, 0) + 20px); }
}

/* ==========================================================================
   Desktop — editorial layout вместо растянутого mobile-ряда
   ========================================================================== */
@media (min-width: 900px) {
  /* Услуги: авто-сетка вместо жёстких 4 колонок, чтобы 5-й tile не сиротствовал */
  .svc-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 28px 20px;
  }

  /* Новости: фото-фича слева на всю высоту колонки, компактные строки справа */
  .news-list {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-auto-rows: min-content;
    align-items: stretch;
    gap: 0 32px;
  }
  .news-feature {
    grid-column: 1;
    grid-row: 1 / -1;
    height: auto;
    min-height: 320px;
    margin-bottom: 0;
  }
  .news-row { grid-column: 2; }
  .news-row:first-of-type { border-top: none; }

  /* Блог: карточки крупнее, рельса не заканчивается пустотой */
  .tour-rail--blog .tour-rail__track { padding-bottom: 4px; }
  .tour-rail--blog .blog-tile { flex-basis: 320px; height: 340px; }

  /* Отзывы: сетка вместо карусели с обрезанными соседями */
  .reviews-band__track {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 40px; overflow: visible;
    max-width: 1100px; margin: 0 auto; padding: 0 40px;
  }
  .reviews-band__item { flex: none; scroll-snap-align: none; max-width: none; margin: 0; padding: 0; }
  .reviews-band__dots { display: none; }
}

/* ==========================================================================
   Mobile tweaks
   ========================================================================== */
@media (max-width: 560px) {
  .home-section { padding: 44px 0 4px; }
  .news-feature { height: 190px; }
}
