:root {
  --bg: #f3f6ef;
  --surface: #fff;
  --surface-2: #e7eee3;
  --ink: #14302a;
  --muted: #55665f;
  --primary: #1b6e53;
  --sun: #ffc61a;
  --sun-ink: #2b2100;
  --danger: #c53426;
  --warn: #9a5b00;
  --line: #d5dfd0;
  --shadow: 0 1px 0 rgba(20, 48, 42, 0.08), 0 12px 28px -18px rgba(20, 48, 42, 0.45);
  --sans: "Segoe UI", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  --display: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(255, 198, 26, 0.28), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 1.05rem;
}
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
button, .btn, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.brand svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 0.15rem; align-items: center; flex-wrap: nowrap; }
.nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 0.75rem; border-radius: 12px;
  color: var(--ink); font-weight: 700;
}
.nav a:hover { background: rgba(20, 48, 42, 0.06); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1rem; border-radius: 999px; font-weight: 700;
}
.nav a.btn { color: white; margin-left: 0.35rem; }
.nav a.btn:hover { background: var(--primary); }
.site-head .menu-btn { display: none; }
.when-open { display: none; }
.btn { border: 0; cursor: pointer; background: var(--primary); color: white; }
.btn.sun { background: var(--sun); color: var(--sun-ink); }
.btn.danger { background: var(--danger); color: white; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { min-height: 40px; padding-inline: 0.8rem; font-size: 0.95rem; }
.hero { display: grid; gap: 1.5rem; padding: 1rem 0 3rem; }
.kicker {
  display: inline-block; background: var(--sun); color: var(--sun-ink);
  font-weight: 800; border-radius: 12px; padding: 0.2rem 0.7rem; transform: rotate(-2deg);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 16ch; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin-top: 0.8rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.panel { background: var(--surface); border-radius: 1.4rem; box-shadow: var(--shadow); }
.map { height: 420px; border-radius: 1.2rem; background: var(--surface-2); }
.map.short { height: 280px; }
.section { padding: 1rem 0 3rem; }
.grid-3 { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; }
.card { padding: 1.2rem; }
.muted { color: var(--muted); }
.step {
  width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--ink); color: white; font-weight: 800;
}
.price { font-size: 2.2rem; font-weight: 800; }
.feature { display: flex; gap: 0.8rem; }
.stat { font-size: 1.6rem; font-weight: 800; }

.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  padding: 1rem 0.8rem 2rem; position: sticky; top: 0; height: 100vh; overflow: auto;
  background: rgba(255,255,255,0.72); border-right: 1px solid var(--line);
}
.side a {
  display: flex; align-items: center; gap: 0.4rem; min-height: 44px;
  padding: 0 0.8rem; border-radius: 12px; color: var(--ink); font-weight: 650;
}
.side a.on { background: var(--ink); color: white; }
.side a.help { color: var(--danger); font-weight: 800; }
.main { padding: 1.2rem 1.2rem 3rem; }
.menu-btn { display: none; }
.tiles { display: grid; gap: 0.8rem; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  min-height: 150px; padding: 1.1rem; border-radius: 1.5rem; color: inherit; box-shadow: var(--shadow);
}
.tile strong { font-family: var(--display); font-size: 1.7rem; display: block; }
.tile.danger { background: var(--danger); color: white; }
.tile.sun { background: var(--sun); color: var(--sun-ink); }
.tile.green { background: var(--primary); color: white; }
label { display: grid; gap: 0.3rem; font-weight: 700; }
input, select, textarea {
  width: 100%; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
  background: white; padding: 0.55rem 0.75rem; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.form { display: grid; gap: 0.8rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 650; }
.check input { width: auto; min-height: 0; }
.flash { background: #e5f6ee; border-radius: 12px; padding: 0.8rem 1rem; }
.error { background: #fde8e6; color: #7a1d16; border-radius: 12px; padding: 0.8rem 1rem; }
.list { display: grid; gap: 0.7rem; }
.item { padding: 0.9rem 1rem; display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start; }
.tag { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.sev-critical { color: var(--danger); }
.sev-high { color: #b45309; }
.sev-medium { color: var(--warn); }
.sev-low { color: var(--primary); }
.tabs { display: flex; gap: 0.4rem; overflow: auto; padding-bottom: 0.3rem; }
.tabs a { white-space: nowrap; }
.bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 0.55rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pager { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
footer.site { padding: 2rem 0 3rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }

@media (min-width: 800px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto; display: none; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .wrap.top > .menu-btn { display: inline-flex; }
  .site-head > .menu-btn { display: none; }
  #nav:checked ~ .app-shell .side, .side.open { display: block; }
  .main { padding-inline: 0.9rem; }
}
@media (max-width: 900px) {
  .site-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.6rem 0.75rem;
  }
  .site-head > .menu-btn { display: inline-flex; }
  .site-head .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    margin: 0;
    padding: 0.4rem;
    background: var(--surface);
    border-radius: 1.1rem;
    box-shadow: var(--shadow);
  }
  .site-head .nav a { justify-content: flex-start; padding-inline: 0.9rem; }
  .site-head .nav a.btn { justify-content: center; margin: 0.35rem 0.15rem 0.15rem; }
  .site-head .nav-toggle:checked ~ .nav { display: flex; }
  .site-head .nav-toggle:checked ~ .menu-btn .when-closed { display: none; }
  .site-head .nav-toggle:checked ~ .menu-btn .when-open { display: inline; }
}
.leaflet-container { font-family: var(--sans); border-radius: inherit; z-index: 0; }
