/* Номер и бренд остаются рядом при горизонтальной прокрутке рейтингов. */
@media (max-width: 800px) {
  .model-matrix-ranked,
  .cjm-rank-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    width: max-content;
    min-width: 100%;
  }
  .model-matrix-ranked tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    background: var(--bg);
  }
  .model-matrix-ranked tr > :nth-child(2) {
    position: sticky;
    left: 26px;
    z-index: 2;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    background: var(--bg);
  }
  .cjm-rank-table tr > :first-child {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
  }
  .cjm-rank-table tr > :nth-child(2) {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
  }
  :is(.model-matrix-ranked, .cjm-rank-table) tr > :nth-child(n+3) {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
  }
  :is(.model-matrix-ranked, .cjm-rank-table) thead tr > :nth-child(-n+2) {
    z-index: 3;
  }
  :is(.model-matrix-ranked, .cjm-rank-table) .market-brand b,
  .cjm-matrix .market-brand b {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* Плашка из UI Kit находится в потоке страницы и не перекрывает таблицы. */
.mobile-handoff { display: none; }
.mobile-handoff[hidden] { display: none !important; }
@media (max-width: 767px) {
  .mobile-handoff {
    display: block;
    position: relative;
    max-width: 420px;
    margin: 12px auto;
    padding: 13px 14px 14px;
    width: calc(100% - 24px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 24px var(--shadow);
  }
  .mobile-handoff__close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
  }
  .mobile-handoff__title { padding-right: 42px; font-size: 16px; line-height: 1.2; font-weight: 700; }
  .mobile-handoff__text { padding-right: 32px; margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
  .mobile-handoff__copy {
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    background: #2043ad;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
  }
  .mobile-handoff__status { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
  .mobile-handoff__status:empty { display: none; }
}
