/*
Theme Name: Cadillac Westline
Theme URI: https://cadillacwestline.ru
Author: artfyodorov
Author URI: https://cadillacwestline.ru
Description: Тема для автосервиса Cadillac и Chevrolet
Version: 1.0
Text Domain: cadillac-westline
*/

/* Базовые стили будут в main.css */

@media screen and (max-width:1100px)
{
	#header .mobile-messanger {
    display: flex;
    gap: 15px;
    width: 55%;
    margin-top: 0;
    justify-content: center;
    width: 59% !important;
    margin: 0 auto;
}
}

/* Карточки услуг на мобильных: одинаковая высота (перебивает height:auto из «Дополнительных стилей») */
@media screen and (max-width: 767px)
{
	#main .block-type-1 .services-content .service {
	    height: 160px !important;
	    overflow: hidden;
	}
	#main .block-type-1 .services-content .service a,
	#main .block-type-1 .services-content .service .image {
	    display: block;
	    height: 100%;
	}
	#main .block-type-1 .services-content .service .image img {
	    width: 100%;
	    height: 100%;
	    object-fit: cover;
	}
}

/* Блок с открытым квизом (template-parts/quiz-block.php) */
.cw-quiz-block {
    padding: 30px 0px;
    background-color: #f4f4f4;
    clear: both;
}
/* Общая рамка: заголовок + описание + квиз (оформление как у рамки квиза .sdaq) */
.cw-quiz-block .cw-quiz-card {
    box-sizing: border-box;
    max-width: 760px;
    margin: 0px auto;
    padding: 18px 24px 18px;
    background: #fff;
    border: 1px solid #d9dde3;
    border-radius: 16px;
}
/* !important — перебиваем общие правила страниц вида «#main.base-page .page-content h2/p» */
.cw-quiz-block .cw-quiz-block__title {
    margin: 0px 0px 4px 0px !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center !important;
    color: #1b1e23 !important;
}
.cw-quiz-block .cw-quiz-block__subtitle {
    margin: 0px auto 12px auto !important;
    max-width: 640px;
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    color: #626a75 !important;
}
/* Внутри общей рамки у самого квиза своя рамка не нужна */
.cw-quiz-block .cw-quiz .sdaq {
    max-width: none;
    padding: 0px;
    border: none;
    border-radius: 0px;
    background: transparent;
}
/* Квиз (и в блоке, и во всплывающем окне): карточки марок строго по 1/3 ширины —
   в плагине колонки 1fr, и широкие логотипы GMC/Chevrolet выталкивали третью карточку за экран телефона */
.sdaq .sdaq-choices--brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sdaq .sdaq-choices--brands .sdaq-choice__logo {
    max-width: 100%;
}
/* Квиз без скруглений углов (рамка блока, карточки, кнопки, поля, окно) — рамки остаются */
.cw-quiz-block .cw-quiz-card,
.sdaq,
.sdaq *,
.sdaq-modal,
.sdaq-modal * {
    border-radius: 0px !important;
}
/* Без тени у карточек выбора (тень им давало общее правило «button» из «Дополнительных стилей») */
.sdaq .sdaq-choice {
    box-shadow: none !important;
}
/* Заголовок блока уже есть выше — маленький заголовок внутри квиза не дублируем */
.cw-quiz-block .sdaq__title {
    display: none;
}
/* Компактный квиз в блоке: меньше отступов, ниже карточки марок и кнопки */
.cw-quiz-block .sdaq__progress {
    margin: 4px 0px 12px !important;
}
.cw-quiz-block .sdaq .sdaq__step-title {
    margin: 0px 0px 8px !important;
    font-size: 19px !important;
}
.cw-quiz-block .sdaq-field {
    margin-bottom: 12px !important;
}
.cw-quiz-block .sdaq .sdaq-choices--brands .sdaq-choice {
    min-height: 0px !important;
    padding: 10px 6px !important;
}
.cw-quiz-block .sdaq-choices--brands .sdaq-choice__logo {
    max-height: 30px !important;
}
.cw-quiz-block .sdaq__nav {
    margin-top: 12px !important;
    padding-top: 0px !important;
}
.cw-quiz-block .sdaq .sdaq__next,
.cw-quiz-block .sdaq .sdaq__back {
    min-height: 40px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
@media screen and (max-width: 767px)
{
	.cw-quiz-block .cw-quiz-card {
	    padding: 16px 14px 14px;
	}
}

/* Таблица цен в «Каталоге услуг» на страницах моделей (single-model.php) — без рамок */
.service-item .service-prices {
    width: 100%;
    margin: 0px;
    border: none;
    border-collapse: collapse;
    background: none;
}
.service-item .service-prices tr,
.service-item .service-prices td {
    border: none;
    background: none;
}
.service-item .service-prices td {
    padding: 3px 0px;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.3;
    color: #444;
}
.service-item .service-prices .service-prices__name {
    padding-right: 20px;
    font-weight: 500;
}
.service-item .service-prices .service-prices__value {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    color: #e12329;
}
@media screen and (max-width: 767px)
{
	.service-item .service-prices .service-prices__name {
	    padding-right: 12px;
	}
	/* «бесплатно при ремонте» переносится, чтобы таблица не вылезала за экран */
	.service-item .service-prices .service-prices__value {
	    width: 35%;
	    white-space: normal;
	}
}

/* Прозрачная обёртка плавающей кнопки MAX/Telegram перекрывала кнопку квиза «Рассчитать ремонт» —
   пропускаем нажатия сквозь неё; кликабельны только сама кнопка MAX и (при открытии) её меню */
#max-button-wrapper,
#max-button-wrapper .max-button-column {
    pointer-events: none !important;
}
#max-button-wrapper .max-button-mother {
    pointer-events: auto !important;
}

