/**

 * Podstrony — hero z tłem (jak mbst-terapia.pl) + biały kafelek nachodzący na zdjęcie.

 */

/* Tło hero — warstwa zdjęcia (::after) + premium fade-in po wejściu */
body:not(.home).mbst-premium-ui #Header_wrapper {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	min-height: clamp(220px, 30vw, 380px) !important;
}

body:not(.home).mbst-premium-ui #Header_wrapper.mbst-hero-has-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--mbst-hero-bg);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	transform: scale(1.1);
	will-change: transform, opacity;
}

body:not(.home).mbst-premium-ui #Header_wrapper.mbst-hero-revealed::after {
	animation: mbst-hero-bg-reveal 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body:not(.home).mbst-premium-ui #Header_wrapper.mbst-hero-revealed #Subheader .title {
	animation: mbst-hero-title-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

body:not(.home).mbst-premium-ui #Header_wrapper.mbst-hero-revealed #Subheader .mbst-hero-breadcrumbs {
	animation: mbst-hero-title-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

@keyframes mbst-hero-bg-reveal {
	from {
		opacity: 0;
		transform: scale(1.12);
		filter: blur(6px) brightness(1.08);
	}
	to {
		opacity: 1;
		transform: scale(1.03);
		filter: blur(0) brightness(1);
	}
}

@keyframes mbst-hero-title-reveal {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	body:not(.home).mbst-premium-ui #Header_wrapper.mbst-hero-has-bg::after {
		opacity: 1;
		transform: none;
		filter: none;
		animation: none;
	}

	body:not(.home).mbst-premium-ui #Header_wrapper.mbst-hero-revealed #Subheader .title,
	body:not(.home).mbst-premium-ui #Header_wrapper.mbst-hero-revealed #Subheader .mbst-hero-breadcrumbs {
		animation: none;
	}
}

body:not(.home).mbst-premium-ui #Subheader {
	background: transparent !important;
	background-color: transparent !important;
	position: relative;
	z-index: 10 !important;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	margin-top: auto;
	padding: 0 !important;
}

/* Tytuł hero — wyrównany do kolumny treści podstrony (mbst-subpages.css) */
body:not(.home).mbst-premium-ui #Subheader .container {
	width: 100% !important;
	max-width: var(--mbst-content-max, 1200px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--mbst-content-gutter, clamp(16px, 3vw, 48px)) !important;
	padding-right: var(--mbst-content-gutter, clamp(16px, 3vw, 48px)) !important;
	padding-top: clamp(96px, 13vw, 148px) !important;
	padding-bottom: clamp(28px, 4vw, 48px) !important;
	box-sizing: border-box;
}

body:not(.home).mbst-premium-ui #Subheader .column.one,
body:not(.home).mbst-premium-ui #Subheader .mbst-hero-head {
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

body:not(.home).mbst-premium-ui #Subheader .mbst-hero-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
}

/* Breadcrumbs — pasek na dole hero, wyrównany do treści */
body:not(.home).mbst-premium-ui #Subheader .mbst-hero-breadcrumbs {
	width: 100%;
	margin-top: clamp(12px, 2vw, 20px);
	padding-top: clamp(12px, 1.8vw, 18px);
	border-top: 1px solid rgba(255, 255, 255, 0.24);
	box-sizing: border-box;
}

body:not(.home).mbst-premium-ui #Subheader ol.breadcrumbs,
body:not(.home).mbst-premium-ui #Subheader ul.breadcrumbs,
body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	float: none !important;
	text-align: left !important;
	font-size: 13px !important;
	line-height: 1.35 !important;
}

body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs > li {
	display: inline-flex;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs > li.mbst-breadcrumb-sep {
	padding: 0 clamp(7px, 1.1vw, 11px) !important;
	color: rgba(255, 255, 255, 0.42) !important;
	font-size: 11px !important;
	line-height: 1 !important;
}

body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs > li.mbst-breadcrumb-sep i {
	display: block;
	transform: translateY(0.5px);
}

body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs a,
body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs .mbst-breadcrumb-current {
	display: inline-flex;
	align-items: center;
	gap: clamp(5px, 0.8vw, 8px);
	color: rgba(255, 255, 255, 0.8) !important;
	text-decoration: none !important;
	font-weight: 500;
	letter-spacing: 0.01em;
	transition: color 0.2s ease;
}

body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs a:hover,
body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs a:focus-visible {
	color: #fff !important;
}

body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs > li.current .mbst-breadcrumb-current {
	color: #fff !important;
	font-weight: 600;
}

body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15em;
	font-size: 1.05em;
	line-height: 1;
	opacity: 0.92;
	flex-shrink: 0;
}

