.rd-faq {
	padding: clamp(56px, 8vh, 128px) 24px;
}

.rd-faq--light {
	background: #f5f5f5;
	color: #333;
}

.rd-faq--dark {
	background: var(--rd-bg);
	color: #fff;
}

.rd-faq__container {
	width: min(100%, 1200px);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 394px) minmax(0, 680px);
	justify-content: space-between;
	column-gap: clamp(48px, 8.75vw, 126px);
	align-items: start;
}

.rd-faq__heading {
	display: grid;
	align-content: start;
	gap: 12px;
}

.rd-faq__eyebrow,
.rd-faq__description {
	margin: 0;
}

.rd-faq__eyebrow {
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.rd-faq--light .rd-faq__eyebrow {
	color: #5e949f;
}

.rd-faq--light .rd-faq__description {
	color: #525866;
}

.rd-faq--dark .rd-faq__eyebrow {
	color: #5e949f;
}

.rd-faq--dark .rd-faq__description {
	color: #a9b4bb;
}

.rd-faq__heading .rd-heading {
	margin: 0;
	font-size: 48px;
	line-height: 1.08;
}

.rd-faq__description {
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.rd-faq__items {
	min-width: 0;
}

.rd-faq__item {
	border-bottom: 1px solid #b7b7b7;
	padding-inline: 20px;
	transition: background-color 220ms ease;
}

.rd-faq--dark .rd-faq__item {
	border-color: #313942;
}

.rd-faq__item:first-child {
	border-top: 1px solid #b7b7b7;
}

.rd-faq--dark .rd-faq__item:first-child {
	border-color: #313942;
}

.rd-faq__question {
	min-height: 66px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	cursor: pointer;
	list-style: none;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	color: #333;
}

.rd-faq--dark .rd-faq__question {
	color: #fff;
}

.rd-faq__question::-webkit-details-marker {
	display: none;
}

.rd-faq__question::marker {
	content: '';
}

.rd-faq__question:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
	border-radius: 2px;
}

.rd-faq__question > span:first-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.rd-faq__icon {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	position: relative;
	display: grid;
	place-items: center;
}

.rd-faq__icon-lines {
	display: block;
	width: 18px;
	height: 18px;
	position: relative;
	color: #525866;
}

.rd-faq__answer {
	height: auto;
	overflow: hidden;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
	color: #525866;
	transition: height 260ms ease, opacity 180ms ease;
}

.rd-faq--dark .rd-faq__answer {
	color: #a9b4bb;
}

.rd-faq__answer-inner {
	padding: 0 0 20px;
}

.rd-faq__answer p {
	margin: 0;
}

.rd-faq__answer p + p {
	margin-top: 1em;
}

.rd-faq--light .rd-faq__item:hover {
	background: rgb(51 51 51 / 5%);
}

.rd-faq--dark .rd-faq__item:hover {
	background: rgb(255 255 255 / 5%);
}

.rd-faq__icon-lines::before,
.rd-faq__icon-lines::after {
	content: '';
	position: absolute;
	background: currentColor;
	border-radius: 999px;
	transition: transform 220ms ease, opacity 180ms ease;
}

.rd-faq__icon-lines::before {
	width: 18px;
	height: 1.5px;
	left: 0;
	top: 8px;
}

.rd-faq__icon-lines::after {
	width: 1.5px;
	height: 18px;
	left: 8px;
	top: 0;
	transform-origin: center;
}

.rd-faq__item.is-expanded .rd-faq__icon-lines::after {
	opacity: 0;
	transform: scaleY(0);
}

.rd-faq--dark .rd-faq__icon-lines {
	color: #a9b4bb;
}

@media (max-width: 1024px) {
	.rd-faq__container {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 600px) {
	.rd-faq {
		padding-inline: 20px;
	}

	.rd-faq__heading .rd-heading {
		font-size: 32px;
	}

	.rd-faq__question {
		gap: 14px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.rd-faq__answer,
	.rd-faq__item,
	.rd-faq__icon-lines::before,
	.rd-faq__icon-lines::after {
		transition: none;
	}
}
