:root {
  color-scheme: light;
  --navy: #111a2a;
  --page: #f5f6f9;
  --card: #fff;
  --accent: #2457A7;
  --ink: #101722;
  --muted: #4f6483;
  --line: #c6cfdc;
  font: 15px/1.5 Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
}
a { color: inherit; }
a:is(:hover, :focus-visible) { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.container { width: min(976px, calc(100% - 48px)); margin-inline: auto; }
.site-header, .site-footer { background: var(--navy); color: #b6c1d3; }
.header-inner { min-height: 57px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
nav { display: flex; gap: 32px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page { flex: 1; padding-block: 80px; }
h1 { margin: 0 0 40px; font-size: 24px; line-height: 32px; font-weight: 600; }
.services-title { position: relative; }
.services-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 40px;
  height: 3px;
  background: var(--accent);
}
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.card h2 { margin: 0 0 12px; font-size: 16px; line-height: 24px; }
.card p { color: var(--muted); margin: 0; }
.site-footer { padding: 40px 0 27px; }
.site-footer .wordmark { font-size: 16px; }
.site-footer p { margin: 4px 0 20px; }
.site-footer small { color: #98a6bc; font-size: 13px; }
.intro { margin: -24px 0 32px; color: var(--muted); }
.contact-form { max-width: 680px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
label { display: block; margin-bottom: 20px; font-weight: 600; }
input, textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #8796ab;
  background: white;
  color: inherit;
  font: inherit;
  font-weight: normal;
}
textarea { resize: vertical; }
.form-note { font-size: 14px; }
button {
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid transparent;
  background: var(--navy);
  color: white;
  font: inherit;
  cursor: pointer;
}
button:hover:not(:disabled) { background: #263750; }
button:disabled { opacity: .65; cursor: default; }
#form-status:not(:empty) { margin-top: 16px; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 680px) {
  .container { width: calc(100% - 40px); }
  .page { padding-block: 48px; }
  nav { gap: 20px; }
  h1 { margin-bottom: 28px; }
  .service-grid, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .service-grid { gap: 16px; }
  .card { padding: 24px; }
  .intro { margin-top: -12px; }
}
