/* «Этот экземпляр» — витрина машины из наличия (news.detail/.default/instock_showcase.php).
   Подключается ссылкой из блока. Подача — паспорт ателье: тёмный оливковый фон, латунь Garia.
   Шрифт — общий шрифт сайта (наследуется от body), заголовки — как h2 карточки: 500, -1px. */
.ix {
	--ix-bg: #15160f;
	--ix-bg2: #23241a;
	--ix-ink: #f4f1e8;
	--ix-muted: #b9b5a6;
	--ix-brass: #d2ae72;
	--ix-cherry: #7b393a;
	--ix-olive: #737061;
	--ix-lime: #bae00b;
	--ix-line: rgba(210, 174, 114, .22);
	position: relative;
	margin: 60px 0 90px;
	padding: clamp(28px, 5vw, 72px);
	border-radius: 28px;
	color: var(--ix-ink);
	background:
		radial-gradient(60% 50% at 78% 18%, rgba(123, 57, 58, .38), transparent 70%),
		radial-gradient(55% 60% at 12% 70%, rgba(115, 112, 97, .35), transparent 70%),
		linear-gradient(160deg, var(--ix-bg2), var(--ix-bg) 60%);
	overflow: hidden;
	isolation: isolate;
}

/* зерно поверх фона — как у печатного каталога */
.ix::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .09;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	pointer-events: none;
}

.ix img {
	display: block;
	max-width: 100%;
}

.ix button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.ix :focus-visible {
	outline: 2px solid var(--ix-lime);
	outline-offset: 3px;
}

/* ---------- заголовок ---------- */
.ix-head {
	max-width: 900px;
}

.ix-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ix-brass);
}

.ix-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ix-lime);
	box-shadow: 0 0 0 0 rgba(186, 224, 11, .6);
	animation: ix-ping 2.4s infinite;
}

@keyframes ix-ping {
	70% { box-shadow: 0 0 0 10px rgba(186, 224, 11, 0); }
	100% { box-shadow: 0 0 0 0 rgba(186, 224, 11, 0); }
}

/* h2 в селекторе — чтобы перебить .product-page:not(.service) h2 (у него отступ 60px) */
.ix h2.ix-title {
	margin: 0 0 22px;
	font-family: inherit;
	font-weight: 500;
	font-size: clamp(32px, 4.4vw, 60px);
	line-height: 1.08;
	letter-spacing: -1px;
	color: var(--ix-ink);
}

.ix-title em {
	font-style: normal;
	color: var(--ix-brass);
}

.ix-lead {
	max-width: 68ch;
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ix-muted);
}

/* ---------- сцена: машина + детали ---------- */
.ix-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
	gap: clamp(20px, 3vw, 48px);
	align-items: center;
	margin-top: clamp(30px, 4vw, 56px);
}

.ix-viewer {
	position: relative;
}

.ix-switch {
	display: inline-flex;
	padding: 4px;
	border: 1px solid var(--ix-line);
	border-radius: 999px;
	background: rgba(0, 0, 0, .25);
}

.ix .ix-switch-btn {
	padding: 9px 20px;
	border-radius: 999px;
	font-size: 14px;
	color: var(--ix-muted) !important;
	transition: background .3s, color .3s;
}

.ix .ix-switch-btn[aria-pressed="true"] {
	background: var(--ix-brass) !important;
	color: #1b1a12 !important;
}

.ix-car {
	position: relative;
	margin: 8px 0 0;
	aspect-ratio: 1400 / 950;
	touch-action: pan-y;
	user-select: none;
}

/* «подиум» — мягкое пятно света под машиной */
.ix-car::before {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 4%;
	height: 34%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(244, 241, 232, .2), transparent);
	z-index: 0;
}

.ix-car-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	z-index: 1;
	opacity: 0;
	transform: translateX(4%) scale(.97);
	transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
	pointer-events: none;
	-webkit-user-drag: none;
}

.ix-car[data-view="front"] .ix-car-img--front,
.ix-car[data-view="rear"] .ix-car-img--rear {
	opacity: 1;
	transform: none;
}

.ix-car[data-view="rear"] .ix-car-img--front {
	transform: translateX(-4%) scale(.97);
}

.ix-spot {
	position: absolute;
	z-index: 2;
	left: var(--x);
	top: var(--y);
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border-radius: 50% !important;
	background: rgba(21, 22, 15, .78) !important;
	border: 1.5px solid var(--ix-brass) !important;
	color: var(--ix-brass) !important;
	font-size: 13px;
	font-weight: 700;
	display: grid;
	place-items: center;
	transition: opacity .4s .25s, transform .25s, background .25s, color .25s;
}

