/*
 * 105 (19.11.2026, ДЕВ): шапка и подвал svet.kz по макету главной (~/seo-svet/audit/2026-11-19-home, листы Main 1440 и Phone 390).
 * Общий файл всех страниц s1: подключается в header.php после ShowHead — после стилей шаблона и страницы (ловушка порядка CSS).
 * Разметка — include/shell105/header.php, include/shell105/footer.php, components/bitrix/search.title/header/template.php.
 * Порог телефонного вида — прежний порог шаблона: 824 px (закреплённая шапка — ещё и portrait, css/mobile-header.css).
 * Виджет поиска (svs-*) и photo-entry не правим: их кнопку камеры кладём прозрачной поверх своей плашки «По фото» (перекрытие стилем).
 * Откат: убрать подключение этого файла и js/shell105.js в header.php и вернуть прежние header.php, footer.php, шаблон поиска (backup/105).
 */

/* Знак ₸: в Century Gothic его нет. Раньше он брался из подогнанных запасных шрифтов (DejaVu −6 / −13 %, Arial +7 %) — мельче и ниже цифр;
   в макете — из системного шрифта без подгонки (Windows — Segoe UI, Linux — DejaVu Sans). Отдельное начертание только для ₸ (unicode-range),
   остальные буквы и подгонка запасных шрифтов не меняются (20.11, оценщики круга 1). */
@font-face { font-family: 'Svet Tenge'; src: local('Segoe UI'), local('SegoeUI'), local('DejaVu Sans'), local('DejaVuSans'), local('Roboto'), local('Roboto-Regular'); font-weight: 400; unicode-range: U+20B8; }
@font-face { font-family: 'Svet Tenge'; src: local('Segoe UI Bold'), local('SegoeUI-Bold'), local('DejaVu Sans Bold'), local('DejaVuSans-Bold'), local('Roboto Bold'), local('Roboto-Bold'); font-weight: 700; unicode-range: U+20B8; }
header.bx-header.hs, footer.hf { font-family: 'Century Gothic', 'Svet Tenge', 'Century Gothic Fallback A', 'Century Gothic Fallback R', 'Century Gothic Fallback D', sans-serif; }
/* шаблон: a, .btn-link { font-weight: 500 } — в листе у ссылок начертание родителя (400). :where — специфичность как у правила шаблона, классы с явным начертанием сильнее */
:where(.h5, .h5-dialog, header.bx-header.hs, footer.hf) a { font-weight: inherit; }

/* Модель размеров — своя (на новой главной Bootstrap не подключается, а его reboot давал border-box всему сайту) */
header.bx-header.hs, header.bx-header.hs *, header.bx-header.hs *::before, header.bx-header.hs *::after,
footer.hf, footer.hf *, footer.hf *::before, footer.hf *::after { box-sizing: border-box; }

