﻿/*
Theme Name: Avada Child Persevere
Theme URI: https://zami.pl
Description: Child theme Persevere — premium clinic design
Author: ZAMI
Author URI: https://zami.pl
Template: Avada
Version: 5.0.0
Text Domain: Avada
*/

:root {
	--p-accent: #be2252;
	--p-accent-dark: #971a41;
	--p-accent-soft: #fdeff4;
	--p-ink: #22302c;
	--p-ink-soft: #33463f;
	--p-muted: #5f6f6a;
	--p-cream: #fcf9f7;
	--p-blush: #f7edf1;
	--p-soft: #eaf3f0;
	--p-line: rgba(34, 48, 44, 0.1);
	--p-white: #fff;

	--container: 1240px;
	--gutter: clamp(20px, 4vw, 56px);
	--radius: 20px;
	--shadow-sm: 0 6px 20px rgba(34, 48, 44, 0.06);
	--shadow: 0 18px 44px rgba(34, 48, 44, 0.1);

	--head-h: 78px;
	--topbar-h: 40px;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
}

html,
body,
#wrapper,
#main {
	background: var(--p-cream) !important;
	color: var(--p-ink) !important;
	font-family: var(--font-body) !important;
}

body { overflow-x: hidden; }

h1, h2, h3, h4,
.fusion-title h1, .fusion-title h2, .fusion-title h3 {
	font-family: var(--font-display) !important;
	font-weight: 650 !important;
	letter-spacing: -0.02em;
	line-height: 1.14 !important;
}
h1, h2, h3, h4 { color: var(--p-ink); }

/* Fusion titles carry their own colour var, so don't fight the builder. */
.fusion-title h1, .fusion-title h2, .fusion-title h3, .fusion-title h4 {
	color: var(--awb-text-color, var(--p-ink)) !important;
}

p, .fusion-text, li {
	font-family: var(--font-body) !important;
	color: var(--p-muted);
	line-height: 1.7;
}

/* Default Avada chrome (Layout Builder provides header/footer/PTB). */
.fusion-secondary-header,
.sidebar, #sidebar, #sidebar-2, aside.sidebar { display: none !important; }

/* Keep classic Avada header/footer shells out of the way when TB is present. */
body:not(.fusion-builder-live-preview) .fusion-header-wrapper:empty,
body.fusion-tb-has-header .fusion-header-wrapper:not(:has(.fusion-tb-header)) { display: none !important; }

#content, .content-wrapper { width: 100% !important; max-width: 100% !important; float: none !important; }
#main { padding: 0 !important; }

/* Front page: containers bleed edge-to-edge, rows keep Avada's site width. */
.persevere-home .post-content,
.persevere-home #content {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* ============ LAYOUT PRIMITIVES ============ */
.ph-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.ph-section { padding-block: clamp(56px, 6vw, 96px); }
.ph-section-white { background: var(--p-white); }
.ph-section-soft { background: var(--p-soft); }
.ph-section-blush { background: var(--p-blush); }
.ph-section-cream { background: var(--p-cream); }

.ph-head-block { max-width: 660px; margin-bottom: clamp(28px, 3vw, 44px); }
.ph-head-block.is-center { max-width: 760px; margin-inline: auto; text-align: center; }
.ph-head-block h2 {
	font-size: clamp(28px, 3vw, 40px) !important;
	margin: 0 0 12px !important;
}
.ph-head-block p { margin: 0; font-size: 17px; }

.ph-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--p-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.ph-kicker::before {
	content: '';
	width: 22px;
	height: 2px;
	background: var(--p-accent);
	border-radius: 2px;
}
.is-center .ph-kicker { justify-content: center; }

/* Buttons */
.ph-btn, .psy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.ph-btn svg, .psy-btn svg { width: 17px; height: 17px; fill: currentColor; }
.ph-btn:hover, .psy-btn:hover { transform: translateY(-2px); }
.ph-btn-primary, .psy-btn-primary {
	background: var(--p-accent);
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(190, 34, 82, .26);
}
.ph-btn-primary:hover, .psy-btn-primary:hover { background: var(--p-accent-dark); }
.ph-btn-ghost, .psy-btn-ghost {
	background: transparent;
	color: var(--p-ink) !important;
	border-color: var(--p-line);
}
.ph-btn-ghost:hover, .psy-btn-ghost:hover { border-color: var(--p-accent); color: var(--p-accent) !important; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ TOPBAR (Layout Builder container .ph-topbar) ============ */
.ph-topbar.fusion-fullwidth,
.fusion-tb-header .ph-topbar {
	background: var(--p-ink) !important;
}
.ph-topbar-inner,
.ph-tb-fb {
	display: flex;
	align-items: center;
	gap: 8px 26px;
	flex-wrap: wrap;
	justify-content: flex-end;
	min-height: var(--topbar-h);
	color: rgba(255, 255, 255, .82);
	font-size: 13px;
}
.ph-topbar .fusion-text,
.ph-topbar .fusion-text p { color: rgba(255, 255, 255, .82) !important; margin: 0 !important; }
.ph-tb-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: rgba(255, 255, 255, .82) !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: color .18s ease;
}
.ph-tb-item svg { width: 14px; height: 14px; fill: var(--p-accent); flex: none; }
a.ph-tb-item:hover { color: #fff !important; }
.ph-tb-item:first-child { margin-right: auto; }

/* ============ HEADER (Layout Builder) ============ */
.fusion-tb-header {
	z-index: 1000;
}
.ph-header.fusion-fullwidth,
.fusion-tb-header .ph-header {
	background: rgba(255, 255, 255, .96) !important;
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--p-line);
}
.ph-header .fusion-builder-row { align-items: center !important; }
.ph-header .fusion-imageframe img,
.ph-brand-img img {
	height: 52px !important;
	width: auto !important;
	max-width: 170px !important;
}
.ph-brand-claim {
	display: block;
	font-family: var(--font-body);
	font-size: clamp(9px, 2.5vw, 11px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--p-muted);
}
.ph-brand-claim span { display: block; white-space: nowrap; }
.ph-brand-claim-wrap .fusion-text { margin: 0 !important; }
.ph-head-phone-wrap .fusion-text { margin: 0 !important; }
.ph-head-phone {
	width: 42px; height: 42px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--p-line);
	color: var(--p-accent) !important;
	text-decoration: none !important;
}
.ph-head-actions-col .fusion-column-wrapper {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 10px;
}
.ph-head-actions-col .fusion-column-wrapper > div,
.ph-head-actions-col .fusion-column-wrapper > .fusion-no-small-visibility,
.ph-head-actions-col .fusion-button-wrapper {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	flex: 0 0 auto !important;
}
.ph-head-actions-col .fusion-button-wrapper { display: flex; justify-content: flex-end; }

.ph-nav { margin-left: auto; }

ul.ph-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.ph-menu > li { position: relative; }
ul.ph-menu > li > a {
	display: block;
	padding: 9px 13px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	color: var(--p-ink) !important;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background .18s ease, color .18s ease;
}
ul.ph-menu > li > a:hover { background: var(--p-accent-soft); color: var(--p-accent) !important; }
ul.ph-menu > li.current-menu-item > a,
ul.ph-menu > li.current-page-ancestor > a {
	color: var(--p-accent) !important;
	background: var(--p-accent-soft);
}
ul.ph-menu > li.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	opacity: .55;
}

ul.ph-menu ul.sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	min-width: 246px;
	background: #fff;
	border: 1px solid var(--p-line);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 8px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
ul.ph-menu > li:hover > ul.sub-menu,
ul.ph-menu > li:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
ul.ph-menu ul.sub-menu::before {
	content: '';
	position: absolute;
	inset: -14px 0 auto 0;
	height: 14px;
}
ul.ph-menu ul.sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--p-ink-soft) !important;
	text-decoration: none !important;
}
ul.ph-menu ul.sub-menu a:hover { background: var(--p-accent-soft); color: var(--p-accent) !important; }

