/* FAQ page */
.p-page-faq {
	overflow: hidden;
}

.p-page-layout.p-page-faq .l-container.p-page-layout__content {
	width: min(100% - 40px, 720px);
	margin-inline: auto;
}

.p-page-faq__content {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.p-page-faq__category-nav {
	width: 100%;
	display: none;
}

.p-page-faq__category-list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p-page-faq__category-item {
	min-width: 0;
}

.p-page-faq__category-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 8px 14px;
	border: 1px solid rgba(43, 79, 94, 0.2);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.7);
	color: #2b4f5e;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.p-page-faq__category-link:hover,
.p-page-faq__category-link:focus-visible {
	background: rgba(43, 79, 94, 0.08);
	border-color: rgba(43, 79, 94, 0.35);
}

.p-page-faq__groups {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.p-page-faq__group-title {
	margin: 0 0 24px;
	color: #2b4f5e;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

.p-page-faq__items {
	display: grid;
	gap: 14px;
}

.p-page-faq .c-faq {
	border-color: rgba(43, 79, 94, 0.28);
	background: rgba(241, 231, 215, 0.28);
}

.p-page-faq .c-faq__question {
	color: #2b4f5e;
	background: rgba(255, 255, 255, 0.4);
	font-size: 16px;
}

.p-page-faq .c-faq__question::before,
.p-page-faq .c-faq__question::after {
	background-color: #2b4f5e;
}

.p-page-faq .c-faq[open] .c-faq__question {
	border-bottom: 1px solid rgba(43, 79, 94, 0.22);
}

.p-page-faq .c-faq__answer {
	color: #2b4f5e;
	padding-top: 12px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
}

.p-page-faq .c-faq[open] .c-faq__answer {
	background: #fff;
}

@media (max-width: 768px) {
	.p-page-faq .c-card {
		padding: 0;
	}

	.p-page-faq__content {
		gap: 28px;
	}

	.p-page-faq__category-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.p-page-faq__category-link {
		min-height: 32px;
		padding: 6px 10px;
		font-size: 11px;
		letter-spacing: 0.03em;
	}

	.p-page-faq__groups {
		gap: 40px;
	}

	.p-page-faq__group-title {
		margin-bottom: 18px;
		font-size: 24px;
	}

	.p-page-faq .c-faq__answer {
		font-size: 14px;
	}
}
