/**
 * FAQ — Pytania Pacjentów (mbst-w-pigulce).
 * Nadpisuje układ z mbst-subpages.css: jedna kolumna + akordeon.
 */

body.mbst-page-faq.mbst-premium-ui .mbst-faq-page.mbst-block-section {
	padding-top: 0 !important;
	padding-bottom: clamp(40px, 5vw, 56px) !important;
	margin-top: clamp(-32px, -3vw, -16px);
	position: relative;
	z-index: 2;
}

body.mbst-page-faq.mbst-premium-ui .mbst-faq-page .section_wrapper {
	padding-top: 0 !important;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

body.mbst-page-faq.mbst-premium-ui .mbst-faq-page .mbst-block-prose.mbst-faq-layout,
body.mbst-page-faq.mbst-premium-ui .mbst-faq-page .mbst-faq-layout {
	display: flex;
	flex-direction: column;
	gap: var(--mbst-space-2, 12px);
	background: #fff;
	border: var(--mbst-border, 1px solid rgba(24, 34, 91, 0.1));
	border-radius: var(--mbst-radius-lg, 16px);
	padding: clamp(24px, 4vw, 40px);
	max-width: none;
	box-shadow: none;
}

body.mbst-page-faq.mbst-premium-ui .mbst-faq-layout > .mbst-content-lead {
	margin: 0 0 var(--mbst-space-3, 24px) !important;
	padding: 0 0 var(--mbst-space-3, 24px) !important;
	border-bottom: var(--mbst-border);
	font-size: var(--mbst-text-xl, clamp(1.125rem, 2vw, 1.25rem)) !important;
	font-weight: 700 !important;
	line-height: var(--mbst-leading-tight, 1.2) !important;
	color: var(--mbst-navy, #18225b) !important;
}

/* Akordeon — natywne <details> (generowane przez JS) lub blok przed konwersją */
body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item,
body.mbst-page-faq.mbst-premium-ui .mbst-faq-block:not(.mbst-faq-block--cta):not(.mbst-faq-block--intro) {
	border: var(--mbst-border);
	border-radius: var(--mbst-radius-md, 12px);
	background: var(--mbst-surface-alt, #f8fafc);
	overflow: hidden;
}

body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item {
	margin: 0;
}

body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item[open] {
	background: #fff;
	border-color: rgba(84, 173, 214, 0.35);
}

body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item summary.mbst-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--mbst-space-2, 16px);
	margin: 0;
	padding: clamp(16px, 2.5vw, 20px) clamp(18px, 2.5vw, 22px);
	font-size: clamp(1rem, 1.9vw, 1.1rem) !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: var(--mbst-navy, #18225b) !important;
	cursor: pointer;
	list-style: none;
	touch-action: manipulation;
	min-height: 44px;
	box-sizing: border-box;
}

body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item summary.mbst-faq-question::-webkit-details-marker {
	display: none;
}

body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item summary.mbst-faq-question::after {
	content: '+';
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--mbst-radius-sm, 8px);
	background: rgba(24, 34, 91, 0.06);
	color: var(--mbst-navy, #18225b);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.2s ease, background 0.2s ease;
}

body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item[open] summary.mbst-faq-question::after {
	content: '−';
	background: rgba(84, 173, 214, 0.2);
}

body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item .mbst-faq-answers {
	margin: 0;
	padding: 0 clamp(18px, 2.5vw, 22px) clamp(18px, 2.5vw, 22px);
	list-style: disc;
	padding-left: clamp(36px, 4vw, 42px);
}

body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item .mbst-faq-answers li {
	margin-bottom: 0.55em;
	line-height: var(--mbst-leading-body, 1.65) !important;
	color: var(--mbst-text, #18225b) !important;
}

body.mbst-page-faq.mbst-premium-ui details.mbst-faq-item .mbst-faq-answers li::marker {
	color: var(--mbst-cyan, #54add6);
}

/* Blok CTA na dole */
body.mbst-page-faq.mbst-premium-ui .mbst-faq-block--cta {
	border: none !important;
	padding: clamp(22px, 3vw, 32px) !important;
	margin-top: var(--mbst-space-2, 12px);
	background: var(--mbst-gradient-navy, linear-gradient(135deg, #18225b 0%, #243570 100%)) !important;
	border-radius: var(--mbst-radius-md, 12px);
}

body.mbst-page-faq.mbst-premium-ui .mbst-faq-cta {
	margin: 0 !important;
	font-size: clamp(0.98rem, 1.8vw, 1.05rem) !important;
	font-weight: 600 !important;
	line-height: 1.55 !important;
	color: rgba(255, 255, 255, 0.94) !important;
	text-align: center;
}

body.mbst-page-faq.mbst-premium-ui .mbst-faq-block--cta .mbst-btn {
	margin-top: var(--mbst-space-3, 16px);
}

@media (max-width: 767px) {
	body.mbst-page-faq.mbst-premium-ui .mbst-faq-page .mbst-faq-layout {
		padding: clamp(18px, 4vw, 24px);
	}
}
