.e8-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;

	height: 80px !important;
	min-height: 80px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	display: flex !important;
	align-items: center !important;
	background: #fff;
	border-bottom: 1px solid rgba(23, 35, 61, 0.08);
	transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.e8-header > .wp-block-group {
	width: 100%;
}

.e8-header img,
.e8-header svg {
	height: 26px !important;
	width: auto !important;
}

.e8-header .wp-block-image {
	line-height: 0 !important;
	margin: 0 !important;
	display: flex;
	align-items: center;
}

.e8-header .wp-block-group:has(> .e8-nav) {
	flex: 1 1 auto !important;
}

.e8-header .e8-nav {
	margin-left: auto !important;
	margin-right: auto !important;
}

.e8-header.is-scrolled {
	background: #fff;
	box-shadow: 0 12px 36px rgba(23, 35, 61, 0.06);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom-color: rgba(23, 35, 61, 0.08);
}

@media (min-width: 1000px) {
	.e8-nav-link {
		font-family: Outfit, system-ui, sans-serif !important;
		letter-spacing: 0.085em !important;
		font-size: 13px !important;
		font-weight: 500 !important;
	}

	.e8-header-cta .wp-block-button__link {
		font-family: Outfit, system-ui, sans-serif !important;
		letter-spacing: 0.085em !important;
		font-size: 12.5px !important;
		font-weight: 600 !important;
		padding: 14px 26px !important;
	}
}

.wp-block-post-content > .wp-block-group.alignfull:first-of-type,
.entry-content > .wp-block-group.alignfull:first-of-type,
.wp-block-post-content > .wp-block-media-text.alignfull:first-of-type,
.entry-content > .wp-block-media-text.alignfull:first-of-type,
.wp-block-post-content > .wp-block-group:first-of-type,
.entry-content > .wp-block-group:first-of-type,
.e8-contact-page > .e8-contact-hero:first-child,
.e8-nis2-page > .e8-nis2-hero:first-child {
	padding-top: 120px !important;
}
@media (max-width: 780px) {
	.wp-block-post-content > .wp-block-group.alignfull:first-of-type,
	.entry-content > .wp-block-group.alignfull:first-of-type,
	.wp-block-post-content > .wp-block-media-text.alignfull:first-of-type,
	.entry-content > .wp-block-media-text.alignfull:first-of-type,
	.wp-block-post-content > .wp-block-group:first-of-type,
	.entry-content > .wp-block-group:first-of-type,
	.e8-contact-page > .e8-contact-hero:first-child,
	.e8-nis2-page > .e8-nis2-hero:first-child {
		padding-top: 112px !important;
	}
}

.e8-nav-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.e8-nav-item {
	position: static;
}

.e8-nav-item-mobile-cta {
	display: none;
}

.e8-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--inter);
	font-size:16px;
	font-weight: 500;
	color: var(--wp--preset--color--navy, #17233D);
	text-decoration: none;
	padding: 8px 0;
	transition: color 0.18s;
}

.e8-nav-link:hover {
	color: #17233D;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

.e8-nav-caret {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform 0.2s;
}

.e8-nav-has-mega:hover .e8-nav-caret,
.e8-nav-has-mega.is-open .e8-nav-caret {
	transform: rotate(-135deg);
	margin-top: 3px;
}

.e8-mega-icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: center / contain no-repeat;
	display: inline-block;
}

.e8-mega-icon--strategia {
	background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20104%20104%22%3E%3Cpolyline%20points%3D%228%2C58%2028%2C58%2034%2C48%2040%2C58%2050%2C58%2057%2C24%2066%2C84%2072%2C56%2078%2C58%2096%2C58%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
}

.e8-mega-icon--liderzy {
	background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20104%20104%22%3E%3Cpath%20d%3D%22M10%2090%20H32%20V72%20H54%20V54%20H76%20V36%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M76%2036%20V12%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M76%2012%20L96%2019%20L76%2026%20Z%22%20fill%3D%22%2317233D%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%224%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
}

.e8-mega-icon--sprzedaz {
	background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20104%20104%22%3E%3Cpath%20d%3D%22M14%2032%20L36%2052%20L14%2072%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M42%2032%20L64%2052%20L42%2072%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M70%2032%20L92%2052%20L70%2072%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
}

