.catalog-course--with-seats {
  display: flex;
  flex-direction: column;
}

.catalog-course--with-seats p {
  min-height: 56px;
}

.course-seat-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: #58708d;
  font-size: 12px;
  font-weight: 700;
}

.seat-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.seat-icons--compact {
  max-width: 104px;
}

.seat-icons--dense {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.seat {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #b9d9ef;
  background: #eef8ff;
}

.seat--filled {
  border-color: #1687e8;
  background: linear-gradient(135deg, #1687e8, #26c6da);
  box-shadow: 0 4px 10px rgba(22, 135, 232, .16);
}

.seat--empty {
  background: #fff;
}

.catalog-course--with-seats footer {
  margin-top: auto;
}

.course-profile-page main {
  padding-top: 22px;
}

.course-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: stretch;
  margin-top: 18px;
}

.course-profile-hero__copy,
.course-profile-card,
.course-cohort-card,
.course-profile-details article,
.course-profile-cta {
  border: 1px solid #d8e8f5;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 45px rgba(13, 47, 83, .08);
}

.course-profile-hero__copy {
  padding: 34px;
  background:
    radial-gradient(circle at 94% 12%, rgba(38, 198, 218, .18), transparent 28%),
    linear-gradient(135deg, #f2fbff, #fff);
}

.course-back-link,
.course-profile-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #1687e8;
  font-size: 13px;
  font-weight: 800;
}

.course-back-link {
  margin-right: 14px;
}

.course-profile-kicker {
  color: #22b882;
}

.course-profile-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #071f3d;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .96;
  letter-spacing: 0;
}

.course-profile-hero__copy > p {
  max-width: 690px;
  margin: 18px 0 0;
  color: #58708d;
  font-size: 17px;
  line-height: 1.55;
}

.course-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.course-profile-stats article {
  padding: 16px;
  border: 1px solid #d8e8f5;
  border-radius: 16px;
  background: #fff;
}

.course-profile-stats strong {
  display: block;
  color: #071f3d;
  font-size: 20px;
}

.course-profile-stats span {
  color: #7890a8;
  font-size: 12px;
  font-weight: 700;
}

.course-profile-card {
  overflow: hidden;
}

.course-profile-card > img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.course-profile-card__body {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.course-profile-card__body div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.course-profile-card__body span,
.capacity-row span,
.cohort-status-row,
.cohort-facts dt {
  color: #7a90a9;
  font-size: 12px;
  font-weight: 800;
}

.course-profile-card__body strong {
  color: #071f3d;
  font-size: 30px;
  line-height: 1;
}

.course-profile-card__body p {
  margin: 0;
  color: #58708d;
  font-size: 14px;
  line-height: 1.45;
}

.course-capacity,
.cohort-seats {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d8e8f5;
  border-radius: 16px;
  background: #f8fcff;
}

.capacity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.capacity-row b {
  color: #071f3d;
  font-size: 14px;
}

.course-cohorts-section .course-section__head {
  align-items: flex-end;
}

.course-cohorts-section .course-section__head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: #607891;
  font-size: 14px;
  line-height: 1.45;
}

.course-cohort-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-cohort-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.course-cohort-card.is-recommended {
  border-color: #9fdcff;
  box-shadow: 0 22px 52px rgba(22, 135, 232, .14);
}

.course-cohort-card.is-sold-out {
  opacity: .78;
}

.cohort-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cohort-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf7ff;
  color: #1687e8;
  font-size: 11px;
  font-weight: 900;
}

.cohort-pill--sold {
  background: #fff1eb;
  color: #ff6b2b;
}

.cohort-pill--weekend {
  background: #edf9f4;
  color: #22b882;
}

.cohort-pill--kids {
  background: #f2efff;
  color: #815af5;
}

.cohort-live {
  color: #22b882;
}

.cohort-teacher {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
}

.cohort-teacher img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 18px;
}

.cohort-teacher h3 {
  margin: 0;
  color: #071f3d;
  font-size: 17px;
}

.cohort-teacher p {
  margin: 4px 0 0;
  color: #607891;
  font-size: 13px;
  line-height: 1.35;
}

.cohort-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cohort-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf4fb;
}

.cohort-facts dd {
  margin: 0;
  color: #071f3d;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.cohort-button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: #ff6b2b;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(255, 107, 43, .22);
}

.cohort-button--disabled {
  background: #d9e6f1;
  color: #7a90a9;
  box-shadow: none;
  cursor: not-allowed;
}

.course-profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 18px;
  margin-top: 32px;
}

.course-profile-details article {
  padding: 24px;
}

.course-profile-details h2,
.course-profile-cta h2 {
  margin: 0 0 14px;
  color: #071f3d;
  font-size: 24px;
}

.course-profile-details ul,
.course-profile-details ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #58708d;
  font-size: 14px;
  line-height: 1.45;
}

.course-profile-note p,
.course-profile-cta p {
  margin: 0;
  color: #607891;
  line-height: 1.5;
}

.course-profile-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #eaf8ff, #fff);
}

.course-profile-cta .btn {
  min-width: 180px;
  justify-content: center;
}

@media (max-width: 1180px) {
  .course-profile-hero,
  .course-profile-details {
    grid-template-columns: 1fr;
  }

  .course-cohort-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .course-profile-hero__copy {
    padding: 24px;
  }

  .course-profile-stats,
  .course-cohort-grid {
    grid-template-columns: 1fr;
  }

  .course-profile-card > img {
    height: 190px;
  }

  .course-profile-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-profile-cta .btn {
    width: 100%;
  }
}
