/* ==========================================================================
   Рестобар 2026 — слой дизайна поверх шаблона Аспро «Максимум» (копия restobar).
   Подключается последним (restobar_assets.php). Ничего в aspro_max не меняет.
   Цвета: акцент #E7133F, графит #2E2E2E. Шрифт: Fira Sans (уже задан в настройках Аспро).
   ========================================================================== */

:root {
	--rb-red: #E7133F;
	--rb-red-dark: #B80F32;
	--rb-red-light: #FF6B85;
	--rb-red-pale: #FFE1E7;
	--rb-ink: #232323;
	--rb-graphite: #2E2E2E;
	--rb-graphite-2: #3A3A3A;
	--rb-graphite-border: #4A4A4A;
	--rb-bg: #F4F3EF;
	--rb-line: #E3E1DC;
	--rb-line-soft: #EFEDE8;
	--rb-muted: #5E6068;
	--rb-on-dark: #C9CBD1;
	--rb-on-dark-2: #9EA1A9;
	--rb-radius: 12px;

	/* Штатная переменная Аспро: основной цвет кнопок, ссылок, акцентов */
	--theme-base-color: #E7133F;
	--theme-base-opacity-color: #E7133F1a;
	--theme-base-color-lightness: 49%;
}

/* ---------- Общие элементы ---------- */
.rb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 18px; border: 0; border-radius: 11px;
	background: var(--rb-red); color: #fff !important;
	font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer;
	transition: background .15s ease;
}
.rb-btn:hover { background: var(--rb-red-dark); color: #fff !important; }
.rb-btn--sm { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 800; }

.rb-contact { display: flex; flex-direction: column; line-height: 1.2; color: var(--rb-ink); text-decoration: none; }
.rb-contact:hover { color: var(--rb-red); }
.rb-contact__value { font-size: 14px; font-weight: 800; white-space: nowrap; }
.rb-contact__label { font-size: 11px; color: var(--rb-muted); white-space: nowrap; }
.rb-contact--email .rb-contact__value { font-weight: 700; }

/* ==========================================================================
   ШАПКА — ДЕСКТОП
   ========================================================================== */
#header .rb-header { background: #fff; }
.rb-header .rb-top { background: #fff; }
.rb-header .rb-top__inner { display: flex; align-items: center; gap: 22px; padding-top: 8px; padding-bottom: 8px; min-height: 56px; }
.rb-header .rb-top__logo { flex-shrink: 0; width: auto !important; }
.rb-header .rb-top__logo img { max-height: 44px; width: auto; }
.rb-header .rb-top__city { flex-shrink: 0; font-size: 13px; font-weight: 700; }
.rb-header .rb-top__city a { color: var(--rb-ink); border-bottom: 1px dashed currentColor; }
.rb-header .rb-top__contacts { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.rb-header .callback-block.rb-btn { flex-shrink: 0; }
.rb-header .rb-top__social { display: flex; align-items: center; gap: 2px; margin-left: -10px; flex-shrink: 0; }
.rb-social { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--rb-ink); }
.rb-social:hover { background: #F1EFEA; color: var(--rb-red); }
.rb-social img { width: 22px; height: 22px; border-radius: 7px; }

/* Строка информационного меню */
.rb-header .rb-info { border-top: 1px solid var(--rb-line-soft); background: #fff; }
.rb-header .rb-info__inner { display: flex; align-items: center; gap: 24px; min-height: 48px; }
.rb-header .rb-info__menu { flex: 1 1 auto; min-width: 0; }
.rb-header .rb-info__menu .mega-menu table td .wrap > a,
.rb-header .rb-info__menu .mega-menu .menu-item > a,
.rb-header .rb-info__menu .mega-menu a.dropdown-toggle {
	font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--rb-ink);
}
.rb-header .rb-info__menu .mega-menu a:hover { color: var(--rb-red); }
.rb-header .rb-info__cabinet { flex-shrink: 0; }
.rb-header .rb-info__cabinet a, .rb-header .rb-info__cabinet .title { color: var(--rb-red) !important; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }

/* Тёмная строка: каталог, тип предприятия, бренды, поиск, корзина */
#header .rb-header .rb-catbar,
#header .rb-header .rb-catbar.menu-row { background: var(--rb-graphite) !important; border: 0; }
.rb-header .rb-catbar__inner { display: flex; align-items: center; gap: 12px 14px; padding: 14px 0; flex-wrap: nowrap; }
.rb-header .rb-catbar__catalog { flex-shrink: 0; }
.rb-header .rb-catbar__catalog .mega-menu table td > .wrap > a,
.rb-header .rb-catbar__catalog .mega-menu .menu-item > .wrap > a,
.rb-header .rb-catbar__catalog .mega-menu > ul > li > a {
	display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px !important;
	border-radius: var(--rb-radius); background: var(--rb-red) !important; color: #fff !important;
	font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.rb-header .rb-catbar__catalog .mega-menu a:hover { background: var(--rb-red-dark) !important; }
.rb-header .rb-catbar__search { flex: 1 1 320px; min-width: 0; }
.rb-header .rb-catbar__search .inner-table-block { width: 100%; padding: 0; }
.rb-header .rb-catbar__search input[type="text"],
.rb-header .rb-catbar__search input[type="search"] {
	height: 52px !important; border-radius: var(--rb-radius) !important; border: 0 !important;
	background: #fff !important; font-size: 15px; padding-left: 18px !important;
}
.rb-header .rb-catbar__search button[type="submit"],
.rb-header .rb-catbar__search .search-button-div button {
	height: 52px !important; border-radius: 0 var(--rb-radius) var(--rb-radius) 0 !important;
	background: var(--rb-red) !important; color: #fff !important;
}
.rb-header .rb-catbar__search button svg, .rb-header .rb-catbar__search button path { fill: #fff !important; }
.rb-header .rb-catbar__user { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.rb-header .rb-catbar__user .basket-link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 52px; height: 52px; padding: 0 14px; border: 1px solid var(--rb-graphite-border); border-radius: var(--rb-radius);
	color: #fff !important;
}
.rb-header .rb-catbar__user .basket-link:hover { background: var(--rb-graphite-2); }
.rb-header .rb-catbar__user .basket-link.basket { background: var(--rb-red); border-color: var(--rb-red); }
.rb-header .rb-catbar__user .basket-link.basket:hover { background: var(--rb-red-dark); border-color: var(--rb-red-dark); }
.rb-header .rb-catbar__user .basket-link svg path, .rb-header .rb-catbar__user .basket-link svg use { fill: #fff; }
.rb-header .rb-catbar__user .basket-link .title, .rb-header .rb-catbar__user .basket-link .count { color: #fff !important; }

/* Фиксированная шапка при прокрутке */
#headerfixed { box-shadow: 0 8px 24px rgba(35, 35, 35, .08); }

/* ==========================================================================
   ШАПКА — МОБИЛЬНАЯ (<992px, #mobileheader)
   ========================================================================== */
#mobileheader .rb-mheader { background: #fff; padding: 8px 16px 12px; border-bottom: 1px solid var(--rb-line); }
#mobileheader .rb-mheader__row { display: flex; align-items: center; gap: 4px; }
#mobileheader .rb-mheader__burger { float: none !important; width: 44px; height: 44px; margin-left: -10px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
#mobileheader .rb-mheader__logo { margin-right: auto; display: flex; align-items: center; }
#mobileheader .rb-mheader__logo img { max-height: 34px; width: auto; }
.rb-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--rb-ink); border-radius: 10px; }
.rb-icon-btn:hover { color: var(--rb-red); background: #F1EFEA; }
#mobileheader .rb-mheader__row .rb-icon-btn:last-of-type { margin-right: -10px; }
#mobileheader .rb-mheader__aspro-icons { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#mobileheader .rb-mheader__line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: 12px; }
#mobileheader .rb-mheader__city { font-weight: 700; }
#mobileheader .rb-contact--right { align-items: flex-end; }
#mobileheader .rb-msearch {
	width: 100%; height: 46px; margin-top: 8px; padding: 0 14px; border: 0; border-radius: var(--rb-radius);
	background: #F1EFEA; color: var(--rb-muted); display: flex; align-items: center; gap: 10px;
	font-size: 15px; text-align: left; line-height: 1;
}
#mobileheader .rb-mheader__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.rb-mbtn {
	height: 44px; border-radius: 11px; background: var(--rb-graphite); color: #fff !important;
	display: flex; align-items: center; justify-content: center; gap: 6px;
	font-size: 13px; font-weight: 700; line-height: 1.1; text-align: center; cursor: pointer; text-decoration: none;
}
.rb-mbtn:hover { background: var(--rb-graphite-2); }
.rb-mbtn--accent, .button_catalog_my.rb-mbtn { background: var(--rb-red); font-weight: 800; }
.rb-mbtn--accent:hover { background: var(--rb-red-dark); }
.rb-mbtn svg { flex-shrink: 0; }

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */
#footer .rb-footer .footer-inner { background: var(--rb-ink); color: var(--rb-on-dark); }
#footer .rb-footer .footer_top { padding: 64px 0 40px; }
.rb-footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.rb-footer__about { flex: 1 1 240px; min-width: 0; }
.rb-footer__logo img { width: 200px; height: auto; }
.rb-footer__desc { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--rb-on-dark); max-width: 300px; }
.rb-footer__sitemap { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--rb-on-dark) !important; }
.rb-footer__sitemap:hover { color: #fff !important; }
.rb-footer__rating { margin-top: 18px; }
.rb-footer__col { flex: 1 1 200px; min-width: 0; }
.rb-footer__col--catalog { flex: 2 1 380px; }
.rb-footer__col--catalog .first_bottom_menu ul ul,
.rb-footer__col--catalog .first_bottom_menu .items { columns: 2; column-gap: 32px; }
.rb-footer__col a { color: var(--rb-on-dark) !important; }
.rb-footer__col a:hover { color: #fff !important; }
.rb-footer__col .bottom-menu .items > .item-link .title,
.rb-footer__col .bottom-menu > .items > .item-link:first-child .title,
.rb-footer__col .title { color: #fff; }
.rb-footer__contacts { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.rb-footer__title { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.rb-footer__phones a { color: #fff !important; font-size: 20px; font-weight: 800; }
.rb-footer__contacts .email a, .rb-footer__contacts .address { color: var(--rb-on-dark) !important; }
.rb-footer__callback { margin: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
#footer .rb-footer .footer_bottom { border-top: 1px solid var(--rb-graphite-2); background: var(--rb-ink); }
#footer .rb-footer .footer_bottom .copy { color: var(--rb-on-dark-2); }

/* ==========================================================================
   ПОДВАЛ — мобильная версия
   ========================================================================== */
@media (max-width: 991px) {
	.rb-footer__cols { flex-direction: column; gap: 0; }
	.rb-footer__about, .rb-footer__col, .rb-footer__contacts { flex: none; width: 100%; padding: 18px 0; border-top: 1px solid var(--rb-graphite-2); }
	.rb-footer__about { border-top: 0; padding-top: 0; }
	.rb-footer__col--catalog .first_bottom_menu ul ul,
	.rb-footer__col--catalog .first_bottom_menu .items { columns: 1; }
	#footer .rb-footer .footer_top { padding: 32px 0 16px; }
	.rb-footer__callback { width: 100%; height: 48px; }
}

/* ---------- Доработка 1: компактная строка меню, кнопки «Тип/Бренды», иконки пользователя ---------- */
.rb-header .rb-info__inner { padding-top: 0 !important; padding-bottom: 0 !important; min-height: 48px; }
.rb-header .rb-info__menu .table-menu table { width: auto !important; }
.rb-header .rb-info__menu .table-menu td.menu-item { padding: 0 28px 0 0 !important; }
.rb-header .rb-info__menu .table-menu td .wrap > a { padding: 13px 0 !important; line-height: 22px !important; }
.rb-header .rb-info__menu .table-menu td .wrap > a,
.rb-header .rb-info__menu .table-menu td .wrap > a span { font-size: 14px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .03em; color: var(--rb-ink); }
.rb-header .rb-info__menu .table-menu td .wrap > a .skidka { color: var(--rb-red) !important; }
.rb-header .rb-info__menu .table-menu td .wrap > a:hover span { color: var(--rb-red) !important; }
.rb-header .rb-info__cabinet .wrap_icon { padding: 0 !important; }

/* «Тип предприятия» / «Бренды» в тёмной строке */
.rb-header .ob-hmenus { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rb-header .ob-hmenu__btn {
	flex-direction: row !important; align-items: center; gap: 8px;
	height: 52px !important; padding: 0 16px !important;
	border: 1px solid var(--rb-graphite-border); border-radius: var(--rb-radius);
	color: #fff !important; font-size: 14px !important; font-weight: 700; line-height: 1 !important; white-space: nowrap;
}
.rb-header .ob-hmenu__btn:hover, .rb-header .ob-hmenu.is-open .ob-hmenu__btn { background: #fff; border-color: #fff; color: var(--rb-ink) !important; }
.rb-header .ob-hmenu__btn-icon { width: 20px; height: 20px; color: var(--rb-red-light); }
.rb-header .ob-hmenu__btn:hover .ob-hmenu__btn-icon, .rb-header .ob-hmenu.is-open .ob-hmenu__btn-icon { color: var(--rb-red); }
.rb-header .ob-hmenu__btn-text { font-size: 14px !important; }
.rb-header .ob-hmenu__arrow { position: static !important; margin: 0 !important; }

/* Сравнение / избранное / корзина */
.rb-header .rb-catbar__user .wrap_icon { padding: 0 !important; margin: 0 !important; }
.rb-header .rb-catbar__user .basket-link { background: transparent !important; }
.rb-header .rb-catbar__user .basket-link .js-basket-block { display: inline-flex; align-items: center; gap: 8px; position: static; }
.rb-header .rb-catbar__user .basket-link .title { display: none; }
.rb-header .rb-catbar__user .basket-link .count {
	position: static !important; display: inline !important; min-width: 0; height: auto; padding: 0 !important; margin: 0 !important;
	background: none !important; border: 0 !important; box-shadow: none !important;
	color: #fff !important; font-size: 14px !important; font-weight: 700; line-height: 1 !important;
}
.rb-header .rb-catbar__user .basket-link i.svg svg { width: 22px; height: 22px; }
.rb-header .rb-catbar__user .basket-link i.svg svg *, .rb-header .rb-catbar__user .basket-link i.svg path { fill: #fff !important; }
.rb-header .rb-catbar__user .basket-link.basket { background: var(--rb-red) !important; border-color: var(--rb-red); padding: 0 18px; }
.rb-header .rb-catbar__user .basket-link.basket:hover { background: var(--rb-red-dark) !important; border-color: var(--rb-red-dark); }
.rb-header .rb-catbar__user .basket-link.basket .title { display: inline; color: #fff !important; font-size: 14px; font-weight: 800; }
.rb-header .rb-catbar__user .basket-link.basket .title::after { content: " ·"; }

/* ---------- Доработка 2 ---------- */
.rb-header .rb-info__menu .table-menu table,
.rb-header .rb-info__menu .table-menu tr,
.rb-header .rb-info__menu .table-menu td,
.rb-header .rb-info__menu .table-menu td .wrap,
.rb-header .rb-info__menu .table-menu td .wrap > a { height: auto !important; }
.rb-header .rb-catbar__user .wrap_icon { background: transparent !important; }
.rb-header .rb-catbar__user .basket-link { display: inline-flex !important; align-items: center; }
.rb-header .rb-catbar__user .basket-link .js-basket-block { padding: 0 !important; }

/* ---------- Доработка 3: мобильная шапка и штатная нижняя панель Аспро ---------- */
#mobileheader .mobileheader-v1.rb-mheader { height: auto !important; min-height: 0 !important; }
#mobileheader .rb-mheader__logo { width: auto !important; height: auto !important; padding: 0 !important; }
#mobileheader .rb-mheader__logo a { display: flex; align-items: center; }
#mobileheader .rb-mheader__logo img { max-height: 30px !important; width: auto !important; }
#mobileheader .rb-mheader__burger { border: 0 !important; border-radius: 10px !important; background: none !important; }
#mobileheader .rb-mheader__burger svg { width: 22px; height: 22px; }

.bottom-icons-panel { border-top: 1px solid var(--rb-line); box-shadow: 0 -8px 24px rgba(35, 35, 35, .06); }
.bottom-icons-panel a, .bottom-icons-panel .bottom-icons-panel__content-link { color: #45474E; }
.bottom-icons-panel .bottom-icons-panel__content-link--active,
.bottom-icons-panel .bottom-icons-panel__content-link:hover { color: var(--rb-red) !important; }
.bottom-icons-panel .bottom-icons-panel__content-link--active svg path,
.bottom-icons-panel .bottom-icons-panel__content-link:hover svg path { fill: var(--rb-red); }
.bottom-icons-panel .count { background: var(--rb-red) !important; color: #fff !important; }
#mobileheader { height: auto !important; }

/* ---------- Доработка 4: подвал по макету ---------- */
.rb-footer .footer_top .bottom-menu,
.rb-footer .footer_top .bottom-menu *,
.rb-footer__contacts, .rb-footer__contacts * { text-align: left !important; }
.rb-footer .bottom-menu .items { padding: 0 !important; margin: 0 !important; }
.rb-footer .bottom-menu .items > .item { margin: 0 !important; padding: 0 !important; }
.rb-footer .bottom-menu .items > .item > .title { margin: 0 0 16px !important; padding: 0 !important; }
.rb-footer .bottom-menu .items > .item > .title a,
.rb-footer .bottom-menu .items > .item > .title span {
	color: #fff !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3 !important;
}
.rb-footer .bottom-menu .wrap > .item { padding: 0 !important; margin: 0 !important; break-inside: avoid; }
.rb-footer .bottom-menu .wrap > .item .title { margin: 0 !important; padding: 4px 0 !important; }
.rb-footer .bottom-menu .wrap > .item .title a {
	color: var(--rb-on-dark) !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.45 !important;
	text-transform: none !important; letter-spacing: 0 !important;
}
.rb-footer .bottom-menu .wrap > .item .title a:hover { color: #fff !important; }
.rb-footer .bottom-menu .wrap > .item.selected .title a { color: #fff !important; }
.rb-footer__col--catalog .bottom-menu .wrap { column-count: 2; column-gap: 32px; }
.rb-footer__col--catalog .bottom-menu .wrap > .item:last-child .title a { color: var(--rb-red-light) !important; font-weight: 700 !important; }
.rb-footer .footer_top .row, .rb-footer .bottom-menu .row { margin: 0 !important; }

.rb-footer__contacts { gap: 12px; }
.rb-footer__phones { margin: 0 !important; padding: 0 !important; }
.rb-footer__phones .phone, .rb-footer__phones .phone .wrap { padding: 0 !important; margin: 0 !important; }
.rb-footer__phones a { font-size: 22px !important; line-height: 1.2 !important; font-weight: 800 !important; }
.rb-footer__phones i.svg { display: none !important; }
.rb-footer__contacts .email, .rb-footer__contacts .address {
	display: flex !important; align-items: flex-start; gap: 8px; margin: 0 !important; padding: 0 !important;
	font-size: 14px !important; line-height: 1.5 !important; color: var(--rb-on-dark) !important;
}
.rb-footer__contacts .email a { color: #fff !important; font-weight: 600; }
.rb-footer__contacts .email i, .rb-footer__contacts .address i { flex-shrink: 0; margin: 3px 0 0 !important; position: static !important; }
.rb-footer__contacts .email svg path, .rb-footer__contacts .address svg path { fill: var(--rb-red-light) !important; }
.rb-footer__contacts .social-block { margin: 4px 0 0 !important; }
.rb-footer__contacts .social-icons ul { display: flex; gap: 8px; margin: 0; padding: 0; }
.rb-footer__contacts .social-icons li { margin: 0 !important; float: none !important; }
.rb-footer__contacts .social-icons li a {
	width: 44px !important; height: 44px !important; border-radius: 12px !important;
	border: 1px solid var(--rb-graphite-border); background-color: transparent !important;
}
.rb-footer__contacts .social-icons li a:hover { background-color: var(--rb-graphite-2) !important; }
.rb-footer__contacts .pays { margin: 6px 0 0 !important; opacity: .7; }

#footer .rb-footer .footer_bottom { padding: 22px 0 28px; }
#footer .rb-footer .footer_bottom .copy, #footer .rb-footer .footer_bottom .copy * {
	text-align: left !important; font-size: 12px !important; line-height: 1.6 !important; color: var(--rb-on-dark-2) !important;
}
#footer .rb-footer .footer_bottom .footer-bottom__items-wrapper { display: block; }

@media (min-width: 992px) {
	.rb-footer .bottom-menu .compact_arrow { display: none !important; }
	.rb-footer .bottom-menu .wrap_compact_mobile { display: block !important; height: auto !important; }
}
@media (max-width: 991px) {
	.rb-footer__col--catalog .bottom-menu .wrap { column-count: 1; }
	.rb-footer .bottom-menu .items > .item > .title { margin-bottom: 8px !important; }
}

/* ---------- Доработка 5: сетка подвала ---------- */
@media (min-width: 992px) {
	.rb-footer__cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2.3fr) minmax(0, 1.1fr) minmax(0, 1.35fr); gap: 48px; }
	.rb-footer__about, .rb-footer__col, .rb-footer__col--catalog, .rb-footer__contacts { flex: none; width: auto; }
}
.rb-footer__col--catalog .first_bottom_menu ul ul,
.rb-footer__col--catalog .first_bottom_menu .items { columns: auto !important; column-count: auto !important; }
.rb-home .rb-ic {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.rb-home .rb-ic--16 { width: 16px; height: 16px; }
.rb-home .rb-ic--18 { width: 18px; height: 18px; }
.rb-home .rb-ic--20 { width: 20px; height: 20px; }
.rb-home .rb-ic--22 { width: 22px; height: 22px; }
.rb-home .rb-ic--28 { width: 28px; height: 28px; }
.rb-home .rb-ic--32 { width: 32px; height: 32px; }
.rb-home .rb-ic--40 { width: 40px; height: 40px; }
.rb-home .rb-ic--bold { stroke-width: 2.2; }
.rb-home .rb-ic--thin { stroke-width: 1.2; }
.rb-home .rb-ic--fill { fill: currentColor; stroke: none; }
.rb-home .rb-b {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px;
  border: 0; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease; }
.rb-home .rb-b--sm { height: 40px; padding: 0 16px; border-radius: var(--radius-s); font-size: 13px; font-weight: 800; }
.rb-home .rb-b--lg { height: 56px; padding: 0 28px; border-radius: 14px; font-size: 16px; }
.rb-home .rb-b--block { width: 100%; }
.rb-home .rb-b--primary { background: var(--red); color: #fff; }
.rb-home .rb-b--primary:hover { background: var(--red-dark); color: #fff; }
.rb-home .rb-b--light { background: #fff; color: var(--ink); }
.rb-home .rb-b--light:hover { background: var(--red-pale); color: var(--ink); }
.rb-home .rb-b--outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.rb-home .rb-b--outline:hover { background: var(--ink); color: #fff; }
.rb-home .rb-b--outline-dark { background: transparent; border: 1px solid var(--graphite-border-2); color: #fff; }
.rb-home .rb-b--outline-dark:hover { background: var(--graphite-2); color: #fff; }
.rb-home .rb-b--dashed { background: transparent; border: 1px dashed var(--graphite-border-2); color: #fff; font-weight: 600; font-size: 14px; }
.rb-home .rb-b--dashed:hover { border-color: var(--red-light); color: #fff; }
.rb-home .rb-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.rb-home .rb-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.rb-home .rb-section { margin-top: var(--section-gap); }
.rb-home .rb-section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 16px; margin-bottom: 28px; }
.rb-home .rb-section__title { font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
.rb-home .rb-section__sub { margin-top: 6px; color: var(--muted); font-size: 16px; max-width: 640px; }
.rb-home .rb-hover { transition: box-shadow .2s ease, transform .2s ease; }
.rb-home .rb-hover:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.rb-home .rb-hero { display: flex; flex-wrap: wrap; gap: 16px; }
.rb-home .rb-hero__main {
  flex: 2 1 640px; min-width: 0; min-height: 520px;
  background: var(--graphite); color: #fff; border-radius: var(--radius-xl);
  padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden; }
.rb-home .rb-hero__deco { position: absolute; right: -80px; bottom: -90px; width: 520px; height: 520px; color: var(--graphite-2); stroke-width: .35; }
.rb-home .rb-hero__content { position: relative; max-width: 640px; }
.rb-home .rb-hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--graphite-border); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--red-soft); }
.rb-home .rb-hero__badge::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--red-light); }
.rb-home .rb-hero__title { margin-top: 24px; font-size: 54px; line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; }
.rb-home .rb-hero__text { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--on-dark); max-width: 540px; }
.rb-home .rb-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.rb-home .rb-stats { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid var(--graphite-line); max-width: 680px; }
.rb-home .rb-stats > div { display: flex; flex-direction: column-reverse; }
.rb-home .rb-stats dt { font-size: 13px; color: var(--on-dark-2); font-weight: 500; }
.rb-home .rb-stats dd { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.rb-home .rb-stats dd .rb-ic { color: var(--red-light); }
.rb-home .rb-hero__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; min-height: 520px; }
.rb-home .rb-promo {
  flex: 1; border-radius: var(--radius-xl); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden; }
.rb-home .rb-promo--light { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.rb-home .rb-promo--red { background: var(--red); color: #fff; }
.rb-home .rb-promo--red:hover { color: #fff; }
.rb-home .rb-promo__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.rb-home .rb-promo--red .rb-promo__eyebrow { color: var(--red-pale); }
.rb-home .rb-promo__title { margin-top: 10px; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; max-width: 220px; }
.rb-home .rb-promo--red .rb-promo__title { font-size: 28px; max-width: none; }
.rb-home .rb-promo__text { margin-top: 8px; color: var(--red-pale); font-size: 14px; max-width: 240px; }
.rb-home .rb-promo__more { position: relative; z-index: 1; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.rb-home .rb-promo__head { position: relative; z-index: 1; }
.rb-home .rb-promo__art { position: absolute; right: 20px; bottom: 24px; width: 190px; height: 170px; }
.rb-home .rb-promo__deco { position: absolute; right: -30px; top: -20px; width: 200px; height: 200px; color: var(--red-deco); stroke-width: 1; }
.rb-home .rb-teasers { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rb-home .rb-teaser { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.rb-home .rb-teaser__img { aspect-ratio: 16 / 10; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--red); }
.rb-home .rb-teaser__img img { width: 100%; height: 100%; object-fit: cover; }
.rb-home .rb-teaser__body { padding: 18px 20px 22px; }
.rb-home .rb-teaser__title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.rb-home .rb-teaser__text { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.rb-home .rb-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rb-home .rb-cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 24px; min-height: 184px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.rb-home .rb-cat__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rb-home .rb-cat__title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.rb-home .rb-cat__img { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius-m); background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.rb-home .rb-cat__img .rb-ic { width: 28px; height: 28px; stroke-width: 1.6; }
.rb-home .rb-cat__subs { font-size: 13px; color: var(--muted); line-height: 1.6; }
.rb-home .rb-formats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.rb-home .rb-format {
  background: var(--graphite); color: #fff; border-radius: var(--radius-l); padding: 20px; min-height: 196px;
  display: flex; flex-direction: column; justify-content: space-between; }
.rb-home .rb-format:hover { color: #fff; }
.rb-home .rb-format .rb-ic { width: 40px; height: 40px; color: var(--red-light); stroke-width: 1.5; }
.rb-home .rb-format__title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.rb-home .rb-format__sub { font-size: 12px; color: var(--on-dark-2); margin-top: 4px; }
.rb-home .rb-kitchen { background: var(--ink); color: #fff; border-radius: var(--radius-xxl); padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; }
.rb-home .rb-kitchen__info { flex: 999 1 520px; min-width: 0; }
.rb-home .rb-kitchen .rb-eyebrow { color: var(--red-soft); }
.rb-home .rb-kitchen__title { margin-top: 12px; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.rb-home .rb-kitchen__text { margin-top: 14px; font-size: 17px; color: var(--on-dark); max-width: 520px; }
.rb-home .rb-ksteps { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rb-home .rb-ksteps li { border-top: 2px solid var(--graphite-line); padding-top: 16px; }
.rb-home .rb-ksteps__n { font-size: 13px; font-weight: 800; color: var(--red-light); }
.rb-home .rb-ksteps__t { margin-top: 6px; font-weight: 700; font-size: 16px; }
.rb-home .rb-ksteps__d { margin-top: 4px; font-size: 13px; color: var(--on-dark-2); }
.rb-home .rb-kform { flex: 1 1 360px; min-width: 0; background: var(--graphite); border: 1px solid var(--graphite-2); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.rb-home .rb-kform__title { font-size: 18px; font-weight: 800; }
.rb-home .rb-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--on-dark); }
.rb-home .rb-field input { height: 48px; border-radius: var(--radius); border: 1px solid var(--graphite-border); background: var(--ink); color: #fff; padding: 0 14px; font-size: 15px; }
.rb-home .rb-field input:focus { border-color: var(--red-light); outline: none; }
.rb-home .rb-kform__file { position: relative; }
.rb-home .rb-kform__file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rb-home .rb-kform__file .rb-ic { color: var(--red-light); }
.rb-home .rb-kform__note { font-size: 12px; color: var(--on-dark-2); }
.rb-home .rb-kform__note a { color: var(--on-dark); text-decoration: underline; }
.rb-home .rb-about { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xxl); overflow: hidden; display: flex; flex-wrap: wrap; }
.rb-home .rb-about__content { flex: 1.25 1 560px; min-width: 0; padding: 56px; }
.rb-home .rb-about__title { margin-top: 12px; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.rb-home .rb-about__text { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: 640px; }
.rb-home .rb-about__points { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rb-home .rb-about__points li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-m); background: var(--bg); }
.rb-home .rb-check { width: 28px; height: 28px; flex-shrink: 0; border-radius: 14px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; }
.rb-home .rb-check .rb-ic { width: 14px; height: 14px; stroke-width: 3; }
.rb-home .rb-about__points .rb-check { color: #fff; }
.rb-home .rb-about__points b { display: block; font-weight: 800; font-size: 15px; }
.rb-home .rb-about__points li > span:last-child > span { display: block; font-size: 13px; color: var(--muted); }
.rb-home .rb-about__more { margin-top: 32px; }
.rb-home .rb-about__media { flex: 1 1 420px; min-width: 0; min-height: 480px; background: var(--graphite); position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.rb-home .rb-about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rb-home .rb-about__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,46,46,0) 40%, rgba(46,46,46,.85) 100%); }
.rb-home .rb-about__deco { position: absolute; right: -40px; top: 20px; width: 360px; height: 360px; color: var(--graphite-2); stroke-width: .4; }
.rb-home .rb-about__stats { position: relative; z-index: 1; padding: 32px; color: #fff; display: flex; flex-direction: column-reverse; }
.rb-home .rb-about__stats dt { font-size: 13px; color: var(--on-dark); }
.rb-home .rb-about__stats dd { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.rb-home .rb-order { display: flex; flex-wrap: wrap; gap: 16px; }
.rb-home .rb-order__steps { flex: 999 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rb-home .rb-ostep { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.rb-home .rb-ostep__top { display: flex; align-items: center; justify-content: space-between; }
.rb-home .rb-ostep__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--bg); color: var(--red); display: flex; align-items: center; justify-content: center; }
.rb-home .rb-ostep__n { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; color: #ECEAE4; line-height: 1; }
.rb-home .rb-ostep__title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.rb-home .rb-ostep__text { font-size: 14px; line-height: 1.55; color: var(--muted-2); }
.rb-home .rb-ostep__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.rb-home .rb-ostep__chips span { padding: 5px 10px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 700; }
.rb-home .rb-expert { flex: 1 1 320px; min-width: 0; background: var(--red); color: #fff; border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.rb-home .rb-expert__deco { position: absolute; right: -50px; top: -40px; width: 240px; height: 240px; color: var(--red-deco); stroke-width: .9; }
.rb-home .rb-expert__head { position: relative; }
.rb-home .rb-expert .rb-eyebrow { color: var(--red-pale); }
.rb-home .rb-expert__title { margin-top: 12px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.rb-home .rb-expert__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--red-pale); }
.rb-home .rb-expert__foot { position: relative; display: flex; flex-direction: column; gap: 14px; }
.rb-home .rb-expert__time { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.14); font-size: 14px; font-weight: 600; line-height: 1.35; }
.rb-home .rb-expert__phone { color: #fff; text-align: center; font-weight: 700; font-size: 14px; }
.rb-home .rb-expert__phone:hover { color: var(--red-pale); }
.rb-home .rb-brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.rb-home .rb-brands .rb-brand { height: 96px; border-radius: var(--radius-m); font-size: 17px; color: var(--text-2); }

@media (max-width: 1199px) {
.rb-home .rb-hero__main { padding: 40px; }
.rb-home .rb-hero__title { font-size: 44px; }
.rb-home .rb-teasers,
.rb-home .rb-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-home .rb-formats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-home .rb-order__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-home .rb-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-home .rb-kitchen,
.rb-home .rb-about__content { padding: 40px; }
.rb-home .rb-ksteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
.rb-home .rb-hero__side { flex-basis: 100%; flex-direction: row; min-height: 280px; }
.rb-home .rb-promo__art { width: 150px; height: 134px; right: 16px; bottom: 16px; }
}

@media (max-width: 767px) {
.rb-home .rb-section__head { margin-bottom: 14px; align-items: baseline; }
.rb-home .rb-section__title { font-size: 24px; letter-spacing: -0.02em; }
.rb-home .rb-section__sub { font-size: 14px; }
.rb-home .rb-hero { gap: 10px; }
.rb-home .rb-hero__main { min-height: 0; padding: 26px 22px 22px; border-radius: 22px; gap: 20px; }
.rb-home .rb-hero__deco { width: 260px; height: 260px; right: -70px; top: -40px; bottom: auto; stroke-width: .45; }
.rb-home .rb-hero__badge { border: 0; padding: 0; font-size: 12px; }
.rb-home .rb-hero__badge::before { display: none; }
.rb-home .rb-hero__title { margin-top: 10px; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; }
.rb-home .rb-hero__text { margin-top: 12px; font-size: 15px; }
.rb-home .rb-hero__actions { margin-top: 20px; }
.rb-home .rb-hero__actions .rb-b { width: 100%; height: 52px; }
.rb-home .rb-hero__actions .rb-b--outline-dark { display: none; }
.rb-home .rb-stats { gap: 8px; padding-top: 16px; }
.rb-home .rb-stats dt { font-size: 11px; }
.rb-home .rb-stats dd { font-size: 20px; }
.rb-home .rb-stats dd .rb-ic { width: 16px; height: 16px; }
.rb-home .rb-hero__side { flex-direction: row; min-height: 0; gap: 10px; flex-basis: 100%; }
.rb-home .rb-promo { padding: 16px; min-height: 128px; border-radius: 18px; gap: 10px; }
.rb-home .rb-promo__eyebrow,
.rb-home .rb-promo__text,
.rb-home .rb-promo__more,
.rb-home .rb-promo__art,
.rb-home .rb-promo__deco { display: none; }
.rb-home .rb-promo__title,
.rb-home .rb-promo--red .rb-promo__title { margin-top: 0; font-size: 15px; line-height: 1.2; }
.rb-home .rb-promo__micon { display: block !important; }
.rb-home .rb-teasers { gap: 10px; }
.rb-home .rb-teaser { border-radius: 16px; }
.rb-home .rb-teaser__body { padding: 10px 12px 14px; }
.rb-home .rb-teaser__title { font-size: 10px; letter-spacing: .06em; }
.rb-home .rb-teaser__text { font-size: 13px; line-height: 1.3; }
.rb-home .rb-teaser__img .rb-ic { width: 40px; height: 40px; }
.rb-home .rb-cats { gap: 10px; }
.rb-home .rb-cat { padding: 14px; min-height: 124px; border-radius: 18px; gap: 10px; }
.rb-home .rb-cat__top { flex-direction: column-reverse; }
.rb-home .rb-cat__title { font-size: 14px; line-height: 1.25; }
.rb-home .rb-cat__img { width: 44px; height: 44px; border-radius: var(--radius); }
.rb-home .rb-cat__img .rb-ic { width: 24px; height: 24px; }
.rb-home .rb-cat__subs { display: none; }
.rb-home .rb-hscroll {
    display: flex !important; overflow-x: auto; gap: 10px;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter);
    scrollbar-width: none; scroll-snap-type: x mandatory; }
.rb-home .rb-hscroll::-webkit-scrollbar { display: none; }
.rb-home .rb-hscroll > * { scroll-snap-align: start; }
.rb-home .rb-formats .rb-format { flex: 0 0 132px; min-height: 148px; padding: 16px; border-radius: 18px; }
.rb-home .rb-format .rb-ic { width: 32px; height: 32px; }
.rb-home .rb-format__title { font-size: 15px; }
.rb-home .rb-format__sub { display: none; }
.rb-home .rb-kitchen { padding: 26px 20px; border-radius: 22px; gap: 22px; }
.rb-home .rb-kitchen__title { font-size: 26px; line-height: 1.12; }
.rb-home .rb-kitchen__text { font-size: 14px; }
.rb-home .rb-ksteps { margin-top: 20px; grid-template-columns: 1fr; gap: 12px; }
.rb-home .rb-ksteps li { border-top: 0; padding-top: 0; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.rb-home .rb-ksteps__n { grid-row: span 2; width: 32px; height: 32px; border-radius: 16px; border: 1px solid var(--graphite-border); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.rb-home .rb-ksteps__t { margin-top: 0; font-size: 15px; }
.rb-home .rb-ksteps__d { margin-top: 0; }
.rb-home .rb-kform { padding: 0; background: none; border: 0; gap: 10px; }
.rb-home .rb-kform__title { display: none; }
.rb-home .rb-kform .rb-field--name { display: none; }
.rb-home .rb-field input { background: var(--graphite); }
.rb-home .rb-about { border-radius: 22px; flex-direction: column-reverse; }
.rb-home .rb-about__content { padding: 22px 20px 24px; }
.rb-home .rb-about .rb-eyebrow { font-size: 11px; }
.rb-home .rb-about__title { margin-top: 8px; font-size: 26px; }
.rb-home .rb-about__text { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.rb-home .rb-about__text p:first-child { display: none; }
.rb-home .rb-about__points { margin-top: 16px; grid-template-columns: 1fr; gap: 10px; }
.rb-home .rb-about__points li { padding: 0; background: none; align-items: center; font-size: 14px; }
.rb-home .rb-about__points li > span:last-child { display: flex; flex-wrap: wrap; gap: 0 4px; }
.rb-home .rb-about__points b,
.rb-home .rb-about__points li > span:last-child > span { display: inline; font-size: 14px; }
.rb-home .rb-about__points li > span:last-child > span { color: var(--text); }
.rb-home .rb-check { width: 22px; height: 22px; }
.rb-home .rb-check .rb-ic { width: 12px; height: 12px; }
.rb-home .rb-about__more { margin-top: 18px; width: 100%; height: 48px; background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.rb-home .rb-about__media { min-height: 180px; flex: none; }
.rb-home .rb-about__deco { display: none; }
.rb-home .rb-about__stats { padding: 18px 20px; }
.rb-home .rb-about__stats dd { font-size: 28px; line-height: 1.1; }
.rb-home .rb-about__stats dt { font-size: 12px; }
.rb-home .rb-order__steps { grid-template-columns: 1fr; gap: 0; }
.rb-home .rb-ostep { background: none; border: 0; border-radius: 0; padding: 0 0 22px 54px; position: relative; gap: 4px; }
.rb-home .rb-ostep::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.rb-home .rb-ostep__icon { display: none; }
.rb-home .rb-ostep__top { position: absolute; left: 0; top: 0; }
.rb-home .rb-ostep__n { width: 40px; height: 40px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 14px; letter-spacing: 0; display: flex; align-items: center; justify-content: center; }
.rb-home .rb-ostep__title { font-size: 16px; padding-top: 8px; }
.rb-home .rb-ostep__chips { margin-top: 6px; }
.rb-home .rb-ostep__chips span { background: #fff; border: 1px solid var(--line); }
.rb-home .rb-expert { padding: 22px 20px; }
.rb-home .rb-expert__deco,
.rb-home .rb-expert__phone { display: none; }
.rb-home .rb-expert__title { font-size: 21px; }
.rb-home .rb-expert__text { font-size: 14px; }
.rb-home .rb-expert__time { display: none; }
.rb-home .rb-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rb-home .rb-brands .rb-brand { height: 64px; font-size: 11px; border-radius: 14px; }
.rb-home .rb-brands .rb-brand:nth-child(n+10) { display: none; }
}

/* ==========================================================================
   ГЛАВНАЯ (page_blocks/index_restobar.php). Классы rb-*, область .rb-home.
   ========================================================================== */
.wrapper1:has(.rb-home) #content,
.wrapper1:has(.rb-home) .wrapper_inner.front,
.wrapper1:has(.rb-home) .middle { background: #F4F3EF; }
.rb-home {
	--red: #E7133F; --red-dark: #B80F32; --red-light: #FF6B85; --red-soft: #FF9DAE; --red-pale: #FFE1E7; --red-deco: #F03A5E;
	--ink: #232323; --graphite: #2E2E2E; --graphite-2: #3A3A3A; --graphite-line: #444444; --graphite-border: #4A4A4A; --graphite-border-2: #5A5A5A;
	--bg: #F4F3EF; --line: #E3E1DC; --line-soft: #EFEDE8;
	--text: #232323; --text-2: #2A2C31; --muted: #5E6068; --muted-2: #45474E; --on-dark: #C9CBD1; --on-dark-2: #9EA1A9;
	--radius-s: 10px; --radius: 12px; --radius-m: 16px; --radius-l: 20px; --radius-xl: 24px; --radius-xxl: 28px;
	--gutter: 30px; --section-gap: 80px;
	--shadow-hover: 0 12px 32px rgba(35, 35, 35, .10);
	color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
	padding-top: 24px;
}
.rb-home *, .rb-home *::before, .rb-home *::after { box-sizing: border-box; }
.rb-home h1, .rb-home h2, .rb-home h3, .rb-home p, .rb-home ul, .rb-home ol, .rb-home dl, .rb-home dd, .rb-home dt, .rb-home figure { margin: 0; padding: 0; }
.rb-home ul, .rb-home ol { list-style: none; }
.rb-home ul li::before, .rb-home ol li::before { content: none; }
.rb-home ul li, .rb-home ol li { padding-left: 0; margin: 0; }
.rb-home a { color: inherit; text-decoration: none; }
.rb-home a:hover { color: var(--red); }
.rb-home img { display: block; max-width: 100%; }
.rb-home h1, .rb-home h2 { color: inherit; font-family: inherit; }
.rb-home--products { padding-top: 0; }
.rb-section__head > div { min-width: 0; }
.rb-home .rb-section__title--after-eyebrow { margin-top: 10px; }
.rb-home .rb-promo__micon { display: none; color: var(--red); margin-bottom: 10px; }
.rb-home .rb-promo--red .rb-promo__micon { color: #fff; }
.rb-home .rb-promo--light:hover { color: var(--ink); }
.rb-home .rb-hero__title { color: #fff; }

/* Каталог: картинка раздела вместо иконки */
.rb-home .rb-cat { color: var(--ink); }
.rb-home .rb-cat__img { width: 72px; height: 72px; background: #fff; overflow: hidden; }
.rb-home .rb-cat__img img { width: 100%; height: 100%; object-fit: contain; }
.rb-home .rb-cat__subs { display: block; }

/* Типы предприятий: иконки из /local/oborudovanie */
.rb-home .rb-format__icon { display: block; color: var(--red-light); }
.rb-home .rb-format__icon svg { width: 40px; height: 40px; display: block; }
.rb-home .rb-format__icon svg * { stroke-width: 1.5; }
.rb-home .rb-format__title, .rb-home .rb-format__sub { display: block; }

/* Тизеры: картинки из инфоблока */
.rb-home .rb-teaser { color: var(--ink); }
.rb-home .rb-teaser__img { display: flex; overflow: hidden; }
.rb-home .rb-teaser__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rb-home .rb-teaser:hover .rb-teaser__img img { transform: scale(1.03); }
.rb-home .rb-teaser__body, .rb-home .rb-teaser__title, .rb-home .rb-teaser__text { display: block; }

/* Бренды */
.rb-home .rb-brand { display: flex; align-items: center; justify-content: center; height: 96px; padding: 14px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); font-weight: 800; color: var(--text-2); text-align: center; }
.rb-home .rb-brand img { max-height: 52px; width: auto; height: auto; object-fit: contain; }

/* О компании: фото */
.rb-home .rb-about__media img { z-index: 0; }
.rb-home .rb-about__media::after { z-index: 0; }
.rb-home .rb-about__more, .rb-home .rb-about__more:hover { color: #fff; }

/* Кнопка эксперта (штатный обратный звонок) */
.rb-home .rb-expert .rb-b { cursor: pointer; }
.rb-home .rb-b--primary, .rb-home .rb-b--primary:hover, .rb-home .rb-b--outline-dark, .rb-home .rb-b--outline-dark:hover { color: #fff; }
.rb-home .rb-expert__phone:hover { color: var(--red-pale); }

@media (max-width: 767px) {
	.rb-home { --gutter: 16px; --section-gap: 44px; padding-top: 12px; }
	.rb-home .rb-promo__micon { display: block; }
	.rb-home .rb-cat__img { width: 52px; height: 52px; }
	.rb-home .rb-cat__subs { display: none; }
	.rb-home .rb-format__icon svg { width: 32px; height: 32px; }
	.rb-home .rb-brand { height: 64px; padding: 8px 10px; border-radius: 14px; font-size: 11px; }
	.rb-home .rb-brand img { max-height: 36px; }
	.rb-home .rb-brands .rb-brand:nth-child(n+10) { display: none; }
	.rb-home .rb-about__more, .rb-home .rb-about__more:hover { color: var(--ink); }
}

/* ---------- Главная: правки после проверки на сайте ---------- */
.rb-home .maxwidth-theme { background: transparent; }
.rb-home .rb-format__icon svg g { stroke: #C9CBD1; }
.rb-home .rb-format__icon svg g.m { stroke: var(--red-light); }
.rb-home .rb-stats dd .rb-ic--fill { fill: var(--red-light); stroke: none; opacity: 1; }

/* Товары: штатный aspro:tabs.max в оформлении макета */
.rb-home--products .drag-block.CATALOG_TAB { width: auto; max-width: 1408px; margin: var(--section-gap) auto 0; padding: 0; background: transparent !important; float: none; }
.rb-home--products .content_wrapper_block,
.rb-home--products .content_wrapper_block > .maxwidth-theme { background: transparent !important; }
.rb-home--products .content_wrapper_block { padding: 0 !important; margin: 0 !important; }
.rb-home--products .content_wrapper_block > .maxwidth-theme { padding: 0 30px !important; }
.rb-home--products .tab_slider_wrapp { padding: 0 !important; background: transparent !important; }
.rb-home--products .top_block { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 28px !important; padding: 0 !important; border: 0 !important; }
.rb-home--products .top_block_title { margin: 0 !important; font-size: 36px !important; line-height: 1.15 !important; font-weight: 800 !important; letter-spacing: -0.03em; color: var(--ink) !important; }
.rb-home--products .right_block_wrapper { display: flex; align-items: center; gap: 20px; flex: 0 1 auto; min-width: 0; margin: 0 !important; }
.rb-home--products .tabs_wrapper { margin: 0 !important; min-width: 0; }
.rb-home--products ul.tabs { display: flex; gap: 4px; padding: 4px !important; margin: 0 !important; background: #E9E7E1; border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.rb-home--products ul.tabs::-webkit-scrollbar { display: none; }
.rb-home--products ul.tabs > li { margin: 0 !important; padding: 0 !important; border: 0 !important; flex: 0 0 auto; }
.rb-home--products ul.tabs > li > span { display: block; padding: 9px 16px !important; border-radius: 9px; border: 0 !important; color: var(--muted-2) !important; font-size: 14px !important; font-weight: 600; line-height: 1.3; white-space: nowrap; cursor: pointer; }
.rb-home--products ul.tabs > li > span::after, .rb-home--products ul.tabs > li::after { display: none !important; }
.rb-home--products ul.tabs > li.cur > span { background: #fff; color: var(--ink) !important; font-weight: 700; box-shadow: 0 1px 2px rgba(35,35,35,.12); }
.rb-home--products .right_block_wrapper > a { font-size: 14px !important; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink) !important; white-space: nowrap; }
.rb-home--products .right_block_wrapper > a:hover { color: var(--red) !important; }
.rb-home--products .arrows_wrapper { display: none !important; }
.rb-home--products .catalog_block.items { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0 !important; border: 0 !important; }
.rb-home--products .catalog_block.items::before, .rb-home--products .catalog_block.items::after { display: none; }
.rb-home--products .catalog_block.items > .item { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; background: #fff; border: 1px solid var(--line) !important; border-radius: 20px; transition: box-shadow .2s ease, transform .2s ease; }
.rb-home--products .catalog_block.items > .item:hover { box-shadow: var(--shadow-hover); z-index: 3; }
.rb-home--products .catalog_block.items > .item .catalog_item_wrapp,
.rb-home--products .catalog_block.items > .item .inner_wrap { border-radius: 20px; background: #fff; }
.rb-home--products .catalog_block .item_info .item-title a, .rb-home--products .catalog_block .item-title span { font-weight: 600; color: var(--ink); }
.rb-home--products .catalog_block .price_value { font-weight: 800; }
.rb-home--products .bottom_nav, .rb-home--products .bottom_nav_wrapper { margin-top: 16px; }

/* Кухня под ключ: форма №12 в тёмном оформлении */
.rb-home .rb-kitchen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: start; gap: 48px; }
.rb-home .rb-kitchen .rb-ksteps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.rb-home .rb-kform { padding: 28px; }
.rb-home .rb-kform .content_wrapper_block, .rb-home .rb-kform .maxwidth-theme, .rb-home .rb-kform .sections_wrapper, .rb-home .rb-kform .form, .rb-home .rb-kform .form__inner, .rb-home .rb-kform .inline { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; display: block; }
.rb-home .rb-kform .form_head .top_block { display: none; }
.rb-home .rb-kform .form_head { margin: 0 0 16px !important; padding: 0 !important; }
.rb-home .rb-kform .form_desc, .rb-home .rb-kform .form_desc p { margin: 0; color: var(--on-dark-2); font-size: 13px; line-height: 1.5; }
.rb-home .rb-kform .form_body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 !important; margin: 0 !important; background: transparent !important; }
.rb-home .rb-kform .form_body > .clearboth { display: none; }
.rb-home .rb-kform .form-control { margin: 0 !important; padding: 0 !important; min-width: 0; }
.rb-home .rb-kform .form-control:has(textarea), .rb-home .rb-kform .form-control:has(.inputfile), .rb-home .rb-kform .captcha-row { grid-column: 1 / -1; }
.rb-home .rb-kform label { display: block; margin: 0 0 6px !important; color: var(--on-dark) !important; font-size: 13px !important; font-weight: 600; line-height: 1.3; }
.rb-home .rb-kform label .star, .rb-home .rb-kform .required-fields-note .star { color: var(--red-light) !important; }
.rb-home .rb-kform input[type="text"], .rb-home .rb-kform input[type="tel"], .rb-home .rb-kform input[type="email"], .rb-home .rb-kform textarea {
	width: 100% !important; height: 48px; padding: 0 14px !important; border-radius: 12px !important; border: 1px solid var(--graphite-border) !important;
	background: var(--ink) !important; color: #fff !important; font-size: 15px !important; box-shadow: none !important; }
.rb-home .rb-kform textarea { height: 96px !important; min-height: 96px; padding: 12px 14px !important; resize: vertical; }
.rb-home .rb-kform input:focus, .rb-home .rb-kform textarea:focus { border-color: var(--red-light) !important; outline: none; }
.rb-home .rb-kform input.inputfile { width: 100%; height: 52px; padding: 14px !important; border: 1px dashed var(--graphite-border-2) !important; border-radius: 12px; background: transparent !important; color: var(--on-dark) !important; font-size: 14px; cursor: pointer; }
.rb-home .rb-kform .captcha-row { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 6px 12px; }
.rb-home .rb-kform .captcha-row > label { grid-column: 1 / -1; }
.rb-home .rb-kform .captcha-row img { border-radius: 10px; height: 48px; width: auto; }
.rb-home .rb-kform .captcha-row * { float: none !important; }
.rb-home .rb-kform .mt { margin-top: 16px !important; }
.rb-home .rb-kform .licence_block { color: var(--on-dark-2); font-size: 12px; }
.rb-home .rb-kform .licence_block label { display: inline; color: var(--on-dark-2) !important; font-size: 12px !important; font-weight: 400; }
.rb-home .rb-kform .licence_block a { color: var(--on-dark) !important; text-decoration: underline; }
.rb-home .rb-kform .form_footer__bottom { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
.rb-home .rb-kform button[type="submit"] { width: 100%; height: 56px; border: 0 !important; border-radius: 14px !important; background: var(--red) !important; color: #fff !important; font-size: 16px !important; font-weight: 700; text-transform: none; letter-spacing: 0; }
.rb-home .rb-kform button[type="submit"]:hover { background: var(--red-dark) !important; }
.rb-home .rb-kform .required-fields-note .muted888 { color: var(--on-dark-2) !important; }

/* Отзывы Яндекса и вопросы-ответы: заголовки и отступы как у разделов */
.rb-home .rb-reviews .yr-block { padding: 0 !important; margin: 0 !important; }
.rb-home .rb-reviews .maxwidth-theme, .rb-home .rb-home-faq .maxwidth-theme { padding: 0 !important; max-width: none; width: auto; background: transparent !important; }
.rb-home .rb-reviews .yr-head { margin-bottom: 28px; }
.rb-home .rb-reviews .yr-head h2, .rb-home .rb-home-faq h2 { margin: 0 0 6px !important; font-size: 36px !important; line-height: 1.15 !important; font-weight: 800 !important; letter-spacing: -0.03em; color: var(--ink); }
.rb-home .rb-home-faq h2 { margin-bottom: 28px !important; }
.rb-home .rb-reviews .yr-subtitle { margin: 0; color: var(--muted); font-size: 16px; }
.rb-home .rb-reviews .yr-summary { background: #fff !important; border: 1px solid var(--line); border-radius: 20px !important; }
.rb-home .rb-home-faq .rb-faq-wrap { padding: 0 !important; margin: 0 !important; }
.rb-home .rb-home-faq .rb-faq { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 4px 24px; }

@media (max-width: 1199px) {
	.rb-home--products .catalog_block.items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rb-home .rb-kitchen { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.rb-home--products .content_wrapper_block > .maxwidth-theme { padding: 0 16px !important; }
	.rb-home--products .top_block { margin-bottom: 14px !important; }
	.rb-home--products .top_block_title, .rb-home .rb-reviews .yr-head h2, .rb-home .rb-home-faq h2 { font-size: 24px !important; letter-spacing: -0.02em; }
	.rb-home--products .right_block_wrapper { width: 100%; }
	.rb-home--products .right_block_wrapper > a { display: none; }
	.rb-home--products ul.tabs > li > span { padding: 8px 12px !important; font-size: 13px !important; }
	.rb-home--products .catalog_block.items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.rb-home--products .catalog_block.items > .item { border-radius: 18px; }
	.rb-home .rb-kform { padding: 0; }
	.rb-home .rb-kform .form_body { grid-template-columns: 1fr; }
	.rb-home .rb-reviews .yr-head, .rb-home .rb-home-faq h2 { margin-bottom: 14px !important; }
	.rb-home .rb-home-faq .rb-faq { padding: 0 16px; border-radius: 18px; }
}
.rb-home .rb-kform .form-control { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; height: auto !important; }
.rb-home .rb-kform .form-control > label { position: static !important; padding: 0 !important; background: transparent !important; transform: none !important; }
.rb-home .rb-kform .form_desc, .rb-home .rb-kform .form_desc p { text-align: left !important; }
.rb-home .rb-kform .uploader { position: relative; display: flex; align-items: center; height: 52px; padding: 0 16px; background: transparent !important; border: 1px dashed var(--graphite-border-2) !important; border-radius: 12px; }
.rb-home .rb-kform .uploader:hover { border-color: var(--red-light) !important; }
.rb-home .rb-kform .uploader input.inputfile { position: absolute; inset: 0; width: 100% !important; height: 100% !important; padding: 0 !important; border: 0 !important; opacity: 0; cursor: pointer; }
.rb-home .rb-kform .uploader .filename { color: var(--on-dark) !important; background-color: transparent !important; font-size: 14px; font-weight: 600; }
.rb-home .rb-kform .captcha-row { display: block !important; }
.rb-home .rb-kform .captcha-row .captcha_input { width: auto !important; float: none !important; }
.rb-home .rb-kform .form-control:has(input[type="email"]) { grid-column: 1 / -1; }
.rb-home .rb-kform .captcha-row, .rb-home .rb-kform .captcha-row .captcha_input { margin: 0 !important; min-height: 0 !important; height: auto !important; }
.rb-home .rb-kform .mt { margin-top: 12px !important; }
.rb-home .rb-kitchen__info { position: sticky; top: 120px; }
.rb-home .rb-hero__title { font-size: 50px; }
@media (max-width: 1199px) { .rb-home .rb-hero__title { font-size: 42px; } .rb-home .rb-kitchen__info { position: static; } }
@media (max-width: 767px) { .rb-home .rb-hero__title { font-size: 28px; } }
.rb-home--products .catalog_block.items > .item .inner_wrap { padding: 18px 18px 0 !important; }
@media (max-width: 767px) {
	.rb-home--products .drag-block.CATALOG_TAB { margin-left: 0 !important; margin-right: 0 !important; }
	.rb-home--products .content_wrapper_block > .maxwidth-theme { padding: 0 16px !important; }
	.rb-home--products .right_block_wrapper > a { display: none !important; }
	.rb-home--products .catalog_block.items > .item .inner_wrap { padding: 10px 10px 0 !important; }
}
/* Мобильные: в стилях шаблона есть body { padding: 15px } при ≤768px — убираем, поля задают блоки (16px) */
@media (max-width: 768px) {
	body { padding: 0 !important; }
	.rb-home > .maxwidth-theme { padding-left: 16px !important; padding-right: 16px !important; }
}
.rb-mheader__btns > .button_catalog_my { margin: 0 !important; }
@media (max-width: 767px) {
	.rb-home .rb-kitchen .rb-ksteps { grid-template-columns: 1fr; gap: 12px; }
	.rb-home .rb-kform .form_head { display: none; }
}

/* ---------- Шапка: логотип крупнее, ровные кнопки сравнения/избранного/корзины ---------- */
#header .rb-top .logo img { height: 56px !important; width: auto !important; max-height: 56px !important; max-width: none !important; }
#header .rb-top .logo { max-width: none !important; }
#header .rb-catbar .wrap_icon { border: 0 !important; border-radius: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
#header .rb-catbar .wrap_icon > .basket-link { margin: 0 !important; height: 52px; }

/* ---------- Каталог на главной: подразделы — ссылки ---------- */
.rb-home .rb-cat { position: relative; }
.rb-home .rb-cat__top { color: var(--ink); }
.rb-home .rb-cat__top::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.rb-home .rb-cat:hover .rb-cat__title { color: var(--red); }
.rb-home .rb-cat__title { transition: color .15s ease; }
.rb-home .rb-cat__img { position: relative; z-index: 0; }
.rb-home .rb-cat__subs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; font-size: 13px; line-height: 1.6; color: var(--muted); }
.rb-home .rb-cat__subs li { display: inline; }
.rb-home .rb-cat__subs li:not(:last-child)::after { content: "·"; margin: 0 6px; color: #B5B3AD; }
.rb-home .rb-cat__subs a { color: var(--muted); }
.rb-home .rb-cat__subs a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767px) { .rb-home .rb-cat__subs { display: none; } }

/* ---------- «Ранее вы смотрели» (штатный блок Аспро) ---------- */
.viewed_product_block { background: #F4F3EF !important; }
.viewed_product_block .viewed-wrapper { padding: 64px 0 56px !important; }
.viewed_product_block .viewed-title { margin: 0 0 20px !important; font-size: 24px !important; line-height: 1.2; font-weight: 800 !important; letter-spacing: -0.02em; color: #232323; }
.viewed_product_block .swiper-wrapper { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 12px; transform: none !important; }
.viewed_product_block .swiper-slide { width: auto !important; margin: 0 !important; min-width: 0; height: auto; border: 1px solid #E3E1DC !important; border-radius: 16px !important; background: #fff; box-shadow: none !important; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.viewed_product_block .swiper-slide:hover { box-shadow: 0 12px 32px rgba(35,35,35,.10) !important; transform: translateY(-2px); }
.viewed_product_block .block-item__wrapper { height: 100%; padding: 12px !important; background: #fff !important; }
.viewed_product_block .block-item__inner { display: flex !important; flex-direction: row; align-items: center; gap: 12px; }
.viewed_product_block .block-item__image { flex: 0 0 64px; width: 64px !important; height: 64px !important; margin: 0 !important; padding: 4px; border-radius: 12px; background: #F4F3EF; display: flex !important; align-items: center; justify-content: center; }
.viewed_product_block .block-item__image a { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; }
.viewed_product_block .block-item__image img { max-width: 100%; max-height: 100%; width: auto !important; height: auto !important; object-fit: contain; mix-blend-mode: multiply; }
.viewed_product_block .block-item__info { flex: 1 1 auto; min-width: 0; padding: 0 !important; margin: 0 !important; }
.viewed_product_block .block-item__title { display: block !important; margin: 0 !important; }
.viewed_product_block .block-item__title a, .viewed_product_block .block-item__title span { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px !important; line-height: 1.35 !important; font-weight: 600; color: #232323 !important; word-break: normal; overflow-wrap: anywhere; hyphens: auto; }
.viewed_product_block .block-item__title a:hover { color: #E7133F !important; }
.viewed_product_block .price, .viewed_product_block .price_value, .viewed_product_block .price_currency, .viewed_product_block .price_measure, .viewed_product_block [class*="price"] { color: #232323 !important; font-size: 14px !important; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.viewed_product_block .block-item__info [class*="price"] { margin-top: 4px; }
@media (max-width: 1199px) {
	.viewed_product_block .swiper-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
	.viewed_product_block .viewed-wrapper { padding: 40px 0 32px !important; }
	.viewed_product_block .wrapper_inner { padding: 0 16px !important; }
	.viewed_product_block .viewed-title { font-size: 20px !important; margin-bottom: 14px !important; }
	.viewed_product_block .swiper { overflow-x: auto !important; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
	.viewed_product_block .swiper::-webkit-scrollbar { display: none; }
	.viewed_product_block .swiper-wrapper { display: flex !important; gap: 10px; }
	.viewed_product_block .swiper-slide { flex: 0 0 250px; }
}
.rb-home .rb-cat__subs { display: block; }
.rb-home .rb-cat__subs li:not(:last-child)::after { content: "\00a0·"; margin: 0 6px 0 0; }
#header .rb-catbar .btn-search svg, #header .rb-catbar .btn-search svg * { fill: #fff !important; }
.viewed_product_block .block-item__title a, .viewed_product_block .block-item__title span { hyphens: manual !important; overflow-wrap: break-word; }
@media (max-width: 767px) { .rb-home .rb-cat__subs { display: none; } }
.rb-home .rb-cat__subs li:not(:last-child)::after { color: #9EA1A9; font-weight: 700; }
.viewed_product_block .viewed-title { text-align: left !important; }

/* ---------- Кнопка «Каталог»: подсветка на всю кнопку ---------- */
#header .rb-catbar__catalog table,
#header .rb-catbar__catalog td,
#header .rb-catbar__catalog td > .wrap { background: var(--rb-red) !important; border-radius: 12px !important; transition: background .15s ease; }
#header .rb-catbar__catalog td > .wrap > a.dropdown-toggle { display: flex !important; align-items: center; justify-content: center; width: 100%; padding: 0 24px !important; background: transparent !important; border-radius: 12px !important; }
#header .rb-catbar__catalog td:hover,
#header .rb-catbar__catalog td:hover > .wrap,
#header .rb-catbar__catalog td.hover,
#header .rb-catbar__catalog td.hover > .wrap { background: var(--rb-red-dark) !important; }
#header .rb-catbar__catalog table:has(td:hover) { background: var(--rb-red-dark) !important; }

/* ---------- «Мой кабинет»: аккуратная кнопка-«пилюля» ---------- */
#header .rb-info__cabinet .wrap_icon { display: block !important; }
#header .rb-info__cabinet .auth_wr_inner { padding: 0 !important; }
#header .rb-info__cabinet .personal-link {
	display: inline-flex !important; align-items: center; gap: 8px; height: 36px; padding: 0 30px 0 5px;
	border: 1px solid var(--rb-line); border-radius: 999px; background: #fff;
	color: var(--rb-ink) !important; font-size: 13px !important; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none !important; white-space: nowrap;
	transition: border-color .15s ease, box-shadow .15s ease; }
#header .rb-info__cabinet .personal-link:hover { border-color: var(--rb-red); box-shadow: 0 4px 14px rgba(231,19,63,.12); }
#header .rb-info__cabinet .personal-link > i.svg { display: none !important; }
#header .rb-info__cabinet .personal-link::before {
	content: ""; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
	background: var(--rb-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E") center / 15px no-repeat; }
#header .rb-info__cabinet .personal-link .wrap, #header .rb-info__cabinet .personal-link .name { color: inherit !important; font: inherit !important; text-transform: none !important; margin: 0 !important; padding: 0 !important; }
#header .rb-info__cabinet .with_dropdown { position: relative; }
#header .rb-info__cabinet .with_dropdown::after,
#header .rb-info__cabinet .with_dropdown > .svg,
#header .rb-info__cabinet .with_dropdown > i { right: 12px !important; top: 50% !important; margin-top: -2px !important; }
.rb-home--products .bottom_nav { display: none !important; }
.rb-home .rb-products-more { display: flex; justify-content: center; margin-top: 24px; background: transparent; }
.rb-home .rb-products-more .rb-b { min-width: 280px; height: 52px; }
@media (max-width: 767px) { .rb-home .rb-products-more { padding: 0 16px; margin-top: 14px; } .rb-home .rb-products-more .rb-b { width: 100%; min-width: 0; } }

/* «Весь каталог» у вкладок товаров — в стиле переключателя вкладок */
.rb-home--products .right_block_wrapper > a { display: inline-flex !important; align-items: center; gap: 8px; height: 46px; padding: 0 18px !important; margin: 0 !important; background: #E9E7E1; border-radius: 12px; color: #45474E !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1; text-decoration: none; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.rb-home--products .right_block_wrapper > a::after { content: "→"; font-weight: 700; }
.rb-home--products .right_block_wrapper > a:hover { background: #fff; color: #232323 !important; box-shadow: 0 1px 2px rgba(35,35,35,.12), inset 0 0 0 4px #E9E7E1; }
.rb-home--products ul.tabs { min-height: 46px; align-items: center; }
.rb-home--products .right_block_wrapper { gap: 12px; }
.rb-home--products .right_block_wrapper { align-items: center !important; }
.rb-home--products .right_block_wrapper > *, .rb-home--products .tabs_wrapper { margin-top: 0 !important; margin-bottom: 0 !important; align-self: center; top: 0 !important; }
.rb-home--products ul.tabs { top: 0 !important; transform: none !important; }
.rb-home--products .catalog_block .item_info--bottom_block .cost.prices { min-height: 84px; display: flex !important; align-items: flex-start; }
.rb-home--products .catalog_block .item_info--bottom_block .price_matrix_wrapper { vertical-align: top; }

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ: панель «Каталог / Тип предприятия / Бренды», меню, без горизонтальной прокрутки
   ========================================================================== */
@media (max-width: 991px) {
	html, body { overflow-x: clip; }
	.footer-bottom__items-wrapper { margin-left: 0 !important; margin-right: 0 !important; max-width: 100%; }
}
html.rb-sheet-open, html.rb-sheet-open body { overflow: hidden !important; }
.rb-sheet[hidden] { display: none !important; }
.rb-sheet { position: fixed; inset: 0; z-index: 3000; font-size: 15px; color: #232323; -webkit-font-smoothing: antialiased; }
.rb-sheet *, .rb-sheet *::before, .rb-sheet *::after { box-sizing: border-box; }
.rb-sheet__overlay { position: absolute; inset: 0; background: rgba(35, 35, 35, .5); opacity: 0; transition: opacity .25s ease; }
.rb-sheet__panel {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
	background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(35,35,35,.18);
	transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); outline: none;
	padding-bottom: env(safe-area-inset-bottom); }
.rb-sheet.is-open .rb-sheet__overlay { opacity: 1; }
.rb-sheet.is-open .rb-sheet__panel { transform: translateY(0); }
.rb-sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: #D9D6CF; margin: 10px auto 2px; flex: none; }
.rb-sheet__head { display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px 16px; flex: none; }
.rb-sheet__title { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-sheet__close, .rb-sheet__back { flex: none; width: 40px; height: 40px; border: 0; border-radius: 20px; background: #F4F3EF; color: #232323; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rb-sheet__back { margin-left: -6px; }
.rb-sheet__back[hidden] { display: none; }
.rb-sheet__search { position: relative; margin: 0 16px 10px; flex: none; }
.rb-sheet__search[hidden] { display: none; }
.rb-sheet__search svg { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: #8A8D95; pointer-events: none; }
.rb-sheet__search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: 14px; background: #F4F3EF; font: inherit; font-size: 15px; color: #232323; outline: none; -webkit-appearance: none; appearance: none; }
.rb-sheet__search input:focus { border-color: #E7133F; background: #fff; }
.rb-sheet__body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 16px 20px; }
.rb-sheet a { color: inherit; text-decoration: none; }
.rb-sheet__img { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #F4F3EF; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rb-sheet__img img { max-width: 36px; max-height: 36px; object-fit: contain; mix-blend-mode: multiply; }

.rb-sheet__list { display: flex; flex-direction: column; }
.rb-sheet__row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 0; border: 0; border-bottom: 1px solid #EFEDE8; background: none; font: inherit; font-size: 15px; font-weight: 700; color: #232323; text-align: left; cursor: pointer; }
.rb-sheet__row:last-child { border-bottom: 0; }
.rb-sheet__row svg { flex: none; color: #9EA1A9; }
.rb-sheet__row--accent .rb-sheet__name { color: #E7133F; }
.rb-sheet__name { flex: 1; min-width: 0; line-height: 1.3; }
.rb-sheet__count { flex: none; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; background: #F4F3EF; color: #5E6068; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rb-sheet__all { display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; margin-top: 14px; border-radius: 14px; border: 1px solid #232323; font-weight: 700; font-size: 15px; }
.rb-sheet__all:active { background: #232323; color: #fff; }

.rb-sheet__hero { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: #E7133F; color: #fff !important; }
.rb-sheet__hero .rb-sheet__img { background: #fff; }
.rb-sheet__hero > span:nth-child(2) { flex: 1; min-width: 0; }
.rb-sheet__hero-t { display: block; font-weight: 800; font-size: 15px; }
.rb-sheet__hero-s { display: block; font-size: 12px; opacity: .85; }
.rb-sheet__links { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-sheet__link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 12px; background: #F4F3EF; font-size: 14px; font-weight: 600; line-height: 1.25; }
.rb-sheet__link[hidden] { display: none; }
.rb-sheet__link:active { background: #FFE1E7; color: #B80F32; }

.rb-sheet__results { display: flex; flex-direction: column; }
.rb-sheet__result { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid #EFEDE8; }
.rb-sheet__result-n { font-weight: 700; }
.rb-sheet__result-p { font-size: 12px; color: #5E6068; }
.rb-sheet__empty { padding: 24px 4px; color: #5E6068; font-size: 14px; line-height: 1.5; }
.rb-sheet__empty a { color: #E7133F !important; text-decoration: underline !important; }

.rb-sheet__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rb-sheet__type { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 112px; padding: 14px; border-radius: 18px; background: #2E2E2E; color: #fff !important; }
.rb-sheet__type-icon svg { width: 36px; height: 36px; display: block; }
.rb-sheet__type-icon svg g { stroke: #C9CBD1; }
.rb-sheet__type-icon svg g.m { stroke: #FF6B85; }
.rb-sheet__type-name { font-weight: 800; font-size: 15px; line-height: 1.2; }

.rb-sheet__logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.rb-sheet__logo { height: 60px; padding: 8px; border: 1px solid #E3E1DC; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.rb-sheet__logo img { max-height: 36px; max-width: 100%; object-fit: contain; }
.rb-sheet__letters { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 8px; padding: 0 16px 4px; scrollbar-width: none; position: sticky; top: 0; background: #fff; z-index: 1; }
.rb-sheet__letters::-webkit-scrollbar { display: none; }
.rb-sheet__chip { flex: none; min-width: 38px; height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: #F4F3EF; font: inherit; font-size: 14px; font-weight: 700; color: #45474E; cursor: pointer; }
.rb-sheet__chip.is-active { background: #232323; color: #fff; }
.rb-sheet__brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.rb-sheet__letter-h { grid-column: 1 / -1; margin: 12px 0 4px; font-size: 13px; font-weight: 800; color: #E7133F; letter-spacing: .04em; }
.rb-sheet__brand { padding: 9px 0; border-bottom: 1px solid #EFEDE8; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Мобильное меню Аспро (бургер) — в стиле макета */
@media (max-width: 991px) {
	.mobilemenu-v1 { background: #fff; }
	.mobilemenu-v1 .menu.top > ul > li > a,
	.mobilemenu-v1 .menu.middle > ul > li > a { min-height: 54px; display: flex !important; align-items: center; gap: 12px; padding: 0 16px !important; border-bottom: 1px solid #EFEDE8; font-size: 15px !important; font-weight: 700 !important; color: #232323 !important; }
	.mobilemenu-v1 .menu.top > ul > li > a .arrow { margin-left: auto; }
	.mobilemenu-v1 .menu.middle > ul > li > a .svg { color: #E7133F; }
	.mobilemenu-v1 .menu.middle > ul > li > a .svg svg path { fill: currentColor; }
	.mobilemenu-v1 .count { min-width: 22px; height: 22px; border-radius: 11px !important; background: #E7133F !important; color: #fff !important; font-size: 12px !important; display: inline-flex !important; align-items: center; justify-content: center; }
	.mobilemenu-v1 .wd_seo_region_link { padding: 12px 16px; border-bottom: 8px solid #F4F3EF; }
	.mobilemenu-v1 ul.dropdown .menu_title a { font-size: 18px !important; font-weight: 800 !important; color: #232323 !important; }
}

/* Иконки шагов заказа: контур, а не заливка (Аспро задаёт svg use { fill }) */
.rb-home svg.rb-ic use, .viewed_product_block svg.rb-ic use { fill: inherit !important; fill-rule: nonzero; }

/* ---------- Мобильная версия: доводка ---------- */
html.rb-sheet-open jdiv, html.rb-sheet-open #jivo-iframe-container, html.rb-sheet-open .bottom-icons-panel { display: none !important; }
.rb-sheet__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rb-sheet__logo { height: 52px; padding: 6px; border-radius: 12px; }
.rb-sheet__logo img { max-height: 30px; }
@media (max-width: 991px) {
	.rb-mheader__logo img { height: 40px !important; width: auto !important; max-height: 40px !important; max-width: none !important; }
	.mobilemenu-v1 .menu.middle > ul > li > a { position: relative; padding-left: 52px !important; }
	.mobilemenu-v1 .menu.middle > ul > li > a > .svg:first-child { left: 16px !important; }
}
@media (max-width: 767px) {
	.rb-home--products .top_block .right_block_wrapper > a { display: none !important; }
	.rb-home--products .catalog_block.items > .item:nth-child(n+5) { display: none !important; }
	.rb-home--products .catalog_block .stickers [class*="sticker_"] { font-size: 10px !important; line-height: 1.2 !important; padding: 3px 6px !important; }
	.rb-home--products .catalog_block .sale_wrapper .inner-sale { display: none !important; }
	.rb-home--products .catalog_block .item-title a, .rb-home--products .catalog_block .item-title span { font-size: 13px !important; line-height: 1.35 !important; }
	.rb-home--products .catalog_block .price .price_value { font-size: 17px !important; }
	.rb-home--products .catalog_block .item_info--bottom_block .cost.prices { min-height: 64px; }
	.rb-footer .maxwidth-theme { padding-left: 16px !important; padding-right: 16px !important; }
	.rb-footer .first_bottom_menu .items { column-count: 2 !important; column-gap: 16px; }
	.rb-footer .first_bottom_menu .items .item { break-inside: avoid; font-size: 13px; }
}
#mobileheader .rb-mheader__logo img, #headerfixed .rb-mheader__logo img { height: 40px !important; max-height: 40px !important; width: auto !important; max-width: none !important; }

/* ==========================================================================
   ЛИПКАЯ ШАПКА (десктоп, #headerfixed > page_blocks/header_fixed_2.php)
   ========================================================================== */
#headerfixed { background: rgba(255,255,255,.96) !important; -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rb-line-soft); box-shadow: 0 10px 30px rgba(35,35,35,.08) !important; }
#headerfixed .rb-fixed { padding-top: 0 !important; padding-bottom: 0 !important; }
#headerfixed .rb-fixed__row { display: flex; align-items: center; gap: 14px; height: 72px; }
#headerfixed .rb-fixed__logo { flex: 0 0 auto; display: flex; align-items: center; height: 72px; padding: 0 !important; margin: 0 6px 0 0 !important; max-width: none !important; width: auto !important; }
#headerfixed .rb-fixed__logo a { display: flex; align-items: center; }
#headerfixed .rb-fixed__logo img { height: 42px !important; max-height: 42px !important; width: auto !important; max-width: none !important; }

/* Кнопка «Каталог» */
#headerfixed .rb-fixed__catalog { flex: 0 0 auto; padding: 0 !important; margin: 0 !important; }
#headerfixed .rb-fixed__catalog .mega-menu { padding: 0 !important; }
#headerfixed .rb-fixed__catalog table,
#headerfixed .rb-fixed__catalog td,
#headerfixed .rb-fixed__catalog td > .wrap { background: var(--rb-red) !important; border-radius: 12px !important; border: 0 !important; transition: background .15s ease; }
#headerfixed .rb-fixed__catalog td > .wrap > a,
#headerfixed .rb-fixed__catalog .menu-item > .wrap > a {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; height: 48px !important; padding: 0 22px !important;
	background: transparent !important; color: #fff !important; border-radius: 12px !important;
	font-size: 14px !important; font-weight: 800 !important; letter-spacing: .04em; text-transform: uppercase; line-height: 1 !important;
}
#headerfixed .rb-fixed__catalog td > .wrap > a *, #headerfixed .rb-fixed__catalog td > .wrap > a svg path { color: #fff !important; fill: #fff !important; }
#headerfixed .rb-fixed__catalog td:hover, #headerfixed .rb-fixed__catalog td:hover > .wrap,
#headerfixed .rb-fixed__catalog td.hover, #headerfixed .rb-fixed__catalog td.hover > .wrap,
#headerfixed .rb-fixed__catalog table:has(td:hover) { background: var(--rb-red-dark) !important; }

/* Поиск — поле-кнопка, открывает штатный поиск Аспро */
#headerfixed .rb-fixed__search {
	flex: 1 1 auto; min-width: 160px; display: flex !important; align-items: center; gap: 10px; height: 48px; margin: 0 !important; padding: 0 18px !important;
	border: 1px solid var(--rb-line) !important; border-radius: 12px !important; background: var(--rb-bg) !important;
	color: var(--rb-muted) !important; font: 500 15px/1 inherit; text-align: left; cursor: text; box-shadow: none !important;
	transition: border-color .15s ease, background .15s ease;
}
#headerfixed .rb-fixed__search svg { flex: 0 0 auto; color: var(--rb-ink); }
#headerfixed .rb-fixed__search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; font-weight: 500; }
#headerfixed .rb-fixed__search:hover { border-color: #C9C6BF !important; background: #fff !important; }

/* Телефон и обратный звонок */
#headerfixed .rb-fixed__contact { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0 4px; }
#headerfixed .rb-fixed__phone { color: var(--rb-ink) !important; font-size: 16px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; text-decoration: none !important; }
#headerfixed .rb-fixed__phone:hover { color: var(--rb-red) !important; }
#headerfixed .rb-fixed__callback { color: var(--rb-red); font-size: 12px; font-weight: 700; line-height: 1.2; cursor: pointer; border-bottom: 1px dashed rgba(231,19,63,.45); }
#headerfixed .rb-fixed__callback:hover { color: var(--rb-red-dark); border-bottom-color: var(--rb-red-dark); }

/* Кабинет, сравнение, избранное, корзина — одинаковые квадраты 48×48 */
#headerfixed .rb-fixed__icons { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
#headerfixed .rb-fixed__icons .wrap_icon { display: flex !important; align-items: center; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; position: relative; }
#headerfixed .rb-fixed__icons .auth_wr_inner { padding: 0 !important; }
#headerfixed .rb-fixed__icons .basket-link,
#headerfixed .rb-fixed__icons .personal-link {
	position: relative; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
	min-width: 48px; height: 48px; margin: 0 !important; padding: 0 12px !important;
	border: 1px solid var(--rb-line) !important; border-radius: 12px !important; background: #fff !important;
	color: var(--rb-ink) !important; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#headerfixed .rb-fixed__icons .basket-link:hover,
#headerfixed .rb-fixed__icons .personal-link:hover { border-color: var(--rb-red) !important; box-shadow: 0 4px 14px rgba(231,19,63,.12); }
#headerfixed .rb-fixed__icons .basket-link .js-basket-block { display: inline-flex !important; align-items: center; gap: 8px; position: static !important; padding: 0 !important; }
#headerfixed .rb-fixed__icons .basket-link .title,
#headerfixed .rb-fixed__icons .personal-link .wrap,
#headerfixed .rb-fixed__icons .personal-link .name,
#headerfixed .rb-fixed__icons .with_dropdown::after,
#headerfixed .rb-fixed__icons .with_dropdown > .svg-inline-down { display: none !important; }
#headerfixed .rb-fixed__icons i.svg { display: inline-flex !important; align-items: center; justify-content: center; margin: 0 !important; width: 22px; height: 22px; }
#headerfixed .rb-fixed__icons i.svg svg { width: 22px !important; height: 22px !important; }
#headerfixed .rb-fixed__icons i.svg svg path, #headerfixed .rb-fixed__icons i.svg svg use { fill: var(--rb-ink) !important; }
#headerfixed .rb-fixed__icons .basket-link .count {
	position: absolute !important; top: -6px !important; right: -6px !important; left: auto !important; bottom: auto !important;
	min-width: 20px; height: 20px; padding: 0 5px !important; margin: 0 !important; border: 2px solid #fff; border-radius: 10px !important;
	background: var(--rb-red) !important; color: #fff !important; font-size: 11px !important; font-weight: 800; line-height: 16px !important; text-align: center;
}
#headerfixed .rb-fixed__icons .basket-link .count.empted,
#headerfixed .rb-fixed__icons .basket-link .count:empty { display: none !important; }
/* Корзина — акцентная */
#headerfixed .rb-fixed__icons .basket-link.basket { background: var(--rb-red) !important; border-color: var(--rb-red) !important; padding: 0 16px !important; }
#headerfixed .rb-fixed__icons .basket-link.basket:hover { background: var(--rb-red-dark) !important; border-color: var(--rb-red-dark) !important; }
#headerfixed .rb-fixed__icons .basket-link.basket i.svg svg path, #headerfixed .rb-fixed__icons .basket-link.basket i.svg svg use { fill: #fff !important; }
#headerfixed .rb-fixed__icons .basket-link.basket .title { display: inline !important; color: #fff !important; font-size: 14px !important; font-weight: 800; text-transform: none; }
#headerfixed .rb-fixed__icons .basket-link.basket .count { background: var(--rb-ink) !important; }
/* Кабинет — красный кружок с иконкой, как в основной шапке */
#headerfixed .rb-fixed__cabinet .personal-link > i.svg { display: none !important; }
#headerfixed .rb-fixed__cabinet .personal-link::before {
	content: ""; width: 22px; height: 22px; flex: 0 0 22px;
	background: center / 22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232323' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
}
#headerfixed .rb-fixed__cabinet .personal-link:hover::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7133F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
/* Превью корзины при наведении (белая пустая выпадашка со спиннером) в липкой шапке не показываем */
#headerfixed .rb-fixed__icons .basket_hover_block,
#headerfixed .rb-fixed__icons .basket-link + .basket_hover_block { display: none !important; }

@media (max-width: 1299px) {
	#headerfixed .rb-fixed__row { gap: 10px; }
	#headerfixed .rb-fixed__catalog td > .wrap > a { padding: 0 16px !important; }
	#headerfixed .rb-fixed__icons .basket-link.basket .title { display: none !important; }
	#headerfixed .rb-fixed__icons .basket-link.basket { padding: 0 12px !important; }
}
@media (max-width: 1099px) {
	#headerfixed .rb-fixed__contact { display: none; }
}
#headerfixed .rb-fixed__logo img { height: 50px !important; max-height: 50px !important; mix-blend-mode: multiply; }
/* Липкая шапка: настоящее поле поиска (нужно умному поиску) */
#headerfixed .rb-fixed__search-field { flex: 1 1 auto; min-width: 160px; padding: 0 !important; margin: 0 !important; width: auto !important; }
#headerfixed .rb-fixed__search-field .search-wrapper, #headerfixed .rb-fixed__search-field form, #headerfixed .rb-fixed__search-field .search-input-div { width: 100% !important; max-width: none !important; margin: 0 !important; position: relative; }
#headerfixed .rb-fixed__search-field input.search-input {
	width: 100% !important; height: 48px !important; padding: 0 52px 0 18px !important; margin: 0 !important;
	border: 1px solid var(--rb-line) !important; border-radius: 12px !important; background: var(--rb-bg) !important;
	color: var(--rb-ink) !important; font-size: 15px !important; box-shadow: none !important;
}
#headerfixed .rb-fixed__search-field input.search-input:focus { border-color: #C9C6BF !important; background: #fff !important; }
#headerfixed .rb-fixed__search-field .search-button-div, #headerfixed .rb-fixed__search-field button[type="submit"], #headerfixed .rb-fixed__search-field .btn-search {
	position: absolute !important; top: 0 !important; right: 0 !important; height: 48px !important; width: 48px !important; margin: 0 !important; padding: 0 !important;
	display: flex !important; align-items: center; justify-content: center; border: 0 !important; background: transparent !important; box-shadow: none !important;
}
#headerfixed .rb-fixed__search-field .search-button-div button { position: static !important; }
#headerfixed .rb-fixed__search-field button svg path, #headerfixed .rb-fixed__search-field button svg use { fill: var(--rb-ink) !important; }
#headerfixed { background: #fff !important; }
#headerfixed .rb-fixed__logo img { mix-blend-mode: normal; }
.rb-ms-anchor { display: none !important; }

/* Мобильные внутренние страницы: боковые поля 16px (body padding убран ради главной) */
@media (max-width: 767px) { body:not(:has(.rb-home)) .wraps { padding-left: 16px !important; padding-right: 16px !important; } }

/* ---------- Выпадающее меню «Каталог»: единый стиль, без красной заливки ---------- */
.rb-catbar__catalog .menu-navigation, .rb-fixed__catalog .menu-navigation { background: #fff !important; }
.rb-catbar__catalog .dropdown-menu.long-menu-items, .rb-fixed__catalog .dropdown-menu.long-menu-items {
	border: 1px solid var(--rb-line) !important; border-top: 0 !important; border-radius: 0 0 20px 20px !important; overflow: hidden;
	box-shadow: 0 24px 60px rgba(35,35,35,.16) !important;
}
/* Левая колонка разделов */
.menu-navigation__sections-wrapper { background: #FAF9F6 !important; border-right: 1px solid var(--rb-line-soft) !important; }
#header .menu-navigation__sections-item-link, #headerfixed .menu-navigation__sections-item-link {
	position: relative; margin: 2px 8px !important; padding-top: 10px !important; padding-bottom: 10px !important; border-radius: 12px !important;
	background: transparent !important; color: var(--rb-ink) !important; transition: background .15s ease, color .15s ease;
}
#header .menu-navigation__sections-item-link .name, #headerfixed .menu-navigation__sections-item-link .name { color: inherit !important; font-weight: 600 !important; }
#header .menu-navigation__sections-item-link:hover, #header .menu-navigation__sections-item-link.active,
#header .menu-navigation__sections-item.active > .menu-navigation__sections-item-link,
#headerfixed .menu-navigation__sections-item-link:hover, #headerfixed .menu-navigation__sections-item-link.active,
#headerfixed .menu-navigation__sections-item.active > .menu-navigation__sections-item-link {
	background: #fff !important; color: var(--rb-red) !important; box-shadow: 0 2px 10px rgba(35,35,35,.08) !important;
}
#header .menu-navigation__sections-item-link:hover::before, #header .menu-navigation__sections-item-link.active::before,
#header .menu-navigation__sections-item.active > .menu-navigation__sections-item-link::before,
#headerfixed .menu-navigation__sections-item-link:hover::before, #headerfixed .menu-navigation__sections-item-link.active::before,
#headerfixed .menu-navigation__sections-item.active > .menu-navigation__sections-item-link::before {
	content: ""; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rb-red);
}
#header .menu-navigation__sections-item-link svg path, #headerfixed .menu-navigation__sections-item-link svg path { fill: currentColor !important; }
/* Правая часть: ссылки подразделов */
#header .menu-navigation .subitems-wrapper a, #headerfixed .menu-navigation .subitems-wrapper a {
	display: inline-block; margin: 0 -8px; padding: 3px 8px !important; border-radius: 8px;
	background: transparent !important; color: var(--rb-ink) !important; text-decoration: none !important; transition: background .15s ease, color .15s ease;
}
#header .menu-navigation .subitems-wrapper a *, #headerfixed .menu-navigation .subitems-wrapper a * { color: inherit !important; background: transparent !important; }
#header .menu-navigation .subitems-wrapper a:hover, #headerfixed .menu-navigation .subitems-wrapper a:hover { background: var(--rb-bg) !important; color: var(--rb-red) !important; }
#header .menu-navigation .subitems-wrapper a:hover .column-letter-marker, #headerfixed .menu-navigation .subitems-wrapper a:hover .column-letter-marker { background: transparent !important; }
/* «Популярные категории» и буквы алфавита — фирменный красный, без оранжевого */
#header .menu-navigation .subitems-wrapper p, #headerfixed .menu-navigation .subitems-wrapper p {
	color: var(--rb-red) !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .06em; text-transform: uppercase;
}
#header .menu-navigation .subitems-wrapper p img, #header .menu-navigation .subitems-wrapper p svg,
#headerfixed .menu-navigation .subitems-wrapper p img, #headerfixed .menu-navigation .subitems-wrapper p svg { filter: grayscale(1) brightness(.4) sepia(1) hue-rotate(-40deg) saturate(6); }
#header .menu-navigation .column-letter-marker, #headerfixed .menu-navigation .column-letter-marker { color: var(--rb-red) !important; opacity: .45; font-weight: 700 !important; }
/* Поиск по категориям */
#header .menu-navigation .menu-search-input, #headerfixed .menu-navigation .menu-search-input {
	height: 44px !important; padding: 0 16px !important; border: 1px solid var(--rb-line) !important; border-radius: 12px !important;
	background: var(--rb-bg) !important; color: var(--rb-ink) !important; font-size: 14px !important; box-shadow: none !important;
}
#header .menu-navigation .menu-search-input:focus, #headerfixed .menu-navigation .menu-search-input:focus { background: #fff !important; border-color: #C9C6BF !important; }

/* ---------- Внутренние страницы: единые заголовки и крошки ---------- */
body:not(:has(.rb-home)) .page-top h1, body:not(:has(.rb-home)) h1#pagetitle {
	font-size: 34px !important; line-height: 1.15 !important; font-weight: 800 !important; letter-spacing: -0.025em; color: var(--rb-ink) !important;
}
body:not(:has(.rb-home)) .page-top { padding-top: 22px !important; }
body:not(:has(.rb-home)) #navigation, body:not(:has(.rb-home)) #navigation * { font-size: 13px !important; }
body:not(:has(.rb-home)) #navigation a, body:not(:has(.rb-home)) #navigation span { color: var(--rb-muted) !important; text-decoration: none !important; }
body:not(:has(.rb-home)) #navigation a:hover { color: var(--rb-red) !important; }
@media (max-width: 767px) {
	body:not(:has(.rb-home)) .page-top h1, body:not(:has(.rb-home)) h1#pagetitle { font-size: 24px !important; letter-spacing: -0.02em; }
}
/* Пустая корзина: ссылка в фирменном цвете */
.bx-sbb-empty-cart-desc a, .bx-soa-empty-cart-desc a { color: var(--rb-red) !important; font-weight: 700; }

/* Липкая шапка: выпадающее меню каталога на всю ширину ряда (было зажато шириной кнопки) */
#headerfixed .rb-fixed__row { position: relative !important; }
#headerfixed .rb-fixed__catalog, #headerfixed .rb-fixed__catalog .mega-menu, #headerfixed .rb-fixed__catalog td.menu-item { position: static !important; }
#headerfixed .rb-fixed__catalog .mega-menu { overflow: visible !important; }
#headerfixed .rb-fixed__catalog .dropdown-menu.long-menu-items { left: 0 !important; right: 0 !important; width: auto !important; min-width: 0 !important; top: 100% !important; margin-top: 0 !important; }
