.hero {
  position: relative;
  min-height: 560px;
  background: #240070;
  overflow: hidden;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 38%, rgba(139, 92, 246, 0.34), rgba(104, 58, 216, 0) 28%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -46px;
  height: 96px;
  background: white;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  z-index: 2;
}

.hero + .section,
.hero + .section.section--light {
  position: relative;
  margin-top: -30px;
  z-index: 3;
}

.hero__container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  min-height: 540px;
  margin: 0 auto;
  padding: 42px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(540px, 1fr);
  align-items: end;
  gap: 24px;
}

.hero__content {
  position: relative;
  z-index: 4;
  max-width: 560px;
  align-self: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  margin-bottom: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #efe9ff;
  font-size: 14px;
  font-weight: 800;
}

.hero__title {
  margin: 0 0 24px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -1.4px;
}

.hero__text {
  max-width: 540px;
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.84);
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  transition: 0.25s ease;
}

.hero__btn--primary {
  background: #7c4dff;
  color: white;
  box-shadow: 0 18px 38px rgba(108, 57, 241, 0.34);
}

.hero__btn--primary:hover {
  transform: translateY(-2px);
}

.hero__btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.13);
}

.hero__stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  color: white;
}

.hero__stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 680px;
  min-height: 500px;
  justify-self: end;
  align-self: end;
  margin-bottom: -22px;
  border-radius: 30px;
  overflow: hidden;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero__visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  opacity: 0.68;
  z-index: 1;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(24, 2, 77, 0.18);
}

.hero__visual::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 18px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  z-index: 2;
  background: rgba(143, 99, 255, 0.18);
}

.hero__student-card {
  position: absolute;
  right: 18px;
  bottom: -48px;
  width: 410px;
  height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero__student {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
  }

  .hero__container {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
    padding: 44px 24px 56px;
    max-width: 920px;
    align-items: center;
  }

  .hero__visual {
    min-height: 430px;
    width: min(100%, 640px);
    justify-self: center;
    margin-bottom: -12px;
  }

  .hero__student-card {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 340px;
    height: 460px;
    bottom: -34px;
  }

  .hero__student {
    max-height: 440px;
  }
}

@media (max-width: 768px) {
  .hero__container {
    padding: 38px 18px 50px;
  }

  .hero__title {
    font-size: clamp(34px, 10vw, 52px);
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 30px;
  }

  .hero__btn {
    width: 100%;
  }

  .hero__stats {
    gap: 20px;
  }

  .hero__visual {
    min-height: 350px;
    width: 100%;
    border-radius: 22px;
    margin-bottom: -8px;
  }

  .hero__student-card {
    width: 270px;
    height: 360px;
    bottom: -24px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .hero__student {
    max-height: 340px;
  }
}
