/* Страницы бренда Club Car: /club-car/, /club-car/istoriya/, /club-car/aksessuary/.
   Палитра и ритм — как у страницы /garia/: тёмно-синий #1C263C, зелёный #BAE00B,
   серые плашки #F2F2F2, скругления 20–30 px */

.cc-page section {
	margin: 0 0 80px;
}

/* Подвал шаблона заходит на контент отрицательным отступом —
   последней секции нужен запас, иначе кнопка оказывается под ним */
.cc-page section:last-of-type {
	margin-bottom: 120px;
}

footer.inner {
	margin-top: 40px;
}

/* Заголовки секций слева и крупно: у .service они по умолчанию мелкие и по центру */
.product-page.service.cc-page h2 {
	text-align: left;
	font-size: 44px;
	line-height: 110%;
	letter-spacing: -1px;
	margin: 0 0 40px;
}

/* Общий стиль .service h3 делает подзаголовки 44 px, как h2 —
   в плитках и вехах нужен размер подзаголовка */
.product-page.service.cc-page h3 {
	max-width: none;
	font-size: 22px;
	line-height: 120%;
	letter-spacing: 0;
	margin: 0 0 12px;
}

.product-page.service.cc-page .cc-step h3,
.product-page.service.cc-page .cc-cols h3 {
	font-size: 26px;
	margin-bottom: 16px;
}

.cc-lead {
	max-width: 760px;
	font-size: 18px;
	line-height: 155%;
	margin: -10px 0 40px;
}

.cc-page .prod-first-screen .pic img {
	width: 100%;
	height: auto;
	border-radius: 20px;
}

/* Кнопки первого экрана по ширине текста, в ряд. Цепочка повторяет общий стиль
   сервисных страниц (.service .prod-first-screen .inf .bottom .btns .btn) —
   он специфичнее и иначе растягивает кнопки на половину колонки */
/* club-car.css подключается раньше стилей шаблона, поэтому при равной
   специфичности побеждал бы шаблон — у правил первого экрана добавлен .service */
.cc-page.service .prod-first-screen .inf .bottom .btns {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
	margin-top: 40px;
}

.cc-page.service .prod-first-screen .inf .bottom .btns .btn {
	width: auto;
	min-width: 0;
	max-width: none;
	flex: 0 0 auto;
	white-space: nowrap;
}

.cc-page.service .prod-first-screen .inf .bottom .btns .btn.opacity {
	padding: 0 30px;
	background: #BAE00B;
	border: 1px solid #1C263C;
	color: #1C263C;
	text-align: center;
}

.cc-page.service .prod-first-screen .inf .bottom .btns .btn.opacity:hover {
	background: #a8ca0a;
}

/* Текст и картинка в две колонки; .reverse меняет стороны */
.cc-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.cc-cols.reverse .cc-pic {
	order: -1;
}

.cc-text p {
	font-size: 18px;
	line-height: 160%;
	margin: 0 0 18px;
}

.cc-text p:last-child {
	margin-bottom: 0;
}

.cc-pic img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

/* Плитки: серые на белом, внутри тёмного блока — полупрозрачные */
.cc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 30px;
}

/* Шесть плиток — ровно два ряда по три, без «хвоста» во втором ряду */
.cc-grid.three {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1000px) {
	.cc-grid.three {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.cc-grid.three {
		grid-template-columns: 1fr;
	}
}

.cc-tile {
	background: #F2F2F2;
	border-radius: 20px;
	padding: 35px 35px 40px;
	color: #1C263C;
}

.cc-tile p {
	margin: 0;
	font-size: 16px;
	line-height: 150%;
	opacity: .85;
}

/* Плитка со снимком сверху: кадр во всю ширину, текст с отступами */
.cc-tile.photo {
	padding: 0 0 30px;
	overflow: hidden;
}

.cc-tile.photo img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin: 0 0 22px;
}

.cc-tile.photo h3,
.cc-tile.photo p {
	padding: 0 30px;
}

/* Тёмный блок — как «Миссия и видение» у Garia */
.cc-dark {
	background: #1C263C;
	color: #fff;
	border-radius: 30px;
	padding: 60px;
}

.product-page.service.cc-page .cc-dark h2 {
	color: #fff;
}

.cc-dark .cc-lead {
	opacity: .85;
}

