/* ============================================
   MOJA DIAGNOZA - V1 Redesign
   Design system: navy primary, teal accent, orange CTA
   Consistent cards, alignment, spacing
   ============================================ */

/* === RESET: kill WP default gaps === */
.wp-site-blocks > * + * {
	margin-block-start: 0 !important;
}
.wp-site-blocks > .wp-block-post-content > * + * {
	margin-block-start: 0 !important;
}
.wp-block-post-content > * + * {
	margin-block-start: 0 !important;
}
.wp-site-blocks {
	gap: 0 !important;
	overflow: visible !important;
}
/* Force content below sticky header in stacking order */
.wp-block-post-content,
.wp-site-blocks > .wp-block-group {
	position: relative;
	z-index: 1;
}
.is-layout-flow > * + * {
	margin-block-start: 0;
}
/* ==========================================================
   WP BLOCK RESET for our custom sections
   WordPress adds is-layout-flow which overrides display,
   and adds margin-block-start between child blocks.
   ========================================================== */

/* --- HERO: force flex + restore height (WP is-layout-flow overrides it) --- */
.md-hero,
.md-hero.wp-block-group,
.md-hero.is-layout-flow,
.md-hero.is-layout-default {
	display: flex !important;
	align-items: center;
	min-height: 480px;
	padding: 70px 40px;
	box-sizing: content-box;
}
.md-hero-content.wp-block-group {
	padding: 0;
}
/* Kill WP default spacing, then restore OUR spacing below */
.md-hero-content > *,
.md-hero-content.wp-block-group > *,
.md-hero-content.is-layout-flow > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
/* Restore intended bottom margins */
.md-hero-content .md-hero-label {
	margin-bottom: 12px !important;
}
.md-hero-content .md-hero-heading,
.md-hero-content .wp-block-heading {
	margin-bottom: 16px !important;
}
.md-hero-content .md-hero-subtitle {
	margin-bottom: 28px !important;
}
.md-hero-content .md-hero-ctas,
.md-hero-content .wp-block-buttons {
	margin-bottom: 28px !important;
}
.md-hero-ctas .wp-block-button {
	margin: 0;
}
.md-hero .wp-element-button,
.md-hero .wp-block-button__link {
	border: none;
	outline: none;
}

/* --- SECTION HEADERS: kill WP gaps, our CSS handles spacing --- */
.md-section-header.wp-block-group {
	padding: 0;
}
.md-section-header > *,
.md-section-header.wp-block-group > *,
.md-section-header.is-layout-flow > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
/* Restore OUR intended spacing */
.md-section-header .md-section-label {
	margin: 0 0 14px !important;
}
.md-section-header .wp-block-heading,
.md-section-header .md-section-title {
	margin: 0 !important;
}
.md-section-header .md-section-desc {
	margin: 12px auto 0 !important;
}
/* Section header needs bottom margin to separate from content */
.md-section-header {
	margin-bottom: 48px !important;
}

/* --- OUTER SECTION CONTAINERS: kill WP gap between section-header and content --- */
.md-services.is-layout-flow > * + *,
.md-about-features.is-layout-flow > * + *,
.md-cta.is-layout-flow > * + *,
.md-location.is-layout-flow > * + *,
.md-reviews.is-layout-flow > * + *,
.md-services.wp-block-group > * + *,
.md-about-features.wp-block-group > * + *,
.md-cta.wp-block-group > * + *,
.md-location.wp-block-group > * + *,
.md-reviews.wp-block-group > * + * {
	margin-block-start: 0 !important;
}

