@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f5fa;
  --card: #ffffff;
  --ink: #0b1530;
  --muted: #5a6684;
  --line: #e2e7f1;
  --field: #f6f8fc;
  --blue: #1f4fd6;
  --blue-deep: #163aa3;
  --blue-soft: #eaf0ff;
  --hero-a: #0a1a44;
  --hero-b: #16358f;
  --gold: #f2b544;
  --error-bg: #fdeceb;
  --error-ink: #a1261d;
  --ok: #129a5c;
  --shadow: 0 1px 2px rgba(11, 21, 48, 0.05), 0 12px 32px -8px rgba(11, 21, 48, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060c1d;
    --card: #0e1833;
    --ink: #edf1fb;
    --muted: #93a0c2;
    --line: #1c2849;
    --field: #0a1329;
    --blue: #4a7bff;
    --blue-deep: #3565ea;
    --blue-soft: #14224a;
    --hero-a: #050b1c;
    --hero-b: #102867;
    --error-bg: #3b1715;
    --error-ink: #ffb1a8;
    --ok: #3ccf8e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-optical-sizing: auto;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Header band */

.hero {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 92px;
  background: radial-gradient(120% 90% at 100% 0%, var(--hero-b) 0%, var(--hero-a) 62%);
  color: #fff;
}

.hero-arcs {
  position: absolute;
  right: -70px;
  top: -40px;
  width: 280px;
  height: 280px;
  opacity: 0.14;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand svg { width: 34px; height: 34px; flex: none; }

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-name span { font-weight: 400; opacity: 0.75; }

.hero h1 {
  margin: 28px 0 4px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}

/* Content */

.wrap {
  position: relative;
  max-width: 420px;
  margin: -64px auto 0;
  padding: 0 16px 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.card + .card, .card + .section { margin-top: 14px; }

.label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.label .en { text-transform: none; letter-spacing: 0; font-weight: 400; }

.en { color: var(--muted); font-weight: 400; }

.code-input {
  display: block;
  width: 100%;
  height: 62px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--field);
  color: var(--ink);
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.code-input::placeholder { color: var(--muted); opacity: 0.35; }

.code-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.btn {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px -8px rgba(31, 79, 214, 0.7);
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 56px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent;
  box-shadow: none;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  line-height: 53px;
}

.btn .en { color: inherit; opacity: 0.75; }

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--error-bg);
  color: var(--error-ink);
  font-size: 14px;
}

.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Packages */

.section-title {
  margin: 22px 4px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title .en { text-transform: none; letter-spacing: 0; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan {
  position: relative;
  padding: 18px 16px 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 18px;
}

.plan.best {
  border-color: var(--blue);
  box-shadow: 0 10px 28px -12px rgba(31, 79, 214, 0.55);
}

.badge {
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: #3a2600;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-sub { font-size: 13px; color: var(--muted); }

.plan-price {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.plan-price b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Buy row */

.buy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
}

.buy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.buy-icon svg { width: 20px; height: 20px; }

.buy-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }

.buy-number {
  display: block;
  margin-top: 1px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.buy-arrow { color: var(--muted); font-size: 20px; }

/* Status */

.center { text-align: center; }

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(18, 154, 92, 0.14);
  color: var(--ok);
}

.check svg { width: 28px; height: 28px; }

.card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card h2 + .en { display: block; margin: 2px 0 16px; font-size: 14px; }

.voucher {
  margin: 4px 0 16px;
  padding: 14px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: var(--field);
  text-align: center;
}

.voucher small { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.voucher b {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stat small { display: block; font-size: 13px; color: var(--muted); }

.stat b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.foot {
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}
