:root {
  color-scheme: light;
  --ink: #17213e;
  --muted: #71809b;
  --line: #e7eaf2;
  --violet: #7051e8;
  --violet-soft: #f2efff;
  --surface: #fff;
  --shadow: 0 18px 55px rgba(37, 49, 93, .065);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f4f6fb; color: var(--ink); font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button { font: inherit; }
a { color: #6245d4; text-underline-offset: 2px; }
.hidden { display: none !important; }
.page { max-width: 760px; margin: 0 auto; padding: 18px 16px calc(30px + env(safe-area-inset-bottom)); }

.hero { position: relative; overflow: hidden; min-height: 265px; padding: 23px 26px 26px; border-radius: 26px; color: #fff; background: radial-gradient(circle at 82% 12%, #7359e7 0, transparent 29%), linear-gradient(125deg, #161f43 10%, #273768 59%, #413e9c 100%); box-shadow: 0 22px 60px rgba(24, 34, 78, .2); }
.hero::after { content: "✦"; position: absolute; right: 7%; bottom: -62px; color: rgba(255,255,255,.075); font-size: 230px; line-height: 1; transform: rotate(-14deg); pointer-events: none; }
.hero-glow { position: absolute; width: 290px; height: 290px; right: -65px; top: -110px; border-radius: 50%; background: rgba(195, 146, 255, .17); filter: blur(10px); pointer-events: none; }
.hero-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; letter-spacing: .12em; font-size: 11px; font-weight: 800; }
.brand-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: #fff; font-size: 19px; background: rgba(255,255,255,.17); }
.season { margin-left: auto; padding: 5px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #e4e4ff; font-size: 10px; white-space: nowrap; }
.hero h1 { position: relative; z-index: 1; margin: 28px 0 11px; font-size: clamp(35px, 7vw, 56px); line-height: 1.03; letter-spacing: -.055em; }
.hero h1 span { color: #c8baff; }
.hero p { position: relative; z-index: 1; max-width: 480px; margin: 0; color: #d7def4; font-size: 14px; line-height: 1.55; }
.hero-note { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; margin-top: 19px; color: #dce6ff; font-size: 11px; font-weight: 650; }
.hero-note span { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #1e3861; background: #d4f9e9; font-size: 12px; }

.steps { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 19px 0 22px; color: #8d98af; font-size: 12px; font-weight: 700; }
.steps span { white-space: nowrap; }
.steps span.active { color: #39446b; }
.steps b { color: var(--violet); margin-right: 3px; font-size: 11px; }
.steps i { width: 27px; height: 1px; background: #cbd2e0; }
.panel { margin: 16px 0; padding: 22px; border: 1px solid #e9edf5; border-radius: 23px; background: var(--surface); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-number { display: grid; flex: 0 0 35px; height: 35px; place-items: center; border-radius: 12px; background: var(--violet-soft); color: var(--violet); font-size: 12px; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.subject { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-align: left; font-weight: 700; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s, background .18s; }
.subject:hover, .duration:hover, .payment-button:hover { transform: translateY(-2px); }
.subject.selected, .duration.selected { border-color: #a592f6; background: #f7f5ff; box-shadow: 0 0 0 2px rgba(112,81,232,.1); }
.subject-emoji { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 12px; background: #f2efff; font-size: 20px; }
.subject-name { flex: 1; min-width: 0; }
.subject-check { display: grid; flex: 0 0 19px; height: 19px; place-items: center; border: 1px solid #d7ddeb; border-radius: 50%; color: transparent; font-size: 12px; }
.subject.selected .subject-check { border-color: var(--violet); background: var(--violet); color: #fff; }

.duration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.duration { position: relative; min-height: 106px; padding: 15px 12px; border: 1px solid var(--line); border-radius: 17px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s, background .18s; }
.duration strong { display: block; font-size: 15px; line-height: 1.2; }
.duration small { display: block; margin-top: 10px; color: #5d6882; font-size: 12px; font-weight: 650; }
.duration.selected::after { content: "✓"; position: absolute; top: 10px; right: 11px; display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-size: 11px; }
.duration:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.order-summary { display: grid; gap: 3px; margin-bottom: 15px; padding: 13px 15px; border-radius: 15px; background: #f6f7fb; }
.summary-label { color: #8b95aa; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.order-summary strong { font-size: 14px; }
.payment-buttons { display: grid; gap: 9px; }
.payment-button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 67px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.payment-button:hover { border-color: #b7a8f2; box-shadow: 0 7px 20px rgba(39, 48, 92, .08); }
.payment-button.featured { border-color: #6b51dc; color: #fff; background: linear-gradient(105deg, #6547d7, #8170ec); box-shadow: 0 10px 24px rgba(103, 79, 220, .2); }
.payment-button.featured:hover { box-shadow: 0 14px 28px rgba(103, 79, 220, .25); }
.payment-button:disabled { opacity: .55; cursor: wait; transform: none; }
.payment-icon { display: grid; flex: 0 0 37px; height: 37px; place-items: center; border-radius: 12px; color: #624bd4; background: #f0ecff; font-size: 22px; font-weight: 800; }
.featured .payment-icon { color: #fff; background: rgba(255,255,255,.2); }
.stars-icon { color: #ee9b31; background: #fff5e5; }
.crypto-icon { color: #3973bf; background: #ebf3ff; }
.crypto-bot-icon { color: #2185aa; background: #e8f7fa; font-size: 18px; }
.payment-copy { display: grid; flex: 1; gap: 1px; min-width: 0; }
.payment-copy strong { font-size: 14px; }
.payment-copy small { color: var(--muted); font-size: 11px; line-height: 1.25; }
.featured .payment-copy small { color: #ede9ff; }
.payment-amount { white-space: nowrap; font-size: 14px; font-weight: 800; }
.payment-arrow { color: #9aa4b8; font-size: 20px; }
.featured .payment-arrow { color: #fff; }
.fine-print { margin: 15px 3px 0; color: #8792a7; font-size: 11px; line-height: 1.5; }
.message { min-height: 22px; margin: 15px 4px; color: #606e88; line-height: 1.4; }
.message.error { color: #bd3048; }
.message.success { color: #168367; }
.footer { padding: 12px 4px 15px; color: #909ab0; text-align: center; font-size: 12px; }
.footer a { font-weight: 700; }

button:focus-visible, a:focus-visible { outline: 3px solid #b5a5ff; outline-offset: 3px; }
@media (max-width: 560px) {
  .page { padding: 10px 10px calc(24px + env(safe-area-inset-bottom)); }
  .hero { padding: 21px 20px 23px; border-radius: 21px; }
  .panel { padding: 17px; border-radius: 19px; }
  .steps { gap: 9px; }
  .steps i { width: 16px; }
  .duration-grid { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
  .duration { padding: 12px 9px; min-height: 100px; }
  .duration strong { font-size: 13px; }
  .duration small { font-size: 11px; }
}
@media (max-width: 370px) {
  .subject-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 35px; }
  .season { font-size: 9px; }
  .duration-grid { grid-template-columns: 1fr; }
  .duration { min-height: 75px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
