:root {
  --ink: #10243d;
  --muted: #607087;
  --blue: #0969da;
  --navy: #072b52;
  --sky: #eef6ff;
  --line: #dce5ef;
  --ok: #26a269;
  --warn: #d99b12;
  --bad: #d83b3b;
  --card: #fff;
  --shadow: 0 14px 36px rgba(7, 43, 82, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font:
    16px/1.55 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #f7f9fc;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  width: 190px;
  max-height: 58px;
  object-fit: contain;
}
.nav nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-weight: 650;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  font-weight: 750;
  text-decoration: none;
  background: var(--blue);
  color: #fff;
}
.btn.secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.hero {
  padding: 72px 0 56px;
  background: linear-gradient(135deg, #f6fbff 0, #e9f4ff 58%, #fff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.02;
  margin: 0.35em 0;
}
.hero p {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 640px;
}
.trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}
.quote-card,
.panel,
.metric,
.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.quote-card {
  padding: 28px;
}
.steps {
  display: flex;
  gap: 8px;
  margin: 16px 0 28px;
}
.step {
  height: 6px;
  flex: 1;
  border-radius: 9px;
  background: #e5ebf2;
}
.step.on {
  background: var(--blue);
}
.form-step[hidden] {
  display: none;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-weight: 700;
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea,
.search {
  border: 1px solid #bcc9d8;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  width: 100%;
}
.field input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0 8px 0 0;
  vertical-align: middle;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.search:focus {
  outline: 3px solid #b9dcff;
  border-color: var(--blue);
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.services {
  padding: 68px 0;
}
.section-title {
  text-align: center;
  margin: 0 0 34px;
}
.section-title h2 {
  font-size: 2.2rem;
  margin: 0;
}
.section-title p {
  color: var(--muted);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  padding: 26px;
}
.service-icon {
  font-size: 1.8rem;
}
.service h3 {
  margin: 0.6rem 0;
}
.service p {
  color: var(--muted);
}
.how {
  padding: 64px 0;
  background: #fff;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}
.footer {
  background: var(--navy);
  color: #dce9f7;
  padding: 40px 0;
  margin-top: 40px;
}
.footer .logo {
  background: #fff;
  border-radius: 8px;
  padding: 5px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}
.fine {
  font-size: 0.84rem;
  color: #8392a7;
}
.notice {
  border-radius: 8px;
  padding: 11px 13px;
  margin: 10px 0;
}
.notice.error {
  background: #fff0f0;
  color: #8c1818;
}
.notice.success {
  background: #eaf8f0;
  color: #13633c;
}
.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #fff;
  padding: 24px 18px;
}
.sidebar .logo {
  background: #fff;
  border-radius: 8px;
  padding: 5px;
}
.side-links {
  display: grid;
  gap: 8px;
  margin-top: 35px;
}
.side-links a {
  padding: 11px;
  border-radius: 7px;
  text-decoration: none;
}
.side-links a.active,
.side-links a:hover {
  background: #17436f;
}
.admin-main {
  padding: 30px;
  overflow: hidden;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.admin-head h1 {
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.metric {
  padding: 18px;
}
.metric strong {
  font-size: 1.8rem;
  display: block;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar .search {
  max-width: 320px;
}
.panel {
  padding: 20px;
  overflow: auto;
}
.table {
  border-collapse: collapse;
  width: 100%;
  min-width: 820px;
}
.table th,
.table td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
  margin-right: 7px;
}
.status-dot.green {
  background: var(--ok);
}
.status-dot.red {
  background: var(--bad);
}
.status-dot.blue {
  background: var(--blue);
}
.link-button {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 0;
  font-weight: 750;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(720px, 100%);
  background: #f7f9fc;
  z-index: 40;
  box-shadow: -15px 0 35px #001b3940;
  padding: 28px;
  overflow: auto;
}
.drawer[hidden] {
  display: none;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
}
.tab {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-weight: 750;
}
.tab.active {
  color: var(--blue);
  border-bottom: 3px solid var(--blue);
}
.quote-list {
  display: grid;
  gap: 12px;
}
.quote {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  background: #fff;
}
.quote-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.badge {
  background: var(--sky);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 800;
}
.money {
  font-size: 1.2rem;
  font-weight: 850;
}
.modal {
  position: fixed;
  inset: 0;
  background: #001b3970;
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 18px;
}
.modal[hidden] {
  display: none;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  width: min(600px, 100%);
  max-height: 90vh;
  overflow: auto;
}
.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;
}
@media (max-width: 850px) {
  .hero-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .how-grid,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .side-links {
    display: flex;
    margin: 0;
  }
  .admin-main {
    padding: 20px;
  }
  .nav nav a:not(.btn) {
    display: none;
  }
}
@media (max-width: 520px) {
  .field-grid,
  .how-grid,
  .metrics {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 42px;
  }
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .side-links a:not(.active) {
    display: none;
  }
}
