/* ==========================================================================
   acf/hidden-text — FAQ-аккордеон (details/summary) и раскрывающиеся врезки
   ========================================================================== */

main .hidden-text {
	max-width: 980px;
	margin: 0 0 14px;
}

main .hidden-text:first-of-type {
	margin-top: 1.4rem;
}

body[data-change-theme] .hidden-text_faq {
	padding: 0;
	background: linear-gradient(180deg, var(--bh-surface) 0%, var(--bh-deep-2) 100%);
	border: 1px solid var(--bh-line);
	border-radius: var(--bh-r);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
	transition: border-color .2s var(--bh-ease), box-shadow .2s var(--bh-ease);
}

body[data-change-theme] .hidden-text_faq:hover,
body[data-change-theme] .hidden-text_faq[open] {
	border-color: rgba(247, 132, 62, .5);
	box-shadow: 0 16px 32px rgba(0, 0, 0, .32);
}

/* Заголовок вопроса */
body[data-change-theme] .hidden-text_faq .hidden-text__title {
	padding: 1.15rem 68px 1.15rem 1.4rem;
	border-bottom: none;
	font-family: var(--bh-display);
	font-size: 1.28rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--bh-text);
	list-style: none;
	transition: color .18s var(--bh-ease);
}

main .hidden-text_faq .hidden-text__title::-webkit-details-marker {
	display: none;
}

body[data-change-theme] .hidden-text_faq:hover .hidden-text__title,
body[data-change-theme] .hidden-text_faq[open] .hidden-text__title {
	color: var(--bh-orange-300);
}

/* Стрелку темы (иконочный шрифт) оставляем, но сажаем в скошенный чип. */
main .hidden-text_faq .hidden-text__title::after {
	right: 1.15rem;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .9rem;
	color: var(--bh-orange);
	background: rgba(247, 132, 62, .12);
	border: 1px solid rgba(247, 132, 62, .35);
	border-radius: var(--bh-r-sm);
}

main .hidden-text_faq[open] .hidden-text__title::after,
main .hidden-text_faq.hidden-text_open .hidden-text__title::after {
	background: var(--bh-orange);
	color: var(--bh-deep);
	border-color: var(--bh-orange);
}

/* Ответ */
main .hidden-text_faq .hidden-text__content {
	margin-top: 0;
	padding: 0 1.4rem 1.35rem;
	line-height: 1.7;
}

main .hidden-text_faq[open] .hidden-text__content,
main .hidden-text_faq.hidden-text_open .hidden-text__content {
	margin-top: 0;
}

main .hidden-text_faq .hidden-text__content p {
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--bh-dim);
}

/* Разделительная линия между вопросом и ответом появляется только в раскрытом виде. */
main .hidden-text_faq[open] .hidden-text__title,
main .hidden-text_faq.hidden-text_open .hidden-text__title {
	border-bottom: 1px solid var(--bh-line);
	margin-bottom: 1.1rem;
}

@media (max-width: 700px) {
	body[data-change-theme] .hidden-text_faq .hidden-text__title {
		padding: 1rem 58px 1rem 1.1rem;
		font-size: 1.15rem;
	}

	main .hidden-text_faq .hidden-text__content {
		padding: 0 1.1rem 1.1rem;
	}
}
