/* Квиз «тип мужчин» — изоляция префиксом .spq- */
/* Скрываем дублирующий заголовок темы на странице теста */
.sexpro-quiz-attraction-page .main.texture h1.title {
	display: none !important;
}

/* Тема задаёт .main p { text-align: right } — внутри квиза всё по центру */
.sexpro-quiz-attraction-page .main.texture .spq p {
	text-align: center;
}

.spq {
	--spq-bg: #fff9f9;
	--spq-bg-header: rgba(255, 249, 249, 0.94);
	--spq-text: #281820;
	--spq-muted: #5c3d47;
	--spq-accent: #64000a;
	--spq-accent-hover: #4a0007;
	--spq-accent-soft: #8b1532;
	--spq-gold: #d8b363;
	--spq-border: rgba(100, 0, 10, 0.12);
	--spq-radius: 12px;
	--spq-shadow: 0 8px 28px rgba(100, 0, 10, 0.08);
	/* Как в теме trening: body + блоки .main p — OpenSansRegular, крупнее базового 16px */
	font-family: OpenSansRegular, "Open Sans", system-ui, sans-serif;
	font-size: clamp(17px, 2.3vw, 20px);
	line-height: 1.55;
	color: var(--spq-text);
	max-width: 640px;
	width: 100%;
	margin: 0 auto 48px;
	padding: 0 16px 32px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	text-align: center;
}

.spq *,
.spq *::before,
.spq *::after {
	box-sizing: border-box;
}

.spq-noscript {
	padding: 16px;
	background: #fff3f3;
	border-radius: var(--spq-radius);
	color: var(--spq-accent);
}

.spq-header {
	position: sticky;
	top: 0;
	z-index: 50;
	margin: 0;
	width: 100%;
	padding: 16px 18px 18px;
	background: var(--spq-bg-header);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--spq-border);
	border-radius: var(--spq-radius);
	box-shadow: var(--spq-shadow);
}

.spq-title {
	margin: 0;
	font-family: inherit;
	font-weight: 700;
	/* Крупнее названия теста: мобильный ~22px → десктоп до ~34px */
	font-size: clamp(1.35rem, 5.2vw, 2.125rem);
	line-height: 1.22;
	color: var(--spq-accent);
	text-align: center;
}

.spq-progress-wrap {
	margin-top: 12px;
}

.spq-progress-label {
	display: block;
	font-size: clamp(1rem, 2.4vw, 1.125rem);
	font-weight: 600;
	color: var(--spq-muted);
	text-align: center;
	margin-bottom: 10px;
}

.spq-progress-bar {
	height: 6px;
	background: rgba(100, 0, 10, 0.08);
	border-radius: 99px;
	overflow: hidden;
}

.spq-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--spq-accent) 0%, var(--spq-accent-soft) 100%);
	border-radius: 99px;
	transition: width 0.35s ease;
}

.spq-card {
	width: 100%;
	margin: 0;
	background: var(--spq-bg);
	border: 1px solid var(--spq-border);
	border-radius: var(--spq-radius);
	padding: clamp(20px, 4vw, 28px);
	box-shadow: var(--spq-shadow);
}

.spq-question-text {
	margin: 0 0 22px;
	font-family: inherit;
	/* Сайт: основной акцентный текст в блоках ~20px */
	font-size: clamp(1.05rem, 2.6vw, 1.25rem);
	font-weight: 700;
	color: var(--spq-accent);
	line-height: 1.4;
	text-align: center;
}

.spq-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.spq-option {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 16px 18px;
	margin: 0;
	border: 2px solid var(--spq-border);
	border-radius: var(--spq-radius);
	background: #fff;
	color: var(--spq-text);
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition:
		border-color 0.25s ease,
		background 0.25s ease,
		color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.spq-option:hover {
	border-color: rgba(100, 0, 10, 0.28);
	box-shadow: 0 4px 14px rgba(100, 0, 10, 0.06);
}

.spq-option:focus-visible {
	outline: 2px solid var(--spq-gold);
	outline-offset: 2px;
}

.spq-option.is-selected {
	border-color: var(--spq-accent);
	background: var(--spq-accent);
	color: #fff;
	box-shadow: 0 6px 20px rgba(100, 0, 10, 0.2);
}

.spq-pane {
	animation: spqFadeIn 0.35s ease;
}

@keyframes spqFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Экран результата: порядок — заголовок → баллы → тема → текст → призыв → кнопка */
.spq--completed .spq-progress-wrap[hidden] {
	display: none !important;
}

.spq-result-heading {
	margin: 0 0 12px;
	font-family: inherit;
	font-size: clamp(1.2rem, 3.2vw, 1.45rem);
	font-weight: 800;
	color: var(--spq-accent);
	line-height: 1.3;
	text-align: center;
}

.spq-result-score {
	margin: 0 0 18px;
	font-size: 1.08em;
	font-weight: 700;
	color: var(--spq-text);
	text-align: center;
}

.spq-result-band-title {
	margin: 0 0 14px;
	font-family: inherit;
	font-size: clamp(1.05rem, 2.8vw, 1.25rem);
	font-weight: 700;
	color: var(--spq-accent);
	line-height: 1.35;
	text-align: center;
}

.spq-result-text {
	margin: 0 0 24px;
	font-size: 1em;
	color: var(--spq-muted);
	line-height: 1.65;
	text-align: center;
}

.spq-result-cta {
	margin: 28px 0 20px;
	padding: 0 4px;
	font-size: clamp(1rem, 2.6vw, 1.08rem);
	font-weight: 600;
	color: var(--spq-text);
	line-height: 1.55;
	text-align: center;
}

.spq-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}

.spq-btn-subscribe {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 18px 26px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(165deg, var(--spq-accent) 0%, #4a0007 100%);
	color: #fff !important;
	font-family: inherit;
	font-size: 1.0625em;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 10px 32px rgba(100, 0, 10, 0.28);
	transition:
		transform 0.2s ease,
		box-shadow 0.25s ease,
		filter 0.2s ease;
}

.spq-btn-subscribe:hover {
	filter: brightness(1.06);
	box-shadow: 0 12px 36px rgba(100, 0, 10, 0.35);
	color: #fff !important;
}

.spq-btn-subscribe:focus-visible {
	outline: 2px solid var(--spq-gold);
	outline-offset: 3px;
}

.spq-btn-subscribe .spq-icon {
	font-size: 1.1em;
	line-height: 1;
	font-weight: 700;
}

.spq-btn-ghost {
	min-height: 50px;
	padding: 14px 22px;
	border: 2px solid var(--spq-border);
	border-radius: 999px;
	background: transparent;
	color: var(--spq-muted);
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		color 0.2s ease;
}

.spq-btn-ghost:hover {
	border-color: var(--spq-accent);
	color: var(--spq-accent);
}

@media (min-width: 481px) {
	.spq {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (min-width: 1025px) {
	.spq {
		max-width: 680px;
		margin-bottom: 56px;
	}
}
