/**
 * Блок «Вопросы и ответы» (acf/common-faq).
 * Плюс/минус переключается на CSS, скрипт не нужен.
 */

.faq {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - 76px);
	padding: clamp(56px, 7vh, 100px) 0;
	background: var(--t-paper);
}

.faq__inner {
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: 0 var(--t-pad-x);
}

.faq .t-head__title {
	margin-bottom: 36px;
}

.faq__item {
	margin-bottom: 12px;
	padding: 20px 24px;
	border: 1px solid rgba(34, 31, 28, .16);
	border-radius: 12px;
	background: #fff;
}

.faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	list-style: none;
	cursor: pointer;
	font-family: var(--t-font-display);
	font-weight: 700;
	font-size: 17px;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__mark {
	flex: none;
	color: var(--t-accent);
	font-weight: 800;
	font-size: 22px;
	line-height: 1;
}

.faq__mark::before {
	content: "+";
}

.faq__item[open] .faq__mark::before {
	content: "–";
}

.faq__answer {
	margin: 14px 0 0;
	color: var(--t-muted);
}

.faq__answer p {
	margin: 0;
}

.faq__answer p + p {
	margin-top: 10px;
}

@media (max-width: 640px) {
	.faq {
		min-height: 0;
	}

	.faq__item {
		padding: 16px 18px;
	}

	.faq__question {
		font-size: 16px;
	}
}
