:root {
  --green: #88C800;
  --green-dark: #6fa000;
  --green-soft: #eef6d6;
  --ink: #484844;
  --muted: #5c6b62;
  --line: #e2e8e4;
  --bg: #f4f7f5;
  --card: #fff;
  --warn: #b45309;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
}
a { color: var(--green); text-decoration: none; }
.top {
  display: flex; align-items: center; gap: 16px; padding: 12px 22px;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); }
.logo .mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--green);
  color: #fff; display: grid; place-items: center; font-size: 14px;
}
.farm { color: var(--muted); font-size: 14px; margin-left: 8px; padding: 4px 10px; background: var(--bg); border-radius: 999px; }
.top nav { margin-left: auto; display: flex; gap: 14px; font-size: 14px; }
.top nav a { color: var(--muted); }
.top nav a.active { color: var(--green); font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.hero { display: grid; grid-template-columns: 240px 1fr; gap: 22px; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.photo {
  aspect-ratio: 1; border-radius: 12px; background: linear-gradient(145deg, #dfe8e2, #c5d4cb);
  display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 12px;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pill {
  font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark);
  font-weight: 600;
}
.pill.ghost { background: var(--bg); color: var(--muted); font-weight: 500; }
.pill.ok { background: #dcfce7; color: #166534; }
h1 { margin: 4px 0 6px; font-size: 28px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 8px 0 16px;
}
.tab {
  border: 0; background: transparent; padding: 10px 12px; cursor: pointer; color: var(--muted);
  font: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.panel { display: none; }
.panel.active { display: block; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 700px) { .grid4 { grid-template-columns: 1fr 1fr; } }
.metric {
  background: var(--bg); border-radius: 12px; padding: 12px;
}
.metric .k { font-size: 12px; color: var(--muted); }
.metric .v { font-size: 20px; font-weight: 700; margin-top: 4px; }
.metric .u { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--green); color: #1a2208; }
.btn.primary:hover { background: var(--green-dark); }
.btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn.soft { background: var(--green-soft); color: var(--green-dark); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.toggle-row:last-child { border-bottom: 0; }
.switch {
  width: 42px; height: 24px; border-radius: 999px; background: #cbd5d1; position: relative; cursor: pointer; border: 0;
}
.switch.on { background: var(--green); }
.switch i {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: left .15s;
}
.switch.on i { left: 21px; }
.seg {
  display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 14px;
}
.seg button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--muted);
}
.seg button.active { background: #fff; color: var(--green); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.preview-card .price { font-size: 26px; font-weight: 800; color: var(--green); margin: 10px 0; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.footer-actions {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .home-grid { grid-template-columns: 1fr; } }
.home-grid a.card { display: block; color: inherit; transition: border-color .15s; }
.home-grid a.card:hover { border-color: var(--green); }
.home-grid img { width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
.pedigree { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pedigree .box { background: var(--bg); border-radius: 10px; padding: 12px; }
.pedigree .box strong { display: block; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 13px; }

/* Language selector */
.fh-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}
.fh-lang-wrap select {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  max-width: 11rem;
  cursor: pointer;
}
.fh-lang-wrap select:focus {
  outline: 2px solid #88C800;
  outline-offset: 1px;
  border-color: #88C800;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
