/**
 * Страница FAQ (templates-new/faq-page.php).
 */

 .faq-page {
	box-sizing: border-box;
	width: 100%;
	min-height: 50vh;
	background: #DFDFDF;
	color: #000;
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
	box-sizing: inherit;
}

.faq-page__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 300px;
	overflow: hidden;
	background: #b4f046;
	border-radius: 30px;
	isolation: isolate;
}

.faq-page__hero.dot-background {
	overflow: hidden;
}

.faq-page__hero-title {
	position: relative;
	font-size: 216px;
	text-align: center;
	color: #000;
}

.faq-page__empty {
	margin: 40px 24px;
	font-size: 18px;
}

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

.faq-page__item {
	background: #CCCCCC;
	border-radius: 200px;
	padding: 16px 24px;
	overflow-anchor: none;
	transition: border-radius 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-page__item--open {
	border-radius: 60px;
}

.faq-page__item--no-answer {
	padding-bottom: 20px;
}

.faq-page__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 24px;
	width: 100%;
	min-width: 0;
}

.faq-page__category-wrap {
	flex: 0 0 208px;
	min-width: 0;
	box-sizing: border-box;
}

.faq-page__category-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	background: #B4F046;
	color: #000;
	border-radius: 100px;
	padding: 12px 18px;
	font-size: 36px;
}

.faq-page__category--id-1711 {
	background: #DFDFDF;
}

.faq-page__category--id-1637 {
	background: #000;
	color: #fff;
}

.faq-page__category--empty {
	min-height: 1em;
}

.faq-page__question {
	flex: 1 1 auto;
	font-size: 40px;
}

.faq-page__toggle {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 82px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: transform 0.25s ease;
}

.faq-page__toggle:hover,
.faq-page__toggle:focus-visible {
	outline: none;
	opacity: 0.92;
}

.faq-page__toggle-icon {
	display: block;
	width: 82px;
	height: 82px;
	line-height: 0;
}

.faq-page__toggle-icon svg {
	display: block;
	width: 82px;
	height: 82px;
}

.faq-page__item.faq-page__item--open .faq-page__toggle {
	transform: rotate(180deg);
}

.faq-page__answer-block {
	width: 100%;
	min-width: 0;
	padding-left: 0;
}

@media (min-width: 769px) {
	.faq-page__answer-block {
		padding-left: calc(min(208px, 28vw) + 24px);
		max-width: calc(100% - 82px - 24px);
	}
}

.faq-page__answer-wrap {
	width: 100%;
	overflow: hidden;
	transition:
		max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
		min-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-page__answer-block--collapsed .faq-page__answer-wrap {
	min-height: 0;
	max-height: 0;
}

.faq-page__answer {
	max-width: 100%;
	font-size: 18px;
	line-height: 1.2;
	padding-top: 16px;
}

.faq-page__answer p {
	margin: 0;
}

.faq-page__answer p + p {
	margin-top: 0.5em;
}

@media (max-width: 768px) {
	.faq-page__hero {
		height: 40vh;
		border-radius: 18px;
	}

	.faq-page__hero-title {
		font-size: 160px;
	}

	.faq-page__item {
		border-radius: 16px;
		padding: 16px;
	}
	
	.faq-page__item--open {
		border-radius: 16px;
	}

	.faq-page__row {
		gap: 16px;
		flex-wrap: wrap;
	}
	
	.faq-page__category-wrap {
		flex: 0 0 100%;
	}
	
	.faq-page__category-inner {
		padding: 8px 12px;
		font-size: 24px;
	}
	
	.faq-page__question {
		flex: 1 1 calc(100% - 40px - 16px);
		font-size: 24px;
	}

	.faq-page__toggle {
		width: 40px;
		height: 40px;
	}

	.faq-page__toggle-icon {
		width: 40px;
		height: 40px;
	}
	
	.faq-page__toggle-icon svg {
		width: 40px;
		height: 40px;
	}
}