.ix-spot::after {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: 50%;
	border: 1px solid var(--ix-brass);
	opacity: 0;
	animation: ix-ring 2.6s infinite;
}

@keyframes ix-ring {
	0% { transform: scale(.7); opacity: .8; }
	100% { transform: scale(1.5); opacity: 0; }
}

.ix-spot:hover {
	transform: scale(1.12);
}

.ix-spot[aria-pressed="true"] {
	background: var(--ix-brass) !important;
	color: #1b1a12 !important;
	transform: scale(1.15);
}

.ix-car[data-view="front"] .ix-spot[data-view="rear"],
.ix-car[data-view="rear"] .ix-spot[data-view="front"] {
	opacity: 0;
	pointer-events: none;
	transition-delay: 0s;
}

.ix-hint {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--ix-muted);
}

/* панель деталей */
.ix-panel {
	border: 1px solid var(--ix-line);
	border-radius: 20px;
	background: rgba(0, 0, 0, .22);
	overflow: hidden;
}

.ix-photo {
	position: relative;
	margin: 0;
	aspect-ratio: 3 / 2;
	background: #0b0b08;
}

.ix-photo-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity .5s, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}

.ix-photo-img.is-on {
	opacity: 1;
	transform: none;
}

.ix-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	counter-reset: none;
}

.ix-list li {
	margin: 0;
	padding: 0;
}

.ix-list li::before {
	display: none;
}

.ix-item {
	display: grid !important;
	grid-template-columns: 34px 1fr;
	grid-template-rows: auto 0fr;
	column-gap: 10px;
	width: 100%;
	padding: 11px 22px !important;
	text-align: left;
	border-top: 1px solid rgba(210, 174, 114, .1) !important;
	transition: background .25s, grid-template-rows .35s;
}

.ix-list li:first-child .ix-item {
	border-top: 0 !important;
}

.ix-item:hover {
	background: rgba(210, 174, 114, .07) !important;
}

.ix-num {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: var(--ix-muted);
	padding-top: 3px;
}

.ix-name {
	font-size: 16px;
	color: var(--ix-ink);
}

.ix-name small {
	margin-left: 6px;
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ix-brass);
}

.ix-text {
	grid-column: 2;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ix-muted);
}

.ix-item[aria-pressed="true"] {
	grid-template-rows: auto 1fr;
	background: rgba(210, 174, 114, .1) !important;
}

.ix-item[aria-pressed="true"] .ix-num {
	color: var(--ix-brass);
}

.ix-item[aria-pressed="true"] .ix-text {
	padding-top: 6px;
}

/* ---------- палитра ---------- */
.ix .ix-h3 {
	margin: 0 0 26px;
	font-family: inherit;
	font-weight: 500;
	font-size: clamp(26px, 2.8vw, 40px);
	line-height: 1.1;
	letter-spacing: -1px;
	color: var(--ix-ink);
}

.ix-palette {
	margin-top: clamp(50px, 6vw, 90px);
}

.ix-swatches {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ix-swatch {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 22px 22px 24px;
	border: 1px solid var(--ix-line);
	border-radius: 20px;
	background: rgba(255, 255, 255, .03);
	transition: transform .35s, border-color .35s;
}

.ix-swatch::before {
	display: none;
}

.ix-swatch:hover {
	transform: translateY(-4px);
	border-color: var(--ix-brass);
}

.ix-chip {
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 14px;
	border-radius: 14px;
	background: var(--sw);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

/* металлик: блик и глубина */
.ix-swatch--olive .ix-chip {
	background:
		radial-gradient(120% 90% at 25% 15%, rgba(255, 255, 255, .45), transparent 45%),
		linear-gradient(135deg, #8e8a76, var(--sw) 45%, #3f3d33);
}

/* кожа: снимок из лупы конфигуратора, увеличен и подкрашен */
.ix-swatch--cherry .ix-chip {
	background:
		linear-gradient(rgba(123, 57, 58, .25), rgba(60, 20, 22, .35)),
		var(--sw-img, none) center / 180% auto,
		var(--sw);
}

/* карбон: саржевое плетение */
.ix-swatch--carbon .ix-chip {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .14), transparent 55%),
		conic-gradient(from 45deg, #2c2c30 0 25%, #121214 0 50%, #2c2c30 0 75%, #121214 0) 0 0 / 12px 12px;
}

.ix-swatch--matte .ix-chip {
	background: radial-gradient(80% 80% at 30% 30%, #3a3a3a, var(--sw) 70%);
}

.ix-swatch b {
	font-size: 18px;
	font-weight: 600;
	color: var(--ix-ink);
}

.ix-swatch span:not(.ix-chip) {
	font-size: 14px;
	color: var(--ix-muted);
}

/* ---------- комплектация ---------- */
.ix-sheet {
	margin-top: clamp(50px, 6vw, 90px);
}

.ix-sheet-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--ix-brass);
}

.ix-sheet-col {
	padding: 22px 22px 6px 0;
}

.ix-sheet-col + .ix-sheet-col {
	padding-left: 22px;
	border-left: 1px solid var(--ix-line);
}

.ix .ix-sheet-col h4 {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ix-brass);
}