/* --- FEATURES GRID: force CSS grid layout --- */
.md-features-grid,
.md-features-grid.wp-block-group,
.md-features-grid.is-layout-flow,
.md-features-grid.is-layout-default {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: var(--md-container);
	margin: 0 auto;
	padding: 0;
}
/* Feature cards: restore styling killed by wp-block-group */
.md-feature-item.wp-block-group {
	padding: 28px 24px;
	margin: 0;
	background: #ffffff;
	border: 1px solid var(--md-border);
	border-radius: var(--md-radius);
}
/* Kill WP spacing inside feature cards, then restore ours */
.md-feature-item > *,
.md-feature-item.wp-block-group > *,
.md-feature-item.is-layout-flow > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
/* Restore: icon → 16px gap → heading → 8px gap → paragraph */
.md-feature-item .md-feature-icon {
	margin-bottom: 16px !important;
}
.md-feature-item .wp-block-heading,
.md-feature-item h4 {
	margin-bottom: 8px !important;
}
.wp-block-group.md-hero,
.md-hero {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

/* === DESIGN TOKENS === */
:root {
	--md-navy: #1b3c59;
	--md-navy-light: #2a5478;
	--md-accent: #1b3c59;
	--md-accent-light: #eaeff4;
	--md-orange: #ff9802;
	--md-orange-hover: #e68a00;
	--md-text: #444444;
	--md-text-light: #777777;
	--md-bg-alt: #f6f8fa;
	--md-border: #e4e9ed;
	--md-radius: 10px;
	--md-shadow: 0 2px 8px rgba(0,0,0,0.05);
	--md-shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
	--md-container: 1100px;
	--md-section-pad: 80px;
}

/* === SECTION HEADERS === */
.md-section-header {
	text-align: center;
	margin-bottom: 48px;
}
.md-section-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: var(--md-orange);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 4px;
	font-weight: 700;
	margin: 0 0 14px;
}
.md-section-label::before,
.md-section-label::after {
	content: '';
	height: 2px;
	width: 40px;
	background: var(--md-orange);
	flex-shrink: 0;
	opacity: 0.35;
}
.md-section-title {
	font-size: 30px;
	color: var(--md-navy);
	font-weight: 800;
	margin: 0;
	line-height: 1.25;
}
.md-section-desc {
	font-size: 14px;
	color: var(--md-text-light);
	margin: 12px auto 0;
	letter-spacing: 0.2px;
	line-height: 1.7;
	max-width: 680px;
}
.md-section-subtitle {
	font-size: 14px;
	color: var(--md-text-light);
	margin: 10px 0 0;
}

/* === TOP BAR === */
.md-top-bar {
	background: var(--md-navy);
	padding: 7px 20px;
	font-size: 12px;
}
.md-top-bar a {
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	transition: color 0.2s;
}
.md-top-bar a:hover {
	color: #ffffff;
}
.md-top-bar .lang-flag {
	width: 20px;
	height: 14px;
	border-radius: 2px;
	vertical-align: middle;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
}
.md-top-bar .lang-flag:hover,
.md-top-bar .lang-flag.active {
	opacity: 1;
}
.md-topbar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}
.md-topbar-link svg {
	flex-shrink: 0;
	opacity: 0.7;
}
.md-topbar-sep {
	color: rgba(255,255,255,0.2);
	margin: 0 10px;
}
.md-topbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
}
.md-lang-switcher {
	display: flex;
	align-items: center;
	gap: 6px;
}
.md-topbar-social {
	display: inline-flex;
	align-items: center;
	margin-left: 4px;
}
.md-topbar-social svg {
	opacity: 0.6;
	transition: opacity 0.2s;
}
.md-topbar-social:hover svg {
	opacity: 1;
}

/* === STICKY HEADER: stick the whole template-part, offset by top-bar height === */
header.wp-block-template-part {
	position: sticky;
	top: -33px;
	z-index: 999;
	/* Prevent parent theme from breaking sticky with contain/transform */
	contain: none !important;
	transform: none !important;
	will-change: auto !important;
}
/* When WP admin bar is visible, offset by its 32px height */
.admin-bar header.wp-block-template-part {
	top: calc(32px - 33px);
}

/* === MAIN HEADER === */
.md-main-header {
	background: #ffffff;
	padding: 0 40px;
	z-index: 999;
	border-bottom: 1px solid var(--md-border);
	min-height: 74px;
}
.md-main-header .wp-block-image {
	margin: 0;
}
.md-main-header .wp-block-image img {
	display: block;
}

/* Header Buttons */
.md-header-buttons {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-shrink: 0;
}
.md-header-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 20px;
	border-radius: var(--md-radius);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	letter-spacing: 0.3px;
	border: none;
	transition: all 0.2s;
}
.md-header-btn svg {
	flex-shrink: 0;
}
.md-btn-wyniki {
	background: var(--md-bg-alt);
	color: var(--md-navy);
	border: 1px solid var(--md-border);
}
.md-btn-wyniki:hover {
	border-color: var(--md-navy);
}
.md-btn-umow {
	background: var(--md-orange);
	color: #ffffff;
}
.md-btn-umow:hover {
	background: var(--md-orange-hover);
	color: #ffffff;
}