/* ПК: плавающая кнопка квиза «Рассчитать ремонт» (20px от низа, высота 50px) в самом низу страницы
   закрывала иконки соцсетей в подвале — даём подвалу место снизу (было 60px) */
@media screen and (min-width: 601px)
{
	#footer {
	    padding-bottom: 90px !important;
	}
}
/* Телефон: кнопки квиза и связи справа у самого низа, иконки соцсетей в подвале слева — хватает небольшого запаса */
@media screen and (max-width: 600px)
{
	#footer {
	    padding-bottom: 70px !important;
	}
}

/* Кнопка «Перейти в магазин тюнинга» на странице чип-тюнинга — в стиле кнопки «Записаться» */
#main.services-page.single .slider-text .tuning-shop-link {
    display: table;
    margin: 0px 0px 20px 0px;
    padding: 20px 35px;
    font-size: 13px;
    line-height: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background-color: #e12329;
    box-shadow: 9px 11px 30px 0px rgba(0,0,0,0.6);
    transition: background-color 0.2s linear;
}
#main.services-page.single .slider-text .tuning-shop-link:hover {
    background-color: #b81c21;
    color: #fff;
}
/* На десктопе у «Записаться» нижний отступ -20px, поэтому 35px дают зазор 15px */
@media screen and (min-width: 992px) and (max-width: 1199px)
{
	#main.services-page.single .slider-text .tuning-shop-link {
	    margin: 35px auto -20px auto;
	}
}
@media screen and (min-width: 1200px)
{
	#main.services-page.single .slider-text .tuning-shop-link {
	    margin: 35px 0px -20px 0px;
	    padding: 25px 45px;
	    font-size: 17px;
	    line-height: 17px;
	}
}

/* Кнопки «телефон» + «Оформить заявку» (p.self-center): текст в кнопке не переносится,
   вторая кнопка целиком уходит на следующую строку */
#main .page-content p.self-center {
    flex-wrap: wrap;
    justify-content: center;
}
#main .page-content p.self-center a[href^="tel:"],
#main .page-content p.self-center a[href^="form:"],
#main .page-content p.self-center a[href^="callto:"] {
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Фото в .images-block на телефоне: ровная сетка 2 колонки, одинаковая высота,
   нечётное последнее фото — на всю ширину (перебиваем спорящие правила main.css и «Дополнительных стилей») */
