/**
 * MBST.com design alignment — kolory, typografia, komponenty (wzorzec DE)
 * https://mbst.com/
 */

/* ─── Tokeny mbst.com (profesjonalna / pacjent dark hero) ─── */
.mbst-premium-ui {
	--mbst-content-max: 1200px;
	--mbst-content-gutter: clamp(16px, 3vw, 48px);
	--mbst-navy: #18225b;
	--mbst-navy-deep: #131a49;
	--mbst-navy-header: #243570;
	--mbst-cyan: #54add6;
	--mbst-cyan-hover: #3d9bc4;
	--mbst-title-accent: #9ed4f2; /* tylko sekcje ciemne na stronie głównej */
	--mbst-on-dark-text: rgba(255, 255, 255, 0.92);
	--mbst-brand: var(--mbst-navy);
	--mbst-brand-dark: var(--mbst-navy-deep);
	--mbst-brand-light: #2a3a7a;
	--mbst-accent: var(--mbst-cyan);
	--mbst-surface: #ffffff;
	--mbst-surface-muted: #ffffff;
	--mbst-surface-alt: #ffffff;
	--mbst-text: var(--mbst-navy);
	--mbst-text-muted: #5c6478;
	--mbst-radius-pill: 999px;
	--mbst-shadow-card: none;
	--mbst-border: 1px solid rgba(24, 34, 91, 0.1);
	--mbst-section-y: clamp(48px, 6vw, 72px);
	--mbst-section-x: clamp(20px, 3vw, 40px);
	--mbst-split-gap: clamp(32px, 5vw, 48px);
}

/* ─── Typografia (Fira Sans — jak mbst-terapia.pl) ─── */
.mbst-premium-ui {
	--mbst-font: 'Fira Sans', Arial, Tahoma, sans-serif;
}

.mbst-premium-ui body,
.mbst-premium-ui #Content,
.mbst-premium-ui #Top_bar .menu > li > a span,
.mbst-premium-ui #Subheader .title,
.mbst-premium-ui h1,
.mbst-premium-ui h2,
.mbst-premium-ui h3,
.mbst-premium-ui h4,
.mbst-premium-ui h5,
.mbst-premium-ui h6 {
	font-family: var(--mbst-font);
}

.mbst-premium-ui body {
	font-size: 14px;
	line-height: 26px;
	font-weight: 400;
	letter-spacing: 0;
}

.mbst-premium-ui #Top_bar .menu > li > a span {
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
}

.mbst-premium-ui #Content h1 {
	font-size: 54px;
	line-height: 64px;
	font-weight: 700;
	letter-spacing: 1px;
}

.mbst-premium-ui #Content h2 {
	font-size: 42px;
	line-height: 42px;
	font-weight: 900;
	letter-spacing: 0;
}

.mbst-premium-ui #Content h3 {
	font-size: 24px;
	line-height: 34px;
	font-weight: 900;
	letter-spacing: 0;
}

.mbst-premium-ui #Content h4 {
	font-size: 20px;
	line-height: 28px;
	font-weight: 900;
}

.mbst-premium-ui #Content h5 {
	font-size: 18px;
	line-height: 28px;
	font-weight: 400;
}

.mbst-premium-ui #Content h6 {
	font-size: 14px;
	line-height: 26px;
	font-weight: 400;
}

/* ─── Header: przezroczysty na hero → granatowy pasek po scrollu ─── */
@media (min-width: 1240px) {
	body.mbst-premium-ui:not(.mbst-header-scrolled):not(.mbst-header-solid) #Top_bar .menu > li > a span {
		color: #fff !important;
	}

}

body.mbst-premium-ui.mbst-header-scrolled #Header,
body.mbst-premium-ui.mbst-header-scrolled #Top_bar,
body.mbst-premium-ui #Top_bar.is-sticky,
body.mbst-premium-ui #Top_bar.mbst-header-solid {
	background: var(--mbst-navy-header, #243570) !important;
	background-color: var(--mbst-navy-header, #243570) !important;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.mbst-premium-ui.mbst-header-scrolled #Top_bar .menu > li > a span,
body.mbst-premium-ui #Top_bar.is-sticky .menu > li > a span,
body.mbst-premium-ui #Top_bar.mbst-header-solid .menu > li > a span {
	color: #fff !important;
}

body.mbst-premium-ui.mbst-header-scrolled #Top_bar .menu > li:hover > a,
body.mbst-premium-ui.mbst-header-scrolled #Top_bar .menu > li.current-menu-item > a,
body.mbst-premium-ui #Top_bar.is-sticky .menu > li:hover > a,
body.mbst-premium-ui #Top_bar .menu > li.mbst-mega-parent:hover > a,
body.mbst-premium-ui #Top_bar .menu > li.mbst-mega-parent.hover > a {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

body.mbst-premium-ui.mbst-header-scrolled #Top_bar .menu > li:hover > a span,
body.mbst-premium-ui #Top_bar.is-sticky .menu > li:hover > a span,
body.mbst-premium-ui #Top_bar.mbst-header-solid .menu > li:hover > a span,
body.mbst-premium-ui.mbst-header-scrolled #Top_bar .menu > li.mbst-mega-parent:hover > a span,
body.mbst-premium-ui #Top_bar.is-sticky .menu > li.mbst-mega-parent:hover > a span,
body.mbst-premium-ui #Top_bar.mbst-header-solid .menu > li.mbst-mega-parent:hover > a span {
	color: #fff !important;
}

