/* Дополнительные стили для блока hero */
.hero {
  background: #eaf8ff;
  padding: 60px 0;
}

h1 {
  font-size: clamp(28px, 5vw, 39px);
  font-weight: 500;
  line-height: 1.3;
  color: #2e5065;
}

.course-card {
  background: url(../img/1.png);
  background-size: cover;
  border-radius: 20px;
  min-height: 200px;
  position: relative;
}

.course-card .h3 {
  color: #fff;
  text-shadow: 0 0 70px rgba(0, 0, 0, 0.25);
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 38px;
  position: absolute;
  left: 50px;
  bottom: 37px;
  width: 360px;
}

/* Контейнер кнопки */
.button-container {
  position: relative;
  display: inline-block;
}

/* Основная кнопка */
.btn-find-courses {
  background: white;
  border-radius: 50px;
  padding: 6px 14px;
  min-width: 228px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* Градиентный бордер через псевдоэлемент */
.btn-find-courses::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 3px;
  background: linear-gradient(
    90deg,
    #ff8e00 0%,
    #f4503b 20%,
    #e60087 50%,
    #7b43da 70%,
    #0090d2 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* Градиентный текст */
.btn-find-courses span {
  background: linear-gradient(
    90deg,
    #ff8e00 0%,
    #f4503b 20%,
    #e60087 50%,
    #7b43da 70%,
    #0090d2 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Эффект при наведении - кнопка заливается градиентом, текст становится белым */
.btn-find-courses:hover {
  background: linear-gradient(
    90deg,
    #ff8e00 0%,
    #f4503b 20%,
    #e60087 50%,
    #7b43da 70%,
    #0090d2 100%
  );
}

.btn-find-courses:hover span {
  background: white;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-find-courses:hover::before {
  opacity: 0;
}

/* Декоративные звезды */
.decor-orange {
  position: absolute;
  left: -25px;
  top: 32px;
  width: 25px;
  height: 25px;
  pointer-events: none;
  z-index: 2;
}

.decor-blue {
  position: absolute;
  right: -30px;
  top: -3px;
  width: 25px;
  height: 25px;
  pointer-events: none;
  z-index: 2;
}

.decor-orange svg,
.decor-blue svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Адаптивность для hero блока */
@media (max-width: 1024px) {
  .hero {
    padding: 40px 0;
  }

  .course-card {
    min-height: 180px;
  }

  .course-card .h3 {
    font-size: 22px;
    line-height: 30px;
    left: 30px;
    bottom: 25px;
    width: 280px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 30px 0;
  }

  .hero .container > div {
    flex-direction: column !important;
    gap: 20px !important;
  }

  .course-card {
    width: 100% !important;
    min-height: 160px;
    background-position-x: right;
  }

  .course-card .h3 {
    font-size: 18px;
    line-height: 26px;
    left: 20px;
    bottom: 20px;
    width: 250px;
  }

  h1 {
    font-size: 24px;
    text-align: center;
  }

  .hero p {
    font-size: 18px !important;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn-find-courses {
    min-width: 180px;
    font-size: 16px;
    padding: 6px 12px;
    height: 38px;
  }

  .decor-orange {
    left: -20px;
    top: 28px;
    width: 20px;
    height: 20px;
  }

  .decor-blue {
    left: 190px;
    top: -2px;
    width: 20px;
    height: 20px;
  }

  .course-card .h3 {
    font-size: 16px;
    line-height: 22px;
    width: 200px;
  }
}