/**
 * Блок FAQ. Макет: Figma 60:2018 (desktop 1441).
 *
 * Координаты макета (канвас 1440, контент 1280):
 *   заголовок  45px Benzin SemiBold, слева
 *   строки     1280x65, фон #f9f9f9, радиус 13, шаг 10
 *   вопрос     слева 40, Benzin Medium 16
 *   плюс       справа (x=1230), Inter Bold 24, фиолетовый
 */

.sm-faq {
	padding-top: 110px;
}

.sm-faq__title {
	font-size: 45px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sm-ink);
	text-align: center;
}

.sm-faq__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 50px;
}

.sm-faq__item {
	background: #f9f9f9;
	border: 0;
	border-radius: 13px;
}

.sm-faq__question {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 65px;
	padding: 16px 40px;
	text-align: left;
}

.sm-faq__text {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--sm-ink);
}

.sm-faq__toggle {
	flex-shrink: 0;
	font-family: 'Inter', var(--sm-font);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	color: var(--sm-purple);
	transition: transform 0.2s ease;
}

.sm-faq__question[aria-expanded="true"] .sm-faq__toggle {
	transform: rotate(45deg);
}

/*
 * Плавное раскрытие: высота едет через grid-rows 0fr -> 1fr,
 * поэтому контенту нужна обёртка с overflow: hidden и min-height: 0.
 * Атрибут hidden снимает JS при инициализации — без JS ответы скрыты.
 */
.sm-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	padding: 0 40px;
	font-family: var(--sm-font-ui);
	font-size: 14px;
	line-height: 1.4;
	color: var(--sm-ink-soft);
	opacity: 0;
	transition: grid-template-rows 0.35s ease, opacity 0.35s ease, padding-bottom 0.35s ease;
}

.sm-faq__answer.is-open {
	grid-template-rows: 1fr;
	padding-bottom: 20px;
	opacity: 1;
}

.sm-faq__answer-inner {
	min-height: 0;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.sm-faq__answer {
		transition: none;
	}
}

.sm-faq__answer p + p {
	margin-top: 10px;
}

@media (max-width: 900px) {
	.sm-faq__title {
		font-size: 34px;
	}
}
