:root {
  color-scheme: light;
  --navy: #6d8ba3;
  --navy-deep: #4e6b82;
  --accent: #7e97b2;
  --accent-light: #b8cad8;
  --paper: #f3f6f8;
  --white: #ffffff;
  --ink: #425362;
  --muted: #6f7d8a;
  --line: #d7e4ee;
  --shadow: 0 10px 34px rgba(109, 139, 163, .10);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #fbfcfd 0, var(--paper) 360px);
  color: var(--ink);
  font: 16px/1.6 'DM Sans', 'Segoe UI', Arial, sans-serif;
}
button, input, select { font: inherit; }
a { color: var(--navy-deep); }
a:hover { color: var(--accent); }

.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  background: rgba(247, 250, 252, .98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 18px rgba(109, 139, 163, .05);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--navy-deep); }
.brand-logo { width: 94px; height: 50px; object-fit: contain; display: block; }
.brand-text {
  display: grid;
  gap: 1px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
}
.brand-text small {
  color: var(--muted);
  font: 600 10px/1.3 'DM Sans', 'Segoe UI', Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
nav a, nav button {
  display: inline-block;
  padding: 9px 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--navy-deep);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, nav button:hover { background: #e9f0f5; color: var(--navy-deep); }
nav form { margin: 0; }

main { padding: 56px 0 88px; }
h1, h2, h3 { color: var(--ink); font-family: 'Playfair Display', Georgia, serif; }
h1 { margin: 0 0 14px; font-size: clamp(35px, 5vw, 54px); line-height: 1.13; }
h2 { margin: 0 0 12px; font-size: 26px; line-height: 1.25; }
h3 { line-height: 1.3; }
.intro { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 25px; height: 2px; background: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 34px; }
.card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 27px;
  box-shadow: var(--shadow);
}
.card { display: flex; flex-direction: column; min-height: 205px; border-top: 3px solid var(--accent-light); }
.card p { margin: 0 0 24px; color: var(--muted); }
.card .button { align-self: flex-start; margin-top: auto; }
.button, button.primary {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--navy-deep);
  border-radius: 7px;
  background: var(--navy-deep);
  color: var(--white);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.button:hover, button.primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}
.panel { max-width: 520px; }
.panel.wide { max-width: none; }
.panel h1 { font-size: clamp(34px, 4vw, 48px); }
.field { margin: 17px 0; }
label { display: block; margin-bottom: 6px; font-weight: 700; }
input[type=text], input[type=email], input[type=password], select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #aebfcc;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
}
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy-deep); vertical-align: middle; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 400; }
.check input { flex: none; }
.error { color: #9e3636; font-weight: 700; }
.notice { padding: 12px 15px; border: 1px solid var(--line); border-radius: 7px; background: #edf4f8; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.stack { display: grid; gap: 18px; }
.item { padding-top: 18px; border-top: 1px solid var(--line); }
.small { font-size: 13px; }
.actions { margin-top: 20px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .bar { align-items: flex-start; flex-direction: column; gap: 7px; padding-block: 14px; }
  nav { margin-left: -10px; }
  main { padding-top: 36px; }
}