.ix-sheet-col dl {
	margin: 0;
}

.ix-sheet-col dl > div {
	padding: 10px 0;
	border-bottom: 1px solid rgba(210, 174, 114, .1);
}

.ix-sheet-col dt {
	font-size: 13px;
	color: var(--ix-muted);
}

.ix-sheet-col dd {
	margin: 2px 0 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ix-ink);
}

/* ---------- призыв ---------- */
.ix-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 30px;
	align-items: center;
	margin-top: clamp(50px, 6vw, 90px);
	padding: clamp(24px, 3vw, 40px);
	border-radius: 22px;
	background: linear-gradient(120deg, rgba(210, 174, 114, .16), rgba(123, 57, 58, .22));
	border: 1px solid var(--ix-line);
}

.ix .ix-cta h3 {
	margin: 0 0 10px;
	font-family: inherit;
	font-weight: 500;
	letter-spacing: -.5px;
	font-size: clamp(26px, 2.6vw, 38px);
	line-height: 1.15;
	color: var(--ix-ink);
}

.ix-cta p {
	margin: 0;
	max-width: 60ch;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ix-muted);
}

.ix-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: flex-end;
	max-width: 460px;
}

.ix .ix-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ix-ink);
	border: 1px solid rgba(244, 241, 232, .45);
	transition: background .25s, color .25s, transform .25s;
}

.ix .ix-btn:hover {
	background: var(--ix-ink);
	color: #1b1a12;
}

.ix .ix-btn--main {
	background: var(--ix-lime);
	border-color: var(--ix-lime);
	color: #1c263c;
}

.ix .ix-btn--main:hover {
	background: #d4ff1a;
	color: #1c263c;
	transform: translateY(-2px);
}

.ix .ix-link {
	flex-basis: 100%;
	text-align: right;
	font-size: 15px;
	color: var(--ix-brass);
	text-decoration: none;
	border-bottom: 0;
}

.ix .ix-link:hover {
	text-decoration: underline;
}

/* ---------- появление при прокрутке ---------- */
.ix-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1);
}

.ix-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ix *,
	.ix-reveal {
		animation: none !important;
		transition: none !important;
	}

	.ix-reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
	.ix-stage {
		grid-template-columns: 1fr;
	}

	.ix-panel {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.ix-photo {
		aspect-ratio: auto;
		min-height: 100%;
	}

	.ix-swatches,
	.ix-sheet-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ix-sheet-col:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}

	.ix-cta {
		grid-template-columns: 1fr;
	}

	.ix-cta-actions {
		justify-content: flex-start;
		max-width: none;
	}

	.ix .ix-link {
		text-align: left;
	}
}

@media (max-width: 700px) {
	.ix {
		margin: 40px -16px 60px;
		border-radius: 0;
		padding: 36px 16px 40px;
	}

	.ix-lead {
		font-size: 16px;
	}

	.ix-panel {
		display: block;
	}

	.ix-photo {
		aspect-ratio: 3 / 2;
	}

	.ix-spot {
		width: 28px;
		height: 28px;
		margin: -14px 0 0 -14px;
		font-size: 12px;
	}

	.ix-item {
		padding: 11px 16px !important;
	}

	.ix-swatches {
		gap: 10px;
	}

	.ix-swatch {
		padding: 12px 12px 14px;
	}

	.ix-swatch b {
		font-size: 16px;
	}

	.ix-sheet-grid {
		grid-template-columns: 1fr;
	}

	.ix-sheet-col,
	.ix-sheet-col + .ix-sheet-col {
		padding: 18px 0 4px;
		border-left: 0;
	}

	.ix .ix-btn {
		flex: 1 1 100%;
	}
}
