/* rating.css — стили страниц рейтингов: фильтры, список, каталог, руководство, FAQ, сравнение.
   Подключается ПОСЛЕ rt-main.css. */

.rt-btn--paper { background: var(--rt-paper); color: var(--rt-ink); box-shadow: var(--rt-sh-card); }
.rt-btn--paper:hover { background: var(--rt-paper); color: var(--rt-ink); box-shadow: var(--rt-sh-hover); }
.rt-count--brand { background: var(--rt-brand); }
.rt-section__note { margin-top: 12px; font-size: 14px; color: var(--rt-steel); }

/* ---------- 4. Шапка страницы ---------- */
.rt-head { padding-top: 8px; }
.rt-head .breadcrumbs { margin: 16px 0 16px; }
.rt-head__main { min-width: 0; }
/* главное действие — сразу под лидом, рядом факты проверки */
.rt-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.rt-head__title {
  font-family: Unbounded, sans-serif; font-weight: 600;
  font-size: 36px; line-height: 44px; letter-spacing: -.03em;
}
.rt-head__lead { margin-top: 12px; max-width: 640px; font-size: 16px; line-height: 24px; color: var(--rt-steel); }
.rt-head__facts {
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px;
  font-size: 14px; color: var(--rt-steel);
}
.rt-head__facts > :first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--rt-ink); }
.rt-head__pick { flex: none; }

/* ---------- 5. Фильтры ---------- */
.rt-filters {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 184px; gap: 4px;
  margin-top: 32px; padding: 4px;
  background: var(--rt-paper); border-radius: var(--rt-r-card); box-shadow: var(--rt-sh-tray);
}
.rt-filters__field { position: relative; }
/* открытый список фильтра — поверх липкой строки выдачи */
.rt-filters:has([aria-expanded="true"]) { position: relative; z-index: 13; }
.rt-filters__control {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: 56px; padding: 0 16px;
  border-radius: var(--rt-r-ctl); background: var(--rt-bg); text-align: left;
  transition: background var(--rt-t);
}
.rt-filters__control:hover, .rt-filters__control[aria-expanded="true"] { background: var(--rt-chip); }
.rt-filters__control[data-selected][aria-expanded="true"], .rt-filters__control[data-selected]:hover { background: var(--rt-brand-soft-hover); }
.rt-filters__control > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.rt-filters__label { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--rt-steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-filters__value { display: block; font-size: 16px; line-height: 1.4; color: var(--rt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* выбранное значение — по атрибуту, без класса-модификатора */
.rt-filters__control[data-selected] { background: var(--rt-brand-soft); }
.rt-filters__control[data-selected] .rt-filters__value { font-weight: 500; }
.rt-filters__field:has(> [aria-controls="rtMoreFilters"]) .rt-filters__value { font-weight: 500; }
/* длинные справочники (36 отраслей) прокручиваются внутри списка */
.rt-filters .rt-options { max-height: min(400px, 60vh); overflow-y: auto; overscroll-behavior: contain; }

/* мобильные кнопки «Фильтры» и «Сортировка»: на десктопе не нужны */
.rt-mtools { display: none; }

/* выбранные условия */
.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rt-chips:empty { display: none; }
.rt-chips__item {
  display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 4px 0 12px;
  border-radius: var(--rt-r-pill); background: var(--rt-chip); font-size: 14px;
}

/* ---------- 6. Строка результатов ---------- */
.rt-results {
  position: sticky; top: calc(var(--rt-head, var(--header-h, 68px)) + 8px); z-index: 12;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; min-height: 48px; padding: 0 12px 0 24px;
}
/* подложка полосы — псевдоэлемент: при прилипании меняется только вид, не размеры */
.rt-results::before {
  content: ""; position: absolute; inset: -4px 0; z-index: -1; border-radius: var(--rt-r-card);
  background: var(--rt-paper); box-shadow: 0 1px 2px rgba(20, 22, 28, .04), 0 8px 24px rgba(20, 22, 28, .08);
  opacity: 0; transition: opacity var(--rt-t);
}
.rt-results[data-stuck]::before { opacity: 1; }
.rt-results[data-stuck] .rt-results__tools > .rt-icon-btn { display: none; }
.rt-results__count { font-size: 15px; line-height: 20px; }
.rt-results__count b { font-weight: 700; }
.rt-results__count data { font-weight: 700; }
.rt-results__order a { color: var(--rt-steel); text-decoration: underline; text-decoration-color: var(--rt-faint); text-underline-offset: 3px; }
.rt-results__order a:hover { color: var(--rt-ink); }
.rt-results__order { display: block; font-size: 12px; line-height: 16px; color: var(--rt-steel); }
.rt-results__filters, .rt-results__reset { display: none; }
.rt-results[data-stuck] .rt-results__filters { display: inline-flex; }
.rt-results[data-stuck]:not([data-active="0"]) .rt-results__reset { display: inline-flex; }
.rt-results__count { font-size: 16px; font-weight: 500; }
.rt-results__tools { position: relative; display: flex; align-items: center; gap: 4px; }
.rt-results__sort { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border-radius: var(--rt-r-sm); font-size: 14px; color: var(--rt-steel); }
.rt-results__sort b { font-weight: 400; color: var(--rt-ink); }

.rt-results__options { left: auto; right: 36px; width: 340px; }
/* в сортировке пояснение стоит под названием варианта */
.rt-results__options .rt-options__item { grid-template-columns: minmax(0, 1fr) 16px; align-items: start; row-gap: 2px; padding: 8px 12px; }
.rt-results__options .rt-options__item > small { grid-column: 1; grid-row: 2; font-size: 12px; }
.rt-results__options .rt-options__item small:empty { display: none; }
.rt-options__item > .rt-options__why { display: none; grid-column: 2; grid-row: 1; justify-self: end; visibility: visible; --rt-icon: 14px; color: var(--rt-muted); cursor: help; }
.rt-options__item[aria-disabled="true"] > .rt-options__why { display: block; }

/* Реклама над списком: вне нумерации */
.rt-promos { display: grid; gap: 8px; margin: 8px 0 20px; }
.rt-cat__nda { margin-top: 4px; font-size: 13px; color: var(--rt-steel); }
.rt-nda { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--rt-muted); cursor: help; --rt-icon: 14px; }
.rt-nda:hover, .rt-nda:focus-visible { color: var(--rt-steel); background: var(--rt-bg-soft); }
/* вариант без графика: подпись и результат словами */
.rt-result--text { gap: 6px; }

/* Ещё агентства */
.rt-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; color: var(--rt-steel); }

/* ---------- 10. Проверка проектов ---------- */
/* нумерованные шаги в окне «Добавить агентство» */
.rt-verify__steps { display: grid; gap: 20px; counter-reset: rt-step; }
.rt-verify__step { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; counter-increment: rt-step; }
.rt-verify__step::before {
  content: counter(rt-step); display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--rt-bg); font-size: 13px; font-weight: 700;
}
.rt-verify__step h3 { padding-top: 3px; font-size: 16px; font-weight: 500; }
.rt-verify__step p { grid-column: 2; font-size: 14px; color: var(--rt-steel); }
.rt-flow__step { counter-increment: rt-flow; }
.rt-flow__step::before { content: counter(rt-flow, decimal-leading-zero); font-family: Unbounded, sans-serif; font-weight: 600; font-size: 15px; line-height: 20px; color: var(--rt-faint); }
.rt-flow__more::before { content: ""; height: 20px; }

/* пример проверки: блок появляется, когда его открыли из карточки «Как выглядит проверка» */
.rt-verify { margin-top: 12px; }
.rt-verify:has(> .rt-verify__more:not([open])) { display: none; }

.rt-verify__more { }
.rt-verify__more[open] .rt-verify__grid { animation: rt-fade .3s cubic-bezier(.16, 1, .3, 1); }
.rt-verify__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.rt-proof { padding: 24px; border-radius: var(--rt-r-card); background: var(--rt-bg); }
.rt-proof__head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--rt-steel); }
.rt-proof__status { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--rt-r-pill); background: var(--rt-ok-soft); color: var(--rt-ok); font-size: 12px; font-weight: 500; --rt-icon: 14px; }
.rt-proof__data { margin-top: 12px; padding: 16px; border-radius: var(--rt-r-ctl); background: var(--rt-paper); }
.rt-proof__source { font-size: 13px; color: var(--rt-steel); }
.rt-proof__values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 6px; font-size: 22px; }
.rt-proof__values > :first-child { font-weight: 500; color: var(--rt-steel); }
.rt-proof__values > :nth-child(2) { font-size: 16px; color: var(--rt-steel); }
.rt-proof__values > :nth-child(3) { font-weight: 700; }
.rt-proof__values > :last-child { font-size: 14px; color: var(--rt-steel); }
.rt-proof__checks { display: grid; gap: 10px; margin-top: 16px; font-size: 14px; }
.rt-proof__checks li { display: flex; gap: 10px; }
.rt-proof__note { margin-top: 16px; font-size: 14px; color: var(--rt-steel); }

