/* Сторінка FAQ SunTime — оформлення як галерея проєктів */

.page-slug-faq .page_title,
.page-slug-faq .sc_layouts_title,
.page-slug-faq .entry-header,
.suntime-faq-page .page_title,
.suntime-faq-page .sc_layouts_title,
.suntime-faq-page .entry-header {
	display: none;
}

body.suntime-faq-page .page_content_wrap,
.page-slug-faq .page_content_wrap {
	padding-top: 100px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.suntime-faq-page .page_content_wrap > .content_wrap,
.page-slug-faq .page_content_wrap > .content_wrap {
	padding-left: var(--st-layout-gutter, clamp(16px, 4vw, 60px)) !important;
	padding-right: var(--st-layout-gutter, clamp(16px, 4vw, 60px)) !important;
}

.suntime-faq {
	--stf-heading: rgba(3, 16, 54, 1);
	--stf-text: rgba(99, 105, 123, 0.92);
	--stf-accent: #ef533f;
	--stf-accent-soft: rgba(239, 83, 63, 0.12);
	--stf-surface: #fff;
	--stf-border: #ebe4dc;
	--stf-radius: 18px;
	--stf-shadow: 0 18px 50px rgba(3, 16, 54, 0.08);
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0 clamp(48px, 7vw, 88px);
	color: var(--stf-text);
}

.suntime-faq__hero {
	margin-bottom: clamp(24px, 4vw, 40px);
	max-width: 860px;
}

.suntime-faq__title {
	margin: 0 0 12px;
	font-family: var(--theme-font-h1_font-family, "Onest", sans-serif);
	font-size: clamp(34px, 5vw, 52px);
	font-weight: var(--theme-font-h1_font-weight, 600) !important;
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--stf-heading);
}

.suntime-faq__lead {
	margin: 0;
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.55;
	color: var(--stf-text);
}

.suntime-faq__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: clamp(24px, 4vw, 36px);
}

.suntime-faq__filter {
	appearance: none;
	border: 1px solid var(--stf-border);
	background: var(--stf-surface);
	color: var(--stf-heading);
	border-radius: 999px;
	padding: 10px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.suntime-faq__filter:hover,
.suntime-faq__filter:focus-visible {
	border-color: rgba(239, 83, 63, 0.35);
	color: var(--stf-accent);
	outline: none;
}

.suntime-faq__filter.is-active {
	background: var(--stf-accent);
	border-color: var(--stf-accent);
	color: #fff;
	box-shadow: 0 10px 24px rgba(239, 83, 63, 0.24);
}

@keyframes suntime-faq-panel-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.suntime-faq__panel {
	margin-bottom: clamp(28px, 4vw, 40px);
}

.suntime-faq__panel.is-hidden {
	display: none;
}

.suntime-faq__panel.is-entering {
	animation: suntime-faq-panel-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.suntime-faq__section-title {
	margin: 0 0 16px;
	font-family: var(--theme-font-h2_font-family, var(--theme-font-h1_font-family, "Onest", sans-serif));
	font-size: clamp(22px, 3vw, 28px);
	font-weight: var(--theme-font-h2_font-weight, 600) !important;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--stf-heading);
}

.suntime-faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.suntime-faq__item {
	border: 1px solid var(--stf-border);
	border-radius: calc(var(--stf-radius) - 4px);
	background: var(--stf-surface);
	box-shadow: 0 8px 28px rgba(3, 16, 54, 0.04);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.suntime-faq__item.is-open {
	border-color: rgba(239, 83, 63, 0.28);
	box-shadow: var(--stf-shadow);
}

.suntime-faq__question-wrap {
	margin: 0;
}

.suntime-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 18px 20px;
	border: 0;
	background: transparent;
	text-align: left;
	font: inherit;
	font-size: clamp(16px, 2vw, 17px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--stf-heading);
	cursor: pointer;
}

.suntime-faq__question:hover,
.suntime-faq__question:focus-visible {
	color: var(--stf-accent);
	outline: none;
}

.suntime-faq__icon {
	position: relative;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--stf-accent-soft);
}

.suntime-faq__icon::before,
.suntime-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: var(--stf-accent);
	border-radius: 2px;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.suntime-faq__item.is-open .suntime-faq__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(0deg);
}

.suntime-faq__answer {
	overflow: hidden;
}

.suntime-faq__answer[hidden] {
	display: none;
}

.suntime-faq__answer-inner {
	padding: 0 20px 18px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--stf-text);
}

.suntime-faq__answer-inner p {
	margin: 0 0 10px;
}

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

.suntime-faq__answer-inner ul {
	margin: 0 0 10px;
	padding-left: 1.25em;
}

.suntime-faq__answer-inner li {
	margin-bottom: 6px;
}

.suntime-faq__answer-inner li:last-child {
	margin-bottom: 0;
}

.suntime-faq__answer-inner strong {
	color: var(--stf-heading);
	font-weight: 600;
}

.suntime-faq__answer-inner a {
	color: var(--stf-accent);
	font-weight: 600;
	text-decoration: none;
}

.suntime-faq__answer-inner a:hover,
.suntime-faq__answer-inner a:focus-visible {
	text-decoration: underline;
}

.suntime-faq__cta {
	margin-top: clamp(32px, 5vw, 48px);
	padding: clamp(22px, 4vw, 32px);
	border: 1px solid var(--stf-border);
	border-radius: var(--stf-radius);
	background: linear-gradient(135deg, rgba(244, 237, 225, 0.55), rgba(255, 255, 255, 0.95));
}

.suntime-faq__cta-title {
	margin: 0 0 10px;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: var(--suntime-heading-weight, 700) !important;
	line-height: 1.15;
	color: var(--stf-heading);
}

.suntime-faq__cta-text {
	margin: 0 0 18px;
	line-height: 1.6;
}

.suntime-faq__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.suntime-faq__cta-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	padding: 0 18px !important;
	margin: 0 !important;
	border-radius: 999px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	white-space: nowrap;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.suntime-faq__cta-btn--primary {
	background: var(--stf-accent);
	border: 1px solid var(--stf-accent);
	color: #fff;
	box-shadow: 0 10px 24px rgba(239, 83, 63, 0.22);
}

.suntime-faq__cta-btn--primary:hover,
.suntime-faq__cta-btn--primary:focus-visible {
	background: #d94835;
	border-color: #d94835;
	color: #fff;
}

.suntime-faq__cta-btn--ghost {
	background: #fff;
	border: 1px solid var(--stf-border);
	color: var(--stf-heading);
}

.suntime-faq__cta-btn--ghost:hover,
.suntime-faq__cta-btn--ghost:focus-visible {
	border-color: rgba(239, 83, 63, 0.35);
	color: var(--stf-accent);
}

@media (max-width: 640px) {
	body.suntime-faq-page .page_content_wrap,
	.page-slug-faq .page_content_wrap {
		padding-top: 80px !important;
	}

	.suntime-faq__question {
		padding: 16px;
	}

	.suntime-faq__answer-inner {
		padding: 0 16px 16px;
	}

	.suntime-faq__cta-actions {
		flex-direction: column;
	}

	.suntime-faq__cta-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.suntime-faq__panel.is-entering {
		animation: none !important;
	}
}
