:root {
  --bg: #050914;
  --card: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.14);
  --text: #f5f8ff;
  --muted: #9aa9c0;
  --blue: #5aa7ff;
  --violet: #8067ff;
  --green: #34d399;
  --red: #ff5b7d;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  filter: blur(35px);
  opacity: .5;
}

.glow-a {
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(90,167,255,.55), transparent 70%);
}

.glow-b {
  right: -220px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(128,103,255,.5), transparent 70%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 85%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.page.small {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 64px;
}

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

.logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 45px rgba(90,167,255,.25);
  font-size: 24px;
  font-weight: 900;
}

h1 {
  font-size: 32px;
  letter-spacing: -.06em;
}

.brand p,
.hero-text,
.hint,
.advantages p,
.faq p,
.order-card span {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: #cbffdf;
  font-weight: 800;
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(52,211,153,.14);
}

.hero {
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(44px, 8vw, 84px);
  line-height: .92;
  letter-spacing: -.08em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff, #b8dcff 45%, #bfb6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  font-size: 18px;
  line-height: 1.65;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0 24px;
}

.plan {
  position: relative;
  min-height: 180px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 24px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.plan:hover,
.plan.active {
  transform: translateY(-4px);
  border-color: rgba(90,167,255,.65);
  background: rgba(90,167,255,.12);
}

.plan-title {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 20px;
}

.plan strong {
  display: block;
  font-size: 42px;
  letter-spacing: -.06em;
  margin-bottom: 8px;
}

.plan small {
  color: var(--muted);
  font-size: 15px;
}

.tag {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #050914;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.checkout,
.panel {
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  backdrop-filter: blur(22px);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.checkout {
  padding: 26px;
}

.panel {
  width: min(620px, 100%);
  padding: 34px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  outline: none;
  border-radius: 18px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(5,9,20,.72);
  font: inherit;
}

input:focus {
  border-color: rgba(90,167,255,.7);
  box-shadow: 0 0 0 4px rgba(90,167,255,.12);
}

button,
.pay-link {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 45px rgba(90,167,255,.24);
  font-weight: 900;
  cursor: pointer;
  font-size: 16px;
}

button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.result {
  display: none;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 800;
}

.result.ok {
  display: block;
  color: #cbffdf;
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.2);
}

.result.err {
  display: block;
  color: #ffd2dc;
  background: rgba(255,91,125,.1);
  border: 1px solid rgba(255,91,125,.2);
}

.advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.advantages div,
.faq,
.order-card,
.success-box {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  padding: 18px;
}

.advantages strong {
  display: block;
  margin-bottom: 8px;
}

.advantages p,
.faq p {
  line-height: 1.55;
  font-size: 14px;
}

.faq {
  margin-top: 24px;
}

.faq h3 {
  font-size: 28px;
  margin-bottom: 14px;
}

details {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-top: 10px;
}

.back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 22px;
}

.order-card {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.order-card p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.success-box {
  margin-top: 20px;
}

.success-box p {
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.sub-link {
  word-break: break-all;
  color: #cbffdf !important;
}

@media (max-width: 820px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 44px;
  }

  .plans,
  .advantages {
    grid-template-columns: 1fr;
  }

  .plan {
    min-height: 150px;
  }
}
