/* Раздел ремонта, внутренние страницы: меню слева, плитки моделей, карточки услуг, страница услуги, сервисный центр */

.rx {
  --rx-accent: #5c1b7c;
  --rx-accent-dark: #47145f;
  --rx-accent-soft: rgba(92, 27, 124, .08);
  --rx-accent-soft-2: rgba(92, 27, 124, .15);
  --rx-ink: #1d1d20;
  --rx-muted: #6b6b76;
  --rx-line: #e8e6ee;
  --rx-surface: #f2f1f6;
  --rx-surface-hover: #e9e6f0;
  --rx-radius: 24px;
  --rx-radius-md: 18px;
  --rx-radius-sm: 12px;
  /* роли: главная кнопка экрана, кнопка второго плана, светлая кнопка, метка */
  --rx-main-bg: var(--rx-accent);
  --rx-main-bg-hover: var(--rx-accent-dark);
  --rx-main-ink: #fff;
  --rx-main-shadow: rgba(92, 27, 124, .25);
  --rx-second-bg: var(--rx-accent);
  --rx-second-bg-hover: var(--rx-accent-dark);
  --rx-second-ink: #fff;
  --rx-ghost-bg: var(--rx-accent-soft);
  --rx-ghost-bg-hover: var(--rx-accent-soft-2);
  --rx-ghost-ink: var(--rx-accent);
  --rx-ghost-border: transparent;
  --rx-ghost-border-hover: transparent;
  --rx-badge-bg: var(--rx-accent);
  --rx-badge-ink: #fff;
  --rx-chip-hover-bg: var(--rx-accent);
  --rx-chip-hover-ink: #fff;
  --rx-more-hover-bg: #fff;
  --rx-more-hover-ink: var(--rx-accent);
  --rx-more-hover-border: var(--rx-accent);
  color: var(--rx-ink);
}

.rx *,
.rx *::before,
.rx *::after { box-sizing: border-box; }

/* тема рисует маркеры списков через li::before: в наших списках они не нужны, в тексте раздела остаются */
.rx .rx-nav__list, .rx .rx-nav__sub, .rx .rx-tiles__grid, .rx .rx-items, .rx .rx-facts, .rx .rx-adv { margin: 0; padding: 0; list-style: none; }
.rx .rx-nav__list > li, .rx .rx-nav__sub > li, .rx .rx-tiles__grid > li, .rx .rx-items > li, .rx .rx-facts > li, .rx .rx-adv > li { margin: 0; padding: 0; }
.rx .rx-nav__list > li::before, .rx .rx-nav__sub > li::before, .rx .rx-tiles__grid > li::before, .rx .rx-items > li::before, .rx .rx-facts > li::before, .rx .rx-adv > li::before { content: none !important; display: none !important; }

.rx .rx-h2 {
  margin: 0 0 20px !important;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--rx-ink);
}

/* ── Кнопки ─────────────────────────────────────────────── */
.rx .rx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 186px;
  height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.rx .rx-btn--primary { background: var(--rx-main-bg); color: var(--rx-main-ink) !important; }
.rx .rx-btn--primary:hover { background: var(--rx-main-bg-hover); box-shadow: 0 8px 20px var(--rx-main-shadow); }
.rx .rx-btn--secondary { background: var(--rx-second-bg); color: var(--rx-second-ink) !important; }
.rx .rx-btn--secondary:hover { background: var(--rx-second-bg-hover); }
.rx .rx-btn--ghost { background: var(--rx-ghost-bg); color: var(--rx-ghost-ink) !important; box-shadow: inset 0 0 0 1px var(--rx-ghost-border); }
.rx .rx-btn--ghost:hover { background: var(--rx-ghost-bg-hover); box-shadow: inset 0 0 0 1px var(--rx-ghost-border-hover); }
.rx .rx-btn--sm { min-width: 0; height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }

/* ── Бейджи и чипы ──────────────────────────────────────── */
.rx .rx-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--rx-badge-bg);
  color: var(--rx-badge-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.rx .rx-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--rx-surface);
  color: #4a4a54 !important;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.rx a.rx-chip:hover { background: var(--rx-chip-hover-bg); color: var(--rx-chip-hover-ink) !important; }
