:root {
  --ink: #14171f;
  --muted: #5b6270;
  --line: #e3e5ea;
  --bg: #fbfaf7;
  --card: #ffffff;
  --accent: #1f4fd1;
  --accent-ink: #ffffff;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; letter-spacing: -0.02em; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 24px 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); line-height: 1.12; letter-spacing: -0.03em; margin: 14px 0 20px; max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; margin: 0 0 32px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 13px 22px; border-radius: var(--radius); text-decoration: none; font-weight: 600;
  border: 0; cursor: pointer; font-size: 1rem;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-left: 10px; }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0 0 12px; }
section .intro { color: var(--muted); max-width: 60ch; margin: 0 0 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.num { font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-bottom: 10px; display: block; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about ul { margin: 0; padding-left: 18px; color: var(--muted); }
.about li { margin-bottom: 8px; }

/* Form */
.contact-cta { margin-top: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 6px; }
input, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); font-weight: 400; }
.consent input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 8px; font-size: 0.95rem; display: none; }
.notice.ok { display: block; background: #e8f5ec; color: #1d6b3a; }
.notice.err { display: block; background: #fdecec; color: #9b2121; }

/* Legal pages */
.legal { padding: 64px 24px 80px; max-width: 828px; }
.legal h1 { font-size: 2.2rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal p, .legal li { color: #2c313b; }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--muted); margin-left: 18px; }

@media (max-width: 760px) {
  nav a:not(.cta) { display: none; }
  .about, .row { grid-template-columns: 1fr; }
  .hero { padding: 64px 24px 48px; }
  .btn.ghost { margin: 10px 0 0; }
}
