/* ====== SLIDER ====== */
.slider-one {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-bottom: 60px;
}

.slider-one__slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  height: 100%;
}

.slider-one__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

.slider-one__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

/* ====== INNER WRAPPER (общий паддинг для content и controls) ====== */
.slider-one__inner {
  padding: 20px;
}

/* ====== CONTENT ====== */
.slider-one__content {
  position: absolute;
  padding: 20px;
  top: 40%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}

.slider-one__title {
  font-size: 46px;
  font-weight: 400;
  margin-bottom: 10px;
  color: #fff;
  max-width: 500px;
}

.slider-one__text {
  font-size: 24px;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 300 !important;
  line-height: 1.5;
  max-width: 500px;
}

.slider-one__link {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700 !important;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.slider-one__link:hover {
  color: #fff !important;
}

.slider-one__link::after {
  content: "›";
  margin-left: 8px;
  font-size: 1.2rem;
}

/* ====== CONTROLS (arrows + dots в одном потоке) ====== */
.slider-one__controls {
  position: absolute;
  padding: 20px;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

.slider-one__controls-row {
  display: flex;
  align-items: flex-end; /* стрелки и дотсы прижаты к низу */
  justify-content: space-between;
  gap: 20px;
}

/* ====== ARROWS ====== */
.slider-one__arrows {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.slider-one__arrow {
  width: 80px;
  height: 80px;
  background: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  flex-shrink: 0;
}

.slider-one__arrow:hover {
  background: #ddd;
}

.slider-one__arrow svg {
  width: 18px;
  height: 18px;
}

/* ====== DOTS (прогресс-бары) ====== */
.slider-one__dots {
  display: flex;
  align-items: flex-end; /* прижаты к низу, а не к центру */
  gap: 10px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.slider-one__dot {
  width: 150px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
  overflow: hidden;
  flex-shrink: 0;
}

.slider-one__dot--active {
  background: #fff;
}

.slider-one__dot-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  .slider-one {
    height: 500px;
  }
  .slider-one__title {
    font-size: 36px;
  }
  .slider-one__text {
    font-size: 18px;
  }
  .slider-one__dot {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .slider-one {
    height: 450px;
  }
  .slider-one__title {
    font-size: 28px;
  }
  .slider-one__text {
    font-size: 16px;
  }
  .slider-one__arrow {
    width: 60px;
    height: 60px;
  }
  .slider-one__dot {
    width: 80px;
  }
}

@media (max-width: 576px) {
  .slider-one {
    height: 400px;
  }
  .slider-one__title {
    font-size: 24px;
  }
  .slider-one__text {
    font-size: 14px;
  }
  .slider-one__arrow {
    width: 50px;
    height: 50px;
  }
  .slider-one__dot {
    width: 60px;
    height: 6px;
  }
  .slider-one__link {
    font-size: 16px;
  }
}

@media (max-width: 425px) {
  .slider-one {
    height: 350px;
  }
  .slider-one__title {
    font-size: 20px;
  }
  .slider-one__text {
    font-size: 13px;
    margin-bottom: 1rem;
  }
  .slider-one__arrow {
    width: 40px;
    height: 40px;
  }
  .slider-one__dot {
    width: 40px;
    height: 5px;
  }
  .slider-one__link {
    font-size: 14px;
  }
  .slider-one__controls-row {
    flex-wrap: wrap;
  }
  .slider-one__dots {
    justify-content: center;
    flex: 0 0 auto;
  }
}