:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #dbe2ee;
  --brand-blue: #0b4ea2;
  --brand-blue-dark: #073878;
  --brand-red: #e61937;
  --ok: #0f766e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: #0f172a;
  color: #d1d5db;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
}

.topbar-links {
  display: flex;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.2px;
}

.brand-arc {
  width: 42px;
  height: 21px;
  border-top: 5px solid var(--brand-red);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-radius: 22px 22px 0 0;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.primary-nav a {
  padding: 8px 0;
  color: #1f2937;
  font-weight: 600;
  font-size: 14px;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--brand-blue);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.07);
}

.btn-outline {
  border-color: #9db2d8;
  color: var(--brand-blue);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--brand-blue);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

.hero {
  padding: 70px 0 58px;
  background: radial-gradient(circle at 0% 0%, #dbe9fb 0, transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 8px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.07;
  margin: 0 0 16px;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

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

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}

.kpi strong {
  display: block;
  font-size: 24px;
  color: var(--brand-blue);
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 64px 0;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.1vw, 40px);
}

.section-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.band {
  background: #0f213f;
  color: #f1f5f9;
}

.band .card {
  background: #12284d;
  border-color: #2f4362;
  color: #f8fafc;
  box-shadow: none;
}

.band .card p,
.band .section-subtitle {
  color: #c7d2e4;
}

.list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  margin-bottom: 9px;
  color: var(--muted);
}

.news-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  background: #e8effd;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.page-hero {
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #edf4ff 65%, #e9f1fc 100%);
}

.auth-wrap {
  min-height: calc(100vh - 174px);
  display: grid;
  place-items: center;
  padding: 42px 0;
}

.auth-card {
  width: min(520px, 92vw);
}

.form-row {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #c6d2e7;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-blue);
  outline: 2px solid rgba(11, 78, 162, 0.15);
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
}

.small {
  color: var(--muted);
  font-size: 13px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 64px;
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 22px;
}

.footer h4 {
  margin: 0 0 10px;
  color: #f8fafc;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 24px;
  padding-top: 14px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.notice {
  border-left: 4px solid var(--ok);
  background: #f0fdf4;
  color: #065f46;
  padding: 11px 13px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  display: none;
}

.show {
  display: block;
}

@media (max-width: 980px) {
  .primary-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 4vw;
    flex-wrap: wrap;
    gap: 14px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .primary-nav.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-cta .btn-outline {
    display: none;
  }
}