.rx .rx-chip.is-current { background: var(--rx-accent-soft-2); color: var(--rx-accent) !important; font-weight: 600; }

/* ── Меню слева ─────────────────────────────────────────── */
.rx-nav { margin: 0 0 32px; padding-right: 8px; }

.rx .rx-nav__head {
  display: block;
  margin: 0 0 10px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rx-muted) !important;
  text-decoration: none !important;
}
.rx .rx-nav__head:hover { color: var(--rx-accent) !important; }

.rx .rx-nav__link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--rx-ink) !important;
  text-decoration: none !important;
  transition: background-color .15s ease, color .15s ease;
}
.rx .rx-nav__link:hover { background: var(--rx-surface); }
.rx .rx-nav__list > .rx-nav__item.is-open > .rx-nav__link { background: var(--rx-surface); font-weight: 600; }

.rx .rx-nav__sub { margin: 4px 0 10px 14px; padding: 0 0 0 10px; border-left: 2px solid var(--rx-line); }
.rx .rx-nav__sub .rx-nav__link { padding: 6px 10px; border-radius: 9px; font-size: 14px; font-weight: 400; color: #45454f !important; }
.rx .rx-nav__sub .rx-nav__item.is-open > .rx-nav__link:not(.is-current) { font-weight: 600; color: var(--rx-ink) !important; }
.rx .rx-nav__sub .rx-nav__link.is-current,
.rx .rx-nav__list > .rx-nav__item > .rx-nav__link.is-current { background: var(--rx-accent-soft); color: var(--rx-accent) !important; font-weight: 600; }
.rx .rx-nav__sub .rx-nav__sub { margin: 2px 0 6px 10px; }

/* ── Плитки подразделов ─────────────────────────────────── */
.rx-tiles { margin: 4px 0 48px; }

.rx .rx-tiles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rx .rx-tile__link {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  min-height: 92px;
  padding: 14px 18px;
  border-radius: var(--rx-radius-md);
  background: var(--rx-surface);
  color: var(--rx-ink) !important;
  text-decoration: none !important;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.rx .rx-tile__link:hover { background: var(--rx-surface-hover); box-shadow: 0 10px 24px rgba(29, 29, 32, .07); }

.rx-tile__pic {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rx .rx-tile__pic img {
  display: block;
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  margin: 0 !important;
  mix-blend-mode: multiply;
}
.rx-tile__pic--icon { border-radius: 14px; background: #fff; color: var(--rx-accent); }
.rx-tile__pic--icon svg { width: 28px; height: 28px; }

.rx-tile__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rx-tile__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.rx-tile__count { font-size: 13px; line-height: 1.3; color: var(--rx-muted); }

/* ── Список услуг ───────────────────────────────────────── */
.rx-list { margin: 0 0 40px; }

.rx-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
}

.rx .rx-list__title {
  margin: 0 !important;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--rx-ink);
}
.rx-list__count {
  display: inline-block;
  margin-left: 12px;
  vertical-align: 3px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--rx-surface);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--rx-muted);
}

.rx-view {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--rx-surface);
}
.rx .rx-view__btn {
  width: 38px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9a98a6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.rx .rx-view__btn svg { width: 16px; height: 16px; }
.rx .rx-view__btn:hover { color: var(--rx-ink); }
.rx .rx-view__btn.is-active { background: #fff; color: var(--rx-accent); box-shadow: 0 1px 3px rgba(29, 29, 32, .1); }

.rx .rx-items { display: grid; gap: 16px; }
.rx .rx-items--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rx .rx-items--list { grid-template-columns: minmax(0, 1fr); gap: 10px; }

/* карточка */
.rx .rx-items > .rx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 10px 16px;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius-md);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.rx .rx-card:hover { border-color: rgba(92, 27, 124, .3); box-shadow: 0 12px 28px rgba(29, 29, 32, .08); }

.rx-card__pic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--rx-surface);
}
.rx .rx-card__pic img {
  display: block;
  max-width: 86%;
  max-height: 86%;
  width: auto;
  height: auto;
  margin: 0 !important;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.rx-card__icon { color: #b7b3c4; }
.rx-card__icon svg { width: 38px; height: 38px; }

.rx .rx-badge--pic { position: absolute; top: 10px; left: 10px; z-index: 1; }
.rx .rx-badge--meta { display: none; }

.rx-card__body { min-width: 0; padding: 14px 6px 0; }

.rx .rx-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--rx-ink) !important;
  text-decoration: none !important;
}
/* вся карточка кликабельна */
.rx .rx-card__name::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--rx-radius-md);
}
.rx .rx-card:hover .rx-card__name { color: var(--rx-accent) !important; }