/* === MEGA NAVIGATION === */
.md-mega-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}
.md-nav-list {
	display: flex;
	align-items: stretch;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.md-nav-item {
	position: static;
}
.md-nav-link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 24px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--md-navy);
	text-decoration: none;
	position: relative;
	transition: color 0.2s;
	white-space: nowrap;
}
.md-nav-link:hover {
	color: var(--md-navy);
}
.md-nav-link:hover::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 14px;
	right: 14px;
	height: 2px;
	background: var(--md-accent);
}
.md-nav-chevron {
	transition: transform 0.2s;
}
.md-nav-item:hover .md-nav-chevron {
	transform: rotate(180deg);
}

/* --- Mega panel (Pracownie) --- */
.md-mega-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #ffffff;
	border-top: 2px solid var(--md-accent);
	box-shadow: 0 16px 48px rgba(0,0,0,0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: all 0.25s ease;
	z-index: 1000;
}
.md-has-mega:hover .md-mega-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.md-mega-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 32px 32px;
}
.md-mega-col {
	padding: 0 20px;
	border-right: 1px solid var(--md-border);
}
.md-mega-col:last-child {
	border-right: none;
}
.md-mega-heading {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--md-navy);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding-bottom: 10px;
	margin-bottom: 8px;
	border-bottom: 2px solid var(--md-orange);
	text-decoration: none;
	transition: color 0.2s;
}
.md-mega-heading:hover {
	color: var(--md-orange);
}
.md-mega-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.md-mega-col ul li a {
	display: block;
	padding: 5px 0 5px 0;
	font-size: 13px;
	font-weight: 400;
	color: var(--md-text);
	text-decoration: none;
	transition: all 0.15s ease;
	border-left: 2px solid transparent;
	padding-left: 10px;
	line-height: 1.5;
}
.md-mega-col ul li a:hover {
	color: var(--md-navy);
	border-left-color: var(--md-orange);
	background: var(--md-bg-alt);
	padding-left: 14px;
}

/* --- Simple dropdown (reuses mega menu visual language) --- */
.md-dropdown-panel {
	position: absolute;
	top: 100%;
	left: auto;
	background: #ffffff;
	border-top: 2px solid var(--md-accent);
	border-radius: 0 0 10px 10px;
	box-shadow: 0 16px 48px rgba(0,0,0,0.12);
	min-width: 340px;
	padding: 16px 20px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: all 0.25s ease;
	z-index: 1000;
}
.md-has-dropdown {
	position: relative;
}
.md-has-dropdown:hover .md-dropdown-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.md-dropdown-panel a {
	display: block;
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 400;
	color: var(--md-text);
	text-decoration: none;
	transition: all 0.15s ease;
	border-left: 2px solid transparent;
	line-height: 1.5;
}
.md-dropdown-panel a:hover {
	background: var(--md-bg-alt);
	color: var(--md-navy);
	border-left-color: var(--md-orange);
	padding-left: 14px;
}
.md-dropdown-panel .md-mega-heading {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--md-navy);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding-bottom: 10px;
	margin-bottom: 8px;
	border-bottom: 2px solid var(--md-orange);
}
.md-dropdown-panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.md-dropdown-panel ul li a {
	display: block;
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 400;
	color: var(--md-text);
	text-decoration: none;
	transition: all 0.15s ease;
	border-left: 2px solid transparent;
	line-height: 1.5;
}
.md-dropdown-panel ul li a:hover {
	background: var(--md-bg-alt);
	color: var(--md-navy);
	border-left-color: var(--md-orange);
	padding-left: 14px;
}

/* --- Main header: sticky already creates a containing block for mega panel --- */