.ph-head-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.ph-head-fb {
	padding-inline: 16px;
	border-color: rgba(190, 34, 82, 0.18);
	color: var(--p-accent) !important;
}
.ph-head-fb:hover {
	background: var(--p-accent-soft);
	border-color: rgba(190, 34, 82, 0.28);
	color: var(--p-accent-dark) !important;
}
.ph-head-phone {
	width: 42px; height: 42px;
	border-radius: 50%;
	display: none;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--p-line);
	color: var(--p-accent) !important;
}
.ph-head-phone svg { width: 18px; height: 18px; fill: currentColor; }
.ph-header .ph-fb-menu {
	--awb-font-size: 17px !important;
	--awb-gap: 8px !important;
	--awb-letter-spacing: 0.02em !important;
	--awb-min-height: 46px !important;
	--awb-items-padding-top: 10px !important;
	--awb-items-padding-bottom: 10px !important;
	--awb-items-padding-left: 12px !important;
	--awb-items-padding-right: 12px !important;
	--awb-submenu-font-size: 15.5px !important;
}
.ph-header .ph-fb-menu .awb-menu__main-ul {
	flex-wrap: nowrap !important;
	white-space: nowrap;
}
.ph-header .ph-fb-menu .awb-menu__main-a {
	font-weight: 600 !important;
}
.ph-header .fusion-button.ph-head-cta {
	font-size: 15.5px !important;
	line-height: 1.2 !important;
	padding: 14px 26px !important;
	border-radius: 999px !important;
	letter-spacing: 0.02em !important;
	min-height: 48px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.ph-header .fusion-button.ph-head-fb {
	font-size: 15.5px !important;
	line-height: 1.2 !important;
	padding: 14px 18px !important;
	border-radius: 999px !important;
	min-height: 48px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.ph-head-cta { padding: 14px 26px; }

.ph-burger {
	display: none;
	width: 44px; height: 44px;
	border: 1.5px solid var(--p-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	padding: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.ph-burger span {
	display: block;
	width: 19px; height: 2px;
	background: var(--p-ink);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
.ph-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ph-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ph-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ph-drawer {
	position: fixed;
	top: calc(var(--head-h) + var(--topbar-h));
	left: 0; right: 0;
	bottom: 0;
	z-index: 999;
	background: #fff;
	overflow-y: auto;
	padding: 20px var(--gutter) 40px;
	border-top: 1px solid var(--p-line);
}
ul.ph-drawer-menu { list-style: none; margin: 0 0 20px; padding: 0; }
ul.ph-drawer-menu li { border-bottom: 1px solid var(--p-line); }
ul.ph-drawer-menu a {
	display: block;
	padding: 14px 2px;
	font-size: 16px;
	font-weight: 600;
	color: var(--p-ink) !important;
	text-decoration: none !important;
}
ul.ph-drawer-menu .sub-menu { list-style: none; margin: 0 0 8px; padding: 0 0 0 14px; }
ul.ph-drawer-menu .sub-menu li { border: 0; }
ul.ph-drawer-menu .sub-menu a { padding: 9px 2px; font-size: 14.5px; font-weight: 500; color: var(--p-muted) !important; }
.ph-drawer-contact { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ HERO ============ */
.ph-hero {
	position: relative;
	background:
		radial-gradient(900px 420px at 12% 18%, rgba(190, 34, 82, .07), transparent 58%),
		radial-gradient(760px 360px at 88% 6%, rgba(70, 130, 120, .09), transparent 52%),
		var(--p-cream);
	overflow: hidden;
}
.ph-hero-grid {
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
	padding-block: clamp(36px, 4vw, 60px);
}

.ph-hero-copy h1 {
	font-size: clamp(30px, 3.2vw, 46px) !important;
	margin: 0 0 16px !important;
	max-width: 16ch;
}
.ph-hero-lead {
	font-size: clamp(16px, 1.15vw, 18px);
	max-width: 48ch;
	margin: 0 0 26px;
}
.ph-hero-points {
	list-style: none;
	padding: 0;
	margin: 26px 0 0;
	display: grid;
	gap: 10px;
}
.ph-hero-points li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--p-ink-soft);
}
.ph-hero-points svg {
	width: 20px; height: 20px;
	flex: none;
	fill: var(--p-accent);
}

/* Rotator */
.ph-hero-media { position: relative; }
.ph-stage {
	position: relative;
	width: 100%;
	border-radius: 24px;
	overflow: hidden;
	aspect-ratio: 5 / 4;
	max-height: min(52vh, 460px);
	box-shadow: var(--shadow);
	background: #e7e2df;
	z-index: 1;
}
.ph-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity .9s ease;
}
.ph-slide.is-active { opacity: 1; z-index: 1; }
.ph-slide img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.05);
	transition: transform 7s ease;
}
.ph-slide.is-active img { transform: scale(1); }
/* Panoramic reception: keep desk + PERSEVERE logo in frame (not hallway center). */
.ph-slide-recepcja img { object-position: 18% 50%; }
.ph-slide figcaption {
	position: absolute;
	left: 14px; bottom: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, .93);
	backdrop-filter: blur(8px);
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--p-ink);
}
.ph-badge {
	background: var(--p-accent);
	color: #fff;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 10px;
	letter-spacing: .07em;
	text-transform: uppercase;
}
.ph-hero-controls {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
}
.ph-dots { display: flex; gap: 7px; }
.ph-dot {
	width: 8px; height: 8px;
	border-radius: 50%;
	border: 0; padding: 0;
	cursor: pointer;
	background: rgba(34, 48, 44, .2);
	transition: transform .2s ease, background .2s ease;
}
.ph-dot.is-active { background: var(--p-accent); transform: scale(1.35); }
.ph-rotate-hint { margin: 0; font-size: 12px; color: var(--p-muted); }

/* Na wąskim ekranie podpowiedź łamie się w dwie linie i wchodzi na kropki. */
@media (max-width: 640px) {
	.ph-hero-controls {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
}

.ph-orb { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.ph-orb-a { width: 150px; height: 150px; background: #d9ece7; left: -46px; bottom: 30px; }
.ph-orb-b { width: 96px; height: 96px; background: #f6d3df; right: -26px; top: 18px; }

/* ============ QUICK LINKS STRIP ============ */
.ph-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--p-line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transform: translateY(clamp(-40px, -3vw, -20px));
	position: relative;
	z-index: 3;
}
.ph-strip-item {
	background: #fff;
	padding: 26px 24px;
	text-decoration: none !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: background .2s ease, transform .2s ease;
}
.ph-strip-item:hover { background: var(--p-accent-soft); }
.ph-strip-icon {
	width: 42px; height: 42px;
	border-radius: 12px;
	background: var(--p-accent-soft);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 4px;
}
.ph-strip-icon svg { width: 21px; height: 21px; fill: var(--p-accent); }
.ph-strip-item strong {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 650;
	color: var(--p-ink);
}
.ph-strip-item span { font-size: 14px; color: var(--p-muted); line-height: 1.55; }

/* ============ CARDS ============ */
.ph-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ph-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ph-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.ph-card {
	background: #fff;
	border: 1px solid var(--p-line);
	border-radius: var(--radius);
	padding: 28px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ph-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ph-card-icon {
	width: 48px; height: 48px;
	border-radius: 14px;
	background: var(--p-accent-soft);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 4px;
}
.ph-card-icon svg { width: 23px; height: 23px; fill: var(--p-accent); }
.ph-card h3 { margin: 0 !important; font-size: 21px !important; }
.ph-card p { margin: 0; font-size: 15px; }
.ph-card .ph-link { margin-top: auto; padding-top: 8px; }

.ph-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--p-accent) !important;
	font-weight: 700;
	font-size: 14.5px;
	text-decoration: none !important;
}
.ph-link::after { content: '→'; transition: transform .18s ease; }
.ph-link:hover::after { transform: translateX(4px); }

/* ============ STATS ============ */
.ph-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}
.ph-stat strong {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(30px, 3.2vw, 42px);
	color: var(--p-accent);
	line-height: 1;
	margin-bottom: 8px;
}
.ph-stat span { font-size: 14.5px; color: var(--p-muted); }

/* ============ CLINIC MOSAIC ============ */
.ph-split {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}
.ph-split-media img {
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}
/* Panoramic clinic photos keep their native wide ratio */
.ph-pano { display: grid; gap: 16px; }
.ph-pano-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ph-pano figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ph-pano img {
	width: 100%;
	display: block;
	object-fit: cover;
	aspect-ratio: 16 / 6;
	transition: transform .5s ease;
}
.ph-pano-wide img { aspect-ratio: 32 / 9; }
.ph-pano figure:hover img { transform: scale(1.04); }
.ph-pano figcaption {
	position: absolute;
	left: 14px; bottom: 12px;
	background: rgba(255, 255, 255, .93);
	backdrop-filter: blur(6px);
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--p-ink);
}

/* ============ STEPS ============ */
.ph-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.ph-step {
	background: #fff;
	border: 1px solid var(--p-line);
	border-radius: var(--radius);
	padding: 28px 26px;
	position: relative;
}
.ph-step-num {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--p-accent);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 650;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 16px;
}
.ph-step h3 { margin: 0 0 8px !important; font-size: 20px !important; }
.ph-step p { margin: 0; font-size: 15px; }

