/**
 * glivmed-header — layout nagłówka GlivClinic.
 */

.glivmed-header {
	--gh-accent: #0d3276;
	--gh-accent-hover: #485bb2;
	--gh-text: #7a7a7a;
	--gh-heading: #0d3276;
	--gh-white: #ffffff;
	--gh-container: 75rem;
	--gh-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
	--gh-font-body: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
	--gh-font-menu: "Poppins", "Segoe UI", sans-serif;
	--gh-locations-cols: 2;
	box-sizing: border-box;
	font-family: var(--gh-font-body);
	background: var(--gh-white);
	box-shadow: var(--gh-shadow);
	position: relative;
	z-index: 100;
	width: 100%;
	clear: both;
}

.glivmed-header ul,
.glivmed-header ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.glivmed-header *,
.glivmed-header *::before,
.glivmed-header *::after {
	box-sizing: border-box;
}

.glivmed-header__shell {
	width: 100%;
	overflow: visible;
}

.glivmed-header__locations,
.glivmed-header__search,
.glivmed-header__logos,
.glivmed-header__nav,
.glivmed-header__banner {
	background-color: var(--gh-white);
}

.glivmed-header__locations-inner,
.glivmed-header__search-inner,
.glivmed-header__logos-inner,
.glivmed-header__nav-inner,
.glivmed-header__banner-inner {
	width: 100%;
	max-width: var(--gh-container);
	margin-inline: auto;
}

.glivmed-header__locations {
	padding: 12px;
}

.glivmed-header__locations-inner {
	display: grid;
	grid-template-columns: repeat(var(--gh-locations-cols), minmax(0, 1fr));
	gap: 12px;
}

