/* =========================================================
   HERO — слайдер на главной (fade, автопрокрутка в main.js)
   ========================================================= */
.hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: var(--color-title);
}

@media (min-width: 768px)  { .hero { height: 400px; } }
@media (min-width: 992px)  { .hero { height: 600px; } }

.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
}

@media (min-width: 992px) {
  .hero__slide { background-position: center; }
}

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

.hero__content {
  padding-top: var(--header-height);
}

.hero__title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-white);
}

@media (min-width: 768px) {
  .hero__title    { font-size: 50px; }
  .hero__subtitle { font-size: 18px; }
}

/* Анимация текста при появлении слайда */
.hero__slide.is-active .hero__anim--drop { animation: hero-drop 0.8s both; }
.hero__slide.is-active .hero__anim--zoom { animation: hero-zoom 0.8s both; }
.hero__slide.is-active .hero__anim:nth-child(2) { animation-delay: 0.2s; }

@keyframes hero-drop {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: none; }
}

@keyframes hero-zoom {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__anim { transition: none; animation: none !important; }
}

/* Точки навигации (видны с 768px, как в оригинале) */
.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 2;
  display: none;
  justify-content: center;
  gap: 10px;
}

@media (min-width: 768px) { .hero__dots { display: flex; } }

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.hero__dot.is-active {
  background-color: var(--color-primary);
}
