:root {
  --blue: #005bac;
  --ink: #172033;
  --muted: #5c6b7a;
  --line: #d5deea;
  --paper: #f4f7fb;
  --warn: #8a4b08;
  --ok: #0d6b3d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 4px solid var(--blue);
}

.brand { color: inherit; text-decoration: none; }
.brand span { display: block; font-weight: 700; font-size: 1.25rem; color: var(--blue); }
.brand small { color: var(--muted); }
.quiet { color: var(--blue); }

main { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
main.wide { max-width: 72rem; }

h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 0.4rem; }
.lead { color: var(--muted); margin-top: 0; }

.steps { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.4rem; }
.steps span, .steps a {
  text-decoration: none;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
}
.steps .on { background: var(--blue); color: #fff; border-color: var(--blue); }

form.card, .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.3rem;
}

label { display: block; font-weight: 650; margin: 0.9rem 0 0.25rem; }
.hint { color: var(--muted); font-size: 0.92rem; margin: 0; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="date"], input[type="password"], select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid #6f8297;
  border-radius: 8px;
  background: #fff;
}
textarea { min-height: 7rem; }
.check { display: flex; gap: 0.5rem; align-items: center; font-weight: 500; margin: 0.4rem 0; }
.check input { width: auto; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }

.actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
button, .button {
  appearance: none;
  border: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary, button.secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.error { background: #fff4f0; color: #8d1d12; border: 1px solid #f0c2b8; padding: 0.7rem 0.8rem; border-radius: 8px; }
.note { background: #fff8e8; color: var(--warn); padding: 0.7rem 0.8rem; border-radius: 8px; }
.ok { background: #e8f6ee; color: var(--ok); padding: 0.7rem 0.8rem; border-radius: 8px; }
.key { font-family: Consolas, monospace; word-break: break-all; background: #101820; color: #fff; padding: 0.8rem; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.45rem; vertical-align: top; font-size: 0.95rem; }
#map { height: 360px; border-radius: 12px; border: 1px solid var(--line); margin: 0.6rem 0; }
.choices { display: grid; gap: 0.6rem; }
.choices label { margin: 0; font-weight: 500; border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem; background: #fff; }
.choices input { width: auto; margin-right: 0.4rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--blue); padding: 0.6rem 1rem; font-weight: 700; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, main:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #0b0c0c;
}
main:focus { outline: none; }
fieldset { border: 0; padding: 0; margin: 0.9rem 0 0; min-width: 0; }
legend { font-weight: 650; padding: 0; margin-bottom: 0.25rem; }
.choices legend { margin-bottom: 0; }
.top nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.steps a[aria-current="step"] { font-weight: 700; }
.spaced { margin-top: 1rem; }

.site-footer { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem 2rem; }
