/* ============================================================
   index.css — Главная страница
   ============================================================ */

/* =================== HERO =================== */
#hero {
  height: 100vh;
  min-height: 620px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: #000;
  background-image: url('../images/main_bcg.jpg');
  background-size: cover;
  background-position: center;
}
.hero-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,10,5,0.5) 0%, rgba(20,10,5,0.68) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  color: var(--white);
  padding: 20px;
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  color: var(--white);
}
.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 2.4rem;
}
.hero-btn { font-size: 1rem; padding: 14px 40px; }

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%,100% { opacity: 1; transform: scaleY(1) translateY(0); }
  50% { opacity: 0.25; transform: scaleY(0.6) translateY(4px); }
}

/* =================== ABOUT =================== */
#about { padding-top: 90px; }
.about-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  text-align: center;
  line-height: 1.7;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 3.5rem;
}
.about-lead em {
  color: var(--terracotta);
  font-style: italic;
}

.features-heading {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* =================== FEATURE CARDS =================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  /* иконка — фоновый водяной знак */
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Иконка-водяной знак на фоне */
.feature-icon {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 90px; height: 90px;
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-card:hover .feature-icon {
  opacity: 0.14;
  transform: scale(1.08) rotate(-4deg);
}

/* Текстовый блок — занимает всю ширину */
.feature-card-body { position: relative; z-index: 1; }
.feature-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--text);
  line-height: 1.3;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.68;
}
.routes-list {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 2;
  margin-top: 6px;
}
.routes-list li { padding-left: 14px; position: relative; }
.routes-list li::before {
  content: '·';
  position: absolute; left: 0;
  color: var(--terracotta); font-weight: 700; font-size: 1rem;
}

/* =================== GALLERY =================== */
.gallery-block { margin-top: 72px; }
.gallery-title {
  font-size: 1.75rem;
  text-align: center;
  color: var(--heading-accent);
}
.gallery-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.gallery-viewport {
  overflow: hidden;
  width: 100%;
}
.gallery-grid {
  display: flex;
  gap: 12px;
  transition: transform 0.45s ease;
  will-change: transform;
}
.gallery-item {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: none;
  padding: 0;
  flex: 0 0 calc((100% - 36px) / 4);
  width: calc((100% - 36px) / 4);
  min-height: 220px;
  cursor: pointer;
  appearance: none;
  position: relative;
  display: block;
  box-shadow: 0 18px 34px rgba(20, 10, 5, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 10, 5, 0.24), rgba(20, 10, 5, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(20, 10, 5, 0.16);
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}
.gallery-item:focus-visible {
  outline: 2px solid rgba(189, 110, 72, 0.45);
  outline-offset: 3px;
}
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-nav {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(20, 10, 5, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.gallery-nav:hover,
.gallery-nav:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(20, 10, 5, 0.22);
  background: #f8efe9;
}
.gallery-nav:focus-visible {
  outline: 2px solid rgba(189, 110, 72, 0.45);
  outline-offset: 3px;
}

/* =================== HOW TO BOOK =================== */
.how-block { margin-top: 72px; }
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-top: 2rem;
}
.how-img-placeholder {
  border-radius: var(--radius);
  min-height: 380px;
  overflow: hidden;
  background: rgba(20, 10, 5, 0.08);
  box-shadow: 0 24px 44px rgba(20, 10, 5, 0.12);
}
.how-img-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}

.home-gallery-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1200;
}
.home-gallery-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.home-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(6px);
}
.home-gallery-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  max-height: calc(100vh - 48px);
  border-radius: 24px;
  overflow: hidden;
  background: #120d0b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}
.home-gallery-modal__dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  background: #120d0b;
}
.home-gallery-modal__caption {
  margin: 0;
  padding: 16px 24px 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.55;
}
.home-gallery-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(20, 10, 5, 0.72);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}
.home-gallery-modal__close:hover,
.home-gallery-modal__close:focus-visible {
  background: rgba(189, 110, 72, 0.92);
  transform: scale(1.04);
}
.home-gallery-modal__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}
body.gallery-modal-open {
  overflow: hidden;
}
.how-steps { display: flex; flex-direction: column; gap: 24px; }
.how-step { display: flex; gap: 18px; align-items: flex-start; }
.how-step-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  padding-top: 2px;
}
.how-step-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}
.how-step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =================== SCHEDULE =================== */
.schedule-section { background: var(--bg-dark); }
.schedule-sub {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  letter-spacing: 0.04em;
}
.schedule-table-wrap { overflow-x: auto; border-radius: var(--radius); }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.schedule-table th {
  background: rgba(255,255,255,0.05);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 10px;
  text-align: center;
}
.schedule-table td {
  padding: 14px 10px;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* =================== MAP =================== */
.map-block { margin-top: 56px; }
.map-heading {
  font-size: 1.75rem;
  color: var(--white);
  text-align: center;
}
.map-placeholder {
  background: #000;
  border-radius: var(--radius);
  height: 380px;
  margin-top: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.88rem;
  overflow: hidden;
}
.map-placeholder iframe { width: 100%; height: 100%; border: none; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item {
    flex-basis: calc((100% - 24px) / 3);
    width: calc((100% - 24px) / 3);
    min-height: 210px;
  }
  .how-grid { grid-template-columns: 1fr; }
  .how-img-placeholder { min-height: 260px; }
  .how-img-placeholder img { min-height: 260px; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .gallery-carousel { gap: 8px; }
  .gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  .gallery-grid { gap: 8px; }
  .gallery-item {
    flex-basis: calc((100% - 8px) / 2);
    width: calc((100% - 8px) / 2);
    min-height: 170px;
  }
  .home-gallery-modal { padding: 14px; }
  .home-gallery-modal__dialog {
    border-radius: 18px;
    max-height: calc(100vh - 28px);
  }
  .home-gallery-modal__dialog img {
    max-height: calc(100vh - 116px);
  }
  .home-gallery-modal__caption {
    padding: 14px 16px 18px;
    font-size: 0.88rem;
  }
  .home-gallery-modal__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }
}
