/* Блоки вне общего бандла: комплектация, отзывы, выбор цвета.
   Файл один для ALICARS и Руликолеса. Фирменный цвет приходит переменной --cx-accent из шаблона. */

/* ---------- Меню с пятью пунктами ---------- */
@media (min-width: 768px) {
	.cx-nav5 { width: 36rem; }
}

/* ---------- Комплектация: главное отличие двух одинаковых моделей ---------- */
.cx-trim {
	display: block;
	color: var(--cx-accent, #ffbd27);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	padding-bottom: 0.25rem;
	overflow-wrap: anywhere;
}
.cx-trim-page { font-size: 1.25rem; padding-bottom: 0.375rem; }

/* ---------- Отзывы ---------- */
.rv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	padding: 1.5rem;
	border-radius: 1.25rem;
	background: linear-gradient(160deg, #1b1a1a 0%, #111010 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #ece2d4;
	break-inside: avoid;
	overflow: hidden;
}
.rv-card::after {
	content: "”";
	position: absolute;
	right: 1.1rem;
	bottom: -2.6rem;
	font-size: 9rem;
	line-height: 1;
	font-weight: 700;
	color: var(--cx-accent, #ffbd27);
	opacity: 0.1;
	pointer-events: none;
}
.rv-head { display: flex; align-items: center; gap: 0.75rem; }
.rv-ava {
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cx-accent, #ffbd27);
	color: #111;
	font-size: 1.25rem;
	font-weight: 700;
}
.rv-who { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; flex: 1 1 auto; }
.rv-name { font-size: 1.125rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.rv-stars { display: flex; gap: 0.125rem; }
.rv-stars svg { width: 1rem; height: 1rem; fill: var(--cx-accent, #ffbd27); }
.rv-src {
	flex: 0 0 auto;
	align-self: flex-start;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(236, 226, 212, 0.8);
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}
.rv-text {
	position: relative;
	z-index: 1;
	margin: 0;
	color: rgba(236, 226, 212, 0.85);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	white-space: pre-line;
	overflow-wrap: anywhere;
}
.rv-card > div, .rv-card > form { position: relative; z-index: 1; }

/* лента на главной */
.rv-row > .rv-card { flex: 0 0 auto; width: 21rem; max-width: 82vw; }
.rv-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	font-size: 1rem;
	font-weight: 500;
	transition: border-color 0.2s, color 0.2s;
}
.rv-all:hover { border-color: var(--cx-accent, #ffbd27); color: var(--cx-accent, #ffbd27); }

/* список в админке */
#reviewList > .rv-card { width: 100%; }
@media (min-width: 768px) {
	#reviewList > .rv-card { width: 22rem; }
}

/* страница «Отзывы» */
.rv-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
	padding: 2rem 1rem 2.5rem;
}
.rv-lead, .rv-empty {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1.25rem;
	text-align: center;
}
.rv-grid { width: 100%; max-width: 62.5rem; columns: 1; column-gap: 1rem; }
.rv-grid > .rv-card { margin-bottom: 1rem; }
@media (min-width: 768px) {
	.rv-grid { columns: 2; }
}
@media (min-width: 1100px) {
	.rv-grid { columns: 3; }
}
.rv-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2.88rem;
	border-radius: 4rem;
	background: var(--cx-accent, #ffbd27);
	color: #000;
	font-size: 1.25rem;
	font-weight: 500;
	transition: opacity 0.2s;
}
.rv-cta:hover { opacity: 0.85; }

/* ---------- Выбор цвета на странице машины ---------- */
.cx-colors {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	margin-top: 0.5rem;
	padding: 1rem;
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.cx-colors-row { display: flex; flex-direction: column; gap: 0.5rem; }
.cx-colors-label { color: rgba(238, 238, 238, 0.6); font-size: 0.875rem; font-weight: 500; }
.cx-colors-label b { color: #eee; font-weight: 700; }
.cx-dots { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cx-dot {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.1875rem;
	border-radius: 999px;
	border: 2px solid transparent;
	background: none;
	cursor: pointer;
	transition: border-color 0.15s;
}
.cx-dot span {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
}
.cx-dot:hover { border-color: rgba(255, 255, 255, 0.4); }
.cx-dot.on { border-color: var(--cx-accent, #ffbd27); }
.cx-dot:focus-visible, .cx-int:focus-visible { outline: 2px solid var(--cx-accent, #ffbd27); outline-offset: 2px; }
.cx-ints { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cx-ints::-webkit-scrollbar { display: none; }
.cx-int {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	width: 6.5rem;
	padding: 0.1875rem 0.1875rem 0.35rem;
	border-radius: 0.9rem;
	border: 2px solid transparent;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(238, 238, 238, 0.75);
	font-size: 0.75rem;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}
.cx-int img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.7rem; display: block; background: #2a2a2a; }
.cx-int span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-int:hover { border-color: rgba(255, 255, 255, 0.4); }
.cx-int.on { border-color: var(--cx-accent, #ffbd27); color: #eee; }

/* ---------- Цвета в форме машины (админка) ---------- */
.cx-adm {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.875rem;
	margin-bottom: 0.5rem;
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, 0.05);
	color: #eee;
}
.cx-adm-form { display: flex; flex-direction: column; gap: 0.5rem; }
.cx-adm-label { margin: 0.25rem 0 0 0.35rem; color: rgba(238, 238, 238, 0.6); font-size: 0.8125rem; font-weight: 500; }
select.cx-select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 2.75rem;
	padding: 0 2.4rem 0 0.9rem;
	border-radius: 0.75rem;
	border: 2px solid #292929;
	background-color: #121212;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23eeeeee' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	color: #eee;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
select.cx-select:focus { outline: none; border-color: var(--cx-accent, #ffbd27); }
.cx-own { display: flex; align-items: center; gap: 0.5rem; }
.cx-own .cars-catalog-input { flex: 1; }
.cx-own input[type="color"] {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.2rem;
	border: 2px solid #292929;
	border-radius: 0.75rem;
	background: #121212;
	cursor: pointer;
}
.cx-own input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.cx-own input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 0.45rem; }
.cx-swatch {
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 50%;
	flex: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.cx-set { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; border-radius: 1.25rem; background: rgba(255,255,255,0.04); }
.cx-set-h { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.cx-set-h > i { width: 0.9rem; height: 0.9rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); }
.cx-set-h b { font-weight: 700; }
.cx-price { width: 11rem; height: 2.75rem; }
.cx-set-del {
	margin-left: auto;
	border: 0;
	background: transparent;
	color: rgba(238, 238, 238, 0.55);
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}
.cx-set-del:hover { color: #ff7a7a; }
.cx-add {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 5rem;
	border: 0;
	border-radius: 1.25rem;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(238, 238, 238, 0.7);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}
.cx-add:hover { color: #111; background: var(--cx-accent, #ffbd27); }
.cx-set-hint { margin: 0; color: rgba(238,238,238,0.55); font-size: 0.8125rem; }
.cx-adm-title { font-size: 1rem; font-weight: 700; }
.cx-adm-hint { margin: 0; color: rgba(238, 238, 238, 0.6); font-size: 0.8125rem; line-height: 1.35; }
.cx-adm-row { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) {
	.cx-adm-row { grid-template-columns: 1fr 1fr; }
}
.cx-adm-row label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8125rem; font-weight: 500; color: rgba(238, 238, 238, 0.6); }
.cx-adm-sets { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.cx-adm-set {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: none;
	color: #eee;
	font-size: 0.8125rem;
	cursor: pointer;
}
.cx-adm-set b { font-weight: 500; color: rgba(238, 238, 238, 0.55); }
.cx-adm-set i { font-style: normal; color: #ff7a7a; }
.cx-adm-set:hover { border-color: var(--cx-accent, #ffbd27); }
.cx-adm-go {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 0;
	border-radius: 0.9rem;
	background: var(--cx-accent, #ffbd27);
	color: #111;
	font-size: 0.95rem;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}
.cx-adm-go b {
	flex: 0 0 auto;
	min-width: 1.6rem;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.15);
	font-weight: 700;
	text-align: center;
}
/* плитки крупнее: на них метка цвета и кнопка «Салон» */
@media (min-width: 768px) {
	.cx-adm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
.cx-adm-tile { container-type: inline-size; }
.cx-adm-tag, .cx-adm-shot {
	position: absolute;
	bottom: 0.5rem;
	height: 1.5rem;
	padding: 0 0.4rem;
	border-radius: 0.5rem;
	border: 0;
	background: rgba(17, 17, 17, 0.82);
	color: rgba(238, 238, 238, 0.75);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}
.cx-adm-tag {
	left: 0.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	max-width: calc(100% - 4.5rem);
	overflow: hidden;
}
.cx-adm-tag i {
	flex: 0 0 auto;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.6);
}
.cx-adm-tag i.sq { border-radius: 0.2rem; }
.cx-adm-tag i.none { border-style: dashed; background: none; }
.cx-adm-tag span { overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 15rem) {
	.cx-adm-tag span { display: none; }
}
.cx-adm-tag.on { color: #eee; }
.cx-adm-tag:hover, .cx-adm-shot:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.cx-adm-shot { right: 0.5rem; }
.cx-adm-shot.on { background: var(--cx-accent, #ffbd27); color: #111; }

/* ---------- Фильтр каталога: поля со списком ---------- */
.cx-dd { height: auto; max-height: 14rem; }
.cx-dd-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 3rem;
	padding: 0.5rem 1rem;
	cursor: pointer;
	text-align: left;
}
.cx-dd-row:hover, .cx-dd-row:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.cx-dd-label { flex: 1 1 auto; min-width: 0; font-weight: 500; }
/* граница между выбранными моделями и остальным списком */
.cx-dd-split { border-top: 1px solid rgba(255, 255, 255, 0.15); }
