:root {
  --bg: #f6f7f9;
  --card: #fff;
  --text: #1b1f24;
  --muted: #5d6670;
  --accent: #2f6fed;
  --accent-dark: #2459c4;
  --error: #c62828;
  --ok: #1e7a3c;
  --line: #dfe3e8;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
[hidden] { display: none !important; }

.top, .foot, main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.top-link, .foot a { color: var(--accent); text-decoration: none; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 48px 0; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }

.card { background: var(--card); border-radius: 16px; padding: 28px; box-shadow: 0 6px 24px rgba(20, 30, 50, .08); }
.card h2 { margin: 0 0 12px; font-size: 22px; }

.tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.tab { flex: 1; border: 0; background: none; padding: 8px; border-radius: 8px; font: inherit; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.wide { width: 100%; }
.link { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }

.error { color: var(--error); margin: 0 0 12px; font-size: 14px; }
.note { color: var(--ok); margin: 0 0 12px; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; text-align: center; margin: 12px 0 0; }
.balance { font-size: 36px; font-weight: 700; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0 64px; }
.features h3 { margin: 0 0 6px; }
.features p { margin: 0; color: var(--muted); }

.foot { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 800px) {
  .hero, .features { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 24px 0; }
}