/* балл проекта: полоса из трёх частей и расшифровка под ней */
.rt-score { display: flex; flex-direction: column; padding: 24px; border-radius: var(--rt-r-card); background: var(--rt-bg); }
.rt-score__legend div::before { box-shadow: 0 0 0 2px var(--rt-bg); }
.rt-score__title { font-size: 16px; font-weight: 700; }
.rt-score__lead { margin-top: 4px; font-size: 14px; color: var(--rt-steel); }
.rt-score__bar { display: flex; gap: 4px; margin-top: 24px; }
.rt-score__bar span { flex: var(--v) 1 0; height: 12px; border-radius: 4px; background: var(--rt-ink); }
.rt-score__bar span + span { background: var(--rt-steel); }
.rt-score__bar span:last-child { background: var(--rt-faint); }
.rt-score__legend { display: grid; gap: 16px; margin-top: 24px; }
.rt-score__legend div { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 12px; }
.rt-score__legend div::before { content: ""; width: 12px; height: 12px; margin-top: 5px; border-radius: 3px; background: var(--rt-ink); }
.rt-score__legend div + div::before { background: var(--rt-steel); }
.rt-score__legend div:last-child::before { background: var(--rt-faint); }
.rt-score__legend dt { font-size: 15px; }
.rt-score__legend dt b { font-weight: 700; }
.rt-score__legend dd { grid-column: 2; font-size: 13px; color: var(--rt-steel); }
.rt-insights__title { font-size: 26px; font-weight: 700; line-height: 34px; letter-spacing: -.01em; }
.rt-insights__lead { margin-top: 4px; font-size: 14px; color: var(--rt-steel); }
.rt-insights__label .rt-word { font-size: 12px; font-weight: 400; color: var(--rt-muted); }
.rt-insights__more { margin-top: 8px; font-size: 13px; }
.rt-bar:hover { background: var(--rt-bg); }
.rt-bar__row data { display: inline-flex; align-items: center; gap: 4px; color: var(--rt-steel); }
.rt-bar:hover .rt-bar__row data { color: var(--rt-ink); }
/* при наведении полоса темнеет — видно, что строку можно нажать */
.rt-bar:hover::after { background: linear-gradient(var(--rt-ink), var(--rt-ink)) 0 0 / var(--v) 100% no-repeat, var(--rt-paper); }
.rt-price-factors__title { font-size: 18px; font-weight: 700; }
.rt-tiers__item:hover { box-shadow: none; }
.rt-tiers__price small { margin-left: 6px; font-family: Manrope, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; white-space: nowrap; color: var(--rt-ink); }
.rt-tiers__price small .rt-word { font-weight: 400; color: var(--rt-steel); }
[data-reveal]:not([data-shown]) .rt-tiers__logos > * + * { margin-left: -26px; }
[data-reveal][data-shown] .rt-tiers__logos > :nth-child(2) { transition-delay: .25s; }
[data-reveal][data-shown] .rt-tiers__logos > :nth-child(3) { transition-delay: .3s; }
[data-reveal][data-shown] .rt-tiers__logos > :nth-child(4) { transition-delay: .35s; }
[data-reveal][data-shown] .rt-tiers__logos > :nth-child(5) { transition-delay: .4s; }
/* нативная карточка внутри выдачи и каталога — в стиле карточек, но на светлом сером и с пометкой */
.rt-native { list-style: none; }
.rt-native[hidden] { display: none; }
.rt-catalog__list > .rt-native { grid-column: 1 / -1; }
.rt-native__card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--rt-r-card); background: var(--rt-paper); }
.rt-native__legal { font-size: 12px; line-height: 16px; color: var(--rt-muted); }
.rt-native__title { margin-top: 2px; font-size: 16px; font-weight: 500; line-height: 22px; }
.rt-native__text { font-size: 14px; line-height: 20px; color: var(--rt-steel); }
/* медийный блок в потоке */
.rt-media { position: relative; margin-top: var(--rt-gap-section); }
.rt-media__link { display: block; }
.rt-media__creative { display: grid; place-items: center; height: 200px; border-radius: var(--rt-r-card); font-size: 13px; color: var(--rt-muted);
  background: repeating-linear-gradient(135deg, var(--rt-bg-soft) 0 12px, var(--rt-paper) 12px 24px); }
.rt-media__legal { position: absolute; right: calc(var(--pad, 16px) + 12px); bottom: 10px; padding: 0 6px; border-radius: var(--rt-r-xs); background: rgba(255, 255, 255, .85); font-size: 11px; line-height: 16px; color: var(--rt-steel); }

/* разделитель перед компаниями с частично подтверждёнными проектами */
.rt-list__promos { list-style: none; }
.rt-tiers__note { margin-top: 12px; }
/* строка «Лучшие по задачам» под фильтрами */
.rt-bestrow { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.rt-bestrow[hidden] { display: none; }
.rt-bestrow__label { flex: none; font-size: 13px; color: var(--rt-steel); }
.rt-bestrow ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.rt-bestrow ul::-webkit-scrollbar { display: none; }
.rt-bestrow li { flex: none; }
.rt-bestrow a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--rt-r-pill); background: var(--rt-paper); font-size: 13px; color: var(--rt-steel); transition: background var(--rt-t); }
.rt-bestrow a:hover { background: var(--rt-bg-soft); color: var(--rt-ink); }
.rt-bestrow b { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--rt-ink); --rt-icon: 13px; }
.rt-list__promos .rt-promos { margin: 0; }
.rt-head__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
.rt-head__share-note { font-size: 13px; color: var(--rt-steel); }
.rt-list__tier { margin-top: 16px; padding: 24px 4px 8px; border-top: 1px solid var(--rt-faint); list-style: none; }
.rt-list__tier[hidden] { display: none; }
.rt-list__tier p { font-size: 15px; line-height: 22px; color: var(--rt-steel); }
.rt-list__tier b { font-weight: 600; color: var(--rt-ink); }

/* страница «Реклама на yookey» */
.rt-adkit__formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rt-adkit__format { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--rt-r-card); background: var(--rt-paper); }
.rt-adkit__format h3 { font-size: 17px; font-weight: 700; line-height: 24px; }
.rt-adkit__format p { font-size: 14px; line-height: 21px; color: var(--rt-steel); }
.rt-adkit__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; font-size: 13px; }
.rt-adkit__meta b { color: var(--rt-ink); white-space: nowrap; }
.rt-adkit__table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rt-adkit__table :is(th, td) { padding: 12px; text-align: left; border-bottom: 1px solid var(--rt-line); }
.rt-adkit__table thead th { font-size: 12px; font-weight: 500; color: var(--rt-steel); }
.rt-adkit__table tbody th { font-weight: 500; }
.rt-adkit__report-title { font-size: 15px; font-weight: 600; }
.rt-adkit__report dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.rt-adkit__report dl div { padding: 14px 16px; border-radius: var(--rt-r-md); background: var(--rt-bg-soft); }
.rt-adkit__report dt { font-size: 13px; color: var(--rt-steel); }
.rt-adkit__report dd { margin-top: 4px; font-family: Unbounded, sans-serif; font-size: 22px; font-weight: 600; }
.rt-adkit__rules { display: grid; gap: 10px; font-size: 15px; line-height: 22px; }
.rt-adkit__rules li { display: flex; gap: 10px; }
.rt-catalog[hidden] { display: none; }
.rt-catalog__title { font-size: 22px; font-weight: 700; line-height: 30px; }
.rt-catalog__lead { margin-top: 6px; max-width: 720px; font-size: 14px; line-height: 22px; color: var(--rt-steel); }
.rt-catalog__item[hidden], .rt-catalog__item[data-over] { display: none; }
.rt-catalog__item > .rt-cat { height: 100%; }
.rt-catalog__more { display: flex; justify-content: center; margin-top: 16px; }
.rt-catalog__more[hidden] { display: none; }
.rt-cat {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 16px; align-items: start;
  padding: 20px 24px; border-radius: var(--rt-r-card); background: var(--rt-paper); box-shadow: var(--rt-sh-card);
  transition: box-shadow var(--rt-t);
}
.rt-cat:hover { box-shadow: var(--rt-sh-hover); }
.rt-cat__name { display: flex; align-items: center; gap: 6px; }
/* ---------- 15. Лидеры по задачам ---------- */
.rt-top { overflow-x: auto; padding: 8px 12px 12px; }
.rt-top table { width: 100%; min-width: 860px; border-collapse: collapse; }
.rt-top thead th { padding: 12px; font-size: 12px; font-weight: 400; color: var(--rt-steel); text-align: left; }
.rt-top tbody :is(td, th) { padding: 12px; font-size: 14px; font-weight: 400; text-align: left; color: var(--rt-steel); vertical-align: middle; box-shadow: inset 0 1px 0 var(--rt-bg); }
.rt-top :is(th, td):nth-child(3), .rt-top :is(th, td):nth-child(4) { text-align: right; white-space: nowrap; }
.rt-top td:nth-child(3), .rt-top td:nth-child(4) { color: var(--rt-ink); }
.rt-top :is(th, td):nth-child(5) { text-align: right; }
.rt-top :is(th, td):last-child { width: 40px; }
.rt-top tbody tr { transition: background var(--rt-t); }
.rt-top tbody tr:hover :is(td, th) { background: var(--rt-bg); }
.rt-top tbody tr:hover :is(td, th):first-child { border-radius: var(--rt-r-md) 0 0 var(--rt-r-md); }
.rt-top tbody tr:hover :is(td, th):last-child { border-radius: 0 var(--rt-r-md) var(--rt-r-md) 0; }
.rt-top tbody tr:hover :is(td, th) { box-shadow: none; }
.rt-top tbody tr:hover + tr :is(td, th) { box-shadow: none; }
.rt-top__task { font-size: 15px; font-weight: 500; color: var(--rt-ink); }
.rt-top__agency { display: flex; align-items: center; gap: 12px; color: var(--rt-ink); white-space: nowrap; }
.rt-top__agency span { display: grid; font-size: 15px; font-weight: 500; line-height: 1.3; }
.rt-top__agency .rt-top__name { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.rt-top__agency small { font-size: 12px; font-weight: 400; color: var(--rt-steel); }
.rt-guide__toc-title { margin-bottom: 8px; font-size: 12px; font-weight: 500; color: var(--rt-muted); }
.rt-guide__toc ol a { display: block; padding: 6px 0 6px 12px; font-size: 14px; line-height: 20px; color: var(--rt-steel); box-shadow: inset 2px 0 0 transparent; }
.rt-guide__toc ol a[aria-current="true"] { color: var(--rt-ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--rt-ink); }
.rt-guide__byline { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; font-size: 13px; line-height: 1.5; color: var(--rt-steel); }
.rt-guide__byline img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.rt-guide__summary-title { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--rt-r-pill); background: var(--rt-brand-soft); font-size: 13px; font-weight: 700; color: var(--rt-brand); }
.rt-faq__help b { font-weight: 500; color: var(--rt-ink); }
.rt-join__status { font-size: 13px; font-weight: 500; color: var(--rt-ok); }
.rt-join__status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
@media (max-width: 1180px) {
  .rt-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-filters__field:has(> [aria-controls="rtMoreFilters"]) { grid-column: 1 / -1; }
  .rt-verify__grid { grid-template-columns: minmax(0, 1fr); }}
