.slider {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 20px 15px 40px;
  box-sizing: border-box;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.slider .item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider .item .content {
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
  max-width: 800px;
  margin: 0px auto 0;
  padding: 40px;
  box-sizing: border-box;
  border-radius: 12px;
  text-align: center;
  font-family: 'Lora', serif;
}

.slider .item .content .name {
  font-weight: 600;
  font-size: 48px;
  color: #B01C2E;
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.custom-slider-wrapper {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  border-radius: 12px; /* по желанию — скругление углов */

  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 60px; /* вот он — отступ снизу */
  padding: 40px 15px; /* 40px сверху и снизу, 15px слева и справа */
}

.custom-slider {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 4px solid #222;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.slider-overlay-title {
  position: absolute;
  top: 40px;           /* отступ сверху */
  left: 40px;          /* отступ слева */
  z-index: 5;          /* выше слайдов */
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
  font-family: 'Poppins', sans-serif;
  pointer-events: none; /* заголовок не блокирует клик по кнопке */
}
.slide {
  position: absolute;
  inset: 0;
  display: none;
  animation: fade 1s ease-in-out;
}

.slide.active {
  display: block;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ОДНА кнопка — фиксировано на всех слайдах */
.slide-button {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.7);
  color: #B01C2E !important;
  background-color: color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  z-index: 10;
  transition: background 0.3s ease;
}

.slide-button:hover {
  background: rgba(0, 0, 0, 0.9);
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.slider .item .content .text {
  font-size: 20px;
  color: #333;
  line-height: 1.6;
  font-family: 'Lora', serif;
}

.slider .item .image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Мобильная адаптация */
@media only screen and (max-width: 768px) {
  .slider .item .content {
    padding: 25px;
  }

  .slider .item .content .name {
    font-size: 28px;
  }

  .slider .item .content .text {
    font-size: 16px;
  }
}
@media only screen and (max-width: 768px) {
.video-bg {
    clip-path: inset(0 0 150px 0);
     }
}