.bshc-header {
	position: absolute;
	top: 0;
	left: var(--bshc-gutter);
	right: var(--bshc-gutter);
	z-index: 150;
	height: 96px;
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto auto;
	align-items: center;
	gap: 42px;
	border-bottom: 1px solid rgb(247 244 239 / 18%);
	color: var(--bshc-color-text);
	box-sizing: border-box;
	transition:
		top 320ms cubic-bezier(0.22, 1, 0.36, 1),
		height 320ms cubic-bezier(0.22, 1, 0.36, 1),
		padding 320ms cubic-bezier(0.22, 1, 0.36, 1),
		background-color 240ms ease,
		border-color 240ms ease,
		border-radius 320ms cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 240ms ease;
}

.bshc-header-sentinel {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.bshc-header.is-scrolled {
	position: fixed;
	top: 10px;
	height: 76px;
	padding-inline: clamp(18px, 1.5vw, 30px);
	border: 1px solid rgb(247 244 239 / 18%);
	border-radius: 12px;
	background: rgb(19 19 22 / 92%);
	box-shadow: 0 16px 38px rgb(0 0 0 / 22%);
	backdrop-filter: blur(14px) saturate(130%);
}

.bshc-theme .bshc-header__brand {
	width: fit-content;
	color: #e74c3c;
	font-family: var(--bshc-font-display);
	font-size: 70px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.055em;
	text-decoration: none;
	animation: bshc-brand-color 7s ease infinite;
	transition: font-size 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bshc-header.is-scrolled .bshc-header__brand {
	font-size: 52px;
}

@media (min-width: 1025px) and (max-width: 1365px) {
	.bshc-theme .bshc-header__brand {
		font-size: 60px;
	}

	.bshc-header.is-scrolled .bshc-header__brand {
		font-size: 46px;
	}
}

@keyframes bshc-brand-color {
	0%, 100% { color: #e74c3c; }
	20% { color: #f1c40f; }
	40% { color: #1abc9c; }
	60% { color: #3498db; }
	80% { color: #9b59b6; }
}

.bshc-header__menu,
.bshc-header__cta-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bshc-header__menu {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(38px, 4vw, 82px);
	min-width: clamp(390px, 29vw, 560px);
}

.bshc-header__menu a {
	position: relative;
	display: block;
	padding: 12px 0;
	color: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.065em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 200ms ease;
}

.bshc-header__menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 5px;
	height: 1px;
	background: currentColor;
	transition: right 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bshc-header__menu a:hover::after,
.bshc-header__menu a:focus-visible::after,
.bshc-header__menu a[aria-expanded="true"]::after,
.bshc-header__menu .current-menu-item > a::after {
	right: 0;
}

.bshc-header__cta-menu a {
	min-width: 244px;
	min-height: 52px;
	display: grid;
	place-items: center;
	padding-inline: 20px;
	border: 1px solid var(--bshc-color-accent);
	border-radius: 8px;
	background: var(--bshc-color-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.bshc-header__cta-menu .bshc-primary-cta {
	min-width: 254px;
}

.bshc-header__cta-menu a:hover,
.bshc-header__cta-menu a:focus-visible {
	border-color: #f7f7f3;
	background: #f7f7f3;
	color: #131316;
}

.bshc-header__menu-toggle {
	display: none;
}

.bshc-mega-menu {
	position: fixed;
	top: 112px;
	left: 0;
	right: 0;
	z-index: 140;
	max-height: calc(100dvh - 108px);
	padding: 22px var(--bshc-gutter) 28px;
	overflow: auto;
	border-top: 1px solid rgb(247 244 239 / 16%);
	border-bottom: 1px solid rgb(247 244 239 / 16%);
	background: #101013;
	color: #f7f7f3;
	box-shadow: 0 28px 58px rgb(0 0 0 / 34%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-14px) scale(0.985);
	transform-origin: top center;
	transition:
		opacity 220ms ease,
		visibility 220ms ease,
		transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
		top 320ms cubic-bezier(0.22, 1, 0.36, 1),
		left 320ms cubic-bezier(0.22, 1, 0.36, 1),
		right 320ms cubic-bezier(0.22, 1, 0.36, 1),
		padding 320ms cubic-bezier(0.22, 1, 0.36, 1),
		border-radius 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bshc-header-scrolled .bshc-mega-menu {
	top: 94px;
	left: var(--bshc-gutter);
	right: var(--bshc-gutter);
	padding: 22px 26px 28px;
	border: 1px solid rgb(247 244 239 / 18%);
	border-radius: 12px;
	background: rgb(19 19 22 / 96%);
	box-shadow: 0 18px 42px rgb(0 0 0 / 34%);
}

.bshc-mega-menu.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
}

.bshc-mega-menu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 2px 0 20px;
	color: rgb(247 247 243 / 72%);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.bshc-mega-menu__head a {
	color: #f7f7f3;
	text-decoration: none;
}

.bshc-mega-menu__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-top: 1px solid rgb(247 247 243 / 28%);
	border-left: 1px solid rgb(247 247 243 / 28%);
	list-style: none;
}

.bshc-mega-menu__grid li {
	min-width: 0;
}

.bshc-mega-menu__grid a {
	min-height: 132px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	padding: 25px 26px;
	border-right: 1px solid rgb(247 247 243 / 28%);
	border-bottom: 1px solid rgb(247 247 243 / 28%);
	background: #121216;
	color: #f7f7f3;
	text-decoration: none;
	transition:
		background-color 240ms ease,
		border-color 240ms ease,
		transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bshc-mega-menu__grid a:hover,
.bshc-mega-menu__grid a:focus-visible {
	border-color: rgb(200 22 69 / 62%);
	background: rgb(200 22 69 / 18%);
	transform: translateY(-2px);
}

.bshc-mega-menu__grid strong {
	display: block;
	font-family: var(--bshc-font-display);
	font-size: clamp(25px, 2vw, 34px);
	font-weight: 600;
	line-height: 1;
}

.bshc-mega-menu__grid span {
	display: block;
	color: rgb(247 247 243 / 72%);
	font-size: 15px;
	line-height: 1.35;
}

.bshc-mobile-menu {
	display: none;
}

@media (max-width: 1024px) {
	.bshc-header {
		height: 94px;
		grid-template-columns: 1fr auto;
		border: 0;
	}

	.bshc-header.is-scrolled {
		border: 0;
	}

	.bshc-theme .bshc-header__brand {
		font-size: 46px;
	}

	.bshc-header__nav,
	.bshc-header__cta {
		display: none;
	}

	.bshc-header__menu-toggle {
		width: 48px;
		height: 48px;
		display: grid;
		place-content: center;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: inherit;
		cursor: pointer;
		transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.bshc-header__menu-toggle:hover,
	.bshc-header__menu-toggle:focus-visible {
		background: transparent;
	}

	.bshc-header__menu-toggle:focus-visible {
		outline: 0;
	}

	.bshc-header__menu-toggle:focus-visible .bshc-header__menu-lines span {
		background: #f59e0b;
	}

	.bshc-header__menu-lines {
		position: relative;
		width: 21px;
		height: 15px;
		display: block;
	}

	.bshc-header__menu-lines span {
		position: absolute;
		left: 0;
		width: 21px;
		height: 1px;
		background: currentColor;
		transform-origin: center;
		transition:
			top 260ms cubic-bezier(0.22, 1, 0.36, 1),
			transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
			opacity 180ms ease;
	}

	.bshc-header__menu-lines span:first-child {
		top: 2px;
	}

	.bshc-header__menu-lines span:nth-child(2) {
		top: 7px;
	}

	.bshc-header__menu-lines span:last-child {
		top: 12px;
	}

	.bshc-header__menu-toggle[aria-expanded="true"] .bshc-header__menu-lines span:first-child {
		top: 7px;
		transform: rotate(45deg);
	}

	.bshc-header__menu-toggle[aria-expanded="true"] .bshc-header__menu-lines span:nth-child(2) {
		opacity: 0;
		transform: scaleX(0);
	}

	.bshc-header__menu-toggle[aria-expanded="true"] .bshc-header__menu-lines span:last-child {
		top: 7px;
		transform: rotate(-45deg);
	}

	.bshc-mega-menu {
		display: none;
	}

	.bshc-mobile-menu {
		position: fixed;
		inset: 0;
		z-index: 210;
		width: 100vw;
		height: 100dvh;
		display: block;
		padding: 112px clamp(20px, 5vw, 48px) 32px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #101013;
		color: #f7f7f3;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-8px);
		transition:
			opacity 220ms ease,
			visibility 220ms ease,
			transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.bshc-mobile-menu[data-bshc-space-background="active"] {
		isolation: isolate;
	}

	.bshc-mobile-menu__cosmos {
		z-index: 0;
		opacity: 0.68;
	}

	.bshc-mobile-menu.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.bshc-mobile-menu--nojs {
		position: relative;
		inset: auto;
		z-index: auto;
		height: auto;
		min-height: 100dvh;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.bshc-menu-open {
		overflow: hidden;
	}

	.bshc-menu-open .bshc-cookie-consent.is-visible {
		opacity: 0;
		pointer-events: none;
		transform: translate(-50%, 14px);
	}

	.bshc-menu-open .bshc-header {
		position: fixed;
		top: 0;
		z-index: 220;
		border: 0;
		border-radius: 0;
		background: #101013;
		box-shadow: none;
		backdrop-filter: none;
	}

	.bshc-mobile-menu__inner {
		position: relative;
		z-index: 1;
		width: min(100%, 760px);
		margin-inline: auto;
	}

	.bshc-mobile-menu__primary,
	.bshc-mobile-menu__service-grid,
	.bshc-mobile-menu__cta {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.bshc-mobile-menu__primary > li,
	.bshc-mobile-menu__service-grid > li,
	.bshc-mobile-menu__cta {
		opacity: 0;
		transform: translateY(14px);
		transition:
			opacity 260ms ease,
			transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.bshc-mobile-menu.is-open .bshc-mobile-menu__primary > li,
	.bshc-mobile-menu.is-open .bshc-mobile-menu__service-grid > li,
	.bshc-mobile-menu.is-open .bshc-mobile-menu__cta,
	.bshc-mobile-menu--nojs .bshc-mobile-menu__primary > li,
	.bshc-mobile-menu--nojs .bshc-mobile-menu__service-grid > li,
	.bshc-mobile-menu--nojs .bshc-mobile-menu__cta {
		opacity: 1;
		transform: none;
	}

	.bshc-mobile-menu.is-open .bshc-mobile-menu__primary > li:nth-child(1) { transition-delay: 60ms; }
	.bshc-mobile-menu.is-open .bshc-mobile-menu__service-grid > li:nth-child(1) { transition-delay: 90ms; }
	.bshc-mobile-menu.is-open .bshc-mobile-menu__service-grid > li:nth-child(2) { transition-delay: 110ms; }
	.bshc-mobile-menu.is-open .bshc-mobile-menu__service-grid > li:nth-child(3) { transition-delay: 130ms; }
	.bshc-mobile-menu.is-open .bshc-mobile-menu__service-grid > li:nth-child(4) { transition-delay: 150ms; }
	.bshc-mobile-menu.is-open .bshc-mobile-menu__service-grid > li:nth-child(5) { transition-delay: 170ms; }
	.bshc-mobile-menu.is-open .bshc-mobile-menu__service-grid > li:nth-child(6) { transition-delay: 190ms; }
	.bshc-mobile-menu.is-open .bshc-mobile-menu__primary > li:nth-child(2) { transition-delay: 220ms; }
	.bshc-mobile-menu.is-open .bshc-mobile-menu__primary > li:nth-child(3) { transition-delay: 250ms; }
	.bshc-mobile-menu.is-open .bshc-mobile-menu__cta { transition-delay: 280ms; }

	.bshc-mobile-menu__primary > li > a,
	.bshc-mobile-menu__cta a {
		min-height: 72px;
		display: flex;
		align-items: center;
		border-bottom: 1px solid rgb(247 247 243 / 18%);
		color: inherit;
		font-family: var(--bshc-font-display);
		font-size: clamp(36px, 6vw, 46px);
		font-weight: 600;
		line-height: 1;
		letter-spacing: -0.02em;
		text-decoration: none;
	}

	.bshc-mobile-menu__services > a {
		border-bottom: 0;
	}

	.bshc-mobile-menu__service-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		padding: 12px 0 24px;
		border-bottom: 1px solid rgb(247 247 243 / 18%);
	}

	.bshc-mobile-menu__service-grid > li {
		min-width: 0;
	}

	.bshc-mobile-menu__service-grid a {
		min-height: 64px;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 10px;
		padding: 11px 13px;
		border: 1px solid rgb(247 247 243 / 14%);
		border-radius: 10px;
		background: rgb(247 247 243 / 5%);
		color: rgb(247 247 243 / 92%);
		font-size: 17px;
		font-weight: 600;
		line-height: 1.16;
		text-decoration: none;
		transition:
			border-color 180ms ease,
			background-color 180ms ease,
			color 180ms ease;
	}

	.bshc-mobile-menu__service-arrow {
		color: #e74c3c;
		font-size: 17px;
		font-weight: 700;
		line-height: 1;
		transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
	}

	.bshc-mobile-menu__primary a:hover,
	.bshc-mobile-menu__primary a:focus-visible,
	.bshc-mobile-menu__service-grid a:hover,
	.bshc-mobile-menu__service-grid a:focus-visible,
	.bshc-mobile-menu__cta a:hover,
	.bshc-mobile-menu__cta a:focus-visible {
		color: #e74c3c;
	}

	.bshc-mobile-menu__service-grid a:hover,
	.bshc-mobile-menu__service-grid a:focus-visible {
		border-color: rgb(231 76 60 / 72%);
		background: rgb(231 76 60 / 12%);
		color: #f7f7f3;
	}

	.bshc-mobile-menu__service-grid a:hover .bshc-mobile-menu__service-arrow,
	.bshc-mobile-menu__service-grid a:focus-visible .bshc-mobile-menu__service-arrow {
		transform: translate(2px, -2px);
	}

	.bshc-mobile-menu__service-grid a:focus-visible {
		outline: 2px solid #f59e0b;
		outline-offset: 2px;
	}

	.bshc-mobile-menu__cta {
		margin-top: 18px;
	}

	.bshc-mobile-menu__cta .bshc-primary-cta {
		width: 100%;
		min-height: 62px;
		padding-inline: 20px;
		font-size: 16px;
	}
}

@media (max-width: 700px) {
	.bshc-header {
		left: 16px;
		right: 16px;
		height: 78px;
	}

	.bshc-theme .bshc-header__brand {
		font-size: 37px;
	}

	.bshc-header.is-scrolled {
		top: 8px;
		height: 64px;
		padding-inline: 12px;
	}

	.bshc-header.is-scrolled .bshc-header__brand {
		font-size: 32px;
	}

	.bshc-header__menu-toggle {
		width: 46px;
		height: 46px;
	}

	.bshc-menu-open .bshc-header,
	.bshc-menu-open .bshc-header.is-scrolled {
		top: 0;
		height: 78px;
		padding-inline: 0;
	}

	.bshc-menu-open .bshc-header__brand,
	.bshc-menu-open .bshc-header.is-scrolled .bshc-header__brand {
		font-size: 37px;
	}

	.bshc-mobile-menu {
		padding: 96px 28px 24px;
	}

	.bshc-mobile-menu__primary > li > a,
	.bshc-mobile-menu__cta a {
		min-height: 68px;
		font-size: 36px;
	}

	.bshc-mobile-menu__service-grid {
		gap: 10px;
	}

	.bshc-mobile-menu__service-grid a {
		min-height: 62px;
		padding: 10px 12px;
		font-size: 16px;
	}
}

@media (max-width: 360px) {
	.bshc-mobile-menu {
		padding: 92px 20px max(22px, env(safe-area-inset-bottom));
	}

	.bshc-mobile-menu__primary > li > a {
		min-height: 64px;
		font-size: 34px;
	}

	.bshc-mobile-menu__service-grid {
		grid-template-columns: 1fr;
		gap: 8px;
		padding-top: 10px;
	}

	.bshc-mobile-menu__service-grid a {
		min-height: 54px;
	}

	.bshc-mobile-menu__cta {
		margin-top: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bshc-header,
	.bshc-header__brand,
	.bshc-header__menu a,
	.bshc-header__menu a::after,
	.bshc-header__cta-menu a,
	.bshc-header__menu-toggle,
	.bshc-header__menu-lines span,
	.bshc-mega-menu,
	.bshc-mega-menu__grid a,
	.bshc-mobile-menu,
	.bshc-mobile-menu__primary > li,
	.bshc-mobile-menu__service-grid > li,
	.bshc-mobile-menu__cta,
	.bshc-mobile-menu__service-grid a,
	.bshc-mobile-menu__service-arrow {
		animation: none !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}
}
