:root {
  --navy: #0b1c3d;
  --navy-2: #13284f;
  --gold: #d4a017;
  --gold-soft: #f0d27a;
  --paper: #f4f1ea;
  --ink: #1a2332;
  --muted: #5c6778;
  --white: #ffffff;
  --line: rgba(11, 28, 61, 0.12);
  --shadow: 0 18px 50px rgba(11, 28, 61, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PT Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar {
  background: var(--navy);
  color: #c9d4e8;
  font-size: 13px;
  padding: 8px 0;
}
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--navy); display: grid; place-items: center;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 18px; letter-spacing: 0.04em; color: var(--navy); }
.logo-text span { font-size: 11px; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; }

nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--navy-2);
}
nav a:hover, nav a.active { background: #eef3fb; color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 11px 18px; border-radius: 10px; border: 0; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); }

.hero {
  background:
    linear-gradient(105deg, rgba(11,28,61,.88), rgba(11,28,61,.45)),
    radial-gradient(circle at 80% 20%, #3a6ea5 0, transparent 40%),
    linear-gradient(180deg, #0b1c3d, #1c3c72);
  color: var(--white);
  min-height: 520px;
  display: grid; align-items: center;
  position: relative; overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -80px; bottom: -40px;
  width: 520px; height: 220px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 220'%3E%3Cpath d='M20 140 L260 90 L540 70 L420 110 L250 130 L180 170 L160 140 Z' fill='%23d4a017' opacity='.35'/%3E%3Cpath d='M40 150 L280 98 L560 78' stroke='%23ffffff' stroke-width='2' fill='none' opacity='.5'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
  pointer-events: none;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.12; max-width: 14ch; margin: 14px 0 18px; }
.kicker { color: var(--gold-soft); letter-spacing: .22em; text-transform: uppercase; font-size: 12px; }
.hero p { max-width: 52ch; color: #dce6f5; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: -42px; position: relative; z-index: 2;
}
.stat {
  background: var(--white); border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 28px; color: var(--navy); }
.stat span { color: var(--muted); font-size: 14px; }

.section { padding: 72px 0; }
.section h2 { font-size: 32px; color: var(--navy); margin: 8px 0 14px; }
.lead { color: var(--muted); max-width: 62ch; }

.grid-3, .grid-2 { display: grid; gap: 20px; margin-top: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.1fr .9fr; }

.card, .news-card, .panel {
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
}
.card { padding: 24px; }
.card h3, .news-card h3 { color: var(--navy); margin-bottom: 8px; }
.thumb {
  height: 150px;
  background: linear-gradient(135deg, #0b1c3d, #3d6ea8 55%, #d4a017);
}
.thumb.alt { background: linear-gradient(135deg, #1c3c72, #7eb6ff 60%, #f4f1ea); }
.thumb.gold { background: linear-gradient(135deg, #13284f, #d4a017); }
.news-card .body { padding: 20px; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

.table-wrap { overflow: auto; margin-top: 24px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: var(--white); font-weight: 600; }

.form { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); font: inherit; background: #fff;
}
.note { font-size: 13px; color: var(--muted); }

.footer {
  background: var(--navy); color: #c9d4e8; padding: 40px 0 20px;
}
.footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer h4 { color: var(--white); margin-bottom: 10px; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px; font-size: 13px; }

.page-hero { background: var(--navy); color: #fff; padding: 56px 0 40px; }
.page-hero h1 { font-size: 36px; margin-top: 8px; }

@media (max-width: 900px) {
  .stats, .grid-3, .grid-2, .footer .wrap { grid-template-columns: 1fr; }
  .hero { min-height: 440px; padding: 48px 0; }
}
