:root {
  --bg: #0e0f11;
  --panel: #17191c;
  --line: #2a2d31;
  --text: #ecebe8;
  --muted: #a4a7ab;
  --accent: #f2a900;
  --accent-text: #111111;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

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

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header and logo */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(14,15,17,0.97);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 62px; }
.logo {
  font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); text-decoration: none; font-size: 1.05rem;
  display: flex; align-items: center; gap: 10px;
}
.logo::before {
  content: ""; width: 14px; height: 14px; background: var(--accent); display: inline-block;
}

nav.main { display: none; }
nav.main.open {
  display: block; position: absolute; top: 62px; left: 0; right: 0;
  background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
}
nav.main a {
  display: block; padding: 12px 0; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line); font-weight: 600;
}
nav.main a[aria-current="page"] { color: var(--accent); }
.menu-btn {
  background: none; border: 1px solid var(--line); color: var(--text);
  padding: 8px 14px; border-radius: 6px; font-size: 0.95rem; cursor: pointer;
}

/* Hero */
.hero { padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; }
.hero p { color: var(--muted); max-width: 640px; margin-bottom: 24px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 12px; }

/* Sections */
section.block { padding: 44px 0; border-bottom: 1px solid var(--line); }
section.block h2 { font-size: 1.5rem; margin-bottom: 14px; line-height: 1.25; }
section.block p { color: var(--muted); margin-bottom: 14px; max-width: 700px; }
section.block p strong { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  padding: 14px 22px; border-radius: 6px; font-weight: 700; text-decoration: none;
  border: 0; font-size: 1rem; cursor: pointer; text-align: center;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-row { display: grid; gap: 12px; }

/* Cards */
.cards { display: grid; gap: 16px; margin-top: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--accent); border-radius: 8px; padding: 22px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 16px; }

/* Lists */
ul.plain { list-style: none; margin: 10px 0 16px; }
ul.plain li { padding: 8px 0 8px 22px; position: relative; color: var(--muted); }
ul.plain li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; background: var(--accent); }

/* Forms */
form.lead { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-top: 20px; }
form.lead h3 { margin-bottom: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 12px; font-size: 1rem; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }
.two { display: grid; gap: 16px; }
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.confirm { display: none; background: #1d2a1d; border: 1px solid #3c6b3c; color: #d6efd6; padding: 16px; border-radius: 6px; margin-top: 16px; }
.confirm.show { display: block; }
.error { display: none; background: #2e1c1c; border: 1px solid #7a3a3a; color: #f1d4d4; padding: 16px; border-radius: 6px; margin-top: 16px; }
.error.show { display: block; }

.notice { background: var(--panel); border-left: 4px solid var(--accent); padding: 16px 18px; border-radius: 4px; margin: 18px 0; color: var(--muted); }
.notice strong { color: var(--text); }

/* Footer */
footer.site { padding: 36px 0; color: var(--muted); font-size: 0.92rem; }
footer.site .cols { display: grid; gap: 22px; }
footer.site h4 { color: var(--text); margin-bottom: 8px; font-size: 0.95rem; }
footer.site a { color: var(--muted); }
footer.site .small { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* Wider screens */
@media (min-width: 760px) {
  body { font-size: 18px; }
  .menu-btn { display: none; }
  nav.main, nav.main.open { display: flex; position: static; background: none; border: 0; padding: 0; gap: 22px; }
  nav.main a { border: 0; padding: 6px 0; font-size: 0.95rem; }
  .hero { padding: 84px 0 64px; }
  .hero h1 { font-size: 2.8rem; }
  .btn-row { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards.two-up { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 2fr 1fr 1fr; }
}

/* Accessibility and mobile fixes */
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--accent-text);
  padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 8px; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

.confirm:focus, .error:focus { outline: 2px solid var(--accent); }

.menu-btn { min-height: 44px; min-width: 76px; font-weight: 600; }
.btn { min-height: 48px; }
nav.main a { min-height: 44px; }

/* Mobile menu that scrolls instead of running off the screen */
nav.main.open { max-height: calc(100vh - 62px); overflow-y: auto; }

/* Checkbox groups (replace multi select boxes) */
fieldset.checks { border: 0; margin: 0 0 16px; padding: 0; }
fieldset.checks legend { font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.checks label {
  display: flex; align-items: center; gap: 12px; min-height: 44px;
  padding: 6px 0; color: var(--text); font-weight: 400;
}
.checks input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }

/* Phone and email links in the footer and contact list */
footer.site a, ul.plain a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
