/* 02.12.2026 «прайс-мобилка»: прайс на телефоне — в фирменном виде прайса с ПК (inc/prajs-mob-0212.php).
   Эталон — таблица «Услуга | Стоимость» на телефоне (/proektirovanie/stoimost): золотая шапка #cfa384
   (Hauora 500 16 px, #2b1d12), строки белые/#fbfbfb, ячейки 12px 8px, TildaSans 16 px #535353, название слева, цена справа.
   afix-0112.js на телефоне делает таблицы стопкой (.pd-afx-stk) — и 3+ колонки, и 2 колонки, если те не влезли
   в момент загрузки (поэтому вид прайса «прыгал» от страницы к странице). Здесь:
   — 2 колонки: всегда таблица-эталон (стопку отменяем);
   — 3+ колонки: стопка в виде эталона — золотая шапка, строка = название + строки «подпись … значение» справа.
   Только ≤767 px, ПК и планшет не трогаем. Откат — убрать require в functions.php или опция pd_prajs_mob_off=1. */
@media (max-width: 767px) {

	/* ---------- 2 колонки: вернуть таблицу-эталон ---------- */
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) { display: table !important; table-layout: auto !important; width: 100% !important; }
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) > thead { display: table-header-group !important; }
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) > tbody { display: table-row-group !important; }
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) tr,
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) tr.pd-afx-hd { display: table-row !important; padding: 0 !important; border: 0 !important; }
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) td,
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) th { display: table-cell !important; width: auto !important; padding: 12px 8px !important;
		vertical-align: top !important; text-align: left !important; line-height: 1.4 !important; }
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) td { border-bottom: 1px solid #fbfbfb !important; font-weight: 400; }
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) th { background: var(--pd-gold, #cfa384) !important; color: #2b1d12 !important;
		font: 500 16px/1.4 var(--pd-font-h, sans-serif) !important; }
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) td::before { content: none !important; }
	.area--price table.pd-afx-stk:not(:has(tr > :nth-child(3))) tbody tr > :only-child { font-weight: 700 !important; text-transform: uppercase; }

	/* ---------- 3+ колонки: стопка в виде эталона ---------- */
	/* шапка: та же золотая полоса, в ней — первая колонка (подписи остальных стоят в строках) */
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) > thead { display: block !important; }
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) > thead > tr,
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tr.pd-afx-hd { display: block !important; padding: 0 !important; border: 0 !important;
		background: var(--pd-gold, #cfa384) !important; }
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) > thead > tr > *,
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tr.pd-afx-hd > * { display: block !important; padding: 12px 8px !important; background: none !important;
		font: 500 16px/1.4 var(--pd-font-h, sans-serif) !important; color: #2b1d12 !important; text-align: left !important; }
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) > thead > tr > :not(:first-child),
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tr.pd-afx-hd > :not(:first-child) { display: none !important; }

	/* строки: белые/серые, поля как у ячеек эталона */
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody tr:not(.pd-afx-hd) { padding: 12px 8px !important; border: 0 !important; border-bottom: 1px solid #f1ebe5 !important; }
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody tr:nth-child(odd) { background: #fff !important; }
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody tr:nth-child(even) { background: #fbfbfb !important; }
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody tr:not(.pd-afx-hd) > * {
		font: 400 16px/1.4 var(--pd-font-t, sans-serif) !important; color: var(--pd-text, #535353) !important; padding: 4px 0 !important; }
	/* название позиции */
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody tr:not(.pd-afx-hd) > :first-child { font-weight: 600 !important; padding: 0 0 6px !important; }
	/* значения: подпись слева (float — значение может содержать <b>, <br>), значение справа */
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody td[data-l]:not(:first-child) { text-align: right !important; }
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody td[data-l]:not(:first-child)::before { content: attr(data-l) !important; float: left;
		margin-right: 12px; font-weight: 400 !important; color: #66727a !important; text-align: left; }
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody td[data-l]:not(:first-child)::after { content: ""; display: block; clear: both; }
	/* строка-группа («ОСНОВНЫЕ РАЗДЕЛЫ ПРОЕКТА») — как в эталоне: жирно, прописными */
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody tr > :only-child { padding: 0 !important; text-align: left !important;
		text-transform: uppercase; font-weight: 700 !important; }
	.area--price table.pd-afx-stk:has(tr > :nth-child(3)) tbody tr > :only-child::before { content: none !important; }
}
