/* course.css — общий шаблон для всех 11 страниц курсов
   (course-hero, benefits, format, steps, price-highlight, other-courses) */

/* course hero */
.course-hero {
  padding: 18px 0 0;
}
.course-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 46px;
  align-items: center;
  margin-top: 24px;
}
.course-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 16px 0;
  color: var(--navy);
}
.course-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
}
.course-tag {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 900;
  font-size: 13px;
  color: var(--navy);
  box-shadow: var(--soft);
}
.course-tag.price {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.course-photo {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
}
.course-photo .badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #fff;
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-weight: 900;
  font-size: 13px;
  color: var(--navy);
}

/* benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--soft);
}
.benefit-card .ico {
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sky);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.benefit-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  color: var(--navy);
  margin: 0 0 8px;
}
.benefit-card p {
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0;
}

/* subject pills */
.subject-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.subject-pills span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 900;
  font-size: 13.5px;
  color: var(--navy);
  box-shadow: var(--soft);
}

/* format strip */
.format-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.format-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  text-align: center;
  box-shadow: var(--soft);
}
.format-item .ico {
  font-size: 30px;
  margin-bottom: 10px;
}
.format-item b {
  display: block;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 4px;
}
.format-item span {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* process (steps) — course page's own visual treatment (numbered circles) */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.process:before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 20px);
  z-index: 0;
}
.step {
  position: relative;
  text-align: center;
}
.step .num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 12px 24px rgba(17, 87, 217, 0.28);
  position: relative;
  z-index: 1;
}
.step h3 {
  font-size: 16.5px;
  margin: 0 0 6px;
  color: var(--navy);
}
.step p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
}

/* price highlight */
.price-highlight {
  background: linear-gradient(135deg, var(--navy), #0d3f9f);
  border-radius: 40px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.price-highlight .name {
  font-weight: 800;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}
.price-highlight .value {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3vw, 38px);
}
.price-highlight.price-sm .value {
  font-size: clamp(24px, 2.6vw, 34px);
}
.price-highlight.price-xs .value {
  font-size: clamp(22px, 2.4vw, 30px);
}
.price-highlight a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* other courses */
.other-courses {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.other-courses a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 900;
  font-size: 13.5px;
  color: var(--navy);
  box-shadow: var(--soft);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.other-courses a:hover {
  background: var(--sky);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .course-hero-grid {
    grid-template-columns: 1fr;
  }
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .format-strip {
    grid-template-columns: 1fr;
  }
  .process {
    grid-template-columns: 1fr 1fr;
  }
  .process:before {
    display: none;
  }
}
@media (max-width: 680px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .course-hero h1 {
    font-size: 32px;
  }
  .price-highlight {
    flex-direction: column;
    align-items: flex-start;
  }
}