/* ============ QUOTE BAND ============ */
.ph-quote {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	background: var(--p-ink);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.ph-quote-photo { background-size: cover; background-position: center; min-height: 320px; }
.ph-quote-body { padding: clamp(32px, 4vw, 56px); }
.ph-quote-body h2 {
	color: #fff !important;
	font-size: clamp(24px, 2.4vw, 34px) !important;
	margin: 0 0 16px !important;
}
.ph-quote-body p { color: rgba(255, 255, 255, .78); margin: 0 0 24px; }
.ph-quote-body .ph-kicker { color: #f2b3c7; }
.ph-quote-body .ph-kicker::before { background: #f2b3c7; }

/* ============ FAQ ============ */
.ph-faq-layout {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(28px, 4vw, 64px);
	align-items: start;
}
.ph-faq-layout .ph-head-block { margin-bottom: 0; position: sticky; top: calc(var(--head-h) + var(--topbar-h) + 24px); }
.ph-faq-aside { display: grid; gap: 12px; margin-top: 22px; justify-items: start; }
.ph-faq { display: grid; gap: 12px; }
.ph-faq details {
	background: #fff;
	border: 1px solid var(--p-line);
	border-radius: 14px;
	padding: 16px 20px;
}
.ph-faq summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 16px;
	color: var(--p-ink);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after {
	content: '+';
	color: var(--p-accent);
	font-size: 22px;
	line-height: 1;
	flex: none;
}
.ph-faq details[open] summary::after { content: '–'; }
.ph-faq p { margin: 12px 0 0; font-size: 15px; }

/* ============ CTA BAND ============ */
.ph-cta-band {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	padding: clamp(28px, 3.5vw, 46px);
	border-radius: var(--radius);
	background: linear-gradient(120deg, var(--p-blush), #fff 55%, var(--p-soft));
	border: 1px solid rgba(190, 34, 82, .12);
}
.ph-cta-band h2 { margin: 0 0 8px !important; font-size: clamp(24px, 2.6vw, 34px) !important; }
.ph-cta-band p { margin: 0; }

/* ============ FOOTER ============ */
.pf-footer {
	background: linear-gradient(180deg, #1e2a27 0%, #16201e 100%);
	color: rgba(255, 255, 255, .8);
}
.pf-footer-top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: clamp(24px, 3vw, 44px);
	padding-block: clamp(44px, 5vw, 72px) clamp(28px, 3vw, 44px);
}
.pf-footer-logo {
	height: 42px;
	width: auto;
	margin-bottom: 16px;
}
.pf-footer-logo-img img,
.fusion-tb-footer .pf-footer-logo-img img {
	max-width: 110px !important;
	height: auto !important;
}
.pf-footer-brand p { color: rgba(255, 255, 255, .68); max-width: 36ch; margin: 0 0 18px; font-size: 14.5px; }
.pf-footer h4 {
	color: #fff !important;
	font-family: var(--font-display) !important;
	font-size: 18px !important;
	margin: 0 0 16px !important;
}
.pf-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pf-footer li { color: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.55; }
.pf-footer a { color: rgba(255, 255, 255, .88) !important; text-decoration: none !important; }
.pf-footer a:hover { color: #f2b3c7 !important; }
.pf-contact-row { display: flex; gap: 10px; align-items: flex-start; }
.pf-contact-row svg { width: 16px; height: 16px; fill: var(--p-accent); flex: none; margin-top: 3px; }
.pf-contact-row strong { display: block; color: #fff; font-size: 13px; margin-bottom: 2px; }
.pf-footer-links { gap: 9px !important; }
.pf-footer-cta p { font-size: 14.5px; margin: 0 0 16px; color: rgba(255, 255, 255, .68); }
.pf-footer-cta .ph-btn { margin: 0 8px 10px 0; }
.pf-btn-light {
	background: transparent !important;
	border-color: rgba(255, 255, 255, .3) !important;
	color: #fff !important;
}
.pf-btn-light:hover { border-color: #f2b3c7 !important; color: #f2b3c7 !important; }
.pf-footer-social { display: flex; gap: 10px; }
.pf-footer-social a {
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .2);
	display: flex; align-items: center; justify-content: center;
}
.pf-footer-social svg { width: 17px; height: 17px; fill: #fff; }
.pf-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-block: 18px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 13px;
	color: rgba(255, 255, 255, .5);
}
.pf-footer-credit a { color: #f2b3c7 !important; font-weight: 700; }

/* Sticky call-to-action bar on phones */
.ph-mobile-bar {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 997;
	gap: 10px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--p-line);
}
.ph-mobile-bar .ph-btn {
	flex: 1;
	padding: 10px 12px;
	text-align: center;
	border-radius: 999px;
	font-weight: 700;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	line-height: 1.15;
	min-height: 48px;
}
.ph-mobile-bar .ph-btn-primary { background: var(--p-accent); color: #fff !important; }
.ph-mobile-bar .ph-btn-ghost {
	background: #fff;
	color: var(--p-ink) !important;
	border: 1.5px solid var(--p-line);
}
.ph-mobile-call-label {
	font-size: 15px;
	font-weight: 700;
}
.ph-mobile-call-num {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--p-muted);
}
.ph-mobile-bar .ph-btn-primary {
	flex-direction: row;
	gap: 8px;
}
.ph-mobile-bar br { display: none !important; }
.ph-mobile-call {
	flex-direction: column !important;
	gap: 2px !important;
}

.fusion-top-frame { display: none !important; }

/* Avada's scroll-to-top, repainted in the brand palette. Its own dynamic CSS
   sets these variables on #toTop, so the container selector is needed to win. */
.to-top-container #toTop,
.to-top-floating #toTop {
	--totop_background: var(--p-accent);
	--totop_background_hover: var(--p-accent-dark);
	--totop_icon_color: #fff;
	--totop_icon_hover: #fff;
	box-shadow: 0 8px 22px rgba(190, 34, 82, .26);
}
#toTop.fusion-to-top-active { opacity: 1; }
#toTop:hover::before,
#toTop:focus::before { color: #fff; }

/* On phones that corner belongs to the sticky action bar. */
@media (max-width: 720px) {
	#toTop, .to-top-container { display: none !important; }
}

/* ============ INNER PAGES ============ */
.ph-page-hero {
	background:
		radial-gradient(700px 320px at 15% 30%, rgba(190, 34, 82, .08), transparent 60%),
		var(--p-blush);
	padding-block: clamp(34px, 4vw, 56px);
	border-bottom: 1px solid rgba(190, 34, 82, .08);
}
.ph-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--p-muted);
	margin-bottom: 14px;
}
.ph-crumbs a { color: var(--p-muted) !important; text-decoration: none !important; }
.ph-crumbs a:hover { color: var(--p-accent) !important; }
.ph-crumbs strong { color: var(--p-ink); font-weight: 600; }
.ph-page-hero h1 { font-size: clamp(28px, 3.2vw, 42px) !important; margin: 0 !important; max-width: 22ch; }
.ph-page-hero p { margin: 14px 0 0; font-size: 17px; max-width: 62ch; }

/* Sekcje podstron same trzymają szerokość, więc kontener treści jej nie ogranicza. */
.persevere-pro:not(.persevere-home) #content { width: 100% !important; max-width: 100% !important; }
.persevere-pro:not(.persevere-home) .post-content,
.persevere-pro:not(.persevere-home) .fusion-fullwidth {
	padding-inline: 0 !important;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
	ul.ph-menu > li > a { padding: 9px 10px; font-size: 14.5px; }
	.ph-brand img { height: 46px; }
}

@media (max-width: 1024px) {
	:root { --head-h: 70px; }
	.ph-nav { display: none; }
	.ph-burger { display: flex; }
	/* Słuchawka zbędna — na dole jest „Zadzwoń”. */
	.ph-head-phone,
	.ph-head-phone-wrap { display: none !important; }
	.ph-head-fb { display: none; }
	.ph-head-cta { display: none; }
	.ph-header-inner {
		display: flex;
		align-items: center;
		gap: 10px;
	}
	.ph-brand { flex: none; }
	.ph-brand-claim {
		display: block;
		min-width: 0;
		flex: 1 1 auto;
		font-family: var(--font-body);
		font-size: clamp(11px, 2.8vw, 12.5px);
		font-weight: 700;
		line-height: 1.35;
		letter-spacing: .05em;
		text-transform: uppercase;
		color: var(--p-ink-soft);
	}
	.ph-brand-claim span { display: block; white-space: nowrap; }
	.ph-head-actions {
		margin-left: auto;
		display: flex;
		align-items: center;
		gap: 8px;
		flex: none;
	}
	.ph-strip { grid-template-columns: repeat(2, 1fr); transform: translateY(-24px); }
	.ph-grid-3, .ph-grid-4, .ph-steps { grid-template-columns: repeat(2, 1fr); }
	.ph-hero-grid { gap: 28px; }
	.ph-hero-copy h1 { font-size: clamp(28px, 4vw, 36px) !important; }
	.ph-split, .ph-quote, .ph-faq-layout { grid-template-columns: 1fr; }
	.ph-faq-layout .ph-head-block { position: static; }
	.pf-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.ph-hero-grid { grid-template-columns: 1fr; }
	.ph-hero-media { order: -1; }
	.ph-stage { aspect-ratio: 16 / 9; max-height: 40vh; }
	.ph-hero-copy h1 { max-width: 22ch; }
	.ph-orb { display: none; }
}

@media (max-width: 720px) {
	:root { --topbar-h: 0px; }
	.ph-topbar { display: none; }
	.ph-mobile-bar { display: flex; }
	.pf-footer-bottom { padding-bottom: 84px; }
	.ph-drawer { bottom: 0; padding-bottom: 96px; }
	.ph-strip, .ph-grid-3, .ph-grid-2, .ph-grid-4, .ph-steps, .ph-stats { grid-template-columns: 1fr; }
	.ph-stats { gap: 26px; }
	.ph-strip { transform: none; margin-top: 0; }
	.ph-pano-row { grid-template-columns: 1fr; }
	.ph-pano img, .ph-pano-wide img { aspect-ratio: 16 / 7; }
	.pf-footer-top { grid-template-columns: 1fr; }
	.ph-hero-copy h1 { max-width: none; }
	.ph-stage { aspect-ratio: 4 / 3; max-height: none; }
}

/* Below 375px — claim nadal czytelny, trochę ciaśniej. */
@media (max-width: 374px) {
	.ph-brand-claim { letter-spacing: .04em; font-size: 10.5px !important; }
	.ph-head-brand-col .fusion-column-wrapper { gap: 12px; }
}

@media (min-width: 1600px) {
	:root { --container: 1360px; }
}

@media (prefers-reduced-motion: reduce) {
	.ph-slide, .ph-slide img, .ph-btn, .ph-card { transition: none !important; }
}

/* ============ FUSION BUILDER ELEMENT POLISH ============ */

/* One gutter rule for every section, so columns share a single grid line. */
.persevere-pro .fusion-fullwidth > .fusion-builder-row,
.fusion-tb-header .fusion-fullwidth > .fusion-builder-row,
.fusion-tb-footer .fusion-fullwidth > .fusion-builder-row {
	padding-left: clamp(20px, 3vw, 40px) !important;
	padding-right: clamp(20px, 3vw, 40px) !important;
	max-width: calc(var(--container) + 80px) !important;
}
.ph-kicker,
.ph-kicker-wrap .ph-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--p-accent) !important;
}
.ph-kicker::before {
	content: '';
	width: 22px;
	height: 2px;
	background: var(--p-accent);
}

/* The card is the column wrapper, so Avada's gutters stay on the grid. */
.ph-card-col .fusion-column-wrapper,
.ph-strip-col .fusion-column-wrapper {
	height: 100%;
	padding: 26px 24px !important;
	background: #fff !important;
	border: 1px solid var(--p-line) !important;
	border-radius: var(--radius) !important;
	box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	position: relative;
}
.ph-card-col:hover .fusion-column-wrapper,
.ph-strip-col:hover .fusion-column-wrapper {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
	border-color: transparent;
}
/* Cała karta klikalna — bez zmiany układu treści w środku. */
.ph-card-col .ph-card-link a {
	position: static;
}
.ph-card-col .ph-card-link a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
}
.ph-card-col .fusion-fontawesome,
.ph-card-col .fusion-title,
.ph-card-col .fusion-text {
	position: relative;
	z-index: 1;
}
.ph-sub-cards .fusion-builder-row {
	align-items: stretch !important;
	row-gap: 8px;
}
.ph-sub-cards .ph-card-col {
	margin-bottom: 8px !important;
}
.ph-card-col .fusion-title h3,
.ph-strip-col .fusion-title h4 {
	font-size: 20px !important;
	margin: 0 0 10px !important;
}
.ph-card-col .fusion-text p,
.ph-strip-col .fusion-text p { font-size: 15px; margin: 0 0 10px; }
.ph-strip-wrap { position: relative; z-index: 2; }
/* Kolumny domyślnie mierzą się treścią — kafelki w rzędzie muszą być równe. */
.ph-strip-wrap .fusion-builder-row,
.ph-cards-row .fusion-builder-row { align-items: stretch !important; }

