@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #0079c2;
  --brand-dark: #005b94;
  --navy: #071d33;
  --ink: #111418;
  --muted: #5b6573;
  --line: #e3e8ee;
  --sky: #9fd3f5;
  --tint: #e6f2fa;
  --bg: #f5f8fb;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(3, 20, 40, 0.18), 0 2px 6px rgba(3, 20, 40, 0.08);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background-color: var(--navy);
  /* Diagonal hairlines nod to the original site's background pattern. */
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 140px),
    radial-gradient(120% 120% at 20% 0%, var(--brand) 0%, #035f9b 45%, var(--navy) 100%);
  padding-bottom: clamp(48px, 8vw, 96px);
}

/* White band: the logo has black lettering and needs a light background. */
.nav-band { background: #fff; box-shadow: 0 1px 0 rgba(3, 20, 40, 0.08); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__logo { line-height: 0; }
.nav__logo img { width: 190px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--brand); }
.nav__links .nav__cta {
  padding: 9px 16px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
}
.nav__links .nav__cta:hover { background: var(--tint); }

.hero__grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(24px, 6vw, 64px);
}
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero__copy p { margin: 0 0 32px; max-width: 34em; font-size: 18px; color: rgba(255, 255, 255, 0.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .button { width: auto; }

/* ---------- Card ---------- */
.card {
  width: 100%;
  padding: clamp(24px, 4vw, 36px);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.card__lead { margin: 0 0 22px; color: var(--muted); }
.card__note {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  background: var(--tint);
}
.steps li span { padding-top: 2px; }

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font: 600 17px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(0, 121, 194, 0.35);
}
.button svg { transition: transform 0.15s ease; }
.button:hover { background: var(--brand-dark); }
.button:hover svg { transform: translateX(3px); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.button:disabled { opacity: 0.7; cursor: default; }
.hero .button { background: #fff; color: var(--brand-dark); box-shadow: 0 6px 18px rgba(3, 20, 40, 0.25); }
.hero .button:hover { background: var(--tint); }
.hero .button--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.hero .button--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.hero .card .button { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(0, 121, 194, 0.35); }
.hero .card .button:hover { background: var(--brand-dark); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; scroll-margin-top: 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); }
.section__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.section__lead { margin: 0 0 40px; max-width: 36em; font-size: 18px; color: var(--muted); }

/* ---------- Services ---------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.services li {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.services li:hover { border-color: #bcd6ea; box-shadow: 0 12px 30px rgba(3, 20, 40, 0.08); transform: translateY(-2px); }
.services svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--tint);
  stroke: var(--brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.services h3 { margin: 0 0 6px; font-size: 18px; font-weight: 650; }
.services p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__aside { margin: 0; color: var(--muted); }
.contact__aside a { font-weight: 600; }
.contact .card { box-shadow: 0 12px 40px rgba(3, 20, 40, 0.08); border: 1px solid var(--line); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: 16px/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid #c6d2e1;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 121, 194, 0.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b42318; }
.field-error { margin: 6px 0 0; font-size: 14px; color: #b42318; }
.form__status:empty { display: none; }
.form__status { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.form__status.is-ok { background: #e7f6ec; color: #146c2e; }
.form__status.is-error { background: #fdecea; color: #b42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:not(:empty) { margin: 0 0 16px; }

/* ---------- Footer ---------- */
.footer {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  background: var(--navy);
}

/* ---------- 404 page ---------- */
.page {
  min-height: 100vh;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 112px) 16px 32px;
}

@media (max-width: 860px) {
  .hero__grid, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__logo img { width: 140px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .services { grid-template-columns: 1fr; gap: 12px; }
  .services li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .services svg { grid-row: span 2; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
