:root {
  --navy: #091c46;
  --orange: #ff9000;
  --white: #ffffff;
  --bg: #f4f7fb;
  --text: #13213f;
  --muted: #667085;
  --border: rgba(9, 28, 70, 0.1);
  --success: #0f9d58;
  --error: #d93025;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eff3ff 0%, #f9fbff 100%);
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}

.hero-card,
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(9, 28, 70, 0.06);
}

.hero-card {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.badge {
  display: inline-block;
  padding: 8px 12px;
  background: rgba(255, 144, 0, 0.12);
  color: #9c5a00;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 12px;
}

h1, h2, p { margin-top: 0; }
h1 { font-size: 2rem; margin-bottom: 12px; }
h2 { font-size: 1.2rem; margin-bottom: 12px; }
.lead { color: var(--muted); line-height: 1.6; }

.hero-meta {
  display: grid;
  gap: 14px;
}

.meta-box {
  padding: 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
}

.meta-box strong {
  display: block;
  margin-bottom: 8px;
  color: #cdd8ff;
}

.grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

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

.card { padding: 24px; }

.stack-form {
  display: grid;
  gap: 12px;
}

.inline-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
}

input, select, button {
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(9, 28, 70, 0.12);
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 144, 0, 0.13);
}

button {
  background: var(--orange);
  color: var(--white);
  border: none;
  font-weight: 700;
  cursor: pointer;
}

button:hover { opacity: 0.92; }

.result-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  line-height: 1.5;
}

.result-box.muted {
  background: #f6f8fc;
  color: var(--muted);
}

.result-box.success {
  background: rgba(15, 157, 88, 0.08);
  color: #0b6b3d;
}

.result-box.error {
  background: rgba(217, 48, 37, 0.08);
  color: var(--error);
}

.download-link {
  color: var(--navy);
  font-weight: 700;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.module-item {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  background: #f8fbff;
}

.module-item strong {
  display: block;
  margin-bottom: 6px;
}

.module-item span, .module-item small {
  display: block;
}

.module-item small { margin-top: 8px; color: var(--muted); }
.module-item.open { border-color: rgba(15, 157, 88, 0.2); }
.module-item.locked { opacity: 0.8; }

@media (max-width: 900px) {
  .hero-card, .two-cols, .inline-form, .module-list {
    grid-template-columns: 1fr;
  }
}
