/**
 * Премиальные кастомные стили поверх Tailwind.
 * Шрифты, reveal, скейсити, тумблер День/Ночь, hotspot-точки тура.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---- Hero video overlay ---- */
.hero-overlay {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.55) 0%, rgba(11, 18, 32, 0.75) 60%, rgba(11, 18, 32, 0.98) 100%);
}

/* ---- Gold sheen on primary buttons ---- */
.btn-sheen {
  position: relative;
  overflow: hidden;
}
.btn-sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-sheen:hover::after {
  transform: translateX(120%);
}

/* ---- Bullet underline grow ---- */
.bullet-link {
  position: relative;
}
.bullet-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #C9A227;
  transition: width 0.35s ease;
}
.bullet-link:hover::after {
  width: 100%;
}

/* ---- Day / Night toggle ---- */
.daynight-track {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.daynight-btn {
  position: relative;
  z-index: 1;
  padding: 10px 22px;
  border-radius: 999px;
  color: rgba(232, 217, 166, 0.7);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}
.daynight-btn.is-active {
  color: #0B1220;
}
.daynight-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, #C9A227, #E8D9A6);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s ease;
}
.city-cards {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.city-cards.is-switching {
  opacity: 0;
  transform: translateY(12px);
}

/* ---- Timeline ---- */
.timeline-line {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.8), rgba(201, 162, 39, 0.15));
}
.timeline-node {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141B2B;
  border: 2px solid rgba(201, 162, 39, 0.45);
  color: #E8D9A6;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s ease;
}
.timeline-step:hover .timeline-node,
.timeline-step.is-key .timeline-node {
  border-color: #C9A227;
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.35);
  transform: scale(1.08);
}
.timeline-step.is-key .timeline-node {
  background: linear-gradient(135deg, #C9A227, #E8D9A6);
  color: #0B1220;
}

/* ---- Tour hotspots ---- */
.hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.9);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B1220;
  font-size: 16px;
  font-weight: 700;
  animation: hotspot-pulse 2s infinite;
}
.hotspot-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #0B1220;
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #F4F1EA;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 5;
}
.hotspot:hover .hotspot-tip {
  opacity: 1;
}
@keyframes hotspot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

/* ---- Scarcity progress ---- */
.scarcity-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.scarcity-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #A8841C, #C9A227, #E8D9A6);
  transition: width 1s ease;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 16px;
  bottom: 96px;
  z-index: 60;
  max-width: 320px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(20, 27, 43, 0.95);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: #F4F1EA;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.is-visible {
  transform: none;
  opacity: 1;
}

/* ---- Sticky bar ---- */
.sticky-bar {
  position: fixed;
  z-index: 50;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.sticky-bar.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  .sticky-bar {
    left: 0;
    right: 0;
    bottom: 0;
  }
  .sticky-bar.is-hidden {
    transform: translateY(120%);
  }
}

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px;
  background: #141B2B;
  border: 1px solid rgba(201, 162, 39, 0.25);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-backdrop.is-open .modal-card {
  transform: none;
}

/* ---- Honeypot ---- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- FAB chat ---- */
.fab-chat {
  position: fixed;
  z-index: 55;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}
.fab-chat:hover {
  transform: scale(1.08);
}

/* ---- ROI readouts ---- */
.calc-readout {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---- Accordion FAQ ---- */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: rgba(244, 241, 234, 0.72);
  line-height: 1.7;
}
.faq-item.is-open .faq-a {
  max-height: 480px;
  padding: 0 0 22px;
}
.faq-icon {
  transition: transform 0.3s ease;
  color: #C9A227;
  flex-shrink: 0;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