.cc-dark .cc-tile {
	background: rgba(255, 255, 255, .06);
	color: #fff;
}

.cc-dark .cc-tile.accent {
	background: #BAE00B;
	color: #1C263C;
}

/* Модели: карточка-ссылка целиком, снимок приближается под курсором */
a.cc-model {
	display: block;
	text-decoration: none;
	background: #F2F2F2;
	border-radius: 20px;
	overflow: hidden;
	color: #1C263C;
	padding: 0 0 26px;
	transition: background .3s ease, box-shadow .3s ease;
}

a.cc-model:hover {
	background: #BAE00B;
	box-shadow: 0 14px 30px rgba(28, 38, 60, .14);
}

.cc-model-pic {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #fff;
	margin: 0 0 18px;
}

.cc-model-pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .45s ease;
}

a.cc-model:hover .cc-model-pic img {
	transform: scale(1.06);
}

.cc-model-name {
	display: block;
	padding: 0 26px;
	font-size: 20px;
	font-weight: 500;
	line-height: 125%;
}

/* Список фактов с зелёным маркером */
.cc-list {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.cc-list li {
	position: relative;
	padding: 0 0 0 28px;
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 150%;
}

.cc-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #BAE00B;
}

/* Ссылки на соседние страницы бренда */
.cc-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.cc-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 28px 30px;
	border-radius: 20px;
	background: #F2F2F2;
	color: #1C263C;
	font-size: 20px;
	font-weight: 500;
	text-decoration: none;
	transition: background .2s;
}

.cc-links a:hover {
	background: #BAE00B;
}

/* Стрелка в кружке: покой — белый круг и синяя стрелка, наведение — наоборот.
   Стрелка — иконка шаблона --svg-go-arr маской, цвет берёт из color */
.cc-go {
	position: relative;
	flex: 0 0 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: #1C263C;
	transition: background .2s, color .2s;
}

.cc-go::after {
	content: "";
	position: absolute;
	inset: 0;
	background: currentColor;
	-webkit-mask: var(--svg-go-arr) center/16px auto no-repeat;
	mask: var(--svg-go-arr) center/16px auto no-repeat;
}

.cc-links a:hover .cc-go {
	background: #1C263C;
	color: #fff;
}

/* Зелёный призыв в конце страницы — отличается от синего подвала */
.cc-cta {
	background: #BAE00B;
	color: #1C263C;
	border-radius: 30px;
	padding: 60px;
	position: relative;
	z-index: 1;
}

.cc-cta-in {
	max-width: 700px;
}

.product-page.service .cc-cta h2 {
	color: #1C263C;
}

.cc-cta p {
	font-size: 18px;
	line-height: 155%;
	margin: 0 0 35px;
}

.cc-cta .btn {
	width: auto;
	background: #1C263C;
	color: #fff;
	transition: background .2s, box-shadow .2s;
}

.cc-cta .btn:hover {
	background: #0f1729;
	box-shadow: 0 8px 22px rgba(28, 38, 60, .28);
}

.cc-cta .btn .arr {
	background: #fff;
}

.cc-cta .btn:hover .arr {
	background: #BAE00B;
}

/* ---------- История: вертикальная лента вех ---------- */

.cc-timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Ось ленты по центру; на телефоне уезжает к левому краю */
.cc-timeline::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: #E2E5EA;
	transform: translateX(-1px);
}

.cc-step {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	margin: 0 0 70px;
}

.cc-step:last-child {
	margin-bottom: 0;
}

/* Точка на оси против каждой вехи */
.cc-step::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #BAE00B;
	border: 4px solid #fff;
	box-shadow: 0 0 0 2px #1C263C;
	transform: translate(-50%, -50%);
}

/* Чередование сторон: у чётных вех снимок слева */
.cc-step:nth-child(even) .cc-step-pic {
	order: -1;
}

.cc-step-year {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 30px;
	background: #1C263C;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 18px;
}

.cc-step-text p {
	font-size: 17px;
	line-height: 160%;
	margin: 0 0 14px;
}

.cc-step-text p:last-child {
	margin-bottom: 0;
}

.cc-step-pic img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

.cc-caption {
	display: block;
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 140%;
	opacity: .65;
}

/* ---------- Аксессуары ---------- */

