
/*MOBILE VERSION*/

/*BURGER*/

.burger {
  display: none;
  font-size: 32px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  align-items: center;
}

@media (max-width: 768px) {

body, html{
background-color: #52607d;

}

/*MENU-MOBILE*/
    
  .menu-links {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;        
    top: 60px;
    left: 0;
    width: 100%;
    transform: none;       
    background-color: #52607d;
    z-index: 9998;
    box-sizing: border-box;
    padding: 0 10px;
  }
  
  .menu-links.active {
    display: flex; 
  }

  .menu-links a {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    box-sizing: border-box;
  }

  .logo-fixed {
    display: none; 
  }

  .burger {
    order: 1;
    margin-left: 0;
    display: flex; 
  }

  .language {
    order: 2;
    margin-left: auto;
    justify-content: flex-end;
  }

  .combined-navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    background-color: #52607d; 
  }
  
  /*HEADER SLIDESHOW-MOBILE*/

  .slideshow-container{
    margin-top: calc(60px + env(safe-area-inset-top));
    height: auto;               
  }

  .slide{
    object-fit: contain;          
    object-position: top center;  
  }

  .logo{ width: 150px; 
  }  
  
  /*TOURS-MOBILE*/
  
.main-blocks {
    flex-direction: row;
    padding: 10px;
    gap: 10px;
    background-color: #52607d;
    margin-top: 150px; /*---------alter gap, was 100vh----------*/
  }

  .block {
    width: 45%;
  }  

  
  /*INSPIRE-MOBILE*/
  .inspire {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    background-position: center;
  }

  .inspire-leftside {
    width: 100%;
  }

  .inspire h1,
  .inspire p {
    width: auto;
    margin-left: 0;
    text-align: center;
    padding: 0 15px;
  }

  .inspire p {
    text-align: center;
  }

 /* GALLERY-MOBILE */
 
 .gallery {
     background-color: #52607d;
 }
 
  .gallery-track img {
    width: calc(100vw / 3);
    height: auto;
    scroll-snap-align: start;
    flex-shrink: 0;

  }
  
.gallery-track {
  overflow-x: auto;
  width: max-content;
  display: flex;
  gap: 3px;
  transform: none !important;
}
  
   .gallery-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
	background:#52607d;

  }
  
  .gallery-container {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.gallery-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
  
  .gallery .nav {
    display: none;
  }
  
  
   /* REVIEWS-MOBILE */
  .reviews-slider {
  height: auto;
  padding-bottom: 30px;
  background-size: cover;
  background-position: center;
}

  .slider-container {
  position: relative;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  flex-direction: column;
  gap: 20px;
}

  .arrow-left,
  .arrow-right {
    display: none;
  }

 .review-slide {
  width: 100%;
  padding: 20px;
  font-size: 16px;
  text-align: center;
}

  .section-title {
    font-size: 28px;
    text-align: center;
    margin-right: 0;
    padding: 20px 10px;
  }
  
  
  /*CONTACTS-MOBILE*/
  .contact-section {
    flex-direction: column;
    gap: 30px;
    padding-top: 70px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-details,
  .contact-form {
    width: 100%;
    margin-bottom: 10px;
  }

  .contact-form button {
    width: 100%;
    text-align: center;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }

  .contact-section h2,
  .contact-section h3 {
    text-align: center;
  }

  #contactspicture {
    background-size: cover;
    background-position: center;
    height: auto;
    padding-bottom: 40px;
  }
  
  /*ABOUT US - MOBILE*/
  
#aboutus {
  position: fixed;       /* подтверждаем позиционирование из desktop */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;         /* фон на весь экран */
  background-position: center;
  background-size: cover;
}

