/* ==== ÁÀÍÅÐ-ÑËÀÉÄÅÐ (ÁÀÇÀ) ==== */

.main-banner {
  position: relative;
  overflow: hidden;
  background: #000;
}

.banner-slider {
  position: relative;
}

.banner-slide {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: none;
}

.banner-slide.is-active {
  display: block;
}

.banner-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 60%);
}

.banner-slide__content {
  position: relative;
  color: #fff;
  max-width: 500px;
  padding: 40px 0;
  animation: slideTextIn .7s ease-out;
}

.banner-slide__content h1 {
  font-size: 28px;
  margin: 0 0 15px;
}

.banner-slide__content p {
  margin: 0 0 15px;
  font-size: 15px;
  line-height: 1.4;
}

.btn-primary {
  display: inline-block;
  background: #e30613;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

/* ==== ÔÎÍÈ ÄËß ÑËÀÉÄ²Â (DESKTOP) ==== */

.banner-slide--2 {
  background-image: url('/images/slides/slide2-desktop.webp');
}

.banner-slide--3 {
  background-image: url('/images/slides/slide3-desktop.webp');
}

/* ==== ÊÅÐÓÂÀÍÍß (ÑÒÐ²ËÊÈ + ÒÎ×ÊÈ) ==== */

.banner-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.7);
  cursor: pointer;
  pointer-events: auto;
  font-size: 20px;
  line-height: 34px;
  text-align: center;
}

.banner-arrow--prev { left: 15px; }
.banner-arrow--next { right: 15px; }

.banner-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 15px;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}

.banner-dot.is-active {
  background: #fff;
}

/* ==== ÀÍ²ÌÀÖ²ß ÒÅÊÑÒÓ ==== */

@keyframes slideTextIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==== ÌÎÁ²ËÜÍÀ ÀÄÀÏÒÀÖ²ß ==== */

@media (max-width: 768px) {
  .main-banner .container {
    padding-left: 0;
    padding-right: 0;
  }

  .banner-slide {
    min-height: 300px;
  }

  .banner-slide__content {
    padding: 16px 15px 20px;
  }

  .banner-slide__content h1 {
    font-size: 20px;
    line-height: 1.25;
    color: #333333;
  }


  .banner-slide__content p {
    font-size: 13px;
  }

  /* ìîá³ëüí³ âåðñ³¿ ôîí³â */
  .banner-slide--2 {
    background-image: url('/images/slides/slide2-mobile.webp');
  }

  .banner-slide--3 {
    background-image: url('/images/slides/slide3-mobile.webp');
  }
}

@media (max-width: 480px) {
  .banner-slide {
    min-height: 300px;
  }

  .banner-slide__content {
    padding: 12px 12px 18px;
  }

  .banner-slide__content h1 {
    font-size: 18px;

  }

  /* çà áàæàííÿì – ïîâí³ñòþ ïðèõîâàòè îïèñ äëÿ äóæå âóçüêèõ åêðàí³â */
  .banner-slide__content p {
    display: none;
  }
}

.banner-slide {
  position: relative;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}