:root {
  --bg: #f7f8f4;
  --text: #18201f;
  --muted: #66706d;
  --line: #d9ded6;
  --surface: #fff;
  --soft: #eef2ed;
  --primary: #10594a;
  --dark: #0b3f35;
  --warning: #fff9df;
  --danger: #9f342d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: var(--primary); font-weight: 700; text-decoration: none; }
.topbar {
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.topbar .inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand strong { display: block; font-size: 20px; }
.brand span, .muted, .help { color: var(--muted); }
.nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.page { padding: 38px 0 54px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: 28px;
  align-items: start;
}
h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  margin: 0 0 18px;
}
h2, h3, p { margin-top: 0; }
.lead { font-size: 18px; line-height: 1.6; color: #3f4a47; max-width: 680px; }
.notice {
  background: var(--warning);
  border: 1px solid #ead993;
  border-radius: 8px;
  padding: 14px 16px;
  color: #5e4f12;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(20,35,30,.08);
  padding: 22px;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.policy-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.policy-item h3 { margin-bottom: 10px; }
.compact-hero {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0 16px;
  gap: 14px;
}
.grid { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
label, .label { font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid #c8d1cb;
  border-radius: 7px;
  padding: 12px 13px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,89,74,.14);
}
.button {
  border: 0;
  border-radius: 7px;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}
.button:hover { background: var(--dark); }
.button.secondary { background: var(--soft); color: var(--primary); border: 1px solid #cbd7d1; }
.flash {
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 18px;
  line-height: 1.45;
}
.flash.ok { background: #e9f6e8; color: #234f29; border: 1px solid #b9dcbc; }
.flash.error { background: #fff0ed; color: var(--danger); border: 1px solid #f0b8b0; }
.products { display: grid; gap: 10px; }
.product {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 92px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}
.product input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; }
.product-title { font-weight: 800; }
.checkbox-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fbfcfa;
}
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); color: #43504d; font-size: 13px; }
.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #e8efe9;
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
}
.footer { border-top: 1px solid var(--line); padding: 20px 0; background: #fff; color: var(--muted); }
@media (max-width: 860px) {
  .topbar .inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .hero { grid-template-columns: 1fr; }
  .policy-grid, .compact-hero { grid-template-columns: 1fr; }
  .product { grid-template-columns: 28px minmax(0, 1fr); }
  .product .qty { grid-column: 2; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 860px; }
}