.glivmed-header__location {
	--gh-loc-bg: #1c4694;
	--gh-loc-color: #fff;
	--gh-loc-pad-y: 12px;
	--gh-loc-pad-x: 14px;
	--gh-loc-pad-r: 4px;
	color: var(--gh-loc-color);
	border-radius: 10px;
	padding: var(--gh-loc-pad-y) var(--gh-loc-pad-r) var(--gh-loc-pad-y) var(--gh-loc-pad-x);
	min-height: 48px;
	display: flex;
	align-items: center;
	font-family: var(--gh-font-menu);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	border: 2px solid transparent;
	background-color: var(--gh-loc-bg);
	background-image:
		linear-gradient(var(--gh-loc-bg), var(--gh-loc-bg)),
		radial-gradient(circle at 0 0, hsl(27deg 93% 60%), transparent 55%),
		radial-gradient(circle at 100% 0, #00a6ff, transparent 55%),
		radial-gradient(circle at 0 100%, #ff0056, transparent 55%),
		radial-gradient(circle at 100% 100%, #6500ff, transparent 55%);
	background-origin: border-box;
	background-clip: padding-box, border-box, border-box, border-box, border-box;
	box-shadow:
		-3px -2px 6px rgba(255, 154, 60, 0.14),
		3px -2px 6px rgba(0, 166, 255, 0.14),
		-3px 3px 6px rgba(255, 0, 86, 0.11),
		3px 3px 6px rgba(101, 0, 255, 0.13);
}

.glivmed-header__location-row {
	display: grid;
	grid-template-columns: minmax(0, 11fr) 14px minmax(0, 9fr);
	column-gap: 10px;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	text-align: left;
}

.glivmed-header__location-main {
	grid-column: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: nowrap;
	gap: 0 0.35em;
	min-width: 0;
	align-self: center;
}

.glivmed-header__location-gap {
	display: none;
}

.glivmed-header__location-divider {
	grid-column: 2;
	width: 100%;
	align-self: stretch;
	margin-top: calc(-1 * var(--gh-loc-pad-y) - 2px);
	margin-bottom: calc(-1 * var(--gh-loc-pad-y) - 2px);
	margin-left: 0;
	margin-right: 0;
	justify-self: center;
	background-color: #00a6ff;
	background-image: linear-gradient(
		180deg,
		#00a6ff 0%,
		#6500ff 100%
	);
	clip-path: polygon(
		0% 0%,
		32% 0%,
		100% 50%,
		32% 100%,
		0% 100%,
		68% 50%
	);
	filter: drop-shadow(0 0 4px rgba(0, 166, 255, 0.35));
	opacity: 1;
}

.glivmed-header__location-call {
	grid-column: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	justify-self: end;
	flex-wrap: nowrap;
	gap: 6px;
	align-self: center;
	min-width: 0;
}

.glivmed-header__location-city,
.glivmed-header__location-phone,
.glivmed-header__location-info,
.glivmed-header__location-email,
.glivmed-header__location-address {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.glivmed-header__location-city {
	font-weight: 600;
	flex-shrink: 0;
}

.glivmed-header__location-city::after {
	content: ',';
	font-weight: 600;
}

.glivmed-header__location-info,
.glivmed-header__location-email,
.glivmed-header__location-phone {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 500;
	flex-shrink: 0;
	line-height: 1.3;
}

.glivmed-header__location-info,
.glivmed-header__location-email,
.glivmed-header__location-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.28em;
	height: 1.28em;
	border-radius: 50%;
	background: #fff;
	color: var(--gh-loc-bg, #1c4694);
	flex-shrink: 0;
	line-height: 0;
	text-decoration: none;
}

.glivmed-header__location-phone {
	color: inherit;
}

.glivmed-header__location-info-icon,
.glivmed-header__location-email-icon,
.glivmed-header__location-phone-icon {
	display: block;
	width: 0.85em;
	height: 0.85em;
	flex-shrink: 0;
	fill: currentColor;
}

.glivmed-header__location-address {
	font-weight: 400;
	opacity: 0.95;
	flex-shrink: 0;
	overflow: visible;
	text-overflow: clip;
	line-height: 1.3;
}

.glivmed-header__location-city:hover,
.glivmed-header__location-phone:hover,
.glivmed-header__location-address:hover {
	color: inherit;
	text-decoration: underline;
}

.glivmed-header__location-info:hover,
.glivmed-header__location-email:hover,
.glivmed-header__location-phone:hover .glivmed-header__location-icon {
	opacity: 0.9;
	text-decoration: none;
}

.glivmed-header__search {
	padding: 0 10px;
	z-index: 999;
}

.glivmed-header__search-inner {
	padding: 5px 0 0;
}

.glivmed-header__logos {
	border-bottom: 1px solid var(--gh-accent);
	background: var(--gh-white);
}

.glivmed-header__logos-inner {
	display: grid;
	grid-template-columns: repeat(var(--gh-logos-cols, 5), minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	column-gap: 28px;
	row-gap: 8px;
	padding: 12px 24px;
	max-width: 1200px;
	margin-inline: auto;
}

.glivmed-header__logo,
.glivmed-header__partner-logo {
	display: flex;
	align-items: var(--gh-logo-align-y, center);
	justify-content: center;
	width: 100%;
	min-width: 0;
	height: 40px;
	--gh-logo-scale: 1;
	--gh-logo-align-y: center;
}

.glivmed-header__logo-link,
.glivmed-header__partner-logo a {
	display: flex;
	align-items: var(--gh-logo-align-y, center);
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.glivmed-header__logo-img,
.glivmed-header__partner-logo-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	/* poniżej 100% = luz na pozycję góra/środek/dół */
	max-height: 90%;
	object-fit: contain;
	object-position: center;
	transform: scale(var(--gh-logo-scale, 1));
	transform-origin: center center;
	image-rendering: -webkit-optimize-contrast;
}

.glivmed-header__nav {
	background: var(--gh-white);
	z-index: 120;
	overflow: visible;
	position: relative;
}

.glivmed-header__nav--sticky {
	position: sticky;
	top: 0;
	z-index: 130;
}

.glivmed-header__nav.is-scrolled {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.glivmed-header__nav-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	position: relative;
	min-height: 48px;
}

.glivmed-header__nav-mobile-logo {
	display: none;
}

.glivmed-header__nav-menu-wrap {
	width: 100%;
	max-width: 1300px;
}

#glivmed-header .glivmed-nav {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: visible;
}

#glivmed-header .glivmed-nav__main {
	overflow: visible;
	width: 100%;
}

#glivmed-header .glivmed-nav__main > .glivmed-nav__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

#glivmed-header .glivmed-nav__main > .glivmed-nav__list > li {
	margin: 0;
	position: relative;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

#glivmed-header .glivmed-nav__list .glivmed-nav__item,
#glivmed-header .glivmed-nav__list .glivmed-nav__sub-item {
	font-family: var(--gh-font-menu);
	font-weight: 500;
	color: var(--gh-heading);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

#glivmed-header .glivmed-nav__main > .glivmed-nav__list > li > .glivmed-nav__item {
	display: inline-flex;
	align-items: center;
	gap: 0.2em;
	padding: 12px 10px 10px;
	font-size: 15px;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}

#glivmed-header .glivmed-nav__main > .glivmed-nav__list > li > .glivmed-nav__item:hover,
#glivmed-header .glivmed-nav__main > .glivmed-nav__list > li > .glivmed-nav__item:focus,
#glivmed-header .glivmed-nav__main > .glivmed-nav__list > li:hover > .glivmed-nav__item,
#glivmed-header .glivmed-nav__main > .glivmed-nav__list > li:focus-within > .glivmed-nav__item {
	border-bottom-color: var(--gh-accent-hover);
}

#glivmed-header .glivmed-nav__main > .glivmed-nav__list > li > .glivmed-nav__item.glivmed-nav__item--active {
	border-bottom-color: var(--gh-heading);
}

