/* H64: содержимое страниц -- главная, карточки моделей, таблицы цен, новости, акции, продажа авто. */

/* ---------- преимущества под меню ---------- */
/* один шаг сетки (16px) и по горизонтали, и по вертикали -- колонки карточек совпадают с колонками плиток ниже */
.banner-area { padding: 16px 0 0; }
.banner-area .row { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }
.banner-area .row > [class*="banner-"] > div { position: relative; height: 100%; padding: 14px 14px 14px 62px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: 12.5px; line-height: 1.45; color: var(--muted); transition: border-color .2s ease; }
.banner-area .row > [class*="banner-"] > div:hover { border-color: var(--line-strong); }
.banner-area .row > [class*="banner-"] > div::before { content: ''; position: absolute; left: 16px; top: 50%; width: 30px; height: 30px; margin-top: -15px; background: var(--ink); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; transition: background-color .2s ease; }
.banner-area .row > [class*="banner-"] > div:hover::before { background: var(--red); }
.banner-area .row > .banner-1 > div::before { -webkit-mask-image: url("../images/ben-1.svg"); mask-image: url("../images/ben-1.svg"); }
.banner-area .row > .banner-2 > div::before { -webkit-mask-image: url("../images/ben-2.svg"); mask-image: url("../images/ben-2.svg"); }
.banner-area .row > .banner-3 > div::before { -webkit-mask-image: url("../images/ben-3.svg"); mask-image: url("../images/ben-3.svg"); }
.banner-area .row > .banner-4 > div::before { -webkit-mask-image: url("../images/ben-4.svg"); mask-image: url("../images/ben-4.svg"); }
.banner-area span { display: block; margin-bottom: 1px; font-size: 14px; font-weight: 800; color: var(--ink); }

