/**
 * DnesTepujem redesigned FAQ-page preview.
 * Loaded only by the isolated FAQ preview template.
 */

.dt-redesign-preview.dt-faq-preview .dt-faq-page {
	overflow: hidden;
	background: var(--dt-color-background);
}

/* Hero. */

.dt-redesign-preview.dt-faq-preview .dt-faq-hero {
	padding-block: var(--dt-section-rhythm);
}

.dt-redesign-preview.dt-faq-preview .dt-faq-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: var(--dt-space-sm);
	text-align: center;
}

.dt-redesign-preview.dt-faq-preview .dt-faq-hero h1 {
	max-width: 10ch;
	margin: 0 auto;
	font-size: var(--dt-font-size-page-title);
	font-weight: 850;
	letter-spacing: -0.055em;
	line-height: 0.95;
}

/* Accordion. */

.dt-redesign-preview.dt-faq-preview .dt-faq-list-section {
	padding: 0 0 var(--dt-section-rhythm);
}

.dt-redesign-preview.dt-faq-preview .dt-faq-list-section .dt-container--content {
	width: min(calc(100% - clamp(40px, 6vw, 96px)), 900px);
}

.dt-redesign-preview.dt-faq-preview .dt-faq-page > .dt-section {
	padding-block: var(--dt-section-rhythm);
}

.dt-redesign-preview.dt-faq-preview .dt-faq-page > :is(.dt-home-process, .dt-faq-conversion) .dt-container {
	width: min(calc(100% - clamp(40px, 6vw, 96px)), var(--dt-container-default));
}

.dt-redesign-preview.dt-faq-preview .dt-faq-conversion .dt-contact-form {
	border-color: color-mix(in srgb, var(--dt-color-text-primary) 10%, var(--dt-color-border));
	box-shadow: 0 22px 52px rgba(24, 24, 24, 0.1);
}

.dt-redesign-preview.dt-faq-preview .dt-faq-item__heading {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.dt-redesign-preview.dt-faq-preview .dt-faq-answer[hidden] {
	display: none;
}

@media (max-width: 700px) {
	.dt-redesign-preview.dt-faq-preview .dt-faq-list-section .dt-container--content,
	.dt-redesign-preview.dt-faq-preview .dt-faq-page > :is(.dt-home-process, .dt-faq-conversion) .dt-container {
		width: calc(100% - 28px);
		max-width: var(--dt-container-default);
		min-width: 0;
	}

	.dt-redesign-preview.dt-faq-preview :is(
		.dt-faq-list,
		.dt-faq-item,
		.dt-faq-item__heading,
		.dt-faq-question,
		.dt-faq-answer,
		.dt-faq-answer__inner
	) {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.dt-redesign-preview.dt-faq-preview .dt-faq-question > span:first-child {
		min-width: 0;
		overflow-wrap: break-word;
		word-break: normal;
	}
}
