/* =====================================================================
   Редизайн 2026 (макет .local/design/atvdoc-mod2-responsive-v3.html)
   Подключается после styles.css и перекрывает старую тёмную тему.
   Новые блоки — с префиксом rd-.
   ===================================================================== */

:root {
	--rd-green: #5ba85a;
	--rd-green-hover: #4e9a4d;
	--rd-green-dark: #2f7d39;
	--rd-nav: #315738;
	--rd-text: #26332a;
	--rd-heading: #1f3a27;
	--rd-muted: #627064;
	--rd-line: #d8e6d4;
	--rd-soft: #eef8eb;
	--rd-panel: #f2faf0;
	--rd-footer: #eef7eb;
	--rd-white: #ffffff;
	--rd-font: Inter, Geist, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--rd-font-nav: Geist, Inter, system-ui, sans-serif;
	--rd-wrap: 1440px;
	--rd-gutter: 22px;
}

/* ---------- База ---------- */
html, body.rd { min-width: 320px; }
body.rd {
	font-family: var(--rd-font);
	font-size: 15px;
	line-height: 1.45;
	color: var(--rd-text);
	background: var(--rd-white);
	background-image: none;
	overflow-x: hidden;
}
body.rd *, body.rd *::before, body.rd *::after { box-sizing: border-box; }
body.rd a:link, body.rd a:visited { color: var(--rd-green-dark); text-decoration: none; }
body.rd a:hover { color: var(--rd-green); }
body.rd a:focus-visible,
body.rd button:focus-visible,
body.rd input:focus-visible,
body.rd [tabindex]:focus-visible {
	outline: 2px solid var(--rd-green-dark);
	outline-offset: 2px;
}
body.rd h1, body.rd h2, body.rd h3 { color: var(--rd-text); font-weight: 600; }
body.rd .page-wrapper, body.rd .body { background: var(--rd-white); }

.rd-wrap {
	width: 100%;
	max-width: var(--rd-wrap);
	margin: 0 auto;
	padding-left: var(--rd-gutter);
	padding-right: var(--rd-gutter);
}

/* ---------- Кнопки, бейджи ---------- */
body.rd .rd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: 800 14px/1.2 var(--rd-font);
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body.rd .rd-btn--primary,
body.rd a.rd-btn--primary:link,
body.rd a.rd-btn--primary:visited { background: var(--rd-green); color: var(--rd-white); }
body.rd .rd-btn--primary:hover { background: var(--rd-green-hover); color: var(--rd-white); box-shadow: 0 8px 20px rgba(91,168,90,.22); transform: translateY(-1px); }
body.rd .rd-btn--primary.is-disabled { opacity: .55; cursor: default; box-shadow: none; transform: none; background: var(--rd-green); }
body.rd .rd-btn--ghost,
body.rd a.rd-btn--ghost:link,
body.rd a.rd-btn--ghost:visited { background: var(--rd-white); color: var(--rd-green-dark); border-color: var(--rd-line); }
body.rd .rd-btn--ghost:hover { border-color: var(--rd-green); color: var(--rd-green-dark); }
body.rd .rd-btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
body.rd .rd-btn--lg { padding: 14px 22px; font-size: 15px; border-radius: 14px; }

.rd-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--rd-soft);
	color: var(--rd-green-dark);
	font-size: 12px;
	font-weight: 900;
	line-height: 1.3;
}
.rd-count--bordered { border: 1px solid var(--rd-line); }

.rd-divider { display: inline-block; width: 1px; height: 22px; background: var(--rd-line); flex: none; }

body.rd .rd-chip,
body.rd a.rd-chip:link,
body.rd a.rd-chip:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--rd-soft);
	color: var(--rd-green-dark);
	font-weight: 800;
	font-size: 14px;
	white-space: nowrap;
}
body.rd a.rd-chip::after { content: "›"; font-size: 18px; line-height: 1; }
body.rd a.rd-chip:hover { background: #e2f3dd; }

.rd-h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 400;
	letter-spacing: -.3px;
	color: var(--rd-text);
}