/* ===================== Шапка: компьютер ===================== */
header.bx-header.hs { background: #FFFFFF; padding: 0; margin: 0; border: 0; color: #212529; }   /* position и тень — как у шаблона (на телефоне шапка закреплена: css/mobile-header.css) */
header.bx-header.hs a { text-decoration: none; }
.hs-svc { background: #F1F6F9; }
.hs-svc-in { max-width: 1318px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 24px; font-size: 13px; line-height: 18px; }
.hs-svc-g { display: flex; flex-wrap: wrap; gap: 0 28px; }
header.bx-header.hs .hs-svc-g a { padding: 8px 0; color: #4F575E; }
header.bx-header.hs .hs-svc-g a:hover { color: #51A564; }

header.bx-header.hs .bx-header-section.hs-in { width: 100%; max-width: 1318px; margin: 0 auto; padding: 0 24px; }
.hs-main { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 14px 0; }
header.bx-header.hs .hs-burger, header.bx-header.hs .hs-icons .hs-ico--call { display: none; }
header.bx-header.hs .hs-logo { display: flex; flex-shrink: 0; width: auto; }
header.bx-header.hs .hs-logo img { display: block; height: 52px; width: auto; max-width: none; border-radius: 0; }

header.bx-header.hs .hs-cat { flex-shrink: 0; height: 46px; margin: 0; padding: 0 20px; border: 0; border-radius: 5px; background: #51A564; color: #FFFFFF;
	font-family: inherit; font-size: 16px; font-weight: 600; line-height: normal; letter-spacing: normal; display: flex; align-items: center; gap: 10px; cursor: pointer; }
header.bx-header.hs .hs-cat:hover { background: #4C9B5E; }   /* на 6 % темнее, как в 101 */
header.bx-header.hs .hs-cat:focus-visible { outline: 2px solid #212529; outline-offset: 2px; }
header.bx-header.hs button:focus:not(:focus-visible), footer.hf button:focus:not(:focus-visible) { outline: none; }   /* после касания рамка не остаётся; с клавиатуры — остаётся */

/* поле поиска (шаблон search.title/header) */
header.bx-header.hs .hs-search { flex: 1 1 320px; min-width: 0; width: auto; margin: 0; }
header.bx-header.hs .hs-sf { width: 100%; margin: 0; padding: 0; }
header.bx-header.hs .hs-form { position: relative; height: 46px; margin: 0; border: 1px solid #C4C4C4; border-radius: 5px; background: #FFFFFF;
	display: flex; align-items: center; gap: 10px; padding: 0 5px 0 14px; }
header.bx-header.hs .hs-form:focus-within { border-color: #212529; }
header.bx-header.hs .hs-sbtn { position: static; flex-shrink: 0; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; display: flex; cursor: pointer; }
header.bx-header.hs .hs-sbtn svg { width: 20px; height: 20px; display: block; }
html header.bx-header.hs .hs-form #title-search-input,
html.pe-on header.bx-header.hs .hs-form #title-search-input,
html.pe-on.pe-narrow header.bx-header.hs .hs-form #title-search-input { flex: 1 1 auto; min-width: 0; width: auto; height: 44px; margin: 0; padding: 0 !important; border: 0; border-radius: 0;
	background: transparent; box-shadow: none; outline: none !important; font-family: inherit; font-size: 15px; line-height: 24px; color: #212529; text-overflow: ellipsis; }
header.bx-header.hs .hs-form #title-search-input::placeholder { color: transparent !important; opacity: 0; }
header.bx-header.hs .hs-ph { position: absolute; left: 44px; right: 125px; top: 10px; height: 24px; font-size: 15px; line-height: 24px; color: #4F575E;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
header.bx-header.hs .hs-ph-m { display: none; }
header.bx-header.hs #title-search-input:not(:placeholder-shown) ~ .hs-ph { display: none; }
header.bx-header.hs .hs-pill { flex-shrink: 0; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 5px; background: #EFF0F1;
	font-size: 13px; font-weight: 600; line-height: 24px; color: #212529; pointer-events: none; white-space: nowrap; }
header.bx-header.hs .hs-pill svg { flex-shrink: 0; display: block; }
html.pe-off header.bx-header.hs .hs-pill { display: none; }   /* виджета поиска нет за 5 с — плашку не показываем */
html:not(.svs-on) header.bx-header.hs .hs-pill { pointer-events: auto; cursor: pointer; }   /* главная: виджет грузится по обращению — до загрузки плашка сама принимает нажатие (js/shell105.js) */
header.bx-header.hs .hs-form:has(.svs-photo:hover) .hs-pill { background: #E3E6E9; }
/* кнопка камеры виджета — прозрачная поверх плашки: нажатие принимает она сама (окно «Поиск по фото», замер photo-entry «header») */
html header.bx-header.hs .hs-form .svs-photo,
html.pe-on header.bx-header.hs .hs-form .svs-photo,
html.pe-on header.bx-header.hs .hs-form .svs-photo:hover,
html.pe-on header.bx-header.hs .hs-form .svs-photo:focus,
html.pe-on header.bx-header.hs .hs-form .svs-photo:active,
html.pe-on.pe-narrow header.bx-header.hs .hs-form .svs-photo { position: absolute !important; top: 5px !important; right: 5px !important; left: auto !important; bottom: auto !important;
	transform: none !important; width: var(--hs-pill-w, 105px) !important; min-width: 0 !important; height: 34px !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 5px !important; background: transparent !important; background-color: transparent !important; box-shadow: none !important;
	color: transparent !important; opacity: 1 !important; display: block !important; z-index: 2 !important; cursor: pointer; }
html header.bx-header.hs .hs-form .svs-photo > * { visibility: hidden !important; }
html header.bx-header.hs .hs-form .svs-photo::before, html header.bx-header.hs .hs-form .svs-photo::after { content: none !important; display: none !important; }
html.pe-on header.bx-header.hs .hs-form .svs-photo:focus-visible { outline: 2px solid #212529 !important; outline-offset: 2px !important; }
header.bx-header.hs .hs-form .pe-type, header.bx-header.hs .hs-form .pe-ring { display: none !important; }   /* «печатающаяся» фраза photo-entry поверх поля — в макете её нет */

/* телефон и «Обратный звонок» */
header.bx-header.hs .hs-phone { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }
header.bx-header.hs .hs-tel { font-size: 17px; line-height: 24px; font-weight: 600; color: #212529; font-variant-numeric: tabular-nums; white-space: nowrap; }
header.bx-header.hs .hs-cb { font-size: 13px; line-height: 18px; color: #4F575E; text-decoration: underline; text-underline-offset: auto; white-space: nowrap; }   /* как в листе: подчёркивание браузера (круг 1) */
header.bx-header.hs .hs-tel:hover, header.bx-header.hs .hs-cb:hover { color: #51A564; }

/* значки 44 × 44: избранное, корзина (компонент vbasket — свой рисунок маской), кабинет */
header.bx-header.hs .hs-icons { flex-shrink: 0; display: flex; gap: 4px; margin: 0; }
header.bx-header.hs .hs-ico { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #212529; }
header.bx-header.hs a.hs-ico:hover { color: #51A564; }
header.bx-header.hs .hs-ico > svg { display: block; flex-shrink: 0; }
header.bx-header.hs #baskettop .bx-basket, header.bx-header.hs #baskettop .top-cart { width: 44px; height: 44px; margin: 0; padding: 0; position: static; }
header.bx-header.hs #baskettop .top-cart > a { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
header.bx-header.hs #baskettop .top-cart-img { width: 24px; height: 24px; display: block; margin: 0; }
header.bx-header.hs #baskettop .top-cart-img svg { display: none !important; }
header.bx-header.hs #baskettop .top-cart-img::before { content: ""; display: block; width: 24px; height: 24px; background-color: #212529;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.3l2-8H7'/%3E%3Ccircle cx='9.5' cy='19' r='1.3'/%3E%3Ccircle cx='17' cy='19' r='1.3'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.3l2-8H7'/%3E%3Ccircle cx='9.5' cy='19' r='1.3'/%3E%3Ccircle cx='17' cy='19' r='1.3'/%3E%3C/svg%3E") center / 24px 24px no-repeat; }
header.bx-header.hs #baskettop .top-cart > a:hover .top-cart-img::before { background-color: #51A564; }
/* счётчики (111, З3): по листу Main корзины (audit/2026-11-20-cart) — зелёный круг 16 px с белой цифрой 10/16, справа сверху внутри своей клетки 44 × 44; у избранного — тот же вид */
header.bx-header.hs .hs-ico--wish .wishcount,
header.bx-header.hs #baskettop #top-cart-amount { position: absolute; top: 4px; right: 2px; left: auto; bottom: auto; min-width: 16px; width: auto; height: 16px; padding: 0 4px; margin: 0; box-sizing: border-box;
	border: 0; border-radius: 8px; background: #51A564; color: #FFFFFF; font-size: 10px; line-height: 16px; font-weight: 600; text-align: center; box-shadow: none; transform: none; }

/* строка разделов (svet:catalog.megamenu): 12 пунктов, 13/18 жирный, прописные, 0,04em, поля 13, равномерно; линия #EFF0F1 сверху */
header.bx-header.hs .svm { background: transparent; z-index: 90; }
header.bx-header.hs .svm .svm-bar.container { width: auto; max-width: none; margin: 0; padding: 0; }
header.bx-header.hs .svm-list { border-top: 1px solid #EFF0F1; border-bottom: 0; justify-content: space-between; gap: 0 20px; }
header.bx-header.hs .svm-link { padding: 13px 0; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #212529; }
header.bx-header.hs .svm-link::after, header.bx-header.hs .svm-item:first-child > .svm-link::after, header.bx-header.hs .svm-item:last-child > .svm-link::after { left: 0; right: 0; }
header.bx-header.hs .svm-item--sale > .svm-link { color: #212529; }
header.bx-header.hs .svm-link:hover, header.bx-header.hs .svm-item.is-open > .svm-link, header.bx-header.hs .svm-item--sale > .svm-link:hover { color: #51A564; }
header.bx-header.hs .svm-panel { left: 0; right: 0; }

/* промежуточные ширины (2.4): строка без переноса — сжимается поле поиска; на 825–1023 вместо номера телефона — значок звонка (как на телефоне) */
@media (min-width: 825px) {
	.hs-main { flex-wrap: nowrap; }
}
@media (min-width: 825px) and (max-width: 1199.98px) {
	.hs-main { gap: 16px 24px; }
	header.bx-header.hs .hs-ph-d { display: none; }
	header.bx-header.hs .hs-ph-m { display: inline; }
}
@media (min-width: 825px) and (max-width: 899.98px) {
	/* 106 Б4: на 825–899 и короткая подсказка не помещалась (132–175 px при тексте 183) — у плашки «По фото» только значок камеры, 44 px */
	header.bx-header.hs { --hs-pill-w: 44px; }
	header.bx-header.hs .hs-pill { font-size: 0; gap: 0; padding: 0 13px; }
	header.bx-header.hs .hs-ph { right: 60px; }
}
@media (min-width: 1024px) and (max-width: 1099.98px) {
	.hs-main { gap: 16px 16px; }   /* 106 Б4: на 1024 подсказка «Люстра, бренд, артикул» не помещалась на 8 px («арти…») — промежутки 24 → 16 */
}
@media (min-width: 825px) and (max-width: 1023.98px) {
	.hs-main { gap: 16px; }
	header.bx-header.hs .hs-phone { display: none; }
	header.bx-header.hs .hs-icons .hs-ico--call { display: flex; }
}
@media (max-width: 1099.98px) {
	header.bx-header.hs .svm-link { font-size: 12px; }
	header.bx-header.hs .svm-list { gap: 0 12px; }
}

/* ===================== Шапка: телефон (≤ 824 px, порог шаблона) ===================== */
@media (max-width: 824px) {
	.hs-svc { display: none; }
	header.bx-header.hs { padding: 8px 16px 12px; }
	header.bx-header.hs .bx-header-section.hs-in { max-width: none; padding: 0; }
	.hs-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-areas: "b l c" "s s s"; gap: 8px 0; padding: 0; }
	header.bx-header.hs .hs-burger { grid-area: b; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 0 -10px; padding: 0;
		border: 0; border-radius: 0; background: none; color: #212529; cursor: pointer; }
	header.bx-header.hs .hs-burger svg { display: block; }
	header.bx-header.hs .hs-logo { grid-area: l; justify-self: center; }
	header.bx-header.hs .hs-logo img { height: 38px; }
	header.bx-header.hs .hs-cat, header.bx-header.hs .hs-phone, header.bx-header.hs .hs-ico--wish, header.bx-header.hs .hs-ico--cart, header.bx-header.hs .hs-ico--user { display: none !important; }
	header.bx-header.hs .hs-icons { grid-area: c; justify-self: end; margin: 0 -10px 0 0; gap: 0; }
	header.bx-header.hs .hs-icons .hs-ico--call { display: flex; }
	header.bx-header.hs .hs-search { grid-area: s; }
	header.bx-header.hs .hs-form { height: 44px; padding: 0 5px 0 12px; gap: 8px; }
	html header.bx-header.hs .hs-form #title-search-input, html.pe-on header.bx-header.hs .hs-form #title-search-input { height: 42px; }
	header.bx-header.hs .hs-ph { left: 40px; right: 115px; top: 9px; }
	header.bx-header.hs .hs-ph-d { display: none; }
	header.bx-header.hs .hs-ph-m { display: inline; }
	header.bx-header.hs .hs-pill { height: 32px; padding: 0 10px; }
	html header.bx-header.hs .hs-form .svs-photo,
	html.pe-on header.bx-header.hs .hs-form .svs-photo,
	html.pe-on header.bx-header.hs .hs-form .svs-photo:hover,
	html.pe-on header.bx-header.hs .hs-form .svs-photo:focus,
	html.pe-on header.bx-header.hs .hs-form .svs-photo:active { top: 5px !important; right: 5px !important; width: var(--hs-pill-w-m, 101px) !important; height: 32px !important; }
}
@media (max-width: 374.98px) {
	header.bx-header.hs { --hs-pill-w-m: 77px; }
	header.bx-header.hs .hs-pill svg { display: none; }
	header.bx-header.hs .hs-ph { right: 90px; }
}

/* ===================== Подвал: компьютер ===================== */
footer.hf { margin: 64px 0 0; padding: 0; background: #FFFFFF; color: #212529; font-size: 14px; line-height: 20px; }
.form-block + footer.hf { margin-top: 0; }   /* на остальных страницах над подвалом — форма «Менеджер» со своим отступом снизу (как было) */
footer.hf a { text-decoration: none; }
.hf-in { max-width: 1318px; margin: 0 auto; padding: 48px 24px 28px; }
.hf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.hf-brand { grid-column: span 3; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
footer.hf .hf-logo { display: block; height: 52px; width: auto; max-width: none; align-self: flex-start; }
footer.hf .hf-tel { font-size: 20px; line-height: 26px; font-weight: 600; color: #212529; font-variant-numeric: tabular-nums; align-self: flex-start; }
.hf-hours { color: #4F575E; }
footer.hf .hf-wa { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: #212529; }
.hf-wa svg { flex-shrink: 0; display: block; }
.hf-soc { display: flex; gap: 8px; }
footer.hf .hf-soc a { width: 44px; height: 44px; border: 1px solid #C4C4C4; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #212529; }
footer.hf .hf-soc a:hover { border-color: #212529; }
.hf-col { grid-column: span 3; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
footer.hf .hf-h { display: flex; align-items: center; justify-content: space-between; width: auto; margin: 0 0 4px; padding: 0; border: 0; border-radius: 0; background: none;
	font-family: inherit; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: normal; color: #212529; text-align: left; cursor: default; pointer-events: none; }
.hf-arr { display: none; flex-shrink: 0; transition: transform .2s ease; }
.hf-list { display: flex; flex-direction: column; gap: 8px; }
footer.hf .hf-list a { color: #4F575E; }
@media (hover: hover) { footer.hf a:hover, footer.hf .hf-list a:hover { color: #51A564; } }   /* на сенсорных экранах подсветка «залипала» на ссылке под пальцем после раскрытия списка */
.hf-bot { margin-top: 36px; padding-top: 20px; border-top: 1px solid #EFF0F1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
	font-size: 13px; line-height: 18px; color: #4F575E; }
.hf-docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.hf .hf-docs a { color: #4F575E; text-decoration: underline; text-underline-offset: auto; }
.hf-pays { display: block; }
.hf-pays img { display: block; height: 26px; width: auto; }
.hf-tabgap { display: none; }
@media (min-width: 825px) and (max-width: 1419.98px) { .hf-bot.hf-bot--wa { padding-right: 72px; } }   /* кнопка WhatsApp (48 px у правого края) не накрывает значки оплаты; класс ставит сервер (без :has на body — дешевле пересчёт стилей) */
@media (min-width: 825px) { footer.hf { box-shadow: 0 50vh 0 50vh #FFFFFF; } }   /* страница короче окна (404) — под подвалом белое, а не полоса фона */

/* ===================== Подвал: телефон ===================== */
@media (max-width: 824px) {
	footer.hf { margin-top: 32px; }
	.hf-in { display: flex; flex-direction: column; padding: 8px 16px 20px; }
	@media (min-width: 768px) { .hf-in { padding-left: 24px; padding-right: 24px; } }   /* 768–824: поля как у главной и разделов (24), а не телефонные 16 (visual-qa круг 2) */
	.hf-grid, .hf-brand, .hf-bot { display: contents; }
	footer.hf .hf-logo { display: none; }
	.hf-col { order: 1; display: block; }
	footer.hf .hf-h { box-sizing: content-box; width: 100%; min-height: 48px; margin: 0; border-bottom: 1px solid #EFF0F1; line-height: 24px; cursor: pointer; pointer-events: auto; }
	.hf-arr { display: block; }
	.hf-col:not(.is-closed) .hf-arr { transform: rotate(180deg); }
	.hf-list { gap: 0; padding: 4px 0 8px; border-bottom: 1px solid #EFF0F1; }
	footer.hf .hf-list a { min-height: 40px; display: flex; align-items: center; }
	.hf-col.is-closed .hf-list { display: none; }
	footer.hf .hf-tel { order: 2; margin-top: 16px; min-height: 44px; display: flex; align-items: center; }
	.hf-hours { order: 3; font-size: 13px; line-height: 18px; }
	footer.hf .hf-wa { order: 4; margin-top: 6px; min-height: 44px; font-size: 15px; line-height: 20px; }
	.hf-wa svg { width: 22px; height: 22px; }
	.hf-soc { order: 5; margin-top: 8px; }
	.hf-pays { order: 6; margin-top: 18px; align-self: flex-start; }
	.hf-pays img { height: 24px; }
	.hf-docs { order: 7; margin-top: 12px; flex-direction: column; gap: 0; }
	footer.hf .hf-docs a { min-height: 32px; display: flex; align-items: center; align-self: flex-start; }
	.hf-copy { order: 8; margin-top: 8px; }
	.hf-tabgap { display: block; height: 63px; background: #FFFFFF; }   /* высота нижней панели (.side-panel: 62 + линия 1, 106 Г) */
}
@media (max-width: 991.98px) { .hf-tabgap.hf-tabgap--card { display: block; height: 122px; background: #FFFFFF; } }   /* карточка: полоса покупки 68 px над нижней панелью 54 px (класс — с сервера) */

/* ===================== Карточка товара: место под h1 до его разбора (побочный эффект смены шапки) =====================
 * На ≤ 991 px карточка (101/102, components/bitrix/catalog.element/store_v3/buy.css) ставит .sb-head (марка, h1, артикул — 78 px + зазор 12)
 * над фото через order, а в разметке он стоит после галереи (≈33 КБ ниже). Если браузер рисует страницу до разбора .sb-head, фото потом
 * съезжает на 90 px: в замере 105 после смены шапки CLS карточки на телефоне 0 → 0,053 (граница пакета данных сдвинулась вместе с весом шапки).
 * Пока .sb-head нет — над фото держим его место; появился — место занимает он сам. Остаток — только если h1 длиннее одной строки.
 * Для сессии карточки: надёжнее поставить .sb-head в разметке до галереи. */
@media (max-width: 991.98px) {
	.product-detail.sb-grid:not(:has(.sb-head)) > .product-detail-slider-container-wrap { margin-top: 90px; }
}

/* 105 ч. 8: подвал всегда ниже первого экрана — браузер не раскладывает и не рисует его, пока до него не долистали (TBT телефона). Размер — из макета. */
footer.hf { content-visibility: auto; contain-intrinsic-size: auto 379px; }
@media (max-width: 824px) { footer.hf { contain-intrinsic-size: auto 499px; } }

/* Пустой контейнер подсказок поиска Битрикса (JCTitleSearch добавляет его в конец <body>; подсказки сайта — виджет svet-search):
   без стиля он давал 2 px рамок под подвалом на всех страницах (круг 1, 20.11). Когда в нём есть подсказки — как было. */
.title-search-result { position: absolute; }
.title-search-result:empty { display: none; }

/* Внутренние страницы на 1281–1399: контейнер шаблона там 1280 (+16 и +10 полей содержимого) — край шапки и подвала по сетке макета (1270)
   стоял на 21 px левее заголовков и крошек страницы (1366: 48 против 69). Здесь шапка и подвал идут по краю содержимого страницы.
   Главная (сетка макета) и остальные ширины (разница 1–2 px) — без изменений (visual-qa круг 2). */
@media (min-width: 1281px) and (max-width: 1399.98px) {
	header.bx-header.hs--inner .hs-svc-in, header.bx-header.hs--inner .bx-header-section.hs-in, footer.hf--inner .hf-in { max-width: 1280px; padding-left: 26px; padding-right: 26px; }
}

/* ===================== 106 Г: нижняя панель телефона по листу Phone (tabbar) — на всех страницах =====================
   Фон #FFF, линия сверху #EFF0F1, 62 px + линия, пять равных колонок; значки 22 px контуром 1,7 (текущий — #51A564, 1,9), подписи 11/14 #4F575E,
   текущий — #212529 и 600; фиолетового круга «По фото», тени и ярко-зелёного #13B510 нет. Значки «Главная», «Каталог», «По фото», «Избранное» —
   встроенные SVG с путями листа в header.php (svg.tb-ico, цвет через color): маски на data-URI у закреплённой панели стоили ~170 мс LCP раздела
   на телефоне (А/Б). Корзина — значок компонента, у неё маска, как была в шаблоне (template_styles), только путь листа. Зелёной точки 7 px в листе
   нет — текущий раздел по листу. Вся колонка нажимается (::after ссылки на весь пункт); счётчики — у значка. Всё, что прилипает к низу, — над панелью 63. */
@media (max-width: 824px) {
	html body .side-panel { box-sizing: content-box !important; height: 62px; padding: 0 !important; border-top: 1px solid #EFF0F1; background: #FFFFFF; box-shadow: none !important; grid-template-columns: repeat(5, minmax(0, 1fr)); }
	html body .side-panel .side-panel-item { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #4F575E; }
	html body .side-panel .side-panel-item > a, html body .side-panel .top-cart > a { position: static; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: inherit; }
	html body .side-panel .side-panel-item > a::after, html body .side-panel .top-cart > a::after { content: ''; position: absolute; inset: 0; }   /* вся колонка — ссылка */
	html body .side-panel .side-panel-item-cart, html body .side-panel .bx-basket, html body .side-panel .top-cart { position: static; display: flex; justify-content: center; }
	html body .side-panel svg.tb-ico { display: block; width: 22px; height: 22px; color: inherit; }
	html body .side-panel svg.tb-ico :is(path, rect, circle) { fill: none !important; stroke: currentColor !important; stroke-width: 1.7px !important; }   /* перебивает заливку и обводку шаблона и photo-entry */
	html body .side-panel .side-panel-item.is-active { color: #51A564; }
	html body .side-panel .side-panel-item.is-active svg.tb-ico :is(path, rect, circle) { stroke-width: 1.9px !important; }
	html body .side-panel .side-panel-item-link:hover { color: #212529; }
	html body .side-panel .side-panel-item.is-active .side-panel-item-link:hover { color: #51A564; }
	html body .side-panel .side-panel-item.pe-bottom .pe-bottom-btn { width: 22px !important; height: 22px !important; margin: 0 !important; position: static !important; color: inherit; }
	html body .side-panel .side-panel-item.pe-bottom .pe-bottom-ico { width: 22px; height: 22px; margin: 0; border-radius: 0; transform: none; background: none; }
	html body .side-panel .pe-bottom-ico svg.tb-ico { width: 22px; height: 22px; }
	html body .side-panel .pe-bottom-btn:focus-visible { outline: 2px solid #51A564; outline-offset: 4px; border-radius: 5px; }
	html body .side-panel .pe-new { display: none !important; }   /* фиолетовая точка «новое» — в листе её нет */
	html body .side-panel .top-cart-img { display: block; width: 22px; height: 22px; }
	html body .side-panel .top-cart-img svg { display: none !important; }
	html body .side-panel .top-cart-img::before { content: ''; display: block; width: 22px; height: 22px; background-color: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.3l2-8H7'/%3E%3Ccircle cx='9.5' cy='19' r='1.3'/%3E%3Ccircle cx='17' cy='19' r='1.3'/%3E%3C/svg%3E") center / 22px 22px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.3l2-8H7'/%3E%3Ccircle cx='9.5' cy='19' r='1.3'/%3E%3Ccircle cx='17' cy='19' r='1.3'/%3E%3C/svg%3E") center / 22px 22px no-repeat; }
	html body .side-panel .side-panel-item.is-active .top-cart-img::before { background-color: currentColor; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.3l2-8H7'/%3E%3Ccircle cx='9.5' cy='19' r='1.3'/%3E%3Ccircle cx='17' cy='19' r='1.3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.3l2-8H7'/%3E%3Ccircle cx='9.5' cy='19' r='1.3'/%3E%3Ccircle cx='17' cy='19' r='1.3'/%3E%3C/svg%3E"); }
	html body .side-panel .side-panel-item > span { position: static; top: auto; font-size: 11px !important; line-height: 14px; letter-spacing: 0 !important; font-weight: 400; color: #4F575E; white-space: nowrap; }
	html body .side-panel .side-panel-item.is-active > span { color: #212529; font-weight: 600; }
	/* счётчики — кружок у правого верхнего угла значка (позиция — от пункта: ссылка растянута на всю колонку) */
	html body .side-panel #top-cart-amount, html body .side-panel .wishcount { position: absolute; top: 5px; left: calc(50% + 4px); right: auto; background: #51A564; z-index: 1; pointer-events: none; }
	/* место под панелью и над ней: подвал, полоса покупки карточки (buy.css: 54 px), кнопки фильтра и покупки; отступ подвала под кнопкой фильтра —
	   правило шаблона (114 px, body:has); свой :has не добавляем — на body он перепроверяет стили при каждом изменении страницы (А/Б раздела: +TBT) */
	.hf-tabgap { height: 63px; }
	body .catalog-filter-wrap, body .product-item-detail-buy-button-block { bottom: 63px; }
	html body .sb-bar { bottom: calc(63px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 824px) { .hf-tabgap.hf-tabgap--card { height: 131px; } }   /* карточка: полоса покупки 68 + панель 63 */