#glivmed-header .glivmed-nav__sub-arrow {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin: 0 0 0 1px;
	line-height: 1;
	pointer-events: none;
}

#glivmed-header .glivmed-nav__sub-arrow svg {
	width: 0.72em;
	height: 0.72em;
	min-width: 11px;
	min-height: 11px;
	fill: currentColor;
	flex-shrink: 0;
}

#glivmed-header .glivmed-nav__main li > .sub-menu {
	display: block;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #ffffff;
	box-shadow: 0 4px 24px rgba(13, 50, 118, 0.12);
	border: 1px solid rgba(13, 50, 118, 0.06);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	z-index: 500;
	transition: opacity 0.12s ease, visibility 0.12s ease;
}

#glivmed-header .glivmed-nav__main li:hover > .sub-menu,
#glivmed-header .glivmed-nav__main li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

#glivmed-header .glivmed-nav__main .sub-menu .glivmed-nav__sub-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5em;
	width: 100%;
	padding: 10px 18px;
	font-size: 15px;
	white-space: nowrap;
}

#glivmed-header .glivmed-nav__main .sub-menu .sub-menu {
	left: 100%;
	top: 0;
	margin-left: 0;
	background: #ffffff;
	z-index: 510;
}

@media (min-width: 1025px) {
	#glivmed-header .glivmed-nav__main > .glivmed-nav__list > .trzy-kolumny > .sub-menu {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2px 16px;
		width: 780px;
		max-width: calc(100vw - 40px);
		padding: 12px 14px;
		background: #ffffff;
	}

	#glivmed-header .glivmed-nav__main > .glivmed-nav__list > .trzy-kolumny > .sub-menu > li {
		display: block;
		width: 100%;
		margin: 0;
		position: relative;
	}

	#glivmed-header .glivmed-nav__main > .glivmed-nav__list > .trzy-kolumny > .sub-menu > li > .glivmed-nav__sub-item {
		width: 100%;
		justify-content: space-between;
		white-space: normal;
		padding: 8px 10px;
		font-size: 14px;
	}

	#glivmed-header .glivmed-nav__main > .glivmed-nav__list > .trzy-kolumny > .sub-menu > li > .sub-menu {
		width: auto;
		min-width: 200px;
		max-width: 280px;
		background-color: #ffedff;
		padding: 10px 12px;
		box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.1);
	}

	#glivmed-header .glivmed-nav__main > .glivmed-nav__list > .trzy-kolumny > .sub-menu .glivmed-nav__sub-arrow svg {
		width: 0.65em;
		height: 0.65em;
		transform: rotate(-90deg);
	}
}

@keyframes glivmed-blink-menu {
	0%,
	100% {
		background-color: var(--gh-accent);
		color: #fff;
	}
	50% {
		background-color: var(--gh-accent-hover);
		color: #fff;
	}
}

