/* Доделки аудита 01.12.2026 (inc/afix-0112.php). Откат — убрать require в functions.php. */

/* п.4 Заголовки: без переносов внутри слов (слово целиком переходит на новую строку; если слово шире строки —
   afix-0112.js уменьшает кегль заголовка на телефоне). */
h1, h2, h3, h4, .zt--h, .pd-sec-h, .pd-kc__t, .pd-cg__t, .pd-as-h2, .pd-as-h3, .pd-price-table th, .pd-price-table td {
	-webkit-hyphens: manual !important; hyphens: manual !important; word-break: normal !important; overflow-wrap: normal !important;
}

/* п.1 Заголовок (и подзаголовок) блока-ленты со стрелками на ПК — по центру, стрелки стоят по центру под ним. */
@media (min-width: 1200px) {
	.pd-afx-hc { text-align: center !important; margin-left: auto !important; margin-right: auto !important; }
	.zr.pd-afx-zr { justify-content: center !important; }
	.zr.pd-afx-zr > * { margin-left: 0 !important; }
	.zr.pd-afx-zr > .pd-afx-hc { margin-left: auto !important; margin-right: auto !important; }
}

/* п.3 Таблицы цен на телефоне — стопкой: строка = карточка, у значений подпись столбца. Без горизонтальной прокрутки. */
@media (max-width: 767px) {
	table.pd-afx-stk { display: block !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; overflow: visible !important; table-layout: auto !important; }
	.pd-afx-stk thead, .pd-afx-stk tr.pd-afx-hd { display: none !important; }
	.pd-afx-stk tbody, .pd-afx-stk tr, .pd-afx-stk td, .pd-afx-stk th { display: block !important; width: auto !important; min-width: 0 !important; max-width: 100% !important; }
	.pd-afx-stk tr { padding: 12px 14px !important; border-bottom: 1px solid #ece4dd; }
	.pd-afx-stk td, .pd-afx-stk th { padding: 2px 0 !important; border: 0 !important; background: none !important; text-align: left !important;
		white-space: normal !important; overflow-wrap: break-word; font-size: 16px !important; line-height: 1.45 !important; }
	.pd-afx-stk td:first-child, .pd-afx-stk th:first-child { font-weight: 600; padding-bottom: 6px !important; }
	.pd-afx-stk td:empty { display: none !important; }
	.pd-afx-stk td[data-l]:not(:first-child)::before { content: attr(data-l) ": "; font-weight: 500; color: #6b7a85; }
	.pd-price-scroll:has(> .pd-afx-stk) { overflow: visible !important; max-width: 100% !important; }
}

/* п.5 Кегль не меньше 16 px (остальное — afix-0112.js: всё мельче 16 → 16, текст карточек на ПК → 17). */
.pd-cf__expand { font-size: 16px !important; }