.e8-mega-icon--procesy {
	background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20104%20104%22%3E%3Crect%20x%3D%226%22%20y%3D%2240%22%20width%3D%2224%22%20height%3D%2224%22%20rx%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M30%2052%20H38%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M52%2038%20L66%2052%20L52%2066%20L38%2052%20Z%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M66%2052%20H74%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Crect%20x%3D%2274%22%20y%3D%2240%22%20width%3D%2224%22%20height%3D%2224%22%20rx%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
}

.e8-mega-icon--zespoly {
	background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20104%20104%22%3E%3Cpolygon%20points%3D%2252%2C12%2092%2C41%2077%2C88%2027%2C88%2012%2C41%22%20fill%3D%22none%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpolygon%20points%3D%2252%2C38%2067%2C49%2061%2C67%2043%2C67%2037%2C49%22%20fill%3D%22%2317233D%22%20stroke%3D%22%2317233D%22%20stroke-width%3D%224%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
}

@media (min-width: 1100px) {
	.e8-mega {
		position: fixed;
		left: 0;
		right: 0;
		top: var(--e8-header-h, 82px);
		width: 100vw;
		box-sizing: border-box;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: 28px;
		row-gap: 6px;
		padding: 40px clamp(32px, 6vw, 96px) 44px;
		background: #fff;
		border-top: 1px solid var(--wp--preset--color--hairline, #E4E2DE);
		box-shadow: 0 24px 48px -20px rgba(23, 35, 61, 0.22);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.18s ease, transform 0.18s ease;
		pointer-events: none;
		z-index: 90;
	}

	.e8-nav-has-mega.is-open .e8-mega {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.e8-mega-area {
		min-width: 0;
	}

	.e8-mega-area-head {
		display: flex;
		align-items: flex-start;
		gap: 9px;
		font-family: var(--wp--preset--font-family--bricolage);
		font-weight: 600;
		font-size:13px;
		color: var(--wp--preset--color--navy, #17233D);
		letter-spacing: -0.01em;
		line-height: 1.22;
		text-decoration: none;
		padding: 0 0 10px;
		margin-bottom: 12px;
		border-bottom: 1px solid rgba(23, 35, 61, 0.14);
		min-height: 44px;
		overflow-wrap: break-word;
		hyphens: auto;
		transition: color 0.18s, border-color 0.18s;
	}

	.e8-mega-area-head:hover {
		color: var(--wp--preset--color--burgund, #991919);
		border-bottom-color: var(--wp--preset--color--burgund, #991919);
	}

	.e8-mega-services {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.e8-mega-services a {
		display: block;
		font-family: var(--wp--preset--font-family--inter);
		font-size:13px;
		line-height: 1.35;
		color: var(--wp--preset--color--ink-soft, #3A4557);
		text-decoration: none;
		padding: 6px 0;
		overflow-wrap: break-word;
		hyphens: auto;
		transition: color 0.18s, transform 0.18s;
	}

	.e8-mega-services a:hover {
		color: var(--wp--preset--color--burgund, #991919);
		transform: translateX(4px);
	}

	.e8-nav-toggle {
		display: none;
	}
}

@media (1000px <= width < 1100px) {
	.e8-mega {
		position: fixed;
		left: 0;
		right: 0;
		top: var(--e8-header-h, 82px);
		width: 100vw;
		box-sizing: border-box;
		display: flex;
		flex-wrap: wrap;
		gap: 26px 28px;
		padding: 32px 28px 36px;
		background: #fff;
		border-top: 1px solid var(--wp--preset--color--hairline, #E4E2DE);
		box-shadow: 0 24px 48px -20px rgba(23, 35, 61, 0.22);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.18s ease, transform 0.18s ease;
		pointer-events: none;
		z-index: 90;
	}

	.e8-nav-has-mega.is-open .e8-mega {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.e8-mega-area {
		flex: 1 1 200px;
		min-width: 180px;
	}

	.e8-mega-area-head {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		font-family: var(--wp--preset--font-family--bricolage);
		font-weight: 600;
		font-size:13px;
		color: var(--wp--preset--color--navy, #17233D);
		text-decoration: none;
		padding: 0 0 8px;
		margin-bottom: 10px;
		border-bottom: 1px solid rgba(23, 35, 61, 0.14);
	}

	.e8-mega-services {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.e8-mega-services a {
		display: block;
		font-family: var(--wp--preset--font-family--inter);
		font-size:13px;
		color: var(--wp--preset--color--ink-soft, #3A4557);
		text-decoration: none;
		padding: 5px 0;
	}

	.e8-mega-services a:hover {
		color: var(--wp--preset--color--burgund, #991919);
	}

	.e8-nav-toggle {
		display: none;
	}
}

@media (width < 1000px) {

	.e8-header:has(.e8-nav.is-mobile-open) {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	html.e8-menu-open,
	html.e8-menu-open body {
		overflow: hidden !important;
		overscroll-behavior: none;
	}

	.e8-header .wp-block-group:has(> .e8-nav) > .e8-nav {
		margin-left: auto !important;
		margin-right: 0 !important;
	}

	.e8-nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px !important;
		height: 44px !important;
		border: 1px solid var(--wp--preset--color--hairline, #E4E2DE);
		background: #fff;
		border-radius: 10px;
		padding: 0;
		cursor: pointer;
		position: relative;
		z-index: 2;
	}

	.e8-nav-toggle-bar,
	.e8-nav-toggle-bar::before,
	.e8-nav-toggle-bar::after {
		content: "";
		display: block;
		width: 20px;
		height: 2px;
		background: var(--wp--preset--color--navy, #17233D);
		position: relative;
		transition: transform 0.2s, opacity 0.2s;
	}

	.e8-nav-toggle-bar::before {
		position: absolute;
		top: -6px;
	}

	.e8-nav-toggle-bar::after {
		position: absolute;
		top: 6px;
	}

	.e8-nav.is-mobile-open .e8-nav-toggle-bar {
		background: transparent;
	}

	.e8-nav.is-mobile-open .e8-nav-toggle-bar::before {
		transform: translateY(6px) rotate(45deg);
	}

	.e8-nav.is-mobile-open .e8-nav-toggle-bar::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.e8-nav-list {
		display: none;
		position: fixed;
		left: 0;
		right: 0;
		top: var(--e8-header-h, 70px);
		bottom: 0;
		overflow-y: auto;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
		background: #fff;
		padding: 14px 24px 36px;
		z-index: 90;
		overscroll-behavior: contain;
	}

	.e8-nav.is-mobile-open .e8-nav-list {
		display: flex;
	}

	.e8-nav-item {
		border-top: 1px solid rgba(23, 35, 61, 0.08);
	}

	.e8-nav-item-mobile-cta {
		display: block;
		border-top: 0;
	}

	.e8-nav-link {
		width: 100%;
		justify-content: space-between;
		font-family: var(--wp--preset--font-family--bricolage);
		font-weight: 500;
		font-size:16px;
		padding: 15px 0;
	}

	.e8-nav-link:hover,
	.e8-nav-item.is-open > .e8-nav-link {
		color: #17233D;
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 6px;
	}

	.e8-mega {
		display: none;
		padding: 0 0 14px;
	}

	.e8-nav-has-mega.is-open .e8-mega {
		display: block;
	}

	.e8-mega-areas-mobile {
		display: block;
	}

	.e8-mega-area {
		border-top: 1px solid rgba(23, 35, 61, 0.08);
	}

	.e8-mega-area-head {
		display: flex;
		align-items: center;
		gap: 10px;
		font-family: var(--wp--preset--font-family--inter);
		font-weight: 600;
		font-size:13px;
		color: var(--wp--preset--color--navy, #17233D);
		text-decoration: none;
		padding: 13px 0;
	}

	.e8-mega-services {
		list-style: none;
		margin: 0 0 6px;
		padding: 0;
		display: none;
	}

	.e8-mega-area.is-open .e8-mega-services {
		display: block;
	}

	.e8-mega-services a {
		display: block;
		font-family: var(--wp--preset--font-family--inter);
		font-size:13px;
		color: var(--wp--preset--color--ink-soft, #3A4557);
		text-decoration: none;
		padding: 10px 0 10px 14px;
		border-left: 2px solid rgba(153, 25, 25, 0.28);
		margin-left: 8px;
	}

	.e8-mega-cta-mobile {
		display: block;
		margin-top: 18px;
		text-align: center;
		background: #324538;
		color: #fff;
		font-family: var(--wp--preset--font-family--bricolage);
		font-weight: 600;
		font-size:13px;
		padding: 13px 18px;
		text-decoration: none;
	}

	.e8-header-cta {
		display: none !important;
	}
}

.e8-nav :is(a, button):focus-visible {
	outline: 2px solid #17233D;
	outline-offset: -2px;
}
.e8-nav .e8-mega-cta-mobile:focus-visible {
	outline-color: #fff;
	outline-offset: -4px;
}
@media (min-width: 1000px) {
	.e8-mega {
		max-height: calc(100vh - var(--e8-header-h, 82px));
		max-height: calc(100dvh - var(--e8-header-h, 82px));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}