/* Hero */
.ph-hero-h1 h1 {
	font-size: clamp(34px, 3.6vw, 52px) !important;
	line-height: 1.1 !important;
	margin: 0 0 18px !important;
	max-width: 18ch;
}
.ph-lead-wrap p { font-size: 17px; max-width: 52ch; }
.ph-fb-hero .fusion-builder-row { align-items: center !important; }

.ph-kicker-center {
	display: flex !important;
	justify-content: center;
}
.ph-pano-img img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
}

/* Keep paired CTAs on one line; Avada wraps each button in its own block. */
.persevere-pro .fusion-button-wrapper,
.fusion-tb-footer .fusion-button-wrapper {
	display: inline-block;
	vertical-align: top;
}

/* Buttons need an explicit border so the ghost variant reads as outlined. */
.fusion-button.ph-fb-btn {
	border-width: 1.5px !important;
	border-style: solid !important;
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
	margin: 0 8px 10px 0 !important;
}
.ph-hero-check { margin-top: 18px !important; }
.ph-hero-media-col .ph-hero-media { width: 100%; }
.ph-about-media .fusion-imageframe img,
.ph-split-media-img img {
	border-radius: 24px;
	box-shadow: var(--shadow);
}
/* Zdjęcie ma wypełnić ciemny pas w całości — inaczej zostaje ramka tła. */
.fusion-builder-row:has(> .ph-wwr-media) { align-items: stretch !important; }
.ph-wwr-media .fusion-column-wrapper,
.ph-wwr-media .fusion-image-element,
.ph-wwr-media .fusion-imageframe { height: 100%; }
.ph-wwr-band .ph-wwr-media .fusion-imageframe img {
	border-radius: 0;
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center 30%;
	min-height: 320px;
	max-height: none !important;
}
.ph-wwr-page-hero > .fusion-builder-row {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.ph-wwr-band .ph-kicker {
	color: #f2b3c7 !important;
}
.ph-wwr-band .ph-kicker::before {
	background: #f2b3c7 !important;
}
.ph-wwr-band .ph-wwr-lead,
.ph-wwr-page-hero .ph-wwr-lead {
	color: rgba(255, 255, 255, .86) !important;
	font-size: 16.5px;
	line-height: 1.65;
	margin: 0 0 22px !important;
	max-width: 46ch;
}
/* Theme Builder trzyma PTB mimo pyre_page_title_bar=hide — hero ma własny tytuł. */
body.page-id-35 .fusion-tb-page-title-bar {
	display: none !important;
}
.ph-wwr-fact-col .fusion-column-wrapper {
	height: 100%;
	padding: 22px 20px !important;
	background: #fff !important;
	border-radius: 16px !important;
	border: 1px solid rgba(190, 34, 82, .08) !important;
}
.ph-wwr-fact-col .fusion-title h4 {
	font-size: 18px !important;
	margin: 0 0 6px !important;
}
.ph-wwr-fact-col .fusion-text p {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--p-muted);
	margin: 0;
}
.ph-wwr-offer-intro {
	max-width: 52ch;
	color: var(--p-ink-soft);
	margin: 0 0 8px !important;
}
.ph-wwr-offer-col .fusion-column-wrapper {
	height: 100%;
}
.ph-wwr-place-img img {
	width: 100% !important;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 18px;
	display: block;
	box-shadow: var(--shadow-sm);
}
.ph-wwr-place-cap {
	margin: 10px 0 0 !important;
	font-size: 13px;
	color: var(--p-muted);
	text-align: center;
}
.ph-wwr-faq h3 {
	font-family: var(--font-display, inherit);
	font-size: clamp(22px, 2.2vw, 28px);
	margin: 0 0 20px;
	color: var(--p-ink);
}
.ph-wwr-faq details {
	background: #fff;
	border: 1px solid var(--p-line);
	border-radius: 14px;
	padding: 14px 18px;
	margin: 0 0 10px;
}
.ph-wwr-faq summary {
	cursor: pointer;
	font-weight: 650;
	color: var(--p-ink);
	list-style: none;
}
.ph-wwr-faq summary::-webkit-details-marker { display: none; }
.ph-wwr-faq summary::after {
	content: "+";
	float: right;
	color: var(--p-accent);
	font-weight: 700;
}
.ph-wwr-faq details[open] summary::after { content: "–"; }
.ph-wwr-faq details p {
	margin: 10px 0 2px;
	color: var(--p-ink-soft);
	font-size: 15px;
	line-height: 1.6;
}
.ph-wwr-form-lead {
	max-width: 56ch;
	color: var(--p-ink-soft);
	margin: 0 0 24px !important;
}
.ph-wwr-form-col .fusion-column-wrapper {
	max-width: 720px;
	margin: 0 auto;
}
@media (max-width: 900px) {
	.ph-wwr-page-hero .ph-wwr-media,
	.ph-wwr-page-hero .ph-wwr-copy {
		--awb-width-small: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}
	.ph-wwr-page-hero .ph-wwr-copy .fusion-column-wrapper {
		padding-left: 20px !important;
	}
	.ph-wwr-band .ph-wwr-media .fusion-imageframe img {
		min-height: 220px;
		max-height: 280px;
	}
}
/* In the builder the whole step column is the card, not the inner .ph-step. */
.fusion-builder-row:has(> .ph-step-col) { align-items: stretch !important; }
.ph-step-col .fusion-column-wrapper {
	height: 100%;
	padding: 28px 26px !important;
	background: #fff !important;
	border: 1px solid var(--p-line) !important;
	border-radius: var(--radius) !important;
}
.ph-step-col .ph-step {
	background: none;
	border: 0;
	padding: 0;
}
.ph-step-col .fusion-title h3 {
	font-size: 20px !important;
	margin: 0 0 8px !important;
}
.ph-step-col .fusion-text p { font-size: 15px; margin: 0; }
.ph-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--p-accent);
	color: #fff;
	font-weight: 700;
	margin-bottom: 12px;
}
.ph-stat strong {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(28px, 3vw, 40px);
	color: var(--p-ink);
	line-height: 1.1;
}
.ph-stat span { color: var(--p-muted); font-size: 15px; }

/* Footer Layout Builder */
.fusion-tb-footer .pf-footer,
.ph-tb-footer {
	color: rgba(255, 255, 255, .72);
}
.fusion-tb-footer .fusion-title h4,
.fusion-tb-footer .pf-footer-h h4 {
	color: #fff !important;
}
.fusion-tb-footer .fusion-text,
.fusion-tb-footer .fusion-text p,
.fusion-tb-footer li {
	color: rgba(255, 255, 255, .72) !important;
}
.fusion-tb-footer a { color: rgba(255, 255, 255, .9) !important; }
.fusion-tb-footer a:hover { color: #f2b3c7 !important; }
.pf-footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pf-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.pf-footer-social { display: flex; gap: 10px; margin-top: 8px; }
.pf-footer-social a {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.2);
	display: inline-flex; align-items: center; justify-content: center;
}
.pf-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 13px;
	color: rgba(255,255,255,.55);
}
.ph-tb-ptb.fusion-fullwidth { background: var(--p-blush) !important; }
.ph-page-title h1 { font-size: clamp(28px, 4vw, 42px) !important; }

/* WordPress applies `border-style: solid` to anything with "border-color" in its
   style attribute, which catches Avada's --awb-active-border-color custom property
   and paints a 3px frame around the whole nav. */
.awb-menu[style*="border-color"],
.awb-submenu[style*="border-color"],
.fusion-person[style*="border-color"] { border-style: none; }

/* Dropdown: na desktopie overflow:visible — inaczej podmenu 3. poziomu
   (Diagnostyka → Spektrum…) nie wylatuje w prawo mimo strzałek. */
.ph-header .awb-menu__sub-ul { overflow: hidden; }
@media (min-width: 1025px) {
	.ph-header .ph-fb-menu .awb-menu__sub-ul {
		overflow: visible !important;
	}
	.ph-header .ph-fb-menu .awb-menu__sub-ul_main {
		border-radius: 14px;
	}
	.ph-header .ph-fb-menu .awb-menu__sub-ul_grand {
		border-radius: 12px;
		box-shadow: var(--shadow);
		z-index: 100;
	}
}
.ph-header .awb-menu__sub-li:last-child > .awb-menu__sub-a { border-bottom: 0; }

@media (max-width: 1024px) {
	.ph-header .ph-fb-menu { display: none !important; }

	/* Rozwinięte menu jest w kolumnie wyśrodkowanej w pionie, więc bez tego
	   wysuwa się w górę i zasłania logo z hasłem. */
	.ph-header .ph-head-nav-col,
	.ph-header .ph-fb-menu-mobile { position: static !important; }
	.ph-header .ph-fb-menu-mobile .awb-menu__main-ul {
		position: absolute !important;
		top: 100% !important;
		left: 0 !important;
		right: auto !important;
		width: 100% !important;
		max-width: none !important;
		z-index: 90;
	}
}
@media (min-width: 1025px) {
	.ph-header .ph-fb-menu-mobile { display: none !important; }
}

