/* Герой-блок */
.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;
}

/* Контейнер контента */
.hero-content {
  transform: scale(
    0.9
  ); /* Заменяем scale на transform для лучшей совместимости */
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  width: 100%; /* Добавляем для лучшей адаптивности */
}

/* Заголовок */
.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 */
  }

  .hero-subtitle {
    font-size: 18px; /* 1.1rem → 18px */
  }

  .hero-content {
    transform: scale(1); /* Убираем масштабирование на мобильных */
  }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
  .hero-title {
    font-size: 32px; /* 2rem → 32px */
  }

  .hero {
    padding: 30px 15px; /* Уменьшаем отступы */
  }
}

/* Анимация вращения градиента */
@keyframes rotateGradient {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
