:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #25364d;
  --muted: #60728a;
  --line: #dfe8f4;
  --blue: #244a7c;
  --red: #e03131;
  --soft-red: #fff1f1;
  --green: #0d8d58;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); }
.wrap { width: min(980px, calc(100% - 24px)); margin: 24px auto 60px; }
.hero { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, #fff 0%, #eef6ff 100%); box-shadow: 0 18px 50px rgba(37,54,77,.08); }
.hero:after { content: ''; position: absolute; right: -30px; top: -54px; width: 180px; height: 180px; border-radius: 50%; background: #dbe9f8; }
.badge { display: inline-block; padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; }
h1 { margin: 14px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; max-width: 760px; }
h2 { margin: 0 0 16px; font-size: 22px; }
p { line-height: 1.5; }
.hero p { max-width: 720px; color: var(--muted); font-size: 17px; }
.panel { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 12px 35px rgba(37,54,77,.06); }
.form { display: grid; grid-template-columns: 1.2fr .8fr auto; gap: 14px; align-items: end; }
label { display: grid; gap: 8px; font-weight: 800; font-size: 14px; }
input { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; font-size: 16px; outline: none; }
input:focus { border-color: #9ab9df; box-shadow: 0 0 0 4px rgba(64,120,180,.12); }
button { border: 0; border-radius: 14px; padding: 15px 18px; background: var(--blue); color: #fff; font-weight: 900; font-size: 15px; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.hidden { display: none; }
.status { display: grid; gap: 10px; }
.loader { height: 10px; border-radius: 999px; background: #edf2f7; overflow: hidden; }
.loader span { display: block; width: 35%; height: 100%; background: var(--blue); border-radius: inherit; animation: move 1.2s infinite ease-in-out; }
@keyframes move { 0% { transform: translateX(-120%); } 100% { transform: translateX(330%); } }
.result-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fbfdff; }
.result-card.critical { border-color: #f3b7b7; background: var(--soft-red); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.metric { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.metric strong { display: block; font-size: 24px; }
.download { display: inline-flex; margin-top: 12px; align-items: center; justify-content: center; background: var(--red); color: #fff; padding: 14px 17px; border-radius: 14px; font-weight: 900; text-decoration: none; }
.error { color: #a61e1e; background: #fff1f1; border: 1px solid #ffc9c9; padding: 14px; border-radius: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid div { padding: 12px 13px; background: #f8fbff; border: 1px solid var(--line); border-radius: 14px; font-weight: 700; }
@media (max-width: 820px) {
  .form { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
}