/* Tablets: four- and three-up card grids get too narrow, so halve them. */
@media (min-width: 801px) and (max-width: 1024px) {
	.ph-strip-col,
	.ph-card-col { --awb-width-medium: 50% !important; }
	.ph-step-col { --awb-width-medium: 100% !important; }
}

/* Avada forces columns to 100% below the small breakpoint; the header bar has
   to stay a single row: logo + claim | hamburger (bez kolumny ze słuchawką). */
@media (max-width: 800px) {
	.ph-head-actions-col { display: none !important; }
	.ph-head-brand-col { --awb-width-small: 78% !important; width: 78% !important; }
	.ph-head-nav-col { --awb-width-small: 22% !important; width: 22% !important; }
	.ph-header .fusion-layout-column { margin-bottom: 0 !important; }
	.ph-header .fusion-builder-row {
		flex-wrap: nowrap !important;
		align-items: center !important;
	}
	.ph-head-brand-col .fusion-column-wrapper {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		justify-content: flex-start !important;
		gap: 16px !important;
		column-gap: 16px !important;
	}
	.ph-head-brand-col .fusion-imageframe,
	.ph-head-brand-col .fusion-image-element,
	.ph-head-brand-col .ph-brand-img {
		flex: 0 0 auto;
		margin: 0 !important;
	}
	.ph-brand-claim-wrap {
		flex: 1 1 auto;
		min-width: 0;
		margin: 0 !important;
	}
	.ph-brand-claim-wrap .fusion-text { margin: 0 !important; }
	.ph-head-nav-col .fusion-column-wrapper {
		align-items: center !important;
		justify-content: flex-end !important;
	}
	.ph-brand-img img { max-width: 112px !important; height: 40px !important; }
	.ph-brand-claim {
		font-size: 11.5px !important;
		letter-spacing: .05em;
		line-height: 1.35 !important;
		color: var(--p-ink-soft) !important;
	}
}

@media (max-width: 1024px) and (min-width: 801px) {
	.ph-head-phone,
	.ph-head-phone-wrap { display: none !important; }
	.ph-head-brand-col .fusion-column-wrapper {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 16px !important;
		column-gap: 16px !important;
	}
	.ph-brand-claim-wrap {
		margin: 0 !important;
	}
	.ph-brand-claim {
		font-size: 12px !important;
		letter-spacing: .05em;
	}
}

/* —— Mobile menu: poziomy, „tu jesteś”, rozwijane gałęzie —— */
@media (max-width: 1024px) {
	.ph-fb-menu-mobile.collapse-enabled.expanded .awb-menu__main-ul {
		max-height: min(78vh, 720px) !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
		box-shadow: var(--shadow);
		border: 1px solid var(--p-line);
		border-radius: 0 0 16px 16px;
		padding: 6px 0 12px !important;
	}
	.ph-fb-menu-mobile.collapse-enabled .awb-menu__main-a,
	.ph-fb-menu-mobile.collapse-enabled .awb-menu__sub-a {
		font-size: 16.5px !important;
		font-weight: 600 !important;
		min-height: 52px !important;
	}
	/* Wcięcia poziomów — widać hierarchię Oferta → Diagnostyka → … */
	.ph-fb-menu-mobile.collapse-enabled .awb-menu__sub-ul_main > .awb-menu__sub-li > .awb-menu__sub-a {
		padding-left: 1.75em !important;
		font-size: 15.5px !important;
		font-weight: 550 !important;
	}
	.ph-fb-menu-mobile.collapse-enabled .awb-menu__sub-ul_grand > .awb-menu__sub-li > .awb-menu__sub-a {
		padding-left: 2.75em !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		color: var(--p-ink-soft) !important;
	}
	.ph-fb-menu-mobile.collapse-enabled .awb-menu__sub-ul .awb-menu__sub-ul > .awb-menu__sub-li > .awb-menu__sub-a {
		padding-left: 3.5em !important;
		font-size: 14.5px !important;
	}
	/* Aktualna pozycja — mocniejszy sygnał „tu jesteś”. */
	.ph-fb-menu-mobile.collapse-enabled li.current-menu-item > a,
	.ph-fb-menu-mobile.collapse-enabled li.current-menu-item > .awb-menu__sub-a {
		background: var(--p-accent-soft) !important;
		color: var(--p-accent) !important;
		box-shadow: inset 3px 0 0 var(--p-accent);
	}
	.ph-fb-menu-mobile.collapse-enabled li.current-menu-ancestor > a,
	.ph-fb-menu-mobile.collapse-enabled li.current-menu-parent > a {
		color: var(--p-accent) !important;
		font-weight: 700 !important;
	}
	.ph-fb-menu-mobile.collapse-enabled li.current-menu-item:not(.menu-item-has-children) > a::after {
		content: "tu jesteś";
		margin-left: auto;
		padding-left: 10px;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .06em;
		text-transform: uppercase;
		color: var(--p-accent);
		opacity: .85;
		flex: 0 0 auto;
	}
	.ph-fb-menu-mobile.collapse-enabled .awb-menu__open-nav-submenu_mobile {
		width: 52px !important;
		justify-content: center;
	}
	.ph-fb-menu-mobile.collapse-enabled .awb-menu__sub-ul {
		background: #faf7f8 !important;
		border-top: 1px solid rgba(34, 48, 44, .06);
		border-bottom: 1px solid rgba(34, 48, 44, .06);
	}
}

@media (max-width: 720px) {
	.ph-tb-topbar,
	.fusion-tb-header .ph-topbar { display: none !important; }
}

/* Po zwinięciu hero do jednej kolumny odstępy boczne sumują się w pionie. */
@media (max-width: 1024px) {
	.ph-fb-hero .ph-hero-copy-col .fusion-column-wrapper { padding-bottom: 24px !important; }
	.ph-fb-hero .ph-hero-media-col .fusion-column-wrapper { padding-top: 0 !important; }
}

/* =====================================================================
   PODSTRONY — wspólny szablon: lead, treść z kolumną boczną, CTA
   ===================================================================== */

.ph-sub-cards.fusion-fullwidth {
	padding-top: 8px !important;
}
.ph-place-pano.fusion-fullwidth,
.ph-sub-banner.fusion-fullwidth {
	padding-top: 4px !important;
	padding-bottom: 12px !important;
}
.ph-sub-lead.fusion-fullwidth {
	padding-bottom: 4px !important;
}

/* —— Wizuały podstron: prawdziwe zdjęcia placówki (jak homepage) —— */
.ph-place-pano .fusion-column-wrapper,
.ph-sub-banner .fusion-column-wrapper { padding: 0 !important; }
.ph-place-pano-img,
.ph-sub-banner-img {
	display: block;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}
.ph-place-pano-img img,
.ph-sub-banner-img img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 5;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 18px;
	max-height: none !important;
}
.ph-place-pano-cap,
.ph-sub-banner-cap {
	margin: 10px 0 0 !important;
	font-size: 13px;
	color: var(--p-muted);
	text-align: left;
}

.ph-sub-duo .fusion-builder-row { align-items: stretch !important; gap: 16px !important; }
.ph-sub-duo-img img {
	width: 100% !important;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 16px;
	display: block;
	box-shadow: var(--shadow-sm);
	max-height: none !important;
}
.ph-sub-duo-cap {
	margin: 8px 0 0 !important;
	font-size: 12.5px;
	color: var(--p-muted);
	text-align: left;
}

.ph-sub-split .fusion-builder-row { align-items: center !important; }
.ph-sub-split-img img {
	width: 100% !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 18px;
	display: block;
	box-shadow: var(--shadow-sm);
	max-height: none !important;
}
.ph-sub-split-copy .fusion-column-wrapper {
	padding-right: clamp(12px, 2.5vw, 36px) !important;
}
.ph-sub-split-copy .fusion-title h3 {
	font-size: clamp(22px, 2.4vw, 30px) !important;
	line-height: 1.25 !important;
	margin-bottom: 12px !important;
}
.ph-sub-split-text {
	font-size: 16px;
	line-height: 1.65;
	color: var(--p-ink-soft);
	margin: 0 !important;
	max-width: 42ch;
}
.ph-sub-split + .ph-sub-banner,
.ph-sub-split + .ph-place-pano {
	padding-top: 4px !important;
}

