:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #070b13;
  --panel: rgba(17, 25, 42, 0.94);
  --panel-soft: #111c30;
  --border: #2b3b58;
  --text: #f2f6ff;
  --muted: #aab7cc;
  --accent: #2688eb;
  --accent-hover: #3b96ef;
  --success: #59d98e;
  --danger: #ff7c87;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(38, 136, 235, 0.26), transparent 36%),
    radial-gradient(circle at 95% 95%, rgba(65, 212, 146, 0.12), transparent 30%),
    var(--bg);
}

.shell { width: min(100%, 460px); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px 4px;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand img { width: 38px; height: 38px; border-radius: 11px; }

.card {
  padding: clamp(24px, 7vw, 38px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(20px);
}

.eyebrow {
  margin: 0 0 14px;
  color: #83baff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 9vw, 43px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lead { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.features { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.features li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; color: #dce7f8; font-size: 14px; line-height: 1.45; }
.features li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #082318; background: var(--success); font-size: 13px; font-weight: 900; }

.closed-note { display: grid; gap: 5px; margin: 0 0 20px; padding: 14px 15px; border: 1px solid #3d5275; border-radius: 15px; background: #142039; }
.closed-note b { color: #dce9ff; font-size: 13px; }
.closed-note span { color: #9fb0c9; font-size: 12px; line-height: 1.45; }
.consents { display: grid; gap: 11px; margin: 0 0 20px; padding: 0; border: 0; }
.consents legend { margin-bottom: 11px; color: #dce7f8; font-size: 13px; font-weight: 800; }
.consents label { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; color: #c7d3e5; font-size: 12px; line-height: 1.5; cursor: pointer; }
.consents label.optional { margin-top: 2px; padding-top: 12px; border-top: 1px solid #263651; color: #9eacc2; }
.consents input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.consents a { color: #8dc2ff; text-underline-offset: 2px; }
.consents small { color: #73839c; font-size: 11px; line-height: 1.45; }

.button {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.vk-mark { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--accent); background: white; font-size: 12px; font-weight: 950; }

.status { min-height: 22px; margin: 14px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center; }
.status.error { color: var(--danger); }
.status.success { color: var(--success); }

.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 20px 8px 0; color: #74829a; font-size: 11px; line-height: 1.5; text-align: center; }
.legal a { color: #9aabc5; text-underline-offset: 2px; }

.spinner { width: 46px; height: 46px; margin: 4px auto 24px; border: 4px solid #253450; border-top-color: var(--accent); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { margin-top: 24px; }
.field label { display: block; margin: 0 0 9px; color: #dbe7f9; font-size: 14px; font-weight: 750; }
.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  outline: none;
  color: var(--text);
  background: var(--panel-soft);
  font: inherit;
  font-size: 16px;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(38, 136, 235, 0.14); }
.hint { margin: 8px 2px 20px; color: #7f8da4; font-size: 12px; line-height: 1.45; }

@media (max-width: 480px) {
  body { align-items: end; padding-left: 0; padding-right: 0; padding-bottom: 0; }
  .shell { width: 100%; }
  .brand { margin-left: 20px; }
  .card { border-right: 0; border-bottom: 0; border-left: 0; border-radius: 28px 28px 0 0; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.age-mark{position:fixed;z-index:10;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:grid;place-items:center;width:42px;height:42px;border:2px solid currentColor;border-radius:50%;background:#0b111de6;color:#fff;font-size:13px;font-weight:950;box-shadow:0 10px 30px #0008}
