:root {
  color-scheme: light;
  --ink: #183e35;
  --soft-ink: #476258;
  --green: #1c4c3f;
  --lime: #e7f39d;
  --paper: #f5f5ed;
  --rule: #cdd8ca;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.frame { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
header .frame { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; }
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 720; letter-spacing: .04em; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: #fff; }
.preview { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 99px; color: var(--soft-ink); font-size: .78rem; white-space: nowrap; }
.hero { background: var(--green); color: #fff; }
.hero .frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 31%); align-items: center; gap: 36px; padding-block: clamp(52px, 9vw, 108px); }
.eyebrow { margin: 0 0 24px; font-size: .84rem; font-weight: 700; letter-spacing: .17em; color: var(--lime); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 13em; margin-bottom: 22px; font-size: clamp(2rem, 5.3vw, 4rem); line-height: 1.2; font-weight: 740; text-wrap: balance; }
.hero p:last-child { margin: 0; color: #deebe0; line-height: 1.75; }
.graphic { width: 100%; max-width: 320px; justify-self: end; }
.registry { display: grid; grid-template-columns: minmax(160px, .8fr) minmax(0, 2fr); gap: 38px; padding-block: 52px 62px; }
h2 { margin-bottom: 8px; font-size: 1.55rem; }
dl { margin: 0; border-top: 1px solid var(--rule); }
dl div { display: grid; grid-template-columns: minmax(76px, 1fr) minmax(0, 2.6fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
dt { color: var(--soft-ink); }
dd { margin: 0; font-weight: 630; overflow-wrap: anywhere; }
footer .frame { padding-block: 22px 28px; border-top: 1px solid var(--rule); color: var(--soft-ink); font-size: .83rem; line-height: 1.65; }
footer p { margin: 0; }

@media (max-width: 640px) {
  .frame { width: calc(100% - 40px); }
  header .frame { min-height: 64px; }
  .hero .frame { grid-template-columns: 1fr; gap: 20px; }
  .graphic { width: 110px; justify-self: start; }
  .registry { grid-template-columns: 1fr; gap: 14px; padding-block: 34px 42px; }
}

.nav-link { color: var(--ink); font-size: .9rem; font-weight: 650; text-underline-offset: .24em; }
a:focus-visible, input:focus-visible { outline: 3px solid #496e32; outline-offset: 4px; }
.catalog-intro { padding-block: 48px 32px; border-bottom: 1px solid var(--rule); }
.catalog-intro h1 { max-width: none; font-size: clamp(2.2rem, 6vw, 3.7rem); }
.catalog-intro p { color: var(--soft-ink); line-height: 1.75; margin-bottom: 0; }
.catalog-body { padding-block: 28px 52px; }
.search { display: grid; gap: 8px; max-width: 500px; }
.search label { font-weight: 700; }
.search input { min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #859c8a; border-radius: 8px; background: #fff; font: inherit; }
#match-status { margin: 9px 0 22px; color: var(--soft-ink); min-height: 1.25em; }
.model-group { margin-bottom: 28px; }
.model-group h2 { margin-bottom: 12px; }
.model-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.model-list li { display: grid; align-content: start; gap: 7px; min-height: 68px; padding: 12px 15px; border: 1px solid var(--rule); border-radius: 8px; background: #fbfbf6; }
.model-list span { color: var(--soft-ink); font-size: .86rem; line-height: 1.45; }
[hidden] { display: none !important; }