body.mbst-premium-ui:not(.mbst-header-scrolled):not(.mbst-header-solid) #Top_bar .menu > li:hover > a span,
body.mbst-premium-ui:not(.mbst-header-scrolled):not(.mbst-header-solid) #Top_bar .menu > li.mbst-mega-parent:hover > a span {
	color: #fff !important;
}

body.mbst-premium-ui:not(.mbst-header-scrolled) #Top_bar {
	background: linear-gradient(
		180deg,
		rgba(24, 34, 91, 0.75) 0%,
		rgba(24, 34, 91, 0.25) 70%,
		transparent 100%
	) !important;
}

/* Mega menu — biały panel, granatowe linki */
.mbst-premium-ui #Top_bar .menu > li.mbst-mega-parent > ul.mbst-mega-dropdown > li > a {
	color: var(--mbst-navy) !important;
}

.mbst-premium-ui #Top_bar .menu > li.mbst-mega-parent > ul.mbst-mega-dropdown > li > a:hover span {
	color: var(--mbst-navy) !important;
}

.mbst-premium-ui #Top_bar .menu > li.mbst-mega-parent:hover > a {
	background: transparent !important;
}

.mbst-premium-ui #Top_bar .menu > li.mbst-mega-parent:hover > a,
.mbst-premium-ui #Top_bar .menu > li.mbst-mega-parent:focus-within > a {
	background: transparent !important;
}

/* ─── Subheader podstron — przezroczysty, tło hero w #Header_wrapper ─── */
body:not(.home).mbst-premium-ui #Subheader {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
}

body:not(.home).mbst-premium-ui #Subheader .title,
.mbst-premium-ui .subheader-both-left #Subheader .title {
	color: #fff !important;
	text-align: left !important;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

body:not(.home).mbst-premium-ui #Header_wrapper::before {
	background: linear-gradient(
		180deg,
		rgba(24, 34, 91, 0.65) 0%,
		rgba(24, 34, 91, 0.4) 100%
	);
}

/* ─── Przyciski (pill — mbst.com, tylko strona główna) ─── */
body.home.mbst-premium-ui a.button,
body.home.mbst-premium-ui button,
body.home.mbst-premium-ui input[type="submit"],
body.home.mbst-premium-ui .wpcf7-submit,
body.home.mbst-premium-ui a.button_theme,
body.home.mbst-premium-ui button.button_theme {
	border-radius: var(--mbst-radius-pill) !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	transition: background var(--mbst-transition), color var(--mbst-transition), transform var(--mbst-transition), box-shadow var(--mbst-transition);
}

body.home.mbst-premium-ui a.button_theme,
body.home.mbst-premium-ui button.button_theme,
body.home.mbst-premium-ui .wpcf7-submit {
	background: var(--mbst-cyan) !important;
	color: #fff !important;
	border: 2px solid var(--mbst-cyan) !important;
}

body.home.mbst-premium-ui a.button_theme:hover,
body.home.mbst-premium-ui .wpcf7-submit:hover {
	background: var(--mbst-cyan-hover) !important;
	border-color: var(--mbst-cyan-hover) !important;
	transform: none;
	box-shadow: none !important;
}

/* ─── Strona główna — hero jak mbst.com (granat + komórki) ─── */
body.home.mbst-premium-ui #Content .section.mcb-section:first-of-type {
	background-color: var(--mbst-navy) !important;
}

body.home.mbst-premium-ui #Content .section.mcb-section:first-of-type::before {
	background: linear-gradient(
		105deg,
		rgba(24, 34, 91, 0.92) 0%,
		rgba(24, 34, 91, 0.55) 45%,
		rgba(84, 173, 214, 0.15) 100%
	);
}

body.home.mbst-premium-ui #Content .section.mcb-section:first-of-type .column_attr h1 {
	font-size: clamp(2rem, 4.5vw, 3.125rem) !important;
	font-weight: 700 !important;
	line-height: 1.08 !important;
	letter-spacing: -0.03em;
}

body.home.mbst-premium-ui #Content .section.mcb-section:first-of-type .column_attr > p {
	font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
	line-height: 1.45 !important;
	opacity: 0.95;
	max-width: min(36em, 90vw);
}