@media (max-width: 900px) {
  .rt-empty:not([hidden]) { flex-direction: column; align-items: flex-start; gap: 16px; }
  .rt-results__order, .rt-results__cat { display: none; }
  .rt-flow__step { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; }
    .rt-flow__title { padding-top: 5px; }
  .rt-flow__step > p { grid-column: 2; }}
@media (max-width: 700px) {
  .rt-adkit__formats, .rt-adkit__report dl { grid-template-columns: minmax(0, 1fr); }
  .rt-bestrow { display: grid; gap: 8px; margin-right: calc(-1 * var(--pad, 16px)); }
  .rt-bestrow ul { padding-right: var(--pad, 16px); }
  /* факты первого экрана — под «Как проверяем» */
  .rt-head__facts:not([data-open]) > li:not(.rt-head__how) { display: none; }
  .rt-media { margin-left: 0; margin-right: 0; padding: 0; }
  .rt-media__creative { height: 240px; border-radius: 0; }
  .rt-native__card { grid-template-columns: 40px minmax(0, 1fr); row-gap: 12px; padding: 16px var(--pad, 16px); border-radius: 0; }
  .rt-promos { margin-left: calc(-1 * var(--pad, 16px)); margin-right: calc(-1 * var(--pad, 16px)); }
  /* фильтры на телефоне — шторка: открывает скрипт атрибутом data-open */
  .rt-mtools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .rt-filters { display: none; }
  .rt-filters[data-open] {
    display: grid; grid-template-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    max-height: 85vh; overflow: auto; margin: 0; padding: 24px 16px; border-radius: var(--rt-r-dlg) 20px 0 0; box-shadow: 0 -12px 40px rgba(20, 22, 28, .2);
  }
  .rt-results { gap: 8px; }
  .rt-results:not([data-stuck]) .rt-results__sort { display: none; }
  .rt-results[data-stuck] .rt-results__tools > .rt-icon-btn { display: none; }
  .rt-results[data-stuck] .rt-results__count { display: none; }
  .rt-results[data-stuck] .rt-results__tools { flex: 1; justify-content: space-between; }
  .rt-results[data-stuck] .rt-results__sort { font-size: 0; }
  .rt-results[data-stuck] .rt-results__sort b { font-size: 14px; }
  .rt-results { padding: 0 8px 0 12px; }
  .rt-results[data-stuck]:not([data-active="0"]) .rt-results__reset { display: none; }
  .rt-head__facts { flex-direction: column; align-items: flex-start; }
  .rt-head__facts > * + *::before { content: none; }
  .rt-top table { min-width: 560px; }
  .rt-top :is(th, td):nth-child(5) { display: none; }
  .rt-cat { grid-template-columns: 40px minmax(0, 1fr) 44px; column-gap: 12px; padding: 16px; }
  .rt-cat__save { width: 44px; height: 44px; }
  .rt-head__title { font-size: 28px; line-height: 36px; }}
/* ---------- 23. Состояния, которые включает служебный скрипт ---------- */
/* счётчик выбранного в «Ещё фильтрах»: при нуле не виден */
.rt-filters__badge { position: absolute; right: 40px; top: 50%; margin-top: -10px; }
.rt-filters__control:has(.rt-filters__badge:not([value="0"])) { background: var(--rt-brand-soft); }

/* шапка и низ шторки видны только на телефоне */
.rt-filters__sheet-head, .rt-filters__sheet-foot { display: none; }

/* панель «Ещё фильтры»: во всю ширину лотка */
.rt-more-filters {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 16px;
  margin: 8px 0 0; padding: 24px 28px; border: 0; border-radius: var(--rt-r-ctl); background: var(--rt-paper);
}
.rt-more-filters[hidden] { display: none; }
.rt-more-filters__title { float: left; width: 100%; grid-column: 1 / -1; padding: 0; margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.rt-more-filters__title span { margin-left: 12px; font-size: 14px; font-weight: 400; color: var(--rt-steel); }
.rt-more-filters__group { display: grid; gap: 16px; align-content: start; }
.rt-more-filters__caption { font-size: 14px; font-weight: 500; }
.rt-more-filters__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.rt-segment { display: grid; gap: 4px; }
.rt-segment > div { display: flex; gap: 4px; padding: 4px; border-radius: var(--rt-r-ctl); background: var(--rt-bg); }
.rt-segment label { flex: 1; display: grid; place-items: center; height: 40px; padding: 0 4px; border-radius: var(--rt-r-md); font-size: 13px; white-space: nowrap; color: var(--rt-steel); cursor: pointer; }
.rt-segment input { position: absolute; opacity: 0; pointer-events: none; }
.rt-segment label:has(input:checked) { background: var(--rt-paper); box-shadow: var(--rt-sh-card); color: var(--rt-ink); font-weight: 500; }
.rt-segment label:has(input:focus-visible) { outline: 2px solid var(--rt-brand); outline-offset: 2px; }

/* выбранные условия: «Сбросить все» — последний пункт */
.rt-chips > li:last-child:not(.rt-chips__item) { display: flex; }

/* пустая выдача */
.rt-empty { margin-top: 12px; }
.rt-empty:not([hidden]) { display: flex; align-items: center; gap: 32px; }
.rt-empty__art { flex: none; width: 160px; height: 112px; }
.rt-empty[hidden] { display: none; }
.rt-empty__title { font-size: 18px; font-weight: 500; }
.rt-empty__text { margin-top: 8px; max-width: 520px; font-size: 15px; color: var(--rt-steel); }
.rt-empty__actions { display: flex; gap: 8px; margin-top: 16px; }

/* фон под шторкой и выпадающими списками на телефоне */
.rt-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(20, 22, 28, .48); }
.rt-backdrop[hidden] { display: none; }
.rt-backdrop:not([hidden]) { animation: rt-in .2s ease; }
.rt-page-lock { overflow: hidden; }

@media (max-width: 1180px) {
  .rt-more-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }}
