/**
 * Блок «Вопрос-ответ» (FAQ) в футере.
 * Тёмная стилистика футера: фон #252322, белый текст, акцент #FFEEC9.
 */

.faq {
	background-color: #252322;
	color: #fff;
	padding: 60px 0;
	font-family: "Inter", sans-serif;
}

.faq__container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.faq__title {
	margin: 0 0 32px;
	color: #ffeec9;
	font-size: 36px;
	line-height: 1.15;
}

.faq__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.faq__item {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.faq__item:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq__question-h {
	margin: 0;
	font: inherit;
}

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 24px 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	font-size: 20px;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.faq__question-text {
	transition: color 0.2s ease;
}

.faq__question:hover .faq__question-text,
.faq__question:focus-visible .faq__question-text {
	color: #ffeec9;
}

.faq__question:focus {
	outline: none;
}

.faq__question:focus-visible {
	outline: 2px solid #ffeec9;
	outline-offset: 4px;
}

/* Иконка +/− */
.faq__icon {
	position: relative;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}

.faq__icon::before,
.faq__icon::after {
	content: "";
	position: absolute;
	background-color: #ffeec9;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq__icon::before {
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	transform: translateY(-50%);
}

.faq__icon::after {
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	transform: translateX(-50%);
}

.faq__question[aria-expanded="true"] .faq__icon::after {
	transform: translateX(-50%) scaleY(0);
	opacity: 0;
}

/* Панель ответа (скрыта атрибутом hidden до раскрытия) */
.faq__answer {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

.faq__answer-inner {
	padding: 0 0 24px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
	line-height: 1.6;
}

.faq__answer-inner > :first-child {
	margin-top: 0;
}

.faq__answer-inner > :last-child {
	margin-bottom: 0;
}

.faq__answer-inner a {
	color: #ffeec9;
	text-decoration: underline;
}

@media (max-width: 767.98px) {
	.faq {
		padding: 40px 0;
	}

	.faq__title {
		margin-bottom: 20px;
		font-size: 26px;
	}

	.faq__question {
		gap: 16px;
		padding: 18px 0;
		font-size: 17px;
	}
}

/* Пользователь предпочитает уменьшить движение */
@media (prefers-reduced-motion: reduce) {
	.faq__answer,
	.faq__icon::before,
	.faq__icon::after,
	.faq__question-text {
		transition: none;
	}
}
