#priceModal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#priceModal:target {
  display: flex;
}

#priceModal .modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 1000px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
  max-height: 80vh;
  overflow-y: auto;
}


#priceModal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  text-decoration: none;
}

#priceModal .close:hover {
  color: #e00;
}


#priceModal .modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #111;
  margin-bottom: 16px;
}

#priceModal .modal-content-title{
  margin-top: 30px;
  font-size: 19px;
  font-weight: bold;
  color: #111;
  margin-bottom: 4px;
}

#priceModal ul {
  padding-left: 20px;
  margin-top: 10px;
  list-style: disc;
  color: #333;
}

#priceModal li {
  margin-bottom: 8px;
  font-size: 16px;
}





.carousel-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden; /* прячем то, что не в карусели */
}

.carousel {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;

  /* Добавим плавный скролл для мобильных */
  scroll-behavior: smooth;
}

.carousel-card {
  min-width: 100%; /* показываем по одному слайду на десктопе */
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
  flex-shrink: 0;
}

.carousel-card img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  height: auto;
}

/* Кнопки */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(30, 58, 138, 1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
}

.carousel-btn:hover {
  background-color: rgba(29, 78, 216, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Адаптация для экранов <= 640px (телефоны) */
@media (max-width: 640px) {
  .carousel-wrapper {
    max-width: 90vw;
    padding: 10px;
    overflow: hidden;
  }

 .carousel-card {
  min-width: 85vw;
  max-width: 85vw;
  padding: 10px;
  box-sizing: border-box;
  margin: 0; /* Вот это выровняет каждую карточку по центру */
}

  .image-wrapper {
    margin-left: 8px;
  }

  .carousel-card img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .carousel-btn.prev {
    left: 5px;
  }

  .carousel-btn.next {
    right: 5px;
  }
}










body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f8f8f8;
}

/* Карточки акций 
.promo-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px;
}

.promo-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 300px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-5px);
}

.promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.promo-card h3 {
  margin: 15px 0;
  font-size: 18px;
  color: #333;
}

.details-btn {
  display: inline-block;
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #1e3a8a;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

.details-btn:hover {
  background-color: #1e40af;
}

.details-btn-long {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: #1e3a8a;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}

.details-btn-long:hover {
  background-color: #1e40af;
}

/* Модальное окно 
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
}

.modal:target {
  display: block;
}

.modal-content {
  position: relative;
  background: #fff;
  width: 80%;
  max-width: 600px;
  margin: 100px auto;
  padding: 20px 30px;
  border-radius: 10px;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #333;
  text-decoration: none;
}

.modal-title {
  margin-top: 0;
  font-size: 24px;
  color: #007bff;
}

.modal-content-title {
  font-size: 18px;
  margin-top: 20px;
  color: #333;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-content li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
