:root {
  --bg: #003049;
  --bg-2: #00263f;
  --text: #e6e8ef;
  --muted: #b8bed2;
  --primary: #c1121f;
  --primary-2: #780000;
  --accent: #669bbc;
  --card: #0f2236;
  --success: #17c964;
  --error: #f31260;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(102,155,188,.18), transparent),
    radial-gradient(1200px 600px at 0% 100%, rgba(193,18,31,.14), transparent),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
}
.site-footer { margin-top: auto }
main { flex: 1 }
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(120%) blur(12px);
  background: rgba(10,16,33,.6);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  letter-spacing: .6px;
  font-size: 20px;
}
.nav {
  display: flex;
  gap: 16px;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: .2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06) }
.nav-link.active { color: var(--text); background: rgba(255,255,255,.09) }
.hero {
  padding: 40px 0 24px;
}
.hero-content {
  padding: 32px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card + .card { margin-top: 24px }
h1, h2, h3 {
  margin: 0 0 12px;
}
.container section,
section.container {
  scroll-margin-top: 84px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.12);
}
.subtitle {
  color: var(--muted);
  margin: 8px 0;
}
.cta { margin-top: 16px }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-weight: 600;
}
.btn-primary {
  color: white;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 22px rgba(108,140,255,.35);
  transition: transform .08s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(108,140,255,.5) }
.grid.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) {
  .grid.two { grid-template-columns: 1fr 1fr }
}
.grid.three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1000px) {
  .grid.three { grid-template-columns: repeat(3, 1fr) }
}
.modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 880px) {
  .modules { grid-template-columns: 1fr 1fr }
}
.module {
  padding: 20px;
  border-radius: 14px;
  background: rgba(21,27,58,.5);
  border: 1px solid rgba(255,255,255,.08);
}
.list {
  margin: 10px 0 0;
  padding-left: 18px;
}
.list li { margin: 6px 0; color: var(--muted) }
.form {
  margin-top: 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (min-width: 880px) {
  .form-grid { grid-template-columns: 1fr 1fr }
}
.form-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-control.full {
  grid-column: 1 / -1;
}
label {
  font-size: 14px;
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: var(--text);
  outline: none;
  transition: .2s ease;
}
input::placeholder, textarea::placeholder { color: #9aa3c0 }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,140,255,.25);
}
.select-light, select {
  background: #eef4fa;
  color: #0d1b2a;
  border: 1px solid rgba(0,0,0,.18);
}
select option {
  background: #ffffff;
  color: #0d1b2a;
}
select:focus {
  border-color: #669bbc;
  box-shadow: 0 0 0 3px rgba(102,155,188,.35);
}
.alert {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}
.alert.success { background: rgba(23,201,100,.15); color: #1fd87a; border: 1px solid rgba(23,201,100,.3) }
.alert.error { background: rgba(243,18,96,.15); color: #f8518c; border: 1px solid rgba(243,18,96,.3) }
.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(10,16,33,.4);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.hero-content { padding: 32px }
.hidden { display: none }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: grid;
  place-items: center;
  z-index: 1000;
}
.modal-backdrop.hidden { display: none }
.modal-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.modal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.table-wrap { overflow: auto }
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--text);
}
.table thead th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
}
.table tbody tr:hover {
  background: rgba(255,255,255,.04);
}
@media (max-width: 520px) {
  h1 { font-size: 24px; line-height: 1.25 }
  h2 { font-size: 20px }
  .hero-content { padding: 20px }
  .card { padding: 16px }
  .btn { width: 100% }
  .footer-wrap { flex-direction: column; gap: 8px }
  .nav { gap: 8px }
  input, select, textarea { font-size: 16px }
  .table th, .table td { padding: 8px }
}
