:root {
  --brand: #1a5632;
  --brand-dark: #0f3d22;
  --accent: #e8a323;
  --bg: #f7f8f7;
  --card: #ffffff;
  --text: #1c221e;
  --muted: #5a675f;
  --border: #dde3df;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
header {
  background: var(--brand);
  color: #fff;
  padding: 0.9rem 1.2rem;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--accent); }
nav a {
  color: #d8e6dd;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
}
nav a:hover { color: #fff; text-decoration: underline; }
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 3rem;
}
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.8rem 0 0.6rem; }
.intro { color: var(--muted); max-width: 46rem; margin-bottom: 1.4rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }
p { margin-bottom: 0.9rem; }

.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 1rem 0 1.5rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.field input, .field select {
  width: 100%;
  max-width: 320px;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.row { display: flex; flex-wrap: wrap; gap: 1rem; }
.row .field { flex: 1 1 200px; }
button.calc-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
button.calc-btn:hover { background: var(--brand-dark); }
.result {
  display: none;
  margin-top: 1.2rem;
  background: #eef6f0;
  border: 1px solid #bfd9c7;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.result.show { display: block; }
.result strong.big { font-size: 1.5rem; color: var(--brand-dark); }
.result table { border-collapse: collapse; margin-top: 0.5rem; width: 100%; max-width: 420px; }
.result td { padding: 0.3rem 0.6rem 0.3rem 0; border-bottom: 1px solid #cfe0d5; font-size: 0.95rem; }
.result td:last-child { font-weight: 600; text-align: right; }

.ad-slot {
  min-height: 90px;
  margin: 1.6rem 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bab4;
  font-size: 0.8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.tool-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-2px); }
.tool-card h3 { margin: 0 0 0.35rem; color: var(--brand); }
.tool-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.crumbs a { color: var(--brand); }
.crumbs span { margin: 0 0.15rem; }
table.ref {
  border-collapse: collapse;
  width: 100%;
  margin: 0.6rem 0 1.1rem;
  font-size: 0.94rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table.ref th {
  background: #eef3f0;
  text-align: left;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
table.ref td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--border);
}
table.ref tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }
.quick-answer a { color: var(--brand-dark); font-weight: 600; }
.quick-answer {
  background: #fff8ea;
  border: 1px solid #eed9a7;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.3rem;
  max-width: 46rem;
}
.updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin: -0.3rem 0 1rem;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 0.6rem 0 0; font-size: 0.95rem; }

.disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1rem;
}
footer {
  background: var(--brand-dark);
  color: #cfdcd4;
  font-size: 0.88rem;
  padding: 1.5rem 1.2rem;
  margin-top: 2rem;
}
.footer-inner { max-width: 960px; margin: 0 auto; }
footer a { color: #fff; }
@media (max-width: 560px) {
  h1 { font-size: 1.5rem; }
  nav a { margin-left: 0.7rem; font-size: 0.88rem; }
}