body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs > li.current i {
	opacity: 1;
}

body:not(.home).mbst-premium-ui #Subheader .title {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-family: 'Fira Sans', Arial, Tahoma, sans-serif !important;
	font-size: clamp(32px, 4.8vw, 54px) !important;
	line-height: 1.18 !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	text-align: left !important;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

body:not(.home).mbst-premium-ui #Header_wrapper::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(24, 34, 91, 0.72) 0%,
		rgba(24, 34, 91, 0.58) 45%,
		rgba(24, 34, 91, 0.48) 100%
	) !important;
}

body:not(.home).mbst-premium-ui #Header_wrapper.mbst-hero-revealed::before {
	animation: mbst-hero-overlay-reveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes mbst-hero-overlay-reveal {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Większe nachodzenie „arkusza” treści na hero */

body:not(.home).mbst-premium-ui #Content .sections_group {

	margin-top: clamp(-20px, -2.5vw, -12px) !important;

	box-shadow: none !important;

	overflow: visible !important;

}



/* Biały kafelek — pierwsza sekcja treści (margin-top z buildera) */

body:not(.home).mbst-premium-ui #Content .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='margin-top:-'],

body:not(.home).mbst-premium-ui #Content .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='margin-top: -'],

body:not(.home).mbst-premium-ui #Content .sections_group .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='margin-top:-'],

body:not(.home).mbst-premium-ui #Content .sections_group .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='margin-top: -'] {

	margin-top: clamp(-42px, -4vw, -29px) !important;

	background: #fff !important;

	background-color: #fff !important;

	padding: clamp(22px, 3.2vw, 40px) clamp(16px, 2.4vw, 32px) !important;

	box-shadow: none !important;

	position: relative;

	z-index: 3;

	box-sizing: border-box;

}



body:not(.home).mbst-premium-ui #Content .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='background-color:#ffffff'],

body:not(.home).mbst-premium-ui #Content .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='background-color: #ffffff'],

body:not(.home).mbst-premium-ui #Content .sections_group .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='background-color:#ffffff'],

body:not(.home).mbst-premium-ui #Content .sections_group .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='background-color: #ffffff'] {

	background: #fff !important;

	background-color: #fff !important;

}



body.mbst-page-kontakt.mbst-premium-ui #Subheader .container {
	padding-top: clamp(88px, 12vw, 132px) !important;
	padding-bottom: clamp(24px, 3.5vw, 40px) !important;
}

@media (max-width: 767px) {
	body:not(.home).mbst-premium-ui #Header_wrapper {
		min-height: clamp(220px, 56vw, 300px) !important;
	}

	body:not(.home).mbst-premium-ui #Subheader .container {
		padding-top: clamp(80px, 18vw, 112px) !important;
		padding-bottom: clamp(18px, 4vw, 28px) !important;
	}

	body:not(.home).mbst-premium-ui #Subheader .title {
		font-size: clamp(26px, 7.2vw, 36px) !important;
		line-height: 1.2 !important;
		letter-spacing: 0.01em !important;
	}

	body:not(.home).mbst-premium-ui #Subheader .mbst-hero-breadcrumbs {
		margin-top: clamp(10px, 2.4vw, 14px);
		padding-top: clamp(10px, 2vw, 14px);
	}

	body:not(.home).mbst-premium-ui #Subheader ol.breadcrumbs,
	body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs {
		font-size: 12px !important;
		row-gap: 4px;
	}

	body:not(.home).mbst-premium-ui #Subheader .mbst-breadcrumbs > li.mbst-breadcrumb-sep {
		padding: 0 6px !important;
		font-size: 10px !important;
	}

	body:not(.home).mbst-premium-ui #Content .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='margin-top:-'],
	body:not(.home).mbst-premium-ui #Content .entry-content > .section.mcb-section:first-of-type .wrap.mcb-wrap[style*='margin-top: -'] {
		margin-top: -19px !important;
		padding: 19px var(--mbst-content-gutter, clamp(16px, 3vw, 48px)) !important;
	}

	body:not(.home).mbst-premium-ui #Content .sections_group {
		margin-top: -16px !important;
	}
}

@media (max-width: 479px) {
	body:not(.home).mbst-premium-ui #Subheader .title {
		font-size: clamp(24px, 6.8vw, 30px) !important;
		line-height: 1.22 !important;
	}
}


