/* Квиз «пристройка» — вёрстка в духе референса */

.stroi-pq {
	--stroi-pq-orange: #e6893c;
	--stroi-pq-orange-hover: #c9752b;
	--stroi-pq-bg: #f4f4f4;
	--stroi-pq-dark: #2b2f3f;
	--stroi-pq-border: #e0e0e0;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.stroi-pq-head {
	position: relative;
	text-align: center;
	margin-bottom: 1.5rem;
}

.stroi-pq-head__fly {
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0.9;
	pointer-events: none;
}

.stroi-pq-head__small {
	font-size: clamp(1rem, 2.5vw, 1.35rem);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding-top: 0.25rem;
}

.stroi-pq-head__big {
	font-size: clamp(1.35rem, 4vw, 2.25rem);
	font-weight: 600;
	text-transform: uppercase;
	margin-top: 0.35rem;
	line-height: 1.2;
}

.stroi-pq-layout {
	display: grid;
	grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: clamp(1rem, 3vw, 2rem);
	background: var(--stroi-pq-bg);
	border: 1px solid var(--stroi-pq-border);
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.stroi-pq-layout {
		grid-template-columns: 1fr;
	}
	.stroi-pq-head__fly {
		display: none;
	}
}

.stroi-pq-side--left {
	font-size: 0.95rem;
	color: #333;
}

.stroi-pq-man img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.stroi-pq-man-meta {
	text-align: center;
	margin-top: 0.75rem;
}

.stroi-pq-man-name span {
	display: inline-block;
	padding: 0.2rem 0.75rem;
	background: #111;
	color: #fff;
	font-weight: 500;
	border-radius: 2px;
}

.stroi-pq-man-role {
	font-size: 0.875rem;
	margin-top: 0.35rem;
	color: #555;
}

.stroi-pq-quote {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	margin-top: 1rem;
}

.stroi-pq-quote__text {
	line-height: 1.45;
}

.stroi-pq-benefits-title {
	text-align: center;
	font-weight: 600;
	text-transform: uppercase;
	margin: 1.5rem 0 0.75rem;
	font-size: 0.95rem;
}

.stroi-pq-benefits {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.stroi-pq-benefit {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #fff;
	border: 1px solid var(--stroi-pq-border);
	padding: 0.5rem 0.65rem;
}

.stroi-pq-benefit__img {
	flex: 0 0 48px;
}

.stroi-pq-benefit__img img {
	display: block;
	max-width: 48px;
	height: auto;
}

.stroi-pq-benefit p {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 500;
}

/* Форма */
.stroi-pq-form {
	background: #fff;
	border: 1px solid var(--stroi-pq-border);
	padding: clamp(1rem, 2.5vw, 1.5rem);
	box-sizing: border-box;
}

.stroi-pq-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.stroi-pq-progress {
	margin-bottom: 1.25rem;
}

.stroi-pq-progress__row {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.stroi-pq-progress__bar {
	height: 8px;
	background: #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
}

.stroi-pq-progress__fill {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--stroi-pq-orange);
	transition: width 0.25s ease;
}

.stroi-pq-step {
	display: none;
}

.stroi-pq-step.is-active {
	display: block;
}

.stroi-pq-field-label {
	font-weight: 600;
	margin-bottom: 0.5rem;
	display: block;
}

.stroi-pq-field--mt {
	margin-top: 1rem;
}

.stroi-pq-field input[type='text'],
.stroi-pq-field input[type='tel'],
.stroi-pq-field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--stroi-pq-border);
	font: inherit;
}

.stroi-pq-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
}

@media (max-width: 700px) {
	.stroi-pq-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.stroi-pq-cards {
		grid-template-columns: 1fr;
	}
}

.stroi-pq-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border: 2px solid var(--stroi-pq-border);
	background: #fafafa;
	cursor: pointer;
	padding: 0;
	margin: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stroi-pq-card:hover {
	border-color: #cfcfcf;
}

.stroi-pq-card:has(input:checked) {
	border-color: var(--stroi-pq-orange);
	box-shadow: 0 0 0 1px rgba(230, 137, 60, 0.25);
}

.stroi-pq-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.stroi-pq-card__img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eee;
}

.stroi-pq-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.stroi-pq-card__title {
	padding: 0.45rem 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.25;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stroi-pq-inline-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin: 0.5rem 0 1rem;
}

.stroi-pq-inline-check {
	font-weight: 500;
	cursor: pointer;
	user-select: none;
}

.stroi-pq-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1rem;
}

@media (max-width: 560px) {
	.stroi-pq-grid2 {
		grid-template-columns: 1fr;
	}
}

.stroi-pq-lead {
	margin: 0 0 1rem;
	line-height: 1.45;
}

.stroi-pq-req {
	color: #c00;
}

.stroi-pq-policy {
	font-size: 0.75rem;
	color: #666;
	margin: 0.75rem 0 0;
	line-height: 1.4;
}

.stroi-pq-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.25rem;
	align-items: center;
}

.stroi-pq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.65rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	border: none;
	cursor: pointer;
	text-decoration: none;
	box-sizing: border-box;
}

.stroi-pq-btn--primary {
	background: var(--stroi-pq-orange);
	color: #fff;
}

.stroi-pq-btn--primary:hover:not(:disabled) {
	background: var(--stroi-pq-orange-hover);
}

.stroi-pq-btn--ghost {
	background: #ececec;
	color: var(--stroi-pq-dark);
}

.stroi-pq-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.stroi-pq-message {
	margin-top: 0.75rem;
	font-weight: 600;
	min-height: 1.25em;
}

.stroi-pq-message.is-error {
	color: #b00020;
}
