/* ==========================================================================
   Конфигуратор BMW — nemtsu-horosho.ru
   Палитра: синий BMW #1259A8 (действия), красный M-Performance #E2231A
   (только кнопка «в корзину»), светлый фон, Inter (наследуется от темы).
   ========================================================================== */

.nh-configurator {
	max-width: 880px;
	margin: 0 auto;
	padding-bottom: 32px;
}

/* ---------- Шаги выбора ---------- */

.nh-configurator__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

@media (max-width: 720px) {
	.nh-configurator__steps { grid-template-columns: 1fr; }
}

.nh-configurator__step {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 12px;
	padding: 14px 16px;
}

.nh-configurator__step-num {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #1259A8;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}

.nh-configurator__field { flex: 1 1 auto; min-width: 0; }

.nh-configurator__field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #6b7280;
	margin-bottom: 6px;
}

.nh-configurator__field select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
	color: #101828;
}

.nh-configurator__field select:disabled {
	background: #f9fafb;
	color: #98a2b3;
}

.nh-configurator__note {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e429f;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	margin-bottom: 16px;
}

.nh-configurator__note--warn {
	background: #fffaf0;
	border-color: #fde3a7;
	color: #92400e;
}

/* ---------- Фото машины ---------- */

.nh-configurator__car-image {
	text-align: center;
	margin-bottom: 20px;
}
.nh-configurator__car-image img {
	max-width: 100%;
	max-height: 260px;
	object-fit: contain;
}

/* ---------- Штатные показатели ---------- */

.nh-configurator__stock {
	font-size: 16px;
	color: #344054;
	background: #f9fafb;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 16px;
}
.nh-configurator__stock strong { color: #101828; font-size: 18px; }

/* ---------- Карточки товаров ---------- */

.nh-configurator__products {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}

.nh-configurator__empty {
	color: #667085;
	font-size: 14px;
	padding: 16px 0;
}

.nh-product-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 12px;
	padding: 12px 14px;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.nh-product-card:hover {
	border-color: #1259A8;
	box-shadow: 0 1px 6px rgba(18, 89, 168, 0.12);
}
.nh-product-card:has(input:checked) {
	border-color: #1259A8;
	background: #f5f9ff;
}
.nh-product-card--out {
	opacity: .55;
}

.nh-product-card__checkbox {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
.nh-product-card__checkbox input {
	width: 20px;
	height: 20px;
	accent-color: #1259A8;
	cursor: pointer;
}

.nh-product-card__image {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	object-fit: contain;
	border-radius: 8px;
	background: #f9fafb;
}

.nh-product-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.nh-product-card__title {
	font-weight: 600;
	font-size: 15px;
	color: #101828;
	margin-bottom: 2px;
}

.nh-product-card__effect {
	font-size: 13px;
	color: #1259A8;
	margin-bottom: 2px;
}

.nh-product-card__meta {
	font-size: 12px;
	color: #98a2b3;
}

.nh-product-card__price {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 15px;
	color: #101828;
	white-space: nowrap;
}

/* ---------- Итог ---------- */

.nh-configurator__total {
	font-size: 16px;
	color: #344054;
	margin-bottom: 16px;
}
.nh-configurator__total strong { color: #101828; font-size: 20px; }
.nh-configurator__diff {
	color: #067647;
	font-weight: 600;
	margin-left: 8px;
	font-size: 14px;
}

/* ---------- Шкала мощности ---------- */

.nh-configurator__scale { margin-bottom: 24px; }

.nh-configurator__scale-track {
	position: relative;
	height: 8px;
	background: #eef1f5;
	border-radius: 4px;
	overflow: visible;
}

.nh-configurator__scale-fill {
	position: absolute;
	left: 0; top: 0; bottom: 0;
	background: linear-gradient(90deg, #1259A8, #4f8fd6);
	border-radius: 4px;
	width: 0%;
	transition: width .3s ease;
}

.nh-configurator__scale-marker {
	position: absolute;
	top: -3px;
	width: 2px;
	height: 14px;
	background: #101828;
}

.nh-configurator__scale-labels {
	position: relative;
	height: 28px;
	margin-top: 4px;
}
.nh-configurator__scale-label {
	position: absolute;
	transform: translateX(-50%);
	font-size: 10px;
	color: #98a2b3;
	white-space: nowrap;
}

/* ---------- Момент и доп. графики (наддув/температура) ---------- */

.nh-configurator__torque-chart {
	margin-bottom: 20px;
}

.nh-configurator__extra-charts {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 20px;
}

.nh-configurator__extra-charts-item {
	background: #f9fafb;
	border-radius: 10px;
	padding: 12px 14px;
}

.nh-configurator__extra-charts-title {
	font-size: 13px;
	font-weight: 600;
	color: #344054;
	margin-bottom: 8px;
}

/* ---------- Статьи по теме ---------- */

.nh-configurator__articles { margin-bottom: 20px; }
.nh-configurator__articles-title {
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin-bottom: 8px;
}
.nh-configurator__article-link {
	display: block;
	color: #1259A8;
	font-size: 14px;
	text-decoration: none;
	margin-bottom: 4px;
}
.nh-configurator__article-link:hover { text-decoration: underline; }

/* ---------- Честность про вилку ---------- */

.nh-configurator__honesty {
	background: #f9fafb;
	border-radius: 12px;
	padding: 16px 18px;
	margin-top: 24px;
}
.nh-configurator__honesty-title {
	font-weight: 700;
	font-size: 14px;
	color: #101828;
	margin-bottom: 6px;
}
.nh-configurator__honesty p {
	font-size: 13px;
	line-height: 1.55;
	color: #667085;
	margin: 0;
}

/* ---------- Sticky-панель с итогом ---------- */

.nh-configurator__sticky {
	position: sticky;
	bottom: 0;
	left: 0; right: 0;
	background: #fff;
	border-top: 1px solid #e4e7ec;
	box-shadow: 0 -2px 12px rgba(16, 24, 40, 0.06);
	padding: 12px 16px;
	z-index: 20;
	margin-top: 16px;
}

.nh-configurator__sticky-in {
	max-width: 880px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

#nh-cfg-sum {
	font-size: 16px;
	font-weight: 700;
	color: #101828;
}

.nh-configurator__btn {
	background: #E2231A;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
	white-space: nowrap;
}
.nh-configurator__btn:hover:not(:disabled) { background: #c11d15; }
.nh-configurator__btn:disabled {
	background: #d0d5dd;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.nh-configurator__sticky-in { flex-direction: column; align-items: stretch; }
	.nh-configurator__btn { width: 100%; }
}
