/**
 * Strona główna — jednolite tło, układ sekcji, dopracowanie (page 109).
 */

/* ─── Płótno strony ─── */
body.home.mbst-premium-ui #Wrapper,
body.home.mbst-premium-ui #Content {
	background: var(--mbst-surface-muted, #f5f7fb) !important;
}

body.home.mbst-premium-ui #Content .sections_group,
body.home.mbst-premium-ui #Content .entry-content {
	background: transparent !important;
}

/* ─── Hero — pełna szerokość, granat ─── */
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:first-child {
	background-color: var(--mbst-navy, #18225b) !important;
	background-image: inherit;
	padding-top: clamp(120px, 14vw, 160px) !important;
	padding-bottom: clamp(72px, 10vw, 120px) !important;
	margin-bottom: 0 !important;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:first-child::before {
	background: linear-gradient(
		105deg,
		rgba(24, 34, 91, 0.9) 0%,
		rgba(24, 34, 91, 0.55) 48%,
		rgba(84, 173, 214, 0.12) 100%
	) !important;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:first-child .section_wrapper {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(20px, 3vw, 40px);
	padding-right: clamp(20px, 3vw, 40px);
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:first-child .column_attr h1,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:first-child .column_attr > p {
	color: #fff !important;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* ─── Sekcje pod hero — wspólne tło i szerokość ─── */
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) {
	background: transparent !important;
	padding-top: clamp(40px, 5vw, 64px) !important;
	padding-bottom: clamp(40px, 5vw, 64px) !important;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .section_wrapper {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(20px, 3vw, 40px);
	padding-right: clamp(20px, 3vw, 40px);
}

/* Wyłącz nakładki / pasy z buildera */
body.home.mbst-premium-ui #Content .entry-content [style*='margin-top:-'],
body.home.mbst-premium-ui #Content .entry-content [style*='margin-top: -'] {
	margin-top: 0 !important;
}

body.home.mbst-premium-ui #Content .entry-content .wrap.mcb-wrap[style*='background-color:#ffffff'],
body.home.mbst-premium-ui #Content .entry-content .wrap.mcb-wrap[style*='background-color: #ffffff'],
body.home.mbst-premium-ui #Content .entry-content .wrap.mcb-wrap[style*='background-color:#000000'],
body.home.mbst-premium-ui #Content .entry-content .wrap.mcb-wrap[style*='background-color: #000000'],
body.home.mbst-premium-ui #Content .entry-content .wrap.mcb-wrap[style*='background-color:#005596'],
body.home.mbst-premium-ui #Content .entry-content .wrap.mcb-wrap[style*='background-color: #005596'] {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

body.home.mbst-premium-ui #Content .entry-content .column_attr[style*='background-color'],
body.home.mbst-premium-ui #Content .entry-content .column_attr[style*='padding:50px'],
body.home.mbst-premium-ui #Content .entry-content .column_attr[style*='padding: 50px'] {
	background: transparent !important;
	padding: clamp(24px, 3vw, 40px) !important;
}

/* ─── Wskazania (kafelki) ─── */
body.home.mbst-premium-ui #Content .section.mcb-section.equal-height-wrap {
	border-bottom: 1px solid rgba(24, 34, 91, 0.08);
	padding-top: clamp(48px, 6vw, 72px) !important;
	padding-bottom: clamp(48px, 6vw, 72px) !important;
}

body.home.mbst-premium-ui #Content .section.mcb-section.equal-height-wrap .mcb-wrap-inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

body.home.mbst-premium-ui #Content a.mfn-link.mfn-link-4 {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	width: 100%;
	padding: 20px 16px !important;
	background: #fff !important;
	border: 1px solid rgba(24, 34, 91, 0.08) !important;
	border-top: 4px solid var(--mbst-cyan, #54add6) !important;
	border-radius: 14px !important;
	box-shadow: none !important;
	color: var(--mbst-navy, #18225b) !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-shadow: none !important;
	text-align: center;
	transition: border-color 0.2s ease, color 0.2s ease;
}

body.home.mbst-premium-ui #Content a.mfn-link.mfn-link-4:hover {
	background: #fff !important;
	border-top-color: var(--mbst-navy, #18225b) !important;
	color: var(--mbst-cyan, #54add6) !important;
	transform: none;
	box-shadow: none !important;
}

/* ─── Sekcje treści (split obraz + tekst) ─── */
body.home.mbst-premium-ui #Content .section.mcb-section.no-margin-h .section_wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
}

body.home.mbst-premium-ui #Content .section.mcb-section.no-margin-h .wrap.mcb-wrap {
	flex: 1 1 50%;
	min-width: min(100%, 320px);
}

body.home.mbst-premium-ui #Content .section.mcb-section.no-margin-h .column_image {
	border-radius: 16px;
	overflow: hidden;
	margin: clamp(12px, 2vw, 20px);
}

body.home.mbst-premium-ui #Content .section.mcb-section.no-margin-h .image_wrapper img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
}

