
/* Стрелки и индикаторы всегда видны */
#childCarousel .carousel-control-prev,
#childCarousel .carousel-control-next,
#childCarousel .carousel-indicators {
  display: flex !important;
}

/* Стрелки сделать заметнее */
#childCarousel .carousel-control-prev-icon,
#childCarousel .carousel-control-next-icon {
  filter: invert(1) grayscale(100%);
  opacity: 0.9;
}

/* Выравнивание и фон для слайда */
#childCarousel .carousel-item {
  background: #fff; /* цвет под картинкой */

  justify-content: center;
  align-items: center;
}

/* Унифицированный размер картинок */
#childCarousel .carousel-item img {
  height: 400px;     /* одинаковая высота */
  width: auto;       /* ширина подстраивается */
  object-fit: contain; /* картинка не обрезается */
  display: block;
}

/* Не трогаем display у .carousel-item! */
#childCarousel .carousel-item { background: #fff; }

/* Рамка фиксированной высоты: одинаковая высота всех слайдов */
#childCarousel .frame {
  height: 400px;                  /* задай свою высоту */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;                     /* по желанию */
}

/* Картинка целиком вписывается, без обрезки, центрируется */
#childCarousel .frame img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* Видео 9:16 */
.video-card {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
}

/* Чтобы было 5.5 видео на пк и 2.5 на мобилке */
@media (min-width: 992px) {
  #adult-videos .col-lg-2 { flex: 0 0 calc(100%/5.5); max-width: calc(100%/5.5); }
}
@media (max-width: 991.98px) {
  #adult-videos .col-6 { flex: 0 0 calc(100%/2.5); max-width: calc(100%/2.5); }
}

.video-carousel {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
}

.video-card {
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  scroll-snap-align: start;
}

/* На ПК: 5.5 видео в строку */
@media (min-width: 992px) {
  .video-card { width: calc(100% / 5.5); }
}

/* На мобиле: 2.5 видео в строку */
@media (max-width: 991.98px) {
  .video-card { width: calc(100% / 2.5); }
}

/* Настройки для видео в полноэкранном режиме */
video.video-card:fullscreen {
  object-fit: contain;   /* сохраняем пропорции без обрезки */
  width: 100%;
  height: 100%;
  background: #000;      /* черный фон вокруг */
}

video.video-card:-webkit-full-screen { /* Safari */
  object-fit: contain;
  width: 100%;
  height: 100%;
  background: #000;
}


.video-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-overlay video {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;  /* сохраняем пропорции */
}

.video-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.d-none { display: none !important; }


/* Обёртка под видео 9:16 */
/* Обёртка под видео 9:16 */
.feature-video-wrap {
  width: 100%;
  max-height: 400px;
  aspect-ratio: 9/16;
  border-radius: 20px;     /* закругление углов */
  overflow: hidden;        /* обрезаем углы у содержимого */
  position: relative;
  background: #fff;        /* фон на всякий случай */
}

.feature-video {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* показываем целиком без обрезки */
  display: block;
}



/* Мобильная высота поменьше */
@media (max-width: 991.98px){
  .feature-video-wrap{ max-height: 260px; }
}


/* CSS для оверлея */
.video-overlay{
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
}
.video-overlay.d-none{ display: none !important; }
.video-overlay video{
  max-width: 90vw; max-height: 90vh; object-fit: contain;
  border-radius: 12px;
}
.video-overlay .close-btn{
  position: absolute; top: 16px; right: 22px; color:#fff;
  font-size: 40px; line-height:1; cursor: pointer;
}

.stat-value{ 
  font-size: clamp(2rem, 4vw, 3.25rem); /* крупная цифра как в "150+" */
  line-height: 1;
}
.stat-label{
  letter-spacing: .12em;
}

/* Прайс-блок */
#priceBlock .price-display{
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: .2px;
}

/* На узких экранах кнопки под суммой */
@media (max-width: 991.98px){
  #priceBlock .ms-auto{ width: 100%; }
  #priceBlock .btn{ width: 100%; }
}

/* Стиль красивой кнопки "Подробнее" */
.more-btn{
  --btn-color: #0d6efd;                 /* тот же синий, что у "Прайс лист" */
  color: var(--btn-color);
  border: 1px solid var(--btn-color);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  line-height: 1.1;
  transition: .2s ease-in-out;
}
.more-btn:hover{
  color:#fff;
  background: var(--btn-color);
  border-color: var(--btn-color);
}

/* Мини-стрелка */
.more-btn .chev{
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);            /* вправо-вниз */
  transition: transform .2s ease-in-out;
}

/* Когда блок раскрыт — поворачиваем стрелку вверх */
.more-btn[aria-expanded="true"] .chev{
  transform: rotate(135deg);            /* вверх-влево */
}

/* Карточки карусели больше НЕ фиксируем по высоте */
#childCarousel .frame{ 
  height: auto !important;
}

/* Картинка внутри кадра — вписывается без обрезки */
#childCarousel .frame img{
  max-height: 500px;   /* можно менять */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


#childCarousel{
  margin-top: 44px; /* подбери значение под дизайн */
}


#childCarousel .carousel-item img {
  height: 400px;        /* одинаковая высота */
  width: auto;          /* ширина подстраивается */
  max-width: 100%;
  object-fit: contain;  /* сохраняем пропорции, без обрезки */
  display: block;
  margin: 0 auto;
}


