/**
 * Диагностика жизненной энергии: 5 сфер жизни.
 * Чистый, спокойный, в стиле сайта.
 */

.va-test-section {
	padding: var(--va-space, 24px) 0 var(--va-space-xl, 72px);
	min-height: 60vh;
}

.va-diagnosis .va-container {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.va-test {
	--va-test-bg: #F7F4EF;
	--va-test-card: #FFFFFF;
	--va-test-btn: #B79F8E;
	--va-test-btn-hover: #9F8776;
	--va-test-text: #2F2A28;
	--va-test-text-secondary: #6F655E;
	--va-test-radius: 20px;
	--va-test-radius-sm: 12px;
	--va-test-shadow: 0 4px 24px rgba(47, 42, 40, 0.06);
	max-width: 640px;
	margin: 0 auto;
}

/* Скрытие неактивных экранов */
.va-test-screen {
	display: none;
	animation: vaTestFadeIn 0.4s ease;
}
.va-test-screen.va-test-active {
	display: block;
}

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

/* Intro */
.va-test-intro-card {
	padding: clamp(28px, 5vw, 48px);
	text-align: center;
}
.va-test-main-title {
	font-family: var(--va-font-heading, 'Playfair Display', serif);
	font-size: clamp(24px, 4vw, 32px);
	color: var(--va-test-text);
	margin-bottom: 16px;
	line-height: 1.25;
}
.va-test-intro-lead {
	font-size: 1.1em;
	color: var(--va-test-text-secondary);
	margin-bottom: 20px;
	line-height: 1.5;
}
.va-test-intro-body {
	text-align: left;
	max-width: 520px;
	margin: 0 auto 28px;
}
.va-test-intro-body p {
	color: var(--va-test-text-secondary);
	line-height: 1.65;
	margin-bottom: 14px;
}
.va-test-subtitle-alt {
	color: var(--va-test-text-secondary);
	font-size: 0.95em;
	margin-bottom: 6px;
}
.va-test-subtitle {
	color: var(--va-test-text-secondary);
	font-size: 1em;
	margin-bottom: 8px;
}
.va-test-benefits {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	text-align: left;
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
}
.va-test-benefits li {
	padding: 6px 0 6px 24px;
	position: relative;
	color: var(--va-test-text-secondary);
}
.va-test-benefits li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 14px;
	width: 6px;
	height: 6px;
	background: var(--va-test-btn);
	border-radius: 50%;
}
.va-test-hook {
	font-size: 0.95em;
	color: var(--va-test-text-secondary);
	margin-bottom: 20px;
	line-height: 1.5;
}
.va-test-divider {
	border: none;
	border-top: 1px solid rgba(47, 42, 40, 0.1);
	margin: 24px 0;
}
.va-test-intro-heading {
	font-family: var(--va-font-heading, 'Playfair Display', serif);
	font-size: 1.25em;
	color: var(--va-test-text);
	margin-bottom: 12px;
}
.va-test-intro-text {
	color: var(--va-test-text-secondary);
	margin-bottom: 24px;
	line-height: 1.6;
}
.va-test-btn {
	min-width: 200px;
	cursor: pointer;
	border: none;
	font-size: 16px;
}
.va-test-start {
	padding: 16px 32px;
}