/* Stare / nieużywane warianty — nie psują layoutu jeśli coś zostanie. */
.ph-sub-lead--media .fusion-builder-row { align-items: center !important; }
.ph-sub-hi-col .fusion-column-wrapper {
	padding: 16px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

@media (max-width: 800px) {
	.ph-place-pano-img img { aspect-ratio: 16 / 9; }
	.ph-sub-duo-col,
	.ph-sub-split-copy,
	.ph-sub-split-media {
		--awb-width-small: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}
	.ph-sub-split-copy .fusion-column-wrapper {
		padding-right: 0 !important;
		padding-bottom: 16px !important;
	}
}

.ph-sub-body .fusion-builder-row { align-items: flex-start !important; }
.ph-prose-col .fusion-column-wrapper { padding-right: clamp(0px, 3vw, 48px) !important; }

/* Treść przeniesiona ze starej strony to zwykły HTML — tu dostaje rytm.
   Pojedynczy wpis nie przechodzi przez kreator, więc korzysta z tych samych reguł. */
.ph-prose,
.single-post .post-content { color: var(--p-ink-soft); font-size: 16.5px; line-height: 1.75; }
.ph-prose > *:first-child,
.single-post .post-content > *:first-child { margin-top: 0; }
.ph-prose p,
.single-post .post-content p { margin: 0 0 18px; }
.ph-prose h2,
.ph-prose h3,
.ph-prose h4,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
	color: var(--p-ink);
	margin: 34px 0 14px;
	line-height: 1.25;
}
.ph-prose h2,
.single-post .post-content h2 { font-size: clamp(22px, 2.2vw, 28px); }
.ph-prose h3,
.single-post .post-content h3 { font-size: clamp(19px, 1.8vw, 23px); }
.ph-prose h4,
.single-post .post-content h4 { font-size: 18px; }
.ph-prose ul,
.ph-prose ol,
.single-post .post-content ul,
.single-post .post-content ol { margin: 0 0 20px; padding-left: 22px; }
.ph-prose li,
.single-post .post-content li { margin: 0 0 8px; }
.ph-prose ul,
.single-post .post-content ul { list-style: none; padding-left: 0; }
.ph-prose ul > li,
.single-post .post-content ul > li {
	position: relative;
	padding-left: 26px;
}
.ph-prose ul > li::before,
.single-post .post-content ul > li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 10px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--p-accent);
}
.ph-prose ol > li::marker,
.single-post .post-content ol > li::marker { color: var(--p-accent); font-weight: 700; }
.ph-prose a,
.single-post .post-content a { color: var(--p-accent); text-decoration: underline; text-underline-offset: 3px; }
.ph-prose a:hover,
.single-post .post-content a:hover { color: var(--p-accent-dark); }
.ph-prose strong,
.single-post .post-content strong { color: var(--p-ink); }
.ph-prose img,
.single-post .post-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	margin: 8px 0 22px;
}
.ph-prose iframe,
.single-post .post-content iframe { max-width: 100%; border: 0; border-radius: var(--radius); }
.ph-prose table,
.single-post .post-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 15.5px;
}
.ph-prose th,
.ph-prose td,
.single-post .post-content th,
.single-post .post-content td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--p-line);
	text-align: left;
	vertical-align: top;
}
.ph-prose thead th,
.single-post .post-content thead th { background: var(--p-blush); color: var(--p-ink); font-weight: 700; }

/* Strony, których treść ze starego serwisu to tylko odnośniki do pokrewnych
   podstron — zamiast wiszących linków dostają wyraźne kafelki. */
.ph-prose .ph-linklist {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ph-prose .ph-linklist > li { margin: 0; padding: 0; }
.ph-prose .ph-linklist > li::before { content: none; }
.ph-prose .ph-linklist a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid var(--p-line);
	border-radius: 999px;
	background: #fff;
	color: var(--p-ink);
	font-weight: 600;
	font-size: 15.5px;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.ph-prose .ph-linklist a::after { content: '\2192'; color: var(--p-accent); }
.ph-prose .ph-linklist a:hover {
	border-color: var(--p-accent);
	color: var(--p-accent);
	box-shadow: var(--shadow-sm);
}

/* Kolumna boczna trzyma się ekranu przy długich tekstach. */
.ph-aside-col .fusion-column-wrapper {
	position: sticky;
	top: 100px;
	display: grid;
	gap: 14px;
}
.ph-aside-card,
.ph-aside-nav {
	background: #fff;
	border: 1px solid var(--p-line);
	border-radius: var(--radius);
	padding: 22px 22px 20px;
	box-shadow: var(--shadow-sm);
}
.ph-aside-nav { background: var(--p-blush); border-color: transparent; }
.ph-aside-kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--p-accent);
	margin-bottom: 6px;
}
.ph-aside-title {
	font-family: var(--font-display, inherit);
	font-size: 19px;
	font-weight: 700;
	color: var(--p-ink);
	margin-bottom: 14px;
}
.ph-aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ph-aside-list li {
	display: grid;
	gap: 2px;
	font-size: 15px;
	color: var(--p-ink);
}
.ph-aside-list li span {
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--p-muted);
}
.ph-aside-list a { color: var(--p-ink); }
.ph-aside-list a:hover { color: var(--p-accent); }
.ph-aside-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ph-aside-nav a {
	display: block;
	padding: 8px 10px;
	margin: 0 -10px;
	border-radius: 8px;
	font-size: 15px;
	color: var(--p-ink-soft);
}
.ph-aside-nav a:hover { background: #fff; color: var(--p-accent); }
.ph-aside-col .fusion-button-wrapper { display: block; }
.ph-aside-col .fusion-button { width: 100%; }

/* Bez tego kolumny przyjmują wysokość własnej treści i karty w rzędzie się rozjeżdżają. */
.ph-sub-cards .fusion-builder-row { align-items: stretch !important; }
.ph-sub-cards .ph-card-col .fusion-title h4 { font-size: 19px !important; }
.ph-card-link a {
	color: var(--p-accent);
	font-weight: 600;
	font-size: 15px;
}
.ph-card-link a:hover { color: var(--p-accent-dark); }

/* Karty zaraz pod tekstem (w kolumnie treści, obok sidebara). */
.ph-prose-col .fusion-column-wrapper {
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	gap: 0 !important;
}
.ph-prose-col .fusion-text,
.ph-prose-col .ph-prose,
.ph-prose-col .ph-inline-cards-wrap {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.ph-inline-cards-wrap .fusion-text { margin: 0 !important; }
.ph-inline-cards {
	display: grid;
	gap: 20px;
	margin: 12px 0 0;
}
.ph-inline-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-inline-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-inline-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	padding: 22px 20px 18px;
	background: #fff;
	border: 1px solid var(--p-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	text-decoration: none !important;
	color: inherit !important;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ph-inline-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	border-color: transparent;
	color: inherit !important;
}
.ph-inline-card-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--p-accent-soft, #fdeff4);
	color: var(--p-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
	font-size: 18px;
}
.ph-inline-card-title {
	font-family: var(--font-display, inherit);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--p-ink);
}
.ph-inline-card-text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--p-ink-soft);
	flex: 1;
}
.ph-inline-card-more {
	margin-top: 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--p-accent);
}
@media (max-width: 800px) {
	.ph-inline-cards--2,
	.ph-inline-cards--3 { grid-template-columns: 1fr; }
}

/* Lekki oddech treści podstron — bez ozdobników. */
.ph-prose > p:first-of-type {
	font-size: 17.5px;
	line-height: 1.7;
	color: var(--p-ink);
}
.ph-prose img:first-child,
.ph-prose > p:first-child > img:only-child {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	border-radius: calc(var(--radius) - 4px);
	margin: 0 0 28px;
	box-shadow: var(--shadow-sm);
}
.ph-prose ul,
.ph-prose ol {
	margin: 0 0 22px;
	padding: 18px 22px 18px 40px;
	background: rgba(253, 239, 244, 0.45);
	border-radius: 14px;
	border: 1px solid rgba(190, 34, 82, 0.06);
}
.ph-prose ul li,
.ph-prose ol li { margin: 0 0 8px; }
.ph-prose ul li:last-child,
.ph-prose ol li:last-child { margin-bottom: 0; }
.ph-prose h2,
.ph-prose h3 {
	margin-top: 2.2em;
}
.ph-sub-lead .ph-lead {
	max-width: 62ch;
}

/* Haczyki menu bez zależności od fontu awb-icons (po migracji często pada). */
.awb-menu__open-nav-submenu-hover::before,
.awb-menu__open-nav-submenu_click::before,
.awb-menu__open-nav-submenu_mobile::before {
	content: '' !important;
	font-family: inherit !important;
	font-size: 0 !important;
	line-height: 0 !important;
	display: inline-block !important;
	width: 6px !important;
	height: 6px !important;
	margin: 0 0 2px !important;
	padding: 0 !important;
	border: none !important;
	border-right: 1.6px solid currentColor !important;
	border-bottom: 1.6px solid currentColor !important;
	transform: rotate(45deg);
	vertical-align: middle;
	opacity: .7;
}
.awb-menu_expand-right .awb-menu__sub-ul .awb-menu__open-nav-submenu-hover::before,
.awb-menu_expand-right .awb-menu__sub-ul .awb-menu__open-nav-submenu_click::before,
.awb-menu_expand-right .awb-menu__sub-ul .awb-menu__open-nav-submenu_mobile::before {
	transform: rotate(-45deg) !important;
	margin-bottom: 0 !important;
}
.awb-menu_v-stacked .awb-menu__open-nav-submenu-hover[aria-expanded="true"]::before,
.awb-menu_v-stacked .awb-menu__open-nav-submenu_mobile[aria-expanded="true"]::before {
	transform: rotate(225deg) !important;
}

.ph-sub-cta.fusion-fullwidth { background: var(--p-blush) !important; }
.ph-sub-cta .fusion-title h2 { font-size: clamp(24px, 2.6vw, 34px) !important; }
.ph-sub-cta .ph-cta-textwrap { text-align: center !important; }
.ph-sub-cta .ph-cta-text {
	max-width: 56ch;
	margin: 0 auto 22px !important;
	color: var(--p-ink-soft);
	font-size: 17px;
}

/* ============ FORMULARZE I KONTAKT ============ */

.ph-form-section .fusion-builder-row { align-items: flex-start !important; }
.ph-form-copy .fusion-column-wrapper { padding-right: clamp(0px, 3vw, 48px) !important; }
.ph-form-intro { color: var(--p-ink-soft); font-size: 17px; max-width: 46ch; }

.ph-contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.ph-contact-list li { display: grid; gap: 3px; }
.ph-contact-list span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--p-accent);
}
.ph-contact-list strong { font-weight: 600; color: var(--p-ink); font-size: 16px; }
.ph-contact-list a { color: var(--p-ink); }
.ph-contact-list a:hover { color: var(--p-accent); }

.ph-form-col .fusion-column-wrapper {
	background: #fff !important;
	border: 1px solid var(--p-line) !important;
	border-radius: var(--radius) !important;
	padding: clamp(22px, 2.6vw, 34px) !important;
	box-shadow: var(--shadow-sm);
}
.ph-form-wrap .fusion-form-field { margin-bottom: 16px; }
.ph-form-wrap .fusion-form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--p-ink);
	margin-bottom: 6px;
}
.ph-form-wrap input[type="text"],
.ph-form-wrap input[type="email"],
.ph-form-wrap input[type="tel"],
.ph-form-wrap input[type="date"],
.ph-form-wrap textarea,
.ph-form-wrap select {
	width: 100%;
	padding: 12px 14px !important;
	border: 1px solid var(--p-line) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--p-ink) !important;
	font-size: 15.5px !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ph-form-wrap input:focus,
