:root {
  --gold: #fcac30;
  --gold-deep: #b8860b;
  --black: #000;
  --surface: #111;
  --surface-soft: #191919;
  --border: rgba(252, 172, 48, 0.35);
  --text: #fff;
  --muted: #c7c7c7;
  --danger: #ffb4b4;
  --success: #c8f7d2;
  --radius-lg: 24px;
  --radius-md: 14px;
  font-family: Arial, Helvetica, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050505;
  color: var(--text);
}

button,
input {
  font: inherit;
}

a {
  color: var(--gold);
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(252, 172, 48, 0.17), transparent 38%),
    linear-gradient(145deg, #141414, #020202 70%);
}

.hero__inner {
  padding-block: 72px 56px;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 8vw, 5rem);
  line-height: 0.98;
}

.hero__copy {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.content {
  padding-block: 36px 72px;
}

.intro-card,
.member-card,
.agreement-card,
.order-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #141414, #0a0a0a);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.intro-card {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.intro-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

.intro-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.validity {
  min-width: 230px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(252, 172, 48, 0.1);
}

.validity span,
.validity strong {
  display: block;
}

.validity span {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.choice-fieldset {
  margin: 38px 0 0;
  padding: 0;
  border: 0;
}

.choice-fieldset legend {
  margin-bottom: 14px;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #353535;
  border-radius: 20px;
  background: var(--surface);
  cursor: pointer;
  transition: 160ms ease;
}

.choice-card:hover,
.choice-card:focus-within {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.choice-card.is-selected {
  border-color: var(--gold);
  background:
    radial-gradient(circle at top right, rgba(252, 172, 48, 0.2), transparent 50%),
    var(--surface);
  box-shadow: 0 0 0 2px rgba(252, 172, 48, 0.13);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card__dial {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 900;
}

.choice-card.is-selected .choice-card__dial {
  background: var(--gold);
  color: #000;
}

.choice-card__text strong,
.choice-card__text small {
  display: block;
}

.choice-card__text strong {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.choice-card__text small {
  color: var(--muted);
}

.choice-card__price {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 900;
}

.member-forms {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.member-card {
  padding: 26px;
  animation: reveal 220ms ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.member-card__heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.member-number {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  font-weight: 900;
}

.member-card h3,
.member-card p {
  margin-bottom: 0;
}

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

.form-grid label > span {
  display: block;
  margin-bottom: 8px;
  color: #e5e5e5;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-grid input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #3e3e3e;
  border-radius: 11px;
  outline: none;
  background: #090909;
  color: #fff;
}

.form-grid input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252, 172, 48, 0.14);
}

.form-grid input[aria-invalid="true"] {
  border-color: #e56f6f;
}

.agreement-card {
  margin-top: 20px;
  padding: 22px 24px;
}

.checkbox-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--gold);
}

.order-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 22px 24px;
}

.order-summary span,
.order-summary strong {
  display: block;
}

.order-summary span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.order-summary__total {
  text-align: right;
}

.order-summary__total strong {
  color: var(--gold);
  font-size: 1.55rem;
}

.message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  line-height: 1.5;
}

.message.is-error {
  border: 1px solid rgba(255, 180, 180, 0.5);
  background: rgba(125, 20, 20, 0.22);
  color: var(--danger);
}

.message.is-success {
  border: 1px solid rgba(200, 247, 210, 0.45);
  background: rgba(28, 110, 47, 0.2);
  color: var(--success);
}

.primary-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 58px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  background: var(--gold);
  color: #000;
  font-weight: 900;
  cursor: pointer;
  transition: 160ms ease;
}

.primary-button:hover:not(:disabled) {
  background: #ffc15e;
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.28);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

.primary-button.is-loading .button-spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.payment-note {
  margin: 14px 0 0;
  color: #9e9e9e;
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 700px) {
  .hero__inner {
    padding-block: 56px 42px;
  }

  .intro-card,
  .order-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .validity {
    min-width: 0;
  }

  .choice-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 96px;
  }

  .order-summary__total {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .shell {
    width: min(100% - 20px, 920px);
  }

  .intro-card,
  .member-card,
  .agreement-card,
  .order-summary {
    padding: 20px;
    border-radius: 18px;
  }

  .choice-card {
    grid-template-columns: auto 1fr;
  }

  .choice-card__price {
    grid-column: 2;
  }
}