/* Сфера: карточка с 5 вопросами */
.va-test-sphere-card {
	padding: clamp(24px, 5vw, 40px);
}
.va-test-sphere-title {
	font-family: var(--va-font-heading, 'Playfair Display', serif);
	font-size: clamp(18px, 3vw, 22px);
	color: var(--va-test-text);
	margin-bottom: 24px;
	line-height: 1.35;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(47, 42, 40, 0.08);
}
.va-test-qblock {
	margin-bottom: 28px;
}
.va-test-qblock:last-of-type {
	margin-bottom: 32px;
}
.va-test-qtext {
	font-weight: 500;
	color: var(--va-test-text);
	margin-bottom: 12px;
	line-height: 1.45;
	font-size: 1em;
}
.va-test-answers {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.va-test-answer {
	display: block;
	width: 100%;
	padding: 14px 18px;
	text-align: left;
	font-family: inherit;
	font-size: 15px;
	color: var(--va-test-text);
	background: #fff;
	border: 2px solid rgba(47, 42, 40, 0.1);
	border-radius: var(--va-test-radius-sm);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.va-test-answer:hover {
	border-color: var(--va-test-btn);
	background: rgba(183, 159, 142, 0.06);
}
.va-test-answer:focus {
	outline: none;
	border-color: var(--va-test-btn);
	box-shadow: 0 0 0 3px rgba(183, 159, 142, 0.2);
}
.va-test-answer-selected {
	border-color: var(--va-test-btn);
	background: rgba(183, 159, 142, 0.1);
}
.va-test-sphere-next-wrap {
	margin-top: 8px;
	text-align: center;
}
.va-test-next-sphere {
	padding: 14px 28px;
	cursor: pointer;
}
.va-test-next-sphere:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Progress */
.va-test-progress {
	margin-bottom: 24px;
}
.va-test-progress-label {
	display: block;
	font-size: 0.9em;
	color: var(--va-test-text-secondary);
	margin-bottom: 8px;
}
.va-test-progress-bar {
	height: 6px;
	background: rgba(47, 42, 40, 0.08);
	border-radius: 3px;
	overflow: hidden;
}
.va-test-progress-fill {
	height: 100%;
	background: var(--va-test-btn);
	border-radius: 3px;
	transition: width 0.35s ease;
}

/* Question card */
.va-test-question-card {
	padding: clamp(24px, 5vw, 40px);
}
.va-test-question-title {
	font-family: var(--va-font-heading, 'Playfair Display', serif);
	font-size: clamp(18px, 3vw, 22px);
	color: var(--va-test-text);
	margin-bottom: 24px;
	line-height: 1.4;
}
.va-test-answers {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.va-test-answer {
	display: block;
	width: 100%;
	padding: 16px 20px;
	text-align: left;
	font-family: inherit;
	font-size: 16px;
	color: var(--va-test-text);
	background: var(--va-test-card);
	border: 2px solid rgba(47, 42, 40, 0.1);
	border-radius: var(--va-test-radius-sm);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.va-test-answer:hover {
	border-color: var(--va-test-btn);
	background: rgba(183, 159, 142, 0.06);
}
.va-test-answer:focus {
	outline: none;
	border-color: var(--va-test-btn);
	box-shadow: 0 0 0 3px rgba(183, 159, 142, 0.2);
}

/* Analyzing screen */
.va-test-analyzing-card {
	padding: 48px 32px;
	text-align: center;
	position: relative;
	min-height: 140px;
}
.va-test-analyzing-runner {
	width: 120px;
	height: 4px;
	background: linear-gradient(90deg, var(--va-test-btn) 0%, transparent 100%);
	border-radius: 2px;
	margin: 0 auto 24px;
	animation: vaTestRunner 1.5s ease-in-out infinite;
}
@keyframes vaTestRunner {
	0%, 100% { opacity: 0.3; transform: translateX(-20%); }
	50% { opacity: 1; transform: translateX(20%); }
}
.va-test-analyzing-text {
	margin: 0;
	font-size: 1.1em;
	color: var(--va-test-text-secondary);
	text-align: center;
}

/* Result screen: 5 сфер + расшифровка + CTA */
.va-test-result-card {
	padding: clamp(28px, 5vw, 48px);
}
.va-test-result-heading {
	font-family: var(--va-font-heading, 'Playfair Display', serif);
	font-size: clamp(20px, 3vw, 26px);
	color: var(--va-test-text);
	margin-bottom: 24px;
	line-height: 1.3;
}
.va-test-sphere-results {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 32px;
}
.va-sphere-result-item {
	padding: 20px;
	background: rgba(47, 42, 40, 0.03);
	border-radius: var(--va-test-radius-sm);
	border-left: 4px solid var(--va-test-btn);
}
.va-sphere-result-name {
	font-family: var(--va-font-heading, 'Playfair Display', serif);
	font-size: 1.1em;
	color: var(--va-test-text);
	margin: 0 0 8px;
}
.va-sphere-result-score {
	font-size: 0.9em;
	color: var(--va-test-text-secondary);
	margin: 0 0 10px;
	font-weight: 600;
}
.va-sphere-result-decoding {
	font-size: 0.95em;
	color: var(--va-test-text-secondary);
	line-height: 1.6;
	margin: 0;
}
.va-test-result-cta {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(47, 42, 40, 0.08);
}
.va-test-result-lead {
	font-size: 1em;
	color: var(--va-test-text);
	line-height: 1.6;
	margin-bottom: 20px;
}
.va-test-result-cta .va-btn {
	display: inline-flex;
	margin-bottom: 12px;
	text-decoration: none;
}
.va-test-result-channels-text {
	font-size: 0.95em;
	color: var(--va-test-text-secondary);
	line-height: 1.6;
	margin: 20px 0 12px;
}
.va-test-result-channels {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.va-test-result-channels .va-btn {
	text-decoration: none;
}
.va-test-result-block {
	display: none;
}
.va-test-result-block.va-test-visible {
	display: block;
	animation: vaTestFadeIn 0.5s ease;
}
.va-test-result-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}
.va-test-result-actions .va-btn {
	display: inline-flex;
	justify-content: center;
	text-align: center;
	text-decoration: none;
}
.va-test-share {
	margin-bottom: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(47, 42, 40, 0.08);
}
.va-test-share-title {
	font-size: 0.9em;
	color: var(--va-test-text-secondary);
	margin-bottom: 12px;
}
.va-test-share .va-btn {
	margin-right: 8px;
	margin-bottom: 8px;
}
.va-test-retake {
	display: inline-block;
	background: none;
	border: none;
	font-family: inherit;
	font-size: 14px;
	color: var(--va-test-text-secondary);
	text-decoration: underline;
	cursor: pointer;
	padding: 8px 0;
	transition: color 0.2s;
}
.va-test-retake:hover {
	color: var(--va-test-text);
}

/* Блок расшифровки теста (под тестом) */
.va-test-decoding {
	margin-top: var(--va-space-xl, 72px);
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	padding: clamp(24px, 5vw, 40px);
}
.va-test-decoding .va-section-title {
	margin-bottom: 16px;
}
.va-test-decoding-intro {
	color: var(--va-text-secondary, var(--va-test-text-secondary));
	line-height: 1.6;
	margin-bottom: 24px;
}
.va-test-decoding-h3 {
	font-family: var(--va-font-heading, 'Playfair Display', serif);
	font-size: 1.2em;
	color: var(--va-graphite, var(--va-test-text));
	margin: 24px 0 12px;
}
.va-test-decoding-h3:first-of-type {
	margin-top: 0;
}
.va-test-decoding p {
	color: var(--va-text-secondary, var(--va-test-text-secondary));
	line-height: 1.6;
	margin-bottom: 12px;
}
.va-test-decoding-ranges {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 16px 0 24px;
}
.va-test-decoding-range {
	padding: 16px;
	background: rgba(47, 42, 40, 0.03);
	border-radius: var(--va-radius-sm, 12px);
	border-left: 4px solid var(--va-btn-bg, var(--va-test-btn));
	font-size: 0.95em;
	line-height: 1.6;
	color: var(--va-text-secondary, var(--va-test-text-secondary));
}
.va-test-decoding-range strong {
	color: var(--va-graphite, var(--va-test-text));
}
.va-test-decoding-note {
	font-size: 0.9em;
	font-style: italic;
	margin-top: 20px;
}
.va-test-decoding-cta {
	margin-top: 28px;
	margin-bottom: 16px !important;
	font-weight: 500;
	color: var(--va-graphite, var(--va-test-text)) !important;
}
.va-test-decoding-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 480px) {
	.va-test-question-card,
	.va-test-intro-card {
		padding: 20px 16px;
	}
	.va-test-answer {
		padding: 14px 16px;
		font-size: 15px;
	}
	.va-test-decoding {
		padding: 20px 16px;
		margin-top: 48px;
	}
}
