:root {
  --paper: #f6f8fc;
  --ink: #142244;
  --muted: #43516e;
  --blue: #143fc4;
  --blue-dark: #09308f;
  --yellow: #ffe252;
  --line: #d4ddf2;
  --tint: #e7efff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 system-ui, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.header, .foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--blue); font-weight: 900; line-height: 1.2; text-decoration: none; }
.brand span:first-child { display: grid; width: 2.65rem; aspect-ratio: 1; place-items: center; border-radius: 9px; background: var(--blue); color: var(--yellow); font-size: 1.65rem; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.35rem; font-size: .9rem; }
nav a { font-weight: 750; text-decoration: none; }
nav a:not(.button):hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 48px; padding: .65rem 1.2rem; background: var(--blue); color: white; border: 0; border-radius: 8px; text-decoration: none; font: inherit; font-weight: 800; cursor: pointer; }
.button:hover { background: var(--blue-dark); }
.button.small { min-height: 40px; padding: .4rem .9rem; font-size: .9rem; }
.button:focus-visible { outline-color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  background: var(--blue);
  color: white;
  border-radius: 20px;
  overflow: hidden;
}
.hero-copy { align-self: center; padding: clamp(1.25rem, 4.4vw, 3.9rem); }
.eyebrow { margin: 0 0 1.1rem; font-size: .85rem; font-weight: 800; letter-spacing: .05em; }
.eyebrow::before { content: ''; display: inline-block; width: .6rem; height: .6rem; margin-right: .6rem; background: var(--yellow); vertical-align: .02em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 4.15rem); font-weight: 900; line-height: 1.23; letter-spacing: -.045em; }
h1 em { color: var(--yellow); font-style: normal; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.6rem); font-weight: 850; line-height: 1.25; margin-bottom: .75rem; }
h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.hero-copy > p:not(.eyebrow) { max-width: 36ch; margin-bottom: 1.4rem; color: #f0f4ff; }
.hero .button { background: var(--yellow); color: var(--ink); }
.hero .button:hover { background: #fff09b; }
.hero .button:focus-visible { outline-color: white; }
.hero-photo { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 52% center; }

.section { padding-block: clamp(2.4rem, 6vw, 4.75rem); scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; column-gap: 1rem; }
.section-heading p { margin-bottom: .75rem; }
.muted { color: var(--muted); }
.services { margin-top: .4rem; border-top: 3px solid var(--blue); }
.services article {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(0, 2.1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(.6rem, 2.7vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  background: white;
}
.services article > * { margin: 0; }
.services article > p:not(.price) { color: var(--muted); }
.price { font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-weight: 900; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: .8rem; color: var(--muted); }
.tint { background: var(--tint); }
.visit, .quote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.5rem, 6vw, 6rem); }
.visit > div + div { border-inline-start: 1px solid #a7bbe9; padding-inline-start: clamp(1rem, 3vw, 2.5rem); }
.pills { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin-bottom: 0; }
.pills li { padding: .25rem .7rem; border: 1px solid #b2c3ee; border-radius: 6px; background: white; font-weight: 750; }
ol { padding-inline-start: 1.5rem; margin-bottom: 0; }
ol li::marker { color: var(--blue); font-weight: 800; }
ol li + li { margin-top: .5rem; }

form { background: white; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 12px; padding: clamp(1.1rem, 3vw, 1.8rem); }
select { display: block; width: 100%; padding: .6rem; margin: .35rem 0 1rem; border: 1px solid #8495be; border-radius: 6px; color: inherit; background: white; font: inherit; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { padding: 0; margin-bottom: .25rem; }
form > label, legend { font-weight: 750; }
fieldset label { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; margin-right: .6rem; cursor: pointer; }
input { accent-color: var(--blue); }
#result { color: var(--blue-dark); font-weight: 800; margin: .7rem 0 0; }
#result:empty { margin: 0; }
footer { background: var(--ink); color: white; }
.foot small { color: #c8d4ef; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header { align-items: flex-start; flex-direction: column; gap: .65rem; }
  nav { gap: .55rem .85rem; }
  .hero, .visit, .quote { grid-template-columns: 1fr; }
  .hero-photo { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .services article { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .65rem; }
  .services article > p:not(.price) { grid-row: 2; grid-column: 1 / -1; }
  .visit > div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid #a7bbe9; padding-top: 1rem; }
  .foot { align-items: flex-start; flex-direction: column; gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