/* Навигация по разделам — якоря, а не вкладки: весь каталог виден сразу
   и доступен поиску. Не липкая: при прокрутке вверх у сайта выезжает
   своя плавающая шапка, и полоса оказалась бы под ней */
.cc-anchors {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 0;
	margin: 0 0 40px;
	background: #fff;
}

.cc-anchors a {
	padding: 10px 20px;
	border-radius: 30px;
	background: #F2F2F2;
	color: #1C263C;
	font-size: 16px;
	text-decoration: none;
	transition: background .2s;
}

.cc-anchors a:hover {
	background: #BAE00B;
}

/* Отступ сверху, чтобы прилипшая полоса не закрывала заголовок раздела */
.cc-acc-group {
	scroll-margin-top: 90px;
}

.cc-acc-group + .cc-acc-group {
	margin-top: 70px;
}

.cc-acc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 26px;
}

.cc-acc {
	display: flex;
	flex-direction: column;
	background: #F2F2F2;
	border-radius: 20px;
	overflow: hidden;
}

/* Снимок вписан целиком: у предметных фото прозрачный или белый фон */
.cc-acc-pic {
	aspect-ratio: 1 / 1;
	background: #fff;
	box-shadow: inset 0 0 0 2px #eee;
	border-radius: 20px 20px 0 0;
}

.cc-acc-pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cc-acc-body {
	padding: 22px 24px 26px;
}

.product-page.service.cc-page .cc-acc h3 {
	font-size: 19px;
	margin: 0 0 8px;
}

.cc-acc p {
	margin: 0;
	font-size: 15px;
	line-height: 150%;
	opacity: .85;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
	.cc-cols,
	.cc-step {
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.product-page.service.cc-page h2 {
		font-size: 30px;
		margin-bottom: 26px;
	}

	.cc-page section {
		margin-bottom: 60px;
	}

	.cc-cols {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	/* На телефоне снимок всегда над текстом */
	.cc-cols .cc-pic,
	.cc-cols.reverse .cc-pic {
		order: -1;
	}

	/* Кнопки первого экрана — во всю ширину, иначе текст обрезается */
	.cc-page.service .prod-first-screen .inf .bottom .btns .btn {
		flex: 1 1 100%;
		width: 100%;
	}

	/* 14 моделей по одной в ряд — слишком длинная лента, ставим по две */
	#models .cc-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	a.cc-model {
		padding-bottom: 16px;
	}

	.cc-model-pic {
		margin-bottom: 12px;
	}

	.cc-model-name {
		padding: 0 14px;
		font-size: 15px;
	}

	.cc-dark,
	.cc-cta {
		padding: 36px 24px;
		border-radius: 24px;
	}

	.cc-timeline::before {
		left: 9px;
	}

	.cc-step {
		grid-template-columns: 1fr;
		gap: 18px;
		padding-left: 36px;
		margin-bottom: 50px;
	}

	.cc-step::before {
		left: 10px;
		top: 6px;
		transform: translate(-50%, 0);
	}

	.cc-step .cc-step-pic,
	.cc-step:nth-child(even) .cc-step-pic {
		order: 1;
	}

	.cc-anchors {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin-left: -15px;
		margin-right: -15px;
		padding-left: 15px;
		padding-right: 15px;
	}

	.cc-anchors a {
		flex: 0 0 auto;
	}

	.cc-acc-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.cc-acc-body {
		padding: 14px 14px 18px;
	}

	.product-page.service.cc-page .cc-acc h3 {
		font-size: 16px;
	}

	.cc-acc p {
		font-size: 14px;
	}
}

@media (max-width: 420px) {
	.cc-acc-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-model-pic img,
	a.cc-model:hover .cc-model-pic img {
		transition: none;
		transform: none;
	}
}

/* Крошки стоят внутри .top, а там шаблон рисует маркированный список
   (.prod-first-screen .inf .top ul li: отступ и зелёная точка) — снимаем его */
.cc-page .prod-first-screen .inf .top ul.breadcrumbs {
	margin: 0 0 30px;
}

.cc-page .prod-first-screen .inf .top ul.breadcrumbs li {
	padding-left: 0;
	margin: 0 24px 0 0;
}

.cc-page .prod-first-screen .inf .top ul.breadcrumbs li:last-child {
	margin-right: 0;
}

.cc-page .prod-first-screen .inf .top ul.breadcrumbs li::before {
	display: none;
}
