/* Сравнение (/compare): таблица во всю ширину, на телефоне — колонки вбок, подписи строк закреплены */
.cp { max-width: 1320px; margin: 0 auto; padding: 22px 28px 90px; }
.cp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.cp-head h1 { margin: 0; font: 600 30px var(--display); }
.cp-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.cp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cp-tools .chip, .cp-tools .pill { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.cp-tools svg { width: 15px; height: 15px; }
.cp-diff { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--glass-line);
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.cp-diff input { accent-color: var(--gold); width: 16px; height: 16px; margin: 0; }
.cp-diff:has(input:checked) { border-color: var(--gold); color: var(--gold); background: rgba(227, 203, 143, .08); }

.cp-scroll { overflow-x: auto; border-radius: 22px; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .03);
  scroll-snap-type: x proximity; scroll-padding-left: 170px; overscroll-behavior-x: contain; }
.cp-t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: calc(170px + var(--n) * 220px); }
.cp-t th, .cp-t td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(243, 232, 188, .07); }
.cp-t tbody tr:last-child th, .cp-t tbody tr:last-child td { border-bottom: 0; }
.cp-t th { position: sticky; left: 0; z-index: 2; width: 170px; background: rgb(5, 58, 57); color: var(--ink-3); font: 500 13px var(--body); }
.cp-t thead th, .cp-t thead td { border-bottom: 1px solid var(--glass-line); }
.cp-t td { color: var(--ink); font-size: 14px; scroll-snap-align: start; transition: opacity .2s, transform .2s; overflow-wrap: anywhere; }
.cp-t tbody tr:hover th, .cp-t tbody tr:hover td { background-color: rgba(255, 255, 255, .03); }
.cp-t tbody tr:hover th { background: rgb(9, 63, 62); }
.cp-t td.best { color: var(--gold); font-weight: 600; background: rgba(227, 203, 143, .07); }
.cp-best { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font: 600 10.5px var(--body);
  font-style: normal; background: rgba(227, 203, 143, .16); color: var(--gold); vertical-align: 1px; }
.cp-best svg { width: 11px; height: 11px; }
.cp-dash { color: var(--ink-3); }
.cp-t tr.same td { color: var(--ink-2); }
.bye { opacity: 0; transform: scale(.96); }
.cp-corner { vertical-align: bottom !important; }
.cp-hint { font-size: 12px; color: var(--gold); }
.cp-obj { position: relative; }
.cp-ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .2); margin-bottom: 10px; }
.cp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-ph .ph-none { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--ink-3); font-size: 11px; }
.cp-ph .ph-none img { width: 44px; height: 44px; opacity: .5; }
.cp-name { display: block; font: 600 15px/1.25 var(--display); color: var(--ink); text-decoration: none; }
.cp-name:hover { color: var(--gold); }
.cp-price { display: block; margin-top: 4px; font: 600 18px var(--display); color: var(--gold); }
.cp-gone { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(242, 154, 126, .15); color: #f6b8a4; font-size: 11.5px; }
.cp-x { position: absolute; top: 18px; right: 20px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(4, 40, 39, .78); color: var(--ink); cursor: pointer; backdrop-filter: blur(6px); }
.cp-x svg { width: 14px; height: 14px; }
.cp-x:hover { background: rgba(242, 154, 126, .85); color: #2a0f08; }
.cp-note { margin-top: 12px; }
.cp-empty { display: grid; justify-items: center; gap: 10px; padding: 70px 16px; text-align: center; color: var(--ink-3);
  border-radius: 22px; border: 1px dashed var(--glass-line); }
.cp-empty > svg { width: 44px; height: 44px; color: var(--gold); }
.cp-empty b { color: var(--ink); font-size: 18px; }
.cp-empty .pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; text-decoration: none; }
.cp-empty .pill svg { width: 15px; height: 15px; }

@media (max-width: 760px) {
  .cp { padding: 14px 12px 110px; }
  .cp-head h1 { font-size: 24px; }
  .cp-tools { width: 100%; }
  .cp-tools .pill { margin-left: auto; }
  .cp-scroll { border-radius: 18px; margin: 0 -4px; scroll-padding-left: 96px; }
  .cp-t { min-width: calc(96px + var(--n) * 158px); }
  .cp-t th { width: 96px; padding: 10px 8px; font-size: 11.5px; }
  .cp-t td { padding: 10px 8px; font-size: 13px; }
  .cp-name { font-size: 13.5px; }
  .cp-price { font-size: 15.5px; }
  .cp-x { top: 14px; right: 12px; width: 26px; height: 26px; }
  .cp-best { display: none; }
}