/* ---------- Шапка ---------- */
body.rd .rd-top { width: 100%; box-shadow: none; }
body.rd header.rd-header {
	position: relative;
	margin: 0;
	padding: 0;
	height: auto;
	background: #dff5d3 url("../image/redesign/header-bg.jpg") center / cover no-repeat;
	border-bottom: 1px solid var(--rd-line);
}
.rd-header__inner {
	display: grid;
	grid-template-columns: 227px minmax(260px, 1fr) auto;
	gap: 24px;
	align-items: center;
	padding-top: 28px;
	padding-bottom: 28px;
	padding-left: 40px;
	padding-right: 40px;
}
.rd-header__inner > * { min-width: 0; }
.rd-logo img { display: block; width: 227px; height: auto; border-radius: 6px; }
.rd-header__search { display: flex; justify-content: center; }

.rd-search { width: 100%; max-width: 420px; }
.rd-search form {
	position: relative;
	display: flex;
	align-items: center;
	height: 45px;
	padding: 0 6px 0 16px;
	gap: 8px;
	background: var(--rd-white);
	border: 1px solid var(--rd-line);
	border-radius: 999px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.rd-search form:focus-within { border-color: var(--rd-green); box-shadow: 0 0 0 3px rgba(91,168,90,.18); }
.rd-search__icon { flex: none; }
body.rd .rd-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--rd-text);
	font: 400 14px var(--rd-font-nav);
	outline: none;
	box-shadow: none;
}
.rd-search__input::placeholder { color: var(--rd-muted); }
body.rd .rd-search__submit {
	flex: none;
	height: 33px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: var(--rd-green);
	color: var(--rd-white);
	font: 800 13px var(--rd-font);
	cursor: pointer;
}
body.rd .rd-search__submit:hover { background: var(--rd-green-hover); }

.rd-contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	color: #000;
}
.rd-contacts__hours { font-size: 11px; white-space: nowrap; }
.rd-contacts__row { display: flex; align-items: center; gap: 10px; }
body.rd a.rd-contacts__email { color: #000; font-size: 12px; white-space: nowrap; }
body.rd a.rd-messenger {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border-radius: 8px;
	background: var(--rd-soft);
	color: var(--rd-green-dark);
	font-size: 12px;
	font-weight: 700;
}
body.rd a.rd-messenger:hover { background: var(--rd-white); }
body.rd a.rd-contacts__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #000;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Панель пользователя ---------- */
.rd-utility { background: var(--rd-white); border-bottom: 1px solid var(--rd-line); }
.rd-utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 52px;
	padding-left: 30px;
	padding-right: 30px;
}
.rd-utility__left, .rd-utility__right { position: relative; display: flex; align-items: center; gap: 4px; }
.rd-utility__right { gap: 8px; }
body.rd a.rd-pill:link, body.rd a.rd-pill:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 10px;
	color: var(--rd-text);
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}
body.rd a.rd-pill .fa { color: var(--rd-green-dark); font-size: 15px; }
body.rd a.rd-pill:hover { background: var(--rd-soft); color: var(--rd-text); }
body.rd a.rd-pill--muted:link, body.rd a.rd-pill--muted:visited { color: var(--rd-muted); font-weight: 400; }
body.rd a.rd-pill--muted .fa { color: var(--rd-muted); }

body.rd a.rd-cart:link, body.rd a.rd-cart:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 10px;
	color: var(--rd-text);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}