@media screen and (max-width: 767px)
{
	html body #main.base-page .page-content .images-block {
	    display: grid !important;
	    grid-template-columns: 1fr 1fr;
	    gap: 10px;
	    width: 100% !important;
	    margin: 20px 0px !important;
	}
	html body #main.base-page .page-content .images-block .image {
	    display: block !important;
	    width: auto !important;
	    height: 180px;
	    margin: 0px !important;
	    padding: 0px !important;
	}
	html body #main.base-page .page-content .images-block .image img {
	    display: block;
	    width: 100% !important;
	    height: 100% !important;
	    max-width: none;
	    object-fit: cover;
	}
	html body #main.base-page .page-content .images-block .image:nth-last-child(1 of .image):nth-child(odd of .image) {
	    grid-column: 1 / -1;
	    height: 200px;
	}
	html body #main.base-page .page-content .images-block .breaker {
	    display: none;
	}
}

/* Телефон: плавающие кнопки справа — сверху MAX (связь, 46×46), под ней квиз: ключ + мелкая надпись «Рассчитать ремонт» */
@media screen and (max-width: 600px)
{
	/* красная полоса «наверх» на телефоне убрана — кнопки опущены на её место */
	html body #footer .scroll-to-top {
	    display: none !important;
	}
	html body .sdaq-fab {
	    left: auto !important;
	    right: 14px !important;
	    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
	    height: 40px;
	    padding: 0px 12px 0px 10px !important;
	    gap: 6px;
	    font-size: 12px !important;
	    line-height: 1;
	    white-space: nowrap;
	}
	html body .sdaq-fab svg {
	    width: 18px;
	    height: 18px;
	}
	html body #max-button-wrapper {
	    right: 14px !important;
	    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
	}
	html body #max-button-wrapper .max-button-item {
	    width: 46px !important;
	    height: 46px !important;
	}
	html body #max-button-wrapper .max-button-item img {
	    width: 24px !important;
	    height: 24px !important;
	}
}

/* Телефон: стрелки большого слайдера (главная, /servis/, /tuning/) были подняты на 37px и наезжали
   на красную кнопку слайда — ставим их на своё место под слайдом */
@media screen and (max-width: 767px)
{
	html body .slider.main-block .controls {
	    top: 0px !important;
	}
}

/* Блок «Цены на тюнинг» на /tuning/ (template-parts/tuning-prices.php) — таблицы без рамок */
.cw-tuning-prices {
    padding: 50px 0px;
    background-color: #fff;
    clear: both;
}
.cw-tuning-prices .cw-tuning-prices__title {
    margin: 0px 0px 8px 0px !important;
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-align: center !important;
    color: #1b1e23 !important;
}
.cw-tuning-prices .cw-tuning-prices__lead {
    margin: 0px auto 24px auto !important;
    max-width: 640px;
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    color: #626a75 !important;
}
.cw-tuning-prices .cw-tuning-prices__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.cw-tuning-prices .cw-tuning-prices__card {
    padding: 22px 24px;
    background-color: #f7f7f7;
}
.cw-tuning-prices .cw-tuning-prices__card-title {
    margin: 0px 0px 10px 0px !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    text-transform: none;
    text-align: left !important;
    color: #1b1e23 !important;
}
.cw-tuning-prices .cw-tuning-prices__table {
    width: 100%;
    margin: 0px;
    border: none;
    border-collapse: collapse;
    background: none;
}
.cw-tuning-prices .cw-tuning-prices__table tr,
.cw-tuning-prices .cw-tuning-prices__table td {
    border: none;
    background: none;
}
.cw-tuning-prices .cw-tuning-prices__table td {
    padding: 4px 0px;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.3;
    color: #444;
}
.cw-tuning-prices .cw-tuning-prices__name {
    padding-right: 16px !important;
    font-weight: 500;
}
.cw-tuning-prices .cw-tuning-prices__value {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    color: #e12329 !important;
}
.cw-tuning-prices .cw-tuning-prices__cta {
    margin-top: 24px;
    text-align: center;
}
.cw-tuning-prices .cw-tuning-prices__cta button {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 0px;
    background-color: #e12329;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
@media screen and (max-width: 767px)
{
	.cw-tuning-prices {
	    padding: 30px 0px;
	}
	.cw-tuning-prices .cw-tuning-prices__title {
	    font-size: 22px !important;
	}
	.cw-tuning-prices .cw-tuning-prices__grid {
	    grid-template-columns: minmax(0, 1fr);
	    gap: 12px;
	}
	.cw-tuning-prices .cw-tuning-prices__card {
	    padding: 16px;
	}
	.cw-tuning-prices .cw-tuning-prices__name {
	    padding-right: 10px !important;
	}
}

/* ===== Страница /tuning/: цифры доверия, виды тюнинга, как мы работаем, FAQ ===== */
/* Общие заголовки новых блоков */
.cw-types .cw-types__title,
.cw-steps .cw-steps__title,
.cw-faq .cw-faq__title {
    margin: 0px 0px 8px 0px !important;
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-align: center !important;
    color: #1b1e23 !important;
}

/* Цифры доверия — тёмная полоса */
.cw-trust {
    padding: 34px 0px;
    background-color: #1b1e23;
    clear: both;
}
.cw-trust .cw-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.cw-trust .cw-trust__item {
    text-align: center;
}
.cw-trust .cw-trust__num {
    margin-bottom: 6px;
    font-size: 38px;
    line-height: 1.1;
    font-weight: 700;
    color: #e12329;
    white-space: nowrap;
}
.cw-trust .cw-trust__text {
    font-size: 14px;
    line-height: 1.35;
    color: #d9dde3;
}

/* Виды тюнинга — карточки с фото */
.cw-types {
    padding: 50px 0px;
    background-color: #f4f4f4;
    clear: both;
}
.cw-types .cw-types__lead {
    margin: 0px auto 26px auto !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    color: #626a75 !important;
}
.cw-types .cw-types__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.cw-types .cw-types__card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e3e5e8;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s linear, transform 0.2s linear;
}
.cw-types .cw-types__card:hover {
    border-color: #e12329;
    transform: translateY(-2px);
}
.cw-types .cw-types__img {
    display: block;
    height: 190px;
    overflow: hidden;
    background-color: #e9eaec;
}
.cw-types .cw-types__img img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.cw-types .cw-types__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
}
.cw-types .cw-types__name {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #1b1e23;
}
.cw-types .cw-types__text {
    flex: 1;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #626a75;
}
.cw-types .cw-types__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cw-types .cw-types__price {
    font-size: 16px;
    font-weight: 700;
    color: #e12329;
    white-space: nowrap;
}
.cw-types .cw-types__more {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1b1e23;
    white-space: nowrap;
}
.cw-types .cw-types__btn {
    padding: 9px 14px;
    border: none;
    border-radius: 0px;
    background-color: #e12329;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
}

