/**
 * RusSa Market — визуальный уровень «кастомной» вёрстки (как у исходного HTML):
 * тёмная верхняя полоса, спокойные тени, крупные радиусы, плавные переходы.
 * Bootstrap 4 используется в основном для сетки; типовые стили BS переопределены.
 */
:root {
  /* как на russamarket.store */
  --brand: #a280d0;
  --brand-hover: #8f6bc4;
  --brand-mute: rgba(144, 104, 201, 0.14);
  --brand-bg: #f5f1fb;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --canvas: #f1f5f9;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --topbar-bg: #1e293b;
  --footer-bg: #1e293b;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

/* Контейнер как Tailwind max-w-7xl (1280px), выровнено с russamarket.store */
.rm-market .container {
  max-width: 1280px;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 576px) {
  .rm-market .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Горизонтальная полоса категорий под шапкой */
.rm-header-cats {
  border-top: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}
.rm-header-cats .rm-header-cats-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0.25rem 0;
  padding: 0.5rem 0;
  margin: 0 -4px;
  scrollbar-width: none;
}
.rm-header-cats .rm-header-cats-scroll::-webkit-scrollbar {
  display: none;
}
.rm-header-cats a {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none !important;
  white-space: nowrap;
  border-radius: 6px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.rm-header-cats a:hover {
  background: var(--brand-mute);
  color: var(--brand);
}

/* Карусель категорий под баннером: кнопки + область с min-width:0 для реального overflow-x */
.rm-home-cats-carousel {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.rm-home-cats-viewport {
  flex: 1;
  min-width: 0;
}
.rm-home-cats-nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.rm-home-cats-nav:hover:not(:disabled) {
  border-color: rgba(144, 104, 201, 0.45);
  color: var(--brand);
  background: var(--brand-bg);
}
.rm-home-cats-nav:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(144, 104, 201, 0.25);
}
.rm-home-cats-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 575.98px) {
  .rm-home-cats-nav {
    width: 32px;
    height: 32px;
  }
}

.rm-home-cat-item {
  display: flex;
  flex: 0 0 auto;
  align-self: stretch;
  width: 6.25rem;
  scroll-snap-align: start;
}
@media (min-width:576px) {
  .rm-home-cat-item {
    width: 9rem;
  }
}
.rm-home-cats-track.rm-scroll-track {
  align-items: stretch;
}
.rm-home-cats-track .rm-category-tile--strip {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  padding: 0.65rem 0.35rem !important;
  transform: none !important;
  justify-content: flex-start !important;
}
.rm-category-tile--strip:hover {
  transform: translateY(-2px) !important;
}
.rm-home-cats-track .rm-category-icon-wrap {
  width: 52px !important;
  height: 52px !important;
  margin-bottom: 0.45rem !important;
}
.rm-home-cats-track .rm-home-cat-name {
  font-size: 0.75rem !important;
  line-height: 1.25;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.rm-home-cats-track .rm-category-tile--strip .text-muted {
  font-size: 0.6875rem !important;
  padding-top: 0.25rem;
}

/* ——— Верхняя полоса (как в «дорогом» макете) ——— */
.rm-topbar {
  background: var(--topbar-bg) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.rm-topbar a {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 6px;
  padding: 2px 4px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.rm-topbar a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

/* ——— Шапка ——— */
header.rm-site-header {
  background: var(--paper) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
}
header.rm-site-header.sticky-top {
  z-index: 1020;
}
header.rm-site-header.shadow-sm {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
}

.rm-header-main .container {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

@media (min-width: 768px) {
  .rm-header-main .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.rm-logo-badge {
  width: 44px;
  height: 44px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  border-radius: var(--radius-sm) !important;
  background: linear-gradient(145deg, var(--brand), #7d54c4) !important;
  box-shadow: 0 4px 14px rgba(144, 104, 201, 0.35);
}

.rm-brand-name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  color: var(--ink) !important;
}

/* Каталог */
.btn-brand {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm) !important;
  padding: 0.45rem 0.85rem;
  box-shadow: 0 2px 8px rgba(144, 104, 201, 0.28);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-hover) !important;
  border-color: var(--brand-hover) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(144, 104, 201, 0.35);
}
.btn-brand:active {
  transform: translateY(1px);
}
.btn-brand.dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.15em;
}

.bg-brand {
  background: var(--brand) !important;
}
.text-brand {
  color: var(--brand) !important;
}

/* Поиск: «капсула» */
.rm-search-group {
  background: var(--paper);
  border-radius: var(--radius-pill) !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rm-search-group:focus-within {
  border-color: rgba(144, 104, 201, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(144, 104, 201, 0.15);
}
.rm-search-group .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.rm-search-group .form-control::placeholder {
  color: var(--muted);
}
.rm-search-group .form-control:focus {
  outline: none;
}
.rm-search-group .input-group-append .btn {
  border: none !important;
  background: var(--ink) !important;
  color: #fff !important;
  padding: 0 0.9rem;
  border-radius: 0 !important;
  transition: background 0.2s var(--ease);
}
.rm-search-group .input-group-append .btn:hover {
  background: #334155 !important;
  color: #fff !important;
}

.form-control:not(.rm-search-group .form-control),
.custom-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--ink);
}
.form-control:focus,
.custom-select:focus {
  border-color: rgba(144, 104, 201, 0.5);
  box-shadow: 0 0 0 3px rgba(144, 104, 201, 0.12);
}

.rm-city-pill {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--line) !important;
  background: var(--paper) !important;
  color: var(--ink-soft);
  min-height: 2.25rem;
}

header .text-dark.small {
  color: var(--ink-soft) !important;
  font-weight: 500;
}

/* Мега-меню: ширина задаётся JS по .rm-header-main > .container; solo = только колонка родителей */
.dropdown-menu.catalog-mega {
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-hover) !important;
  margin-top: 0.45rem !important;
  padding: 0 !important;
  overflow: hidden;
  overflow-x: hidden;
  box-sizing: border-box;
  min-width: 0;
  max-height: 72vh;
  z-index: 1030 !important;
}
.dropdown-menu.catalog-mega.catalog-mega--split {
  min-width: 0 !important;
  max-width: none !important;
}
.dropdown-menu.catalog-mega.catalog-mega--solo {
  min-width: 0 !important;
  max-width: none !important;
}
.dropdown-menu.catalog-mega.catalog-mega--split.show {
  display: flex !important;
}
.dropdown-menu.catalog-mega.catalog-mega--solo.show {
  display: block !important;
}
.catalog-mega--solo .catalog-children {
  display: none !important;
}
.rm-cat-icon-wrap .rm-cat-icon,
.rm-category-icon-wrap .rm-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-cat-icon-wrap .rm-cat-icon svg,
.rm-category-icon-wrap .rm-cat-icon svg {
  width: 20px;
  height: 20px;
}
.parent-item__chevron {
  opacity: 0.65;
}

.catalog-mega--solo .catalog-parents {
  width: 100%;
  max-width: 380px;
  border-right: none;
}

.catalog-parents {
  width: 380px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  background: #fafafc;
  max-height: min(70vh, calc(100vh - 7rem));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.catalog-parents .parent-item {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: var(--ink-soft);
  text-decoration: none !important;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
  border: none;
  width: 100%;
  text-align: left;
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
}
.catalog-parents .parent-item:hover,
.catalog-parents .parent-item.active {
  background: var(--paper);
  color: var(--ink);
}
.catalog-parents .parent-item.active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.catalog-mega--split .catalog-children {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  max-height: min(70vh, calc(100vh - 7rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.catalog-children {
  flex: 1;
  padding: 1rem 1.1rem;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 200px;
  background: var(--paper);
}
.catalog-children-panel {
  display: none;
}
.catalog-children-panel.active {
  display: block;
}
.catalog-children-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  .catalog-children-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .catalog-children-grid {
    grid-template-columns: 1fr;
  }
}
.catalog-children-grid a {
  display: block;
  padding: 0.42rem 0.35rem;
  margin: 0 -0.35rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none !important;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.catalog-children-grid a:hover {
  color: var(--brand);
  background: var(--brand-mute);
}
.catalog-children-grid .child-count {
  font-size: 0.75rem;
  color: var(--muted);
}

.rm-upload-thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.rm-want-deal-list label {
  font-weight: 500;
}

.parent-item .rounded.flex-shrink-0 {
  border-radius: 10px !important;
}

/* Горизонтальные ленты */
.rm-scroll-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.125rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0 0.6rem;
  margin: 0 -2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.rm-scroll-track::-webkit-scrollbar {
  display: none;
}
.rm-scroll-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Категории под баннером приложения: один ряд + горизонтальная прокрутка */
.rm-scroll-track.rm-home-cats-track {
  gap: 0.75rem;
  scroll-padding-inline: 4px;
  padding: 0.15rem 0 0.35rem;
}
.rm-scroll-track.rm-home-cats-track:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(144, 104, 201, 0.35);
  border-radius: 8px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Карточки объявлений */
.card.rm-card {
  background: var(--paper);
  border-radius: var(--radius) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
a.card.rm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(144, 104, 201, 0.55) !important;
}
.card.rm-card .card-img-top {
  border-radius: 0 !important;
}
.card.rm-card .card-body {
  padding: 0.75rem 0.85rem !important;
}
.card.rm-card .card-text {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  min-height: 37px;
}
.card.rm-card .text-brand,
.card.rm-card .font-weight-bold.text-brand {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* Плитки категорий */
.rm-category-tile {
  border-radius: var(--radius) !important;
  background: var(--paper);
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-card);
  padding: 1.35rem 1rem !important;
  min-height: 9rem;
  justify-content: center !important;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.rm-category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(144, 104, 201, 0.45) !important;
}
.rm-category-icon-wrap {
  width: 64px !important;
  height: 64px !important;
  border-radius: var(--radius-sm) !important;
  background: var(--brand-bg) !important;
  color: var(--brand) !important;
  margin-bottom: 0.85rem !important;
}
.rm-category-tile .font-weight-bold {
font-size: 0.9375rem !important;
    font-weight: 400 !important;
    letter-spacing: -0.02em;
    color: var(--ink) !important;
    line-height: 1.1;
}
.rm-category-tile .text-muted {
  font-size: 0.75rem !important;
  color: var(--muted) !important;
  font-weight: 500;
}

/* Секции главной */
.rm-section {
  padding: 2.5rem 0;
}
@media (min-width: 768px) {
  .rm-section {
    padding: 3rem 0;
  }
}
.rm-section--paper {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.rm-section--canvas {
  background: var(--canvas);
}
/* Заголовок блока: в разметке используйте .row.rm-section-head (как flex между колонками в Tailwind) */
.rm-section-head {
  margin-bottom: 1.25rem;
}
.rm-section-head .rm-section-title {
  margin-bottom: 0;
}
.rm-section-title {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--ink);
}
.rm-section-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand) !important;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.rm-section-more:hover {
  border-bottom-color: var(--brand);
  color: var(--brand-hover) !important;
}

/* Баннер приложения (верх) */
.rm-hero-app {
  background: linear-gradient(125deg, #8f6bd4 0%, #6d48c4 48%, #5b3dad 100%);
  position: relative;
  overflow: hidden;
}
.rm-hero-app::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 70% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.rm-hero-app .container {
  position: relative;
  z-index: 1;
}
.rm-hero-app .rm-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.rm-hero-app h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.rm-hero-app .btn-light {
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
  border: none !important;
  box-shadow: var(--shadow-sm);
  padding: 0.45rem 1rem;
}
.rm-hero-app .btn-light:hover {
  background: #f8fafc !important;
}

/* Нижний CTA приложения */
.rm-app-footer-banner {
  background: linear-gradient(125deg, #7d56c9 0%, #6340b0 50%, #50329a 100%);
  position: relative;
}
.rm-app-footer-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 0% 100%, rgba(255, 255, 255, 0.12), transparent 50%);
  pointer-events: none;
}
.rm-app-footer-banner .container {
  position: relative;
  z-index: 1;
}
.rm-app-footer-banner h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.rm-app-footer-banner .btn-light {
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
  border: none !important;
}

/* Кнопки outline */
.btn-outline-primary {
  border: 2px solid var(--brand) !important;
  color: var(--brand) !important;
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
  letter-spacing: -0.01em;
  padding: 0.5rem 1.35rem;
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-outline-primary:hover {
  background: var(--brand-bg) !important;
  color: var(--brand-hover) !important;
  border-color: var(--brand-hover) !important;
}

/* Иконки категорий в шапке */
.category-icon {
  width: 20px;
  height: 20px;
}
.category-icon.icon-28 {
  width: 28px;
  height: 28px;
}

.gap-2 {
  gap: 0.5rem;
}
.min-w-0 {
  min-width: 0;
}

/* Подвал */
footer.rm-site-footer {
  background: var(--footer-bg) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}
footer.rm-site-footer h6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  font-size: 0.8125rem !important;
  text-transform: uppercase;
  opacity: 0.95;
}
footer.rm-site-footer a.text-secondary {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  transition: color 0.2s var(--ease);
}
footer.rm-site-footer a.text-secondary:hover {
  color: #fff !important;
}
footer.rm-site-footer .border-secondary {
  border-color: rgba(255, 255, 255, 0.1) !important;
}
footer.rm-site-footer .text-muted {
  color: rgba(255, 255, 255, 0.45) !important;
}

@media (max-width: 575.98px) {
  .catalog-mega {
    min-width: calc(100vw - 1.25rem);
    max-width: calc(100vw - 1.25rem);
    flex-direction: column;
    max-height: 88vh;
  }
  .catalog-parents {
    width: 100%;
    max-height: 42vh;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .catalog-children {
    min-height: 140px;
  }
  .catalog-children-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.t_p {
    padding-top: 10px;
    padding-bottom: 10px;
}

.rm-product-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.rm-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s ease;
}

.rm-product-img.active {
    opacity: 1;
}
.rm-slider-dots {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 5;
}

.rm-slider-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.2s;
}

.rm-slider-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
}
.font-weight_city {
    font-size: 12px;
}

.rm-header-tools {
    gap: 0.5rem;
}
.rm-search-group {
    position: relative;
}
.rm-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1055;
    margin-top: 4px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    max-height: 320px;
    overflow-y: auto;
}
.rm-search-panel.is-open {
    display: block !important;
}
.rm-search-item {
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}
.rm-search-item:last-child {
    border-bottom: 0;
}
.rm-search-item:hover {
    background: var(--brand-bg);
    color: var(--ink);
}

/* Компактный выбор города: первые 10 + поиск по списку */
.rm-city-wrap {
    width: 11rem;
    max-width: 38vw;
}
.rm-city-trigger {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--paper) !important;
    color: var(--ink-soft) !important;
    font-size: 0.8125rem !important;
    padding: 0.28rem 0.55rem !important;
    line-height: 1.3 !important;
    text-align: left;
    width: 100%;
}
.rm-city-trigger:focus {
    box-shadow: 0 0 0 3px var(--brand-mute) !important;
    border-color: var(--brand) !important;
}
.rm-city-dropdown .dropdown-menu {
    z-index: 1070;
}
.rm-city-menu {
    min-width: 260px;
    max-width: min(92vw, 320px);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.rm-city-list {
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.rm-city-item {
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    border: 0;
    width: 100%;
    text-align: left;
    background: transparent;
}
.rm-city-item:hover {
    background: var(--brand-bg);
}
.rm-city-item.active {
    background: var(--brand-mute);
    color: var(--brand);
    font-weight: 600;
}
.rm-city-search {
    border-radius: var(--radius-sm) !important;
}

.rm-cat-chips .btn {
    border-radius: var(--radius-pill);
}
.rm-cat-filters .form-control {
    border-radius: var(--radius-sm);
}
.rm-cat-filters--sticky {
    top: 5.5rem;
    z-index: 9 !important;
}

/* Модалка входа / регистрации */
.rm-auth-modal {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
}
.rm-auth-modal__hero {
    padding: 1.35rem 1.5rem 1rem;
    background: linear-gradient(145deg, var(--brand-bg) 0%, #fff 55%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
}
.rm-auth-modal__badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}
.rm-auth-modal__brand {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
}
.rm-auth-modal__lead {
    color: var(--ink-soft);
    max-width: 100%;
}
.rm-auth-close {
    opacity: 0.45;
    text-shadow: none;
}
.rm-auth-close:hover {
    opacity: 0.85;
}
.rm-auth-modal__tabs {
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
}
.rm-auth-pills .nav-link {
    border-radius: var(--radius-pill);
    margin: 0 0.25rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-soft);
    border: 1px solid transparent;
}
.rm-auth-pills .nav-link:hover {
    color: var(--brand);
    background: rgba(162, 128, 208, 0.08);
}
.rm-auth-pills .nav-link.active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}
.rm-auth-modal__body {
    background: var(--paper);
}
.rm-auth-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 0.35rem;
}
.rm-auth-input {
    border-radius: var(--radius-sm) !important;
    border-color: var(--line) !important;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
}
.rm-auth-input:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px var(--brand-mute) !important;
}
.rm-auth-form .form-group {
    margin-bottom: 1rem;
}

