:root {
  --ink: #17211c;
  --ink-soft: #4a5852;
  --line: #dfe5e1;
  --bg: #fbfaf7;
  --card: #ffffff;
  --accent: #1f6f4a;
  --accent-soft: #eaf3ee;
  --warn: #8a6d1f;
  --radius: 14px;
  --max: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* --- header --- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand .mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
}
nav.site a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  margin-left: 18px;
}
nav.site a:hover { color: var(--accent); text-decoration: underline; }

/* --- type --- */
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-size: 21px; letter-spacing: -0.01em; margin: 38px 0 12px; }
h3 { font-size: 16px; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--ink-soft); margin-bottom: 26px; }
.muted { color: var(--ink-soft); font-size: 14px; }
a { color: var(--accent); }
ul { padding-left: 20px; margin: 0 0 14px; }
li { margin-bottom: 7px; }
main { padding: 44px 0 70px; }

/* --- cards --- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin: 26px 0;
}
.card h2 { margin-top: 0; }

.facts { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; padding: 18px 20px; margin: 22px 0; }
.facts p:last-child { margin-bottom: 0; }

/* --- sample message --- */
.bubble {
  background: var(--accent-soft);
  border: 1px solid #cfe2d7;
  border-radius: 16px 16px 16px 4px;
  padding: 13px 16px;
  max-width: 480px;
  margin: 0 0 12px;
  font-size: 15px;
}

/* --- form --- */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field { margin-bottom: 18px; }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  background: #fcfdfc;
  margin-bottom: 18px;
}
.consent input[type=checkbox] {
  margin: 3px 0 0;
  width: 18px; height: 18px;
  flex: none;
  accent-color: var(--accent);
}
.consent label { font-weight: 400; font-size: 14px; line-height: 1.55; margin: 0; color: var(--ink-soft); }

button.submit {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
button.submit:hover { background: #1a5c3d; }

.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }

.success {
  display: none;
  border: 1px solid #cfe2d7;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 16px;
  margin-top: 18px;
  font-size: 15px;
}
.success.show { display: block; }

.error {
  display: none;
  border: 1px solid #e7c9c9;
  background: #fdf3f3;
  border-radius: 10px;
  padding: 16px;
  margin-top: 18px;
  font-size: 15px;
  color: #7a2e2e;
}
.error.show { display: block; }
.error a { color: #7a2e2e; }

button.submit:disabled { background: #8aa79a; cursor: default; }

/* --- footer --- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0 44px;
  font-size: 14px;
  color: var(--ink-soft);
}
footer.site a { color: var(--ink-soft); margin-right: 16px; }

table.kv { border-collapse: collapse; width: 100%; font-size: 15px; margin-bottom: 14px; }
table.kv td { border-bottom: 1px solid var(--line); padding: 9px 0; vertical-align: top; }
table.kv td:first-child { font-weight: 600; width: 34%; padding-right: 16px; }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  nav.site a { margin-left: 0; margin-right: 16px; }
  nav.site { width: 100%; }
}
