/* ══════════════════════════════════════════════════════════════
   compare.css — сравнение компаний: кнопка «Сравнить» (.cmp-toggle),
   плавающая панель (.cmp-tray) и страница compare.html (.cmp-*).
   Токены — ds.css (--ds-*). Скругления только с !important
   (глобальный * { border-radius: 4px !important } в shared.css).
   ══════════════════════════════════════════════════════════════ */

/* ─── Кнопка «Сравнить» ─────────────────────────────────────── */
.cmp-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--ds-font, Inter, sans-serif);
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}
.cmp-toggle:active { transform: scale(.97); }
.cmp-toggle:focus-visible { outline: 3px solid var(--ds-ring, #93C5FD); outline-offset: 2px; }
.cmp-toggle svg { flex: none; }
/* в карточке поиска */
.cmp-toggle--outline {
  height: 38px; padding: 0 14px;
  color: var(--ds-ink, #0B1324);
  background: #FFFFFF;
  border: 1px solid var(--ds-line, #E2E8F0);
  border-radius: 10px !important;
}
.cmp-toggle--outline:hover { border-color: #BFD3F7; color: var(--ds-accent, #2563EB); }
.cmp-toggle--outline.is-on { color: #1D4ED8; background: var(--ds-accent-soft, #EFF6FF); border-color: #BFDBFE; }
.cmp-toggle--outline.is-full:not(.is-on) { opacity: .55; }
/* в шапке профиля — стекло (классы ds-btn ds-btn--glass добавляет hero) */
.cmp-toggle--glass.is-on { background: rgba(16,185,129,.28); box-shadow: inset 0 0 0 1px rgba(110,231,183,.55); }
.cmp-toggle--glass.is-on:hover { background: rgba(16,185,129,.36); }

/* ─── Плавающая панель ─────────────────────────────────────── */
html.has-cmp-tray body { padding-bottom: 92px; }
.cmp-tray {
  position: fixed; left: 50%; bottom: 16px; z-index: 900;
  width: min(1040px, calc(100% - 32px));
  transform: translateX(-50%);
  font-family: var(--ds-font, Inter, sans-serif);
  animation: cmpTrayIn .45s var(--ds-ease, ease) both;
}
@keyframes cmpTrayIn { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cmp-tray-in {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 16px;
  color: #FFFFFF;
  background: rgba(11,19,36,.92);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px !important;
  box-shadow: 0 24px 60px -18px rgba(2,6,23,.6), 0 2px 8px rgba(2,6,23,.2);
  animation: cmpPulse .5s var(--ds-ease, ease);
}
@keyframes cmpPulse { 0% { transform: scale(1); } 40% { transform: scale(1.015); } 100% { transform: scale(1); } }
.cmp-tray.is-notice .cmp-tray-in { animation: cmpShake .4s ease; box-shadow: 0 0 0 2px rgba(248,113,113,.7), 0 24px 60px -18px rgba(2,6,23,.6); }
@keyframes cmpShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cmp-tray-head { display: flex; align-items: center; gap: 10px; flex: none; }
.cmp-tray-ico { display: grid; place-items: center; width: 36px; height: 36px; color: #BFDBFE; background: rgba(59,130,246,.22); border-radius: 11px !important; }
.cmp-tray-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); white-space: nowrap; }
.cmp-tray-title b { color: #FFFFFF; font-weight: 800; }
.cmp-tray-list { display: flex; gap: 8px; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.cmp-tray-list::-webkit-scrollbar { display: none; }
.cmp-tray-item {
  display: flex; align-items: center; flex: 0 1 auto; min-width: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px !important;
  animation: cmpItemIn .35s var(--ds-ease, ease) both;
}
@keyframes cmpItemIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.cmp-tray-link { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 4px 6px 6px; color: #FFFFFF; text-decoration: none; }
.cmp-tray-link:hover { color: #BFDBFE; text-decoration: none; }
.cmp-tray-av {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px;
  font-size: 11px; font-weight: 800; color: #0B1324; background: #DBEAFE;
  border-radius: 8px !important;
}
.cmp-tray-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; font-size: 13.5px; font-weight: 600; }
.cmp-tray-x { display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-right: 3px; color: rgba(255,255,255,.6); background: none; border: 0; border-radius: 8px !important; cursor: pointer; }
.cmp-tray-x:hover { color: #FFFFFF; background: rgba(255,255,255,.12); }
.cmp-tray-slot {
  display: flex; align-items: center; flex: none; padding: 0 14px; height: 42px;
  font-size: 13px; color: rgba(255,255,255,.5);
  border: 1px dashed rgba(255,255,255,.22); border-radius: 12px !important;
  white-space: nowrap;
}
.cmp-tray-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.cmp-tray-clear { height: 44px; padding: 0 12px; font: 600 13.5px/1 inherit; color: rgba(255,255,255,.65); background: none; border: 0; border-radius: 10px !important; cursor: pointer; }
.cmp-tray-clear:hover { color: #FFFFFF; background: rgba(255,255,255,.08); }
.cmp-tray-go {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
  font-size: 15px; font-weight: 700; color: #FFFFFF; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #4F8EF7 0%, #2563EB 100%);
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 24px -10px rgba(37,99,235,.9);
  transition: transform .2s, box-shadow .2s;
}
.cmp-tray-go:hover { color: #FFFFFF; text-decoration: none; transform: translateY(-1px); }
.cmp-tray-go svg { transition: transform .2s; }
.cmp-tray-go:hover svg { transform: translateX(3px); }
.cmp-tray-go.is-disabled { color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); box-shadow: none; cursor: default; transform: none; }
.cmp-tray-notice {
  margin: 8px auto 0; width: fit-content; max-width: 100%;
  padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: #FFFFFF;
  background: #B91C1C; border-radius: 10px !important;
  box-shadow: 0 10px 24px -10px rgba(185,28,28,.8);
}
@media (max-width: 720px) {
  html.has-cmp-tray body { padding-bottom: 84px; }
  .cmp-tray { bottom: 10px; width: calc(100% - 20px); }
  .cmp-tray-in { gap: 8px; padding: 8px 8px 8px 10px; }
  .cmp-tray-title, .cmp-tray-clear, .cmp-tray-name, .cmp-tray-slot { display: none; }
  .cmp-tray-ico { width: 32px; height: 32px; }
  .cmp-tray-link { padding: 5px 2px 5px 5px; }
  .cmp-tray-x { width: 26px; height: 26px; }
  .cmp-tray-go { height: 44px; padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-tray, .cmp-tray-in, .cmp-tray-item { animation: none !important; }
}

/* ─── Страница сравнения ───────────────────────────────────── */
.cmp-page { background: var(--ds-bg, #F3F6FA); min-height: 60vh; }
.cmp-hero { padding-bottom: 72px; }
.cmp-h1 { margin: 10px 0 14px; }
.cmp-lead { margin: 0; }
.cmp-wrap { padding-top: 28px; padding-bottom: 72px; }

.cmp-av {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  font: 800 15px/1 var(--ds-font); color: #1D4ED8; background: var(--ds-accent-soft, #EFF6FF);
  border-radius: 13px !important;
}
.cmp-av.is-sm { width: 34px; height: 34px; font-size: 12px; border-radius: 10px !important; }
.cmp-mono { font-variant-numeric: tabular-nums; }
.cmp-sub { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; line-height: 1.4; color: #64748B; }
.cmp-ok { color: var(--ds-ok, #059669); font-weight: 600; }
.cmp-bad { color: var(--ds-bad, #DC2626); font-weight: 700; }
.cmp-dash { color: #94A3B8; }
.cmp-skel { display: inline-block; width: 70%; max-width: 160px; height: 12px; background: linear-gradient(90deg, #E8EDF4 25%, #F2F5F9 50%, #E8EDF4 75%); background-size: 400% 100%; animation: cmpSkel 1.4s ease infinite; border-radius: 6px !important; }
@keyframes cmpSkel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.cmp-spin { width: 16px; height: 16px; flex: none; border: 2px solid rgba(37,99,235,.2); border-top-color: #2563EB; border-radius: 50% !important; animation: cmpSpin .7s linear infinite; }
@keyframes cmpSpin { to { transform: rotate(360deg); } }

/* пустое состояние */
.cmp-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 680px; margin: 24px auto 0; padding: 48px 32px;
  background: #FFFFFF; border: 1px solid var(--ds-line); border-radius: 24px !important;
}
.cmp-empty-ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; color: #FFFFFF; background: var(--ds-navy); border-radius: 18px !important; }
.cmp-empty-title { margin: 0 0 10px; font: 800 26px/1.2 var(--ds-font); color: var(--ds-ink); }
.cmp-empty-desc { margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: #64748B; }
.cmp-empty .cmp-add { width: 100%; text-align: left; }

/* поиск для добавления */
.cmp-add { position: relative; }
.cmp-add-field {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 16px;
  color: #64748B; background: #FFFFFF;
  border: 1.5px solid var(--ds-line); border-radius: 14px !important;
  transition: border-color .2s, box-shadow .2s;
  cursor: text;
}
.cmp-add-field:focus-within { border-color: #3B82F6; box-shadow: 0 0 0 4px rgba(59,130,246,.15); color: #2563EB; }
.cmp-add-field input { flex: 1; min-width: 0; height: 100%; font: 500 16px/1 var(--ds-font); color: var(--ds-ink); background: none; border: 0; outline: none; }
.cmp-add-field input::placeholder { color: #94A3B8; font-weight: 400; }
.cmp-add.is-compact .cmp-add-field { height: 48px; }
.cmp-add.is-compact .cmp-add-field input { font-size: 15px; }
.cmp-add-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  margin: 0; padding: 6px; list-style: none;
  background: #FFFFFF; border: 1px solid var(--ds-line); border-radius: 14px !important;
  box-shadow: var(--ds-shadow-pop);
  max-height: 360px; overflow-y: auto;
}
.cmp-add-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px; text-align: left;
  font: inherit; color: var(--ds-ink); background: none; border: 0;
  border-radius: 10px !important; cursor: pointer;
}
.cmp-add-item:hover:not(:disabled), .cmp-add-item:focus-visible { background: #F1F5FF; outline: none; }
.cmp-add-item:disabled { cursor: default; opacity: .6; }
.cmp-add-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.cmp-add-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 700; }
.cmp-add-txt small { font-size: 12.5px; color: #64748B; }
.cmp-add-act { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 13px; font-weight: 700; color: #2563EB; }
.cmp-add-item:disabled .cmp-add-act { color: #64748B; font-weight: 600; }
.cmp-add-empty { padding: 14px 12px; font-size: 14px; color: #64748B; }
.cmp-add-pop { max-width: 560px; margin: 0 0 16px auto; }

/* панель инструментов */
.cmp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cmp-toolbar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-tb-btn { height: 44px; gap: 8px; }
.cmp-tb-clear { height: 44px; padding: 0 12px; font: 600 14px/1 var(--ds-font); color: #64748B; background: none; border: 0; border-radius: 10px !important; cursor: pointer; }
.cmp-tb-clear:hover { color: var(--ds-bad); background: var(--ds-bad-soft); }
.cmp-switch { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--ds-font); color: var(--ds-ink); cursor: pointer; user-select: none; }
.cmp-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cmp-switch-track { position: relative; width: 44px; height: 26px; background: #CBD5E1; border-radius: 999px !important; transition: background .2s; }
.cmp-switch-track i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #FFFFFF; border-radius: 50% !important; box-shadow: 0 1px 3px rgba(15,23,42,.3); transition: transform .25s var(--ds-ease); }
.cmp-switch.is-on .cmp-switch-track { background: #2563EB; }
.cmp-switch.is-on .cmp-switch-track i { transform: translateX(18px); }
.cmp-switch input:focus-visible + .cmp-switch-track { box-shadow: 0 0 0 3px var(--ds-ring); }
.cmp-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; font-size: 12.5px; font-weight: 700; color: #1D4ED8; background: var(--ds-accent-soft); border-radius: 999px !important; }

/* плашка платного доступа */
.cmp-paywall {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 14px 16px;
  font-size: 14.5px; line-height: 1.5; color: #334155;
  background: #FFFFFF; border: 1px solid #DBEAFE; border-radius: 16px !important;
}
.cmp-paywall b { color: var(--ds-ink); }
.cmp-paywall > span:nth-child(2) { flex: 1; min-width: 240px; }
.cmp-paywall-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: #FFFFFF; background: var(--ds-navy); border-radius: 12px !important; }
.cmp-paywall-btn { height: 44px; }

/* таблица */
.cmp-table {
  --cmp-label: 260px;
  --cmp-cols: repeat(var(--cmp-n), minmax(0, 1fr));
  background: #FFFFFF;
  border: 1px solid var(--ds-line);
  border-radius: 20px !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.cmp-table.is-single { --cmp-cols: repeat(2, minmax(0, 1fr)); }
.cmp-row { display: grid; grid-template-columns: var(--cmp-label) var(--cmp-cols); }
.cmp-row--head {
  position: sticky; top: var(--ds-hdr-h, 72px); z-index: 20;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ds-line);
  border-radius: 20px 20px 0 0 !important;
}
.cmp-label {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 14px 20px;
  font-size: 14px; font-weight: 600; color: #475569;
  border-bottom: 1px solid #EEF2F7;
}
.cmp-label small { font-size: 12px; font-weight: 400; line-height: 1.4; color: #94A3B8; }
.cmp-label--head { justify-content: flex-end; padding-bottom: 18px; font-size: 13px; color: #94A3B8; border-bottom: 0; }
.cmp-row.is-diff .cmp-label > span { position: relative; }
.cmp-row.is-diff .cmp-label > span::before {
  content: ""; position: absolute; left: -12px; top: .45em;
  width: 6px; height: 6px; background: #3B82F6; border-radius: 50% !important;
}

.cmp-col-head {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 18px 20px 16px;
  border-left: 1px solid #EEF2F7;
  min-width: 0;
}
.cmp-col-x {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 32px; height: 32px;
  color: #94A3B8; background: none; border: 0; border-radius: 9px !important; cursor: pointer;
}
.cmp-col-x:hover { color: var(--ds-bad); background: var(--ds-bad-soft); }
.cmp-col-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding-right: 32px;
  font: 800 17px/1.3 var(--ds-font); color: var(--ds-ink); text-decoration: none;
}
.cmp-col-name:hover { color: var(--ds-accent); text-decoration: none; }
.cmp-col-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: #64748B; }
.cmp-col-open { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ds-accent); text-decoration: none; }
.cmp-col-open:hover { text-decoration: underline; }
.cmp-col-head.is-add { justify-content: center; gap: 12px; background: #FAFBFD; border-radius: 0 20px 0 0 !important; }
.cmp-add-title { display: inline-flex; align-items: center; gap: 8px; font: 800 16px/1 var(--ds-font); color: var(--ds-ink); }
.cmp-col-head.is-add .cmp-add { width: 100%; }

/* сводка */
.cmp-summary {
  display: grid; grid-template-columns: var(--cmp-label) var(--cmp-cols);
  background: #FAFBFD; border-bottom: 1px solid var(--ds-line);
}
.cmp-sum-label { padding: 18px 20px; font: 800 15px/1.3 var(--ds-font); color: var(--ds-ink); }
.cmp-sum-label small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #94A3B8; }
.cmp-sum-card { padding: 16px 20px 18px; border-left: 1px solid #EEF2F7; min-width: 0; }
.cmp-sum-name { display: none; margin-bottom: 8px; font-weight: 800; font-size: 14px; color: var(--ds-ink); }
.cmp-sum-list { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cmp-sum-list + .cmp-sum-list { margin-top: 10px; }
.cmp-sum-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.35; font-weight: 600; }
.cmp-sum-list li svg { flex: none; margin-top: 1px; }
.cmp-sum-list.is-plus li { color: #047857; }
.cmp-sum-list.is-minus li { color: #B91C1C; }
.cmp-sum-none { margin: 0; font-size: 13.5px; color: #94A3B8; }

/* разделы */
.cmp-sec-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 18px 20px 12px;
  font: inherit; text-align: left; color: var(--ds-ink);
  background: none; border: 0; border-bottom: 1px solid #EEF2F7; cursor: pointer;
}
.cmp-sec + .cmp-sec .cmp-sec-head { border-top: 6px solid var(--ds-bg, #F3F6FA); }
.cmp-sec-title { font: 800 18px/1.2 var(--ds-font); }
.cmp-sec-lock { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #475569; background: #F1F5F9; border-radius: 999px !important; }
.cmp-sec-n { margin-left: auto; font-size: 13px; font-weight: 600; color: #94A3B8; }
.cmp-sec-head > svg { color: #94A3B8; transition: transform .25s var(--ds-ease); }
.cmp-sec.is-collapsed .cmp-sec-head > svg { transform: rotate(-90deg); }
.cmp-sec-head:hover .cmp-sec-title { color: var(--ds-accent); }
.cmp-sec-head:focus-visible { outline: 3px solid var(--ds-ring); outline-offset: -3px; }
.cmp-sec:last-of-type .cmp-row:last-child > * { border-bottom: 0; }

.cmp-cell {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; min-width: 0;
  font-size: 14.5px; line-height: 1.45; color: var(--ds-ink);
  border-left: 1px solid #EEF2F7; border-bottom: 1px solid #EEF2F7;
  word-break: break-word;
  transition: background .2s;
}
.cmp-val { min-width: 0; }
.cmp-row:hover .cmp-cell, .cmp-row:hover .cmp-label { background: #FAFBFD; }
.cmp-cell.is-best { background: #ECFDF5; }
.cmp-row:hover .cmp-cell.is-best { background: #E1F9EE; }
.cmp-cell.is-best .cmp-val { font-weight: 700; }
.cmp-best {
  display: grid; place-items: center; flex: none; margin-left: auto;
  width: 22px; height: 22px; color: #FFFFFF; background: #10B981; border-radius: 50% !important;
}
.cmp-cell.is-blur .cmp-val {
  display: inline-block; min-width: 4em; user-select: none; -webkit-user-select: none; pointer-events: none;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
  background: radial-gradient(circle, rgba(15,23,42,.78) 1.1px, transparent 1.45px) 1px 50% / 7px 7px;
  border-radius: 3px !important;
}
.cmp-cell.is-blur .cmp-val * { color: transparent !important; -webkit-text-fill-color: transparent !important; background: none !important; border-color: transparent !important; box-shadow: none !important; }
.cmp-cell.is-blur .cmp-val svg { visibility: hidden; }
.cmp-cell.is-locked { gap: 6px; font-size: 13px; color: #64748B; }
.cmp-cell.is-ghost { background: #FAFBFD; }
.cmp-nodiff { padding: 28px 20px; text-align: center; font-size: 15px; color: #64748B; }
.cmp-foot-note { max-width: 760px; margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: #94A3B8; }

@media (max-width: 1023px) {
  .cmp-table { --cmp-label: 200px; }
  .cmp-label, .cmp-cell, .cmp-col-head, .cmp-sum-card { padding-left: 14px; padding-right: 14px; }
}
/* телефон: подпись строки — над значениями во всю ширину */
@media (max-width: 767px) {
  .cmp-wrap { padding-top: 20px; }
  .cmp-hero { padding-bottom: 56px; }
  .cmp-toolbar { flex-direction: column; align-items: stretch; }
  .cmp-toolbar-r { justify-content: space-between; }
  .cmp-tb-btn { flex: 1; justify-content: center; font-size: 14px; }
  .cmp-table { border-radius: 16px !important; }
  .cmp-row, .cmp-summary { grid-template-columns: var(--cmp-cols); }
  .cmp-row--head { border-radius: 16px 16px 0 0 !important; }
  .cmp-label { grid-column: 1 / -1; padding: 12px 14px 4px; font-size: 12.5px; color: #64748B; border-bottom: 0; background: none !important; }
  .cmp-label--head, .cmp-sum-label { display: none; }
  .cmp-row.is-diff .cmp-label > span::before { left: -9px; }
  .cmp-cell { padding: 4px 14px 12px; font-size: 14px; border-left: 0; }
  .cmp-cell + .cmp-cell { border-left: 1px solid #EEF2F7; }
  .cmp-cell.is-best { background: #ECFDF5; padding-top: 8px; }
  .cmp-col-head { padding: 12px 12px 12px; gap: 6px; }
  .cmp-col-head:first-of-type, .cmp-row--head > .cmp-col-head:nth-child(2) { border-left: 0; }
  .cmp-col-name { font-size: 14.5px; padding-right: 26px; }
  .cmp-col-x { top: 6px; right: 4px; }
  .cmp-row--head .cmp-av, .cmp-col-open { display: none; }
  .cmp-sum-card { padding: 14px 12px; }
  .cmp-sum-card + .cmp-sum-card { border-left: 1px solid #EEF2F7; }
  .cmp-sum-card:first-of-type { border-left: 0; }
  .cmp-sum-list li { font-size: 12.5px; }
  .cmp-sec-head { padding: 16px 14px 10px; }
  .cmp-sec-title { font-size: 16.5px; }
  .cmp-empty { padding: 32px 18px; }
  .cmp-empty-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-skel, .cmp-spin { animation: none; }
}

/* ─── Поиск: кнопка в карточке результата ─────────────────── */
.result-actions .se-cmp { margin-right: 8px; }
.result-actions { display: flex; align-items: center; }
@media (max-width: 767px) {
  .result-actions .se-cmp { height: 36px; padding: 0 12px; font-size: 13px; }
}

/* ─── Профиль: вкладка «Сравнение» ─────────────────────────── */
.pc-cmp {
  padding: 28px;
  background: #FFFFFF; border: 1px solid var(--ds-line); border-radius: 20px !important;
}
.pc-cmp-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.pc-cmp-ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; color: #FFFFFF; background: var(--ds-navy); border-radius: 15px !important; }
.pc-cmp-title { margin: 0 0 6px; font: 800 22px/1.25 var(--ds-font); color: var(--ds-ink); }
.pc-cmp-desc { margin: 0; font-size: 15px; line-height: 1.55; color: #64748B; }
.pc-cmp-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pc-cmp-steps > li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--ds-bg); border-radius: 14px !important;
}
.pc-cmp-n {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px;
  font: 800 14px/1 var(--ds-font); color: #2563EB; background: #FFFFFF;
  box-shadow: inset 0 0 0 1.5px #BFDBFE; border-radius: 50% !important;
}
.pc-cmp-steps > li.is-done .pc-cmp-n { color: #FFFFFF; background: #10B981; box-shadow: none; }
.pc-cmp-step { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.pc-cmp-step b { font-size: 15px; font-weight: 700; color: var(--ds-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-cmp-step > span { font-size: 13px; color: #64748B; }
.pc-cmp-step.is-wide { gap: 10px; }
.pc-cmp-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pc-cmp-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 12px; font-size: 13.5px; font-weight: 600;
  background: #FFFFFF; border: 1px solid var(--ds-line); border-radius: 10px !important;
}
.pc-cmp-list li.is-me { background: var(--ds-accent-soft); border-color: #BFDBFE; }
.pc-cmp-list a { color: var(--ds-ink); text-decoration: none; }
.pc-cmp-list a:hover { color: var(--ds-accent); }
.pc-cmp-list small { font-size: 12px; font-weight: 500; color: #2563EB; }
.pc-cmp-list button { width: 26px; height: 26px; font-size: 18px; line-height: 1; color: #94A3B8; background: none; border: 0; border-radius: 7px !important; cursor: pointer; }
.pc-cmp-list button:hover { color: var(--ds-bad); background: var(--ds-bad-soft); }
.pc-cmp-foot { margin-top: 20px; }
.pc-cmp-go { gap: 8px; }
.pc-cmp-hint { font-size: 14px; color: #64748B; }
@media (max-width: 767px) {
  .pc-cmp { padding: 20px 16px; }
  .pc-cmp-title { font-size: 19px; }
  .pc-cmp-steps > li { flex-wrap: wrap; padding: 12px; }
  .pc-cmp-steps > li > .pc-cmp-step { flex: 1 1 calc(100% - 44px); }
  .pc-cmp-step b { white-space: normal; }
  .pc-cmp-steps > li > .cmp-toggle { margin-left: 44px; }
  .pc-cmp-go { width: 100%; justify-content: center; }
}
