:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --line: #e3e8f3;
  --soft: #eef3ff;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --teal: #0f9faa;
  --green: #118a62;
  --red: #c94343;
  --shadow: 0 18px 50px rgba(28, 40, 74, .1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a { color: inherit; }
img, video { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: .02em;
}

.support {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.support a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid { display: grid; gap: 22px; }
.grid.two, .grid.payment { align-items: start; }

.eyebrow {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  margin: 14px 0;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(24px, 3.8vw, 36px);
  line-height: 1.18;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  line-height: 1.28;
  margin-bottom: 8px;
}

p { color: var(--muted); }
.lead { font-size: 18px; max-width: 780px; }
.muted { color: var(--muted); font-size: 13px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(79, 70, 229, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 18px 38px rgba(79, 70, 229, .34);
}

.button.secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid #d8ddff;
  box-shadow: none;
}

.button:disabled {
  opacity: .62;
  cursor: not-allowed;
  transform: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0 0;
}

.step {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
}

.step b { display: block; color: var(--ink); margin-bottom: 2px; }
.step.active { border-color: #bfc5ff; background: #f7f8ff; }

form { display: grid; gap: 14px; }
label { font-size: 13px; font-weight: 900; color: #344054; }

input, textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d8dded;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea { min-height: 92px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid rgba(79, 70, 229, .18); border-color: var(--primary); }

.package-options { display: grid; gap: 10px; }
.package-option {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.package-option input { position: absolute; opacity: 0; pointer-events: none; }
.package-option strong { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 15px; }
.package-option span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.5; }
.package-option:has(input:checked) { border-color: #bfc5ff; background: #f7f8ff; box-shadow: 0 10px 24px rgba(79, 70, 229, .12); }

.summary { display: grid; gap: 10px; margin-top: 16px; }
.row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row b { text-align: right; }
.price { font-size: 42px; line-height: 1; font-weight: 900; color: var(--primary); letter-spacing: 0; margin: 6px 0; }

.checkout-image {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.checkout-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2ff;
}

.qr-card { text-align: center; }
.qr-card img {
  width: min(310px, 100%);
  margin: 14px auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.copy-line { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.copy-line input { margin: 0; font-weight: 900; }
.copy-line button { min-width: 96px; }

.status {
  margin-top: 14px;
  border-radius: 14px;
  padding: 14px;
  background: #fff9eb;
  border: 1px solid #ffe1a5;
  color: #73510b;
  font-size: 14px;
}

.status.success { background: #ecfbf7; border-color: #c7eadf; color: #156b55; }
.status.error { background: #fff5f5; border-color: #ffd8d8; color: #8a2d2d; }

.checklist { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.checklist li { padding-left: 26px; position: relative; color: #4a5568; }
.checklist li:before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

@media (min-width: 860px) {
  .grid.two { grid-template-columns: 1fr .82fr; }
  .grid.payment { grid-template-columns: .8fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 24px, 1120px); padding-top: 18px; }
  .topbar { display: block; }
  .support { margin-top: 8px; }
  .panel { padding: 18px; border-radius: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .copy-line { display: block; }
  .copy-line button { width: 100%; margin-top: 8px; }
  .button { width: 100%; }
}
