:root {
  --navy: #182058;
  --yellow: #ffeb00;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1d2433;
  --muted: #5b6478;
  --ok: #1e8e4e;
  --bad: #c62828;
  --border: #dfe3ee;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

header.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.5px;
}

header.top h1 { margin: 0; font-size: 18px; font-weight: 600; }
header.top .ver { margin-left: auto; opacity: .7; font-size: 13px; }

main {
  max-width: 920px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.login {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
}

.qr {
  width: 300px;
  height: 300px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr img { width: 280px; height: 280px; image-rendering: pixelated; }

ol.steps { padding-left: 20px; margin: 8px 0 16px; }
ol.steps li { margin: 6px 0; }

.status { font-weight: 600; min-height: 24px; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
.muted { color: var(--muted); font-size: 14px; }

.warn {
  background: #fff8d6;
  border: 1px solid #f0d870;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 12px;
}

button, .btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

button.secondary { background: #e6e9f2; color: var(--text); }
button.danger { background: #fbe4e4; color: var(--bad); }
button:disabled { opacity: .5; cursor: default; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

/* Телефон */
body.phone main { max-width: 480px; margin: 16px auto; }
body.phone .card { padding: 20px; }
body.phone button { width: 100%; padding: 16px; font-size: 17px; margin-top: 10px; }
.big { font-size: 20px; font-weight: 700; margin: 0 0 8px; }

video.scan {
  width: 100%;
  border-radius: 12px;
  background: #000;
  margin-top: 12px;
}

.hidden { display: none !important; }

@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; justify-items: center; }
}
