/* Общий стиль сайта. Цвета совпадают с разделом сравнения моделей. */
:root {
  --bg: #0d1117; --panel: #161b22; --panel2: #1c232c; --line: #2a323d;
  --txt: #e6edf3; --dim: #9aa4af; --dim2: #6e7781;
  --acc: #4a9eff; --acc2: #2f81f7;
  --good: #3fb950; --warn: #d29922; --bad: #f85149; --amber: #f0b44c;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
.page, .page * { box-sizing: border-box; }
.page { margin: 0; background: var(--bg); color: var(--txt); font: 16px/1.6 var(--sans); }
:where(.page) :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
.page a { color: var(--acc); }
.page a:focus-visible, .page button:focus-visible, .page select:focus-visible,
.page input:focus-visible, .page summary:focus-visible {
  outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 10; }

/* ---- верхняя полоса ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.page .topbar { padding: 14px clamp(16px, 4vw, 32px); margin: 0; }
.topbar .brand { font: 700 1.2rem/1 var(--serif); color: var(--txt); text-decoration: none; letter-spacing: -.2px; }
.topbar .brand b { color: var(--amber); font-weight: 700; }
.brand-sub { font: 400 .78rem var(--sans); color: var(--dim); margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line); letter-spacing: 0; }
.chip { display: inline-block; font: 500 .68rem/1.4 var(--sans); letter-spacing: 0; padding: 1px 6px; border-radius: 5px; background: #3a2a0d; color: var(--amber); vertical-align: middle; white-space: nowrap; }
.topbar nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.topbar nav a { color: var(--dim); text-decoration: none; font-size: .92rem; padding: 3px 0; border-bottom: 2px solid transparent; }
.topbar nav a:hover { color: var(--txt); }
.topbar nav a[aria-current] { color: var(--txt); border-bottom-color: var(--amber); }

/* ---- первая страница ---- */
.hero { padding: clamp(36px, 7vw, 76px) 0 clamp(32px, 5vw, 56px); display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero h1 { font: 400 clamp(2.1rem, 5.2vw, 3.5rem)/1.08 var(--serif); letter-spacing: -.6px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--amber); }
.lead { color: var(--dim); font-size: clamp(1.02rem, 1.6vw, 1.14rem); margin-top: 18px; max-width: 34em; }
.quick { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.quick .go { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .field .lbl { font-size: .78rem; color: var(--dim); }
.page input[type=number], .page input[type=text], .page select {
  width: 100%; min-height: 44px; background: var(--panel2); color: var(--txt); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font: inherit; font-size: .95rem; }
.go { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 0;
  border-radius: 8px; background: var(--amber); color: #1a1405; font: 600 .98rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.page a.go { color: #1a1405; }
.go:hover { filter: brightness(1.08); }
.ghost { background: none; border: 1px solid var(--line); color: var(--txt); }
.page a.ghost { color: var(--txt); }
.fine { font-size: .84rem; color: var(--dim2); margin-top: 12px; }

/* Линейка цены: главный знак сайта */
.specimen { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 26px); }
.specimen .tag { font-size: .76rem; color: var(--dim2); text-transform: uppercase; letter-spacing: .8px; }
.specimen h3 { font: 400 1.5rem/1.2 var(--serif); margin-top: 6px; }
.specimen .sub { color: var(--dim); font-size: .9rem; }
.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.price-big { font-size: 1.9rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.ruler { position: relative; height: 34px; margin-top: 14px; }
.ruler .track { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 4px; overflow: hidden; display: flex; }
.ruler .track i { display: block; height: 100%; }
.ruler .z-odd { width: 16.67%; background: #5a4516; }
.ruler .z-low { width: 25%; background: #1f5a2c; }
.ruler .z-fair { width: 16.66%; background: #39424e; }
.ruler .z-high { width: 41.67%; background: #5e2c23; }
.ruler .mark { position: absolute; top: 3px; width: 4px; height: 28px; margin-left: -2px; background: var(--txt); border-radius: 2px;
  box-shadow: 0 0 0 2px var(--panel); }
.ruler-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--dim2); font-variant-numeric: tabular-nums; }
.verdict { font-size: .94rem; margin-top: 12px; }
.verdict b { font-weight: 650; }
.v-low { color: var(--good); } .v-fair { color: var(--dim); } .v-high { color: #f0883e; } .v-odd { color: var(--amber); }

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.numbers div { background: var(--bg); padding: 20px clamp(12px, 2vw, 22px); }
.numbers b { display: block; font: 400 clamp(1.5rem, 3.4vw, 2.2rem)/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.numbers span { font-size: .84rem; color: var(--dim); }

.band { padding: clamp(40px, 7vw, 72px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band h2 { font: 400 clamp(1.6rem, 3.4vw, 2.3rem)/1.15 var(--serif); letter-spacing: -.3px; max-width: 24em; text-wrap: balance; }
.band .intro { color: var(--dim); margin-top: 10px; max-width: 42em; }
.steps { list-style: none; margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--line); padding-top: 14px; }
.steps li::before { content: counter(s); font: 400 1.6rem/1 var(--serif); color: var(--amber); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.04rem; font-weight: 600; }
.steps p { color: var(--dim); font-size: .95rem; margin-top: 6px; }

.tools { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; text-decoration: none; color: var(--txt); transition: border-color .15s; }
.page a.tool { color: var(--txt); }
.tool:hover { border-color: var(--dim2); }
.tool h3 { font-size: 1.08rem; font-weight: 600; }
.tool p { color: var(--dim); font-size: .93rem; flex: 1; }
.tool .more-link { color: var(--acc); font-size: .9rem; }

.two { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.box h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 10px; }
.box ul { list-style: none; display: grid; gap: 9px; }
.box li { font-size: .94rem; color: var(--dim); padding-left: 16px; position: relative; }
.box li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 2px; background: var(--dim2); }
.box li b { color: var(--txt); font-weight: 600; }

.faq { margin-top: 24px; max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: outside; }
.faq details p { color: var(--dim); padding: 0 0 16px; font-size: .96rem; }
.cta { text-align: center; }
.cta h2 { margin: 0 auto; }
.cta .go { margin-top: 22px; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 38px; color: var(--dim2); font-size: .84rem; }
.foot p + p { margin-top: 8px; }

/* ---- подбор машин ---- */
.pick { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; padding: 22px 0 56px; }
.pick-title { font: 400 clamp(1.5rem, 3vw, 2rem)/1.15 var(--serif); }
.filters { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.filters summary { cursor: pointer; font-weight: 600; display: none; }
.filter-body { display: grid; gap: 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: .89rem; cursor: pointer; line-height: 1.35; padding: 3px 0; }
.check input { margin: 2px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--acc2); }
.check small { display: block; color: var(--dim2); font-size: .78rem; }
.reset { background: none; border: 1px solid var(--line); color: var(--dim); border-radius: 8px; min-height: 40px; font: inherit; font-size: .88rem; cursor: pointer; }
.reset:hover { color: var(--txt); }
.result-bar { display: flex; justify-content: space-between; align-items: end; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.result-bar .count { font-size: .95rem; color: var(--dim); }
.result-bar .count b { color: var(--txt); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.result-bar .field { flex-direction: row; align-items: center; gap: 8px; }
.result-bar select { width: auto; min-height: 40px; }
.note { font-size: .86rem; color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; }
.note summary { cursor: pointer; }
.note p { margin-top: 8px; }
.lots { display: grid; gap: 10px; }
.lot { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px;
  display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 8px 22px; }
.lot h3 { font-size: 1.06rem; font-weight: 600; line-height: 1.3; }
.lot .specs { color: var(--dim); font-size: .88rem; margin-top: 3px; }
.lot .place { color: var(--dim2); font-size: .8rem; margin-top: 3px; }
.lot .price { font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.lot .price small { display: block; font-size: .78rem; font-weight: 400; color: var(--dim2); letter-spacing: 0; }
.lot .ruler { height: 24px; margin-top: 8px; }
.lot .ruler .track { top: 9px; height: 6px; }
.lot .ruler .mark { top: 2px; height: 20px; width: 3px; box-shadow: 0 0 0 2px var(--panel); }
.lot .verdict { font-size: .84rem; margin-top: 4px; }
.lot-side { grid-column: 2; grid-row: 1 / span 3; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.flag { font-size: .76rem; line-height: 1.3; padding: 3px 8px; border-radius: 6px; background: #3a2a0d; color: var(--amber); }
.flag.red { background: #3d1a18; color: #ff8d85; }
.lot-foot { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 10px; }
.open { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--txt);
  text-decoration: none; font-size: .88rem; font-weight: 550; }
.page a.open { color: var(--txt); }
button.open { background: none; color: var(--txt); font-family: var(--sans); cursor: pointer; }
.open:hover { border-color: var(--dim2); background: var(--panel2); }
.score { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--dim); }
.score b { color: var(--txt); font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.why { font-size: .86rem; color: var(--dim); }
.why summary { cursor: pointer; color: var(--acc); min-height: 28px; }
.why table { border-collapse: collapse; margin-top: 6px; width: 100%; max-width: 380px; }
.why td { padding: 3px 8px 3px 0; border-bottom: 1px solid var(--line); }
.why td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--txt); white-space: nowrap; }
.why .hint { margin-top: 6px; font-size: .8rem; color: var(--dim2); }
.state { text-align: center; color: var(--dim); padding: 46px 16px; border: 1px dashed var(--line); border-radius: 12px; }
.more-btn { width: 100%; margin-top: 12px; min-height: 46px; background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 10px; font: inherit; cursor: pointer; }
.more-btn:hover { border-color: var(--dim2); }

/* ---- как считаем ---- */
.doc { max-width: 46em; padding: 34px 0 60px; }
.doc h1 { font: 400 clamp(1.9rem, 4vw, 2.7rem)/1.12 var(--serif); letter-spacing: -.4px; }
.doc h2 { font: 400 1.5rem/1.2 var(--serif); margin-top: 36px; }
.doc p, .doc ul { margin-top: 12px; color: var(--dim); }
.doc ul { padding-left: 20px; }
.doc li { margin-top: 6px; }
.doc li b, .doc p b, .doc td b { color: var(--txt); font-weight: 600; }
.doc .table-wrap { overflow-x: auto; margin-top: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.doc th { text-align: left; color: var(--dim2); font-weight: 500; font-size: .8rem; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--line); }
.doc td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); color: var(--dim); vertical-align: top; }
.doc td:first-child { color: var(--txt); white-space: nowrap; }

/* ---- сравнение моделей ---- */
.pick-lead { color: var(--dim); font-size: .96rem; margin: 6px 0 14px; max-width: 44em; }
.dev-note { font-size: .9rem; color: var(--amber); background: #2a2009; border: 1px solid #4d3a12; border-radius: 10px; padding: 11px 14px; margin: 10px 0 14px; }
.pick-title + .note, .pick-title + .result-bar { margin-top: 12px; }
.lot.model { display: block; }
.model-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.model-head .price { text-align: right; flex: none; }
.rank { color: var(--dim2); font-weight: 400; margin-right: 8px; font-variant-numeric: tabular-nums; }
.facts { margin: 13px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.facts > div { background: var(--panel); padding: 10px 12px 10px 0; }
.facts > div + div { padding-left: 12px; }
.facts > div:last-child:nth-child(3) { grid-column: span 2; }
.facts dt { font-size: .76rem; color: var(--dim); }
.facts dd { margin: 2px 0 0; font-size: 1.08rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts span { display: block; font-size: .74rem; color: var(--dim2); line-height: 1.3; margin-top: 2px; }
.model .lot-foot { justify-content: space-between; }
.model .why { flex-basis: auto; }
.model .why[open] { flex-basis: 100%; }

/* ---- расчёт пригона ---- */
.import { padding-top: 22px; padding-bottom: 56px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-top: 4px; }
.seg button { min-height: 40px; padding: 6px 18px; border: 0; border-radius: 7px; background: none; color: var(--dim); font: 500 .94rem var(--sans); cursor: pointer; }
.seg button[aria-selected=true] { background: var(--panel2); color: var(--txt); box-shadow: inset 0 0 0 1px var(--line); }
.calc { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 3vw, 24px); }
.bill table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bill td { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.bill td:last-child { text-align: right; color: var(--txt); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.bill-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; margin-top: 12px; gap: 2px 12px; }
.bill-total b { font-size: 1.7rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.bill-total small { grid-column: 2; text-align: right; color: var(--dim2); }
.section-title { font: 400 1.5rem/1.2 var(--serif); margin-top: 36px; }
[hidden] { display: none !important; }

/* ---- живые эффекты ---- */
.page { overflow-x: clip; }
.piece { transition: transform .58s cubic-bezier(.2, .9, .25, 1.05), opacity .42s ease; transition-delay: calc(var(--i, 0) * 28ms); will-change: transform; }
.piece.fly { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg)) scale(.86); }
.specimen, .tool { transition: transform .22s ease, border-color .15s; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tool, .lot, .box, .specimen { position: relative; }
.tool::after, .lot::after, .box::after, .specimen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 180, 76, .09), transparent 70%); }
.tool:hover::after, .lot:hover::after, .box:hover::after, .specimen:hover::after { opacity: 1; }
.rise { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.rise.shown { opacity: 1; transform: none; }
.ruler .mark { transition: left .7s cubic-bezier(.2, .9, .25, 1.1); left: 50%; }
.go { transition: transform .12s ease, filter .15s; }
.go:active { transform: scale(.97); }
.year-chart .bar { transform-box: fill-box; transform-origin: bottom; animation: grow .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.lucky { border-color: var(--amber); animation: lucky .9s ease; }
@keyframes lucky { 0% { box-shadow: 0 0 0 0 rgba(240, 180, 76, .55); } 100% { box-shadow: 0 0 0 18px rgba(240, 180, 76, 0); } }
.cmp-dialog[open] { animation: pop .34s cubic-bezier(.2, .9, .25, 1.1); }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.95); } }
.cmp-table td.best { animation: glow .9s ease .15s both; }
@keyframes glow { from { color: var(--dim); } }
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .85, .25, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-new(*):only-child { animation: vt-in .42s cubic-bezier(.2, .85, .25, 1) both; }
::view-transition-old(*):only-child { animation: vt-out .26s ease both; }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px) scale(.92); } }
@keyframes vt-out { to { opacity: 0; transform: translateX(46px) rotate(2deg) scale(.92); } }
@media (prefers-reduced-motion: reduce) {
  .piece, .rise, .specimen, .tool, .ruler .mark, .year-chart .bar, .lucky, .cmp-dialog[open], .cmp-table td.best { transition: none; animation: none; transform: none; opacity: 1; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; }
}

/* ---- машины в Россию ---- */
.ru-rules { margin-top: 12px; }
.ru-source { margin: 8px 0 12px; }
.ru-costs .pair { margin-top: 6px; }
.ru-box { grid-column: 1 / -1; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.flag.ok { background: #143321; color: #6fdd8b; }
.ru-box .flags { margin: 0; }
.ru-total { font-size: .92rem; color: var(--dim); }
.ru-total b { color: var(--txt); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ru-total small { display: block; color: var(--dim2); font-size: .78rem; }
.ru-compare { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .86rem; color: var(--dim); }
.ru-compare label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page .ru-compare input { width: 170px; min-height: 38px; }
.ru-compare small { width: 100%; color: var(--dim2); font-size: .76rem; }
.lot-foot .open + .open { margin-left: 0; }
.open.want { border-color: var(--amber); color: var(--amber); }
.page a.open.want { color: var(--amber); }
.ru-callout { margin-top: 14px; font-size: .92rem; padding: 10px 13px; border: 1px solid #4d3a12; background: #2a2009; border-radius: 10px; color: var(--amber); }
.page .ru-callout a { color: var(--amber); font-weight: 600; }

/* ---- бюджет на первой странице и игра с пробегом ---- */
.page input[type=range] { width: 100%; min-height: 30px; accent-color: var(--amber); cursor: pointer; }
.budget { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; }
.budget label { font-size: .84rem; color: var(--dim); }
.budget output { font: 400 1.9rem/1.1 var(--serif); color: var(--amber); font-variant-numeric: lining-nums tabular-nums; }
.budget input { grid-column: 1 / -1; }
.live-answer { grid-column: 1 / -1; min-height: 76px; }
.live-answer p { font-size: .86rem; color: var(--dim); }
.top-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.top-chip { display: inline-flex; flex-direction: column; padding: 6px 11px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-size: .88rem; line-height: 1.3; }
.page a.top-chip { color: var(--txt); }
.top-chip:hover { border-color: var(--amber); }
.top-chip small { color: var(--dim2); font-size: .74rem; }
.km-play { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 12px; display: grid; gap: 2px; font-size: .92rem; }
.km-play b { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.km-play small { color: var(--dim2); font-size: .78rem; }
.duel-title { margin-top: 12px; }
.duel-row { display: flex; flex-wrap: wrap; gap: 7px; }
.open.small { min-height: 34px; padding: 4px 11px; font-size: .84rem; }

/* ---- подробности и сравнение рядом ---- */
.more-filters { border-top: 1px solid var(--line); padding-top: 10px; }
.more-filters > summary { display: list-item; cursor: pointer; font-size: .9rem; color: var(--acc); font-weight: 400; }
.more-filters .filter-body { margin-top: 12px; }
.card-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .88rem; }
.pick-compare { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--dim); cursor: pointer; min-height: 28px; }
.pick-compare input { width: 16px; height: 16px; margin: 0; accent-color: var(--acc2); }
.model .why { width: 100%; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 22px; margin-top: 8px; }
.chart-title { font-size: .8rem; color: var(--dim); margin-bottom: 4px; }
.year-chart { width: 100%; max-width: 420px; height: auto; display: block; }
.year-chart .bar { fill: var(--acc); }
.year-chart g:hover .bar { fill: var(--amber); }
.year-chart .hit { fill: transparent; }
.year-chart text { fill: var(--dim2); font: 10px var(--sans); }
.bench-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: .84rem; }
.bench-list li { margin-top: 3px; }
.cmp-bar { position: sticky; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px;
  background: var(--panel2); border: 1px solid var(--dim2); border-radius: 10px; padding: 9px 12px; font-size: .92rem; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.cmp-bar .go { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.cmp-bar .reset { min-height: 38px; padding: 0 10px; }
.cmp-dialog { width: min(980px, calc(100vw - 24px)); max-height: 88vh; background: var(--panel); color: var(--txt); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.cmp-dialog::backdrop { background: rgba(0,0,0,.65); }
.cmp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cmp-head h2 { font: 400 1.4rem var(--serif); margin: 0; }
.cmp-scroll { overflow-x: auto; }
.cmp-table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 480px; }
.cmp-table th, .cmp-table td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table thead th { font-weight: 600; color: var(--txt); }
.cmp-table tbody th { font-weight: 400; color: var(--dim); white-space: nowrap; }
.cmp-table td { font-variant-numeric: tabular-nums; color: var(--dim); }
.cmp-table td.best { color: var(--good); font-weight: 600; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick .field:first-child { grid-column: 1 / -1; }
  .quick .go { grid-column: 1 / -1; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .tools, .two { grid-template-columns: minmax(0, 1fr); }
  .pick { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .filters { position: static; max-height: none; padding: 0; background: none; border: 0; }
  .filters details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
  .filters summary { display: list-item; }
  .filters details[open] summary { margin-bottom: 12px; }
  .lot { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(odd) { padding-left: 0; }
  .model-head { flex-direction: column; gap: 8px; }
  .model-head .price { text-align: left; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-sub { display: none; }
  .lot-side { grid-column: 1; grid-row: auto; margin-top: 6px; }
}
@media (min-width: 861px) {
  .filters details > summary { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