/* ---------- плитки на главной ---------- */
.home-tiles { padding: 16px 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 0; }
.tile--img { aspect-ratio: 1 / 1; background: var(--panel); }
.tile--img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile--img:hover img { transform: scale(1.05); }
.tile--text { color: var(--muted); font-size: 14px; line-height: 1.55; display: flex; flex-direction: column; justify-content: center; padding: 28px 26px; background: var(--panel); aspect-ratio: 1 / 1; }
.tile--text h3 { margin: 0; font-size: 19px; }
.tile--text hr { width: 44px; height: 3px; margin: 12px 0 14px; }
.tile--text p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.tile--dark { background: var(--dark); color: #b9b9c2; }
.tile--dark h3 { color: #fff; }
.tile--dark p { color: #b9b9c2; }
.tile--cta { grid-column: span 4; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; aspect-ratio: auto; padding: 30px 36px; background: var(--red); }
.tile--cta h3 { color: #fff; font-size: 24px; }
.tile--cta p { margin-top: 6px; color: #ffe1e4; font-size: 15px; }
.tile--cta .btn { flex: 0 0 auto; background: #fff; color: var(--ink); }
.tile--cta .btn:hover { background: var(--ink); color: #fff; }

/* ---------- карточки моделей (цены, комплекты для ТО) ---------- */
.to-index { padding: 48px 0 0; }
.to-index-layer > h2 { margin-bottom: 0; }
.to-index-layer > hr { margin-bottom: 26px; }
.to { margin-bottom: 16px; }
.to-index-layer .row, .price-box { --bs-gutter-x: 16px; }
.to > img { display: block; width: 100%; height: 120px; object-fit: contain; padding: 14px 18px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: #fff; }
.to > .box { height: calc(100% - 120px); padding: 12px 18px 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); background: #fff; transition: box-shadow .2s ease; }
.to:hover > .box, .to:hover > img { border-color: var(--line-strong); }
.to ul { margin: 0; padding: 0; list-style: none; }
.to li { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.to li::before { display: none; }
.to li:first-child { border-top: 0; }
.to li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: none; }
.to li a::after { content: '→'; flex: 0 0 auto; color: var(--red); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.to li a:hover { color: var(--red); }
.to li a:hover::after { opacity: 1; transform: none; }

/* ---------- список услуг, новости, акции ---------- */
.service-list-area, .news-index-area { padding: 48px 0 0; }
.service-list-layer > h3, .news-index-layer > h3 { margin-bottom: 0; font-size: clamp(22px, 2.5vw, 30px); }
.service-list-layer > hr, .news-index-layer > hr { margin-bottom: 22px; }
.news-index-layer > h4 { margin: -8px 0 22px; font-size: 16px; font-weight: 500; color: var(--muted); }
.service-list-layer .row { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }
.service-list-layer > p, .service-list-layer > .row + p { margin-top: 28px; }
a.service-list { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 64px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.service-list::before { content: ''; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--red-soft) url("../images/ico-service.png") center / 18px no-repeat; }
a.service-list:hover { border-color: var(--red); box-shadow: var(--shadow-sm); color: var(--red); transform: translateY(-2px); }
.news-box { margin-bottom: 14px; }
.news-index-layer .news-box > span, .news-box > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.news-box > p { margin: 4px 0 0; }
.news-box > p a { font-weight: 700; color: var(--ink); line-height: 1.4; text-decoration: none; }
.news-box > p a:hover { color: var(--red); }
.news-index-layer .row > [class*="col-"] > .news-box { height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.news-index-layer .row > [class*="col-"] > .news-box:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.news-box .box { height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.news-box .box > a img { border-radius: var(--r-md); }
.news-box .box p { margin: 10px 0 0; }

/* ---------- баннер «Ремонт и обслуживание» ---------- */
.service-box { margin-top: 48px; padding: 0; background: var(--dark) url("../images/bg.jpg") center / cover no-repeat; position: relative; }
.service-box::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 16, 18, .85), rgba(16, 16, 18, .1)); }
.service-box .container { position: relative; }
.service-box-text .box { padding: 72px 0; max-width: 520px; color: #e5e5ea; }
.service-box-text .box span, .service-box-text .box strong { color: #fff; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.2; }
.service-box-text .box hr { background: #fff; }
.service-box-text .box p { color: #d6d6dd; }
.service-box-text .box p a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.service-box-text .box p a:hover { background: #fff; color: var(--ink); }

/* ---------- карточки: модели, магазин, автомобили ---------- */
.cars-box { margin-bottom: 18px; }
.cars-box .box, .shop-box .box { height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.cars-box .box:hover, .shop-box .box:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.cars-box .box img, .shop-box .box img { width: 100%; border-radius: var(--r-md); }
.cars-box .box p, .shop-box .box p { margin: 10px 4px 0; font-size: 14px; }
.cars-box .box p a, .shop-box .box p:first-of-type a { font-weight: 700; color: var(--ink); text-decoration: none; }
.cars-box .box p a:hover, .shop-box .box p:first-of-type a:hover { color: var(--red); }
.advantage { margin-bottom: 18px; --bs-gutter-y: 20px; }
ul.advantages { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
ul.advantages li { margin: 0; padding: 19px 20px 19px 64px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; color: var(--text); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23fdecee'/%3E%3Cpath d='m8.5 14.3 3.6 3.6 7.4-7.6' fill='none' stroke='%23e22c3b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 20px center / 28px no-repeat; }
ul.advantages li:first-child { border-top: 0; }
ul.advantages li strong { font-weight: 700; color: var(--ink); }
ul.advantages li::before { display: none; }
ul.service-dop { margin: 0 0 18px; }
.repair-info-box { margin: 22px 0; padding: 18px 22px; border-left: 4px solid var(--red); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--panel); font-size: 14px; color: var(--text); }
.price-table { margin-bottom: 24px; }

/* ---------- таблицы цен ---------- */
table.repair_table, table.model-price-table, table.w-table, .shopping table {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
	font-size: 15px;
}
table.repair_table td, table.model-price-table td, table.w-table td, .shopping table td { padding: 12px 18px; border-top: 1px solid var(--line); line-height: 1.45; }
table.repair_table tr:first-child td, table.model-price-table tr:first-child td, table.w-table tr:first-child td, .shopping table tr:first-child td { border-top: 0; }
table.repair_table td.name_repair_type, table.model-price-table td.model-car, table.w-table td.w-r, .shopping td.td_name { background: var(--panel); font-weight: 700; color: var(--ink); }
table.repair_table td.name_repair_type hr { display: none; }
table.repair_table td.price_repair-name, table.model-price-table td.price-car, table.w-table td.w-price0, .shopping td.td_name + td.td_name { background: var(--panel); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; }
table.repair_table td.price_repair, table.model-price-table td.price-car-detail, table.w-table td.w-price, .shopping td.td_data:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); }
table.repair_table td.price_repair span, td.price-car-detail span, td.w-price span { font-size: 17px; }
table.repair_table td.name_digital { width: 54px; padding-right: 0; font-weight: 700; color: var(--red); text-align: center; }
table.repair_table td.price_repair_name { color: var(--text); }
table.repair_table tr:hover td:not(.name_repair_type):not(.price_repair-name), table.model-price-table tr:hover td:not(.model-car):not(.price-car) { background: #fcfcfd; }
td.model-car-detail { color: var(--text); }
.price-promo-old { margin-right: 6px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.price-promo-new { font-weight: 800; color: var(--red); }
.w { margin: 0 0 8px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- продажа автомобилей ---------- */
.car-box-sale { margin-top: 8px; }
.car-describe .car-price, .car-price { font-size: 28px; font-weight: 800; color: var(--ink); }

/* ---------- карточки «ТО и запчасти» (оптовая форма заказа) ---------- */
.catalog-item-box, .wholesale-box { margin-bottom: 18px; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 991.98px) {
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile--cta { grid-column: span 2; }
	.tile--text { padding: 20px 18px; }
	.tile--text h3 { font-size: 16px; }
	.tile--text p { font-size: 13px; }
	.to-index { padding-top: 36px; }
}
@media (max-width: 575.98px) {
	.tiles { gap: 10px; }
	.tile--text { aspect-ratio: auto; min-height: 150px; }
	.tile--cta { flex-direction: column; align-items: flex-start; padding: 22px; }
	.tile--cta h3 { font-size: 20px; }
	table.repair_table, table.model-price-table, table.w-table, .shopping table { font-size: 14px; border-radius: var(--r-md); }
	table.repair_table td, table.model-price-table td, table.w-table td, .shopping table td { padding: 10px 12px; }
	.service-box-text .box { padding: 48px 0; }
	.cars-box { margin-bottom: 12px; }
}

/* ---------- ритм текста ---------- */
.text-box .text > h2, .text-box .text > h3, .text-box .text > h4 { margin-top: 1.6em; }
.text-box .text > h1:first-child, .text-box .text > h2:first-child, .text-box .text > h3:first-child { margin-top: 0; }
.text-box .gallery, .text-box .gallery-index { margin: 24px 0 30px; }

@media (max-width: 575.98px) {
	.banner-area .row > [class*="banner-"] { flex: 0 0 auto; width: 50%; }
	.banner-area .row { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
	.banner-area .row > [class*="banner-"] > div { padding: 52px 12px 12px; font-size: 12px; }
	.banner-area .row > [class*="banner-"] > div::before { left: 14px; top: 14px; width: 26px; height: 26px; margin-top: 0; }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
	.banner-area .row > [class*="banner-"] > div { padding-left: 56px; }
	.banner-area .row > [class*="banner-"] > div::before { left: 14px; width: 28px; height: 28px; margin-top: -14px; }
}

.advantage .forma-call-models { height: 100%; margin: 0; }
.banner-area br { display: none; }

/* карточки моделей: правило темы «.text ul li» (отступ под маркер) не должно сужать ссылки */
.text .to li { margin: 0; padding: 0; }
.text .to li::before { display: none; }
ul.advantages + .forma-call-models { height: auto; margin-top: 20px; }
