.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.accent {
  color: var(--crimson);
}
.req {
  color: var(--crimson);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.05s ease, background 0.2s ease, opacity 0.2s ease;
  padding: 12px 22px;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn--primary {
  background: var(--crimson);
  color: #fff;
}
.btn--primary:hover:not(:disabled) {
  background: var(--crimson-dark);
}
.btn--outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn--outline:hover {
  background: var(--bg-soft);
}
.btn--pill {
  border-radius: 30px;
  padding: 11px 22px;
}
.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
  border-radius: 12px;
}
.btn--block {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 48px;
  background: #f7f7f7;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 10px rgba(18, 36, 91, 0.06);
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
}
.logo__img {
  height: 84px;
  width: auto;
  display: block;
}
.logo--compact .logo__img {
  height: 56px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 4px;
}
.nav__link--active {
  color: var(--crimson);
  border-bottom: 2px solid var(--crimson);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 40px;
  align-items: center;
}
.hero__title {
  font-size: 66px;
  line-height: 1.02;
  letter-spacing: -2px;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: 19px;
  color: var(--ink);
  max-width: 460px;
  margin-bottom: 26px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
}
.chip__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--crimson);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}
.chip--accent {
  color: var(--crimson);
  border-color: rgba(214, 31, 92, 0.35);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-course-image {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #fff;
  border: 1px solid rgba(18, 36, 91, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(18, 36, 91, 0.1);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hero-course-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(18, 36, 91, 0.16);
}
.hero-course-image:focus-visible {
  outline: 3px solid rgba(214, 31, 92, 0.35);
  outline-offset: 3px;
}
.hero-course-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Register ---------- */
.register {
  background: var(--bg-soft);
  padding: 52px 40px 60px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.section-title {
  font-size: 34px;
  letter-spacing: -0.5px;
}
.section-lead {
  color: var(--muted);
  margin: 8px 0 30px;
  font-size: 16px;
}
.register__grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 26px;
  align-items: start;
}
.form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.form input {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
.form input:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(214, 31, 92, 0.12);
}
.select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 40px 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background-color: #fff;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2312245b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.select:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(214, 31, 92, 0.12);
}
.select:required:invalid {
  color: var(--muted);
}
.select option {
  color: var(--ink);
}

.phone {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.phone:focus-within {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(214, 31, 92, 0.12);
}
.phone__code {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.phone input {
  border: none;
  border-radius: 0;
}
.phone input:focus {
  box-shadow: none;
}

.group {
  border: none;
  padding: 0;
  margin: 0;
}
.group legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  padding: 0;
  margin-bottom: 10px;
}
.option-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.option-row--4 {
  grid-template-columns: repeat(4, 1fr);
}
.option {
  position: relative;
  display: flex;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option input {
  margin-top: 2px;
  accent-color: var(--crimson);
}
.option--selected {
  border-color: var(--crimson);
  background: rgba(214, 31, 92, 0.04);
}
.option__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.option__label {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.option__desc {
  font-size: 12.5px;
  color: var(--muted);
}
.option--course {
  flex-direction: column;
  text-align: center;
  align-items: center;
}
.option--course .option__body {
  align-items: center;
}

.form-error {
  color: var(--crimson-dark);
  background: rgba(214, 31, 92, 0.08);
  border: 1px solid rgba(214, 31, 92, 0.25);
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Summary ---------- */
.summary {
  position: sticky;
  top: 110px;
  padding: 0;
  overflow: hidden;
  border-color: #dce4f1;
  box-shadow: 0 16px 38px rgba(18, 36, 91, 0.1);
}
.summary__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, var(--navy) 0%, #19367e 100%);
}
.summary__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
}
.summary h3 {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}
.summary__eyebrow {
  margin: 0 0 3px;
  color: #b9ccff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.summary__promo {
  position: relative;
  display: grid;
  gap: 1px;
  margin: 18px 18px 12px;
  padding: 14px 16px 14px 108px;
  overflow: hidden;
  color: var(--navy);
  background: linear-gradient(105deg, #fff0f5 0%, #fff8fb 100%);
  border: 1px solid rgba(214, 31, 92, 0.18);
  border-radius: 12px;
}
.summary__promo-label {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 92px;
  padding: 12px;
  color: #fff;
  background: var(--crimson);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}
.summary__promo strong {
  font-size: 15px;
}
.summary__promo small {
  color: var(--muted);
  font-size: 11px;
}
.course-fees {
  list-style: none;
  padding: 0 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.course-fee {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px 13px;
  color: var(--navy);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.course-fee:hover {
  border-color: #afbdd8;
  transform: translateY(-1px);
}
.course-fee:focus-visible {
  outline: 3px solid rgba(214, 31, 92, 0.18);
  outline-offset: 2px;
}
.course-fee--selected {
  background: linear-gradient(100deg, rgba(214, 31, 92, 0.055), #fff 58%);
  border-color: var(--crimson);
  box-shadow: 0 7px 18px rgba(214, 31, 92, 0.1);
}
.course-fee__top,
.course-fee__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.course-fee__name {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.25;
}
.course-fee__saving {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #137a3d;
  background: #eaf8ef;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}
.course-fee__prices {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.course-fee__prices strong {
  color: var(--crimson);
  font-size: 18px;
  line-height: 1;
}
.course-fee__prices strong small {
  font-size: 9px;
  letter-spacing: 0.04em;
}
.course-fee__prices s {
  color: var(--muted);
  font-size: 10px;
}
.course-fee__choose {
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 800;
}
.course-fee--selected .course-fee__choose {
  color: var(--crimson);
}
.summary__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 16px 18px;
}
.summary__benefits span {
  padding: 9px 5px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 9px;
  font-size: 9.5px;
  line-height: 1.25;
  text-align: center;
}
.summary__benefits strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 11px;
}
.summary__note {
  padding: 14px 18px 16px;
  margin: 0;
  color: var(--muted);
  background: #fbfcfe;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  text-align: center;
  line-height: 1.45;
}

/* ---------- Success ---------- */
.success {
  padding: 44px 40px 60px;
  background: var(--bg);
}
.steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin: 0 0 36px;
}
.steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  position: relative;
  padding: 0 60px;
}
.steps__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: var(--navy);
}
.steps__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 1;
}
.steps__item.current {
  color: var(--crimson);
}
.steps__item.current .steps__num {
  background: var(--crimson);
}

.success__card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}
.success__check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid #16a34a;
  color: #16a34a;
  font-size: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.1);
}
.success__title {
  font-size: 34px;
  margin-bottom: 10px;
}
.success__lead {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.success__muted {
  color: var(--muted);
  margin-bottom: 26px;
}
.success__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 26px;
}
.success__table th,
.success__table td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.success__table tr:last-child th,
.success__table tr:last-child td {
  border-bottom: none;
}
.success__table th {
  color: var(--navy);
  font-weight: 700;
  width: 40%;
  background: var(--bg-soft);
}
.success__table td {
  color: var(--ink);
}
.success__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.success__actions .btn {
  padding: 14px 26px;
}
.success__email {
  text-align: center;
  color: var(--muted);
  margin-top: 26px;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  background: var(--navy-deep);
  color: #fff;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}
.footer__brand {
  font-weight: 700;
}
.footer__sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.3);
}
.footer__note {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- WhatsApp floating button ---------- */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero,
  .register__grid {
    grid-template-columns: 1fr;
  }
  .hero__title {
    font-size: 48px;
  }
  .option-row,
  .option-row--4 {
    grid-template-columns: 1fr 1fr;
  }
  .summary {
    position: static;
  }
}
@media (max-width: 560px) {
  .header,
  .hero,
  .register,
  .success {
    padding-left: 20px;
    padding-right: 20px;
  }
  .field-row,
  .hero__grid,
  .option-row,
  .option-row--4 {
    grid-template-columns: 1fr;
  }
  .hero__title {
    font-size: 40px;
  }
  .steps__item {
    padding: 0 24px;
  }
  .success__actions {
    flex-direction: column;
  }
}