/* === HERO === */
.md-hero {
	min-height: 620px;
	display: flex;
	align-items: center;
	background: linear-gradient(90deg, rgba(246,248,250,0.95) 0%, rgba(246,248,250,0.88) 35%, rgba(246,248,250,0.35) 60%, transparent 100%),
	            url(/wp-content/themes/moja-diagnoza/assets/images/hero-bg.jpeg);
	background-size: cover;
	background-position: center center;
	padding: 70px 40px;
	margin: 0;
}
.md-hero-content {
	max-width: var(--md-container);
	margin: 0 auto;
	width: 100%;
}
.md-hero-image {
	display: none;
}
.md-hero-label {
	color: var(--md-text-light);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 3px;
	font-weight: 600;
	margin: 0 0 12px;
}
.md-hero-heading {
	color: var(--md-navy);
	font-size: 46px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 16px;
	line-height: 1.1;
}
.md-hero-subtitle {
	color: var(--md-text);
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 28px;
}
.md-hero-ctas {
	display: flex;
	gap: 12px;
	margin-bottom: 28px;
}
.md-hero-ctas.wp-block-buttons {
	gap: 12px;
	flex-wrap: nowrap;
}
.md-hero-btn-primary {
	display: contents;
}
.md-hero-btn-primary .wp-block-button__link,
.md-hero-btn-primary .wp-element-button {
	display: inline-block;
	background: var(--md-orange) !important;
	color: #ffffff !important;
	padding: 14px 32px;
	border-radius: var(--md-radius) !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	transition: all 0.2s;
	border: 1px solid var(--md-orange) !important;
	box-sizing: border-box;
}
.md-hero-btn-primary:hover .wp-block-button__link,
.md-hero-btn-primary .wp-block-button__link:hover,
.md-hero-btn-primary:hover .wp-element-button,
.md-hero-btn-primary .wp-element-button:hover {
	background: var(--md-orange-hover) !important;
	border-color: var(--md-orange-hover) !important;
	color: #ffffff !important;
}
.md-hero-btn-secondary {
	display: contents;
}
.md-hero-btn-secondary .wp-block-button__link,
.md-hero-btn-secondary .wp-element-button {
	display: inline-block;
	background: var(--md-bg-alt) !important;
	color: var(--md-navy) !important;
	padding: 14px 32px;
	border-radius: var(--md-radius) !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	transition: all 0.2s;
	border: 1px solid var(--md-border) !important;
	box-sizing: border-box;
}
.md-hero-btn-secondary:hover .wp-block-button__link,
.md-hero-btn-secondary .wp-block-button__link:hover,
.md-hero-btn-secondary:hover .wp-element-button,
.md-hero-btn-secondary .wp-element-button:hover {
	border-color: var(--md-navy) !important;
	color: var(--md-navy) !important;
}
.md-hero-badges {
	display: flex;
	gap: 24px;
}
.md-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--md-text-light);
	font-size: 13px;
}
.md-badge svg {
	flex-shrink: 0;
}

