/* FAQ - Sekcja */
.section-faq {
	display: flex;
	flex-direction: column;
	row-gap: 35px;
	padding: 60px 0;
}

.section-faq .row-gap {
	row-gap: 35px;
}

.section-faq .intro .heading {
	font-size: 30px;
	line-height: 1.3;
	font-weight: 400;
	margin: 0;
	padding: 0;
	text-align: center;
}

.section-faq .intro p {
	margin: 0;
	padding: 0;
	text-align: center;
	color: #727272;
}

.section-faq .section-faq__content {
	padding: 0 2rem;
	margin-top: 30px;
}

.section-faq .heading:not(.without-ornament)::after,
.section-faq .heading.without-ornament + .section-faq__content p:last-child::after {
	content: '';
	display: block;
	width: 70px;
	height: 4px;
	/* background-color: #f4f4f4; */
	border-radius: 8px;
	margin: 10px auto 0;
}

.section-faq .heading.without-ornament + .section-faq__content p:last-child {
	padding: 0;
	margin: 0;
}

.section-faq .heading.without-ornament + .section-faq__content p:last-child::after {
	margin-top: 35px;
	margin-bottom: 20px;
}

/* Accordion */
.accordion {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin: 0 auto;
	padding: 0 15px;
	max-width: 900px;
}

.accordion-item {
	width: 100%;
	border-radius: 8px;
	background-color: #fff;
	cursor: pointer;
}

.accordion-item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 15px 25px;
	border-radius: 8px;
	border: 2px solid #f4f4f4;
	transition: 400ms all;
}

.accordion-item-header:hover,
.accordion-item-header:focus,
.accordion-item-header:focus-visible {
	background-color: #7aa228;
	border-color: #7aa228;
	outline: 3px solid #649403;
	outline-offset: 2px;
}

.accordion-item-header:hover > *,
.accordion-item-header:hover .btnn .btn__icon,
.accordion-item-header:focus > *,
.accordion-item-header:focus .btnn .btn__icon {
	color: #fff;
	fill: #fff;
}

.accordion-item-header > h2,
.accordion-item-header > h3,
.accordion-item-header > h4,
.accordion-item-header > h5,
.accordion-item-header > h6,
.accordion-item-header > p,
.accordion-item-header > span {
	margin: 0;
	padding: 0 0 0 10px;
	font-size: 18px;
	font-weight: 500;
	line-height: normal;
	transition: all 400ms;
}

/* Aktywny element - jak hover */
.accordion-item.active .accordion-item-header {
	background-color: #7aa228;
	border-color: #7aa228;
	color: #fff;
}

.accordion-item.active .accordion-item-header > *,
.accordion-item.active .btn__icon {
	color: #fff;
	fill: #fff;
}

/* Odpowiedź */
.answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 30px 0 10px;
	transition:
		max-height 0.25s cubic-bezier(0, 0, 0.3, 1),
		padding 0.25s cubic-bezier(0, 0, 0.3, 1);
	font-size: 16px;
	border-left: 4px solid #7aa228;
	background-color: #f9fef7;
	margin-top: 10px;
}

.answer p {
	margin: 0;
	padding: 5px 25px 25px;
}

/* Przycisk */
.btnn {
	background: none;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	position: relative;
	padding: 0;
	margin: 0;
	transition: all 0.2s cubic-bezier(0, 0, 0.3, 1);
	outline: none;
}

.btn__icon {
	width: 40px;
	height: 40px;
	transition: all 0.25s cubic-bezier(0, 0, 0.3, 1);
}

.btn__icon--top {
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
}

.btn--flip-out.is-active .btn__icon--bottom,
.btn--clock.is-active .btn__icon--bottom {
	transform: translateY(-7.75%);
}

.btn--flip-out.is-active .btn__icon--top {
	transform: rotateX(-180deg) translateY(-7.75%);
}

.btn--clock.is-active .btn__icon--top {
	transform: rotate(-180deg) translateY(-7.75%);
}

/* CTA Button */
.section-faq .button {
	display: flex;
	width: fit-content;
	padding: 15px 40px;
	background-color: #7aa228;
	border: 2px solid #7aa228;
	color: #fff;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-size: 18px;
	font-weight: 600;
}

.section-faq .button:hover {
	background-color: #648e20;
	border-color: #648e20;
	opacity: 1;
}

/* RWD */
@media (max-width: 992px) {
	.section-faq .intro .heading {
		font-size: 26px;
	}
}

@media (max-width: 768px) {
	.section-faq .intro .heading {
		font-size: 22px;
	}

	.section-faq .heading.without-ornament + .section-faq__content p:last-child {
		padding: 0 15px;
		margin: 0;
	}

	.accordion-item-header {
		gap: 24px;
	}

	.accordion-item-header > *,
	.accordion-item-header > h2,
	.accordion-item-header > h3,
	.accordion-item-header > h4,
	.accordion-item-header > h5,
	.accordion-item-header > h6,
	.accordion-item-header > p,
	.accordion-item-header > span {
		font-size: 18px;
	}
}

@media (max-width: 576px) {
	.answer {
		padding: 0;
	}

	.btn__icon {
		width: 36px;
		height: 36px;
	}

	.section-faq .heading.without-ornament + .section-faq__content p:last-child::after {
		margin-bottom: 0;
	}

	.section-faq .row-gap {
		row-gap: 0;
	}
	.section-faq {
		padding: 0;
		margin: 0;
	}
}