@media (max-width: 700px) {
  .rt-filters[data-open] .rt-filters__sheet-head { position: sticky; top: -16px; z-index: 3; display: flex; align-items: center; justify-content: space-between; margin: -16px -16px 8px; padding: 12px 12px 8px 20px; background: var(--rt-paper); font-size: 18px; font-weight: 700; }
  .rt-filters[data-open] .rt-filters__sheet-foot { position: sticky; bottom: -24px; display: grid; grid-template-columns: auto 1fr; gap: 8px; margin: 8px -16px -24px; padding: 12px 16px 24px; background: var(--rt-paper); box-shadow: 0 -1px 0 var(--rt-line); }
  .rt-more-filters { grid-template-columns: minmax(0, 1fr); padding: 16px 0 0; }
  .rt-filters[data-open] .rt-filters__field:has(> [aria-controls="rtMoreFilters"]) { display: none; }
  .rt-filters[data-open] .rt-more-filters { animation: none; box-shadow: inset 0 1px 0 var(--rt-bg); margin-top: 8px; }
  .rt-filters__apply { gap: .3em; }
  .rt-more-filters__foot { display: none; }
  .rt-more-filters__title span { display: block; margin: 4px 0 0; }
  /* сортировка на телефоне — та же разметка, показана шторкой снизу */
  .rt-results__options:not([hidden]) { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 120; width: auto; padding: 16px 12px 24px; border-radius: var(--rt-r-dlg) 20px 0 0; }}
.rt-conditions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; }
.rt-conditions__label { color: var(--rt-steel); }
.rt-conditions__list { display: contents; }
.rt-conditions__list li { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--rt-r-pill); background: var(--rt-chip); font-size: 13px; }
.rt-head__back { margin-top: 24px; }
.rt-slot__remove { align-self: flex-start; margin-top: 12px; font-size: 13px; }
.rt-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rt-slots__item[hidden] { display: none; }
.rt-slot { display: flex; flex-direction: column; height: 100%; padding: 16px 20px; border-radius: var(--rt-r-card); background: var(--rt-paper); box-shadow: var(--rt-sh-card); }
.rt-slot__head { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.rt-slot__name { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.rt-slot__meta { display: grid; font-size: 13px; line-height: 1.4; color: var(--rt-steel); }
.rt-slot__match { margin-top: 16px; margin-bottom: auto; font-size: 13px; color: var(--rt-steel); }
.rt-slot__match b { font-weight: 500; color: var(--rt-brand); }
.rt-slots__add { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 128px; border-radius: var(--rt-r-card); background: var(--rt-chip); font-size: 14px; font-weight: 500; --rt-icon: 14px; }
.rt-slots__add:hover { background: var(--rt-chip-hover); }

/* переключатель «Только различия» */
.rt-switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.rt-switch input { appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: var(--rt-r-pill); background: var(--rt-faint); cursor: pointer; transition: background var(--rt-t); }
.rt-switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--rt-t); }
.rt-switch input:checked { background: var(--rt-ink); }
.rt-switch input:checked::after { transform: translateX(16px); }
/* строки с одинаковыми значениями (data-same ставит сервер) скрываются без скрипта */
.rt-compare:has(.rt-switch input:checked) tr[data-same] { display: none; }
.rt-compare__hidden { font-size: 13px; color: var(--rt-steel); }
.rt-switch:has(input:disabled) { opacity: .5; cursor: default; }

.rt-compare__box { overflow-x: auto; padding: 16px 32px; }
.rt-compare__table { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; }
.rt-compare__table thead td { width: 200px; }
.rt-compare__table th, .rt-compare__table td { padding: 16px 24px 16px 0; vertical-align: top; text-align: left; font-size: 15px; line-height: 1.5; }
.rt-compare__table thead th { padding-top: 4px; padding-bottom: 8px; }
.rt-compare__table tbody th { width: 200px; font-size: 14px; font-weight: 400; color: var(--rt-steel); }
.rt-compare__table [hidden] { display: none; }
.rt-compare__table td > b { display: block; font-weight: 500; }
.rt-compare__table td > span:not([class]) { display: block; font-size: 14px; color: var(--rt-steel); }
.rt-compare__agency { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }
.rt-compare__none { color: var(--rt-steel); }

.rt-match { display: grid; gap: 8px; }
.rt-match b { font-weight: 700; }
.rt-match span { color: var(--rt-steel); }
.rt-match b { color: var(--rt-ink); }
.rt-match meter { width: 100%; max-width: 240px; height: 4px; border: 0; border-radius: 2px; background: var(--rt-bg); appearance: none; }
.rt-match meter::-webkit-meter-bar { height: 4px; border: 0; border-radius: 2px; background: var(--rt-bg); }
.rt-match meter::-webkit-meter-optimum-value, .rt-match meter::-webkit-meter-suboptimum-value, .rt-match meter::-webkit-meter-even-less-good-value { border-radius: 2px; background: var(--rt-ink); }
.rt-match meter::-moz-meter-bar { border-radius: 2px; background: var(--rt-ink); }

.rt-flag { margin-left: 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.rt-flag[data-ok="true"] { color: var(--rt-ok); }
.rt-flag[data-ok="false"] { color: var(--rt-err); }

/* панель отправки: прилипает к низу экрана, пока видна страница */
.rt-sendbar { position: sticky; bottom: 16px; z-index: 30; margin-top: 32px; }
.rt-sendbar__in {
  display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 24px;
  border-radius: var(--rt-r-card); background: var(--rt-ink); color: #fff; box-shadow: 0 16px 48px rgba(20, 22, 28, .28);
}
.rt-sendbar__text { display: grid; gap: 2px; margin-right: auto; }
.rt-sendbar__text b { font-size: 15px; font-weight: 500; }
.rt-sendbar__names { font-size: 12px; color: var(--rt-on-dark-muted); }

@media (max-width: 1180px) { .rt-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }}
@media (max-width: 700px) {
  .rt-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-slot { padding: 14px; }
  .rt-slot__head { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  /* на телефоне достаточно одного пустого места «Добавить из рейтинга» */
  .rt-slots__item:not([data-agency-card]) ~ .rt-slots__item:not([data-agency-card]) { display: none; }
  .rt-slots__add { min-height: 96px; flex-direction: column; gap: 4px; text-align: center; }
  .rt-compare__box { padding: 12px 16px; }
  .rt-compare__table { min-width: 560px; }
  .rt-compare__table thead td, .rt-compare__table tbody th { width: 120px; }
  .rt-sendbar__names { display: none; }
  .rt-sendbar__in { padding-left: 16px; }}
.nav__item--open > .mega-menu.rt-menu--wide { transform: translate(-50%, 0); }
.modal .link { color: var(--rt-ink); text-decoration: underline; text-decoration-color: var(--rt-faint); }

/* подсказка: пузырь внутри элемента, показывается при наведении и фокусе — без скрипта */
.rt-bubble {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 30;
  width: max-content; max-width: 260px; padding: 8px 12px; border-radius: var(--rt-r-md);
  background: var(--rt-ink); color: #fff; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal;
  box-shadow: 0 8px 24px rgba(20, 22, 28, .2);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px); pointer-events: none;
  transition: opacity var(--rt-t), transform var(--rt-t), visibility 0s linear .16s;
}
.rt-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--rt-ink); }
:is(:hover, :focus-visible, :focus-within) > .rt-bubble { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (max-width: 900px) {
  .nav-mobile .nav__item--open .rt-menu { display: block; }}

.rt-more-filters:not([hidden]) { animation: rt-fade .22s cubic-bezier(.16, 1, .3, 1); }
.rt-chips__item { animation: rt-pop .18s cubic-bezier(.16, 1, .3, 1); }
.rt-slot { transition: box-shadow var(--rt-t); }
.rt-slot:hover { box-shadow: var(--rt-sh-hover); }
.rt-top tbody tr:hover td { color: var(--rt-ink); }
.rt-chapter summary:hover, .rt-faq__item summary:hover { color: var(--rt-ink); }
.rt-faq__item summary:hover::after { background: var(--rt-chip); }

/* мобильные шторки — выезжают снизу */
@media (max-width: 700px) {
  .rt-filters[data-open], .rt-results__options:not([hidden]) { animation: rt-sheet .28s cubic-bezier(.16, 1, .3, 1); }}
.rt-head > * { animation: rt-rise .6s cubic-bezier(.16, 1, .3, 1) backwards; }
.rt-head > :nth-child(2) { animation-delay: .06s; }
.rt-head > :nth-child(3) { animation-delay: .12s; }
.rt-head > :nth-child(n + 4) { animation-delay: .18s; }
/* маленькое серое число после заголовка раздела: объём подборки, вопросов, компаний */
.rt-title-count { margin-left: 4px; font-family: Manrope, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; vertical-align: top; color: var(--rt-muted); }
.rt-results { transition: top .32s cubic-bezier(.16, 1, .3, 1); }
#rtResults { scroll-margin-top: calc(var(--header-h, 68px) + 96px); }
/* плавающая «Подобрать за 1 минуту» — только телефон */
.rt-fab { display: none; }
@media (max-width: 700px) {
  .rt-fab { white-space: nowrap; }
  .rt-fab:not([hidden]) {
    display: inline-flex; position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    transform: translateX(-50%); box-shadow: 0 12px 32px rgba(20, 22, 28, .28); animation: rt-fab-in .3s cubic-bezier(.16, 1, .3, 1);
  }}

/* ---------- 31. Телефон: приёмы мобильных сервисов ----------
   Группы карточек — горизонтальной лентой с прилипанием (видна следующая карточка — понятно, что листается);
   плашки-ссылки — одной строкой с прокруткой; оглавление руководства — сворачивается;
   реклама и каталог — компактнее. */
.rt-guide__toc-title { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: default; }
@media (max-width: 700px) {
  /* лидеры по задачам — карточками вместо таблицы */
  .rt-top { overflow: visible; padding: 4px 0; }
  .rt-top table, .rt-top tbody { display: block; min-width: 0 !important; }
  .rt-top thead { display: none; }
  .rt-top tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "task save" "agency agency" "meta meta"; row-gap: 8px; padding: 14px var(--pad, 16px); box-shadow: inset 0 -1px 0 var(--rt-bg); }
  .rt-top tbody :is(td, th) { display: block; padding: 0 !important; box-shadow: none !important; text-align: left !important; background: none !important; }
  .rt-top tbody th { grid-area: task; font-weight: 600; color: var(--rt-ink); }
  .rt-top tbody td:nth-child(2) { grid-area: agency; }
  .rt-top tbody td:nth-child(3), .rt-top tbody td:nth-child(4) { grid-row: 3; display: inline; font-size: 13px; color: var(--rt-steel) !important; }
  .rt-top tbody td:nth-child(3) { grid-column: 1; }
  .rt-top tbody td:nth-child(3)::after { content: " подходящих проектов"; }
  .rt-top tbody td:nth-child(4) { grid-column: 2; justify-self: end; color: var(--rt-ink) !important; }
  .rt-top tbody td:nth-child(5) { display: none !important; }
  .rt-top tbody td:last-child { grid-area: save; width: auto; }
  /* оглавление руководства — по нажатию */
  .rt-guide__toc-title { cursor: pointer; min-height: 44px; }
  .rt-guide__toc:not([data-open]) ol { display: none; }
  /* каталог: закладка в углу, текст на всю ширину */
  .rt-cat { position: relative; grid-template-columns: 40px minmax(0, 1fr); padding-right: 64px; }
  .rt-cat__save { position: absolute; top: 16px; right: var(--pad, 16px); }}

