:root {
  color-scheme: dark;
  --bg: #0c0f12;
  --panel: #141b22;
  --panel-2: #1b2430;
  --border: #2e3a49;
  --text: #eef3f8;
  --muted: #9fb0c3;
  --accent: #7fb3ff;
  --accent-2: #dbe9ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

a { color: inherit; }

.page {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero, .grid, .footer {
  display: grid;
  gap: 20px;
}

.hero {
  grid-template-columns: 1.6fr 1fr;
  align-items: end;
  margin-bottom: 24px;
}

.hero h1, .card h2 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lead, .note, .footer, .eyebrow, .price-item span, label span {
  color: var(--muted);
}

.lead {
  max-width: 70ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 8px;
}

input, select {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f141b;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

input::placeholder { color: #70819a; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #5c86bd;
  background: #2a4b71;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: #172130;
  border-color: #31475f;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.price-item {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 4px;
}

.price-item strong { font-size: 1rem; }

.result {
  margin: 16px 0 0;
  min-height: 120px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
}

.footer {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero, .grid, .footer { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
}
