/* MG-Race — тема Joomla 6. Токены → база → шапка → сетка → магазин → подвал. */

@font-face { font-family: "PT Sans Narrow"; font-weight: 400; font-display: swap; src: url(../fonts/ptsansnarrow-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans Narrow"; font-weight: 400; font-display: swap; src: url(../fonts/ptsansnarrow-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "PT Sans Narrow"; font-weight: 700; font-display: swap; src: url(../fonts/ptsansnarrow-cyrillic-700.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans Narrow"; font-weight: 700; font-display: swap; src: url(../fonts/ptsansnarrow-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
	--brand: #2eb700;
	--brand-ink: #1c7d00;      /* ссылки и текст на светлом: контраст ≥ 4.5 */
	--brand-deep: #176600;
	--brand-soft: #eef8f1;
	--price: #e60012;
	--ink: #1a1a1a;
	--ink-2: #555;
	--ink-3: #8b8d8e;
	--line: #e3e5e0;
	--bg: #f3f4f1;
	--card: #fff;
	--r: 12px;
	--r-sm: 8px;
	--shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 14px rgb(0 0 0 / .05);
	--wrap: 1200px;
	--gap: clamp(12px, 2vw, 24px);
	--font: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.45 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { line-height: 1.2; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(24px, 3.2vw, 34px); }
h2 { font-size: clamp(21px, 2.4vw, 26px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
ul { padding-left: 1.2em; }
[hidden] { display: none !important; }

/* Кнопки и поля: единый вид для Joomla, JoomShopping и модулей */
.btn, button, input[type=submit], input[type=button], .button, a.button, .button_buy, .btn-primary {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 44px; padding: 0 22px; border: 0; border-radius: var(--r-sm);
	background: var(--brand-ink); color: #fff; font: 700 17px/1 var(--font); letter-spacing: .02em;
	text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s;
}
.btn:hover, button:hover, input[type=submit]:hover, input[type=button]:hover, .button:hover, .button_buy:hover { background: var(--brand-deep); color: #fff; }
.btn:active, button:active, input[type=submit]:active { transform: translateY(1px); }
.btn--ghost, .btn-secondary, input.button-reset { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover, .btn-secondary:hover { background: var(--bg); color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], select, textarea {
	width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
	background: #fff; color: var(--ink); font: 400 18px var(--font);
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 3px rgb(46 183 0 / .18); }
label { font-weight: 700; }

/* Верхняя информационная полоса */
.toolbar { background: #1c1f1a; color: #cfd3cb; font-size: 15px; }
.toolbar__in { display: flex; justify-content: flex-end; gap: 16px; min-height: 36px; align-items: center; }
.toolbar ul { display: flex; gap: 4px 20px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.toolbar a { color: #e6e9e2; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; font-size: 14px; }
.toolbar a:hover { color: #fff; text-decoration: underline; }
.toolbar h3 { display: none; }

/* Шапка */
.header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header__in { display: grid; grid-template-columns: minmax(150px, 251px) minmax(min-content, 1fr) minmax(150px, 280px) auto; align-items: center; gap: 12px var(--gap); padding-block: 10px; }
.logo img { display: block; width: 100%; max-width: 251px; height: auto; }
.contacts { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 2px clamp(14px, 2vw, 28px); font-size: clamp(19px, 1.9vw, 27px); font-weight: 700; line-height: 1.15; text-align: center; }
.contacts > :nth-child(3) { grid-column: 1 / -1; justify-self: center; }
.contacts > * { white-space: nowrap; }
.contacts .moduletable, .contacts > div { margin: 0; }
.contacts p { margin: 0; }
.contacts a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.contacts a:hover { color: var(--brand-ink); }
.header__search form { display: flex; gap: 6px; }
.header__search input[type=text], .header__search input[type=search] { min-width: 0; }
.header__search .button, .header__search input[type=submit] { padding: 0 16px; flex: none; }
.header__cart { display: flex; justify-content: flex-end; }

/* Меню каталога — зелёные «таблетки» */
.menubar { background: var(--brand); }
.menubar ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.menubar li { flex: none; }
.menubar a, .menubar span.separator, .menubar .mod-menu__heading {
	display: block; padding: 9px 16px; border-radius: 999px; color: #fff; text-decoration: none;
	font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.menubar a:hover, .menubar li.active > a, .menubar li.current > a { background: rgb(255 255 255 / .22); color: #fff; }
@media (min-width: 1100px) { .menubar ul { flex-wrap: wrap; overflow: visible; justify-content: center; } }

/* Блоки над контентом */
.band { margin-top: var(--gap); }
.band .moduletable, .band > .wrap > div { margin: 0; }
.band--hero img { border-radius: var(--r); display: block; width: 100%; }
.band--title h3, .band--title h2, .band--title p { margin: 0; text-align: center; color: var(--brand-ink); font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.reasons > * { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; font-size: 20px; font-weight: 700; display: flex; gap: 14px; align-items: center; }
.reasons img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.reasons h3, .reasons p { margin: 0; font-size: inherit; }
.band--sales .wrap { background: var(--price); color: #fff; border-radius: var(--r); padding: 14px 20px; font-weight: 700; font-size: 22px; text-align: center; }
.band--sales a { color: #fff; }
.band--filter .wrap { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 20px; }

/* Сетка страницы */
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-block: var(--gap) calc(var(--gap) * 1.6); align-items: start; }
.has-sidebar .main-grid { grid-template-columns: 280px minmax(0, 1fr); }
.content { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(14px, 2.4vw, 28px); min-width: 0; }
.component-only .content { box-shadow: none; }
.sidebar .moduletable, .sidebar section { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: var(--gap); }
.sidebar h3 { font-size: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--brand); }
.side > summary { display: none; list-style: none; cursor: pointer; font-weight: 700; padding: 12px 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.side > summary::-webkit-details-marker { display: none; }
.side > summary::after { content: "▾"; float: right; }
.side[open] > summary::after { content: "▴"; }
.crumbs { font-size: 15px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs ul, .crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs .mod-breadcrumbs__here { display: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #c4c7c0; }
.crumbs li.active, .crumbs li.active span { color: var(--ink-2); }
.crumbs a { text-decoration: none; }
.innertop, .innerbottom { margin-bottom: 1.2em; }

/* Каталог JoomShopping: плитки категорий и товаров */
.jshop_list_category .row-fluid, .jshop_list_product .row-fluid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); margin: 0 0 var(--gap); }
.jshop [class*="sblock"], .jshop .block_product { float: none !important; width: auto !important; margin: 0 !important; }
.jshop .jshop_categ { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, transform .15s; }
.jshop .jshop_categ:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.jshop .jshop_categ .image { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.jshop .jshop_categ .image img { max-height: 100%; width: auto; object-fit: contain; }
.jshop .jshop_categ .category_name a { font-weight: 700; font-size: 20px; line-height: 1.2; text-decoration: none; color: var(--ink); }
.jshop .jshop_categ .category_name a:hover { color: var(--brand-ink); }
.jshop .category_short_description { color: var(--ink-2); font-size: 16px; margin: 0; }
.block_product { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, transform .15s; }
.block_product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.block_product .image_block, .block_product .jshop_img_description { text-align: center; }
.block_product img { border-radius: var(--r-sm); }
.block_product .name a, .block_product .product_name a { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); }
.block_product .name a:hover { color: var(--brand-ink); }
.jshop_price, .block_product .jshop_price { color: var(--price); font-weight: 700; font-size: 24px; }
.old_price { color: var(--ink-3); text-decoration: line-through; font-size: 18px; font-weight: 400; }
.block_product .buttons { margin-top: auto; }
.pagination, .jshop .pagination { display: flex; justify-content: center; margin-top: 1.4em; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; }
.pagination .active span, .pagination .active a { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }

/* Карточка товара */
.jshop .prod_price, .jshop #block_price { color: var(--price); font-weight: 700; font-size: 32px; }
.jshop .prod_qty_input input { width: 90px; text-align: center; }
.jshop .extra_fields { width: 100%; border-collapse: collapse; }
.jshop .extra_fields td, .jshop .extra_fields th { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; }

/* Системные сообщения Joomla */
#system-message-container { margin-bottom: 14px; }
joomla-alert, .alert { display: block; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--brand-soft); margin-bottom: 8px; }

/* Таблицы и формы в контенте */
.content table { border-collapse: collapse; width: 100%; max-width: 100%; }
.content table th, .content table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content img { border-radius: var(--r-sm); }
.table-wrap, .content .table-responsive { overflow-x: auto; }

/* Подвал */
.footer { background: #1c1f1a; color: #cfd3cb; padding-top: calc(var(--gap) * 1.6); font-size: 17px; }
.footer a { color: #e6e9e2; }
.footer a:hover { color: #fff; }
.footer h3, .footer h4 { color: #fff; font-size: 20px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.footer__cols ul { list-style: none; padding: 0; margin: 0; }
.footer__cols li { padding: 3px 0; }
.footer__cols p { margin: 0 0 .5em; }
.footer__c { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-block: 18px; margin-top: var(--gap); border-top: 1px solid #343830; font-size: 15px; color: var(--ink-3); }
.footer__c img { height: 28px; width: auto; }
.totop { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; text-decoration: none; font-size: 20px; }

/* Плавающая вкладка «Помощь специалиста» */
.help-tab { position: fixed; right: 0; top: 42%; z-index: 40; }
.help-tab a { display: block; writing-mode: vertical-rl; transform: rotate(180deg); padding: 18px 10px; background: var(--brand-ink); color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 0 var(--r-sm) var(--r-sm) 0; box-shadow: var(--shadow); }

/* Страница ошибки */
.error-box { text-align: center; padding-block: clamp(32px, 8vw, 96px); }
.error-box__code { font-size: clamp(72px, 16vw, 160px); font-weight: 700; color: var(--brand); margin: 0; line-height: 1; }

/* Шапка в две строки: места для логотипа, пирамиды телефонов, поиска и корзины в одну строку уже нет */
@media (max-width: 1080px) {
	.header__in { grid-template-columns: minmax(130px, 220px) 1fr auto; }
	.contacts { display: flex; flex-wrap: wrap; grid-column: 1 / -1; order: 5; justify-content: flex-start; gap: 0 22px; font-size: 20px; text-align: left; }
	.header__search { grid-column: 1 / 3; }
}

/* Планшет */
@media (max-width: 1000px) {
	.has-sidebar .main-grid { grid-template-columns: minmax(0, 1fr); }
	.side > summary { display: block; }
	.reasons { grid-template-columns: 1fr; }
	.footer__cols { grid-template-columns: 1fr 1fr; }
}

/* Телефон */
@media (max-width: 600px) {
	body { font-size: 17px; }
	.toolbar__in { justify-content: flex-start; }
	.header__in { grid-template-columns: 1fr auto; padding-block: 8px; }
	.logo img { max-width: 170px; }
	.header__search { grid-column: 1 / -1; order: 4; }
	.contacts { gap: 0 16px; font-size: 18px; }
	.jshop_list_category .row-fluid, .jshop_list_product .row-fluid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.jshop .jshop_categ, .block_product { padding: 10px; }
	.jshop .jshop_categ .category_name a { font-size: 17px; }
	.jshop .category_short_description { display: none; }
	.footer__cols { grid-template-columns: 1fr; }
	.help-tab { top: auto; bottom: 90px; }
	.help-tab a { padding: 12px 8px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Мини-корзина */
.minicart { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line); }
.minicart:hover { color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px var(--brand); }
.minicart--full { box-shadow: inset 0 0 0 1.5px var(--brand); }
.minicart__txt { white-space: nowrap; }
.minicart__count { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--price); color: #fff; font-size: 14px; display: grid; place-items: center; }

/* «Три причины» */
.reasons .reason { display: flex; align-items: center; gap: 14px; }
.reasons .reason svg { flex: none; width: 44px; height: 44px; color: var(--brand); }
.reasons .reason strong { font-size: 20px; line-height: 1.25; }

/* Слайдер главной: нативный scroll-snap, без библиотек */
.hero-slider { position: relative; }
.hero-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); box-shadow: var(--shadow); }
.hero-slider__track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.hero-slide img { display: block; width: 100%; height: auto; border-radius: 0; }
.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.hero-slider__dots button { width: 12px; height: 12px; min-height: 0; padding: 0; border-radius: 50%; background: rgb(255 255 255 / .7); box-shadow: 0 0 0 1px rgb(0 0 0 / .25); }
.hero-slider__dots button[aria-current="true"] { background: var(--brand); box-shadow: 0 0 0 2px #fff; }

/* Карточка товара */
.pv { display: grid; gap: var(--gap); margin-top: 12px; }
@media (min-width: 820px) { .pv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pv__aside { grid-column: 1 / -1; } }
@media (min-width: 1180px) { .pv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px; } .pv__aside { grid-column: auto; } }
.pv__gallery img { border-radius: var(--r-sm); }
.pv__gallery .image_thumb_list img { margin: 2px; }
.pv__buy .prod_price { color: var(--price); }
.pv__buy .prod_buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.pv__buy .prod_qty, .pv__buy .prod_qty_input { flex: none; }
.pv__buy .product-buttons { flex: 1 1 100%; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-buy, .pv__buy input.btn-buy { background: var(--brand-ink); min-height: 48px; padding: 0 28px; font-size: 18px; }
.product-extra-buttons { flex: 1 1 100%; display: flex; gap: 10px; flex-wrap: wrap; }
.product-extra-buttons .btn { flex: 1 1 160px; }
.btn--outline { background: #fff; color: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--brand-ink); }
.btn--outline:hover { background: var(--brand-soft); color: var(--brand-deep); }
.pv__note { margin-top: 14px; padding: 12px 14px; background: var(--brand-soft); border-radius: var(--r-sm); font-size: 16px; color: var(--ink-2); }
.pv__note p { margin: 0; }
.pv__aside { display: grid; gap: var(--gap); align-content: start; }
.info-card { border: 1.5px solid var(--line); border-radius: var(--r); padding: 6px 16px; background: #fff; }
.info-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row__ic { color: var(--brand); }
.info-row h3 { margin: 0 0 4px; font-size: 18px; }
.info-row p, .info-row ol { margin: 0; font-size: 16px; color: var(--ink-2); }
.info-row ol { padding-left: 1.2em; }
.block_available.available { color: var(--brand-ink); font-weight: 700; }
.block_available.available::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--brand); }

/* Вкладки карточки: без JS все панели видны подряд */
.pv-tabs { margin-top: calc(var(--gap) * 1.4); }
.pv-tabs__list { display: none; }
.pv-tabs__panel + .pv-tabs__panel { margin-top: var(--gap); }
.pv-tabs.is-ready .pv-tabs__list { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pv-tabs.is-ready .pv-tabs__h { display: none; }
.pv-tabs__list button { min-height: 46px; padding: 0 20px; border-radius: var(--r-sm) var(--r-sm) 0 0; background: transparent; color: var(--ink-2); text-transform: none; font-size: 18px; white-space: nowrap; box-shadow: none; margin-bottom: -2px; border-bottom: 2px solid transparent; }
.pv-tabs__list button:hover { background: var(--brand-soft); color: var(--ink); }
.pv-tabs__list button[aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--brand); background: var(--brand-soft); }
.pv-tabs__panel { padding-top: 18px; }
.pv-tabs__panel[hidden] { display: none; }
.extra_fields_el { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.extra_fields_name { color: var(--ink-2); }
.extra_fields_value { font-weight: 700; }
.review_item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review_user { font-weight: 700; }
.review_time { color: var(--ink-3); }

/* Форма заявки (<dialog>) */
.mg-dialog { border: 0; border-radius: var(--r); padding: 0; width: min(94vw, 480px); box-shadow: 0 20px 60px rgb(0 0 0 / .35); color: var(--ink); }
.mg-dialog::backdrop { background: rgb(20 24 18 / .55); backdrop-filter: blur(2px); }
.mg-dialog form { display: grid; gap: 12px; padding: 22px; }
.mg-dialog h2 { margin: 0; }
.mg-dialog p { margin: 0; color: var(--ink-2); font-size: 16px; }
.mg-dialog label { display: grid; gap: 4px; font-size: 16px; }
.mg-dialog .mg-hp { position: absolute; left: -9999px; }
.mg-dialog__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mg-dialog__actions .btn { flex: 1 1 140px; }
.mg-dialog__msg { min-height: 1.4em; font-weight: 700; }
.mg-dialog__msg.is-err { color: var(--price); }
.mg-dialog__msg.is-ok { color: var(--brand-ink); }
#list_product_image_thumb { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 10px; }
#list_product_image_thumb img { width: 100%; height: auto; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
#list_product_image_thumb img:hover { border-color: var(--brand); }
.image_middle { position: relative; }
.image_middle .product_label { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; z-index: 1; }
.image_middle .product_label img { width: 44px; height: 44px; }

/* На планшете и телефоне «Три причины» только на главной: иначе товар уезжает на три экрана вниз */
@media (max-width: 1000px) { .is-inner .band--title, .is-inner .band--reasons { display: none; } }

/* Копирайт магазина скрыт, как и на старом сайте; свой — в подвале */
#mxcpr { display: none; }
.footer .copyright { color: #cfd3cb; font-size: 16px; font-weight: 700; }

/* Поиск: слово «Поиск» по центру поля */
.header__search input[type=search], .header__search input[type=text] { text-align: center; }
.header__search input::placeholder { text-align: center; color: var(--ink-2); opacity: 1; }

/* Статьи: без служебной информации сверху и «Назад / Вперёд» снизу */
.com-content-article .article-info, .com-content-article .pagenavigation, .com-content-article ul.pager { display: none; }

/* Соцсети в подвале: одноцветные иконки */
.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #cfd3cb; box-shadow: inset 0 0 0 1.5px #4a4f46; transition: color .15s, box-shadow .15s, background .15s; }
.social a:hover { color: #fff; background: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.social svg { width: 22px; height: 22px; }

/* Мобильное меню: кнопка и раскрывающийся список вместо горизонтальной прокрутки */
.menubar__toggle { display: none; }
@media (max-width: 1000px) {
	.header { position: static; }
	.js .toolbar { display: none; }
	.js .menubar__toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 var(--gap); border-radius: 0; background: var(--brand); color: #fff; font-size: 18px; justify-content: flex-start; }
	.js .menubar__toggle::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); transition: transform .2s; }
	.js .menubar__toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
	.js .menubar__toggle:hover { background: var(--brand); }
	.js .menubar #menubar-panel { display: none; background: #fff; box-shadow: 0 10px 24px rgb(0 0 0 / .18); max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
	.js .menubar.is-open #menubar-panel { display: block; }
	.js .menubar ul { flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 0; padding: 6px 0; }
	.js .menubar li { border-bottom: 1px solid var(--line); }
	.js .menubar li:last-child { border-bottom: 0; }
	.js .menubar a { border-radius: 0; padding: 15px var(--gap); color: var(--ink); background: transparent; font-size: 17px; white-space: normal; }
	.js .menubar a:hover, .js .menubar li.active > a, .js .menubar li.current > a { background: var(--brand-soft); color: var(--brand-ink); }
	.menubar__info { margin: 0; padding: 8px 0 6px; background: #f4f5f1; border-top: 2px solid var(--brand); }
	.menubar__info a { color: var(--ink-2) !important; font-size: 15px !important; }
}
@media (min-width: 1001px) { .menubar__info { display: none; } }

/* «Помощь специалиста» на телефоне и планшете: обычная плавающая кнопка внизу справа, без вертикального текста */
@media (max-width: 1000px) {
	.help-tab { top: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: auto; }
	.help-tab a { writing-mode: horizontal-tb; transform: none; padding: 0 20px; min-height: 48px; display: inline-flex; align-items: center; border-radius: 999px; box-shadow: 0 6px 18px rgb(0 0 0 / .28); font-size: 16px; letter-spacing: .03em; }
}

/* HTML-карта сайта */
.mg-sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 32px; }
.mg-sitemap h2 { font-size: 20px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--brand); }
.mg-sitemap ul { list-style: none; margin: 0; padding: 0; }
.mg-sitemap ul ul { margin: 2px 0 4px 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.mg-sitemap li { margin: 5px 0; line-height: 1.35; }
.mg-sitemap a { color: var(--ink); text-decoration: none; }
.mg-sitemap a:hover { color: var(--brand-ink); text-decoration: underline; }