.ph-form-wrap textarea:focus,
.ph-form-wrap select:focus {
	border-color: var(--p-accent) !important;
	box-shadow: 0 0 0 3px rgba(190, 34, 82, .12);
	outline: none;
}
.ph-form-wrap .fusion-form-radio-checkbox-label,
.ph-form-wrap .fusion-form-consent-wrapper label {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--p-ink-soft);
}
.ph-form-wrap .fusion-form-consent-wrapper a { color: var(--p-accent); text-decoration: underline; }
/* Przycisk wysyłki dziedziczy niebieski akcent Avady — sprowadzamy go do marki. */
.ph-form-wrap .form-form-submit,
.ph-form-wrap button[type="submit"] {
	width: 100%;
	justify-content: center;
	border-radius: 999px !important;
	background: var(--p-accent) !important;
	border-color: var(--p-accent) !important;
	color: #fff !important;
	font-weight: 600;
	padding: 13px 24px !important;
	margin-top: 8px;
}
.ph-form-wrap .form-form-submit:hover,
.ph-form-wrap button[type="submit"]:hover {
	background: var(--p-accent-dark) !important;
	border-color: var(--p-accent-dark) !important;
}
/* Napis na przycisku bierze kolor akcentu z opcji motywu i ginie na tle. */
.ph-form-wrap .form-form-submit .fusion-button-text,
.ph-form-wrap button[type="submit"] .fusion-button-text {
	color: #fff !important;
	font-size: 15.5px;
	letter-spacing: .01em;
}

/* Avada rysuje własny kwadracik zgody — domyślnie prawie niewidoczny. */
.ph-form-wrap .fusion-form-checkbox label { padding-left: 30px !important; }
.ph-form-wrap .fusion-form-checkbox label::before {
	width: 18px !important;
	height: 18px !important;
	/* Zgoda zajmuje kilka linii — kwadracik trzymamy przy pierwszej, nie na środku. */
	top: 2px !important;
	left: 0 !important;
	transform: none !important;
	border: 1.5px solid var(--p-line) !important;
	border-radius: 5px !important;
	background: #fff !important;
	transition: background .15s ease, border-color .15s ease;
}
.ph-form-wrap .fusion-form-checkbox input:checked + label::before {
	background: var(--p-accent) !important;
	border-color: var(--p-accent) !important;
}
.ph-form-wrap .fusion-form-checkbox input:checked + label::after {
	content: "" !important;
	position: absolute !important;
	left: 6px !important;
	top: 5px !important;
	width: 5px !important;
	height: 10px !important;
	background: none !important;
	border: solid #fff !important;
	border-width: 0 2px 2px 0 !important;
	border-radius: 0 !important;
	transform: rotate(45deg) !important;
}
.ph-form-wrap .fusion-form-checkbox input:focus-visible + label::before {
	box-shadow: 0 0 0 3px rgba(190, 34, 82, .18);
}
.ph-form-wrap .fusion-form-response { border-radius: 10px; font-size: 15px; }

.ph-map iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: var(--radius);
	filter: saturate(.85);
}

@media (max-width: 1024px) {
	.ph-form-copy { --awb-width-medium: 100% !important; }
	.ph-form-col { --awb-width-medium: 100% !important; }
	.ph-form-copy .fusion-column-wrapper { padding-right: 0 !important; margin-bottom: 28px; }
}

/* ============ STRONA 404 ============ */

/* Szablon 404 nie przechodzi przez kreator, więc sam pilnuje szerokości. */
body.error404 #content {
	max-width: 1240px;
	margin: 0 auto;
	padding: 44px 24px 72px;
}
body.error404 .error-message { color: rgba(34, 48, 44, .08); }
body.error404 .fusion-error-page-useful-links h3,
body.error404 .fusion-error-page-search h3 { font-size: clamp(22px, 2.2vw, 28px); }

/* ============ SPACER WIRTUALNY ============ */

.ph-tour-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: var(--p-blush);
}
.ph-tour-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 640px) {
	.ph-tour-frame { aspect-ratio: 4 / 3; }
}

/* ============ OPINIE ============ */

.ph-quotes .fusion-builder-row { align-items: stretch !important; row-gap: 24px; }
.ph-quote-col .fusion-column-wrapper { height: 100%; display: flex; }
.ph-quote-col .fusion-text { display: flex; flex: 1; }
/* Motyw maluje cytaty akcentem i kursywą — karta potrzebuje spokojnej ramki. */
.ph-quote {
	flex: 1;
	margin: 0;
	padding: 28px 30px 26px !important;
	background: #fff !important;
	border: 1px solid var(--p-line) !important;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	font-style: normal !important;
}
.ph-quotes-page .ph-quote { background: #fff; }
.ph-quote-stars {
	color: var(--p-accent);
	letter-spacing: .14em;
	font-size: 19px;
	line-height: 1;
	margin-bottom: 16px;
}
.ph-quote-text {
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--p-ink-soft);
	margin: 0 0 18px;
	font-style: normal;
}
.ph-quote-author {
	margin-top: auto;
	font-weight: 700;
	color: var(--p-ink);
}
.ph-quote-author span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--p-accent);
}

/* Sekcja Google Reviews */
.ph-google-head.fusion-fullwidth {
	background: #fff !important;
	border-top: 1px solid var(--p-line);
}
.ph-quotes-google.fusion-fullwidth { background: #fff !important; }
.ph-google-badge {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 18px;
	padding: 10px 16px;
	border: 1px solid var(--p-line);
	border-radius: 999px;
	background: var(--p-cream);
}
.ph-google-badge-stars {
	color: #f4b400;
	letter-spacing: .1em;
	font-size: 16px;
	line-height: 1;
}
.ph-google-badge-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--p-ink);
}
.ph-google-badge-link {
	font-size: 14px;
	font-weight: 700;
	color: var(--p-accent) !important;
	text-decoration: none !important;
}
.ph-google-badge-link:hover { color: var(--p-accent-dark) !important; }
.ph-quote-google {
	border-color: rgba(66, 133, 244, 0.18) !important;
	box-shadow: 0 8px 24px rgba(66, 133, 244, 0.06);
}
.ph-quote-google .ph-quote-stars { color: #f4b400; }
.ph-quote-google .ph-quote-author span { color: #4285f4; }
.ph-trustindex-wrap {
	padding: 8px 0 4px;
}
.ph-trustindex-wrap .ti-widget,
.ph-trustindex-wrap iframe {
	max-width: 100%;
}

/* ============ CENNIK ============ */

.ph-price-navwrap { margin-bottom: 0; }
.ph-price-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ph-price-nav a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--p-line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--p-ink);
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ph-price-nav a:hover {
	background: var(--p-accent);
	border-color: var(--p-accent);
	color: #fff;
}

/* Kotwice muszą minąć przyklejony nagłówek. */
.ph-price-heading { scroll-margin-top: 110px; }

.ph-price-grid .fusion-builder-row {
	row-gap: 24px;
	align-items: stretch !important;
}
.ph-price-col .fusion-column-wrapper {
	height: 100%;
	padding: 26px 26px 22px !important;
	background: #fff !important;
	border: 1px solid var(--p-line) !important;
	border-radius: var(--radius) !important;
	box-shadow: var(--shadow-sm);
}
.ph-price-col:not(:nth-child(2n)) .fusion-column-wrapper { margin-right: 24px; }

/* Globalna skala nagłówków H3 jest tu za duża — karta potrzebuje własnej. */
.ph-price-card .ph-price-name {
	font-size: 19px !important;
	line-height: 1.3 !important;
	color: var(--p-ink);
	margin: 0 0 6px !important;
}
.ph-price-note {
	font-size: 14.5px;
	color: var(--p-muted);
	margin: 0 0 12px;
}
.ph-price-person {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--p-accent);
	margin: 6px 0 8px;
}
/* Kolejny specjalista w karcie zaczyna nową grupę stawek. */
.ph-price-rows + .ph-price-person {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--p-line);
}
.ph-price-rows {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ph-price-rows li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--p-line);
}
.ph-price-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.ph-price-rows li.is-solo { justify-content: flex-start; }
.ph-price-rows li.is-solo .ph-price-val { font-size: 20px; color: var(--p-accent); }
.ph-price-desc {
	color: var(--p-ink-soft);
	font-size: 15.5px;
	line-height: 1.5;
}
.ph-price-val {
	flex: none;
	font-weight: 700;
	color: var(--p-ink);
	white-space: nowrap;
}
.ph-price-footnote {
	font-size: 14px;
	color: var(--p-muted);
	margin: 0;
}

@media (max-width: 800px) {
	.ph-price-col .fusion-column-wrapper { margin-right: 0 !important; }
	.ph-price-rows li { gap: 12px; }
}

/* ============ ZESPÓŁ ============ */

.ph-team-heading .fusion-title h2 {
	font-size: clamp(17px, 1.5vw, 20px) !important;
	margin-bottom: 0 !important;
}
.ph-team-heading.fusion-fullwidth {
	padding-top: 22px !important;
	padding-bottom: 0 !important;
}
.ph-team-grid.fusion-fullwidth {
	padding-top: 6px !important;
	padding-bottom: 2px !important;
}
.ph-team-grid .fusion-builder-row {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	gap: 16px !important;
	/* Równomierne rynny — Avada lubi różnić paddingi first/last. */
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
}
.ph-team-grid .ph-person-col {
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	/* Avada wstawia --awb-spacing-* (8px) → nierówne rynny first/last. */
	--awb-spacing-left-large: 0px !important;
	--awb-spacing-right-large: 0px !important;
	--awb-spacing-left-medium: 0px !important;
	--awb-spacing-right-medium: 0px !important;
	--awb-spacing-left-small: 0px !important;
	--awb-spacing-right-small: 0px !important;
	--awb-margin-bottom-large: 0px !important;
}
.ph-team-grid .ph-person-col .fusion-column-wrapper {
	margin: 0 !important;
	padding: 0 !important;
	height: 100%;
}
.ph-sub-lead.fusion-fullwidth {
	padding-top: 24px !important;
	padding-bottom: 2px !important;
}
.ph-sub-lead .ph-lead {
	font-size: clamp(15px, 1.2vw, 17px) !important;
	max-width: 720px;
}