/* === SERVICES === */
.md-services {
	padding: var(--md-section-pad) 20px;
	background: #ffffff;
}
.md-services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	max-width: var(--md-container);
	margin: 0 auto;
}
.md-service-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	background: var(--md-bg-alt);
	border: 1px solid var(--md-border);
	border-radius: var(--md-radius);
	padding: 30px 16px;
	text-decoration: none;
	transition: all 0.2s ease;
}
.md-service-card:hover {
	border-color: var(--md-navy);
	box-shadow: var(--md-shadow);
}
.md-service-icon {
	width: 68px;
	height: 68px;
	background: var(--md-accent-light);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.md-service-icon img {
	width: 38px;
	height: 38px;
	filter: hue-rotate(-15deg) saturate(0.4) brightness(0.55);
}
.md-service-text {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.md-service-card .service-abbr {
	font-size: 22px;
	font-weight: 800;
	color: var(--md-navy);
	margin: 0;
	line-height: 1.2;
}
.md-service-card .service-name {
	font-size: 12px;
	color: var(--md-text-light);
	margin: 4px 0 0;
}

/* === ABOUT + FEATURES (combined) === */
.md-about-features {
	padding: var(--md-section-pad) 20px;
	background: var(--md-bg-alt);
}
/* Features grid */
.md-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: var(--md-container);
	margin: 0 auto;
}
.md-feature-item {
	padding: 28px 24px;
	background: #ffffff;
	border: 1px solid var(--md-border);
	border-radius: var(--md-radius);
	transition: all 0.2s ease;
}
.md-feature-item:hover {
	border-color: var(--md-navy);
	box-shadow: var(--md-shadow);
}
.md-feature-icon {
	width: 48px;
	height: 48px;
	background: var(--md-accent-light);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 16px;
}
.md-feature-icon img {
	width: 26px;
	height: 26px;
	filter: hue-rotate(-15deg) saturate(0.4) brightness(0.55);
}
.md-feature-item h4 {
	font-size: 15px;
	font-weight: 800;
	color: var(--md-navy);
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.md-feature-item p {
	font-size: 13px;
	color: var(--md-text-light);
	line-height: 1.7;
	margin: 0;
}
.md-feature-item .wp-block-heading {
	font-size: 15px;
	font-weight: 800;
	color: var(--md-navy);
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.md-feature-item .wp-block-heading + p {
	font-size: 13px;
	color: var(--md-text-light);
	line-height: 1.7;
	margin: 0;
}

/* === CTA / CONTACT === */
.md-cta {
	background: rgba(246,248,250,0.72);
	background-image: url(/wp-content/themes/moja-diagnoza/assets/images/cta-interior.jpeg);
	background-size: cover;
	background-position: center top;
	background-blend-mode: lighten;
	padding: var(--md-section-pad) 20px;
}
.md-cta-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	max-width: var(--md-container);
	margin: 0 auto 32px;
}
.md-cta-video {
	max-width: 680px;
	margin: 0 auto;
}
.md-cta-btn {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #ffffff;
	border: 1px solid var(--md-border);
	border-radius: var(--md-radius);
	padding: 22px 20px;
	color: var(--md-navy);
	text-decoration: none;
	transition: all 0.2s;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.md-cta-btn:hover {
	border-color: var(--md-navy);
	box-shadow: var(--md-shadow-hover);
}
.md-cta-btn-icon {
	width: 44px;
	height: 44px;
	background: var(--md-accent-light);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.md-cta-btn-icon img {
	width: 24px;
	height: 24px;
	filter: hue-rotate(-15deg) saturate(0.4) brightness(0.55);
}
.md-cta-btn-text h3 {
	font-size: 14px;
	font-weight: 800;
	color: var(--md-navy);
	margin: 0 0 2px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.md-cta-btn-text p {
	color: var(--md-text-light);
	font-size: 13px;
	margin: 0;
}

/* === VIDEO === */
.md-video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--md-radius);
	box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.md-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* === LOCATION === */
.md-location {
	padding: var(--md-section-pad) 20px;
	background: #ffffff;
}
.md-location-duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	max-width: var(--md-container);
	margin: 0 auto;
}
.md-location-map iframe {
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
	border-radius: var(--md-radius);
	display: block;
}
.md-location-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--md-radius);
	display: block;
}

/* === REVIEWS === */
.md-reviews {
	padding: var(--md-section-pad) 20px;
	background: var(--md-bg-alt);
}
.md-reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	max-width: var(--md-container);
	margin: 0 auto;
}
.md-review-card {
	text-align: center;
	padding: 32px 22px;
	background: #ffffff;
	border: 1px solid var(--md-border);
	border-radius: var(--md-radius);
	transition: all 0.2s ease;
}
.md-review-card:hover {
	border-color: var(--md-accent);
	box-shadow: var(--md-shadow);
}
.md-review-logo {
	margin-bottom: 16px;
}
.md-review-logo img {
	max-width: 140px;
	height: auto;
}
.md-review-stars {
	color: #d4a84b;
	font-size: 22px;
	margin-bottom: 12px;
	letter-spacing: 3px;
}
.md-review-score {
	font-size: 15px;
	font-weight: 600;
	color: var(--md-navy);
	margin: 0 0 4px;
}
.md-review-count {
	font-size: 13px;
	color: var(--md-text-light);
	margin: 0;
}

/* === FOOTER === */
.md-footer {
	background: var(--md-navy);
	color: #ffffff;
	padding: 64px 20px 28px;
}
.md-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 48px;
	max-width: var(--md-container);
	margin: 0 auto;
}
.md-footer h3 {
	font-size: 12px;
	font-weight: 700;
	color: rgba(255,255,255,0.4);
	margin: 0 0 18px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}
