:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f6f8fb;
  --surface-strong: #e9f1ff;
  --surface-blue: #dbe9fe;
  --text: #0e1d2b;
  --muted: #414751;
  --primary: #1267b1;
  --primary-dark: #0b4f8a;
  --secondary: #006972;
  --success: #16834b;
  --border: #dfe5ec;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(18, 103, 177, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #a8c6eb;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links > a,
.nav-item > a {
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  padding: 27px 0 24px;
}

.nav-links > a:hover,
.nav-links > a.active,
.nav-item > a:hover,
.nav-item > a.active,
.nav-item:focus-within > a,
.nav-item:hover > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-item {
  position: relative;
}

.has-dropdown > a::after {
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: -18px;
  z-index: 60;
  display: grid;
  min-width: 280px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 32px rgba(14, 29, 43, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.25;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--surface-strong);
  color: var(--primary);
  outline: 0;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary);
  font-size: 24px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 11px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.button.secondary {
  background: #fff;
  color: var(--primary);
}

.button.secondary:hover {
  background: var(--surface-strong);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.hero,
.page-hero {
  padding: 76px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(36px, 4.3vw, 56px);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-line {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.quote-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.quote-card-header {
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.quote-card-header h2 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.2;
}

.quote-card-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 24px 28px 28px;
}

.quote-form textarea {
  min-height: 108px;
}

.quote-form .button {
  width: 100%;
}

.field-grid.compact {
  gap: 14px;
}

.dashboard-visual {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #adc0d8;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

.metric {
  min-height: 112px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.metric strong {
  display: block;
  margin: 8px 0;
  color: var(--primary);
  font-size: 31px;
  line-height: 1;
}

.metric span,
.chart-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chart {
  grid-column: 1 / -1;
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  height: 142px;
  margin-top: 20px;
}

.bars span {
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #22a6b3 0%, #1267b1 100%);
}

.section {
  padding: 76px 0;
}

.section.muted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
}

.card:hover {
  box-shadow: var(--shadow);
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--primary);
  font-weight: 800;
}

.card p,
.split p,
.list li {
  color: var(--muted);
}

.process-card {
  position: relative;
}

.step-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 28px;
}

.list li::before {
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid var(--success);
  border-left: 2px solid var(--success);
  transform: rotate(-45deg);
  color: var(--success);
  content: "";
}

.cta-band {
  padding: 64px 0;
  background: var(--surface-blue);
  border-top: 1px solid #bfd3ef;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-inner p {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.contact-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
}

.form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--text);
  font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(18, 103, 177, 0.1);
  outline: 0;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.checkbox input {
  width: 18px;
  margin-top: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-status {
  min-height: 22px;
  color: var(--secondary);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 52px 0;
}

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

.footer-grid h3 {
  font-size: 14px;
  text-transform: uppercase;
}

.footer-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a,
.footer-grid p {
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .site-header.open .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: grid;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.open .nav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .site-header.open .nav-item > a {
    display: flex;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .site-header.open .dropdown-menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 4px 8px 10px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-header.open .dropdown-menu a {
    padding: 9px 14px;
    border-bottom: 0;
    font-size: 14px;
  }

  .hero-grid,
  .split,
  .contact-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    display: grid;
  }

  .grid.three,
  .grid.four,
  .grid.two,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .hero,
  .page-hero,
  .section {
    padding: 54px 0;
  }

  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero-grid,
  .dashboard-body,
  .field-grid,
  .grid.three,
  .grid.four,
  .grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .form,
  .contact-panel {
    padding: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
