.bgc-course {
  --bgc-wine: #6f1732;
  --bgc-wine-dark: #42101f;
  --bgc-cream: #fffaf5;
  --bgc-gold: #c9904b;
  --bgc-ink: #261820;
  position: relative;
  isolation: isolate;
  max-width: 1120px;
  margin: 48px auto 72px;
  padding: clamp(22px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(111, 23, 50, .13);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff 0%, var(--bgc-cream) 100%);
  box-shadow: 0 24px 70px rgba(60, 18, 31, .12);
  color: var(--bgc-ink);
  font-family: inherit;
}

.bgc-course__glow {
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  top: -260px;
  right: -130px;
  border-radius: 50%;
  background: rgba(201, 144, 75, .18);
  filter: blur(2px);
}

.bgc-course__hero { max-width: 760px; }
.bgc-course__eyebrow,
.bgc-course__label {
  margin: 0 0 8px;
  color: var(--bgc-wine);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.bgc-course h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(36px, 6vw, 66px);
  line-height: .98;
  letter-spacing: -.045em;
}
.bgc-course__lead {
  max-width: 690px;
  margin: 22px 0 28px;
  color: #66535b;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}
.bgc-course__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bgc-course__facts div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(111, 23, 50, .11);
  border-radius: 16px;
  background: rgba(255, 255, 255, .75);
}
.bgc-course__facts strong,
.bgc-course__facts span { display: block; }
.bgc-course__facts strong { color: var(--bgc-wine); font-size: 22px; }
.bgc-course__facts span { margin-top: 3px; color: #705e65; font-size: 13px; line-height: 1.3; }
.bgc-course__time {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin: 16px 0 0;
  font-size: 14px;
}
.bgc-course__time strong { color: var(--bgc-wine); }

.bgc-course__panel {
  margin-top: 34px;
  padding: clamp(18px, 4vw, 34px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(45, 19, 29, .08);
}
.bgc-course__currency {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #6d6468;
}
.bgc-course__currency-buttons {
  display: inline-flex;
  padding: 3px;
  border-radius: 24px;
  background: #f3eff0;
}
.bgc-course__currency button {
  width: 38px;
  height: 34px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #6d6468;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.bgc-course__currency button[aria-pressed="true"] {
  background: var(--bgc-wine);
  color: #fff;
}
.bgc-course input:focus-visible,
.bgc-course button:focus-visible,
.bgc-course a:focus-visible { outline: 3px solid rgba(111, 23, 50, .28); outline-offset: 2px; }
.bgc-course__selection {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin: 28px 0 6px;
}
.bgc-course__selection h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); }
.bgc-course__selection p:not(.bgc-course__label) { max-width: 650px; margin: 0; color: #705e65; line-height: 1.5; }
.bgc-course__price { flex: 0 0 auto; text-align: right; }
.bgc-course__price strong { display: block; color: var(--bgc-wine); font-size: 28px; white-space: nowrap; }
.bgc-course__price span { display: block; max-width: 170px; color: #75636a; font-size: 12px; line-height: 1.3; }
.bgc-course__status {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f5f0f2;
  line-height: 1.45;
}
.bgc-course__status:empty { display: none; }
.bgc-course__status[data-kind="error"] { background: #fff0ef; color: #8b2222; }
.bgc-course__status[data-kind="success"] { background: #edf8f0; color: #216837; }
.bgc-course__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.bgc-course__fields label > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
.bgc-course__fields input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #d9ccd1;
  border-radius: 10px;
  background: #fff;
  color: var(--bgc-ink);
  font: inherit;
}
.bgc-course__honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.bgc-course__consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: #67545c; font-size: 13px; line-height: 1.45; }
.bgc-course__consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--bgc-wine); }
.bgc-course__consent a { color: var(--bgc-wine); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.bgc-course__submit,
.bgc-course__retry {
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bgc-wine);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}
.bgc-course__submit { width: 100%; }
.bgc-course__submit:hover,
.bgc-course__retry:hover { background: var(--bgc-wine-dark); }
.bgc-course__submit:disabled { cursor: wait; opacity: .65; }
.bgc-course__manager-note { margin: 12px auto 0; max-width: 700px; color: #75636a; font-size: 12px; line-height: 1.5; text-align: center; }

@media (max-width: 680px) {
  .bgc-course { margin: 20px 12px 42px; border-radius: 20px; }
  .bgc-course__facts { grid-template-columns: 1fr; }
  .bgc-course__facts div { min-height: 0; }
  .bgc-course__fields { grid-template-columns: 1fr; }
  .bgc-course__selection { display: block; }
  .bgc-course__price { margin-top: 16px; text-align: left; }
  .bgc-course__price span { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bgc-course__currency button { transition: none; }
}
