:root {
	--td-blue: #014a99;
	--td-blue-dark: #001529;
	--td-blue-border: #d0deec;
	--td-blue-pale: #f0f6ff;
	--td-green: #98c713;
	--td-green-dark: #7aa30f;
	--td-header-width: 1280px;
}

.td-site-header {
	position: relative;
	z-index: 100;
	background: #fff;
	color: var(--td-blue-dark);
	font-family: "DM Sans", sans-serif;
}

.td-header-container {
	width: min(100% - 48px, var(--td-header-width));
	margin-inline: auto;
}

.td-header-primary {
	border-bottom: 1px solid var(--td-blue-border);
}

.td-header-primary-inner {
	display: grid;
	grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.3fr) auto auto auto;
	align-items: center;
	gap: clamp(14px, 1.6vw, 28px);
	min-height: 92px;
}

.td-header-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}

.td-header-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.td-header-brand .custom-logo {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 38px;
}

.td-site-title {
	color: var(--td-blue);
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.td-corporate-link,
.td-mobile-corporate-link {
	color: #3d74b2;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.td-corporate-link:hover,
.td-corporate-link:focus-visible,
.td-mobile-corporate-link:hover,
.td-mobile-corporate-link:focus-visible {
	color: var(--td-blue);
}

.td-header-search {
	display: flex;
	align-items: stretch;
	min-width: 0;
	height: 44px;
	background: #fff;
	border: 1px solid #7ea3cb;
	border-radius: 4px;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.td-header-search:focus-within {
	border-color: var(--td-blue);
	box-shadow: 0 0 0 3px rgba(1, 74, 153, 0.12);
}

.td-header-search input[type="search"] {
	min-width: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 16px;
	color: var(--td-blue-dark);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	font-size: 0.9rem;
}

.td-header-search input[type="search"]:focus {
	outline: 0;
	box-shadow: none;
}

.td-header-search input[type="search"]::placeholder {
	color: #5e7890;
	opacity: 1;
}

.td-header-search button {
	display: grid;
	flex: 0 0 46px;
	place-items: center;
	margin: 0;
	padding: 0;
	color: #fff;
	background: var(--td-blue);
	border: 0;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
}

.td-header-search button:hover,
.td-header-search button:focus-visible {
	color: var(--td-blue-dark);
	background: var(--td-green);
}

.td-project-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 170px;
	min-height: 44px;
	padding: 0 20px;
	color: var(--td-blue-dark);
	background: var(--td-green);
	border: 1px solid var(--td-green);
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.td-header-configurator-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 170px;
	min-height: 44px;
	padding: 0 20px;
	color: #fff;
	background: var(--td-blue-dark);
	border: 1px solid var(--td-blue-dark);
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.td-header-configurator-cta:hover,
.td-header-configurator-cta:focus-visible,
.td-header-configurator-cta:active {
	color: var(--td-blue-dark);
	background: var(--td-green);
	border-color: var(--td-green);
	transform: translateY(-1px);
}

.td-language-switcher {
	position: relative;
	z-index: 20;
}

.td-language-switcher details {
	position: relative;
}

.td-language-switcher summary {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 76px;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0 12px;
	color: var(--td-blue-dark);
	background: #fff;
	border: 1px solid var(--td-blue-border);
	border-radius: 4px;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.td-language-switcher summary::-webkit-details-marker {
	display: none;
}

.td-language-switcher summary::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: auto;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.td-language-switcher details[open] summary::after {
	transform: translateY(2px) rotate(225deg);
}

.td-language-switcher__globe {
	font-size: 1rem;
	line-height: 1;
}

.td-language-switcher ul {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 100%;
	margin: 0;
	padding: 5px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--td-blue-border);
	border-radius: 5px;
	box-shadow: 0 10px 24px rgba(0, 27, 50, 0.14);
}

.td-language-switcher li {
	margin: 0;
}

.td-language-switcher a {
	display: flex;
	align-items: center;
	min-width: 64px;
	min-height: 38px;
	box-sizing: border-box;
	padding: 0 10px;
	color: var(--td-blue-dark);
	border-radius: 3px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.td-language-switcher a:hover,
.td-language-switcher a:focus-visible {
	color: var(--td-blue-dark);
	background: #e6f1c2;
}

.td-language-switcher .is-current a {
	color: var(--td-blue);
	background: var(--td-blue-pale);
}

.td-language-switcher--mobile {
	display: none;
}

.td-project-cta:hover,
.td-project-cta:focus-visible {
	color: #fff;
	background: var(--td-blue);
	border-color: var(--td-blue);
	transform: translateY(-1px);
}

.td-header-navigation-row {
	background: #fff;
	border-bottom: 1px solid var(--td-blue-border);
	box-shadow: 0 5px 18px rgba(0, 21, 41, 0.04);
}

.td-primary-menu,
.td-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.td-primary-menu {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: clamp(16px, 2.35vw, 36px);
}

.td-primary-menu > li {
	position: relative;
	margin: 0;
}

.td-primary-menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0;
	color: var(--td-blue-dark);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
}

.td-primary-menu > li > a::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	background: var(--td-green);
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 160ms ease;
}

.td-primary-menu > li > a:hover,
.td-primary-menu > li > a:focus-visible,
.td-primary-menu > .current-menu-item > a,
.td-primary-menu > .current-menu-ancestor > a,
.td-primary-menu > .current_page_parent > a {
	color: var(--td-green-dark);
}

.td-primary-menu > li > a:hover::after,
.td-primary-menu > li > a:focus-visible::after,
.td-primary-menu > .current-menu-item > a::after,
.td-primary-menu > .current-menu-ancestor > a::after,
.td-primary-menu > .current_page_parent > a::after {
	transform: scaleX(1);
}

.td-primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	display: none;
	min-width: 240px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--td-blue-border);
	box-shadow: 0 12px 28px rgba(0, 21, 41, 0.14);
}

