.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 9vw, 118px) 0;
  color: var(--color-white);
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  content: "";
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero-title {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 6vw, 4.6rem);
  line-height: 1.02;
}

.hero p {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.featured-course,
.why-section,
.testimonials-section,
.faq-section,
.cta-section {
  padding: clamp(56px, 8vw, 92px) 0;
}

.featured-course,
.testimonials-section {
  background: var(--color-white);
}

.why-section,
.faq-section {
  background: var(--color-soft);
}

.section-title {
  max-width: 820px;
  margin: 0 auto clamp(28px, 5vw, 46px);
  color: var(--color-dark);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.1;
  text-align: center;
}

.section-subtitle {
  max-width: 730px;
  margin: -26px auto 46px;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-align: center;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.featured-image {
  min-height: 390px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 54px);
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tag {
  padding: 7px 12px;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(110, 117, 250, 0.1);
  border: 1px solid rgba(110, 117, 250, 0.16);
  border-radius: 999px;
}

.featured-info h3 {
  margin-bottom: 14px;
  color: var(--color-dark);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.featured-info p {
  margin-bottom: 22px;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.featured-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--color-muted);
}

.featured-rating strong {
  color: var(--color-dark);
}

.star,
.stars {
  color: #f4b400;
}

.btn-secondary {
  width: fit-content;
  padding: 12px 22px;
}

.why-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.why-card,
.testimonial-card {
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover,
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.why-card {
  padding: clamp(28px, 4vw, 42px) 28px;
  text-align: center;
}

.why-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  color: var(--color-white);
  background: var(--gradient-main);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(110, 117, 250, 0.24);
}

.why-card h3 {
  margin-bottom: 10px;
  color: var(--color-dark);
  font-size: 1.22rem;
}

.why-card p,
.testimonial-card p {
  color: var(--color-muted);
}

.testimonial-card {
  padding: clamp(26px, 4vw, 36px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.testimonial-header img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-header h4 {
  color: var(--color-dark);
  font-size: 1rem;
}

.testimonial-header span {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.stars {
  margin-bottom: 16px;
  letter-spacing: 0;
}

.testimonial-card p {
  font-style: italic;
}

.faq-container {
  max-width: 780px;
  margin-inline: auto;
  padding: 8px clamp(18px, 4vw, 32px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.faq-item + .faq-item {
  border-top: 1px solid #edf0ff;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  padding: 20px 0;
  color: var(--color-dark);
  text-align: left;
  background: transparent;
  border: 0;
  transition: color 0.2s ease;
}

.faq-question:hover,
.faq-item.open .faq-question {
  color: var(--color-primary);
}

.faq-question span {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--color-primary);
  background: rgba(110, 117, 250, 0.1);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item.open .faq-question span {
  color: var(--color-white);
  background: var(--color-primary);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--color-muted);
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 260px;
  padding-bottom: 18px;
  opacity: 1;
}

.cta-section {
  color: var(--color-white);
  text-align: center;
  background: var(--gradient-main);
}

.cta-section h2 {
  max-width: 780px;
  margin: 0 auto 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.cta-section p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

@media (max-width: 920px) {
  .hero-content,
  .featured-card {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero p,
  .hero-title {
    margin-inline: auto;
  }

  .hero img {
    max-height: 440px;
  }

  .featured-image {
    min-height: 300px;
  }

  .why-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 48px;
  }

  .featured-image {
    min-height: 230px;
  }

  .featured-rating {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn-secondary,
  .hero-button,
  .cta-button {
    width: 100%;
  }
}
