:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --text: #1c2430;
  --muted: #4d5866;
  --border: #d5dbe2;
  --brand: #1f3a5f;
  --brand-contrast: #ffffff;
  --link: #1d4f91;
  --ok-bg: #e8f5ec;
  --ok-border: #2e7d4f;
  --err-bg: #fdecec;
  --err-border: #b3261e;
  --err-text: #8c1d18;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1b2129;
    --text: #e6eaef;
    --muted: #a9b3bf;
    --border: #333d49;
    --brand: #8fb3e6;
    --brand-contrast: #0f1720;
    --link: #9cc2ff;
    --ok-bg: #13281b;
    --ok-border: #4caf74;
    --err-bg: #2c1514;
    --err-border: #e0645c;
    --err-text: #ffb4ab;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--link); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 800; letter-spacing: 0.06em; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-header nav a { color: var(--text); text-decoration: none; padding: 4px 0; }
.site-header nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--brand); }
.site-header nav a:hover { text-decoration: underline; }

main { padding-top: 28px; padding-bottom: 48px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.meta { color: var(--muted); margin-top: 0; }

.hero { padding: 12px 0 8px; }
.services li { margin-bottom: 6px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 4px 20px 12px;
  margin: 28px 0;
}

.button {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-contrast);
  border: 0;
  border-radius: 6px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.1); }
.button:disabled { opacity: 0.6; cursor: wait; }

.contact-form { margin-top: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.field input:focus, .field textarea:focus, .consent input:focus { outline: 2px solid var(--link); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--err-border) !important; }
.hint { font-size: 0.92rem; color: var(--muted); margin: 4px 0 0; }
.field-error { color: var(--err-text); font-size: 0.95rem; margin: 4px 0 0; }

.consent {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px 16px;
  margin: 8px 0 22px;
  background: var(--surface);
}
.consent legend { font-weight: 700; padding: 0 6px; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; }
.consent-row input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 3px; }
.consent-row label { font-size: 0.97rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 6px; padding: 4px 16px; margin: 16px 0; border: 1px solid; }
.notice.success { background: var(--ok-bg); border-color: var(--ok-border); }
.notice.error { background: var(--err-bg); border-color: var(--err-border); color: var(--err-text); }

.legal h2 { scroll-margin-top: 12px; }
.legal section { scroll-margin-top: 12px; }
.jump { font-weight: 600; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: 0.95rem; color: var(--muted); }
.footer-inner { padding-top: 16px; padding-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .button { width: 100%; text-align: center; }
}

.address { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; }