.md-footer p,
.md-footer a {
	color: rgba(255,255,255,0.8);
	font-size: 14px;
	line-height: 1.8;
	text-decoration: none;
}
.md-footer strong {
	color: #ffffff;
}
.md-footer a:hover {
	color: var(--md-accent);
}
.md-footer-logo {
	margin-bottom: 14px;
}
.md-footer-logo img {
	max-width: 160px;
}
.md-footer-social {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}
.md-footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.7);
	transition: all 0.2s;
}
.md-footer-social a:hover {
	background: var(--md-accent);
	color: #ffffff;
}
.md-footer-social a svg {
	stroke: currentColor;
	fill: none;
}
.md-footer-social a:first-child svg {
	fill: currentColor;
	stroke: none;
}
.md-footer-contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.md-footer-contact-item svg {
	flex-shrink: 0;
	stroke: var(--md-accent);
}
.md-footer-cta {
	display: inline-block;
	background: var(--md-orange);
	color: #ffffff !important;
	padding: 11px 26px;
	border-radius: var(--md-radius);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	transition: all 0.2s;
}
.md-footer-cta:hover {
	background: var(--md-orange-hover);
	color: #ffffff !important;
}
.md-footer-hours table {
	width: 100%;
	border-collapse: collapse;
}
.md-footer-hours td {
	padding: 4px 0;
	color: rgba(255,255,255,0.8);
	font-size: 14px;
}
.md-footer-hours td:last-child {
	text-align: right;
	color: rgba(255,255,255,0.5);
}
.md-footer-bottom {
	text-align: center;
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid rgba(255,255,255,0.08);
}
.md-footer-bottom p {
	font-size: 12px;
	color: rgba(255,255,255,0.3);
}

/* === HAMBURGER BUTTON === */
.md-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
}
.md-hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--md-navy);
	border-radius: 2px;
}

/* === MOBILE OVERLAY === */
.md-mobile-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
.md-mobile-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* === MOBILE DRAWER === */
.md-mobile-drawer {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 320px;
	max-width: 85vw;
	background: #ffffff;
	z-index: 1001;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	flex-direction: column;
	box-shadow: -8px 0 30px rgba(0,0,0,0.15);
}
.md-mobile-drawer.is-open {
	transform: translateX(0);
}
.md-mobile-drawer-header {
	display: flex;
	align-items: center;
	padding: 14px 20px;
	background: var(--md-navy);
}
.md-mobile-drawer-title {
	font-size: 12px;
	font-weight: 700;
	color: rgba(255,255,255,0.8);
	text-transform: uppercase;
	letter-spacing: 1.5px;
}
.md-mobile-drawer-body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 0;
}
.md-mobile-drawer-footer {
	padding: 16px 20px;
	padding-bottom: calc(16px + 66px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--md-border);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.md-mobile-drawer-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	border: 1px solid var(--md-border);
	color: var(--md-navy);
}
.md-mobile-drawer-cta:hover {
	border-color: var(--md-navy);
}
.md-mobile-drawer-cta-primary {
	background: var(--md-orange);
	border-color: var(--md-orange);
	color: #ffffff;
}
.md-mobile-drawer-cta-primary:hover {
	background: var(--md-orange-hover);
	border-color: var(--md-orange-hover);
	color: #ffffff;
}

/* --- Mobile menu items --- */
.md-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.md-mobile-item-row {
	display: flex;
	align-items: center;
}
.md-mobile-link {
	flex: 1;
	display: block;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 600;
	color: var(--md-navy);
	text-decoration: none;
	transition: background 0.15s;
}
.md-mobile-link:hover {
	background: var(--md-bg-alt);
}
.md-mobile-expand {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: none;
	border: none;
	border-left: 1px solid var(--md-border);
	cursor: pointer;
	color: var(--md-text-light);
	transition: all 0.2s;
	flex-shrink: 0;
}
.md-mobile-expand:hover {
	background: var(--md-bg-alt);
	color: var(--md-navy);
}
.md-mobile-expand svg {
	transition: transform 0.3s ease;
}
.md-mobile-expand.is-open svg {
	transform: rotate(180deg);
}

/* --- Mobile submenu (level 1) --- */
.md-mobile-submenu {
	display: none;
	background: var(--md-bg-alt);
	border-top: 1px solid var(--md-border);
	border-bottom: 1px solid var(--md-border);
	padding: 8px 0;
}
.md-mobile-submenu.is-open {
	display: block;
}
.md-mobile-sub-heading {
	display: block;
	padding: 10px 20px 10px 28px;
	font-size: 13px;
	font-weight: 700;
	color: var(--md-navy);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-left: 3px solid var(--md-orange);
	transition: background 0.15s;
}
.md-mobile-sub-heading:hover {
	background: rgba(255,255,255,0.6);
}
.md-mobile-sub-group .md-mobile-item-row {
	border-left: 3px solid var(--md-orange);
}
.md-mobile-sub-group .md-mobile-sub-heading {
	flex: 1;
	border-left: none;
}
.md-mobile-solo {
	margin: 2px 0;
}

