/*
 * Пункты блока «Часто задаваемые вопросы» (template-parts/other/template-faq.php; раскрытие — assets/js/main.js, класс is-open).
 * Одинаковые на главной, «Сопровождении резидентов» и в записях блога; эталон — макет записи («Страница статьи В3»):
 * пункт 1140×88 с рамкой #EEEEEE, вопрос StyreneAWeb Bold 19/30, кнопка «+» 28 px салатовая (при раскрытии — «×»),
 * ответ 17/1.5 #6B6B6B. Подключается в skr_enqueue_styles() (includes/static-embeds.php). Заголовок секции — в стилях страницы.
 */

.faq-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.faq-item {
	padding: 28px 23px 28px 25px;
	border: 1px solid #eee;
	background-color: #fff;
	color: #3c3c3c;
	font-family: 'StyreneAWeb', 'StyreneAWeb Fallback';
	cursor: pointer;
}

.faq-item__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.faq-item__title {
	font-size: 19px;
	font-weight: 700;
	line-height: 30px;
}

.faq-item__icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	background-color: #bfdf14;
	-webkit-mask: url('../../images/icon/plus.svg') no-repeat 50% / 20px 20px;
	mask: url('../../images/icon/plus.svg') no-repeat 50% / 20px 20px;
	transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item__icon {
	transform: rotate(45deg);
}

.faq-item__hidden {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 0;
	overflow: hidden;
	color: #6b6b6b;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
	opacity: 0;
	transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.6s ease;
}

.faq-item.is-open .faq-item__hidden {
	max-height: 1000px;
	margin-top: 20px;
	opacity: 1;
}

/* Списки в ответах: пункты — list-item (общее ul li { display: inline-block } из style.css прячет маркеры),
   letter-spacing — сброс ul { letter-spacing: -0.36em }; маркеры и цифры салатовые */
.faq-item__hidden ul,
.faq-item__hidden ol {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-left: 1.4em;
	letter-spacing: normal;
}

.faq-item__hidden ul {
	list-style: disc;
}

.faq-item__hidden ol {
	list-style: decimal;
}

.faq-item__hidden li {
	display: list-item;
}

.faq-item__hidden li::marker {
	color: #bfdf14;
	font-weight: 700;
}

@media (max-width: 767px) {
	.faq-item {
		padding: 20px 16px;
	}

	.faq-item__title {
		font-size: 16px;
		line-height: 24px;
	}

	.faq-item__hidden {
		font-size: 15px;
	}
}
