/* Слайдер */
.bp-slider {
  position: relative;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: var(--soft, #f6f8f9);
  outline-offset: 4px;
}

.bp-slider__track {
  position: relative;
  aspect-ratio: 16 / 9;
}

.bp-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.bp-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.bp-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-slider__slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.bp-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-darker, #015d77);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.bp-slider__arrow:hover {
  background: #fff;
}

.bp-slider__arrow--prev {
  left: 12px;
}

.bp-slider__arrow--next {
  right: 12px;
}

.bp-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.bp-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.bp-slider__dot.is-active {
  background: #fff;
}

.bp-slider:focus-visible {
  outline: 3px solid var(--brand, #0792b0);
}

@media (max-width: 782px) {
  .bp-slider__track {
    aspect-ratio: 4 / 3;
  }

  .bp-slider__arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}