/* --- Mobile sub-list (level 2) --- */
.md-mobile-sub-list {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 4px;
	background: rgba(255,255,255,0.5);
}
.md-mobile-sub-list.is-open {
	display: block;
}
.md-mobile-sub-list li a {
	display: block;
	padding: 7px 20px 7px 44px;
	font-size: 13px;
	color: var(--md-text);
	text-decoration: none;
	transition: all 0.15s;
	line-height: 1.4;
}
.md-mobile-sub-list li a:hover {
	color: var(--md-navy);
	background: rgba(255,255,255,0.8);
	padding-left: 48px;
}

/* === MOBILE BOTTOM BAR === */
.md-mobile-bottom-bar {
	display: none;
}

/* === RESPONSIVE === */
/* === RESPONSIVE: Tablet (<=1200px) === */
@media (max-width: 1200px) {
	.md-services-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 12px;
	}
	.md-nav-link {
		padding: 24px 10px;
		font-size: 13px;
	}
	.md-main-header {
		padding: 0 20px;
	}
	.md-header-btn {
		padding: 10px 14px;
		font-size: 12px;
	}
}

/* === RESPONSIVE: Tablet/mobile (<=980px) === */
@media (max-width: 980px) {
	:root {
		--md-section-pad: 56px;
	}
	header.wp-block-template-part {
		top: 0;
	}
	.admin-bar header.wp-block-template-part {
		top: 32px;
	}
	.md-top-bar {
		display: none !important;
	}
	.md-main-header {
		padding: 0 16px;
		min-height: 60px;
	}
	.md-header-buttons {
		display: none;
	}
	.md-mega-nav {
		display: none;
	}
	.md-hamburger {
		display: flex;
	}
	.md-mobile-drawer {
		display: flex;
	}
	.md-hero {
		min-height: 50vh;
		padding: 40px 24px 36px;
		background: linear-gradient(180deg, rgba(246,248,250,0.96) 0%, rgba(246,248,250,0.88) 50%, rgba(246,248,250,0.5) 100%),
		            url(/wp-content/themes/moja-diagnoza/assets/images/hero-bg.jpeg);
		background-size: cover;
		background-position: center center;
		align-items: center;
	}
	.md-hero-content {
		text-align: center;
	}
	.md-hero-heading {
		font-size: 32px;
	}
	.md-hero-label {
		font-size: 11px;
	}
	.md-hero-subtitle {
		font-size: 14px;
		max-width: 340px;
		margin-left: auto;
		margin-right: auto;
	}
	.md-hero-ctas {
		flex-direction: column;
		gap: 10px;
		max-width: 260px;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
	.md-hero-ctas.wp-block-buttons {
		flex-direction: column;
		flex-wrap: wrap;
		gap: 10px;
		max-width: 260px;
		width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
	.md-hero-btn-primary .wp-block-button__link,
	.md-hero-btn-secondary .wp-block-button__link,
	.md-hero-btn-primary .wp-element-button,
	.md-hero-btn-secondary .wp-element-button {
		text-align: center;
		padding: 12px 20px !important;
		font-size: 14px !important;
		width: 100%;
		box-sizing: border-box;
	}
	.md-hero-badges {
		flex-wrap: wrap;
		gap: 12px;
		font-size: 12px;
		justify-content: center;
	}
	.md-badge {
		background: rgba(255,255,255,0.7);
		padding: 4px 10px;
		border-radius: 20px;
		font-size: 12px;
	}
	.md-services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.md-service-card {
		padding: 22px 14px;
	}
	.md-service-icon {
		width: 56px;
		height: 56px;
	}
	.md-service-icon img {
		width: 32px;
		height: 32px;
	}
	.md-service-card .service-abbr {
		font-size: 18px;
	}
	.md-features-grid,
	.md-features-grid.wp-block-group {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 14px;
	}
	.md-cta-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.md-cta-row {
		grid-template-columns: 1fr;
		gap: 12px;
		max-width: 480px;
		margin: 0 auto 24px;
	}
	.md-cta-video {
		max-width: 100%;
	}
	.md-cta-btn {
		padding: 18px 16px;
	}
	.md-location-duo {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.md-location-map iframe {
		min-height: 280px;
	}
	.md-location-photo {
		height: 250px;
	}
	.md-reviews-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}
	.md-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}
	.md-mobile-bottom-bar {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: #ffffff;
		padding: 6px 12px;
		padding-bottom: calc(6px + env(safe-area-inset-bottom));
		justify-content: space-around;
		align-items: stretch;
		gap: 6px;
		z-index: 1000;
		box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
	}
	.md-bottom-bar-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		color: var(--md-text-light);
		text-decoration: none;
		font-size: 10px;
		font-weight: 600;
		padding: 8px 6px;
		border-radius: 8px;
		transition: all 0.2s;
		flex: 1;
	}
	.md-bottom-bar-item:hover,
	.md-bottom-bar-item:active {
		color: var(--md-navy);
		background: var(--md-bg-alt);
	}
	.md-bottom-bar-item svg {
		stroke: currentColor;
		width: 20px;
		height: 20px;
	}
	.md-bottom-bar-primary {
		background: var(--md-orange);
		color: #ffffff;
		border-radius: 10px;
	}
	.md-bottom-bar-primary svg {
		stroke: #ffffff;
	}
	.md-bottom-bar-primary:hover,
	.md-bottom-bar-primary:active {
		background: var(--md-orange-hover);
		color: #ffffff;
	}
	body {
		padding-bottom: 66px;
	}
}

