:root {
  --blue: #232851; --teal: #54bdbc; --teal-d: #2f8f8e; --bg: #f8f8f8; --card: #fff; --line: #dfe3ea; --muted: #6b7385;
  --warn: #8a5a00; --warn-bg: #fff3d6; --ok: #16603b; --ok-bg: #dff3e7; --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --blue: #dbe1ff; --bg: #12152b; --card: #1b1f3a; --line: #2e3458; --muted: #a0a8c4; --teal-d: #6dd0cf; --warn: #ffd98a; --warn-bg: #3b2f10; --ok: #8be0b0; --ok-bg: #12372a; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--blue); }
a { color: var(--teal-d); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: .6em 0 .4em; }
h2 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
main { max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; }
.banner { background: #b3261e; color: #fff; text-align: center; padding: 6px 12px; font-weight: 600; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.top .brand { font-weight: 700; font-size: 1.15rem; color: var(--blue); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.top nav a { color: var(--blue); text-decoration: none; padding: 4px 0; }
.top nav a:hover { color: var(--teal-d); }
.foot { max-width: 1100px; margin: 0 auto; padding: 16px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.muted, .count { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { padding: 24px 0 8px; }
.search { display: flex; gap: 8px; max-width: 560px; }
.search input { flex: 1; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type=search], input[type=text], input[type=number], input[type=email], select, textarea {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-height: 44px; width: 100%;
}
.btn, .search button { background: var(--blue); color: var(--bg); border: 0; border-radius: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.alt { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.link { background: none; border: 0; color: var(--teal-d); text-decoration: underline; cursor: pointer; padding: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; color: var(--blue); }
.chip:hover { border-color: var(--teal); }
.crumbs { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.cat { display: grid; gap: 20px; }
@media (min-width: 860px) { .cat { grid-template-columns: 270px 1fr; align-items: start; } .filters { position: sticky; top: 8px; max-height: calc(100vh - 16px); overflow: auto; } }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-weight: 600; margin-bottom: 4px; }
.filters label { display: grid; gap: 4px; font-weight: 600; }
.filters label.inline, .checks label { display: flex; gap: 6px; align-items: center; font-weight: 400; min-height: 32px; }
.filters input[type=checkbox] { width: 20px; height: 20px; min-height: 0; }
.checks { display: grid; gap: 0; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.bar label { display: flex; gap: 6px; align-items: center; }
.bar select { width: auto; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card > a { color: inherit; text-decoration: none; display: block; flex: 1; }
.thumb { display: block; aspect-ratio: 4 / 3; background: #fff; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.meta { display: grid; gap: 2px; padding: 8px 10px; font-size: .92rem; }
.meta .b { font-weight: 700; } .meta .s, .meta .z { color: var(--muted); font-size: .85rem; } .meta .p { font-weight: 600; } .meta .w { color: var(--warn); font-size: .8rem; }
.cmp-btn { border: 0; border-top: 1px solid var(--line); background: transparent; padding: 10px; min-height: 44px; cursor: pointer; color: var(--teal-d); }
.cmpbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cmpbar[hidden] { display: none; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .85rem; font-weight: 600; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.model { display: grid; gap: 16px; }
@media (min-width: 760px) { .model { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pic { background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; min-height: 220px; padding: 8px; }
.pic img { max-width: 100%; max-height: 420px; object-fit: contain; }
.nopic { color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 12px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
table.specs { border-collapse: collapse; width: 100%; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.specs thead th { background: var(--bg); position: sticky; top: 0; }
.pl { display: block; color: var(--muted); font-size: .78rem; }
.rep { background: none; border: 0; cursor: pointer; font-size: 1.1rem; min-width: 44px; min-height: 36px; color: var(--muted); }
.rep:hover { color: #b3261e; }
.note { color: var(--muted); font-size: .88rem; margin: 6px 0; }
.cols { columns: 2 220px; list-style: none; padding: 0; }
.cols li { padding: 4px 0; }
dialog { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--blue); max-width: 520px; width: calc(100% - 24px); padding: 16px; }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog label { display: grid; gap: 4px; margin: 10px 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