.rx-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--rx-muted);
}
.rx-meta { display: inline-flex; align-items: center; gap: 5px; }
.rx-meta svg { flex: 0 0 15px; width: 15px; height: 15px; color: var(--rx-accent); }

.rx-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 16px 6px 0;
}

.rx-price { font-size: 19px; font-weight: 700; line-height: 1.2; white-space: nowrap; color: var(--rx-ink); }
.rx-price--ask { font-size: 15px; font-weight: 600; color: var(--rx-muted); }
.rx-price__old { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 400; color: var(--rx-muted); text-decoration: line-through; }

.rx-card__go {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rx-accent-soft);
  color: var(--rx-accent);
  transition: background-color .18s ease, color .18s ease;
}
.rx-card__go svg { width: 16px; height: 16px; }
.rx .rx-card:hover .rx-card__go { background: var(--rx-accent); color: #fff; }

/* кнопка «Записаться» живёт над ссылкой-подложкой */
.rx .rx-card__book { display: none; position: relative; z-index: 2; }

/* вид «списком» */
.rx .rx-items--list .rx-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 22px;
  padding: 10px 18px 10px 10px;
}
.rx .rx-items--list .rx-card__pic { grid-column: 1; }
.rx .rx-items--list .rx-card__body { grid-column: 2; padding: 0; }
.rx .rx-items--list .rx-card__name { -webkit-line-clamp: 2; font-size: 16px; }
.rx .rx-items--list .rx-badge--pic { display: none; }
.rx .rx-items--list .rx-badge--meta { display: inline-flex; padding: 3px 9px; font-size: 11.5px; }
.rx .rx-items--list .rx-card__foot {
  grid-column: 3;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.rx .rx-items--list .rx-price { min-width: 104px; text-align: right; }
.rx .rx-items--list .rx-card__book { display: inline-flex; }
.rx .rx-items--list .rx-card__go { display: none; }

/* подгрузка */
.rx-more { display: flex; justify-content: center; margin-top: 24px; }
.rx .rx-more__btn {
  min-width: 280px;
  height: 50px;
  padding: 0 28px;
  border: 1px solid var(--rx-line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--rx-ink);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.rx .rx-more__btn:hover { border-color: var(--rx-more-hover-border); background: var(--rx-more-hover-bg); color: var(--rx-more-hover-ink); }
.rx .rx-more__btn.is-loading { opacity: .55; pointer-events: none; }

.rx-empty { padding: 32px 34px; border-radius: var(--rx-radius); background: var(--rx-surface); }
.rx-empty__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.rx-empty__text { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--rx-muted); }

/* соседние модели: только там, где нет левого меню */
.rx-siblings { display: none; margin: 0 0 32px; }
.rx-siblings__title { margin-bottom: 12px; font-size: 18px; font-weight: 600; }
.rx-siblings__list { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Призыв ─────────────────────────────────────────────── */
.rx-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 48px;
  padding: 30px 34px;
  border-radius: var(--rx-radius);
  background: var(--rx-surface);
}
.rx-cta__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.rx-cta__note { max-width: 620px; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--rx-muted); }
.rx-cta .rx-btn { flex: 0 0 auto; }

