:root {
  --bg: #f7fbf4;
  --surface: #ffffff;
  --text: #162015;
  --muted: #5c6c59;
  --brand: #2f7d32;
  --brand-dark: #1f5c23;
  --line: #dbe8d6;
  --excellent: #177245;
  --good: #3b7f1f;
  --moderate: #a26000;
  --avoid: #a32727;
  --shadow: 0 18px 40px rgba(25, 62, 28, 0.1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
.header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.logo { font-weight: 900; font-size: 1.4rem; text-decoration: none; color: var(--brand-dark); }
.nav-links { display: flex; gap: 16px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 48px 20px; }
.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1; margin: 0 0 20px; letter-spacing: -0.06em; }
.hero p { font-size: 1.16rem; color: var(--muted); max-width: 680px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.search-panel { margin-top: 28px; display: grid; gap: 14px; }
.input-row { display: flex; gap: 10px; }
input, select, button {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
}
input, select { width: 100%; background: #fff; color: var(--text); }
button {
  cursor: pointer;
  border: none;
  background: var(--brand);
  color: white;
  font-weight: 800;
  padding: 0 20px;
}
button:hover { background: var(--brand-dark); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.food-card { display: grid; gap: 8px; text-decoration: none; }
.food-card h3 { margin: 0; }
.meta { color: var(--muted); font-size: 0.92rem; }
.badge { display: inline-flex; width: fit-content; padding: 4px 10px; border-radius: 999px; color: #fff; font-size: 0.82rem; font-weight: 800; text-transform: capitalize; }
.badge.excellent { background: var(--excellent); }
.badge.good { background: var(--good); }
.badge.moderate { background: var(--moderate); }
.badge.avoid { background: var(--avoid); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #fbfefa; }
.stat strong { display: block; font-size: 1.3rem; }
.footer { border-top: 1px solid var(--line); padding: 30px 20px; text-align: center; color: var(--muted); }
.notice { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 780px) {
  .hero, .grid { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
