* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #f5f8fc 0%, #eef3f9 100%);
  color: #122033;
}
.shell { max-width: 1160px; margin: 0 auto; padding: 28px 20px 48px; }
.hero {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}
.hero h1 { margin: 8px 0 10px; font-size: 2.3rem; line-height: 1.1; }
.hero p { margin: 0; color: #4d5e73; max-width: 780px; font-size: 1.03rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: .78rem; color: #436489; font-weight: 700; }
.hero-card, .card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border: 1px solid #dbe5f0;
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(18,32,51,.08);
}
.hero-card { padding: 22px; display: flex; align-items: center; }
.metric span { display: block; color: #6b7f95; margin-bottom: 8px; font-size: .9rem; }
.metric strong { display: block; line-height: 1.4; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.card { padding: 22px; }
.full { grid-column: 1 / -1; }
h2 { margin: 0 0 10px; font-size: 1.28rem; }
.muted, .note { color: #627387; }
.fields { display: grid; gap: 14px; margin-bottom: 14px; }
.fields.three { grid-template-columns: repeat(3, 1fr); }
.fields.four { grid-template-columns: repeat(4, 1fr); }
label { display: block; font-weight: 600; font-size: .95rem; color: #24384d; }
input, textarea, select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cdd9e6;
  border-radius: 14px;
  padding: 12px 13px;
  font-size: .98rem;
  background: #fbfdff;
}
textarea { resize: vertical; min-height: 120px; }
.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  background: #dae8f7;
  color: #15314d;
}
.btn.primary {
  background: linear-gradient(135deg, #245c94 0%, #1f7cc4 100%);
  color: white;
}
.flash {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}
.flash.success { background: #e7f8ee; color: #145c31; border: 1px solid #bfe7cd; }
.flash.error { background: #fff0f0; color: #8c2323; border: 1px solid #f2c4c4; }
.result-head {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.badge {
  padding: 10px 14px; border-radius: 999px; font-weight: 800; font-size: .9rem;
}
.badge.ok { background: #ecf7ee; color: #1d6c37; }
.badge.warning { background: #fff7e8; color: #8c6000; }
.badge.danger { background: #fff0f0; color: #9a1f1f; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.result-box {
  background: #f8fbff;
  border: 1px solid #dbe7f2;
  border-radius: 18px;
  padding: 16px;
}
.result-box span {
  display: block;
  color: #64768a;
  font-size: .86rem;
  margin-bottom: 8px;
}
.result-box strong {
  font-size: 1.15rem;
  line-height: 1.25;
}
.result-box.emphasis {
  background: linear-gradient(135deg, #eef6ff 0%, #dfeeff 100%);
}
@media (max-width: 980px) {
  .hero, .grid { grid-template-columns: 1fr; }
  .fields.three, .fields.four, .results-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .shell { padding: 18px 14px 32px; }
  .hero h1 { font-size: 1.7rem; }
  .fields.three, .fields.four, .results-grid { grid-template-columns: 1fr; }
}