/* «Читайте также» под руководством — ссылки из поля страницы others-links */
.rt-guide__more { margin-top: 12px; padding: 20px 24px; }
.rt-guide__more-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.rt-guide__more ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; font-size: 15px; line-height: 22px; }
.rt-guide__more a { color: var(--rt-ink); text-decoration: underline; text-decoration-color: var(--rt-faint); text-underline-offset: 3px; }
.rt-guide__more a:hover { text-decoration-color: currentColor; }
.rt-list__more { display: flex; justify-content: center; margin-top: 16px; }
.rt-list__more[hidden] { display: none; }
.rt-top__group { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--rt-muted); }
.rt-go--two b { font-weight: 600; }
.rt-tiles__more { grid-column: 1 / -1; justify-self: start; min-height: 36px; }

/* =====================================================================
   30.09 · правки по проверке на реальных данных
   ===================================================================== */
/* «SEO в цифрах»: единицы («мес.», «%») меньше числа; строки разбивок выровнены по вертикали */
.rt-bento__num small { margin-left: .12em; font-size: .5em; font-weight: 600; letter-spacing: 0; vertical-align: baseline; }
/* таблица лучших: акценты — задача и компания, число проектов — плашкой */
.rt-top tbody th { font-weight: 600; }
.rt-top__task { color: var(--rt-ink); }
.rt-top__agency { font-weight: 600; }
.rt-top tbody td:nth-child(3) { font-weight: 700; color: var(--rt-ok); }
.rt-top tbody td:nth-child(3)::after { content: " проектов"; font-weight: 400; color: var(--rt-steel); font-size: 12px; }
.rt-top tbody td:nth-child(4) { white-space: nowrap; color: var(--rt-steel); }
.rt-price-factors__title, .rt-price-factors > h3 { margin-bottom: 4px; }
.nav-mobile .nav__item--open > .mega-menu.rt-menu--wide { transform: none; }
@media (max-width: 700px) {
  /* выбранные фильтры: одной строкой с прокруткой, «Сбросить все» — первым */
  .rt-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--pad, 16px)); padding-right: var(--pad, 16px); }
  .rt-chips::-webkit-scrollbar { display: none; }
  .rt-chips > * { flex: none; }
  .rt-chips > :last-child:not(.rt-chip) { order: -1; }
  /* кнопки на телефоне: «Фильтры» — главная, со счётчиком; сортировка — тихой ссылкой */
  .rt-mtools { grid-template-columns: auto 1fr; align-items: center; }
  .rt-mtools [aria-controls="rtFilters"] { justify-self: start; padding: 0 16px; }
  .rt-mcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: var(--rt-ink); color: #fff; font-size: 12px; font-weight: 700; }
  .rt-mcount[hidden] { display: none; }
  .rt-mtools [aria-controls="rtSort"] { justify-self: end; background: none; box-shadow: none; padding: 0 4px; height: 36px; font-weight: 400; color: var(--rt-steel); }
  /* сортировка — белая шторка снизу поверх затемнения */
  .rt-results__options:not([hidden]) { position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto; z-index: 100001; width: auto; max-width: none; max-height: 70vh; overflow-y: auto; padding: 8px; border-radius: 20px; background: var(--rt-paper); box-shadow: var(--rt-sh-pop); }
  /* список внутри липкой строки выдачи — поднимаем строку над затемнением, пока открыт */
  .rt-results:has(.rt-results__options:not([hidden])), .rt-mtools:has(.rt-results__options:not([hidden])) { z-index: 200; }
  /* шторка фильтров: без горизонтальной прокрутки */
  #rtFilters { overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y; }
  #rtFilters .rt-options { max-width: 100%; }
  .rt-join__status { font-size: 13px; line-height: 18px; }
  /* таблица лучших на телефоне — карточками с акцентами */
  .rt-top tbody tr { grid-template-areas: "task save" "agency agency" "meta meta"; row-gap: 10px; padding: 16px; }
  .rt-top tbody th a { font-size: 16px; }
  .rt-top tbody td:nth-child(2) .rt-top__agency { font-size: 15px; }
  .rt-top tbody td:nth-child(3)::after { content: " проектов"; }
  .rt-top tbody td:nth-child(3), .rt-top tbody td:nth-child(4) { font-size: 13px !important; }}

/* =====================================================================
   30.09 (2) · фильтры, окна, телефон
   ===================================================================== */
/* «Ещё фильтры»: число компаний у варианта, недоступные — бледные; поле без выбора — приглушено */
.rt-more-filters [role="option"][data-count]:not([data-value=""])::after { content: attr(data-count); margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--rt-muted); }
.rt-more-filters [role="option"] { display: flex; align-items: center; }
.rt-more-filters [role="option"][aria-disabled="true"] { opacity: .42; cursor: default; }
.rt-segment label[data-off] { opacity: .38; cursor: default; }
.rt-segment label[data-count]:not(:has(input[value=""]))::after { content: attr(data-count); margin-left: 4px; font-size: 11px; color: var(--rt-muted); }
.rt-segment label { grid-auto-flow: column; gap: 2px; }
/* каталог: длинные названия и тексты не ломают карточку */
.rt-cat, .rt-cat__body, .rt-cat__name, .rt-cat__spec, .rt-cat__meta { min-width: 0; }
.rt-cat__name, .rt-cat__spec { overflow-wrap: anywhere; }
.rt-cat__meta { flex-wrap: wrap; }
/* руководство: автор — заметнее */
.rt-guide__byline a { font-size: 15px; font-weight: 700; color: var(--rt-ink); text-decoration: none; }
.rt-guide__byline a:hover { color: var(--rt-brand); }
.rt-backdrop:not([hidden]) { animation: rt-in .24s ease; }
.rt-fab { transition: opacity .2s ease, transform .2s ease; }
@media (max-width: 700px) {
  /* таблица лучших: задача сверху, компания с логотипом и закладкой — одной строкой, ниже цифры */
  .rt-top tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "task task" "agency save" "meta meta"; row-gap: 8px; }
  .rt-top tbody th { grid-area: task; }
  .rt-top tbody td:nth-child(2) { grid-area: agency; align-self: center; }
  .rt-top tbody td:last-child { grid-area: save; align-self: center; }
  .rt-top tbody td:nth-child(3) { grid-area: meta; grid-row: 3; }
  .rt-top tbody td:nth-child(4) { grid-row: 3; grid-column: 2; justify-self: end; }
  .rt-top__group { margin-top: 2px; }
  /* строка выдачи: одна и та же белая подложка — прилипла она или нет; счётчик — фирменный */
  .rt-mtools [aria-controls="rtFilters"] { background: var(--rt-paper); box-shadow: var(--rt-sh-card, 0 1px 2px rgba(20,22,28,.06)); }
  .rt-mcount { background: var(--rt-brand); }
  .rt-results, .rt-mtools { -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* сортировка — шторка на всю ширину (фиксированное позиционирование от экрана, а не от строки) */
  .rt-results__options:not([hidden]) { left: 8px; right: 8px; width: auto; animation: rt-sheet-up .3s cubic-bezier(.2, .8, .2, 1); }
  .rt-filters[data-open] { animation: rt-sheet-up .32s cubic-bezier(.2, .8, .2, 1); }
  /* шторка фильтров: основные фильтры сразу, «Ещё фильтры» — по кнопке */
  .rt-sheet-more { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin-top: 8px; padding: 0 16px; border-radius: var(--rt-r-ctl); background: var(--rt-bg); font-weight: 600; }
  .rt-filters[data-open]:not([data-more]) .rt-more-filters { display: none; }}
