/**
 * Аккордеон блока «Ответы на частые вопросы» страницы /dizajneri-arhitektoram/.
 *
 * Классы те же, что у catalog_faq, но тот stylesheet лежит внутри шаблона
 * каталога и на отдельной странице не подключается — поэтому нужные правила
 * продублированы здесь. Взято из catalog_faq/style.css без обёртки
 * .section-faq-block: рамку, фон и отступы блоку задаёт .pp-block.
 */

.section-faq-accordion {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.section-faq-accordion-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 24px;
	gap: 12px;
	background: #FFFFFF;
	border: 1px solid #E1E1E1;
	border-radius: 24px;
	overflow: hidden;
	transition: all .35s ease;
	box-sizing: border-box;
}

.section-faq-accordion-item.open {
	border: 1px solid #F22D2E;
}

.section-faq-accordion-item-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-weight: 500;
	font-size: 24px;
	line-height: 26.4px;
	color: #464646;
	cursor: pointer;
}

.section-faq-accordion-item-question:after {
	flex: 0 0 auto;
	content: "";
	width: 23.08px;
	height: 23.08px;
	background: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.4727 11.5385L3.60727 11.5385' stroke='%23BDBDBD' stroke-width='1.73077' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11.5391 19.4712L11.5391 3.60577' stroke='%23BDBDBD' stroke-width='1.73077' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A") center no-repeat;
}

.section-faq-accordion-item.open .section-faq-accordion-item-question:after {
	background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19.4727 11.5385L3.60727 11.5385' stroke='%23343434' stroke-width='1.73077' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.section-faq-accordion-item-answer {
	font-size: 15px;
	line-height: 18px;
	color: #464646;
	max-width: 1000px;
	height: 0;
	display: none;
	overflow: hidden;
	opacity: 0;
	transition: all .35s ease;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

.section-faq-accordion-item-answer > * {
	margin: 0;
	padding: 0;
}

.section-faq-accordion-item.open .section-faq-accordion-item-answer {
	display: flex;
	opacity: 1;
	overflow: visible;
}

.section-faq-accordion-item.opened .section-faq-accordion-item-answer {
	height: auto;
}

@media (max-width: 800px) {
	.section-faq-accordion-item {
		padding: 16px;
		border-radius: 16px;
	}

	.section-faq-accordion-item-question {
		font-size: 16px;
		font-weight: 700;
		line-height: 1.1;
	}

	.section-faq-accordion-item-answer {
		font-size: 14px;
		line-height: 1.3;
	}
}
