/* ═══════════════════════════════════════════════════════════════════
   Trust Wallet AML — landing styles
   Light theme, Trust blue (#0500FF), pill buttons, card-based flow.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --blue: #0500ff;
  --blue-2: #0094ff;
  --blue-soft: #eaf1ff;
  --ink: #0a0f1f;
  --ink-2: #26304a;
  --muted: #6b7793;
  --line: #e6eaf4;
  --bg: #f6f8fd;
  --card: #ffffff;
  --teal: #26a17b;
  --good: #12b76a;
  --warn: #f79009;
  --bad: #e5484d;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(10, 15, 31, .04), 0 12px 32px rgba(10, 15, 31, .07);
  --shadow-lg: 0 2px 4px rgba(10, 15, 31, .05), 0 28px 64px rgba(10, 15, 31, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* [hidden] должен выигрывать у display:flex/grid в классах (.modal, #modal-form) */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 88% -8%, rgba(0, 148, 255, .13), transparent 60%),
    radial-gradient(760px 520px at 4% 2%, rgba(5, 0, 255, .08), transparent 62%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
strong { font-weight: 700; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─────────────────────────── header ─────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; }
.brand-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft);
  padding: 5px 9px; border-radius: 7px;
}
.hdr-nav { display: flex; gap: 22px; margin-left: 10px; }
.hdr-nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.hdr-nav a:hover { color: var(--blue); text-decoration: none; }
.hdr-live {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; }
.dot-live { box-shadow: 0 0 0 4px rgba(18, 183, 106, .16); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(18, 183, 106, .05); } }