@media (min-width: 701px) { .rt-sheet-more { display: none; }}
/* руководство: фото автора не сжимается */
.rt-guide__byline img { flex: none; width: 36px; height: 36px; }
/* в списках фильтров — что за числа справа */
#f-industry::before, #f-site::before, #f-goal::before { content: "Справа — сколько компаний подходит"; display: block; padding: 6px 12px 8px; font-size: 12px; color: var(--rt-muted); }
.rt-backdrop[data-leaving] { animation: rt-fade-out .2s ease forwards; }
#rtWhy:not([hidden]) { animation: rt-soft-in .16s ease; }
/* «Ещё фильтры»: числа у кнопок-переключателей не показываем — недоступное и так бледное, а подсказка объясняет почему */
.rt-segment label[data-count]::after { content: none !important; }
@media (max-width: 700px) {
  /* строка выдачи: белая подложка во всю ширину, «Фильтры» — серая кнопка, как на компьютере */
  .rt-mtools { margin: 0 calc(-1 * var(--pad, 16px)); padding: 8px var(--pad, 16px); background: var(--rt-paper); }
  .rt-mtools [aria-controls="rtFilters"] { height: 44px; padding: 0 20px; background: var(--rt-bg); box-shadow: none; font-weight: 600; }
  /* сортировка — шторка ровно по ширине экрана с полями 8 px */
  .rt-results__options:not([hidden]) { left: 8px !important; right: 8px !important; width: auto !important; max-width: none !important; margin: 0 !important; inset-inline: 8px !important; }
  .rt-results__options[data-leaving] { animation: rt-sheet-down .22s ease forwards; }
  /* таблица лучших: задача отдельно от компании; закладка — справа; цена рядом с числом проектов */
  .rt-top tbody tr { grid-template-columns: max-content max-content minmax(0, 1fr) auto; grid-template-areas: "task task task task" "agency agency agency save" "count price . ."; column-gap: 16px; row-gap: 6px; }
  .rt-top tbody th { grid-area: task; margin-bottom: 8px; }
  .rt-top tbody td:nth-child(2) { grid-area: agency; }
  .rt-top tbody td:last-child { grid-area: save; justify-self: end; }
  .rt-top tbody td:nth-child(3) { grid-area: count; grid-row: auto; grid-column: auto; }
  .rt-top tbody td:nth-child(4) { grid-area: price; grid-row: auto; grid-column: auto; justify-self: start; }
  /* шторка фильтров: «Ещё фильтры» — ссылкой, а не полем; без серой линии; поля как у основных */
  .rt-sheet-more { justify-content: center; gap: 6px; min-height: 44px; margin: 12px 0 4px; padding: 0; background: none; color: var(--rt-brand); font-weight: 600; }
  .rt-filters .rt-more-filters { margin: 0; padding: 8px 0 0; border: 0; box-shadow: none; }
  .rt-filters .rt-more-filters > :first-child { border-top: 0; }
  .rt-filters .rt-more-filters .rt-more__head, .rt-filters .rt-more-filters h3 { display: none; }}
@media (max-width: 700px) {
  .rt-results__options:not([hidden]) { min-width: 0 !important; width: calc(100vw - 16px) !important; }
  .rt-filters .rt-more-filters__title { display: none; }}
/* руководство: должность автора — с новой строки */
.rt-guide__role { display: block; }

@media (max-width: 900px) {
  /* шапка на телефоне не фиксируется — липкой строке выдачи отступ сверху не нужен */
  .rt-results, .rt-mtools { top: 8px !important; }}
