/* Последний блок - Хочу на курсы! */
.want-courses-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: transparent;
}

.card-container {
  position: relative;
  width: 614px;
  height: 392px;
  border-radius: 20px;
  overflow: hidden;
}

.card-bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  z-index: 1;
}

/* Кнопка */
.btn-wrapper {
  position: absolute;
  left: 50%;
  bottom: 3%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.btn-want-courses {
  background: white;
  border-radius: 50px;
  padding: 6px 14px;
  min-width: 286px;
  height: 64px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: Montserrat;
  font-size: 28px;
  font-weight: 700;
  line-height: 38px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* Градиентный текст */
.btn-want-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-want-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-want-courses:hover {
  background: linear-gradient(
    90deg,
    #ff8e00 0%,
    #f4503b 20%,
    #e60087 50%,
    #7b43da 70%,
    #0090d2 100%
  );
}

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

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

/* Декоративные элементы кнопки */
.btn-decor-orange {
  position: absolute;
  left: -30px;
  bottom: -35px;
  width: 43px;
  height: 43px;
  pointer-events: none;
  z-index: 2;
}

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

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

/* Адаптивность последнего блока */
@media (max-width: 680px) {
  .card-container {
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 220px;
  }

  .btn-want-courses {
    min-width: 220px;
    height: 54px;
    font-size: 20px;
  }

  .btn-decor-orange {
    width: 35px;
    height: 35px;
    left: -20px;
    bottom: -25px;
  }

  .btn-decor-blue {
    width: 20px;
    height: 20px;
    right: -20px;
    top: -25px;
  }
}