/* Как мы работаем — 4 шага */
.cw-steps {
    padding: 50px 0px;
    background-color: #fff;
    clear: both;
}
.cw-steps .cw-steps__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 24px 0px 0px 0px;
    padding: 0px;
    list-style: none;
}
.cw-steps .cw-steps__item {
    display: flex;
    flex-direction: column;
    margin: 0px;
    padding: 22px 20px;
    background-color: #f7f7f7;
    border-top: 3px solid #e12329;
}
.cw-steps .cw-steps__item::before {
    display: none;
}
.cw-steps .cw-steps__num {
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 1;
    font-weight: 700;
    color: #e12329;
}
.cw-steps .cw-steps__name {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #1b1e23;
}
.cw-steps .cw-steps__text {
    font-size: 14px;
    line-height: 1.4;
    color: #626a75;
}

/* FAQ — раскрывающиеся вопросы */
.cw-faq {
    padding: 50px 0px;
    background-color: #f4f4f4;
    clear: both;
}
.cw-faq .cw-faq__list {
    max-width: 860px;
    margin: 24px auto 0px;
}
.cw-faq .cw-faq__item {
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #e3e5e8;
}
.cw-faq .cw-faq__q {
    position: relative;
    display: block;
    padding: 16px 48px 16px 20px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #1b1e23;
    cursor: pointer;
    list-style: none;
}
.cw-faq .cw-faq__q::-webkit-details-marker {
    display: none;
}
.cw-faq .cw-faq__q::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 20px;
    margin-top: -13px;
    font-size: 24px;
    line-height: 26px;
    font-weight: 400;
    color: #e12329;
}
.cw-faq .cw-faq__item[open] .cw-faq__q::after {
    content: '−';
}
.cw-faq .cw-faq__a {
    padding: 0px 20px 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #444;
}

