:root {
  --fb: #1877f2;
  --fb-dark: #0f5fd1;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6fb;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #b45309;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Noto Sans", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--fb); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 640px; margin: 0 auto; padding: 16px;
}
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand::first-letter { color: var(--fb); }
.lang-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink);
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 24px; }

.hero { text-align: center; padding: 24px 0 28px; }
.hero h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: #374151; margin: 0 0 24px; }

.card {
  background: var(--card); border-radius: var(--radius); padding: 22px;
  margin: 0 0 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(17,24,39,.06);
}
.card h1 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; }
.card h2 { font-size: 18px; margin: 0 0 12px; }

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; padding: 12px 20px; margin-top: 12px;
  border-radius: 12px; border: 0; font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer;
}
.btn-fb { background: var(--fb); color: #fff; }
.btn-fb:hover { background: var(--fb-dark); }
.btn-fb:disabled { opacity: .6; cursor: progress; }
.btn-big { min-height: 60px; font-size: 19px; max-width: 420px; box-shadow: 0 8px 24px rgba(24,119,242,.35); }
.btn-ghost { background: transparent; color: var(--fb); border: 1px solid var(--line); }

.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 0 0 10px; }

.trust { list-style: none; margin: 0; padding: 0; }
.trust li { position: relative; padding: 0 0 10px 30px; }
.trust li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #dcfce7; color: var(--ok); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.page-list { display: grid; gap: 10px; margin: 16px 0 4px; }
.page-option {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer;
}
.page-option:has(input:checked) { border-color: var(--fb); background: #f0f6ff; }
.page-option input { width: 20px; height: 20px; accent-color: var(--fb); flex: none; }
.page-option img, .page-option .avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; object-fit: cover; background: #e5e7eb; }
.page-text { display: flex; flex-direction: column; min-width: 0; }
.page-text strong { overflow-wrap: anywhere; }
.page-option.disabled { opacity: .6; cursor: not-allowed; background: #fafafa; }
.warn { color: var(--warn); }

.icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800;
}
.icon-ok { background: #dcfce7; color: var(--ok); }
.icon-warn { background: #fef3c7; color: var(--warn); }
.tips { text-align: left; color: #374151; }

.doc h1 { font-size: 28px; }
.doc h2 { font-size: 19px; margin-top: 24px; }
.doc p, .doc li { color: #374151; }

.section-title { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 20px 0 0; }
.results { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.result { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.r-icon { flex: none; width: 24px; text-align: center; font-weight: 800; }
.result.ok .r-icon { color: var(--ok); }
.result.pending .r-icon { color: var(--warn); }
.result.failed .r-icon { color: #dc2626; }

.footer { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 16px 32px; }
.footer a { color: var(--muted); }