body.rd a.rd-cart:hover { background: var(--rd-soft); color: var(--rd-text); }
.rd-cart__sum {
	padding: 6px 12px;
	border: 1px solid var(--rd-line);
	border-radius: 10px;
	background: var(--rd-soft);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

/* Окно входа (старые классы .pop-up.login оставлены для JS) */
body.rd .rd-login {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 1100;
	width: 300px;
	padding: 20px;
	background: var(--rd-white);
	border: 1px solid var(--rd-line);
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(31,58,39,.14);
}
body.rd .rd-login,
body.rd .rd-login .login-form { font-family: var(--rd-font); }
body.rd .rd-login .login-form { margin: 0; padding: 0; width: auto; background: none; border: 0; box-shadow: none; }
body.rd .rd-login::before, body.rd .rd-login::after { display: none; }
body.rd .rd-login form { display: flex; flex-direction: column; gap: 10px; }
body.rd .rd-input {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--rd-line);
	border-radius: 10px;
	background: var(--rd-white);
	color: var(--rd-text);
	font: 400 14px var(--rd-font);
}
body.rd .rd-input:focus { border-color: var(--rd-green); outline: none; box-shadow: 0 0 0 3px rgba(91,168,90,.18); }
body.rd .rd-login .rd-btn { width: 100%; padding: 12px; }
.rd-login__links { display: flex; justify-content: space-between; font-size: 13px; }
body.rd a.rd-login__close:link, body.rd a.rd-login__close:visited {
	position: absolute;
	top: 8px;
	right: 10px;
	color: var(--rd-muted);
	font-size: 16px;
}

/* ---------- Главное меню ---------- */
.rd-nav { background: var(--rd-white); border-bottom: 1px solid var(--rd-line); }
.rd-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 56px;
	margin: 0 auto;
	padding-left: 40px;
	padding-right: 40px;
	list-style: none;
}
.rd-nav__list li { margin: 0; padding: 0; list-style: none; }
body.rd a.rd-nav__link:link, body.rd a.rd-nav__link:visited {
	display: inline-flex;
	padding: 11px 13px;
	border-radius: 10px;
	color: var(--rd-nav);
	font: 600 14px var(--rd-font-nav);
	white-space: nowrap;
}
body.rd a.rd-nav__link:hover, body.rd a.rd-nav__link.is-active { background: var(--rd-soft); color: var(--rd-nav); }
.rd-nav__icon { display: none; }

/* ---------- Сайдбар каталога ---------- */
.rd-catalog {
	background: var(--rd-white);
	border: 1px solid var(--rd-line);
	border-radius: 22px;
	overflow: hidden;
}
.rd-catalog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	padding: 0 18px;
	background: var(--rd-panel);
	border-bottom: 1px solid var(--rd-line);
}
.rd-catalog__title { font-size: 17px; font-weight: 800; color: var(--rd-text); }
.rd-catalog__burger { display: none; }
.rd-catalog__menu { padding: 8px; }
.rd-catalog__item { border-radius: 12px; }
.rd-catalog__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 44px;
	padding: 0 8px 0 12px;
}
body.rd a.rd-catalog__link:link, body.rd a.rd-catalog__link:visited,
.rd-catalog__link {
	flex: 1 1 auto;
	padding: 10px 0;
	color: var(--rd-text);
	font-size: 14px;
	font-weight: 700;
}
body.rd a.rd-catalog__link:hover, .rd-catalog__link.is-active { color: var(--rd-green-dark); }
.rd-catalog__toggle {
	position: relative;
	flex: none;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: var(--rd-soft);
	cursor: pointer;
}
.rd-catalog__toggle::before, .rd-catalog__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	margin: -1px 0 0 -5px;
	border-radius: 1px;
	background: var(--rd-green-dark);
}
.rd-catalog__toggle::after { transform: rotate(90deg); }
.rd-catalog__item.is-open > .rd-catalog__row .rd-catalog__toggle { background: var(--rd-green); }
.rd-catalog__item.is-open > .rd-catalog__row .rd-catalog__toggle::before { background: var(--rd-white); }
.rd-catalog__item.is-open > .rd-catalog__row .rd-catalog__toggle::after { display: none; }
.rd-catalog__item > .rd-catalog__sub { display: none; padding: 0 0 8px; }
.rd-catalog__item.is-open > .rd-catalog__sub { display: block; }
.rd-catalog__sub .rd-catalog__sub { padding: 0 0 4px 14px; }
body.rd a.rd-catalog__sublink:link, body.rd a.rd-catalog__sublink:visited,
.rd-catalog__sublink {
	position: relative;
	display: block;
	padding: 9px 12px 9px 28px;
	border-radius: 8px;
	color: var(--rd-text);
	font-size: 13px;
	line-height: 1.35;
}
.rd-catalog__sublink::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -2px;
	border-radius: 50%;
	background: var(--rd-green);
}
body.rd a.rd-catalog__sublink:hover { background: var(--rd-soft); color: var(--rd-green-dark); }
.rd-catalog__sublink.is-active { color: var(--rd-green-dark); font-weight: 700; }

