/* Страницы базы динамиков (subwoofers/…, генерирует src/seo/driverPages.ts). Палитра — как у конструктора и legal.css. */
:root { --bg: #f5f4f1; --panel: #ffffff; --ink: #1d1d1f; --muted: #6b6b72; --line: #e2e0db; --accent: #d2561b; --sealed: #2f6fdb; --ported: #d2561b; --warn-bg: #fff4e5; --warn-line: #f0c27a; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #131315; --panel: #1c1c1f; --ink: #ececee; --muted: #9a9aa3; --line: #2d2d32; --accent: #ff7a3d; --sealed: #6b9cff; --ported: #ff7a3d; --warn-bg: #2b2215; --warn-line: #6e5426; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.top { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.top .brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 16px; }
.top nav a { text-decoration: none; }
.top .langs { margin-left: auto; display: flex; gap: 10px; font-size: 14px; }
.top .langs [aria-current] { color: var(--muted); }
main { max-width: 1040px; margin: 0 auto; padding: 16px 16px 48px; }
footer { text-align: center; color: var(--muted); font-size: 14px; padding: 0 16px 32px; }
footer a { color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { padding: 0 2px; }
h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 6px; }
h2 { font-size: 19px; margin: 28px 0 8px; }
h3 { font-size: 17px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.lead { margin: 0 0 12px; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 12px 0; }
.filters label { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.filters label.grow { flex: 1 1 240px; }
.filters input, .filters select { font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; min-height: 36px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--accent); }
.tile b { font-size: 17px; }
.tile[hidden] { display: none; }

.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
table.models { width: 100%; border-collapse: collapse; font-size: 15px; }
table.models th, table.models td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.models th:first-child, table.models td:first-child, table.models th:nth-child(3), table.models td:nth-child(3) { text-align: left; }
table.models thead th { font-size: 13px; color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--panel); }
table.sortable thead th { cursor: pointer; user-select: none; }
table.sortable thead th[aria-sort="ascending"]::after { content: " ▲"; }
table.sortable thead th[aria-sort="descending"]::after { content: " ▼"; }
table.models tbody tr:last-child td { border-bottom: 0; }
table.models tr[hidden] { display: none; }
.flag { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; background: var(--warn-line); color: #000; font-size: 11px; font-weight: 700; cursor: help; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chips span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.issues { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: 15px; }
.issues ul { margin: 6px 0 0; padding-left: 20px; }
.notes { font-size: 14px; color: var(--muted); }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.box .btn { margin-top: auto; }
.swatch, .lg { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; }
.box-sealed .swatch, .lg-sealed { background: var(--sealed); }
.box-ported .swatch, .lg-ported { background: var(--ported); }
.lg { margin: 0 6px 0 10px; }
.lg:first-child { margin-left: 0; }
table.kv { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 15px; }
table.kv th, table.kv td { padding: 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv th { text-align: left; font-weight: 400; color: var(--muted); padding-right: 12px; }
table.kv td { text-align: right; }
.est { color: var(--muted); cursor: help; border-bottom: 1px dotted var(--muted); }
.calc { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; cursor: help; }
.btn { display: inline-block; text-align: center; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); text-decoration: none; font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
figure { margin: 16px 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart .grid line { stroke: var(--line); stroke-width: 1; }
svg.chart .axis text { fill: var(--muted); font-size: 12px; }
svg.chart path { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
svg.chart .c-sealed { stroke: var(--sealed); }
svg.chart .c-ported { stroke: var(--ported); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } h1 { font-size: 24px; } }
.mount { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.mount figure { margin: 0; }
@media (max-width: 720px) { .mount { grid-template-columns: 1fr; } }
svg.drawing { width: 100%; height: auto; display: block; }
svg.drawing .dw-frame { fill: var(--line); stroke: var(--ink); stroke-width: 1.2; }
svg.drawing .dw-surround { fill: var(--bg); stroke: var(--ink); stroke-width: 1; }
svg.drawing .dw-cone { fill: var(--panel); stroke: var(--muted); stroke-width: 1; }
svg.drawing .dw-cap { fill: var(--line); stroke: var(--muted); stroke-width: 1; }
svg.drawing .dw-cut { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 4; }
svg.drawing .dw-basket { fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; }
svg.drawing .dw-magnet { fill: var(--muted); stroke: var(--ink); stroke-width: 1.2; }
svg.drawing .dw-axis { stroke: var(--muted); stroke-width: 0.8; stroke-dasharray: 10 3 2 3; }
svg.drawing .dim line { stroke: var(--muted); stroke-width: 1; }
svg.drawing .dim-t { fill: var(--ink); font-size: 15px; }
ul.src { font-size: 14px; padding-left: 20px; word-break: break-all; }
ul.others { columns: 2; padding-left: 20px; }
@media (max-width: 560px) { ul.others { columns: 1; } .top .langs { margin-left: 0; } }
