/* =========================================================
   HÖFER — hero.css
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-white);
  user-select: none;
}

.hero__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4000 / 1296;   /* пропорции картинок слайдера */
  max-height: 640px;
}

/* ---------- Слайд ---------- */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s ease;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--c-white);
}

/* ---------- Затемнение ---------- */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Подпись ---------- */
.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20%;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  pointer-events: none;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--c-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.hero__title h3 {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
}

.hero__text {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  color: rgba(255,255,255,.9);
  max-width: 540px;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}

.hero__text p {
  margin: 0;
}

.hero__text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-white);
  margin: 0;
}

/* ---------- Стрелки ---------- */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--tr-fast), border-color var(--tr-fast),
              color var(--tr-fast), transform var(--tr-fast);
  backdrop-filter: blur(4px);
}

.hero__arrow:hover {
  background: var(--c-red);
  border-color: var(--c-red);
  color: var(--c-white);
}

.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

/* ---------- Точки ---------- */
.hero__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero__dot {
  width: 32px;
  height: 4px;
  background: rgba(0,0,0,.25);
  border: 0;
  cursor: pointer;
  transition: background var(--tr-fast), width var(--tr-base);
  border-radius: 2px;
}

.hero__dot:hover {
  background: rgba(0,0,0,.5);
}

.hero__dot.is-active {
  width: 48px;
  background: var(--c-red);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero__arrow {
    width: 42px;
    height: 42px;
  }
  .hero__arrow--prev { left: 16px; }
  .hero__arrow--next { right: 16px; }
}

@media (max-width: 768px) {
  .hero__caption {
    bottom: 14%;
  }
  .hero__title {
    font-size: clamp(16px, 4vw, 22px);
    margin-bottom: 6px;
  }
  .hero__text {
    font-size: 12px;
  }
  .hero__arrow {
    width: 34px;
    height: 34px;
  }
  .hero__dots {
    bottom: 10px;
    gap: 6px;
  }
  .hero__dot {
    width: 20px;
    height: 3px;
  }
  .hero__dot.is-active {
    width: 30px;
  }
}

@media (max-width: 480px) {
  .hero__caption {
    bottom: 12%;
  }
  .hero__title {
    font-size: 15px;
  }
  .hero__text {
    font-size: 11px;
  }
  .hero__arrow {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}