:root {
  --blue: #143a72;
  --blue-deep: #0b2245;
  --red: #cf1f27;
  --red-dark: #a8151b;
  --bg: #f7f7f5;
  --text: #18202a;
  --muted: #5f6977;
  --white: #ffffff;
  --line: #d8dde5;
  --shadow: 0 18px 45px rgba(11, 34, 69, 0.12);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 58, 114, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0;
  gap: 1rem;
}
.brand-logo {
  width: 109px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  border: none;
  border-radius: 999px;
  padding: .95rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.button-secondary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}
.button-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(20, 58, 114, .22);
  box-shadow: none;
}
.hero {
  padding: 5.5rem 0 4rem;
  background: radial-gradient(circle at top right, rgba(207, 31, 39, 0.08), transparent 24%), radial-gradient(circle at bottom left, rgba(20, 58, 114, 0.1), transparent 28%);
}
.hero-grid, .split, .contact-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-grid {
  grid-template-columns: 1.2fr .8fr;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 800;
  color: var(--red);
  margin: 0 0 .75rem;
}
.eyebrow-light {
  color: #ffb8bc;
}
h1, h2, h3 {
  line-height: 1.1;
  margin: 0 0 1rem;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 12ch;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
h3 {
  font-size: 1.2rem;
}
.lead {
  font-size: 1.08rem;
  max-width: 58ch;
  color: var(--white);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin: 1.5rem 0;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.hero-points li, .feature-panel li {
  background: white;
  /*border: 1px solid var(--line);*/
  border-radius: 999px;
  padding: .65rem 1rem;
  font-weight: 600;
  color: var(--blue-deep);
}
.hero-card, .card, .feature-panel, .contact-form, .admin-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 58, 114, 0.08);
}
.hero-card {
  padding: 1.2rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-grid article {
  padding: 1.3rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f3f6fb);
}
.stat-grid strong {
  display: block;
  font-size: 1.2rem;
  color: var(--blue);
}
.stat-grid span {
  color: var(--muted);
  font-size: .95rem;
}
.section {
  padding: 4.75rem 0;
}
.section-light {
  background: white;
}
.section-dark {
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  color: white;
}
.section-heading {
  margin-bottom: 2rem;
}
.cards.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  padding: 1.5rem;
}
.card p, .feature-panel p, .feature-panel li, .contact-details, label, .form-status {
  color: var(--muted);
}
.split {
  grid-template-columns: 1fr .9fr;
}
.feature-panel {
  padding: 1.7rem;
}
.feature-panel ul {
  padding-left: 1rem;
}
.contact-grid {
  grid-template-columns: .95fr 1.05fr;
}
.contact-form {
  padding: 1.5rem;
}
.compact-form {
  max-width: 520px;
}
.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}
.two-col {
  grid-template-columns: repeat(2, 1fr);
}
label {
  display: grid;
  gap: .45rem;
  font-weight: 600;
}
input, textarea {
  width: 100%;
  border: 1px solid #c7d0dc;
  border-radius: 14px;
  padding: .95rem 1rem;
  font: inherit;
  color: var(--text);
  background: white;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  appearance: none;
}
input::placeholder, textarea::placeholder {
  color: #8b95a5;
}
input:hover, textarea:hover {
  border-color: #aeb9c8;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 58, 114, .12);
}
input.input-invalid, textarea.input-invalid {
  border-color: #c62828;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .08);
}
input.input-valid, textarea.input-valid {
  border-color: #2e7d32;
}
textarea {
  resize: vertical;
}
.field-error {
  min-height: 1.1rem;
  margin-top: .1rem;
  font-size: .88rem;
  line-height: 1.35;
  color: #ffd3d5;
}
.admin-body .field-error, .section-light .field-error, .section .field-error, .admin-card .field-error {
  color: #b42318;
}
.form-status {
  min-height: 1.5rem;
  margin: .75rem 0 0;
  font-weight: 600;
}
.form-status.is-error {
  color: #ffd3d5;
}
.admin-card .form-status.is-error {
  color: #b42318;
}
.form-status.is-success {
  color: #c9f7d0;
}
.admin-card .form-status.is-success {
  color: #1f6d2b;
}
.site-footer {
  padding: 1.3rem 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-wrap, .admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.admin-body {
  background: linear-gradient(180deg, #f5f7fb, #eef2f8);
  min-height: 100vh;
}
.admin-shell {
  padding: 4rem 0;
}
.admin-card {
  padding: 1.5rem;
}
.hidden {
  display: none;
}
.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}
th, td {
  padding: .95rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  background: #f8fafc;
}
@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid, .cards.three-up {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  nav {
    display: none;
  }
  .two-col, .stat-grid {
    grid-template-columns: 1fr;
  }
  h1 {
    max-width: none;
  }
  .section, .hero {
    padding: 3.5rem 0;
  }
}

.field-help {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-header-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.toolbar-search {
  flex: 1 1 360px;
}

.toolbar-search input {
  background: #fff;
}

.dashboard-summary {
  font-weight: 700;
  color: var(--blue);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mini-stat {
  background: linear-gradient(180deg, #fff, #f5f8fc);
  border: 1px solid rgba(20, 58, 114, 0.08);
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

.mini-stat span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: .25rem;
}

.mini-stat strong {
  display: block;
  color: var(--blue-deep);
  font-size: 1.4rem;
}

.message-cell {
  min-width: 280px;
  white-space: pre-wrap;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

button[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .pagination-bar,
  .dashboard-toolbar,
  .admin-header {
    align-items: stretch;
  }
}
