/* Рейтинг моделей · дизайн-система v2 (ds.css) */
.rt-hero { display: grid; gap: 10px; margin-top: 24px; }
body.ds2 #compare-models { margin-top: 40px; }
.rt-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rt-selects { display: flex; gap: 8px; flex-wrap: wrap; }
.rt-table .ds-tr { grid-template-columns: 32px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 72px; padding-top: 10px; padding-bottom: 10px; }
.rt-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rt-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-sort { all: unset; cursor: pointer; font: 500 13px/1.3 Geist, sans-serif; color: var(--ds2-ink-3); transition: color .2s; }
.rt-sort:hover, .rt-sort.is-on { color: var(--ds2-ink); }
.rt-sort:focus-visible { outline: 2px solid var(--ds2-ink); outline-offset: 2px; border-radius: 4px; }
.rt-roi { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.rt-roi i { display: block; height: 6px; width: calc(var(--w) * .7); max-width: 70px; border-radius: 999px; transform-origin: right; transition: transform .8s var(--ds2-ease) .2s; }
.rt-roi i.is-pos { background: var(--ds2-mint-200); } .rt-roi i.is-neg { background: var(--ds2-rose-200); }
.ds-motion .rt-roi i { transform: scaleX(0); }
.ds-motion .is-in .rt-roi i, .ds-motion .rt-roi i.is-in { transform: scaleX(1); }
.rt-dd { color: var(--ds2-ink-2); font: 500 16px/1.35 Geist, sans-serif; }
.rt-table .is-low .rt-low { color: var(--ds2-ink-3); font-weight: 500; }
.rt-empty { display: grid; gap: 6px; justify-items: center; padding: 40px 12px; text-align: center; }
.rt-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.rt-pager .ds-seg button { min-width: 38px; }

@media (max-width: 860px) {
  .rt-table .ds-tr { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .rt-table .ds-tr > span:nth-child(1), .rt-table .ds-tr > span:nth-child(3), .rt-table .ds-tr > span:nth-child(6), .rt-table .ds-tr > span:nth-child(7) { display: none; }
  .rt-table .ds-tr > span:nth-child(5) { grid-column: 2; }
  .rt-table .ds-th { display: none; }
  .rt-roi i { display: none; }
  .rt-filters .ds-seg { width: 100%; }
}
