/* ─── GuideWind Site Styles ──────────────────────────────────── */

@import "local-fonts.css";

/* ── Tailwind config via CDN is in index.html ── */

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

input, select, textarea, button {
  font-family: inherit;
}

select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
}

select::-ms-expand {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Для фиксации меню */
}

body {
  background-color: #F9F9F9;
  color: #1c1c16;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-montserrat, .font-headline {
  font-family: 'Montserrat', sans-serif !important;
}

.font-inter, .font-body {
  font-family: 'Inter', sans-serif !important;
}

#cart-drawer {
  font-family: 'Montserrat', sans-serif !important;
}

/* ── Material Symbols ────────────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Scrollbar hide ──────────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Cursor ──────────────────────────────────────────────────── */
.cursor-grab { cursor: grab; }
.cursor-grabbing { cursor: grabbing !important; }

/* ── Header ──────────────────────────────────────────────────── */
#monolithic-menu-container {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
#monolithic-menu-container.header-hidden {
  transform: translate(-50%, -100%);
  opacity: 0;
  pointer-events: none;
}
#header-trigger {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 80px;
  z-index: 45;
  pointer-events: auto;
}

/* ── Burger menu ─────────────────────────────────────────────── */
#monolithic-menu-content {
  transition: max-height 0.5s ease-in-out;
  max-height: 0;
  overflow: hidden;
}
#monolithic-menu-content.menu-open { max-height: 500px !important; }
#monolithic-burger span {
  display: block;
  transition: all 0.3s ease;
  transform-origin: center;
}
#monolithic-burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
#monolithic-burger.open span:nth-child(2) { opacity: 0; }
#monolithic-burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────── */
#hero-game-slider .swiper-slide {
  width: 94vw;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.98);
}
#hero-game-slider .swiper-slide-active { transform: scale(1); }

/* Затемнение неактивных слайдов без прозрачности всего блока */
#hero-game-slider .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity 0.6s ease;
  opacity: 1;
  pointer-events: none;
  z-index: 10;
  border-radius: 1rem; /* совпадает с rounded-2xl */
}
#hero-game-slider .swiper-slide-active::after {
  opacity: 0;
}
#hero-game-slider .slide-content-overlay {
  background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 40%, transparent 100%);
}
#hero-game-slider .glass-btn {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}
#hero-game-slider .glass-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}
.hero-pagination {
  bottom: 2rem !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  left: 0 !important;
  width: 100% !important;
}
.hero-pagination .swiper-pagination-bullet {
  background: rgba(255,255,255,0.4) !important;
  opacity: 1 !important;
  width: 32px !important; height: 6px !important;
  border-radius: 9999px !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: white !important;
  width: 64px !important;
}

/* ── Animations ────────────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.fade-in-left { transform: translateX(-50px); }
.fade-in-right { transform: translateX(50px); }

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Excursions ──────────────────────────────────────────────── */
.excursion-scroll-container {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.excursion-card-snap { scroll-snap-align: start; }
.excursion-card-snap p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── Category buttons ────────────────────────────────────────── */
.cat-btn {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}
.cat-btn:hover { background: rgba(255,255,255,0.3); }
.cat-btn.active { background: white; color: #45A17C; }

/* ── Facts card stack ────────────────────────────────────────── */
.deck-card-exit-left  { animation: deckExitLeft  0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.deck-card-exit-right { animation: deckExitRight 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
.deck-card-enter      { animation: deckEnter     0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards; }

@keyframes deckExitLeft  { to { opacity: 0; transform: translateX(-150px) rotate(-10deg); } }
@keyframes deckExitRight { to { opacity: 0; transform: translateX(150px)  rotate(10deg);  } }
@keyframes deckEnter     { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.stack-layer-1, .stack-layer-2 { transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); }

/* ── Bento animation ─────────────────────────────────────────── */
.bento-column-up   { animation: bentoUp   20s linear infinite; }
.bento-column-down { animation: bentoDown 20s linear infinite; }

@keyframes bentoUp   { 0% { transform: translateY(0); }   100% { transform: translateY(-50%); } }
@keyframes bentoDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0); } }

/* ── Responsive (Landing Page & Components) ──────────────────── */

/* Mobile < 768px */
@media (max-width: 767px) {
  #hero-game-slider .slide-content-overlay {
    align-items: flex-end !important;
    padding-bottom: 12vh !important;
  }

  /* Excursion cards */
  .excursion-scroll-container { padding-left: 1.5rem !important; padding-right: 1.5rem !important; gap: 1rem !important; }
  .excursion-card-snap { width: 240px !important; flex-shrink: 0 !important; }
  .excursion-card-snap > div:first-child { height: 330px !important; aspect-ratio: auto !important; }
  #excursion-scroll-list { scroll-padding-left: 1.5rem; }

  /* Bento (About) section */
  #bento-hero-section .relative.h-\[600px\] { height: 300px !important; }
  #bento-hero-section .bento-column-up img,
  #bento-hero-section .bento-column-down img { height: 180px !important; }

  /* Fact cards */
  #fact-card-main { padding: 1.25rem !important; }
  #fact-title { font-size: 1.125rem !important; line-height: 1.2 !important; }
  #fact-text {
    font-size: 0.8125rem !important; line-height: 1.5 !important;
  }
  #card-stack-container { width: 240px !important; min-height: 220px !important; height: auto !important; }
}

/* Small mobile < 640px */
@media (max-width: 640px) {
  #card-stack-container { width: 240px !important; min-height: 220px !important; height: auto !important; }
  #fact-card-main { padding: 1.25rem !important; }
  #fact-title { font-size: 1.125rem !important; }
  #fact-text {
    font-size: 0.8125rem !important;
  }
}

/* Tablet 768px–1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  #fact-card-main { padding: 1.25rem !important; }
  #fact-title { font-size: 1.125rem !important; line-height: 1.2 !important; }
  #fact-text {
    font-size: 0.8125rem !important; line-height: 1.5 !important; margin-bottom: 1rem !important;
  }
  #card-stack-container { width: 280px !important; min-height: 240px !important; height: auto !important; }
  .fact-section-heading { font-size: 1.875rem !important; line-height: 2.25rem !important; }
  #bento-hero-section h2.font-headline { font-size: 1.875rem !important; line-height: 2.25rem !important; }
}

/* ── Excursion Card Hover ────────────────────────────────────── */
.hover-scale-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (hover: hover) {
  .hover-scale-card:hover {
    transform: scale(1.05);
    z-index: 10;
  }
}

/* ── Glassmorphism (from order form) ─────────────────────────── */
.glass-effect {
  background: rgba(69, 161, 124, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
}
.glass-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
  z-index: 10;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* Умные подсказки цен */
.price-tooltip {
  position: fixed;
  z-index: 10000;
  background: rgba(69, 161, 124, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(10px) scale(0.95);
  opacity: 0;
  min-width: 180px;
  color: #ffffff;
}
.price-tooltip.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.price-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.price-tooltip-row:last-child {
  margin-bottom: 0;
}
.price-tooltip-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}
.price-tooltip-value {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.875rem;
}
.price-tooltip-header {
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