/* Na profilach zespołu Avada dokłada „featured image” jako post-slideshow (duże zdjęcie z przodu).
   Ukrywamy je, bo i tak wyświetlamy właściwe zdjęcie w układzie profilu. */
body.parent-pageid-7 .post-slideshow { display: none !important; }

/* Zawsze 5 kart w rzędzie — gap 16px. */
@media (min-width: 1025px) {
	.ph-team-grid .fusion-builder-row {
		justify-content: flex-start !important;
	}
	.ph-team-grid--5 .ph-person-col,
	.ph-team-grid--4 .ph-person-col,
	.ph-team-grid .ph-person-col {
		--awb-width-large: 20% !important;
		width: calc((100% - 64px) / 5) !important;
		max-width: calc((100% - 64px) / 5) !important;
		flex: 0 0 calc((100% - 64px) / 5) !important;
	}
}

.ph-person-col .fusion-column-wrapper {
	height: 100%;
	background: #fff !important;
	border: 1px solid var(--p-line) !important;
	border-radius: 12px !important;
	overflow: hidden;
	box-shadow: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ph-person-col:hover .fusion-column-wrapper {
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
	border-color: transparent !important;
}
.ph-person-col .fusion-person {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.ph-person-col .person-author-wrapper { margin-top: auto; display: block; }
.ph-person-col .person-image-container { margin: 0; border-radius: 0 !important; width: 100%; }
.ph-person-col .person-image-container img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center top;
	display: block;
	border-radius: 0 !important;
	max-height: none !important;
}
.ph-person-col .person-desc { padding: 10px 12px 12px !important; margin: 0 !important; }
.ph-person-col .person-author { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.ph-person-col .person-content { margin: 0; }
.ph-person-col .person-name {
	font-family: var(--font-display, inherit);
	font-size: 14px !important;
	font-weight: 700;
	color: var(--p-ink);
	line-height: 1.25 !important;
}
.ph-person-col .person-title {
	font-size: 10px !important;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--p-accent);
	margin-top: 3px !important;
	line-height: 1.3 !important;
}

.ph-person-page .ph-person-media .fusion-column-wrapper { padding-right: 10px !important; }
.ph-person-page .ph-person-body .fusion-column-wrapper {
	padding-right: 28px !important;
	padding-left: 8px !important;
}
.ph-person-page .ph-person-aside .fusion-column-wrapper {
	padding-left: 12px !important;
}
.ph-person-photo img {
	border-radius: 16px;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
	background: #f7edf1;
}
.ph-person-photo.is-placeholder img,
.ph-person-photo img[src*="placeholder-osoba"] {
	object-fit: contain;
	object-position: center;
	padding: 18% 14%;
	background: #fdeff4;
}
.ph-person-role {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--p-accent);
	margin: 0 0 6px !important;
}
.ph-person-page .ph-person-h h2 {
	font-size: clamp(22px, 2.4vw, 30px) !important;
}

/* Boczne menu osób na profilu */
.ph-team-nav {
	position: sticky;
	top: 96px;
	background: #fff;
	border: 1px solid var(--p-line);
	border-radius: 16px;
	padding: 14px 12px 12px;
	max-height: calc(100vh - 120px);
	overflow: auto;
}
.ph-team-nav-title {
	margin: 0 8px 10px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--p-muted);
}
.ph-team-nav-list { list-style: none; margin: 0; padding: 0; }
.ph-team-nav-item a {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	text-decoration: none !important;
	color: var(--p-ink) !important;
	line-height: 1.25;
	transition: background .15s ease, color .15s ease;
}
.ph-team-nav-item a:hover {
	background: #fdeff4;
	color: var(--p-accent) !important;
}
.ph-team-nav-item.is-current a {
	background: #be2252;
	color: #fff !important;
}
.ph-team-nav-item.is-current .ph-team-nav-role { color: rgba(255,255,255,.78) !important; }
.ph-team-nav-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
}
.ph-team-nav-role {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: var(--p-muted);
}
.ph-team-nav-back {
	margin: 10px 8px 2px !important;
	font-size: 13px !important;
}
.ph-team-nav-back a { color: var(--p-accent) !important; font-weight: 600; }

/* Na średnich ekranach sidebar pod treścią, ale zwarty. */
@media (min-width: 801px) and (max-width: 1100px) {
	.ph-team-grid .fusion-builder-row { gap: 14px !important; }
	.ph-team-grid .ph-person-col {
		--awb-width-medium: 25% !important;
		width: calc((100% - 42px) / 4) !important;
		max-width: calc((100% - 42px) / 4) !important;
		flex: 0 0 calc((100% - 42px) / 4) !important;
	}
	.ph-person-aside {
		--awb-width-large: 100% !important;
		--awb-width-medium: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}
	.ph-person-body {
		--awb-width-large: 70% !important;
		--awb-width-medium: 70% !important;
		width: 70% !important;
		max-width: 70% !important;
		flex: 0 0 70% !important;
	}
	.ph-person-media {
		--awb-width-large: 30% !important;
		--awb-width-medium: 30% !important;
		width: 30% !important;
		max-width: 30% !important;
		flex: 0 0 30% !important;
	}
	.ph-person-page .fusion-builder-row {
		flex-wrap: wrap !important;
	}
	.ph-team-nav {
		position: static;
		max-height: none;
		margin-top: 12px;
	}
	.ph-team-nav-list {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2px 8px;
	}
}
@media (max-width: 800px) {
	.ph-team-grid .fusion-builder-row { gap: 12px !important; }
	.ph-team-grid .ph-person-col {
		--awb-width-small: 50% !important;
		width: calc((100% - 12px) / 2) !important;
		max-width: calc((100% - 12px) / 2) !important;
		flex: 0 0 calc((100% - 12px) / 2) !important;
	}
	.ph-person-media,
	.ph-person-body,
	.ph-person-aside { --awb-width-small: 100% !important; }
	.ph-person-page .ph-person-media .fusion-column-wrapper { padding-right: 0 !important; }
	.ph-person-photo img { max-width: 200px; }
	.ph-team-nav {
		position: static;
		max-height: none;
		margin-top: 8px;
	}
	.ph-person-col .person-image-container img { max-height: 140px; }
}

@media (max-width: 1024px) {
	.ph-prose-col { --awb-width-medium: 100% !important; }
	.ph-aside-col { --awb-width-medium: 100% !important; }
	.ph-aside-col .fusion-column-wrapper {
		position: static;
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
	.ph-prose-col .fusion-column-wrapper { padding-right: 0 !important; }
}

@media (max-width: 800px) {
	.ph-aside-col .fusion-column-wrapper { grid-template-columns: 1fr; }
	.ph-sub-cards .ph-card-col { --awb-width-small: 100% !important; }
}

/* ============ BLOG ============ */

/* Element Blog rozstawia karty JS-em i wpisuje style inline, stąd !important. */
.ph-blog-section .fusion-post-wrapper {
	background: #fff !important;
	border: 1px solid var(--p-line) !important;
	border-radius: var(--radius) !important;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow .2s ease, border-color .2s ease;
}
.ph-blog-section .fusion-post-grid:hover .fusion-post-wrapper {
	box-shadow: var(--shadow);
	border-color: transparent !important;
}
.ph-blog-section .fusion-flexslider,
.ph-blog-section .fusion-flexslider .slides,
.ph-blog-section .fusion-flexslider .slides > li {
	border: 0 !important;
	margin: 0;
	border-radius: 0;
}
.ph-blog-section .fusion-image-wrapper img {
	width: 100%;
	display: block;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.ph-blog-section .fusion-post-content-wrapper { padding: 22px 24px 26px !important; }
.ph-blog-section .fusion-post-content { display: flex; flex-direction: column; }

/* Tytuł kafelka dziedziczy skalę nagłówka H2 — sprowadzamy go do rozmiaru karty. */
.ph-blog-section .blog-shortcode-post-title,
.ph-blog-section .blog-shortcode-post-title a {
	--fontSize: 21 !important;
	font-size: 21px !important;
	line-height: 1.35 !important;
	color: var(--p-ink) !important;
	margin: 0 !important;
}
.ph-blog-section .blog-shortcode-post-title a:hover { color: var(--p-accent) !important; }

.ph-blog-section .fusion-single-line-meta {
	order: -1;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 0 10px !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--p-accent) !important;
}
.ph-blog-section .fusion-single-line-meta .fusion-inline-sep { display: none; }
.ph-blog-section .fusion-content-sep { display: none; }
.ph-blog-section .fusion-post-content-container {
	margin-top: 10px;
	color: var(--p-muted);
	font-size: 15.5px;
}
.ph-blog-section .fusion-post-content-container p { margin: 0; }

/* Wpis czyta się w jednej kolumnie, więc łamiemy pełną szerokość Avady. */
body.single-post #main #content {
	max-width: 880px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 44px 0 72px !important;
	float: none !important;
}
.single-post .fusion-post-slideshow {
	border-radius: var(--radius);
	overflow: hidden;
	margin: 0 0 34px;
	box-shadow: var(--shadow-sm);
}
.single-post .fusion-post-slideshow .slides > li { border: 0; }
.single-post .fusion-post-slideshow img {
	width: 100%;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