/* ── Тизеры ─────────────────────────────────────────────── */
.rx-tizers {
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  gap: 8px;
  margin: 0 0 48px;
}
.rx-tizer {
  flex: 1 1 0;
  max-width: 340px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.rx .rx-tizer__icon { width: 64px; height: 64px; margin: 0 0 4px !important; object-fit: contain; }
.rx-tizer__title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.rx-tizer__text { font-size: 14px; line-height: 1.45; color: var(--rx-muted); text-wrap: balance; }
.rx-tizers__sep { flex: 0 0 1px; width: 1px; height: 96px; align-self: center; background: rgba(29, 29, 32, .1); }

/* ── Текст раздела ──────────────────────────────────────── */
.rx-text { margin: 0 0 40px; }
.rx-text::after { content: ""; display: table; clear: both; }
.rx-text__intro { margin-bottom: 18px; }
.rx-text__intro::after { content: ""; display: table; clear: both; }
.rx .rx-text__pic {
  float: right;
  width: 180px;
  height: auto;
  margin: 0 0 16px 28px !important;
  padding: 12px;
  border-radius: var(--rx-radius-md);
  background: var(--rx-surface);
  mix-blend-mode: multiply;
}

/* ── Сервисный центр ────────────────────────────────────── */
.rx-center {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  overflow: hidden;
  margin: 0 0 48px;
  border-radius: var(--rx-radius);
  background: var(--rx-surface);
}
.rx-center__info { padding: 32px 34px; }
.rx .rx-center__list { margin: 0; }
.rx-center__row { margin: 0 0 18px; }
.rx .rx-center__row dt {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rx-muted);
}
.rx .rx-center__row dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--rx-ink); }
.rx .rx-center__row dd a { color: var(--rx-ink) !important; text-decoration: none !important; }
.rx .rx-center__row dd a:hover { color: var(--rx-accent) !important; }
.rx-center__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.rx .rx-center__actions .rx-btn { width: 100%; }
.rx-center__map { position: relative; min-height: 380px; background: #e7e5ee; }
.rx-center__map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

/* ── Страница услуги ────────────────────────────────────── */
.rx-svc { padding-top: 4px; }

.rx-svc__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 372px;
  gap: 40px;
  align-items: start;
  margin: 0 0 56px;
}

.rx-svc__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--rx-radius);
  background: var(--rx-surface);
}
.rx .rx-svc__media img {
  display: block;
  max-width: 84%;
  max-height: 84%;
  width: auto;
  height: auto;
  margin: 0 !important;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.rx-svc__icon { color: #b7b3c4; }
.rx-svc__icon svg { width: 64px; height: 64px; }

.rx-svc__info { padding-top: 6px; }
.rx-svc__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.rx-svc__chips .rx-badge { padding: 7px 14px; font-size: 13px; }

.rx .rx-facts { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; }
.rx .rx-facts > li { display: flex; align-items: center; gap: 14px; }
.rx-facts__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rx-surface);
  color: var(--rx-accent);
}
.rx-facts__icon svg { width: 22px; height: 22px; }
.rx-facts__label { display: block; font-size: 13px; line-height: 1.3; color: var(--rx-muted); }
.rx-facts__value { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; line-height: 1.3; }

.rx .rx-svc__note { margin: 0 0 20px !important; font-size: 15px; line-height: 1.55; color: var(--rx-muted); }

.rx .rx-svc__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rx-accent) !important;
  text-decoration: none !important;
}
.rx .rx-svc__all svg { width: 16px; height: 16px; transition: transform .15s ease; }
.rx .rx-svc__all:hover svg { transform: translateX(3px); }

.rx-pricebox {
  padding: 26px 26px 22px;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  background: #fff;
  box-shadow: 0 16px 40px rgba(29, 29, 32, .06);
}
.rx-pricebox__label { font-size: 14px; line-height: 1.3; color: var(--rx-muted); }
.rx-pricebox__old { margin-top: 6px; font-size: 15px; color: var(--rx-muted); text-decoration: line-through; }
.rx-pricebox__price { margin: 4px 0 22px; font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.rx-pricebox__price--ask { font-size: 24px; color: var(--rx-ink); }
.rx .rx-pricebox .rx-btn { width: 100%; }
.rx .rx-pricebox .rx-btn + .rx-btn { margin-top: 10px; }
.rx .rx-pricebox__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--rx-ink) !important;
  text-decoration: none !important;
}
.rx .rx-pricebox__phone svg { width: 18px; height: 18px; color: var(--rx-accent); }
.rx .rx-pricebox__phone:hover { color: var(--rx-accent) !important; }

