:root {
  --bg: #f4f7f5;
  --card: #fff;
  --text: #1c2b24;
  --muted: #5f6f67;
  --accent: #0b7a4b;
  --accent-dark: #075c38;
  --accent-soft: #e3f4ea;
  --border: #dde5e0;
  --minus: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
a { color: var(--accent-dark); }
.top { background: var(--accent); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; }
.top a { color: #fff; text-decoration: none; font-weight: 700; }
.top nav a { font-weight: 500; font-size: .9rem; opacity: .9; margin-left: 1rem; }
.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.hero { padding: 1.75rem 0 .5rem; }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.2; margin: 0 0 .5rem; }
.hero p { margin: 0; color: var(--muted); max-width: 42rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.25rem; margin: 1.25rem 0;
}
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; } }
.field { margin-bottom: .9rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .25rem; }
.field .hint { font-size: .8rem; color: var(--muted); }
input[type=text], select {
  font: inherit; width: 100%; padding: .55rem .7rem; border: 1px solid #c3cfc8; border-radius: 8px; background: #fff;
}
input.big { font-size: 1.3rem; font-weight: 700; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; font-size: .95rem; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.tabs { display: flex; border: 1px solid #c3cfc8; border-radius: 9px; overflow: hidden; margin-bottom: 1rem; }
.tabs button { flex: 1; font: inherit; font-size: .9rem; border: 0; background: #fff; padding: .55rem; cursor: pointer; }
.tabs button.active { background: var(--accent); color: #fff; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.result { background: var(--accent-soft); border-radius: 12px; padding: 1rem 1.1rem; }
.result .label { font-size: .9rem; color: var(--muted); }
.result .net { font-size: 2.3rem; font-weight: 800; color: var(--accent-dark); line-height: 1.15; }
.result .sub { font-size: .9rem; margin-bottom: .75rem; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .42rem .4rem; border-bottom: 1px solid var(--border); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.total td { font-weight: 700; border-top: 2px solid var(--text); }
.minus { color: var(--minus); }
.result table td { border-color: #c8e3d3; }
.small { font-size: .82rem; color: var(--muted); }
.answer { font-size: 1.15rem; }
.answer strong { color: var(--accent-dark); }
.amounts { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
.amounts a { display: inline-block; padding: .3rem .7rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; text-decoration: none; font-size: .9rem; }
.amounts a:hover { background: var(--accent-soft); }
.cta { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .6rem 1rem; border-radius: 9px; font-weight: 600; }
details { border-bottom: 1px solid var(--border); padding: .6rem 0; }
summary { cursor: pointer; font-weight: 600; }
.bc { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
footer { color: var(--muted); font-size: .85rem; padding: 2rem 1rem 3rem; text-align: center; }
