/* OZSM hero swiper — overlay + brand styles. Без letterbox, full-width родителя. */

.ozsm-hero-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.ozsm-hero-swiper {
  width: 100%;
  aspect-ratio: 1240 / 600;
  position: relative;
  overflow: hidden;
}

/* Mobile — менее вытянутое соотношение, чтобы caption помещался */
@media (max-width: 768px) {
  .ozsm-hero-swiper { aspect-ratio: 16 / 10; }
}

.ozsm-hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.ozsm-hero-slide > picture,
.ozsm-hero-slide > video {
  display: block;
  width: 100%;
  height: 100%;
}

.ozsm-hero-slide > picture > img,
.ozsm-hero-slide > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Caption overlay */
.ozsm-hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8%;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.ozsm-hero-caption--left { align-items: flex-start; }
.ozsm-hero-caption--center { align-items: center; text-align: center; }
.ozsm-hero-caption--right { align-items: flex-end; text-align: right; }

.ozsm-hero-title {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.ozsm-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  font-weight: 400;
  opacity: 0.95;
}

/* Pagination dots — brand yellow */
.ozsm-hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
  width: 10px;
  height: 10px;
}
.ozsm-hero-swiper .swiper-pagination-bullet-active {
  background: #ffc107;
  opacity: 1;
}

/* Nav arrows — brand color */
.ozsm-hero-swiper .swiper-button-prev,
.ozsm-hero-swiper .swiper-button-next {
  color: #ffc107;
  background: rgba(0, 0, 0, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.ozsm-hero-swiper .swiper-button-prev:hover,
.ozsm-hero-swiper .swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.5);
}
.ozsm-hero-swiper .swiper-button-prev::after,
.ozsm-hero-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

/* Mobile: smaller arrows, hidden if narrow */
@media (max-width: 540px) {
  .ozsm-hero-swiper .swiper-button-prev,
  .ozsm-hero-swiper .swiper-button-next { display: none; }
  .ozsm-hero-caption { padding: 0 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ozsm-hero-swiper .swiper-wrapper { transition: none !important; }
}

/* B12_A11Y target-size: bullets visual 8x8  touch-area 24x24  transparent border (WCAG 2.5.5) */
.ozsm-hero-swiper .swiper-pagination-bullet{width:8px;height:8px;border:8px solid transparent;background-clip:padding-box;box-sizing:content-box}
.ozsm-hero-swiper .swiper-pagination{bottom:6px}