.td-primary-menu li:hover > .sub-menu,
.td-primary-menu li:focus-within > .sub-menu {
	display: block;
}

.td-primary-menu .sub-menu a {
	display: block;
	padding: 10px 12px;
	color: var(--td-blue-dark);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.td-primary-menu .sub-menu a:hover,
.td-primary-menu .sub-menu a:focus-visible {
	color: var(--td-blue-dark);
	background: #e6f1c2;
}

.td-menu-toggle,
.td-mobile-panel {
	display: none;
}

.td-site-header a:focus-visible,
.td-site-header button:focus-visible,
.td-site-header input:focus-visible {
	outline: 3px solid rgba(1, 74, 153, 0.3);
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.td-header-container {
		width: min(100% - 32px, var(--td-header-width));
	}

	.td-header-primary-inner {
		grid-template-columns: minmax(145px, 0.75fr) minmax(190px, 1.1fr) auto auto auto;
		gap: 10px;
	}

	.td-header-brand .custom-logo {
		max-width: 165px;
	}

	.td-corporate-link {
		display: none;
	}

	.td-primary-menu {
		gap: 18px;
	}

	.td-primary-menu > li > a {
		font-size: 0.8125rem;
	}
}

@media (max-width: 820px) {
	body.td-menu-open {
		overflow: hidden;
	}

	.td-header-container {
		width: min(100% - 32px, var(--td-header-width));
	}

	.td-header-primary-inner {
		display: flex;
		justify-content: space-between;
		gap: 18px;
		min-height: 70px;
	}

	.td-header-brand {
		flex: 1 1 auto;
	}

	.td-header-brand .custom-logo {
		max-width: 160px;
		max-height: 34px;
	}

	.td-header-search-desktop,
	.td-header-primary-inner > .td-header-configurator-cta,
	.td-header-primary-inner > .td-project-cta,
	.td-language-switcher--desktop,
	.td-header-navigation-row {
		display: none;
	}

	.td-menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 44px;
		margin: 0;
		padding: 0 12px;
		color: var(--td-blue-dark);
		background: transparent;
		border: 1px solid transparent;
		border-radius: 4px;
		font-family: inherit;
		font-size: 0.8125rem;
		font-weight: 700;
		cursor: pointer;
	}

	.td-menu-toggle:hover,
	.td-menu-toggle:focus-visible {
		color: var(--td-blue);
		background: var(--td-blue-pale);
	}

	.td-menu-toggle-icon {
		display: grid;
		gap: 4px;
		width: 22px;
	}

	.td-menu-toggle-icon span {
		display: block;
		height: 2px;
		background: currentColor;
		border-radius: 2px;
		transition: transform 160ms ease, opacity 160ms ease;
	}

	.td-menu-toggle[aria-expanded="true"] .td-menu-toggle-icon span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.td-menu-toggle[aria-expanded="true"] .td-menu-toggle-icon span:nth-child(2) {
		opacity: 0;
	}

	.td-menu-toggle[aria-expanded="true"] .td-menu-toggle-icon span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.td-mobile-panel {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: block;
		max-height: calc(100vh - 70px);
		overflow-y: auto;
		background: #fff;
		border-top: 1px solid var(--td-blue-border);
		border-bottom: 1px solid var(--td-blue-border);
		box-shadow: 0 18px 36px rgba(0, 21, 41, 0.16);
	}

	.td-mobile-panel[hidden] {
		display: none;
	}

	.td-mobile-panel-inner {
		display: grid;
		gap: 20px;
		width: min(100% - 32px, 560px);
		margin-inline: auto;
		padding-block: 24px 30px;
	}

	.td-mobile-menu > li {
		margin: 0;
		border-bottom: 1px solid var(--td-blue-border);
	}

	.td-mobile-menu a {
		display: block;
		padding: 13px 4px;
		color: var(--td-blue-dark);
		font-size: 0.9375rem;
		font-weight: 600;
		text-decoration: none;
	}

	.td-mobile-menu a:hover,
	.td-mobile-menu a:focus-visible,
	.td-mobile-menu .current-menu-item > a,
	.td-mobile-menu .current_page_parent > a {
		color: var(--td-green-dark);
	}

	.td-mobile-menu .sub-menu {
		margin: 0 0 8px 16px;
		padding: 0;
		list-style: none;
	}

	.td-language-switcher--mobile {
		display: block;
	}

	.td-language-switcher--mobile details,
	.td-language-switcher--mobile summary,
	.td-language-switcher--mobile ul {
		width: 100%;
	}

	.td-language-switcher--mobile ul {
		position: static;
		margin-top: 6px;
	}

	.td-language-switcher--mobile a {
		width: 100%;
		min-height: 40px;
	}

	.td-project-cta-mobile {
		width: 100%;
	}

	.td-header-configurator-cta-mobile {
		width: 100%;
	}

	.td-mobile-corporate-link {
		justify-self: center;
		font-size: 0.8125rem;
	}
}

@media (max-width: 480px) {
	.td-header-container,
	.td-mobile-panel-inner {
		width: calc(100% - 24px);
	}

	.td-header-primary-inner {
		min-height: 64px;
	}

	.td-header-brand .custom-logo {
		max-width: 142px;
		max-height: 31px;
	}

	.td-menu-toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.td-site-header *,
	.td-site-header *::before,
	.td-site-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
