/* TUR — монохромный, спокойный интерфейс оплаты */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --fill: rgba(0, 0, 0, 0.04);
  --fill-hover: rgba(0, 0, 0, 0.07);
  --accent: #1d1d1f;
  --accent-ink: #ffffff;
  --ok: #1d1d1f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --ink: #f5f5f7;
    --muted: #98989d;
    --line: rgba(255, 255, 255, 0.12);
    --fill: rgba(255, 255, 255, 0.06);
    --fill-hover: rgba(255, 255, 255, 0.1);
    --accent: #f5f5f7;
    --accent-ink: #000000;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  padding: 48px 20px 64px;
}

.wrap {
  width: 100%;
  max-width: 460px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.brand h1 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border: 1px solid var(--line);
}

h2 {
  font-size: 26px;
  letter-spacing: -0.04em;
  font-weight: 650;
  margin-bottom: 8px;
}

.lede {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin-bottom: 24px;
}

.plans {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.plan {
  appearance: none;
  background: var(--fill);
  border: 1.5px solid transparent;
  border-radius: 16px;
  padding: 16px 16px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.plan:hover { background: var(--fill-hover); }

.plan[aria-pressed="true"] {
  border-color: var(--ink);
  background: transparent;
}

.plan .name { font-weight: 600; font-size: 15px; }
.plan .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.plan .price { font-weight: 650; font-size: 16px; letter-spacing: -0.02em; text-align: right; }
.plan .save {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  margin-top: 4px;
  color: var(--muted);
}

label.field {
  display: block;
  margin-bottom: 20px;
}

label.field span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: var(--ink);
  background: transparent;
}

.actions { display: grid; gap: 10px; }

button.primary,
button.secondary,
a.button {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 580;
  cursor: pointer;
  border: none;
}

button.primary, a.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

button.secondary, a.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

.note, .error, .status {
  font-size: 13px;
  line-height: 1.45;
  margin-top: 16px;
  color: var(--muted);
}

.error { color: var(--ink); }

.status-page {
  text-align: center;
  padding: 40px 24px 28px;
}

.status-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 22px;
}

.status-mark.spin {
  border-color: var(--line);
  border-top-color: var(--ink);
  animation: spin 0.9s linear infinite;
  font-size: 0;
}

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

.hidden { display: none !important; }

footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
