:root {
  --bg: #ffffff;
  --ink: #07111f;
  --muted: #5c6b7a;
  --line: #e4ebf2;
  --hairline: rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  --blue: #0080ff;
  --blue-dark: #0066cc;
  --mist: #eefaff;
  --card: #f7fbfd;
  --page: 1120px;
  --gutter: 20px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.15rem, 4vw, 4.1rem); line-height: 1.08; margin: 0 0 18px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 10px; }
p, li { margin: 0 0 12px; line-height: 1.5; }

.site-footer, .hero, .section, .document {
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin-left: auto;
  margin-right: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  margin: 0;
  background-color: #ffffff;
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 22px 0;
  background-color: #ffffff;
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.brand small { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.5; transition: color 0.3s ease; }
.site-nav a:hover { color: var(--blue-dark); }

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: end;
  padding: 40px 0 72px;
}
.eyebrow { color: var(--blue); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.lede { font-size: 20px; max-width: 42rem; }
.hero-actions, .cookie div { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark {
  background: #07111f;
  color: white;
  padding: 28px;
  border-radius: 12px;
}
.hero-mark img { width: 100%; height: auto; object-fit: contain; border-radius: 8px; margin: 0 auto 16px; }
.hero-mark p { color: #d5e4f2; }

.button, button.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 220px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
@media (hover: hover) {
  .button:hover, button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 128, 255, 0.18);
  }
}
.button:focus-visible, button.button:focus-visible {
  outline: 2px solid rgba(0, 128, 255, 0.45);
  outline-offset: 3px;
}
.button.is-loading { pointer-events: none; }
.button.is-loading .button-text { visibility: hidden; }
.button-spin {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.button.is-loading .button-spin { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
@media (hover: hover) {
  .button-ghost:hover { box-shadow: inset 0 0 0 1px var(--hairline), 0 8px 24px rgba(0, 0, 0, 0.06); }
}
.section { padding: 40px 0 80px; }
.section-intro { max-width: 44rem; margin-bottom: 32px; }
.section-search { background: var(--mist); width: 100%; padding-left: max(var(--gutter), calc((100% - var(--page)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--page)) / 2)); }
.section-ink { background: #07111f; color: white; width: 100%; padding-left: max(var(--gutter), calc((100% - var(--page)) / 2)); padding-right: max(var(--gutter), calc((100% - var(--page)) / 2)); }
.section-ink a { color: white; }
.cards { display: grid; gap: 20px; align-items: stretch; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards article img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }
.cards article, .choices li, .faq article, .search-fallback, .lead-form {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.section-ink .cards article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.choices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.after-list { margin: 20px 0; }
.search-frame { min-height: 280px; }
.search-note { color: var(--muted); font-size: 15px; }
.search-fallback { background: white; }
.faq { display: grid; gap: 12px; }
.lead-form { display: grid; gap: 16px; max-width: 640px; }
.lead-form label { font-size: 15px; line-height: 1.5; }
.lead-form .float { position: relative; display: block; }
.lead-form input:not([type="checkbox"]), .lead-form textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 22px 16px 8px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: inherit;
  background: white;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form .float-label {
  position: absolute;
  left: 16px;
  top: 18px;
  max-width: calc(100% - 32px);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.3;
  pointer-events: none;
  transition: all 0.3s ease;
}
.lead-form .float:focus-within .float-label,
.lead-form .float.is-filled .float-label {
  top: 7px;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--blue);
}
.lead-form .float:focus-within input:not([type="checkbox"]),
.lead-form .float:focus-within textarea,
.lead-form input:not([type="checkbox"]):focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 128, 255, 0.12);
}
.lead-form input[type="date"] { color: transparent; }
.lead-form input[type="date"]:focus,
.lead-form .float.is-filled input[type="date"] { color: inherit; }
.lead-form .check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.lead-form .check input { width: 22px; height: 22px; min-height: 22px; margin-top: 4px; padding: 0; accent-color: var(--blue); }
.lead-form small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.req { color: #c52828; }
.field-title { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .errorlist, .lead-form .field-hint {
  color: #c52828;
  font-size: 13px;
  line-height: 1.4;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lead-form .field-hint { display: block; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-4px); transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease; }
.lead-form .field-hint:empty { display: none; }
.lead-form .field-hint:not(:empty) { max-height: 4.5em; opacity: 1; transform: none; margin-top: 6px; }
.lead-form .errorlist { margin-top: 6px; }
.lead-form input:not([type="checkbox"]).is-invalid, .lead-form textarea.is-invalid {
  border-color: rgba(197, 40, 40, 0.7);
  box-shadow: 0 0 0 4px rgba(197, 40, 40, 0.1);
}
.lead-form .check input.is-invalid { outline: 2px solid rgba(197, 40, 40, 0.45); outline-offset: 3px; }
.form-success {
  max-width: 640px;
  background: #e8f8ef;
  border: 1px solid rgba(40, 120, 70, 0.16);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
  font-size: 22px;
  line-height: 1.5;
  animation: form-done 0.45s ease;
}
@keyframes form-done {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.site-footer a, .site-footer p { display: block; margin: 0 0 8px; color: inherit; text-decoration: none; }
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  background: white;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.cookie button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; padding: 0 16px; cursor: pointer; }
.cookie button.button { background: var(--blue); color: white; }
body:has(#cookie-banner:not([hidden])) { padding-bottom: 150px; }
.sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  min-height: 56px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}
.document { padding: 36px 0 80px; max-width: 760px; }
.document h2 { font-size: 1.5rem; margin-top: 32px; }
.document li { margin: 6px 0; }

@media (prefers-reduced-motion: reduce) {
  .button, .lead-form input, .lead-form textarea, .lead-form .float-label, .lead-form .field-hint, .form-success {
    transition: none;
    animation: none;
  }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .hero, .cards-3, .choices, .site-footer, .cookie, .date-pair { grid-template-columns: 1fr; display: grid; }
  html { scroll-padding-top: 220px; }
  .hero { gap: 28px; padding: 28px 0 56px; }
  .section { padding: 36px 0 64px; }
  .cards article, .choices li, .faq article, .search-fallback, .lead-form { padding: 22px; }
  .site-header-inner { align-items: flex-start; flex-direction: column; }
  .cookie { display: grid; }
  .sticky-cta.is-on { display: flex; }
  body.sticky-on { padding-bottom: 88px; }
  h1 { font-size: 42px; }
}
