/* Общие блоки страниц услуг и прайса DC TUNING: крошки, таблицы цен, кейсы, FAQ.
   Подключают page_price.php, page_service_wrap.php, page_service_paintprotection.php.
   Сетка — та же, что у блоков темы: width 85% + margin auto. */
:root {
	--dc-red: #d40000;
	--dc-line: #2a2a2a;
	--dc-muted: #9a9a9a;
	--dc-soft: #c9c9c9;
	--dc-h2: clamp(21px, 2.2vw, 40px);
	--dc-body: clamp(15px, 1.05vw, 18px);
}

.dc-wrap { width: 85%; margin-left: auto; margin-right: auto; font-family: Montserrat, sans-serif; }

/* Крошки */
.dc-crumbs { padding: 28px 0 22px; }
.dc-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.dc-crumbs li + li::before { content: '/'; margin-right: 8px; color: #7a7a7a; }
.dc-crumbs a { color: var(--dc-muted); text-decoration: none; }
.dc-crumbs a:hover { color: var(--dc-red); }
.dc-crumbs span { color: var(--dc-soft); }

/* Заголовок секции как у блоков темы */
.dc-h2 { margin: 0 0 26px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: var(--dc-h2); line-height: 1.25; text-transform: uppercase; }

/* Таблица цен */
.dc-ptable { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dc-ptable table { width: 100%; min-width: 560px; border-collapse: collapse; font-family: Montserrat, sans-serif; font-variant-numeric: tabular-nums; }
/* одинаковые колонки во всех таблицах — цены встают ровно друг под другом */
.dc-ptable table { table-layout: fixed; }
.dc-ptable thead th:first-child { width: 40%; }
.dc-ptable thead th:last-child { padding-right: 0; }
.dc-ptable thead th { padding: 0 18px 12px; border-bottom: 1px solid #3a3a3a; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-muted); text-align: right; white-space: nowrap; }
.dc-ptable thead th:first-child { padding-left: 0; text-align: left; }
.dc-ptable tbody th, .dc-ptable tbody td { padding: 18px; border-bottom: 1px solid var(--dc-line); vertical-align: baseline; }
.dc-ptable tbody th { padding-left: 0; font-size: var(--dc-body); font-weight: 500; line-height: 1.45; text-align: left; }
.dc-ptable tbody td { font-size: clamp(17px, 1.35vw, 24px); font-weight: 700; text-align: right; white-space: nowrap; }
.dc-ptable tbody td:last-child { padding-right: 0; }

/* Сноски и допуслуги под таблицей */
.dc-pnote { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--dc-soft); }
.dc-pnote::before { content: '*'; margin-right: 6px; color: var(--dc-red); font-weight: 700; }
.dc-pzone { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin: 16px 0 0; padding: 16px 18px; border: 1px solid var(--dc-line); font-size: 15px; line-height: 1.55; }
.dc-pzone span { color: var(--dc-soft); }
.dc-pzone strong { font-size: clamp(17px, 1.35vw, 22px); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Контекстная ссылка в карточках преимуществ темы (светлый фон) */
.wdp_features a { color: var(--dc-red); border-bottom: 1px solid currentColor; text-decoration: none; }
.wdp_features a:hover { border-bottom-color: transparent; }

/* Логотипы брендов: растровые PNG не растягиваем под размеры соседних SVG */
.material .rightside img { object-fit: contain; }

/* Ссылка в тексте блока контактов темы (.cta) */
.cta strong a { color: inherit; border-bottom: 2px solid var(--dc-red); text-decoration: none; }

/* Подсветка при наведении — только там, где есть мышь: на телефоне hover залипает после касания */
@media (hover: hover) {
	.dc-ptable tbody tr:hover td { color: var(--dc-red); }
	.dc-case:hover .dc-case__title { color: var(--dc-red); }
	.cta strong a:hover { color: var(--dc-red); }
}

/* Заголовок «Индивидуальность. Эстетика. Защита.» на страницах услуг: тема ставит 48px от 1200px,
   а колонка всего 520px — на ширинах до ~1420px слово залезает на текст справа */
@media (min-width: 1200px) {
	.title .bottom .leftside { font-size: clamp(34px, 3vw, 48px) !important; }
}

/* Блок стоимости на странице услуги */
.dc-wprice { padding: 60px 0 10px; }
.dc-wprice__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.dc-wprice__meta { margin: 0 0 22px; font-size: var(--dc-body); line-height: 1.7; }
.dc-wprice__cta { padding: 34px; border: 1px solid var(--dc-line); }
.dc-wprice__cta p { margin: 0 0 20px; font-size: var(--dc-body); line-height: 1.6; }
.dc-wprice__cta a { color: inherit; border-bottom: 1px solid var(--dc-red); text-decoration: none; }
.dc-wprice__cta a:hover { color: var(--dc-red); }

/* Кейсы портфолио */
.dc-cases { padding: 60px 0 70px; }
.dc-cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dc-case { display: block; color: inherit; text-decoration: none; }
.dc-case img { display: block; width: 100%; height: auto; aspect-ratio: 38 / 25; object-fit: cover; }
.dc-case__title { display: block; margin: 12px 0 4px; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.dc-case__sub { display: block; font-size: 12px; text-transform: uppercase; color: var(--dc-muted); }
.dc-cases__all { display: inline-block; margin-top: 28px; color: inherit; font-size: 15px; font-weight: 600; text-transform: uppercase; border-bottom: 2px solid var(--dc-red); text-decoration: none; }

/* FAQ */
.dc-faq { width: 85%; margin: 0 auto; padding: 60px 0 40px; font-family: Montserrat, sans-serif; }
.dc-faq__title { margin: 0 0 26px; font-weight: 700; font-size: var(--dc-h2); line-height: 1.25; text-transform: uppercase; }
.dc-faq__item { border-top: 1px solid var(--dc-line); }
.dc-faq__item:last-child { border-bottom: 1px solid var(--dc-line); }
.dc-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 22px 0; border: 0; background: none; color: inherit; font-family: Montserrat, sans-serif; font-size: var(--dc-body); font-weight: 600; text-align: left; cursor: pointer; }
.dc-faq__q:hover { color: var(--dc-red); }
.dc-faq__q:focus-visible { outline: 2px solid var(--dc-red); outline-offset: 4px; }
.dc-faq__q i { position: relative; flex: none; width: 18px; height: 18px; }
.dc-faq__q i::before, .dc-faq__q i::after { content: ''; position: absolute; top: 50%; left: 0; width: 18px; height: 2px; background: var(--dc-red); transform: translateY(-50%); transition: transform .25s ease, opacity .25s ease; }
.dc-faq__q i::after { transform: translateY(-50%) rotate(90deg); }
.dc-faq__item.is-open .dc-faq__q i::after { transform: translateY(-50%); opacity: 0; }
.dc-faq__a { max-width: 980px; padding: 0 0 22px; font-size: clamp(15px, .95vw, 17px); line-height: 1.7; }
.dc-faq__a[hidden] { display: none; }
.dc-faq__a p { margin: 0 0 12px; }
.dc-faq__a p:last-child { margin-bottom: 0; }
.dc-faq__a a { color: inherit; border-bottom: 1px solid var(--dc-red); text-decoration: none; }
.dc-faq__a a:hover { color: var(--dc-red); }

/* ---------- Страница «Прайс-лист 2026» ---------- */
/* Отступ по краям как у блоков темы (width 85% по центру); фон групп при этом идёт на всю ширину */
.dc-pricepage { --dc-gut: 7.5vw; position: relative; z-index: 0; padding-top: 110px; padding-bottom: 20px; font-family: Montserrat, sans-serif; }
/* Первый экран: веер образцов плёнки под шапкой и заголовком, сильно затемнён и уходит в чёрный к ценам */
.dc-pricepage::before { content: ''; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 640px;
	background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 50%, #000 100%), linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%), url(/wp-content/uploads/2025/10/color.jpg) right center / cover no-repeat; }
.dc-phead, .dc-pbody > :not(.dc-pgroup), .dc-pricepage > .dc-pcta { margin-left: var(--dc-gut); margin-right: var(--dc-gut); }
.dc-pricepage h1 { max-width: 1100px; margin: 0 0 28px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: clamp(28px, 3vw, 54px); line-height: 1.15; text-transform: uppercase; }
.dc-pricepage .dc-lead { max-width: 900px; margin-top: 0; margin-bottom: 16px; font-size: var(--dc-body); line-height: 1.7; }
.dc-pnav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; margin-bottom: 0; }
.dc-pnav a { padding: 10px 18px; border: 1px solid #fff; background: rgba(0,0,0,.35); color: inherit; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.dc-pnav a:hover { background: var(--dc-red); border-color: var(--dc-red); }
/* Группа цен: заголовок, слева целое фото с сайта, справа таблицы. Группы чередуются: тёмная, светлая, тёмная */
.dc-pgroup { padding: 90px var(--dc-gut); scroll-margin-top: 70px; }
.dc-pgroup > h2 { position: relative; margin: 0 0 40px; padding-top: 26px; border-top: 1px solid var(--dc-line); font-family: Montserrat, sans-serif; font-weight: 700; font-size: var(--dc-h2); line-height: 1.2; text-transform: uppercase; }
.dc-pgroup > h2::before { content: ''; position: absolute; top: -2px; left: 0; width: 64px; height: 3px; background: var(--dc-red); }
.dc-pgroup__grid { display: grid; grid-template-columns: clamp(260px, 26%, 400px) minmax(0, 1fr); gap: 60px; align-items: start; }
/* Фото спускается вдоль цен, пока виден его подраздел. Тема ставит overflow-x: hidden и на html, и на body —
   body становится отдельной прокручиваемой областью, и sticky не срабатывает. clip режет так же, но прокрутку не создаёт */
.page-template-page_price { overflow-x: clip; }
.dc-pgroup__photo { position: sticky; top: 110px; margin: 0; }
.dc-pgroup__photo img { display: block; width: 100%; height: auto; }
.dc-pgroup__body > h3:first-child { margin-top: 0; }
.dc-pgroup__body > .dc-pitem:first-child { padding-top: 0; }
.dc-pgroup__grid + .dc-pgroup__grid { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--dc-line); }
.dc-pgroup:nth-of-type(even) { --dc-line: #d6d6d6; --dc-muted: #6b6b6b; --dc-soft: #4a4a4a; background: #f3f3f3; color: #111; }
.dc-pgroup:nth-of-type(even) .dc-ptable thead th { border-bottom-color: #b9b9b9; }
.dc-pgroup:nth-of-type(even) .dc-pitem + .dc-pitem { border-top-color: #c9c9c9; }
.dc-pgroup:nth-of-type(even) .dc-pmeta b { color: #111; }
.dc-pgroup h3 { margin: 44px 0 4px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: clamp(18px, 1.5vw, 26px); line-height: 1.3; text-transform: uppercase; color: var(--dc-soft); }
.dc-pitem { display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr; gap: 20px 56px; padding: 30px 0; }
.dc-pitem + .dc-pitem { border-top: 1px dashed #333; }
.dc-pgroup__body .dc-pitem { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.dc-pgroup__body .dc-pmeta { max-width: 640px; }
/* без этого широкая таблица распирает колонку грида шире экрана */
.dc-pitem > div, .dc-wprice__grid > div { min-width: 0; }
.dc-pitem h4 { margin: 0 0 10px; font-family: Montserrat, sans-serif; font-weight: 700; font-size: clamp(16px, 1.15vw, 20px); line-height: 1.35; }
.dc-pmeta { margin: 0; font-size: 14px; line-height: 1.65; color: var(--dc-soft); }
.dc-pmeta b { color: #fff; font-weight: 600; }
.dc-pnotes { margin-top: 70px; margin-bottom: 0; padding: 30px 34px; border: 1px solid var(--dc-line); }
.dc-pnotes__title { margin: 0 0 14px; font-weight: 700; font-size: 16px; text-transform: uppercase; }
.dc-pnotes ul { margin: 0; padding: 0 0 0 18px; }
.dc-pnotes li { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--dc-soft); }
.dc-pnotes li::marker { color: var(--dc-red); }
/* Пометка «цены ориентировочные» под вступлением и ссылки во вступлении и примечаниях */
.dc-pricepage .dc-lead--note { padding-left: 16px; border-left: 3px solid var(--dc-red); }
.dc-pricepage .dc-lead a, .dc-pnotes a { color: inherit; border-bottom: 1px solid var(--dc-red); text-decoration: none; }
.dc-pricepage .dc-lead a:hover, .dc-pnotes a:hover { color: var(--dc-red); }
/* Категории автомобилей: марка и модели по категориям, текст в ячейках, а не цены */
.dc-pcars__lead { max-width: 820px; margin: 0 0 34px; font-size: var(--dc-body); line-height: 1.7; color: var(--dc-soft); }
.dc-cartable { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dc-cartable table { width: 100%; min-width: 860px; border-collapse: collapse; table-layout: fixed; font-family: Montserrat, sans-serif; }
.dc-cartable thead th { padding: 0 20px 12px 0; border-bottom: 1px solid var(--dc-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1.4; text-transform: uppercase; color: var(--dc-muted); text-align: left; vertical-align: bottom; }
.dc-cartable thead th:first-child { width: 17%; }
.dc-cartable tbody th, .dc-cartable tbody td { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--dc-line); font-size: var(--dc-body); line-height: 1.55; text-align: left; vertical-align: top; }
.dc-cartable tbody th { font-weight: 700; text-transform: uppercase; }
.dc-cartable tbody td { font-weight: 500; }
.dc-cartable tbody td:empty::before { content: '—'; color: var(--dc-muted); }
.dc-pcta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 60px; align-items: center; margin-top: 60px; margin-bottom: 40px; padding: 44px; background: #111; border-left: 3px solid var(--dc-red); }
.dc-pcta__title { margin: 0 0 10px; font-weight: 700; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.25; text-transform: uppercase; }
.dc-pcta p { margin: 0; font-size: var(--dc-body); line-height: 1.6; color: var(--dc-soft); }
.dc-pcta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dc-pcta__actions .btn { margin: 0; text-transform: uppercase; }
.dc-pcta__btn-alt { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border: 1px solid #fff; border-radius: 0; background: transparent; color: #fff; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.dc-pcta__btn-alt:hover { border-color: var(--dc-red); color: var(--dc-red); }
.dc-pcta__phone { display: flex; flex-wrap: wrap; gap: 8px 28px; flex-basis: 100%; margin-top: 6px; font-size: 15px; }
.dc-pcta__phone a { color: inherit; font-weight: 700; text-decoration: none; }
.dc-pcta__phone a:hover { color: var(--dc-red); }

@media (max-width: 1200px) {
	.dc-wprice__grid { grid-template-columns: 1fr; gap: 26px; }
	.dc-pitem { grid-template-columns: 1fr; gap: 18px; }
	.dc-pcta { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
	/* одна колонка: заголовок подраздела, под ним фото, потом цены */
	.dc-pgroup__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.dc-pgroup__grid + .dc-pgroup__grid { margin-top: 48px; padding-top: 48px; }
	.dc-pgroup__body { display: contents; }
	.dc-pgroup__body > h3:first-child { order: -1; }
	.dc-pgroup__photo { position: static; max-width: 420px; margin: 18px 0 8px; }
	.dc-pgroup__grid > .dc-pgroup__photo:first-child { margin-top: 0; }
}
@media (max-width: 768px) {
	.dc-wrap, .dc-faq { width: auto; margin-left: 16px; margin-right: 16px; }
	.dc-pricepage { --dc-gut: 16px; padding-top: 90px; }
	.dc-pricepage::before { height: 820px; background-image: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.7) 50%, #000 100%), linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.4) 100%), url(/wp-content/uploads/2025/10/color-768x359.jpg); }
	.dc-pgroup { padding-top: 56px; padding-bottom: 56px; }
	.dc-pgroup > h2 { margin-bottom: 26px; }
	.dc-pgroup:nth-of-type(even) .dc-ptable tbody tr { border-top-color: #b9b9b9; }
	.dc-pgroup:nth-of-type(even) .dc-ptable tbody td { border-top-color: #dcdcdc; }
	.dc-cases__grid { grid-template-columns: 1fr; gap: 22px; }
	.dc-wprice, .dc-cases, .dc-faq { padding-top: 40px; }
	.dc-wprice__cta, .dc-pnotes { padding: 24px; }
	.dc-pcta { padding: 26px 22px; }
	.dc-faq__q { font-size: 16px; }
	/* Таблица цен → карточки: строка «Категория N — цена» вместо горизонтальной прокрутки.
	   Подписи берём из порядка ячеек, разметку в редакторе менять не нужно. */
	.dc-ptable { overflow: visible; }
	.dc-ptable table, .dc-ptable tbody, .dc-ptable tr, .dc-ptable th, .dc-ptable td { display: block; }
	.dc-ptable table { min-width: 0; table-layout: auto; }
	.dc-ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.dc-ptable tbody tr { padding: 16px 0 8px; border-top: 1px solid #3a3a3a; }
	.dc-ptable tbody tr:last-child { border-bottom: 1px solid var(--dc-line); }
	.dc-ptable tbody th { padding: 0 0 6px; border: 0; font-size: 15px; }
	.dc-ptable tbody td { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border: 0; border-top: 1px dashed #262626; font-size: 19px; }
	.dc-ptable tbody td:last-child { padding-right: 0; }
	.dc-ptable tbody td::before { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dc-muted); }
	.dc-ptable tbody td:nth-of-type(1)::before { content: 'Категория 1'; }
	.dc-ptable tbody td:nth-of-type(2)::before { content: 'Категория 2'; }
	.dc-ptable tbody td:nth-of-type(3)::before { content: 'Категория 3'; }
	/* одна цена на строку (детейлинг): услуга и цена в одну линию, без подписи */
	.dc-ptable tbody tr:not(:has(td:nth-of-type(2))) { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; }
	.dc-ptable tbody tr:not(:has(td:nth-of-type(2))) th { padding: 0; }
	.dc-ptable tbody tr:not(:has(td:nth-of-type(2))) td { padding: 0; border: 0; }
	.dc-ptable tbody tr:not(:has(td:nth-of-type(2))) td::before { content: none; }
	.dc-pzone { flex-direction: column; padding: 14px 16px; }
	/* Категории автомобилей → карточка на марку: подпись категории слева, модели справа, пустые ячейки не показываем */
	.dc-cartable { overflow: visible; }
	.dc-cartable table, .dc-cartable tbody, .dc-cartable tr, .dc-cartable th, .dc-cartable td { display: block; }
	.dc-cartable table { min-width: 0; table-layout: auto; }
	.dc-cartable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.dc-cartable tbody tr { padding: 16px 0 6px; border-top: 1px solid var(--dc-muted); }
	.dc-cartable tbody tr:last-child { border-bottom: 1px solid var(--dc-line); }
	.dc-cartable tbody th { padding: 0 0 8px; border: 0; font-size: 16px; }
	.dc-cartable tbody td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 10px 0; border: 0; border-top: 1px dashed var(--dc-line); font-size: 15px; }
	.dc-cartable tbody td:empty { display: none; }
	.dc-cartable tbody td::before { font-size: 11px; font-weight: 600; letter-spacing: .06em; line-height: 1.9; text-transform: uppercase; color: var(--dc-muted); }
	.dc-cartable tbody td:nth-of-type(1)::before { content: 'Категория 1'; }
	.dc-cartable tbody td:nth-of-type(2)::before { content: 'Категория 2'; }
	.dc-cartable tbody td:nth-of-type(3)::before { content: 'Категория 3'; }
	.dc-cartable tbody td:nth-of-type(4)::before { content: 'Индивидуально'; }
}
@media (prefers-reduced-motion: reduce) {
	.dc-faq__q i::before, .dc-faq__q i::after, .dc-pnav a { transition: none; }
}
