:root {
  --bg: #ffffff;
  --surface: #f5f6f8;
  --text: #1a1d23;
  --muted: #5b6270;
  --border: #d9dce2;
  --accent: #2f5bea;
  --accent-text: #ffffff;
  --success: #1b7a43;
  --error: #b42318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --text: #eceef2;
    --muted: #a3a9b5;
    --border: #2e333c;
    --accent: #6d8cff;
    --accent-text: #0b0d12;
    --success: #5cd08d;
    --error: #ff8a80;
  }
}

* { box-sizing: border-box; }

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

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 640px; }

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

.site-header { border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
nav a { text-decoration: none; }

.hero { padding: 96px 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: wait; }

.contact { padding: 72px 0; background: var(--surface); }
.contact h2 { margin-top: 0; }

form { display: grid; gap: 16px; margin-top: 24px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

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

.form-status { margin: 0; min-height: 1.6em; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

.site-footer { padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