/* ---------- Главная: каталог и бренды ---------- */
body.rd .rd-home { display: block; padding-bottom: 8px; }
.rd-hero {
	display: grid;
	grid-template-columns: 301px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	padding-top: 36px;
	padding-bottom: 28px;
}
.rd-hero__main { display: flex; flex-direction: column; gap: 20px; }
.rd-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
body.rd a.rd-brand:link, body.rd a.rd-brand:visited {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--rd-white);
	border: 2px solid var(--rd-green);
	border-radius: 20px;
	color: var(--rd-text);
	transition: box-shadow .15s ease, transform .15s ease;
}
body.rd a.rd-brand:hover { box-shadow: 0 14px 30px rgba(47,125,57,.14); transform: translateY(-2px); }
.rd-brand__head {
	display: flex;
	align-items: center;
	height: 50px;
	padding: 0 20px;
	background: var(--rd-panel);
	color: var(--rd-heading);
	font-size: 22px;
	font-weight: 800;
}
.rd-brand__image { display: block; height: 150px; overflow: hidden; }
.rd-brand__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rd-brand__info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px 16px; }
.rd-brand__name { font-size: 16px; font-weight: 800; }

/* ---------- Главная: промо-блок ---------- */
.rd-showcase {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	gap: 24px;
	align-items: center;
	margin-top: 24px;
	padding: 34px;
	overflow: hidden;
	border: 1px solid var(--rd-text);
	border-radius: 26px;
	background: var(--rd-white);
}
.rd-showcase::before {
	content: "";
	position: absolute;
	left: 44%;
	top: 48%;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: rgba(91,168,90,.13);
	pointer-events: none;
}
.rd-showcase__content, .rd-showcase__logos { position: relative; }
.rd-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid var(--rd-line);
	border-radius: 999px;
	background: var(--rd-white);
	color: var(--rd-green-dark);
	font-size: 13px;
}
body.rd .rd-showcase__title {
	max-width: 15em;
	margin: 18px 0 0;
	color: var(--rd-text);
	font-size: 44px;
	line-height: 1.03;
	font-weight: 400;
	letter-spacing: -1.4px;
}
.rd-showcase__text { max-width: 620px; margin: 15px 0 0; color: var(--rd-muted); font-size: 17px; line-height: 27px; }
.rd-showcase__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 22px; }
.rd-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; }
.rd-stat { padding: 14px 16px; border: 1px solid rgba(255,255,255,.9); border-radius: 16px; background: rgba(255,255,255,.74); }
.rd-stat dt { margin: 0; color: var(--rd-green-dark); font-size: 21px; font-weight: 400; }
.rd-stat dd { margin: 4px 0 0; color: var(--rd-muted); font-size: 13px; }
.rd-showcase__logos { display: flex; flex-direction: column; gap: 16px; }
.rd-showcase__logos img { display: block; width: 100%; height: auto; border-radius: 16px; }

