/* Герой-блок */
.hero {
  flex: 1; /* Занимает все доступное пространство */
  display: flex;
  align-items: center; /* Вертикальное выравнивание */
  justify-content: center; /* Горизонтальное выравнивание */
  text-align: center; /* Выравнивание текста */
  position: relative; /* Для позиционирования псевдоэлементов */
  overflow: hidden; /* Скрытие выходящих за пределы элементов */
  padding: 40px 20px; /* Добавим отступы */
}

/* Анимированный градиентный фон */
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(58, 134, 255, 0.07) 0%,
    transparent 70%
  );
  z-index: -1; /* Под основным контентом */
  animation: rotateGradient 20s linear infinite; /* 20s → 20000ms */
}

/* Анимация вращения градиента */
@keyframes rotateGradient {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Контейнер контента */
.hero-content {
  transform: scale(0.9); /* scale: 0.9 → transform: scale(0.9) */
  position: relative;
  z-index: 2; /* Поверх фона */
  max-width: 800px;
  margin: 0 auto; /* Центрирование */
  width: 90%; /* Добавим адаптивную ширину */
}

/* Заголовок героя */
.hero-title {
  font-size: 56px; /* 3.5rem → 56px */
  font-weight: 800; /* Жирное начертание */
  margin-bottom: 24px; /* 1.5rem → 24px */
  line-height: 1.1; /* Межстрочный интервал */
  letter-spacing: -0.5px; /* Уменьшенный межбуквенный интервал */
}

/* Градиентный текст */
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}

/* Подчеркивание при наведении */
.text-gradient::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 400ms ease; /* 0.4s → 400ms */
}

.hero:hover .text-gradient::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Подзаголовок */
.hero-subtitle {
  font-size: 21px; /* 1.3rem → 21px */
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px; /* 2.5rem → 40px */
  font-weight: 400;
  line-height: 1.6; /* Улучшенная читаемость */
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero-title {
    font-size: 40px; /* 2.5rem → 40px */
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 18px; /* 1.1rem → 18px */
    margin-bottom: 30px;
  }

  .hero-content {
    transform: scale(1); /* Убираем масштабирование на мобильных */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px; /* 2rem → 32px */
  }

  .hero {
    padding: 30px 15px; /* Уменьшаем отступы */
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }
}
