:root {
  --bg: #f6f7f7;
  --surface: #ffffff;
  --text: #15201f;
  --muted: #5b6766;
  --accent: #0f766e;
  --accent-contrast: #ffffff;
  --border: #dfe4e3;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1413;
    --surface: #172120;
    --text: #e8eeed;
    --muted: #9aa8a6;
    --accent: #5ecec0;
    --accent-contrast: #062623;
    --border: #273433;
  }
}

* { box-sizing: border-box; }

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

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

header.site, footer.site, main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

header.site .brand img { width: 36px; height: 36px; border-radius: 9px; }

header.site nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--text); }

main { padding-bottom: 48px; }

.hero { padding: 32px 0 16px; }
.hero h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.15; margin: 0 0 12px; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 24px; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 32px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.document { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px 24px 24px; }
.document h1 { font-size: 30px; }
.document h2 { font-size: 21px; margin-top: 28px; }

.notice { color: var(--muted); font-size: 14px; }

form.contact { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
form.contact label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
form.contact input, form.contact select, form.contact textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 100%;
}
form.contact textarea { min-height: 140px; resize: vertical; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }

footer.site { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

.preview-banner {
  background: #f6c344;
  color: #2b2100;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
}