/* ---------- Главная: популярные запчасти ---------- */
.rd-products { padding-top: 32px; padding-bottom: 36px; }
.rd-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rd-section-head .rd-h2 { font-size: 27px; letter-spacing: -.6px; }
.rd-section-head__desc { margin: 4px 0 0; color: var(--rd-muted); font-size: 14px; }
.rd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rd-card {
	display: flex;
	flex-direction: column;
	padding: 16px;
	background: var(--rd-white);
	border: 1px solid var(--rd-line);
	border-radius: 22px;
}
body.rd a.rd-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 160px;
	overflow: hidden;
	border: 1px solid var(--rd-line);
	border-radius: 16px;
	background: var(--rd-white);
}
.rd-card__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
body.rd a.rd-card__name:link, body.rd a.rd-card__name:visited {
	margin-top: 14px;
	color: var(--rd-text);
	font-size: 16px;
	line-height: 20px;
	font-weight: 800;
}
body.rd a.rd-card__name:hover { color: var(--rd-green-dark); }
.rd-card__sku { margin-top: 7px; color: var(--rd-muted); font-size: 13px; line-height: 18px; }
.rd-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.rd-card__price { font-size: 20px; white-space: nowrap; }

/* ---------- Футер ---------- */
/* Часть шаблонов (товар, категория) не закрывает .content-wrapper, и футер оказывается
   внутри контейнера 1200px. Растягиваем его на всю ширину окна независимо от родителя. */
body.rd footer.rd-footer {
	display: block;
	clear: both;
	position: relative;
	width: 100vw;
	max-width: none;
	margin: 0 0 0 calc(50% - 50vw);
	padding: 0;
	background: var(--rd-footer);
	background-image: none;
	border-top: 1px solid var(--rd-line);
	color: var(--rd-muted);
}
.rd-footer__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(160px, 1fr));
	gap: 24px;
	padding-top: 34px;
	padding-bottom: 34px;
}
.rd-footer__brand { margin-bottom: 10px; color: var(--rd-text); font-size: 18px; }
.rd-footer__about p { max-width: 360px; margin: 0; font-size: 14px; line-height: 21px; }
.rd-footer__title { margin-bottom: 8px; color: var(--rd-text); font-size: 15px; }
.rd-footer__col ul { margin: 0; padding: 0; list-style: none; }
.rd-footer__col li { margin: 0 0 8px; padding: 0; font-size: 14px; line-height: 21px; list-style: none; }
body.rd .rd-footer__col a:link, body.rd .rd-footer__col a:visited { color: var(--rd-muted); }
body.rd .rd-footer__col a:hover { color: var(--rd-green-dark); }
.rd-footer__bottom { border-top: 1px solid var(--rd-line); }
.rd-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	font-size: 13px;
}

/* ---------- Старые блоки внутренних страниц в новой палитре ----------
   Макет описывает только главную; здесь — минимальный перевод старой
   жёлто-чёрной темы в зелёную, чтобы страницы не выглядели чужими. */
body.rd .content-wrapper,
body.rd .container { max-width: var(--rd-wrap); padding-left: var(--rd-gutter); padding-right: var(--rd-gutter); }
body.rd .workarea { color: var(--rd-text); }
body.rd .workarea a:hover { color: var(--rd-green-dark); }
body.rd .left-column .h3 { color: var(--rd-text); }
body.rd #pagetitle, body.rd .workarea h1 { color: var(--rd-text); font-weight: 600; letter-spacing: -.3px; }

