:root {
  --bg: #fbfbf9;
  --fg: #1c1c1a;
  --muted: #5d5d58;
  --line: #e3e3dd;
  --card: #ffffff;
  --accent: #0f5c8c;
  --accent-fg: #ffffff;
  --ok-bg: #e9f6ec;
  --ok-fg: #1d5a2a;
  --err-bg: #fbeaea;
  --err-fg: #7a1f1f;
  --max: 960px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161a;
    --fg: #ececea;
    --muted: #a3a39c;
    --line: #2b2d33;
    --card: #1c1d22;
    --accent: #6fb3dc;
    --accent-fg: #0b0c0f;
    --ok-bg: #16301d;
    --ok-fg: #9ad9a8;
    --err-bg: #3a1a1a;
    --err-fg: #f0a3a3;
  }
}

* { box-sizing: border-box; }

html { font-size: 17px; }

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

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

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

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: var(--fg);
}
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
nav a { margin-left: 18px; text-decoration: none; color: var(--fg); }
nav a:hover { text-decoration: underline; }

main { padding: 40px 0 64px; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.4rem; margin: 40px 0 10px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
p.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; margin: 0 0 24px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}
.card p { margin: 6px 0 10px; color: var(--muted); }
.card .price { font-weight: 600; color: var(--fg); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

ul.proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.proof li { padding-left: 1.2em; position: relative; }
ul.proof li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; margin: 10px 0; padding-left: 2.2em; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  font-size: 0.85rem; display: grid; place-items: center; font-weight: 700;
}

form.contact { display: grid; gap: 14px; max-width: 40rem; }
form.contact label { display: grid; gap: 4px; font-weight: 600; }
form.contact input, form.contact select, form.contact textarea {
  font: inherit;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
}
form.contact textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 12px 14px; border-radius: 8px; margin: 8px 0; }
.notice.ok { background: var(--ok-bg); color: var(--ok-fg); }
.notice.err { background: var(--err-bg); color: var(--err-fg); }
.notice ul { margin: 6px 0 0 18px; }

table { border-collapse: collapse; width: 100%; margin: 12px 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { padding: 20px 16px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.htmx-request .btn { opacity: 0.6; pointer-events: none; }