/* Formularz kontaktowy na hero — biała karta */
body.home.mbst-premium-ui .mbst-home-form .column_attr {
	background: #fff !important;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: none !important;
	border-radius: var(--mbst-radius-lg) !important;
	padding: 28px 30px !important;
	box-shadow: none !important;
	color: var(--mbst-navy);
}

body.home.mbst-premium-ui .mbst-home-form .column_attr > p,
body.home.mbst-premium-ui .mbst-home-form .column_attr > p strong {
	color: var(--mbst-navy) !important;
	text-shadow: none !important;
}

body.home.mbst-premium-ui .mbst-home-form .mbst-accept-txt {
	color: var(--mbst-navy) !important;
	opacity: 1 !important;
}

body.home.mbst-premium-ui .mbst-home-form .wpcf7-form-control-wrap.mbst-form-accept {
	background: transparent !important;
}

body.home.mbst-premium-ui .section.mcb-section.equal-height-wrap {
	background: transparent !important;
	padding-top: 64px !important;
	padding-bottom: 64px !important;
}

/* Sekcje treści — naprzemienne jasne tła (bez pasów granatowych no-margin) */
body.home.mbst-premium-ui #Content .section.mcb-section:nth-of-type(even):not(:first-of-type):not(.no-margin-h) {
	background: var(--mbst-surface) !important;
}

body.home.mbst-premium-ui #Content .section.mcb-section:nth-of-type(odd):not(:first-of-type):not(.no-margin-h) {
	background: var(--mbst-surface-muted) !important;
}

/* Split image + tekst (jak mbst.com/de/patient/) — cała sekcja granat */
body.home.mbst-premium-ui #Content .section.mcb-section.no-margin-h.no-margin-v {
	background: linear-gradient(135deg, var(--mbst-navy) 0%, #1e3070 100%) !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.home.mbst-premium-ui #Content .section.mcb-section.equal-height-wrap .column_attr h2,
body.home.mbst-premium-ui #Content .section.mcb-section.equal-height-wrap .column_attr h3,
body.home.mbst-premium-ui #Content .section.mcb-section:nth-of-type(even):not(:first-of-type) .column_attr h2,
body.home.mbst-premium-ui #Content .section.mcb-section:nth-of-type(even):not(:first-of-type) .column_attr h3,
body.home.mbst-premium-ui #Content .section.mcb-section:nth-of-type(odd):not(:first-of-type) .column_attr h2,
body.home.mbst-premium-ui #Content .section.mcb-section:nth-of-type(odd):not(:first-of-type) .column_attr h3 {
	color: var(--mbst-navy) !important;
	text-shadow: none !important;
}

/* ─── Stopka (ciemny granat jak mbst.com) ─── */
.mbst-premium-ui #Footer {
	background: var(--mbst-navy) !important;
	color: rgba(255, 255, 255, 0.88);
	border-radius: 0 !important;
}

.mbst-premium-ui #Footer a {
	color: var(--mbst-cyan);
}

.mbst-premium-ui #Footer a:hover {
	color: #fff;
}

.mbst-premium-ui #Footer .footer_copy {
	background: var(--mbst-navy-deep) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mbst-premium-ui #Footer h4,
.mbst-premium-ui #Footer .widget-title {
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ─── Treść globalna ─── */
.mbst-premium-ui #Content {
	background: var(--mbst-surface-muted);
}

.mbst-premium-ui #Content li::marker {
	color: var(--mbst-cyan);
}

.mbst-premium-ui .wrap.mcb-wrap:not(.white-on-black):not([style*="background-color:#000000"]):not([style*="background-color: #000000"]) .column_column p b,
.mbst-premium-ui .wrap.mcb-wrap:not(.white-on-black):not([style*="background-color:#000000"]):not([style*="background-color: #000000"]) .column_column h2 {
	color: var(--mbst-navy);
}

/* Accordion / FAQ */
.mbst-premium-ui .accordion .question.active .title {
	background: var(--mbst-navy) !important;
}

.mbst-premium-ui .accordion .question .title {
	color: var(--mbst-navy) !important;
}

/* Publikacje — akcent cyan */
body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-intro h3 {
	border-bottom-color: var(--mbst-cyan);
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-item {
	border-left-color: var(--mbst-cyan);
}

/* Liczniki / listy numerowane */
body.mbst-page-terapia.mbst-premium-ui .list_item .circle {
	background: var(--mbst-cyan) !important;
	color: #fff !important;
}

body.mbst-page-terapia.mbst-premium-ui .column_counter .number-wrapper .number {
	color: var(--mbst-cyan) !important;
}

/* Back to top */
.mbst-premium-ui #back_to_top {
	background: var(--mbst-cyan) !important;
	color: #fff !important;
}