/* Кнопки покупки */
body.rd .btn_buy,
body.rd .table_button {
	background: var(--rd-green);
	color: var(--rd-white);
	font-family: var(--rd-font);
	font-weight: 800;
	border-radius: 10px;
}
body.rd .btn_buy:hover,
body.rd .table_button:hover { background: var(--rd-green-hover); color: var(--rd-white); }
body.rd .btn_buy i,
body.rd .table_button i,
body.rd .btn_buy:hover i { color: var(--rd-white); }
body.rd .btn_buy.second,
body.rd .table_button.second,
body.rd .btn_buy.popdef { background: var(--rd-green-dark); color: var(--rd-white); }
body.rd .btn_buy.third,
body.rd .table_button.third { background: var(--rd-white); border: 2px solid var(--rd-green); color: var(--rd-green-dark); }
body.rd .btn_buy.apuo,
body.rd a.btn_buy.apuo { background: var(--rd-white); border: 1px solid var(--rd-line); color: var(--rd-text); }
body.rd .btn_buy.apuo:hover { border-color: var(--rd-green); background: var(--rd-soft); color: var(--rd-green-dark); }
body.rd .btn_buy.apuo i, body.rd .btn_buy.apuo:hover i { color: var(--rd-green-dark); }
/* Карточка товара: «В корзину» — главная, «Купить в 1 клик» — вторичная */
body.rd .btn_buy.detail.second { background: var(--rd-green); }
body.rd .btn_buy.detail.second:hover { background: var(--rd-green-hover); }
body.rd .btn_buy.boc_anch { background: var(--rd-white); border: 1px solid var(--rd-green); color: var(--rd-green-dark); }
body.rd .btn_buy.boc_anch i { color: var(--rd-green-dark); }
body.rd .btn_buy.boc_anch:hover { background: var(--rd-soft); color: var(--rd-green-dark); }
body.rd button[name="banners-main__item-button"]:after { border-left-color: var(--rd-white); }

/* Плитки подкатегорий — как карточки брендов на главной */
body.rd a.banners-main__item,
body.rd a.banners-main__item-m { border: 2px solid var(--rd-green); border-radius: 20px; overflow: hidden; }
body.rd a.banners-main__item:hover { box-shadow: 0 14px 30px rgba(47,125,57,.14); }
body.rd .banners-main__item-block-wrap,
body.rd .banners-main__item-block-wrap:after { background: linear-gradient(to bottom, transparent 55%, rgba(242,250,240,.96) 75%); border-radius: 0; }
body.rd .banners-main__item-text { color: var(--rd-heading); text-shadow: none; font-family: var(--rd-font); font-weight: 800; }

/* Карточки товаров, фото, сортировка */
body.rd .catalog-item-card:hover,
body.rd .catalog-item-card:hover .catalog-item-info,
body.rd .catalog-item:hover .catalog-item-info,
body.rd .catalog-item:not(.items-table-head):hover,
body.rd .already_seen ul li:hover,
body.rd .catalog-section-child a:hover,
body.rd .catalog-section-child a:hover .child,
body.rd .catalog-section .catalog-section-title:hover a,
body.rd .catalog-detail-pictures .more_photo ul li:hover { border-color: var(--rd-green); }
body.rd .catalog-detail-pictures { border-color: var(--rd-line); border-radius: 16px; }
body.rd .catalog-item-sorting label,
body.rd .count_items label { color: var(--rd-text); }
body.rd .catalog-item-view a.selected,
body.rd .catalog-item-view a.selected:hover,
body.rd .cart-items .sort a.sortbutton.current,
body.rd .compare-list-result .sort a.sortbutton.current,
body.rd .bx_filter_select_popup ul li label.selected,
body.rd .custom-forms.active label { background: var(--rd-green); border-color: var(--rd-green); color: var(--rd-white); }
body.rd .catalog-detail-element .buy_more_detail button[name="toitem"] { border-color: var(--rd-green); }
body.rd .catalog-detail-element .buy_more_detail button[name="toitem"]:hover { background: var(--rd-green); color: var(--rd-white); }
body.rd .catalog-item-price-view .not_avl i,
body.rd .catalog-detail-element .catalog-detail-price .not_avl i { color: var(--rd-green); }
body.rd .low-price-banner,
body.rd .low-price-float-banner { border-color: var(--rd-green); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
	.rd-header__inner { grid-template-columns: 190px minmax(260px, 1fr); row-gap: 16px; padding-left: 24px; padding-right: 24px; }
	.rd-logo img { width: 190px; }
	.rd-contacts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
	.rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rd-showcase { grid-template-columns: minmax(0, 1fr) 200px; }
}

