:root {
  --ink: #0b1024; --ink-2: #141a36; --text: #1a1f36; --muted: #5b6386; --line: #e4e7f2; --soft: #f6f7fc;
  --brand: #4f5dff; --brand-2: #7b5cff; --accent: #ff7a59; --ok: #16b47e; --warn: #f2a516; --bad: #e5484d;
  --grad: linear-gradient(135deg, #4f5dff 0%, #7b5cff 55%, #ff7a59 100%);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.55; }
a { color: var(--brand); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); } .small { font-size: 13.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; padding: 14px 24px; font: 700 16px var(--font); color: #fff; background: var(--grad); cursor: pointer; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(79, 93, 255, .6); transition: transform .15s; }
.btn:hover { transform: translateY(-1px); } .btn:disabled { opacity: .6; cursor: wait; }
.btn.sm { padding: 9px 16px; font-size: 14px; } .btn.wide { width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.top { background: var(--ink); color: #fff; padding: 14px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; }
.logo small { display: block; font-size: 9.5px; letter-spacing: 4px; color: #aab1ff; margin-top: -3px; }
.logo span { line-height: 1.1; }
.top nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.top nav a:not(.btn) { color: #cfd3f5; text-decoration: none; font-size: 14.5px; }

.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(123, 92, 255, .35), transparent 60%), var(--ink); color: #fff; padding: 64px 0 72px; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; margin: 18px 0 14px; max-width: 820px; letter-spacing: -.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18.5px; color: #cfd3f5; max-width: 680px; margin: 0 0 28px; }
.check { display: flex; gap: 10px; max-width: 640px; background: #fff; padding: 8px; border-radius: 16px; }
.check input { flex: 1; min-width: 0; border: 0; font: 500 17px var(--font); padding: 12px 14px; color: var(--text); border-radius: 10px; }
.check input:focus { outline: none; }
.hint { color: #9aa1cf; font-size: 14px; margin: 14px 0 0; }
.err { margin: 16px 0 0; background: rgba(229, 72, 77, .15); border: 1px solid rgba(229, 72, 77, .5); color: #ffd3d4; padding: 10px 14px; border-radius: 10px; max-width: 640px; }

.loading { text-align: center; padding: 56px 0; }
.spinner { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { padding: 44px 0 20px; }
.score-card { display: flex; gap: 28px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); flex-wrap: wrap; }
.score-card h2 { margin: 2px 0 6px; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.score-card p { margin: 0; }
.gauge { --c: var(--bad); width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; flex: none;
  background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(var(--c) calc(var(--v) * 1%), var(--line) 0); }
.gauge.mid { --c: var(--warn); } .gauge.good { --c: var(--ok); }
.gauge b { font-size: 40px; line-height: 1; } .gauge span { color: var(--muted); font-size: 13px; }
.counts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.counts span { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.c-fail { background: #fde8e8; color: #b4232a; } .c-warn { background: #fdf1d8; color: #8a5a00; } .c-pass { background: #dff5ec; color: #0d7a54; }

.grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; margin-top: 28px; align-items: start; }
.group { margin-bottom: 22px; }
.group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 10px; }
.item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: #fff; }
.item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; row-gap: 2px; padding: 13px 16px; }
.item summary::-webkit-details-marker { display: none; }
.item .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; grid-row: span 2; background: var(--ok); }
.item.warn .dot { background: var(--warn); } .item.fail .dot { background: var(--bad); }
.item .detail { color: var(--muted); font-size: 14.5px; word-break: break-word; }
.fix { padding: 0 16px 14px 42px; font-size: 14.5px; }
.fix p { margin: 0 0 6px; } .fix a { font-weight: 700; text-decoration: none; }

.lead-box { position: sticky; top: 16px; padding: 24px; border-radius: 20px; background: var(--ink); color: #fff; }
.lead-box h3 { margin: 0 0 8px; font-size: 22px; }
.lead-box > p { color: #cfd3f5; font-size: 14.5px; margin: 0 0 16px; }
.lead-box label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; color: #e7e9ff; }
.lead-box input:not([type=checkbox]), .lead-box select { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: 10px; border: 1px solid #2c3463; background: #141a36; color: #fff; font: 15px var(--font); }
.lead-box .muted { color: #9aa1cf; font-weight: 400; }
.lead-box .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: #cfd3f5; }
.lead-box .consent input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; }
.form-msg.good { color: #7fe3bd; } .form-msg.bad { color: #ffb4b6; }
.or { text-align: center; font-size: 14px; color: #9aa1cf; margin: 10px 0 0; } .or a { color: #fff; }

.why { padding: 40px 0 56px; }
.why h2 { font-size: 26px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.why-grid div { padding: 18px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.why-grid p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; } .lead-box { position: static; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .check { flex-direction: column; } .top nav a:not(.btn) { display: none; }
  .why-grid { grid-template-columns: 1fr; } .hero { padding: 44px 0 52px; }
  .score-card { padding: 20px; gap: 18px; } .gauge { width: 110px; height: 110px; }
}