@media screen and (max-width: 991px)
{
	.cw-types .cw-types__grid {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cw-steps .cw-steps__list {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media screen and (max-width: 767px)
{
	.cw-types .cw-types__title,
	.cw-steps .cw-steps__title,
	.cw-faq .cw-faq__title {
	    font-size: 22px !important;
	}
	.cw-trust {
	    padding: 24px 0px;
	}
	.cw-trust .cw-trust__grid {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	    gap: 18px 12px;
	}
	.cw-trust .cw-trust__num {
	    font-size: 28px;
	}
	.cw-trust .cw-trust__text {
	    font-size: 13px;
	}
	.cw-types,
	.cw-steps,
	.cw-faq {
	    padding: 30px 0px;
	}
	/* На телефоне карточка горизонтальная: фото слева, текст справа — компактнее */
	.cw-types .cw-types__grid {
	    grid-template-columns: minmax(0, 1fr);
	    gap: 12px;
	}
	.cw-types .cw-types__card {
	    display: grid;
	    grid-template-columns: 110px minmax(0, 1fr);
	}
	.cw-types .cw-types__img {
	    height: 100%;
	    min-height: 120px;
	}
	.cw-types .cw-types__body {
	    padding: 12px 12px 12px 14px;
	}
	.cw-types .cw-types__name {
	    font-size: 16px;
	}
	.cw-types .cw-types__text {
	    margin-bottom: 10px;
	    font-size: 13px;
	}
	.cw-types .cw-types__price {
	    font-size: 14px;
	}
	.cw-types .cw-types__btn {
	    padding: 8px 10px;
	    font-size: 11px;
	}
	.cw-steps .cw-steps__list {
	    grid-template-columns: minmax(0, 1fr);
	    gap: 12px;
	}
	.cw-steps .cw-steps__item {
	    padding: 16px;
	}
	.cw-faq .cw-faq__q {
	    padding: 14px 42px 14px 14px;
	    font-size: 15px;
	}
	.cw-faq .cw-faq__q::after {
	    right: 14px;
	}
	.cw-faq .cw-faq__a {
	    padding: 0px 14px 14px;
	    font-size: 14px;
	}
}

/* «Магазин тюнинга GM» на /tuning/ — модели сразу открыты (template-parts/tuning-gm-shop.php).
   Свои классы: общий .we-manage на других страницах не меняется */
.cw-gm-shop {
    padding: 50px 0px;
    background-color: #fff;
    clear: both;
}
.cw-gm-shop .cw-gm-shop__title {
    margin: 0px 0px 6px 0px !important;
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-align: center !important;
    color: #e12329 !important;
}
.cw-gm-shop .cw-gm-shop__lead {
    margin: 0px 0px 26px 0px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    color: #626a75 !important;
}
.cw-gm-shop .cw-gm-shop__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}
.cw-gm-shop .cw-gm-shop__brand {
    background-color: #f7f7f7;
    border: 1px solid #e3e5e8;
}
.cw-gm-shop .cw-gm-shop__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    padding: 14px 20px;
    background-color: #fff;
    border-bottom: 3px solid #e12329;
}
.cw-gm-shop .cw-gm-shop__logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.cw-gm-shop .cw-gm-shop__models {
    margin: 0px;
    padding: 8px;
    list-style: none;
}
.cw-gm-shop .cw-gm-shop__models li {
    margin: 0px;
    padding: 0px;
}
.cw-gm-shop .cw-gm-shop__models li::before {
    display: none;
}
.cw-gm-shop .cw-gm-shop__model {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    color: #1b1e23;
    text-decoration: none;
    transition: background-color 0.2s linear;
}
.cw-gm-shop .cw-gm-shop__model:hover {
    background-color: #fff;
}
.cw-gm-shop .cw-gm-shop__model:hover .cw-gm-shop__name,
.cw-gm-shop .cw-gm-shop__model:hover .cw-gm-shop__arrow {
    color: #e12329;
}
.cw-gm-shop .cw-gm-shop__thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 60px;
    overflow: hidden;
    background-color: #fff;
}
.cw-gm-shop .cw-gm-shop__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.cw-gm-shop .cw-gm-shop__name {
    flex: 1;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    transition: color 0.2s linear;
}
.cw-gm-shop .cw-gm-shop__arrow {
    flex: 0 0 auto;
    font-size: 18px;
    color: #9aa0a8;
    transition: color 0.2s linear;
}
.cw-gm-shop .cw-gm-shop__note {
    padding: 22px 20px;
    text-align: center;
}
.cw-gm-shop .cw-gm-shop__note p {
    margin: 0px 0px 16px 0px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: #444 !important;
}
.cw-gm-shop .cw-gm-shop__btn {
    padding: 12px 22px;
    border: none;
    border-radius: 0px;
    background-color: #e12329;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none !important;
}
@media screen and (max-width: 991px)
{
	.cw-gm-shop .cw-gm-shop__grid {
	    grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media screen and (max-width: 767px)
{
	.cw-gm-shop {
	    padding: 30px 0px;
	}
	.cw-gm-shop .cw-gm-shop__title {
	    font-size: 22px !important;
	}
	.cw-gm-shop .cw-gm-shop__grid {
	    grid-template-columns: minmax(0, 1fr);
	    gap: 12px;
	}
	.cw-gm-shop .cw-gm-shop__logo {
	    height: 72px;
	}
	.cw-gm-shop .cw-gm-shop__thumb {
	    width: 84px;
	    height: 54px;
	}
}

/* Полоса доверия под слайдером на всех страницах (template-parts/trust-strip.php):
   стрелки слайдера свисают ниже фото — отодвигаем полосу, чтобы они на неё не наезжали */
.slider.main-block + .cw-trust,
.services-slider-container + .cw-trust {
    margin-top: 20px;
}
@media screen and (max-width: 767px)
{
	.slider.main-block + .cw-trust {
	    margin-top: 76px;
	}
}

/* Цены на страницах услуг — открытые карточки вместо раскрывающихся списков (.cw-price-cards) */
.cw-price-cards {
    margin: 24px 0px;
    text-align: left;
}
.cw-price-cards .cw-price-cards__title {
    margin: 0px 0px 16px 0px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    color: #1b1e23;
}
.cw-price-cards .cw-price-cards__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.cw-price-cards .cw-price-cards__card {
    padding: 18px 20px;
    background-color: #f7f7f7;
    border-top: 3px solid #e12329;
}
.cw-price-cards .cw-price-cards__card--wide {
    grid-column: 1 / -1;
}
.cw-price-cards .cw-price-cards__card-title {
    margin: 0px 0px 10px 0px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #1b1e23;
}
.cw-price-cards .cw-price-cards__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0px 32px;
}
/* !important — на страницах услуг main.css задаёт таблицам float, тень и ширину 50% !important */
/* (повтор класса поднимает специфичность выше «#main.services-page.single .page-content .text-content table») */
html body #main .cw-price-cards table.cw-price-cards__table.cw-price-cards__table.cw-price-cards__table,
.cw-price-cards .cw-price-cards__table {
    float: none !important;
    width: 100% !important;
    margin: 0px !important;
    border: none;
    border-collapse: collapse;
    background: none;
    box-shadow: none !important;
}
.cw-price-cards .cw-price-cards__table tr,
.cw-price-cards .cw-price-cards__table td {
    border: none !important;
    background: none !important;
}
.cw-price-cards .cw-price-cards__table td {
    padding: 4px 0px !important;
    vertical-align: top;
    font-size: 14px !important;
    line-height: 1.3 !important;
    color: #444;
}
.cw-price-cards .cw-price-cards__name {
    padding-right: 16px !important;
}
.cw-price-cards .cw-price-cards__value {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    color: #e12329 !important;
}
.cw-price-cards .cw-price-cards__sub td {
    padding-top: 10px !important;
    font-weight: 700;
    color: #1b1e23 !important;
}
@media screen and (max-width: 767px)
{
	.cw-price-cards .cw-price-cards__title {
	    font-size: 18px;
	}
	.cw-price-cards .cw-price-cards__grid,
	.cw-price-cards .cw-price-cards__cols {
	    grid-template-columns: minmax(0, 1fr);
	    gap: 12px;
	}
	.cw-price-cards .cw-price-cards__cols {
	    gap: 0px;
	}
	.cw-price-cards .cw-price-cards__card {
	    padding: 14px;
	}
	.cw-price-cards .cw-price-cards__name {
	    padding-right: 10px !important;
	}
}

/* Общий прайс с вкладками (template-parts/price-tabs.php, цены из админки «Цены на услуги») */
.cw-prices-section {
    padding: 40px 0px;
    background-color: #fff;
    clear: both;
}
.cw-price-tabs {
    margin: 24px 0px;
    text-align: left;
}
.cw-prices-section .cw-price-tabs {
    margin: 0px;
}
.cw-price-tabs .cw-price-cards__title {
    margin: 0px 0px 14px 0px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    color: #1b1e23;
}
.cw-price-tabs .cw-price-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e3e5e8;
}
.cw-price-tabs .cw-price-tabs__tab {
    padding: 10px 16px;
    border: 1px solid #d9dde3;
    border-radius: 0px;
    background-color: #fff;
    color: #1b1e23;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
    transition: background-color 0.2s linear, color 0.2s linear, border-color 0.2s linear;
}
.cw-price-tabs .cw-price-tabs__tab:hover {
    border-color: #e12329;
    color: #e12329;
}
.cw-price-tabs .cw-price-tabs__tab.is-active {
    border-color: #e12329;
    background-color: #e12329;
    color: #fff;
}
.cw-price-tabs .cw-price-tabs__group + .cw-price-tabs__group {
    margin-top: 22px;
}
.cw-price-tabs .cw-price-tabs__group-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #1b1e23;
}
.cw-price-tabs .cw-price-tabs__group-title a {
    font-size: 13px;
    font-weight: 500;
    color: #e12329;
    text-decoration: none;
}
.cw-price-tabs .cw-price-cards__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
/* Таблицы вкладок — те же стили карточек (.cw-price-cards__*) */
html body #main .cw-price-tabs table.cw-price-cards__table.cw-price-cards__table.cw-price-cards__table {
    float: none !important;
    width: 100% !important;
    margin: 0px !important;
    box-shadow: none !important;
}
.cw-price-tabs .cw-price-cards__card { padding: 18px 20px; background-color: #f7f7f7; border-top: 3px solid #e12329; }
.cw-price-tabs .cw-price-cards__card--wide { grid-column: 1 / -1; }
.cw-price-tabs .cw-price-cards__card-title { margin: 0px 0px 10px 0px; font-size: 17px; line-height: 1.3; font-weight: 700; color: #1b1e23; }
.cw-price-tabs .cw-price-cards__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0px 32px; }
.cw-price-tabs .cw-price-cards__table { border: none; border-collapse: collapse; background: none; }
.cw-price-tabs .cw-price-cards__table tr,
.cw-price-tabs .cw-price-cards__table td { border: none !important; background: none !important; }
.cw-price-tabs .cw-price-cards__table td { padding: 4px 0px !important; vertical-align: top; font-size: 14px !important; line-height: 1.3 !important; color: #444; }
.cw-price-tabs .cw-price-cards__name { padding-right: 16px !important; }
.cw-price-tabs .cw-price-cards__value { text-align: right; white-space: nowrap; font-weight: 700; color: #e12329 !important; }
.cw-price-tabs .cw-price-cards__sub td { padding-top: 10px !important; font-weight: 700; color: #1b1e23 !important; }
@media screen and (max-width: 767px)
{
	.cw-prices-section {
	    padding: 28px 0px;
	}
	.cw-price-tabs .cw-price-cards__title {
	    font-size: 18px;
	}
	/* вкладки на телефоне — лентой с прокруткой */
	.cw-price-tabs .cw-price-tabs__nav {
	    flex-wrap: nowrap;
	    overflow-x: auto;
	    -webkit-overflow-scrolling: touch;
	    scrollbar-width: none;
	    margin-right: -10px;
	    padding-right: 10px;
	}
	.cw-price-tabs .cw-price-tabs__nav::-webkit-scrollbar {
	    display: none;
	}
	.cw-price-tabs .cw-price-tabs__tab {
	    flex: 0 0 auto;
	    padding: 9px 12px;
	    font-size: 13px;
	}
	.cw-price-tabs .cw-price-tabs__group-title {
	    font-size: 16px;
	}
	.cw-price-tabs .cw-price-cards__grid,
	.cw-price-tabs .cw-price-cards__cols {
	    grid-template-columns: minmax(0, 1fr);
	    gap: 12px;
	}
	.cw-price-tabs .cw-price-cards__cols {
	    gap: 0px;
	}
	.cw-price-tabs .cw-price-cards__card {
	    padding: 14px;
	}
	.cw-price-tabs .cw-price-cards__name {
	    padding-right: 10px !important;
	}
}
/* === Плитки кузовных услуг на /kuzovnoj-remont/ (template-parts/kuzov-tiles.php) === */
.cw-kuzov-tiles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 25px 0 30px;
}
.cw-kuzov-tiles__item {
    position: relative;
    display: block;
    height: 170px;
    overflow: hidden;
    background: #222;
    text-decoration: none !important;
}
.cw-kuzov-tiles__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .3s;
}
.cw-kuzov-tiles__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    transition: background .3s;
}
.cw-kuzov-tiles__item:hover img { transform: scale(1.06); }
.cw-kuzov-tiles__item:hover::after { background: rgba(0, 0, 0, .4); }
.cw-kuzov-tiles__title {
    position: absolute;
    left: 14px;
    right: 10px;
    bottom: 16px;
    z-index: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}
@media (max-width: 1100px) {
    .cw-kuzov-tiles__title { font-size: 12px; left: 10px; }
}
@media (max-width: 767px) {
    .cw-kuzov-tiles { grid-template-columns: 1fr; }
    .cw-kuzov-tiles__item { height: 120px; }
    .cw-kuzov-tiles__title { font-size: 16px; left: 20px; bottom: auto; top: 50%; transform: translateY(-50%); }
}

/* Карточки цен и вкладки на тёмных секциях (.text-content.bt2 красит весь текст в белый) */
#main .cw-price-cards__card .cw-price-cards__card-title,
#main .cw-price-cards__card .cw-price-cards__sub td { color: #1b1e23 !important; }
#main .cw-price-cards__card .cw-price-cards__table td { color: #444 !important; }
#main .cw-price-cards__card .cw-price-cards__table td.cw-price-cards__value { color: #e12329 !important; font-weight: 700 !important; }
#main .cw-price-tabs .cw-price-tabs__tab { color: #1b1e23 !important; }
#main .cw-price-tabs .cw-price-tabs__tab:hover { color: #e12329 !important; }
#main .cw-price-tabs .cw-price-tabs__tab.is-active { color: #fff !important; }

/* Ниже главный слайдер (главная, /servis/, /zapchasti/, /tuning/) и блок «Диагностика» на главной — были на весь экран */
@media screen and (min-width: 992px) {
    #main.main-page .slider.main-block { height: 440px !important; }
    #main.main-page .block-type-4 { height: 334px !important; }
    #main.main-page .block-type-4 .block-type-4-slider { height: 340px !important; }
    #main.main-page .block-type-4 .block-type-4-slider .image .wrapper { margin-top: 40px !important; }
}

/* Сноска под таблицами цен */
.cw-price-note {
    margin: 14px 0px 0px 0px;
    font-size: 13px;
    line-height: 1.4;
    color: #777;
}
.service-prices + .cw-price-note { margin-top: 8px; }
html body p.cw-price-note {
    margin: 14px 0px 0px 0px !important;
    padding: 0px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-style: normal !important;
    text-align: left !important;
    color: #777 !important;
}
html body .service-prices + p.cw-price-note { margin-top: 8px !important; }
html body #main .text-content.bt2 p.cw-price-note { color: #bdbdbd !important; }

/* Мобильные фото-слайдеры: ниже, чтобы картинка не занимала весь экран */
@media (max-width: 767px) {
    html body #main .slider.sidesym:not(.main-block):not(.block-type-4-slider),
    html body #main .slider.sidesym:not(.main-block):not(.block-type-4-slider) .images,
    html body #main .slider.sidesym:not(.main-block):not(.block-type-4-slider) .image { height: 260px !important; }
}

/* Мобильные картинки: остальные шаблоны */
@media (max-width: 767px) {
    html { overflow-x: clip; }
    html body #main .slider.services-slider,
    html body #main .slider.services-slider .images,
    html body #main .slider.services-slider .image { height: 260px !important; }
    html body .gallery-slider .gallery-slide { height: 240px !important; }
    html body .gallery-slider .gallery-slide img { width: 100% !important; height: 240px !important; object-fit: cover !important; }
    html body .article-image,
    html body .article-image img { height: 220px !important; }
    html body .article-image img { object-fit: cover !important; }
}