@media (max-width: 1024px) {
	.rd-hero { grid-template-columns: 1fr; }
	.rd-hero__main { order: -1; }
	.rd-utility__inner, .rd-nav__list { padding-left: 18px; padding-right: 18px; }
	.rd-cart__label { display: none; }
}

@media (max-width: 768px) {
	:root { --rd-gutter: 16px; }

	.rd-header__inner { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 18px 16px; }
	.rd-logo img { width: 176px; }
	.rd-header__search, .rd-search { width: 100%; max-width: none; }
	.rd-contacts { display: none; }

	.rd-utility__inner { flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 14px; }
	.rd-utility__left .rd-divider { display: none; }

	/* Меню — плитки по две в ряд */
	.rd-nav { padding: 10px 12px; }
	.rd-nav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; padding: 0; }
	body.rd a.rd-nav__link:link, body.rd a.rd-nav__link:visited {
		justify-content: center;
		align-items: center;
		width: 100%;
		min-height: 64px;
		border: 1px solid var(--rd-green);
		border-radius: 0;
		text-align: center;
		white-space: normal;
		flex-direction: column;
		gap: 6px;
		padding: 10px 8px;
	}
	.rd-nav__icon { display: block; font-size: 22px; line-height: 1; color: var(--rd-green); }

	/* Поиск перенесён JS-ом под панель пользователя (footer.twig) */
	.rd-header__search.is-mobile { padding: 10px 14px; background: var(--rd-white); border-bottom: 1px solid var(--rd-line); }
	/* Меню перенесено JS-ом под «Каталог товаров» */
	.rd-nav.is-mobile { margin-top: 16px; padding: 0; background: none; border-bottom: 0; }

	/* Каталог сворачивается в бургер */
	.rd-catalog { border-radius: 20px; box-shadow: 0 10px 26px rgba(47,125,57,.08); }
	.rd-catalog__head { min-height: 56px; padding: 0 14px; cursor: pointer; user-select: none; border-bottom: 0; background: linear-gradient(180deg, #f4fbf2 0%, #eaf7e6 100%); }
	.rd-catalog__title { font-size: 16px; }
	.rd-catalog__burger {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		border-radius: 12px;
		background: #5cb159;
		color: var(--rd-white);
		box-shadow: 0 6px 14px rgba(92,177,89,.32);
	}
	.rd-catalog__burger::before { content: "☰"; font-size: 20px; line-height: 1; }
	.rd-catalog.is-open .rd-catalog__burger::before { content: "✕"; font-size: 18px; }
	.rd-catalog__menu { max-height: 0; overflow: hidden; padding: 0 8px; transition: max-height .32s ease, padding .32s ease; }
	.rd-catalog.is-open .rd-catalog__menu { max-height: 2400px; padding: 8px; }
	.rd-catalog__item { margin-bottom: 8px; border: 1px solid #edf4eb; border-radius: 16px; }
	.rd-catalog__row { min-height: 48px; padding-left: 14px; }

	.rd-hero { padding-top: 24px; gap: 18px; }
	.rd-brands { gap: 12px; }
	.rd-brand__head { height: 42px; padding: 0 14px; font-size: 18px; }
	.rd-brand__image { height: 110px; }

	.rd-showcase { grid-template-columns: 1fr; padding: 24px 20px; }
	.rd-showcase::before { left: auto; right: -120px; top: auto; bottom: -140px; }
	body.rd .rd-showcase__title { font-size: 32px; letter-spacing: -.8px; }
	.rd-showcase__text { font-size: 15px; line-height: 23px; }
	.rd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rd-stat:last-child { grid-column: 1 / -1; }
	.rd-showcase__logos { flex-direction: row; }
	.rd-showcase__logos img { width: calc(50% - 8px); }

	.rd-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.rd-section-head .rd-h2 { font-size: 22px; }
	.rd-grid { grid-template-columns: 1fr; }

	.rd-footer__grid { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; padding-bottom: 28px; }
	.rd-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; padding-bottom: 14px; }
}

@media (max-width: 480px) {
	.rd-logo img { width: 154px; }
	.rd-pill__text { display: none; }
	body.rd a.rd-pill:link, body.rd a.rd-pill:visited { padding: 8px; }
	.rd-brand__head { font-size: 16px; }
	.rd-card__price { font-size: 18px; }
	body.rd .rd-showcase__title { font-size: 28px; }
	.rd-showcase__actions .rd-btn { flex: 1 1 100%; }
	body.rd .rd-login { position: fixed; top: 60px; left: 16px; right: 16px; width: auto; }
}

@media (max-width: 380px) {
	.rd-utility__inner { padding-left: 10px; padding-right: 10px; }
	.rd-cart__sum { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
	body.rd *, body.rd *::before, body.rd *::after { transition: none !important; animation: none !important; }
}

/* Каталог: поле количества (- 1 +) в списке товаров */
body.rd .catalog-item .buy_more .qnt_cont {
	display: inline-flex;
	align-items: stretch;
	height: 30px;
	vertical-align: middle;
	border: 1px solid var(--rd-line);
	border-radius: 6px;
	background: var(--rd-white);
	overflow: hidden;
}
body.rd .catalog-item .buy_more .qnt_cont a.minus,
body.rd .catalog-item .buy_more .qnt_cont a.plus {
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: auto;
	background: var(--rd-panel);
	color: var(--rd-text);
	font-size: 15px;
	line-height: 1;
	border-radius: 0;
	user-select: none;
}
body.rd .catalog-item .buy_more .qnt_cont a.minus:hover,
body.rd .catalog-item .buy_more .qnt_cont a.plus:hover {
	background: var(--rd-soft);
	color: var(--rd-green-dark);
}
body.rd .catalog-item .buy_more .qnt_cont a.minus span,
body.rd .catalog-item .buy_more .qnt_cont a.plus span { display: inline; }
body.rd .catalog-item .buy_more .qnt_cont input[name="quantity"] {
	float: none;
	width: 36px;
	height: auto;
	margin: 0;
	padding: 0 2px;
	border: 0;
	border-left: 1px solid var(--rd-line);
	border-right: 1px solid var(--rd-line);
	border-radius: 0;
	background: var(--rd-white);
	box-shadow: none;
	color: var(--rd-text);
	font: 600 14px/28px var(--rd-font);
	text-align: center;
}
body.rd .catalog-item .buy_more .qnt_cont input[name="quantity"]:focus {
	outline: none;
	background: var(--rd-soft);
}

/* Цена со скидкой (special-цена): колонка «Ваша цена» в списке, ссылка в карточке товара */
.catalog-item .catalog-item-info > .item-special-price { text-align: center; white-space: nowrap; }
.special-price-link { font-size: 13px; font-weight: 600; text-decoration: underline !important; }
.special-price-link--mobile { display: none; }
.special-price-link--detail { display: inline-block; margin: 6px 0 0; }
body.rd a.special-price-link:link,
body.rd a.special-price-link:visited { color: var(--rd-green-dark); }
body.rd a.special-price-link:hover { color: var(--rd-green); }
.pop-up .special-price-value { white-space: nowrap; }
@media screen and (max-width: 787px) {
	.catalog-item .catalog-item-info > .item-special-price { display: none; }
	.special-price-link--mobile { display: block; margin-top: 2px; }
}

/* Функция «Отложить» (wishlist) скрыта на всём сайте */
#wishlist-total,
.add-to-wish-btn,
.catalog-detail-delay,
.delay:has([onclick^="wishlist.add"]),
.delay:has(.setaside),
[onclick^="wishlist.add"],
a[href*="account/wishlist"],
.sale-personal-section__item:has(a[href*="account/wishlist"]),
li:has(> a[href*="account/wishlist"]) { display: none !important; }
