:root {
  --blue: #062f55;
  --blue-2: #094777;
  --blue-3: #e8f2fb;
  --white: #ffffff;
  --text: #132238;
  --muted: #64748b;
  --line: #d7e2ee;
  --shadow: 0 22px 55px rgba(8, 32, 58, 0.16);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #0b4f86 0, #062f55 32%, #021827 100%);
  min-height: 100vh;
}
.page { width: min(980px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0; }
.hero {
  background: linear-gradient(135deg, rgba(6,47,85,.98), rgba(9,71,119,.96));
  color: var(--white);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.14);
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}
.hero:after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.brand { display: flex; gap: 24px; align-items: center; position: relative; z-index: 1; }
.logo { width: 420px; max-width: 52vw; height: auto; display: block; object-fit: contain; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; opacity: .78; margin-bottom: 6px; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 50px); letter-spacing: -0.05em; line-height: .95; }
.hero p { margin: 10px 0 0; opacity: .86; font-size: 16px; }
.card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(6,52,95,.10);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
h2 { margin: 0; font-size: 25px; letter-spacing: -0.03em; }
.card-head p { margin: 5px 0 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full { grid-column: 1 / -1; }
.field label { display: flex; justify-content: space-between; gap: 10px; font-weight: 750; margin-bottom: 7px; }
.field label span { color: var(--muted); font-weight: 600; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  padding: 13px 14px;
  outline: none;
  transition: border .15s, box-shadow .15s;
}
input:focus, select:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(11,79,138,.13); }
.hint { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.actions { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; margin-top: 4px; }
button {
  border: 0;
  border-radius: 15px;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.primary { background: var(--blue); color: white; }
.primary:hover { background: #052a4c; }
.secondary { background: var(--blue-3); color: var(--blue); }
.ghost { background: #f3f7fb; color: var(--blue); white-space: nowrap; }
.result {
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6fbff, #edf5fb);
  border: 1px solid var(--line);
}
.result-title { font-size: 18px; font-weight: 850; margin-bottom: 8px; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.result-box { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 13px; }
.result-box span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.result-box strong { font-size: 18px; }
.total { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--blue); color: white; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.total span { opacity: .8; font-size: 13px; }
.total strong { font-size: 28px; letter-spacing: -0.03em; }
.muted { color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.72); font-size: 13px; padding: 18px 4px 0; }
@media (max-width: 720px) {
  .page { width: min(100% - 18px, 980px); padding: 12px 0 20px; }
  .hero, .card { border-radius: 22px; padding: 18px; }
  .brand { align-items: flex-start; flex-direction: column; gap: 16px; }
  .logo { width: min(420px, 92vw); max-width: 100%; }
  .grid, .actions, .result-grid { grid-template-columns: 1fr; }
  .card-head, footer { flex-direction: column; }
}
