:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2b2a26;
  --muted: #6b675e;
  --line: #e6e0d4;
  --brand: #3f6b4f;
  --brand-ink: #ffffff;
  --accent: #a5672a;
  --notice: #fff4d6;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--brand); }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Test-site banner */
.test-banner {
  background: var(--notice);
  border-bottom: 1px solid #ecd9a0;
  font-size: 14px;
  text-align: center;
  padding: 6px 16px;
}

/* Header / nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--brand); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #3f6b4f, #4a7a59);
  color: #fff;
  padding: 64px 0;
}
.hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 12px; line-height: 1.15; }
.hero p { font-size: 18px; max-width: 620px; margin: 0 0 24px; opacity: .95; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 15px;
}
.btn.secondary { background: transparent; border: 1px solid currentColor; color: inherit; }

/* Page sections */
.page-head { padding: 40px 0 8px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 36px); }
.page-head p { color: var(--muted); margin: 0; }

section { padding: 24px 0; }
h2 { font-size: 24px; margin: 8px 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card p:last-child { margin-bottom: 0; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.toc a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
}

/* Tables */
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* Menu */
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.menu-list .name { font-weight: 600; }
.menu-list .price { font-weight: 600; white-space: nowrap; }
.menu-list .desc { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 4px;
  background: #e8f0ea;
  color: var(--brand);
  vertical-align: middle;
}
.tag.nuts { background: #fbeadb; color: #9a5a1c; }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; }

/* Policies */
.policy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.policy h2 { margin-top: 0; }
.updated { color: var(--muted); font-size: 14px; }

/* Forms */
form label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 15px; }
form input, form select, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  background: #2b2a26;
  color: #d9d4c8;
  padding: 32px 0;
  font-size: 14px;
}
.site-footer a { color: #fff; }
.site-footer .grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h4 { color: #fff; margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }

/* Chat widget */
.cb-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.cb-panel {
  position: fixed;
  right: 16px;
  bottom: 86px;
  z-index: 50;
  width: min(380px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 120px));
  display: none;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  overflow: hidden;
}
.cb-panel.open { display: flex; }
.cb-head {
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cb-head strong { font-size: 15px; }
.cb-head small { display: block; opacity: .8; font-size: 12px; }
.cb-close { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.cb-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cb-msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 14px; white-space: pre-wrap; }
.cb-msg.bot { background: #eef3ef; align-self: flex-start; }
.cb-msg.user { background: var(--brand); color: #fff; align-self: flex-end; }
.cb-msg.error { background: #fdecea; color: #8a1f17; align-self: flex-start; }
.cb-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.cb-suggest button {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.cb-form { display: flex; border-top: 1px solid var(--line); }
.cb-form[hidden], .cb-gate[hidden], .cb-suggest[hidden], .cb-gate-error[hidden] { display: none; }
.cb-gate-note { margin: 0; padding: 0 12px 10px; font-size: 13px; color: var(--muted); }
.cb-gate-error { margin: 0; padding: 0 12px 10px; font-size: 13px; color: #8a1f17; }
.cb-gate-form input { text-transform: uppercase; letter-spacing: .04em; }
.cb-gate-form input::placeholder { text-transform: none; letter-spacing: normal; }
.cb-form input { flex: 1; border: 0; padding: 12px; font: inherit; font-size: 14px; outline: none; }
.cb-form button { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 0 16px; cursor: pointer; }