/* Страница товара */
.rm-breadcrumb a {
    color: var(--brand);
}
.rm-product-detail__main {
    border-radius: var(--radius);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rm-product-detail__main-img {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
}
.rm-product-detail__thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.rm-product-detail__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rm-product-detail__thumb.is-active,
.rm-product-detail__thumb:hover {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-mute);
}
.rm-product-detail__price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.03em;
}
.rm-product-detail__rub {
    font-weight: 700;
    font-size: 1.25rem;
}
.rm-product-detail__meta {
    color: var(--ink-soft);
}
.rm-product-detail__meta a {
    color: var(--brand);
}
.rm-product-detail__meta-icon {
    color: var(--brand);
    margin-right: 0.5rem;
    display: inline-flex;
}
.rm-product-detail__sticky {
    position: sticky;
    top: 5.5rem;
}
.rm-product-detail__text {
    color: var(--ink-soft);
    line-height: 1.65;
}
.rm-product-detail__mini-img-wrap {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
}
@media (max-width: 991px) {
    .rm-product-detail__sticky {
        position: static;
    }
}

/* Статические страницы и контент из админки */
.rm-page {
    color: var(--ink-soft);
}
.rm-page-content {
    line-height: 1.65;
}
.rm-page-content p:last-child {
    margin-bottom: 0;
}
.rm-page-content a {
    color: var(--brand);
}
.rm-faq-page .card-header .btn-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.rm-faq-page .card-header .btn-link:not(.collapsed) svg {
    transform: rotate(180deg);
}
.rm-faq-page .card-header .btn-link svg {
    transition: transform 0.2s var(--ease);
}

/* Баннер cookie */
.rm-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    background: rgba(30, 41, 59, 0.97);
    color: #e2e8f0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.2);
}
.rm-cookie-banner .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #f8fafc;
}
.rm-cookie-banner .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}