/* Typografia na jasnym tle (nadpisuje mbst-dark-surface — wyższa specyficzność) */
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr p,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr li,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr b,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr strong,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section.no-margin-h .column_attr,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section.no-margin-h .column_attr p,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section.no-margin-h .column_attr li,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section.no-margin-h .column_attr b,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section.no-margin-h .column_attr strong,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section.no-margin-h .wrap.mcb-wrap[style*='background-color:#ffffff'] .column_attr,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section.no-margin-h .wrap.mcb-wrap[style*='background-color:#ffffff'] .column_attr p,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section.no-margin-h .wrap.mcb-wrap[style*='background-color: #ffffff'] .column_attr,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section.no-margin-h .wrap.mcb-wrap[style*='background-color: #ffffff'] .column_attr p {
	color: var(--mbst-navy, #18225b) !important;
	text-shadow: none !important;
	-webkit-text-fill-color: currentColor !important;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr h2,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr h3 {
	color: var(--mbst-navy, #18225b) !important;
	font-weight: 700 !important;
	text-shadow: none !important;
	margin-bottom: 0.75em;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr h6 {
	color: var(--mbst-cyan, #54add6) !important;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr li::marker {
	color: var(--mbst-cyan, #54add6);
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr p[style*='005596'],
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:not(:first-child) .column_attr p[style*='color: #005596'] {
	color: var(--mbst-text-muted, #5c6478) !important;
}

body.home.mbst-premium-ui #Content .entry-content hr {
	border: none;
	border-top: 1px solid rgba(24, 34, 91, 0.12);
	margin: 1.5em 0;
}

body.home.mbst-premium-ui #Content .entry-content .button .button,
body.home.mbst-premium-ui #Content .entry-content a.button,
body.home.mbst-premium-ui #Content .entry-content .button button {
	background: var(--mbst-cyan, #54add6) !important;
	border: 2px solid var(--mbst-cyan, #54add6) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	padding: 12px 28px !important;
	box-shadow: none !important;
}

body.home.mbst-premium-ui #Content .entry-content .button .button:hover,
body.home.mbst-premium-ui #Content .entry-content a.button:hover {
	background: var(--mbst-cyan-hover, #3d9bc4) !important;
	border-color: var(--mbst-cyan-hover, #3d9bc4) !important;
}

/* ─── CTA „Skontaktuj się” — pas granatowy na dole ─── */
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child {
	background: linear-gradient(135deg, var(--mbst-navy, #18225b) 0%, #1e3070 100%) !important;
	padding-top: clamp(56px, 8vw, 88px) !important;
	padding-bottom: clamp(56px, 8vw, 88px) !important;
	margin-top: clamp(24px, 4vw, 40px);
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child .section_wrapper {
	max-width: 1280px;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child .wrap.mcb-wrap,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child .column_attr {
	background: transparent !important;
	padding: clamp(24px, 4vw, 48px) !important;
	margin: 0 !important;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child .column_attr,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child .column_attr h2,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child .column_attr p,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child .column_attr a {
	color: #fff !important;
	text-shadow: none !important;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child .button .button,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child a.button {
	background: #fff !important;
	color: var(--mbst-navy, #18225b) !important;
	border-color: #fff !important;
}

body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child .button .button:hover,
body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:last-child a.button:hover {
	background: var(--mbst-cyan, #54add6) !important;
	color: #fff !important;
	border-color: var(--mbst-cyan, #54add6) !important;
}

/* ─── Formularz w hero (biała karta) ─── */
body.home.mbst-premium-ui .mbst-home-form .column_attr {
	background: #fff !important;
	border: 1px solid rgba(24, 34, 91, 0.08) !important;
	border-radius: 16px !important;
	box-shadow: 0 12px 40px rgba(24, 34, 91, 0.12) !important;
}

@media (max-width: 959px) {
	body.home.mbst-premium-ui #Content .section.mcb-section.equal-height-wrap .mcb-wrap-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	body.home.mbst-premium-ui #Content a.mfn-link.mfn-link-4 {
		min-height: 80px;
		font-size: 14px !important;
	}

	body.home.mbst-premium-ui #Content .section.mcb-section.no-margin-h .wrap.mcb-wrap {
		flex: 1 1 100%;
	}

	body.home.mbst-premium-ui #Content .entry-content > .section.mcb-section:first-child {
		padding-top: 100px !important;
		padding-bottom: 56px !important;
	}
}

@media (max-width: 600px) {
	body.home.mbst-premium-ui #Content .section.mcb-section.equal-height-wrap .mcb-wrap-inner {
		grid-template-columns: 1fr;
	}
}
