:root {
  --bg: #05070b;
  --card: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.18);
  --text: #eef7ff;
  --muted: #9fb0bd;
  --red: #ff2532;
  --cyan: #51e8ff;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; }
#grid { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; }
.app { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: 1fr auto; gap: 18px; padding: clamp(18px, 4vw, 56px); }
.hud, .sim, .contact-card { border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(18px); border-radius: 22px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32); }
.hud { display: grid; align-content: center; padding: clamp(28px, 5vw, 70px); }
.hud div { display: flex; gap: 16px; align-items: center; color: var(--cyan); font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; }
.hud img { width: 86px; background: #fff; border-radius: 14px; padding: 8px; }
h1 { font-size: clamp(48px, 9vw, 118px); line-height: 0.88; margin: 28px 0 18px; letter-spacing: -0.05em; }
.hud p { max-width: 720px; color: var(--muted); font-size: 20px; }
.sim { display: grid; grid-template-rows: auto 1fr; padding: 24px; }
.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.controls label { display: grid; gap: 9px; color: var(--muted); font-weight: 900; }
select, input { width: 100%; accent-color: var(--red); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text); background: #0b1119; }
.result { display: grid; align-content: center; padding: clamp(24px, 5vw, 60px); }
.result span { color: var(--cyan); font-weight: 900; }
.result h2 { font-size: clamp(34px, 5vw, 76px); line-height: 0.95; margin: 16px 0; }
.result p { color: var(--muted); font-size: 20px; }
.contact-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 16px; align-items: center; padding: 20px 24px; }
.contact-card a { color: #fff; text-decoration: none; font-weight: 900; }
.contact-card span { color: var(--muted); }
.contact-card nav { display: flex; gap: 10px; }
.contact-card nav a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.contact-card nav svg { width: 21px; height: 21px; fill: currentColor; }
footer { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 0 clamp(18px, 4vw, 56px) 28px; color: var(--muted); }
footer a { color: #fff; font-weight: 900; text-decoration: none; }
footer span { margin-left: auto; }

@media (max-width: 950px) {
  .app, .controls, .contact-card { grid-template-columns: 1fr; }
  .contact-card { align-items: start; }
  footer { flex-direction: column; align-items: flex-start; }
  footer span { margin-left: 0; }
}
