:root {
  --bg: #f6f4ef;
  --fg: #1c1b18;
  --muted: #5c574e;
  --card: #ffffff;
  --line: #e2ddd2;
  --accent: #2f5d3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.search-box { min-width: min(100%, 320px); flex: 1; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.site-nav a { color: var(--fg); text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.content {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.lead { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

.card:hover { border-color: var(--accent); }
.card h2 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--accent); }
.card .meta { color: var(--muted); font-size: 0.85rem; }

.product-list { list-style: none; padding: 0; }
.product-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.product-list a { font-weight: 600; color: var(--accent); text-decoration: none; }
.product-list a:hover { text-decoration: underline; }
.product-list .ptype { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

.product-header { margin-bottom: 1.25rem; }
.product-header h1 { margin: 0.25rem 0; font-size: 1.6rem; }
.crumbs a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.crumbs a:hover { text-decoration: underline; }

.ptype { color: var(--muted); margin: 0; }
.updated { color: var(--muted); font-size: 0.85rem; }
.tags { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  background: #e8efe9;
  color: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.8rem;
}

.product-body h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}

.product-body ul { padding-left: 1.2rem; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* Pagefind UI — компактно */
.pagefind-ui__form {
  background: #fff !important;
  border-radius: 6px !important;
}
.pagefind-ui__drawer { max-height: 70vh; overflow: auto; }