.aboutus-section {
  min-height: calc(100vh - 60px);
  padding-top: calc(70px + env(safe-area-inset-top));
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 10px;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.aboutus-section::after {
  height: 0; /* подбери 45–65vh по вкусу */
}

  .aboutus-image {
    flex: none;
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .aboutus-image img {
    width: 60%;
    height: auto;
    padding: 10px;
  }

  .text-container {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* вертикальное центрирование */
    align-items: center;
  }

  .aboutus-text {
    padding: 16px;
    font-size: 15px;
  }

  .aboutus-text h2 {
    font-size: 22px;
    text-align: center;
  }
  
  /*REVIEWS - MOBILE*/
  
  #testimonials {
    background-position: center;
    background-size: cover;
    height: 100vh;
    padding: 0 10px;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
  }

  .testimonial-section .testimonial-title {
    font-size: 32px;
    margin-top: 25vh;
    padding: 0 15px;
  }

  .testimonial-grid {
    padding: 60px 15px;
    gap: 30px;
  }

  .testimonial-card {
    padding: 20px;
    font-size: 16px;
  }

  .testimonial-text {
    font-size: 16px;
  }

  .testimonial-author {
    font-size: 15px;
  }

  .testimonial-tour {
    font-size: 14px;
  }
  
  /* TOURS - MOBILE*/
  
   .tours-hero {
    padding-top: calc(70px + env(safe-area-inset-top));
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Заголовок + интро на фоне */
  .tours-page-title,
  .group-tours-title,
  .cruise-tours-title {
    font-size: 34px;
    line-height: 1.15;
    margin-top: 18vh;   /* было ~30vh на desktop */
    margin-bottom: 6vh; /* было 15vh */
  }

  .tours-page-intro,
  .group-tours-intro,
  .cruise-tours-intro {
    font-size: 16px;
    padding: 18px 16px;
    margin-top: 10px;   /* компактнее карточки подвинутся выше */
  }

  /* Блок с карточками */
  .tours-wrapper {
    margin-top: 22vh;             /* было 40vh на desktop */
    background: #fff;
  }

  .tours-grid {
    grid-template-columns: 1fr;   /* 2 → 1 колонка */
    gap: 16px;
    padding: 16px 12px;
    max-width: 720px;
  }

  .tour-card img {
    height: 220px;                /* ниже картинка, меньше прокрутки */
    object-position: center;
  }

  .tour-card h2 {
    font-size: 20px;
    margin: 12px 12px 8px;
  }

  .tour-card h3 {
    margin: 0 12px 8px;
    font-size: 14px;
  }

  .tour-card p {
    margin: 0 12px 12px;
    font-size: 15px;
    line-height: 1.5;
  }

  .tour-button {
    margin: 0 12px 14px;
    padding: 10px 16px;
    font-size: 15px;
    width: fit-content;
  }

  /* CTA-полоска под карточками (индивидуальные туры и т.п.) */
  .tour-cta-band { padding: 0 0 28px; }
  .tour-cta-container { padding: 0 12px; }
  .tour-cta-card { padding: 18px; }
  .tour-cta-card h2 { font-size: 20px; }
  .tour-cta-card p { font-size: 15px; }

  /* «Почему групповой тур?» — уже блочный, просто уплотним отступы */
  .why-text { padding: 18px 16px 10px; }
  .why-group-tours h2 { font-size: 22px; }
  .why-group-tours li { font-size: 15px; margin-bottom: 12px; }

  /* ===== КАЛЕНДАРЬ (страница групповых туров) ===== */
  /* Стек в одну колонку с подписями */
  .calendar-section { padding: 8px 0; }
  .tour-calendar {
    width: 100%;
    padding: 16px 12px;
    border-radius: 0;
  }

  .calendar-note { font-size: 14px; margin-bottom: 12px; }

  .calendar-header { display: none; }      /* скрываем шапку таблицы */

  .calendar-table { gap: 10px; }

  .calendar-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
  }

  .calendar-row > div {
    display: grid;
    grid-template-columns: 110px 1fr;      /* ярлык + значение */
    align-items: start;
    gap: 8px;
    font-size: 15px;
  }
  
  /*GROUP TOURS - MOBILE*/
  
  
  /* Фон-герой */
  #nzodyssey {
    background-position: center;
    background-size: cover;
  }
  
    #nzwind {
    background-position: center;
    background-size: cover;
  }

  /* Заголовок и интро на фоне */
  .grouptour-hero{
    width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    padding-top: calc(70px + env(safe-area-inset-top));
    margin-bottom: 22vh; /* как на других страницах с фоном */
  }

  .grouptour-title{
    font-size: 34px;
    line-height: 1.15;
    margin-top: 18vh;   /* было 30vh на десктопе */
    margin-bottom: 6vh; /* было 15vh */
  }

  .grouptour-intro{
    font-size: 16px;
    padding: 18px 16px;
    margin-top: 10px;
  }

  /* Карточка тура и «Почему этот тур?» */
  .tour-container,
  .why-this-tour,
  .gallery{
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
  }

  .tour-content{ padding: 16px; }
  


  /* Блок «маршрут и факты» — в колонку */
  .route-and-facts{
    gap: 16px;
    margin-bottom: 8px;
  }
  .route-and-facts .map{
    flex: 1 1 100%;
    max-width: 100%;
  }
  .route-and-facts .facts{
    flex: 1 1 100%;
    font-size: 15px;
  }
 

  /* Галерея: 2 в ряд, затем 1 в ряд на очень узких экранах */
  
  .tour .gallery {
    background: transparent !important;
  }
  
  .tour .gallery .images {
    display: flex;
    flex-direction: column;    /* вертикальная колонка */
    gap: 10px;                 /* расстояние между фото */
  }

  .tour .gallery img {
    flex: 0 0 auto !important; /* убираем 48% */
    width: 100% !important;
    max-width: 100% !important;
    display: block;
  }

  /* Подписи для четырех колонок в каждой строке */
  .calendar-row > div:nth-child(1)::before { content: "Месяц"; color: #777; }
  .calendar-row > div:nth-child(2)::before { content: "Даты"; color: #777; }
  .calendar-row > div:nth-child(3)::before { content: "Маршрут"; color: #777; }
  .calendar-row > div:nth-child(4)::before { content: "Мест осталось"; color: #777; }

  /* Низкий сезон — центрируем */
  .low-season-note .low-season-label {
    justify-self: center;
    grid-column: 1;
    font-size: 14px;
    opacity: .9;
  }
  
  /* ===== Under Construction (mobile) ===== */
 .uc-title {
    font-size: 40px;
    margin-top: 20vh;
    margin-bottom: 5vh;
  }

  .uc-card {
    padding: 20px;
    font-size: 1em;
    margin: 0 10px;
  }

  .uc-spacer {
    height: 25vh; /* поменьше на мобильных, чтобы футер не налипал */
  }
  
}

