/* ==== HERO BLOCK ==== */

.hero {
  position: relative;
  min-height: 100vh; /* full screen */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* фоновая гифка */
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../../images/hero.gif') center center / cover no-repeat;
  z-index: 0;
  animation: fadeInBg 1s ease-in-out;
}

/* тёмное затемнение поверх гифки */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70); /* настрой интенсивность */
  z-index: 1;
  pointer-events: none;
}

/* контент */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
  max-width: 960px;
}

.hero__content h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: clamp(18px, 2vw, 26px);
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero__divider {
  width: 80px;
  height: 3px;
  background: #e0e0e0;
  border: 0;
  margin: 20px auto;
}

.hero__highlight {
  color: #ffffff;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero__note {
  font-size: clamp(15px, 1.8vw, 20px);
  opacity: 0.9;
}

/* ====== ADAPTIVE BREAKPOINTS ====== */

/* Tablet (<=1024px) */
@media (max-width: 1024px) {
  .hero {
    min-height: 90vh;
    padding: 80px 0 60px;
  }

  .hero__content {
    max-width: 740px;
  }

  .hero__divider {
    width: 60px;
  }
}

/* Mobile Landscape / Medium (<=768px) */
@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding: 60px 0;
  }

  .hero__content {
    padding: 0 16px;
  }

  .hero__content h1 {
    font-size: 30px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__highlight {
    font-size: 18px;
  }

  .hero__note {
    font-size: 15px;
  }
}

/* Mobile Small (<=480px) */
@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
  }

  .hero__content h1 {
    font-size: 24px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .hero__highlight {
    font-size: 17px;
  }

  .hero__note {
    font-size: 14px;
  }
}

/* Animation */
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
