 
 /*СЛАЙДЕР*/
 .what {
        font-size: 28px;
        font-weight: bold;
        color: #222;
        text-align: center;
        margin-top: 40px;
        margin-bottom: 25px;
        font-family: 'Arial', sans-serif;
      }
      .slider-container {
        position: relative;
        width: 90%;
        max-width: 1500px;
        overflow: hidden;
        border-radius: 20px;
        margin: 50px auto 0;
        background-color: #ffffff;
        touch-action: pan-y; /* Для свайпа */
          background-color: #ffffff; /* белая подложка */
  /* padding: 20px; /* уменьшенный отступ по краям */
 /* margin: 20px auto; */
  border-radius: 16px; /* скругленные углы */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* мягкая тень */
      }
      .slider {
        display: flex;
        transition: transform 0.5s ease-in-out;
      }

      .slide {
      
        flex: 0 0 25%; /* По умолчанию 2 слайда */
        box-sizing: border-box;
        position: relative;
        padding: 10px;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      .slide img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 99px;
        display: block;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.3s ease;
      }
      
      .slide img:hover {
        transform: scale(1.02);
      }
      
      .captionq {
        width: 100%;
        margin: 10px 0;
        color: black;
        font-size: 18px;
        text-align: center;
        background-color: #ffffff;
        padding: 10px 20px;
        border-radius: 10px;
      }
      
      /* Стили для кнопок */
      .prev, .next {
        position: absolute;
        top: 35%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background-color: rgba(255, 255, 255, 0.7);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 20px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        transition: all 0.3s ease;
      }
      
      .prev:hover, .next:hover {
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
      }
      
      .prev {
        left: 15px;
      }
      
      .next {
        right: 15px;
      }
      
      /* Добавляем стрелки с помощью псевдоэлементов */
      .prev::before {
        content: '←';
      }
      
      .next::before {
        content: '→';
      }
      
      /* Модальное окно */
     .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 100;
  overflow: hidden;
  touch-action: pan-y;
  pointer-events: auto; /* Добавлено для корректной работы кликов */
}
      
      .modal-content {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        position: relative;
      }
      
      .modal-img {
     width: 60vw;
  object-fit: contain;
  border-radius: 20px;
      }
      
      .modal-close {
        position: absolute;
        top: 20px;
        right: 30px;
        color: white;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        z-index: 101;
      }
      
      .modal-prev, .modal-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        font-size: 50px;
        cursor: pointer;
        padding: 20px;
        user-select: none;
        z-index: 101;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      
      .modal-prev {
        left: 20px;
      }
      
      .modal-next {
        right: 20px;
      }

      /* Стили для планшетов (7-10 дюймов) */
@media (min-width: 600px) and (max-width: 1024px) {
  .modal-img {
    max-width: 85vw;  /* Ширина изображения */
    max-height: 75vh; /* Высота изображения */
  }
  
  .modal-content {
    padding: 40px;
  }
  
  .modalCaption {
    font-size: 28px;
    margin-top: 20px;
    max-width: 80%;
  }
  
  .modal-close {
    top: 20px;
    right: 30px;
    font-size: 36px;
  }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 600px) and (max-width: 1024px) and (orientation: landscape) {
  .modal-img {
    max-width: 70vw;  /* Уменьшаем ширину */
    max-height: 80vh; /* Увеличиваем высоту */
  }
  
  .modalCaption {
    font-size: 24px;
  }
}

/* Оптимизация для iPad Pro и крупных планшетов */
@media (min-width: 1024px) and (max-width: 2560px) {
  .modal-img {
    max-width: 80vw;
    max-height: 80vh;
  }
  
  .modalCaption {
    font-size: 32px;
  }
}
      /* Стили для мобильных устройств */
      
      @media (max-width: 1024px) {
        /* Скрываем кнопки навигации на планшетах и телефонах */
        .prev, .next {
          display: none;
        }
        
        .slide {
          flex: 0 0 33.3333%; /* 3 слайда на планшете */
        }
      }
      
      @media (max-width: 600px) {
        .slide {
          flex: 0 0 100%; /* 1 слайд на телефоне */
        }
        
        .what {
          font-size: 22px;
          margin-top: 30px;
          margin-bottom: 15px;
        }
        
        .captionq {
          font-size: 18px;
          padding: 8px 15px;
        }
                
        .modal-close {
          font-size: 30px;
          top: 10px;
          right: 15px;
        }
      }
 .modalCaption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 40px;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.6); /* полупрозрачный черный фон */
  border-radius: 10px;
  display: inline-block;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1024px) and (orientation: landscape) {
  .modal-img {
    max-width: 70vw; /* Уменьшаем ширину */
    max-height: 70vh; /* Ограничиваем высоту */
    width: auto;
    height: auto;
  }
  
  .modal-content {
    justify-content: center; /* Центрируем по вертикали */
    padding: 20px;
  }
  
  .modalCaption {
    font-size: 16px; /* Уменьшаем текст */
    margin-top: 10px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .modalCaption {
    font-size: 24px; /* меньше размер на телефонах */
    padding: 8px 16px;
  }
}
    .modal-img {
        width: 95vw; /* На всю ширину */
        border-radius: 0; /* Убираем скругление */
    }
    
    .modalCaption {
        font-size: 32px;
        padding: 5px 10px;
    }
}
/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
  .modal-img {
    max-width: 70vw; /* Уменьшаем ширину */
    max-height: 70vh; /* Ограничиваем высоту */
    width: auto;
    height: auto;
  }
  
  .modal-content {
    justify-content: center; /* Центрируем по вертикали */
    padding: 20px;
  }
  
  .modalCaption {
    font-size: 16px; /* Уменьшаем текст */
    margin-top: 10px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .modalCaption {
    font-size: 18px;
    padding: 6px 12px;
  }
}
 .modal-img {
        width: 95vw; /* На всю ширину */
        border-radius: 0; /* Убираем скругление */
    }

.modal-content {
    display: flex;

    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: stretch;
    align-items: center;}

    @media (max-width: 480px) and (orientation: landscape) {
  .modal-img {
    max-width: 70vw; /* Уменьшаем ширину */
    max-height: 70vh; /* Ограничиваем высоту */
    width: auto;
    height: auto;
  }
  
  .modal-content {
    justify-content: center; /* Центрируем по вертикали */
    padding: 20px;
  }
  
  .modalCaption {
    font-size: 16px; /* Уменьшаем текст */
    margin-top: 10px;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }
}