/**
 * FAQ по услуге — аккордеон [legstom_service_faq]
 * Стилистика: как отзывы/кейсы — фон #faf8f7, скругление 12px, тень.
 */

.legstom-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.legstom-faq__item {
	background: #faf8f7;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.legstom-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 20px 24px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	color: #111;
	line-height: 1.35;
	transition: color 0.2s, background 0.2s;
}

.legstom-faq__question:hover {
	background: rgba(0, 0, 0, 0.03);
	color: #04bf68;
}

.legstom-faq__question-text {
	flex: 1;
	min-width: 0;
}

.legstom-faq__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
	transition: transform 0.25s ease, background 0.2s;
}

.legstom-faq__item--open .legstom-faq__icon {
	transform: rotate(180deg);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2304bf68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.legstom-faq__item--open .legstom-faq__question {
	color: #04bf68;
	background-color: #faf8f7;
}

.legstom-faq__answer {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.legstom-faq__answer-inner {
	padding: 0 24px 20px;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

.legstom-faq__answer-inner p:first-child {
	margin-top: 16px;
}

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

.legstom-faq__answer-inner p {
	margin: 0 0 12px;
}

.legstom-faq__answer-inner ul,
.legstom-faq__answer-inner ol {
	margin: 0 0 12px;
	padding-left: 1.5em;
}

@media (max-width: 768px) {
	.legstom-faq__question {
		padding: 16px 18px;
		font-size: 16px;
	}

	.legstom-faq__answer-inner {
		padding: 0 18px 16px;
		font-size: 15px;
	}

	.legstom-faq__answer-inner p:first-child {
		margin-top: 12px;
	}
}