#glivmed-header .blinking-menu-item > a {
	animation: glivmed-blink-menu 2s infinite;
	padding: 8px 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	line-height: 1.2;
	white-space: nowrap;
	margin: 4px 0 4px 6px;
	border-bottom-color: transparent;
}

#glivmed-header .blinking-menu-item > a:hover,
#glivmed-header .blinking-menu-item > a:focus {
	border-bottom-color: transparent;
}

#glivmed-header .glivmed-nav__toggle {
	display: none;
	margin-left: auto;
	background-color: rgba(255, 255, 255, 0.87);
	border: 0;
	cursor: pointer;
	padding: 8px;
	color: var(--gh-heading);
	line-height: 0;
	border-radius: 3px;
}

#glivmed-header .glivmed-nav__toggle svg {
	width: 32px;
	height: 32px;
	fill: currentColor;
}

#glivmed-header .glivmed-nav__toggle-icon--close {
	display: none;
}

#glivmed-header .glivmed-nav__toggle[aria-expanded="true"] .glivmed-nav__toggle-icon--open {
	display: none;
}

#glivmed-header .glivmed-nav__toggle[aria-expanded="true"] .glivmed-nav__toggle-icon--close {
	display: inline;
}

#glivmed-header .glivmed-nav__toggle:focus {
	outline: none;
}

#glivmed-header .glivmed-nav__toggle:focus-visible {
	outline: 2px solid var(--gh-accent-hover);
	outline-offset: 2px;
}

#glivmed-header .glivmed-nav__panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	background: #ffffff;
	box-shadow: 0 4px 24px rgba(13, 50, 118, 0.12);
	border: 1px solid rgba(13, 50, 118, 0.06);
	z-index: 600;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
}

#glivmed-header .glivmed-nav__panel.is-open {
	display: block;
}

#glivmed-header .glivmed-nav__panel .glivmed-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#glivmed-header .glivmed-nav__panel .glivmed-nav__item,
#glivmed-header .glivmed-nav__panel .glivmed-nav__sub-item {
	display: flex;
	align-items: center;
	gap: 0.35em;
	padding: 12px 18px;
	color: var(--gh-heading);
	font-size: 15px;
	border-bottom: 1px solid rgba(13, 50, 118, 0.08);
}

#glivmed-header .glivmed-nav__panel a:hover,
#glivmed-header .glivmed-nav__panel a:focus,
#glivmed-header .glivmed-nav__panel a.glivmed-nav__item--active {
	background: rgba(13, 50, 118, 0.19);
}

#glivmed-header .glivmed-nav__panel .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 12px;
	display: none;
}

#glivmed-header .glivmed-nav__panel .menu-item-has-children.is-expanded > .sub-menu {
	display: block;
}

#glivmed-header .glivmed-nav__panel .menu-item-has-children > a {
	cursor: pointer;
}

.glivmed-header__banner {
	min-height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
}

.glivmed-header__banner-text {
	text-align: center;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--gh-text);
}

.glivmed-header__banner-text p {
	margin: 0;
}

.glivmed-header__banner-text a {
	color: var(--gh-accent-hover);
	text-decoration: none;
}

.glivmed-header__banner-text a:hover {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.glivmed-header__locations {
		padding: 8px;
	}

	.glivmed-header__location {
		--gh-loc-pad-y: 11px;
		--gh-loc-pad-x: 12px;
		--gh-loc-pad-r: 4px;
		font-size: 13px;
		min-height: 44px;
	}

	.glivmed-header__logos-inner {
		column-gap: 18px;
		padding: 10px 14px;
	}

	.glivmed-header__logo,
	.glivmed-header__partner-logo {
		height: 35px;
	}

	.glivmed-header__nav-inner {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		min-height: 44px;
		padding: 4px 12px;
		position: relative;
	}

	.glivmed-header__nav-mobile-logo {
		display: none;
	}

	.glivmed-header__nav-menu-wrap {
		position: static;
		width: 100%;
		max-width: none;
	}

	#glivmed-header .glivmed-nav {
		justify-content: flex-end;
		min-height: 44px;
	}

	#glivmed-header .glivmed-nav__main {
		display: none;
	}

	#glivmed-header .glivmed-nav__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: relative;
		z-index: 2;
	}

	#glivmed-header .glivmed-nav__panel {
		left: 0;
		right: 0;
		width: 100%;
	}
}