.rx .rx-adv { display: flex; flex-direction: column; gap: 16px; margin: 22px 0 0; padding: 0 6px; }
.rx .rx-adv__item { display: flex; align-items: center; gap: 14px; }
.rx .rx-adv__icon { flex: 0 0 44px; width: 44px; height: 44px; margin: 0 !important; object-fit: contain; }
.rx-adv__title { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.rx-adv__text { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--rx-muted); }

.rx-svc__section { margin: 0 0 56px; }
.rx-svc__text { max-width: 880px; }
.rx-svc__more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rx .rx-svc__more-head .rx-h2 { margin: 0 !important; }
.rx .rx-items--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rx-svc-page__center { margin-top: 8px; }

/* ── Адаптив ────────────────────────────────────────────── */
@media (max-width: 1279px) {
  .rx .rx-items--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rx .rx-tiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rx-svc__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rx-svc__side { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .rx .rx-adv { margin-top: 6px; }
}

@media (max-width: 991px) {
  .rx-siblings { display: block; }
  .rx .rx-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-tizers { flex-direction: column; align-items: center; gap: 24px; }
  .rx-tizers__sep { display: none; }
  .rx-tizer { max-width: 460px; }
  .rx-center { grid-template-columns: minmax(0, 1fr); }
  .rx-center__map { min-height: 300px; }
}

@media (max-width: 767px) {
  .rx .rx-h2,
  .rx .rx-list__title { font-size: 21px; }
  .rx-tiles { margin-bottom: 36px; }
  .rx .rx-tiles__grid { gap: 10px; }
  .rx .rx-tile__link { gap: 10px; min-height: 72px; padding: 10px 12px; border-radius: 14px; }
  .rx-tile__pic { flex-basis: 40px; width: 40px; height: 40px; }
  .rx .rx-tile__pic img { max-height: 40px; }
  .rx-tile__pic--icon svg { width: 22px; height: 22px; }
  .rx-tile__name { font-size: 14px; }
  .rx-tile__count { font-size: 12px; }

  .rx-list__head { margin-bottom: 16px; }
  .rx-list__count { display: block; width: max-content; margin: 8px 0 0; }
  .rx .rx-items { gap: 10px; }
  .rx .rx-items--grid,
  .rx .rx-items--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx .rx-items > .rx-card { padding: 8px 8px 12px; border-radius: 14px; }
  .rx .rx-card__name::after { border-radius: 14px; }
  .rx-card__body { padding: 10px 4px 0; }
  .rx .rx-card__name { font-size: 14px; }
  .rx-card__meta { gap: 4px 10px; font-size: 12px; }
  .rx-card__foot { padding: 12px 4px 0; }
  .rx-price { font-size: 17px; }
  .rx-card__go { flex-basis: 32px; width: 32px; height: 32px; }
  .rx .rx-badge--pic { top: 6px; left: 6px; padding: 4px 8px; font-size: 11px; }

  .rx .rx-items--list .rx-card {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 10px;
    padding: 8px 10px 10px 8px;
  }
  .rx .rx-items--list .rx-card__pic { grid-row: 1; align-self: start; }
  .rx .rx-items--list .rx-card__body { grid-row: 1; }
  .rx .rx-items--list .rx-card__name { font-size: 14px; -webkit-line-clamp: 3; }
  .rx .rx-items--list .rx-card__foot { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .rx .rx-items--list .rx-price { min-width: 0; text-align: left; }

  .rx .rx-more__btn { width: 100%; min-width: 0; }

  .rx-cta { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 18px; border-radius: 18px; }
  .rx.rx-cta .rx-btn { width: 100%; }

  .rx .rx-text__pic { width: 120px; margin-left: 16px !important; padding: 8px; }

  .rx-center { border-radius: 18px; }
  .rx-center__info { padding: 24px 18px; }
  .rx .rx-center__actions .rx-btn { width: 100%; }
  .rx-center__map { min-height: 260px; }

  /* на телефоне цена и запись идут сразу после фото и ключевых фактов */
  .rx-svc__top { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
  .rx-svc__info,
  .rx-svc__side { display: contents; }
  .rx-svc__media { order: 1; aspect-ratio: 4 / 3; border-radius: 18px; }
  .rx-svc__chips { order: 2; margin: 0; }
  .rx .rx-facts { order: 3; flex-direction: row; gap: 10px; margin: 0; }
  .rx .rx-facts > li { flex: 1 1 0; min-width: 0; gap: 10px; }
  .rx-facts__icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
  .rx-facts__value { font-size: 15px; }
  .rx-pricebox { order: 4; }
  .rx .rx-svc__note { order: 5; margin: 0 !important; }
  .rx .rx-svc__all { order: 6; }
  .rx-svc__top > .rx-svc__info > .rx-svc__all { align-self: flex-start; }
  .rx-pricebox { padding: 20px 18px 18px; border-radius: 18px; }
  .rx-pricebox__price { font-size: 30px; }
  .rx .rx-adv { order: 7; margin-top: 4px; padding: 0; }

  .rx-siblings__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rx-siblings__list::-webkit-scrollbar { display: none; }
  .rx .rx-siblings__list .rx-chip { flex: 0 0 auto; }
  .rx-svc__section { margin-bottom: 40px; }
}

/* ── Палитра сайта: графит, слива, лайм ────────────────────
   Действует, когда у <html> есть класс wbx-pal (слой css/wbx-palette.css).
   Лайм только у главной кнопки экрана, графит у кнопок второго плана и текста,
   слива у активных состояний, меток и иконок. */
html.wbx-pal .rx {
  --rx-accent: var(--wbx-plum, #5c1b7c);
  --rx-accent-dark: var(--wbx-plum-hover, #4a1564);
  --rx-accent-soft: var(--wbx-plum-tint, #f3ecf7);
  --rx-accent-soft-2: #eadff2;
  --rx-ink: var(--wbx-ink, #17121c);
  --rx-muted: var(--wbx-ink-3, #6e6779);
  --rx-line: var(--wbx-line, #e6e2ec);
  --rx-surface: var(--wbx-surface, #f4f2f7);
  --rx-surface-hover: #ece8f1;
  --rx-main-bg: var(--wbx-lime, #c2e300);
  --rx-main-bg-hover: var(--wbx-lime-hover, #b3d100);
  --rx-main-ink: var(--wbx-ink, #17121c);
  --rx-main-shadow: rgba(23, 18, 28, .14);
  --rx-second-bg: var(--wbx-ink, #17121c);
  --rx-second-bg-hover: var(--wbx-plum, #5c1b7c);
  --rx-second-ink: #fff;
  --rx-ghost-bg: #fff;
  --rx-ghost-bg-hover: #fff;
  --rx-ghost-ink: var(--wbx-ink, #17121c);
  --rx-ghost-border: var(--wbx-line-2, #d9d3e1);
  --rx-ghost-border-hover: var(--wbx-ink, #17121c);
  --rx-badge-bg: var(--wbx-plum-tint, #f3ecf7);
  --rx-badge-ink: var(--wbx-plum, #5c1b7c);
  --rx-chip-hover-bg: var(--wbx-ink, #17121c);
  --rx-chip-hover-ink: #fff;
  --rx-more-hover-bg: var(--wbx-ink, #17121c);
  --rx-more-hover-ink: #fff;
  --rx-more-hover-border: var(--wbx-ink, #17121c);
}
/* метка на светлой плашке фото: чуть плотнее, чтобы не терялась на сером */
html.wbx-pal .rx .rx-badge--pic { box-shadow: 0 1px 2px rgba(23, 18, 28, .08); }
