/* ==========================================================================
 * HERO – Drillrock
 * ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
}

/* затемнение поверхности */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60); /* 50% затемнение */
  z-index: 1;
}

/* Контейнер шириной 1366px */
.hero-inner {
  position: relative;
  z-index: 2;

  max-width: var(--layout-max-width);
  margin-inline: auto;
  padding-inline: var(--layout-gutter);

  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 4rem;
  padding-bottom: 4rem;

  color: white;
}

/* Заголовок */
.hero-content h2 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  max-width: 820px;
}

/* Подзаголовок */
.hero-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 760px;
}

/* Кнопки */
.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
}

/* Кнопка Find a spare part (основная) */
.hero-actions a:first-child {
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(3, 2, 19, 0.4);
  transition: 0.25s;
}

.hero-actions a:first-child:hover {
  background-color: #111322;
  box-shadow: 0 10px 30px rgba(3, 2, 19, 0.6);
  transform: translateY(-1px);
}

/* Кнопка Learn more (вторичная) */
.hero-actions a:last-child {
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.25s;
}

.hero-actions a:last-child:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Адаптив */
@media (max-width: 768px) {
  .hero-section {
    min-height: 420px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content h3 {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
}
/* ==========================================================================
 * Hero scroll indicator (mouse)
 * ========================================================================== */

.hero-section {
  position: relative; /* нужно для абсолютного позиционирования индикатора */
}

/* Ссылка-обёртка: центр снизу */
.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  cursor: pointer;

  opacity: 0.85;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.hero-scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

/* “Мышка” */
.hero-mouse {
  width: 26px;
  height: 44px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  box-sizing: border-box;
}

/* Бегунок внутри мышки */
.hero-mouse-wheel {
  width: 6px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);

  animation: hero-scroll-wheel 1.6s infinite ease-in-out;
}

/* Анимация “падающего” колесика */
@keyframes hero-scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.2;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Можно скрыть индикатор на очень маленьких экранах, если мешает */
@media (max-width: 480px) {
  .hero-scroll-indicator {
    bottom: 20px;
  }
}
