:root {
  --bg: #fafaf7; --surface: #ffffff; --surface-2: #f2f1ec; --text: #16161a; --muted: #62626b;
  --border: #e3e2dc; --accent: #f5b301; --accent-ink: #1a1400; --link: #0b5fd6; --no: #b42318; --ok: #117a3d;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111114; --surface: #19191d; --surface-2: #222228; --text: #ececf0; --muted: #a0a0aa;
    --border: #2d2d34; --link: #7fb2ff; --no: #ff8a80; --ok: #6fdc9a; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--link); text-underline-offset: 2px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: .4em 0 .3em; }
h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 1.8em 0 .6em; }
h3 { font-size: 1.05rem; margin: .2em 0 .4em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1240px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.bolt { display: inline-block; margin-right: 4px; }
.nav nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--link); }

.hero { padding: 48px 0 16px; }
.hero h1 { max-width: 16em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(.95); border-color: var(--accent); }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.buy { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.buy-sm { margin: 12px 0 0; } .buy-sm .btn { padding: 7px 12px; font-size: .85rem; flex: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 a { color: var(--text); text-decoration: none; } .card h3 a:hover { color: var(--link); }
.card .why { font-size: .9rem; color: var(--muted); margin: 10px 0 0; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: .75rem; font-weight: 600; background: var(--surface-2); border-radius: 99px; padding: 2px 10px; color: var(--muted); }
.price { font-weight: 700; font-family: var(--mono); }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 10px 0 0; }
.mini div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.mini dt { color: var(--muted); } .mini dd { margin: 0; font-family: var(--mono); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 0; } }

.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl.specs tbody th { font-weight: 500; color: var(--muted); width: 45%; }
.tbl .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.sortable thead th[data-k] { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable thead th[data-k]:hover { color: var(--text); }
.sortable thead th.asc::after { content: " ▲"; } .sortable thead th.desc::after { content: " ▼"; }
.no { color: var(--no); font-weight: 600; font-size: .85rem; }
.ok { color: var(--ok); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 20px 0; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.filters label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; color: var(--muted); gap: 4px; }
.filters label.check { flex-direction: row; align-items: center; padding-bottom: 8px; }
input, select { font: inherit; font-size: .92rem; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); min-width: 0; }
.filters input[type=number] { width: 120px; }

.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc fieldset { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 0 0 14px; padding: 8px 14px 10px; }
.calc legend { font-weight: 700; font-size: .85rem; padding: 0 6px; }
.dev { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.dev:last-child { border-bottom: 0; }
.dev label { display: flex; flex-direction: column; line-height: 1.3; }
.dev.on label span:first-child { font-weight: 600; }
.qty { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 1rem; cursor: pointer; }
.qty output { width: 24px; text-align: center; font-family: var(--mono); }
.custom { display: flex; gap: 8px; flex-wrap: wrap; } .custom input { flex: 1; min-width: 120px; }
.calc-out { position: sticky; top: 76px; }
@media (max-width: 860px) { .calc-out { position: static; } }
.totals { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.totals .big { font-size: 1.6rem; font-weight: 800; font-family: var(--mono); }
.stat-row { display: flex; gap: 24px; flex-wrap: wrap; }
.result { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.result.fail { opacity: .55; }
.result .rt { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.result a.name { font-weight: 600; color: var(--text); text-decoration: none; }
.method { margin: 24px 0; color: var(--muted); }

.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.verdict > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
@media (max-width: 640px) { .verdict { grid-template-columns: 1fr; } }
.crumbs { font-size: .85rem; color: var(--muted); margin: 20px 0 0; } .crumbs a { color: var(--muted); }
.classlist, .vslist, .guidelist { padding-left: 1.1em; } .classlist li, .vslist li { margin: 6px 0; }
.guidelist li { margin: 0 0 14px; } .guidelist p { margin: 2px 0 0; }
.prose { max-width: 44em; } .prose table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1em 0; padding: .2em 1em; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 24px 0 40px; font-size: .85rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
#compare td:first-child { min-width: 150px; }
@media (max-width: 640px) { .site-header { position: static; } .nav { padding: 8px 0; } .nav nav { gap: 14px; } }