/* ─────────────────────────── hero ───────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 54px;
  align-items: start; padding: 58px 20px 40px;
}
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-soft); border: 1px solid rgba(5, 0, 255, .12);
  padding: 6px 11px; border-radius: 8px; margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 16px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06;
  letter-spacing: -.03em; font-weight: 800;
}
.hl {
  background: linear-gradient(96deg, var(--blue) 8%, var(--blue-2) 52%, #48ff91 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 22px; font-size: 16.5px; color: var(--ink-2); max-width: 33em; }
.points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; color: var(--good); }
.points .ic { color: var(--blue); }
.trust-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trust-row-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.chip {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}

/* ─────────────────────────── card ───────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px;
}
.scan-card { position: sticky; top: 86px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.tag-step {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: #f3f5fb; border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.tag-warn { color: #8a5a00; background: #fff5e6; border-color: #ffe2bb; }

.step { animation: step-in .3s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* network switch */
.net-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.net-opt {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: #f6f8fd; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 10px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.net-opt:hover { border-color: #cdd7ee; }
.net-opt.is-on { background: var(--blue-soft); border-color: rgba(5, 0, 255, .34); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(5, 0, 255, .12); }
.net-ic { width: 20px; height: 20px; }
.net-sub { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.net-opt.is-on .net-sub { color: var(--blue); opacity: .75; }

/* fields */
.field { display: block; margin-bottom: 14px; }
.field-lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.input {
  width: 100%; font-family: var(--mono); font-size: 13.5px; color: var(--ink);
  background: #fbfcff; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: rgba(5, 0, 255, .45); box-shadow: 0 0 0 3px rgba(5, 0, 255, .1); background: #fff; }
.input::placeholder { color: #a9b3c9; }

/* buttons */
.btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-height: 50px; font-family: inherit; font-size: 15px; font-weight: 700;
  border: none; border-radius: 999px; padding: 14px 22px; cursor: pointer;
  transition: transform .1s, opacity .15s, background .15s, box-shadow .15s;
}
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 8px 22px rgba(5, 0, 255, .22); }
.btn-primary:hover { background: #1b13ff; }
.btn-primary:active { transform: scale(.985); }
.btn-primary:disabled { background: #b9c3dc; color: #f4f6fb; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  color: var(--blue); background: #fff; border: 1px solid #d4ddf2;
  box-shadow: none; text-decoration: none;
}
.btn-ghost:hover { background: #f4f7ff; text-decoration: none; }
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after { border-color: rgba(5, 0, 255, .2); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn {
  display: block; width: 100%; margin-top: 12px; background: none; border: none;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; padding: 4px;
}
.link-btn:hover { color: var(--blue); }

.fineprint {
  display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0;
  font-size: 12.5px; color: var(--muted); line-height: 1.45;
}
.fineprint .ic { color: var(--blue); opacity: .8; margin-top: 1px; }

/* ──────────────────────── connected step ─────────────────────── */
.wallet-row {
  display: flex; align-items: center; gap: 12px;
  background: #f8faff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px;
}
.wallet-ic { width: 34px; height: 34px; flex: 0 0 auto; }
.wallet-main { min-width: 0; flex: 1; }
.wallet-addr { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; }
.badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft); padding: 3px 8px; border-radius: 6px;
}
.copy-btn {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-2); cursor: pointer;
}
.copy-btn:hover { border-color: #cdd7ee; color: var(--blue); }
.copy-btn svg { width: 17px; height: 17px; }

.bal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.bal { background: #f8faff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; }
.bal-lbl { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.bal-val { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.mini-ic { width: 20px; height: 20px; flex: 0 0 auto; }
.strong-teal { color: #1c8062; }

/* ───────────────────────── scanning ─────────────────────────── */
.scan-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.ring { position: relative; width: 120px; height: 120px; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #eef1f8; stroke-width: 9; }
.ring-fg {
  fill: none; stroke: var(--blue); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .5s cubic-bezier(.22, 1, .36, 1);
}
.ring-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 800; letter-spacing: -.02em;
}
.ring-num small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 1px; }
.scan-cur { font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.scan-sub { font-size: 12.5px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; }
.scan-amt { font-size: 13px; color: var(--ink-2); }
.scan-amt strong { color: #1c8062; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ck {
  display: flex; align-items: center; gap: 11px; padding: 10px 4px;
  font-size: 13.5px; color: #97a2b8; border-top: 1px solid #f2f4fa;
}
.ck:first-child { border-top: none; }
.ck-ic { width: 18px; height: 18px; flex: 0 0 auto; position: relative; }
.ck-ic::before {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  border: 2px solid #dfe4f0; border-top-color: #b9c3dc;
}
.ck.is-active { color: var(--ink); font-weight: 600; }
.ck.is-active .ck-ic::before { border-color: rgba(5, 0, 255, .18); border-top-color: var(--blue); animation: spin .8s linear infinite; }
.ck.is-done { color: var(--ink-2); }
.ck.is-done .ck-ic::before { content: none; }
.ck.is-done .ck-ic::after {
  content: ""; position: absolute; inset: 0;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1a9 9 0 100 18 9 9 0 000-18zm4.3 6.7l-5.6 5.6a1 1 0 01-1.4 0L5.7 11.7a1 1 0 011.4-1.4l.9.9 4.9-4.9a1 1 0 011.4 1.4z' fill='%2312b76a'/%3E%3C/svg%3E");
}
.ck-pct { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); font-family: var(--mono); }

/* ───────────────────────── result ───────────────────────────── */
.verdict {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: linear-gradient(180deg, #fff8f4, #fff);
  border: 1px solid #f7ddd0; border-radius: 18px; padding: 18px; margin-bottom: 16px;
}
.gauge { position: relative; width: 160px; height: 160px; flex: 0 0 auto; }
.gauge svg { transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: #f0e6e1; stroke-width: 11; }
.gauge-fg {
  fill: none; stroke: var(--bad); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 414.7; stroke-dashoffset: 414.7;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22, 1, .36, 1), stroke .3s;
}
.gauge-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--bad);
}
/* Цифры ставим ровно на ось круга, а «%» в поток не пускаем: иначе блок
   «12.7%» целиком центрируется по своему ширине и цифры уезжают влево от
   центра ровно на половину ширины процента (на размеченном скрине было видно,
   что линия центра круга проходит прямо по «7»). Знак % — надстрочный, висит
   справа и ни на что не влияет. Подпись центрируется по той же оси. */
.gauge-val { position: relative; display: inline-block; }
.gauge-num small {
  position: absolute; left: 100%; bottom: 13px; margin-left: 2px;
  font-size: 15px; font-weight: 700;
}
.gauge-lbl {
  position: absolute; left: 0; right: 0; bottom: 34px; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.risk-chip {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #8a1f24; background: #ffe4e4; border: 1px solid #f8caca; border-radius: 999px; padding: 5px 11px; margin-bottom: 10px;
}
.verdict-title { margin: 0 0 8px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.verdict-text { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.report-id { font-size: 11.5px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { background: #f8faff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; }
.stat-lbl { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.stat-val { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
/* иконка USDT в карточке «USDT checked»: прижимаем к базовой линии цифр,
   иначе при переносе «18 804.64 / USDT» на две строки иконка уезжала бы
   по вертикали в центр и оказывалась рядом со второй строкой */
.stat-val-ic { display: flex; align-items: baseline; gap: 6px; }
.stat-val-ic .mini-ic { position: relative; top: 3px; }
.stat-unit { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin-left: 2px; }
.stat-warn { color: #96660b; }
.stat-bad { color: var(--bad); }
.stat-sub { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }

.tbl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.tbl-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.tbl th:nth-child(1), .tbl td:nth-child(1) { width: 31%; }
.tbl th:nth-child(2), .tbl td:nth-child(2) { width: 17%; }
.tbl th:nth-child(3), .tbl td:nth-child(3) { width: 35%; }
.tbl th:nth-child(4), .tbl td:nth-child(4) { width: 17%; }
.tbl td:nth-child(2) { white-space: nowrap; }
.tbl th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: #f8faff; padding: 9px 12px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid #f2f4fa; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #fbfcff; }
.tx-link { font-family: var(--mono); font-size: 11.5px; color: var(--blue); }
.lbl-tag { font-weight: 600; }
.risk-pill {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.risk-high { color: #8a1f24; background: #ffe4e4; }
.risk-med { color: #8a5a00; background: #fff2dd; }
.risk-low { color: #166a4d; background: #e2f6ec; }

.note {
  display: flex; gap: 11px; align-items: flex-start; border-radius: 14px; padding: 14px; margin-bottom: 18px;
}
.note-warn { background: #fff8ec; border: 1px solid #ffe3bd; }
.note-warn .ic { color: var(--warn); }
.note strong { display: block; font-size: 13.5px; margin-bottom: 4px; }
.note p { margin: 0; font-size: 12.5px; color: var(--ink-2); }

.cta-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }

/* ─────────────────────────── strips / sections ──────────────────── */
.strip { background: #0500ff; color: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 20px; }
.strip-item strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.strip-item span { font-size: 12px; opacity: .72; }

.sect { padding: 54px 20px 8px; }
.sect-h { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sect-p { margin: 0 0 26px; color: var(--muted); font-size: 14.5px; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.mini-num {
  width: 30px; height: 30px; border-radius: 10px; background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; margin-bottom: 14px;
}
.mini-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.mini-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.cov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cov { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.cov h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.cov p { margin: 0; font-size: 12.5px; color: var(--muted); }

.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-size: 14.5px; font-weight: 600; list-style: none; position: relative; padding-right: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 18px; font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* ─────────────────────────── footer ─────────────────────────── */
.ftr { margin-top: 54px; border-top: 1px solid var(--line); background: #fff; padding: 30px 0 0; }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 24px; align-items: start; }
.ftr-brand { display: flex; gap: 12px; align-items: center; }
.ftr-brand strong { display: block; font-size: 14px; }
.ftr-brand p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.ftr-links { display: grid; gap: 8px; }
.ftr-links a { font-size: 13px; color: var(--ink-2); }
.ftr-disc { margin: 0; font-size: 11.5px; color: var(--muted); }
.ftr-copy { padding: 18px 20px 26px; font-size: 11.5px; color: #97a2b8; }

/* ─────────────────────────── toast / modal ──────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px);
  z-index: 90; max-width: 92vw; padding: 12px 18px; border-radius: 12px;
  background: #101728; color: #fff; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 12px 34px rgba(10, 15, 31, .3); opacity: 0;
  transition: opacity .22s, transform .22s;
}
.toast.is-on { opacity: 1; transform: translateX(-50%); }
.toast.is-bad { background: #8a1f24; }

.modal {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(10, 15, 31, .5); backdrop-filter: blur(4px);
  animation: step-in .2s ease;
}
.modal-box {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow-lg);
}
.modal-box h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.modal-box p { font-size: 13px; }
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none;
  border-radius: 10px; background: #f3f5fb; color: var(--ink-2); font-size: 20px; cursor: pointer;
}
.modal-x:hover { background: #e8ecf7; }
#modal-form { display: grid; gap: 10px; margin-top: 14px; }
.modal-done { margin: 14px 0 0; color: #166a4d; font-weight: 600; }

/* ─────────────────────────── responsive ─────────────────────── */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; }
  .scan-card { position: static; }
  .hdr-nav { display: none; }
  .ftr-in { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cards3, .cov-grid { grid-template-columns: 1fr; }
  .strip-in { grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
  .verdict { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cta-row { grid-template-columns: 1fr; }
  .hdr-live span:last-child { display: none; }
}
@media (max-width: 480px) {
  .card { padding: 18px; }
  .scan-top { flex-direction: column; align-items: flex-start; }
  .gauge { width: 140px; height: 140px; }
  .net-switch { grid-template-columns: 1fr; }
  .bal-grid { grid-template-columns: 1fr; }
  .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
  .brand-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ════════════════════ лендинг: карточка с CTA ════════════════════ */
.cta-card { position: sticky; top: 86px; }
.mini-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 15px; }
.mini-steps li { display: flex; gap: 12px; align-items: flex-start; }
/* ⚠️ раньше номер шага не центрировался: .mini-steps strong/span по специфичности
   перебивали .mini-n, потому что номер — это тоже <span> внутри .mini-steps.
   Теперь текст описания обёрнут в .mini-txt с явными классами. */
.mini-steps .mini-n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--blue-soft); color: var(--blue);
  font-size: 13px; font-weight: 800; line-height: 1;
}
.mini-txt strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mini-txt .mini-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.cta-foot { margin: 14px 0 0; font-size: 12px; text-align: center; }

/* кнопки-ссылки не должны подчёркиваться */
a.btn, a.btn:hover, a.btn:active { text-decoration: none; color: inherit; }
a.btn-primary, a.btn-primary:hover { color: #fff; }

/* ══════════ режим проверки на лендинге (URL остаётся голым доменом) ══════
   Клик по CTA вешает на <body> класс mode-check: лендинг скрывается,
   остаётся одна карточка проверки — вместе с навигацией и счётчиком
   «Live screening» в шапке.                                    */
body.mode-check .hdr-nav,
body.mode-check .hdr-live { display: none !important; }
body.mode-check .landing-body { display: none; }
.check-back { margin: 0 0 14px; }
.check-back button {
  display: inline-flex; align-items: center; gap: 5px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.check-back .ic { width: 16px; height: 16px; color: var(--muted); }
.check-back button:hover { color: var(--blue); text-decoration: none; }
.check-back button:hover .ic { color: var(--blue); }

/* ════════════════════ страница проверки (чистая) ════════════════════ */
.check-wrap { max-width: 640px; margin: 0 auto; padding: 28px 20px 44px; }
.page-check .scan-card { position: static; }
.hdr-slim .hdr-in { height: 60px; }
.brand-static { cursor: default; }
.hdr-back {
  margin-left: auto; display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.hdr-back .ic { width: 16px; height: 16px; color: var(--muted); }
.hdr-back:hover { color: var(--blue); text-decoration: none; }
.check-foot { margin: 18px 4px 0; font-size: 11.5px; text-align: center; line-height: 1.5; }

@media (max-width: 1000px) {
  .cta-card { position: static; }
}
@media (max-width: 480px) {
  .check-wrap { padding: 18px 14px 34px; }
  .hdr-back span { display: none; }
}
