/* Страница «Готовое решение» (catalog/complete-solution/*.php).
   Использует цветовые токены и приёмы из local/templates/market/template_styles.css
   (var(--gr)/--dgr/--sgr/--red/--redd/--lgr/--mn/--mgr/--bx, класс .rb,
   .profa-card/.profa-grid) — здесь только то, чего в общих файлах нет. */

.cs-page {
	padding: 40px 0 60px;
}

/* ---- список тизеров (без GET ID) -------------------------------------- */

.cs-list--teasers {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
}

.cs-teaser {
	padding: 14px;
	border-radius: 14px;
	background: var(--gr);
	box-shadow: var(--bx);
	transition: border-color .2s ease;
	border: 1px solid transparent;
}

.cs-teaser:hover {
	border-color: var(--red);
}

.cs-teaser__desc {
	font-weight: 300;
	font-size: 12px;
	line-height: 150%;
	color: var(--lgr);
}

@media (max-width: 900px) {
	.cs-list--teasers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 580px) {
	.cs-list--teasers {
		grid-template-columns: 1fr;
	}
}

/* ---- шапка решения ------------------------------------------------------ */

.cs-hero {
	margin-bottom: 32px;
}

.cs-hero__category {
	margin-bottom: 8px;
	color: var(--lgr);
	text-transform: uppercase;
	font-weight: 500;
	font-size: 12px;
	letter-spacing: .3px;
}

.cs-hero__desc {
	margin-top: 12px;
	max-width: 720px;
	color: var(--lgr);
	font-weight: 300;
	font-size: 14px;
	line-height: 160%;
}

.cs-hero__chars {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
	list-style: none;
	padding: 0;
}

.cs-hero__char {
	padding: 8px 16px;
	border-radius: 20.6557px;
	background: var(--sgr);
	font-size: 12px;
	line-height: 150%;
}

.cs-hero__char-label {
	margin-right: 6px;
	color: var(--lgr);
}

.cs-hero__char-value {
	color: var(--mn);
	font-weight: 500;
}

.cs-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.cs-action {
	display: inline-block;
	padding: 9px 20px;
	border: 1.03279px solid var(--mgr);
	border-radius: 92.9283px;
	color: var(--mn);
	font-weight: 500;
	font-size: 12px;
	transition: border-color .2s ease, color .2s ease;
}

.cs-action:hover {
	border-color: var(--red);
	color: var(--red);
}

/* ---- калькулятор: контент + сайдбар-итог ------------------------------- */

.cs-calc {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 25px;
}

.cs-calc__area {
	flex: 0 0 100%;
	max-width: 100%;
	margin-bottom: 8px;
}

.cs-calc__area label {
	display: block;
	margin-bottom: 8px;
	color: var(--mn);
	font-weight: 500;
	font-size: 13px;
}

.cs-calc__area input {
	width: 200px;
	max-width: 100%;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: var(--gr);
	color: var(--lgr);
	font-size: 13px;
	font-weight: 300;
	box-sizing: border-box;
}

.cs-calc__groups {
	flex: 1 1 calc(100% - 273px);
	min-width: 0;
}

.cs-group + .cs-group {
	margin-top: 20px;
}

.cs-group__title {
	margin-bottom: 14px;
	color: var(--mn);
	text-transform: uppercase;
	font-weight: 500;
	font-size: 15px;
}

.cs-group__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ---- строка компонента --------------------------------------------------- */

.cs-component {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--gr);
	box-shadow: var(--bx);
	transition: opacity .15s ease;
}

.cs-component--excluded {
	opacity: .45;
}

.cs-component__toggle {
	flex: 0 0 auto;
}

.cs-component__toggle .checkbox {
	display: none;
}

.cs-component__toggle .checkbox + label {
	display: block;
	width: 20px;
	height: 20px;
	margin: 0;
	cursor: pointer;
	background: url('/local/templates/market/img/checkbox.svg') no-repeat center / contain;
}

.cs-component__toggle .checkbox:checked + label {
	background-image: url('/local/templates/market/img/checkbox2.svg');
}

.cs-component__required {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--red);
	color: var(--mn);
	font-size: 12px;
	line-height: 1;
}

.cs-component__img {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--mn);
}

.cs-component__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.cs-component__info {
	flex: 1 1 auto;
	min-width: 0;
}

.cs-component__title {
	display: block;
	margin-bottom: 4px;
	color: var(--mn);
	font-weight: 500;
	font-size: 14px;
	line-height: 130%;
}

.cs-component__title:hover {
	color: var(--red);
}

.cs-component__desc {
	margin-bottom: 4px;
	color: var(--lgr);
	font-weight: 300;
	font-size: 12px;
	line-height: 140%;
}

.cs-component__meta {
	color: var(--lgr);
	font-size: 12px;
}

.cs-component__meta [data-cs-unit-price] {
	color: var(--mn);
	font-weight: 500;
}

.cs-component__calc {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.cs-component__qty-label {
	display: block;
	margin-bottom: 2px;
	color: var(--lgr);
	font-size: 10px;
	text-transform: uppercase;
}

.cs-component__qty,
.cs-component__coverage {
	min-width: 56px;
	color: var(--mn);
	font-size: 13px;
	font-weight: 500;
}

.cs-component__total {
	min-width: 90px;
	color: var(--red);
	font-size: 15px;
	font-weight: 600;
}

@media (max-width: 767px) {
	.cs-component {
		flex-wrap: wrap;
	}

	.cs-component__calc {
		flex: 0 0 100%;
		justify-content: space-between;
		padding-left: 36px;
	}
}

/* ---- сводка / итог ------------------------------------------------------- */

.cs-summary {
	flex: 0 0 248px;
	position: sticky;
	top: 106px;
	padding: 20px;
	border-radius: 20.6557px;
	background: var(--gr);
	box-shadow: var(--bx);
}

@media (max-width: 991px) {
	.cs-calc__groups {
		flex: 1 1 100%;
	}

	.cs-summary {
		flex: 0 0 100%;
		position: static;
	}
}

.cs-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mgr);
	font-size: 13px;
}

.cs-summary__row span:last-child {
	color: var(--mn);
	font-weight: 500;
	white-space: nowrap;
}

.cs-summary__row--toggle {
	align-items: center;
}

.cs-summary__installation-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.cs-summary__installation-label input[type="checkbox"] {
	display: none;
}

.cs-summary__installation-icon {
	display: block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: url('/local/templates/market/img/checkbox.svg') no-repeat center / contain;
}

.cs-summary__installation-label input[type="checkbox"]:checked + .cs-summary__installation-icon {
	background-image: url('/local/templates/market/img/checkbox2.svg');
}

.cs-summary__note {
	padding: 8px 0;
	color: var(--lgr);
	font-weight: 300;
	font-size: 11px;
	line-height: 150%;
}

.cs-summary__row--total {
	border-bottom: none;
	padding-top: 14px;
}

.cs-summary__row--total span {
	font-size: 16px;
	font-weight: 600;
}

.cs-summary__row--total span:last-child {
	color: var(--red);
}

.cs-summary__submit {
	width: 100%;
	margin-top: 14px;
}

.cs-summary__status {
	margin-top: 10px;
	min-height: 16px;
	color: var(--lgr);
	font-size: 12px;
	text-align: center;
}

.cs-summary__status--error {
	color: var(--red);
}
