:root {
	--faq-bg: #f4f6f8;
	--faq-surface: #ffffff;
	--faq-surface-soft: #f8fafb;
	--faq-text: #1f2933;
	--faq-muted: #65717d;
	--faq-border: #dfe5ea;
	--faq-accent: #c62828;
	--faq-accent-dark: #8f1d1d;
	--faq-shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
	--faq-radius-lg: 20px;
	--faq-radius-md: 14px;
}

.ct-faq,
.ct-faq * {
	box-sizing: border-box;
}

.ct-faq {
	width: min(1180px, calc(100% - 32px));
	margin: 24px auto 48px;
	color: var(--faq-text);
}

.ct-faq__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
	gap: 32px;
	align-items: end;
	padding: 34px;
	margin-bottom: 24px;
	border: 1px solid var(--faq-border);
	border-radius: var(--faq-radius-lg);
	background:
		radial-gradient(circle at top right, rgba(198, 40, 40, 0.10), transparent 42%),
		var(--faq-surface);
	box-shadow: var(--faq-shadow);
}

.ct-faq__eyebrow,
.ct-faq__section-kicker {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faq-accent);
}

.ct-faq__hero h1,
.ct-faq__section-heading h2,
.ct-faq__index-card h3 {
	margin: 0;
	color: var(--faq-text);
}

.ct-faq__hero h1 {
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.05;
}

.ct-faq__hero p {
	max-width: 720px;
	margin: 14px 0 0;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--faq-muted);
}

.ct-faq__search label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
}

.ct-faq__search-box {
	position: relative;
}

.ct-faq__search-box svg {
	position: absolute;
	top: 50%;
	left: 15px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	fill: none;
	stroke: var(--faq-muted);
	stroke-width: 2;
	stroke-linecap: round;
}

.ct-faq__search-box input {
	width: 100%;
	min-height: 48px;
	padding: 0 16px 0 46px;
	border: 1px solid var(--faq-border);
	border-radius: 12px;
	background: var(--faq-surface);
	color: var(--faq-text);
	font: inherit;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct-faq__search-box input:focus {
	border-color: var(--faq-accent);
	box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.ct-faq__results {
	min-height: 20px;
	margin: 8px 2px 0;
	font-size: 0.9rem;
	color: var(--faq-muted);
}

.ct-faq__index,
.ct-faq__section {
	margin-bottom: 24px;
	padding: 28px;
	border: 1px solid var(--faq-border);
	border-radius: var(--faq-radius-lg);
	background: var(--faq-surface);
	box-shadow: 0 6px 22px rgba(31, 41, 51, 0.05);
}

.ct-faq__section-heading {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.ct-faq__section-heading h2 {
	font-size: clamp(1.35rem, 2.4vw, 1.8rem);
	line-height: 1.2;
}

.ct-faq__index-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ct-faq__index-card {
	padding: 20px;
	border: 1px solid var(--faq-border);
	border-radius: var(--faq-radius-md);
	background: var(--faq-surface-soft);
}

.ct-faq__index-card h3 {
	margin-bottom: 12px;
	font-size: 1.05rem;
}

.ct-faq__index-card ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ct-faq__index-card a,
.ct-faq__index-link,
.ct-faq__back-link {
	color: var(--faq-accent-dark);
	text-decoration: none;
}

.ct-faq__index-card a {
	display: inline-flex;
	line-height: 1.45;
}

.ct-faq__index-card a::before {
	content: "›";
	margin-right: 7px;
	font-weight: 800;
	color: var(--faq-accent);
}

.ct-faq__index-card a:hover,
.ct-faq__index-link:hover,
.ct-faq__back-link:hover {
	text-decoration: underline;
}

.ct-faq__index-link,
.ct-faq__back-link {
	font-weight: 700;
	white-space: nowrap;
}

.ct-faq__list {
	display: grid;
	gap: 12px;
}

.ct-faq__item {
	scroll-margin-top: 20px;
	overflow: hidden;
	border: 1px solid var(--faq-border);
	border-radius: var(--faq-radius-md);
	background: var(--faq-surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ct-faq__item:hover {
	border-color: #cbd3da;
}

.ct-faq__item[open] {
	border-color: rgba(198, 40, 40, 0.45);
	box-shadow: 0 8px 22px rgba(31, 41, 51, 0.07);
}

.ct-faq__item summary {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	min-height: 62px;
	padding: 17px 18px;
	cursor: pointer;
	font-weight: 750;
	line-height: 1.4;
	list-style: none;
	user-select: none;
}

.ct-faq__item summary::-webkit-details-marker {
	display: none;
}

.ct-faq__item summary:focus-visible {
	outline: 3px solid rgba(198, 40, 40, 0.25);
	outline-offset: -3px;
}

.ct-faq__toggle {
	position: relative;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(198, 40, 40, 0.10);
}

.ct-faq__toggle::before,
.ct-faq__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	border-radius: 2px;
	background: var(--faq-accent);
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.ct-faq__toggle::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.ct-faq__item[open] .ct-faq__toggle::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.ct-faq__answer {
	padding: 0 18px 18px;
}

.ct-faq__answer-content {
	padding-top: 16px;
	border-top: 1px solid var(--faq-border);
	font-size: 0.98rem;
	line-height: 1.7;
	color: #394652;
}

.ct-faq__answer-content p:first-child {
	margin-top: 0;
}

.ct-faq__answer-content p:last-child {
	margin-bottom: 0;
}

.ct-faq__answer-content a {
	color: var(--faq-accent-dark);
	font-weight: 650;
}

.ct-faq__back-link {
	display: inline-block;
	margin-top: 14px;
	font-size: 0.88rem;
}

.ct-faq__empty {
	padding: 34px;
	border: 1px dashed var(--faq-border);
	border-radius: var(--faq-radius-lg);
	background: var(--faq-surface);
	text-align: center;
}

.ct-faq__empty strong,
.ct-faq__empty span {
	display: block;
}

.ct-faq__empty span {
	margin-top: 6px;
	color: var(--faq-muted);
}

.ct-faq [hidden] {
	display: none !important;
}

@media (max-width: 820px) {
	.ct-faq {
		width: min(100% - 20px, 760px);
		margin-top: 14px;
	}

	.ct-faq__hero {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 24px;
	}

	.ct-faq__index,
	.ct-faq__section {
		padding: 20px;
	}

	.ct-faq__index-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.ct-faq {
		width: calc(100% - 12px);
		margin-bottom: 28px;
	}

	.ct-faq__hero,
	.ct-faq__index,
	.ct-faq__section {
		padding: 17px;
		border-radius: 14px;
	}

	.ct-faq__hero h1 {
		font-size: 2rem;
	}

	.ct-faq__hero p {
		font-size: 0.98rem;
	}

	.ct-faq__section-heading {
		align-items: flex-start;
	}

	.ct-faq__index-link {
		font-size: 0.85rem;
	}

	.ct-faq__item summary {
		min-height: 58px;
		padding: 15px;
		font-size: 0.96rem;
	}

	.ct-faq__answer {
		padding: 0 15px 15px;
	}

	.ct-faq__toggle {
		flex-basis: 26px;
		width: 26px;
		height: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ct-faq *,
	.ct-faq *::before,
	.ct-faq *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
