:root {
  --primary: #0057b7;
  --dark: #2d3436;
  --gray: #f2f5f7;
  --white: #ffffff;
  --accent: #0097e6;
}

body {
  padding-top: 60px;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background: var(--gray);
  color: var(--dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header {
  background: var(--white);
  padding: 12px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1100;
  box-shadow: none;
  border-bottom: none;
}

.logo {
  text-decoration: none;
  display: inline-block;
}

.logo-wrapper {
  display: flex;
  flex-direction: column; /* Складываем строки вертикально */
  align-items: flex-start;
}

.logo-top {
  display: flex;
  align-items: center; /* Выравнивает гору и текст по одной линии */
  gap: 8px; /* Зазор между горой и текстом */
}

.logo-main {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap; /* Чтобы название не рвалось на мобилках */
}

.logo-top i {
  font-size: 1.2rem; /* Размер горы под высоту текста */
  color: var(--primary);
}

.tagline {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: rgba(0, 51, 102, 0.7);
  margin-top: 4px;
  /* ГЛАВНОЕ: Сдвигаем текст ровно на ширину иконки + gap */
  /* Ширина иконки (~20px) + gap (8px) = примерно 28px */
  padding-left: 28px;
}

/* Адаптация для маленьких экранов (iPhone SE и др.) */
@media (max-width: 480px) {
  .logo-top i {
    font-size: 0.6rem;
    margin-right: -5px;
  }

  .logo-main {
    font-size: 0.8rem; /* Чуть уменьшаем шрифт, чтобы влезло в экран */
  }

  .tagline {
    font-size: 8px;
    padding-left: 14px; /* Корректируем отступ под меньшую иконку */
  }
}

.lang-switcher {
  display: flex;
  gap: 5px;
}
.lang-switcher button {
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: 0.2s;
}
.lang-switcher button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* TABS */
.tabs-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #eee;
  width: 100% !important; /* Вместо 100vw */
  left: 0;
  right: 0;
  box-sizing: border-box;

  /* Эффект прилипания */
  position: -webkit-sticky; /* Для поддержки Safari */
  position: sticky;

  top: 75px; /* Вкладки застынут на самом верху */
  z-index: 1000; /* Чтобы быть выше карточек и видео */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 0;
  padding: 0;
}

.tabs-nav button {
  flex: 1; /* Кнопки делят пространство поровну */
  max-width: 200px; /* Чтобы на широких экранах не слишком растягивались */
  padding: 15px 5px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 800;
  color: #95a5a6;
  border-bottom: 3px solid transparent;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: 0.3s;
  outline: none;
  -webkit-tap-highlight-color: transparent; /* Убирает серый квадрат при нажатии на iPhone */
}

.tabs-nav button.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

/* Адаптация для мобильных устройств */
@media (max-width: 600px) {
  .tabs-nav button {
    font-size: 0.75rem; /* Немного меньше шрифт на телефонах */
    letter-spacing: -0.5px;
  }
}

.tab-content {
  display: none;
  padding: 30px 5%;
  flex: 1;
  animation: fadeIn 0.4s ease;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO VIDEO CAROUSEL */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
  background: #f2f5f7;
  margin-bottom: 40px;
}
.carousel-track {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 1s ease-in-out;
}
.carousel-item {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  width: 90%;
  z-index: 5;
}
.carousel-caption h2 {
  font-size: 2.2rem;
  margin: 0 0 10px 0;
  line-height: 1.1;
  text-transform: uppercase;
}

/* COMMON SECTION STYLES */
.section-title {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  margin-top: 50px;
}

/* ABOUT SLIDER (Single Image + Arrows) */
.about-text {
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align-last: center;
  text-align: justify;
  line-height: 1.6;
  color: #555;
}

.about-slider {
  overflow: hidden;
  position: relative;
  width: auto;
  max-width: 1200px;
  height: 750px; /* Высота слайдера */
  margin: 0 auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.about-slider .slide img.is-portrait {
  width: auto;
  height: 100%;
  justify-content: center;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #808080;
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.slider-btn:hover {
  background: var(--primary);
  opacity: 60%;
}
.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}
.photo-caption {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: auto;

  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;

  font-size: 1rem;
  line-height: 1.4;
  z-index: 10;
  pointer-events: none;

  transition: opacity 0.8s ease-in-out;
}

/* TEAM GRID */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.team-card {
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 3px solid var(--primary);
  display: block;
  margin-bottom: 10px;
}
.team-role {
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* FEEDBACKS (REVIEWS) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-bottom: 4px solid var(--primary);
}
.stars {
  color: #f1c40f;
  margin-bottom: 10px;
}

/* FAQ ACCORDION */
.faq-section {
  max-width: 800px;
  margin: 0 auto 50px auto;
}
.faq-item {
  background: white;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
details {
  width: 100%;
}
summary {
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 400;
}
details[open] summary:after {
  content: "−";
}
details[open] summary {
  background: #f9f9f9;
  color: var(--primary);
}
.faq-answer {
  padding: 0 25px 20px 25px;
  line-height: 1.6;
  color: #555;
  border-top: 1px solid #f0f0f0;
  margin-top: 10px;
  padding-top: 15px;
}

/* TOURS GRID */
.tours-custom-note {
  grid-column: 1 / -1; /* Растягивает на всю ширину сетки */
  background: var(--white);
  border: 3px solid var(--gray);
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 15px;
}
.wa-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366; /* Фирменный цвет WhatsApp */
  color: white !important;
  padding: 5px 15px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 700;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  margin-left: 5px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.wa-icon-link:hover {
  background: #128c7e;
  color: white;
  transform: scale(1.05); /* Легкое увеличение при наведении */
}

.wa-icon-link i {
  font-size: 1.2rem;
}
.wa-icon-link i,
.wa-icon-link:visited,
.wa-icon-link:active {
  color: #ffffff !important;
  text-decoration: none !important;
}
.tours-custom-note i {
  font-size: 1.5rem;
  color: var(--primary);
}
.tours-custom-note p {
  margin: 0;
  font-weight: 600;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .tours-custom-note {
    flex-direction: column;
    text-align: center;
  }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: 0.3s;
  aspect-ratio: 4/5;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.card-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10;
  color: white;
  z-index: 2;
}
.card-title {
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.price-badge {
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
}

/* FOOTER */
footer {
  background: var(--dark);
  color: white;
  padding: 40px 5%;
  border-top: 4px solid var(--primary);
  margin-top: auto;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Выстраиваем блоки друг под другом */
  align-items: center;
  text-align: center;
}

.footer-section {
  width: 100%;
}

/* Стили для верхнего блока */
.contacts-top h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #fff;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

/* Стили для нижнего блока */
.footer-logo {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 5px;
}

#foot_desc {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
}

/* Разделительная линия */
.footer-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

/* Кнопки соцсетей */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.9rem;
}

.social-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}
.modal-content {
  background: var(--white);
  margin: 2% auto;
  width: 90%;
  max-width: 800px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: auto;
  min-height: min-content;
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  z-index: 2100;
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.btn-book-modal {
  display: block;
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 18px;
  border-radius: 12px;
  font-weight: 700;
  margin-top: 25px;
  text-decoration: none;
}

/* MOBILE TWEAKS */
@media (max-width: 768px) {
  .tabs-nav {
    justify-content: flex-start;
    padding-left: 5%;
  }
  .carousel-container {
    height: 40vh;
  }
  .carousel-caption h2 {
    font-size: 1.5rem;
  }

  .about-slider {
    height: 250px;
  } /* Smaller slider on mobile */

  /* Horizontal Scroll for Team and Reviews on Mobile */
  .team-grid,
  .reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    gap: 15px;
    margin-left: -5%;
    margin-right: -5%;
    padding-left: 5%;
    padding-right: 5%;
  }
  .team-card,
  .review-card {
    min-width: 85%;
    scroll-snap-align: center;
  }

  .modal-content {
    margin: 10px auto;
    width: 95%;
    height: auto;
    border-radius: 15;
    min-height: 100vh;
  }
}
/* Адаптивный контейнер для видео 16:9 */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Пропорции 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
enhanced-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Две колонки */
  gap: 12px;
  margin-bottom: 10px;
}

.enhanced-form input,
.enhanced-form select,
.enhanced-form textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: var(--accent);
}

/* На мобильных устройствах делаем все поля в одну колонку */
@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