@media (max-width: 700px) {
  /* полоса «Фильтры / сортировка» — белая плашка со скруглением и полями, как на компьютере */
  .rt-mtools { margin: 16px 0 0; padding: 8px; border-radius: var(--rt-r-card); background: var(--rt-paper); grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .rt-mtools [aria-controls="rtFilters"] { justify-self: stretch; justify-content: flex-start; height: 48px; padding: 0 16px; border-radius: var(--rt-r-ctl); font-size: 15px; }
  /* шторка фильтров: длинные списки — прямо в потоке шторки, её можно долистать до конца */
  #rtFilters .rt-options { position: static; width: auto; max-width: none; max-height: none; margin: 6px 0 0; box-shadow: none; border: 1px solid var(--rt-line); }
  #rtFilters .rt-options:not([hidden]) { animation: rt-soft-in .18s ease; }
  #rtFilters .rt-options[data-leaving] { animation: none; }
  /* «Ещё фильтры» — как на компьютере: серая кнопка с плюсом */
  .rt-sheet-more { justify-content: space-between; min-height: 48px; margin: 8px 0 4px; padding: 0 16px; border-radius: var(--rt-r-ctl); background: var(--rt-bg); color: var(--rt-ink); font-weight: 600; }}
/* липкая строка: смена вида при прилипании — плавно */
.rt-results[data-stuck] .rt-results__tools, .rt-results:not([data-stuck]) .rt-results__count { animation: rt-soft-in .24s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 700px) {
  /* плашка «Фильтры / сортировка» — без внешних полей, как карточки; «Фильтры» — половина ширины, с плюсом */
  .rt-mtools { margin: 16px calc(-1 * var(--pad, 16px)) 0; padding: 8px; border-radius: var(--rt-r-card); grid-template-columns: 1fr 1fr; }
  .rt-mtools [aria-controls="rtFilters"] { justify-self: stretch; justify-content: center; gap: 6px; }
  .rt-mtools [aria-controls="rtFilters"]::before { content: "+"; font-size: 20px; line-height: 1; font-weight: 400; margin-top: -2px; }
  .rt-mtools [aria-controls="rtSort"] { justify-self: end; }
  /* «Ещё фильтры» в шторке — с плюсом, без жирного */
  .rt-sheet-more { font-weight: 500; }
  /* число компаний над карточками — с тем же полем слева, что и содержимое карточек */
  .rt-results:not([data-stuck]) { padding-left: 0; padding-right: 0; }
  /* каталог: город, год и цена — одной строкой, не под закладкой, с растворением у края */
  .rt .rt-cat { padding-right: 16px; }
  .rt .rt-cat__name { padding-right: 44px; }
  .rt .rt-cat__meta { margin-right: 44px; }}
@media (max-width: 700px) {
  /* «Фильтры»: подпись слева, плюс справа — как у «Ещё фильтров» */
  .rt-mtools [aria-controls="rtFilters"] { justify-content: space-between; padding: 0 14px 0 16px; }
  .rt-mtools [aria-controls="rtFilters"]::before { content: none; }
  .rt-mtools [aria-controls="rtFilters"]::after { content: "+"; order: 3; margin-left: auto; font-size: 20px; line-height: 1; font-weight: 400; }
  .rt-mtools [aria-controls="rtFilters"] .rt-mcount { order: 2; margin-left: 8px; }}
.rt-hide-m { display: inline; }
@media (max-width: 700px) {
  .rt-hide-m { display: none; }
  /* «Фильтры»: счётчик — рядом с плюсом */
  .rt-mtools [aria-controls="rtFilters"] .rt-mcount { order: 2; margin-left: auto; margin-right: 8px; }
  .rt-mtools [aria-controls="rtFilters"]::after { margin-left: 0; }}

/* =====================================================================
   01.10 (7) · сравнение и шорт-лист, карточки на телефоне
   ===================================================================== */
/* сравнение: таблица прокручивается внутри блока, строка с агентствами и подписи строк остаются на месте */
.rt-compare__box { max-height: calc(100vh - 120px); overflow: auto; overscroll-behavior: contain; padding: 0 32px 16px; }
.rt-compare__table thead th, .rt-compare__table thead td { position: sticky; top: 0; z-index: 2; background: var(--rt-paper); padding-top: 16px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--rt-line); }
.rt-compare__table thead td:first-child { left: 0; z-index: 3; }
.rt-compare__table thead { position: sticky; top: 0; z-index: 3; background: var(--rt-paper); }
.rt-compare__table tbody th { position: sticky; left: 0; z-index: 1; background: var(--rt-paper); }
.rt-compare__table tbody tr + tr > * { border-top: 1px solid var(--rt-line); }
.rt-compare__agency { max-width: 100%; white-space: nowrap; overflow: hidden; }
.rt-compare__agency > span, .rt-compare__agency { text-overflow: ellipsis; }
.rt-compare__table td > span:not([class]) { margin-top: 2px; font-size: 13px; line-height: 1.4; }
@media (max-width: 700px) {
  /* карточка каталога: логотип и название в строку, оффер — на всю ширину, как в рейтинге */
  .rt .rt-cat { display: grid; grid-template-columns: 40px minmax(0, 1fr) 36px; column-gap: 12px; align-items: start; padding: 16px; }
  .rt .rt-cat__body { display: contents; }
  .rt .rt-cat__name { grid-column: 2; grid-row: 1; padding-right: 0; }
  .rt .rt-cat__meta { grid-column: 2; grid-row: 2; margin: 2px 0 0; }
  .rt .rt-cat__spec { grid-column: 1 / -1; grid-row: 3; }
  .rt .rt-cat > .rt-cat__save { position: static; grid-column: 3; grid-row: 1 / span 2; align-self: start; }

  /* шорт-лист: каждое агентство — одной невысокой строкой */
  .rt .rt-slots { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rt .rt-slot { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "head head remove" "match match remove"; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 12px 12px 16px; height: auto; }
  .rt .rt-slot__head { grid-area: head; grid-template-columns: 40px minmax(0, 1fr); }
  .rt .rt-slot__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
  .rt .rt-slot__meta { display: flex; gap: 0; white-space: nowrap; overflow: hidden; font-size: 13px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); }
  .rt .rt-slot__meta > span { display: inline; flex: none; }
  .rt .rt-slot__meta > span + span::before { content: "\00a0·\00a0"; color: var(--rt-muted); }
  .rt .rt-slot__match { grid-area: match; margin: 0 0 0 52px; font-size: 13px; }
  .rt .rt-slot__remove { grid-area: remove; align-self: center; margin: 0; font-size: 13px; }
  .rt .rt-slots__item:has(.rt-slots__add) ~ .rt-slots__item:has(.rt-slots__add) { display: none; }
  .rt .rt-slots__add { min-height: 56px; flex-direction: row; }
  /* полоса брифа: короткая подпись слева, кнопка в одну строку справа */
  .rt-sendbar { bottom: 8px; }
  .rt-sendbar__in { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; }
  .rt-sendbar__text { flex: 1; min-width: 0; font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-sendbar__text b, .rt-sendbar__text b * { font-size: 13px; line-height: 17px; font-weight: 500; }
  .rt-sendbar__names { display: none; }
  /* сравнение на телефоне: колонки по 168 px, подпись строки — над значениями и не уезжает при прокрутке вбок */
  .rt-compare__box { max-height: calc(100dvh - 140px); padding: 0; margin-left: calc(-1 * var(--pad, 16px)); margin-right: calc(-1 * var(--pad, 16px)); }
  .rt-compare__table { display: block; width: max-content; min-width: 100%; table-layout: auto; }
  .rt-compare__table thead, .rt-compare__table tbody { display: block; }
  .rt-compare__table tr { display: grid; grid-template-columns: repeat(var(--n, 3), 168px); column-gap: 16px; padding: 12px 16px; }
  .rt-compare__table thead { position: sticky; top: 0; z-index: 3; background: var(--rt-paper); box-shadow: 0 1px 0 var(--rt-line); }
  .rt-compare__table thead tr { background: var(--rt-paper); }
  .rt-compare__table thead th, .rt-compare__table thead td { position: static; padding: 0; box-shadow: none; }
  .rt-compare__table thead td:first-child { display: none; }
  .rt-compare__agency { gap: 8px; font-size: 14px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }
  .rt-compare__table tbody th { grid-column: 1 / -1; position: sticky; left: 16px; width: calc(100vw - 32px); padding: 0 0 6px; font-size: 12px; line-height: 16px; letter-spacing: .02em; text-transform: uppercase; color: var(--rt-muted); background: none; }
  .rt-compare__table td { padding: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
  .rt-compare__table td > b { font-weight: 500; }}

/* первый экран: строка фактов — одной строкой, место под число проектов зарезервировано (фильтры ниже не прыгают) */
@media (min-width: 701px) {
  .rt-head__facts { flex-wrap: nowrap; white-space: nowrap; min-height: 22px; }
  .rt-head__facts > li { flex: none; }
  /* планшет: строка фактов — своей строкой под кнопкой (рядом не помещается), без переносов */
  .rt-head__row > .rt-head__facts { flex-basis: 100%; }}

/* =====================================================================
   02.10 · единый вид элементов, шорт-лист, сравнение
   ===================================================================== */
/* кнопка «Фильтры» везде одинаково: подпись → число выбранных → плюс справа */
.rt-results__filters { gap: 6px; }
.rt-results__filters > .rt-count { order: 2; }
/* шорт-лист: «убрать» — крестиком, как в окнах */
.rt-slot__remove { flex: none; color: var(--rt-steel); }
.rt-slot__remove:hover { color: var(--rt-ink); }
/* сравнение: значения короткие, в одну строку; метка «в бюджете» — под ценой */
.rt-compare__table td { white-space: nowrap; }
.rt-compare__table td .rt-flag { display: block; margin-top: 2px; font-size: 12px; }
@media (max-width: 700px) {
  /* «Фильтры»: число выбранных — сразу после подписи, плюс — справа */
  .rt-mtools [aria-controls="rtFilters"] .rt-mcount { order: 1; margin-left: 8px; margin-right: 0; }
  .rt-mtools [aria-controls="rtFilters"]::after { order: 3; margin-left: auto; }
  /* липкая строка, полоса шорт-листа и брифа — от края до края экрана, как весь контент */
  .rt-results[data-stuck] { margin-left: calc(-1 * var(--pad, 16px)); margin-right: calc(-1 * var(--pad, 16px)); padding-left: 16px; padding-right: 12px; border-radius: 0 0 var(--rt-r-card) var(--rt-r-card); }
  .rt-results[data-stuck]::before { border-radius: 0 0 var(--rt-r-card) var(--rt-r-card); }
  .rt-sendbar { bottom: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; max-width: none; width: 100%; }
  .rt-sendbar__in { border-radius: var(--rt-r-card); transition: border-radius .2s ease, padding .2s ease; }
  .rt-sendbar[data-stuck] .rt-sendbar__in { border-radius: var(--rt-r-card) var(--rt-r-card) 0 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  /* первый экран: кнопка подбора — во всю ширину, «Как проверяем проекты» — тихой ссылкой под ней */
  .rt-head__pick { width: 100%; justify-content: center; height: 52px; }
  .rt-head__row { gap: 12px; margin-top: 16px; }
  .rt-head__lead, .rt-head__main > p { font-size: 15px; line-height: 22px; }
  /* шорт-лист: крестик справа по центру строки */
  .rt .rt-slot__remove { width: 36px; height: 36px; }
  /* сравнение: как в референсе — закреплены и строка с агентствами, и узкая колонка с названиями параметров */
  .rt-compare__box { max-height: calc(100dvh - 140px); }
  .rt-compare__table { display: table; width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: auto; }
  .rt-compare__table thead { display: table-header-group; position: sticky; top: 0; z-index: 3; }
  .rt-compare__table tbody { display: table-row-group; }
  .rt-compare__table tr { display: table-row; padding: 0; }
  .rt-compare__table tbody tr + tr { border-top: 0; }
  .rt-compare__table th, .rt-compare__table td { display: table-cell; padding: 12px 16px 12px 0; vertical-align: middle; border-top: 1px solid var(--rt-line); }
  .rt-compare__table thead th, .rt-compare__table thead td { padding: 12px 16px 12px 0; background: var(--rt-paper); border-top: 0; box-shadow: inset 0 -1px 0 var(--rt-line); }
  .rt-compare__table thead td:first-child { display: table-cell; position: sticky; left: 0; z-index: 4; width: 112px; min-width: 112px; max-width: 112px; padding-left: 16px; }
  .rt-compare__table tbody th { grid-column: auto; position: sticky; left: 0; z-index: 2; width: 112px; min-width: 112px; max-width: 112px; padding: 12px 12px 12px 16px; background: var(--rt-paper);
    font-size: 12px; line-height: 16px; letter-spacing: 0; text-transform: none; color: var(--rt-steel); white-space: nowrap; overflow: hidden; }
  /* у метки параметра, которая не влезла, — плавное растворение в белый */
  .rt-compare__table tbody th::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 24px; background: linear-gradient(90deg, rgba(255,255,255,0), var(--rt-paper)); }
  .rt-compare__table tbody th, .rt-compare__table thead td:first-child { box-shadow: 1px 0 0 var(--rt-line); }
  .rt-compare__table thead th { min-width: 136px; max-width: 160px; }
  .rt-compare__table td { min-width: 136px; max-width: 160px; font-size: 14px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; }
  .rt-compare__agency { display: flex; max-width: 144px; }}

/* первый экран, компьютер от 1120 px: факты — в одной строке с кнопкой (строка короткая и помещается всегда,
   поэтому ничего не переносится и не прыгает); дата следующего обновления — в подсказке у «Данные на …» */
@media (min-width: 1120px) {
  .rt-head__row { flex-wrap: nowrap; gap: 24px; }
  .rt-head__row > .rt-head__facts { flex-basis: auto; min-width: 0; }}
.rt-head__recalc { cursor: help; text-decoration: underline dotted var(--rt-faint); text-underline-offset: 4px; }
/* строка выдачи над карточками — в одну строку: смена чисел меняет только её ширину, не высоту */
@media (min-width: 701px) { .rt-results__count { white-space: nowrap; }}
.nav__item--open > .mega-menu.rt-menu--wide:has(> .rt-menu__main[hidden]) { transform: none; }

/* =====================================================================
   02.10 (2) · телефон: меню, карточка, кейсы, шторка, сравнение
   ===================================================================== */
/* сравнение (все ширины): легче — без жёстких линий, мягкие полосы строк, воздух */
.rt-compare__table { border-collapse: separate; border-spacing: 0; }
.rt-compare__table tbody tr > * { border-top: 0 !important; }
.rt-compare__table tbody tr:nth-child(odd) > * { background: #F8F9FB; }
.rt-compare__table tbody tr > *:first-child { border-radius: 10px 0 0 10px; }
.rt-compare__table tbody tr > *:last-child { border-radius: 0 10px 10px 0; }
.rt-compare__table thead th, .rt-compare__table thead td { box-shadow: none; }
.rt-compare__table thead { box-shadow: 0 8px 12px -12px rgba(20, 22, 28, .18); }
@media (max-width: 700px) {
  /* кнопка «Фильтры» на месте — по содержимому, как в липкой строке */
  .rt-mtools { grid-template-columns: auto minmax(0, 1fr); }
  .rt-mtools [aria-controls="rtFilters"] { justify-self: start; width: auto; justify-content: flex-start; gap: 8px; padding: 0 14px 0 16px; }
  .rt-mtools [aria-controls="rtFilters"]::after { margin-left: 4px; }
  /* шторка фильтров: шапка закрывает прокрученное содержимое целиком (поле шторки сверху — 24 px) */
  .rt-filters[data-open] .rt-filters__sheet-head { top: -24px; margin-top: -24px; padding-top: 20px; }
  /* сравнение на телефоне: воздух, мягкие полосы, без вертикальной черты у колонки параметров */
  .rt-compare__table th, .rt-compare__table td { padding: 14px 16px 14px 0; border-top: 0; }
  .rt-compare__table tbody th, .rt-compare__table thead td:first-child { box-shadow: none; padding-left: 16px; }
  .rt-compare__table tbody tr:nth-child(odd) > * { background: #F8F9FB; }
  .rt-compare__table tbody tr:nth-child(even) > * { background: var(--rt-paper); }
  .rt-compare__table tbody th::after { background: linear-gradient(90deg, rgba(255,255,255,0), currentColor); color: inherit; }
  .rt-compare__table tbody tr:nth-child(odd) th::after { background: linear-gradient(90deg, rgba(248,249,251,0), #F8F9FB); }
  .rt-compare__table tbody tr:nth-child(even) th::after { background: linear-gradient(90deg, rgba(255,255,255,0), #FFF); }
  .rt-compare__table tbody tr > *:first-child, .rt-compare__table tbody tr > *:last-child { border-radius: 0; }
  .rt-compare__table thead th, .rt-compare__table thead td { padding: 14px 16px 14px 0; }
  .rt-compare__table td { font-size: 14px; line-height: 19px; }
  .rt-compare__table tbody th { font-size: 12px; color: var(--rt-muted); }
  .rt-compare__agency { font-size: 14px; font-weight: 600; }}

/* =====================================================================
   02.10 (3) · сравнение и шорт-лист
   ===================================================================== */
/* блок таблицы: без своей прокрутки по вертикали — листается страница; по горизонтали — только если не влезает */
.rt-compare__box { max-height: none !important; overflow-x: auto; overflow-y: hidden; overscroll-behavior: auto !important; }
.rt-compare__table thead { position: static !important; box-shadow: none !important; }
.rt-compare__table thead th, .rt-compare__table thead td { position: static !important; }
/* плавающая шапка с агентствами — появляется (с тенью) только когда настоящая ушла за верх экрана */
.rt-compare__float { position: fixed; z-index: 60; overflow: hidden; background: var(--rt-paper); box-shadow: 0 10px 16px -14px rgba(20, 22, 28, .28); border-radius: 0 0 var(--rt-r-md) var(--rt-r-md); animation: rt-soft-in .18s ease; }
.rt-compare__float[hidden] { display: none; }
.rt-compare__float table { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.rt-compare__float thead td:first-child { position: relative; z-index: 2; background: var(--rt-paper); }
/* ячейки: поля внутри у всех, текст в одну строку; что не влезло — растворяется в цвет строки */
.rt-compare__table { table-layout: fixed; }
.rt-compare__table th, .rt-compare__table td { padding: 12px 14px; }
.rt-compare__table tbody tr:nth-child(odd) { --row-bg: #F8F9FB; }
.rt-compare__table tbody tr:nth-child(even), .rt-compare__table thead tr { --row-bg: var(--rt-paper); }
.rt-compare__table td, .rt-compare__table th, .rt-compare__agency { position: relative; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.rt-compare__table [data-cut]::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--row-bg, #fff)); }
@media (min-width: 701px) {
  .rt-compare__table { width: 100%; }
  .rt-compare__table tbody th, .rt-compare__table thead td:first-child { width: 148px; }
  .rt-compare__table td { font-size: 14px; line-height: 20px; }
  .rt-compare__agency { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
  /* шорт-лист: без цены (она в сравнении), крестик — справа сверху в карточке */
  .rt .rt-slot { position: relative; }
  .rt .rt-slot__head { padding-right: 28px; }
  .rt .rt-slot__remove { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; background: transparent; color: var(--rt-muted); }
  .rt .rt-slot__remove:hover { background: var(--rt-bg); color: var(--rt-ink); }}
@media (max-width: 700px) {
  .rt-compare__table th, .rt-compare__table td { padding: 14px 12px; }
  .rt-compare__table tbody th, .rt-compare__table thead td:first-child { padding-left: 16px; }
  .rt-compare__table tbody tr > *:last-child, .rt-compare__table thead tr > *:last-child { padding-right: 16px; }
  .rt-compare__table tbody th::after { content: none; }
  .rt-compare__table tbody th[data-cut]::after { content: ""; }}
/* телефон: в шапке таблицы пустая клетка над колонкой параметров тоже закреплена слева — названия агентств не заезжают на неё */
@media (max-width: 700px) {
  .rt-compare__table thead td:first-child { position: sticky !important; left: 0; z-index: 3; background: var(--rt-paper); }
  .rt-compare__float thead td:first-child { position: relative !important; width: 112px; min-width: 112px; }
  /* название параметра идёт до края колонки и плавно растворяется, без пустого поля перед растворением */
  .rt-compare__table tbody th { padding-right: 2px; }}
/* шорт-лист на компьютере: название агентства — в одну строку */
@media (min-width: 701px) {
  .rt .rt-slot__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt .rt-slot__head > div { min-width: 0; }}

/* шорт-лист: название, город и «N из M под ваши условия» — в одну строку; при наведении длинный текст плавно прокручивается */
.rt-slot__name, .rt-slot__meta, .rt-slot__match { white-space: nowrap; overflow: hidden; }
.rt-slot__name[data-cut], .rt-slot__meta[data-cut], .rt-slot__match[data-cut] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent); }
.rt-marq { display: inline-block; transition: transform var(--dur, 1.5s) ease-in-out; }
.rt-slot:hover [data-cut] > .rt-marq { transform: translateX(calc(-1 * var(--shift, 0px))); transition-delay: .25s; }
.rt-slot:hover [data-cut] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
@media (min-width: 701px) { .rt .rt-slot__match { font-size: 13px; } .rt .rt-slot__meta { display: block; }}
@media (prefers-reduced-motion: reduce) { .rt-marq { transition: none; }}

/* =====================================================================
   04.10 · липкая строка, совпадения в карточке, баннер, ссылка «в вырезе»
   ===================================================================== */
/* липкая строка: шапка сайта спряталась — строка прижимается к самому верху */
html[data-header-hidden] .rt-results[data-stuck] { top: 0 !important; border-top-left-radius: 0; border-top-right-radius: 0; }
html[data-header-hidden] .rt-results[data-stuck]::before { border-top-left-radius: 0; border-top-right-radius: 0; }

@keyframes rt-sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
/* первый экран: заголовок, лид и фильтры проявляются при загрузке */
@keyframes rt-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes rt-fab-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes rt-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes rt-sheet-down { from { transform: none; } to { transform: translateY(100%); } }