@media (max-width: 767px) {
	.glivmed-header__locations-inner {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.glivmed-header__locations {
		padding: 3px;
	}

	.glivmed-header__location {
		--gh-loc-pad-y: 8px;
		--gh-loc-pad-x: 12px;
		--gh-loc-pad-r: 8px;
		font-size: 12px;
		min-height: 0;
		overflow: hidden;
		box-shadow:
			-3px -2px 6px rgba(255, 154, 60, 0.175),
			3px -2px 6px rgba(0, 166, 255, 0.175),
			-3px 3px 6px rgba(255, 0, 86, 0.11),
			3px 3px 6px rgba(101, 0, 255, 0.13);
	}

	.glivmed-header__location-row {
		display: grid;
		/* chevron na 55% boxa */
		grid-template-columns: minmax(0, 11fr) 14px minmax(0, 9fr);
		column-gap: 8px;
		align-items: stretch;
	}

	.glivmed-header__location-gap {
		display: none;
	}

	.glivmed-header__location-main {
		grid-column: 1;
		max-width: none;
		min-width: 0;
	}

	.glivmed-header__location-address {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.glivmed-header__location-divider {
		grid-column: 2;
		width: 100%;
		margin-top: calc(-1 * var(--gh-loc-pad-y) + 1px);
		margin-bottom: calc(-1 * var(--gh-loc-pad-y) + 1px);
		margin-right: 0;
		justify-self: center;
		filter: drop-shadow(0 0 2px rgba(0, 166, 255, 0.25));
	}

	.glivmed-header__location-call {
		grid-column: 3;
		display: grid;
		grid-template-columns: auto auto auto 7.2em;
		column-gap: 5px;
		justify-self: stretch;
		justify-content: end;
		justify-items: start;
		align-items: center;
		width: 100%;
		min-width: 0;
	}

	.glivmed-header__location-info,
	.glivmed-header__location-email,
	.glivmed-header__location-phone .glivmed-header__location-icon {
		width: 1.15em;
		height: 1.15em;
	}

	.glivmed-header__location-info-icon,
	.glivmed-header__location-email-icon,
	.glivmed-header__location-phone-icon {
		width: 0.78em;
		height: 0.78em;
	}

	.glivmed-header__location-phone {
		display: contents;
	}

	.glivmed-header__location-phone .glivmed-header__location-icon {
		grid-column: 3;
	}

	.glivmed-header__location-phone-text {
		grid-column: 4;
		justify-self: start;
		font-variant-numeric: tabular-nums;
		min-width: 0;
		white-space: nowrap;
	}

	.glivmed-header__search {
		margin-bottom: 0;
	}

	.glivmed-header__logos {
		display: none;
	}

	.glivmed-header__nav-inner {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		min-height: 52px;
		padding: 0 52px 0 8px;
	}

	.glivmed-header__nav-mobile-logo {
		display: flex;
		flex: 1;
		justify-content: center;
		align-items: center;
		pointer-events: none;
	}

	.glivmed-header__nav-mobile-logo .glivmed-header__logo-link {
		pointer-events: auto;
	}

	.glivmed-header__nav-mobile-logo .glivmed-header__logo-img {
		max-height: 39px;
		max-width: 73vw;
	}

	.glivmed-header__nav-menu-wrap {
		position: absolute;
		inset: 0;
		width: 100%;
		max-width: none;
		transform: none;
	}

	#glivmed-header .glivmed-nav {
		width: 100%;
		height: 100%;
		justify-content: flex-end;
		align-items: center;
		pointer-events: none;
	}

	#glivmed-header .glivmed-nav__toggle {
		pointer-events: auto;
		margin: 0 8px 0 0;
	}

	#glivmed-header .glivmed-nav__panel {
		pointer-events: auto;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
	}

	#glivmed-header .glivmed-nav__main {
		display: none;
	}

	.glivmed-header__banner {
		min-height: 70px;
		padding: 2px 5px;
	}

	.glivmed-header__banner-text {
		font-size: 1rem;
	}
}