/* === RESPONSIVE: Mobile (<=767px) === */
/* WP admin bar is 46px on mobile (<=782px) */
@media (max-width: 782px) {
	.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 767px) {
	:root {
		--md-section-pad: 48px;
	}
	.md-section-title {
		font-size: 24px;
	}
	.md-section-desc {
		font-size: 13px;
	}
	.md-section-label {
		font-size: 10px;
		letter-spacing: 3px;
	}
	.md-section-label::before,
	.md-section-label::after {
		width: 30px;
	}
	.md-section-header {
		margin-bottom: 32px;
	}
	.md-hero {
		min-height: auto;
		padding: 36px 20px 32px;
	}
	.md-hero-heading {
		font-size: 28px;
	}
	.md-services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.md-features-grid,
	.md-features-grid.wp-block-group {
		grid-template-columns: 1fr !important;
	}
	.md-feature-item,
	.md-feature-item.wp-block-group {
		padding: 22px 20px;
	}
	.md-reviews-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.md-review-card {
		padding: 24px 18px;
	}
	.md-footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.md-location-map iframe {
		min-height: 220px;
	}
	.md-location-photo {
		height: 200px;
	}
}

/* === RESPONSIVE: Small phone (<=480px) === */
@media (max-width: 480px) {
	:root {
		--md-section-pad: 40px;
	}
	.md-hero {
		padding: 28px 16px 28px;
	}
	.md-hero-heading {
		font-size: 24px;
	}
	.md-hero-subtitle {
		font-size: 13px;
	}
	.md-hero-ctas {
		max-width: 240px;
	}
	.md-hero-ctas.wp-block-buttons {
		max-width: 240px;
	}
	.md-hero-btn-primary .wp-block-button__link,
	.md-hero-btn-secondary .wp-block-button__link,
	.md-hero-btn-primary .wp-element-button,
	.md-hero-btn-secondary .wp-element-button {
		padding: 11px 16px !important;
		font-size: 13px !important;
	}
	.md-services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	.md-service-card {
		padding: 18px 10px;
		gap: 10px;
	}
	.md-service-icon {
		width: 48px;
		height: 48px;
		border-radius: 10px;
	}
	.md-service-icon img {
		width: 26px;
		height: 26px;
	}
	.md-service-card .service-abbr {
		font-size: 16px;
	}
	.md-service-card .service-name {
		font-size: 11px;
	}
	.md-section-title {
		font-size: 22px;
	}
	.md-cta-btn {
		padding: 16px 14px;
		gap: 12px;
	}
	.md-cta-btn-text h3 {
		font-size: 13px;
	}
	.md-location-map iframe {
		min-height: 180px;
	}
	.md-location-photo {
		height: 160px;
	}
}
