/* KDB Custom Header */

:root {
	--kdb-accent: #DC3D2A;
	--kdb-accent-hover: #c93220;
	--kdb-text: #1F2530;
	--kdb-bg: #14181F;
	--kdb-bg-deep: #0E1117;
	--kdb-line: rgba(255,255,255,0.08);
	--kdb-line-strong: rgba(255,255,255,0.18);
	--kdb-muted: rgba(255,255,255,0.55);
	--kdb-fg: #EDEEF0;

	--kdb-header-h: 84px;
	--kdb-header-h-scrolled: 64px;
	--kdb-header-h-mobile: 64px;
}

/* Reset Elementor kit button/anchor styles leaking into header */
body .kdb-header button,
body .kdb-mobile button,
body.elementor-kit-6 .kdb-header button,
body.elementor-kit-6 .kdb-mobile button {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--kdb-fg) !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	text-transform: none !important;
	letter-spacing: normal !important;
}
body .kdb-header button:hover,
body .kdb-header button:focus,
body .kdb-header button:active,
body .kdb-mobile button:hover,
body .kdb-mobile button:focus,
body .kdb-mobile button:active,
body.elementor-kit-6 .kdb-header button:hover,
body.elementor-kit-6 .kdb-header button:focus,
body.elementor-kit-6 .kdb-mobile button:hover,
body.elementor-kit-6 .kdb-mobile button:focus {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--kdb-fg) !important;
	border-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}

body .kdb-header a,
body .kdb-mobile a,
body.elementor-kit-6 .kdb-header a,
body.elementor-kit-6 .kdb-mobile a {
	background: transparent;
	background-color: transparent;
	border-radius: 0;
	box-shadow: none;
}

/* Header shell */
.kdb-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--kdb-bg);
	border-bottom: 1px solid var(--kdb-line);
	transition: background .25s ease, border-color .25s ease;
}
.kdb-header * { box-sizing: border-box; }
.kdb-header::before {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 1px;
	background: linear-gradient(90deg,
		transparent 0,
		transparent 8%,
		var(--kdb-accent) 8%,
		var(--kdb-accent) 9%,
		transparent 9%,
		transparent 100%);
	pointer-events: none;
	opacity: .75;
}

/* Top utility bar */
.kdb-topbar {
	border-bottom: 1px solid var(--kdb-line);
	background: var(--kdb-bg-deep);
	font-size: 12px;
	letter-spacing: .04em;
	max-height: 60px;
	overflow: hidden;
	transition: max-height .3s ease;
}
.kdb-topbar-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.kdb-topbar-left {
	display: flex;
	align-items: center;
	gap: 18px;
	color: var(--kdb-muted);
	text-transform: uppercase;
}
.kdb-topbar-left .kdb-coords {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.kdb-topbar-left .kdb-coords::before {
	content: "";
	width: 6px; height: 6px;
	background: var(--kdb-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(220,61,42,.18);
}
.kdb-topbar-right {
	display: flex;
	align-items: center;
	gap: 20px;
}
.kdb-topbar a {
	color: var(--kdb-muted) !important;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color .15s ease;
}
.kdb-topbar a:hover { color: var(--kdb-fg) !important; }
.kdb-topbar svg { width: 14px; height: 14px; }
.kdb-topbar-divider { color: var(--kdb-line-strong); user-select: none; }

/* Main row */
.kdb-main {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px;
	height: var(--kdb-header-h);
	display: flex;
	align-items: center;
	gap: 32px;
	transition: height .25s ease;
}

/* Logo */
.kdb-logo {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
}
.kdb-logo img {
	height: 44px;
	width: auto;
	max-width: 200px;
	display: block;
	transition: height .25s ease;
}

/* Primary navigation */
.kdb-nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.kdb-nav-item {
	position: relative;
}
.kdb-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	color: var(--kdb-fg) !important;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .01em;
	transition: color .15s ease;
	position: relative;
}
.kdb-nav-link::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	background: var(--kdb-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.kdb-nav-link:hover,
.kdb-nav-item.is-active > .kdb-nav-link {
	color: var(--kdb-fg) !important;
}
.kdb-nav-link:hover::after,
.kdb-nav-item.is-active > .kdb-nav-link::after {
	transform: scaleX(1);
}
.kdb-nav-link .kdb-caret {
	width: 10px; height: 10px;
	transition: transform .2s ease;
}
.kdb-nav-item:hover .kdb-caret {
	transform: rotate(180deg);
}

/* Dropdown / megamenu */
.kdb-dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(8px);
	width: 960px;
	background: var(--kdb-bg-deep);
	border: 1px solid var(--kdb-line);
	border-top: 2px solid var(--kdb-accent);
	padding: 24px;
	column-count: 3;
	column-gap: 32px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	box-shadow: 0 24px 48px rgba(0,0,0,.5);
}
.kdb-dropdown.kdb-dropdown--flat {
	width: 280px;
	column-count: 1;
}
.kdb-nav-item:hover .kdb-dropdown,
.kdb-nav-item:focus-within .kdb-dropdown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
.kdb-dropdown-group {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin-bottom: 20px;
}
.kdb-dropdown-group:last-child {
	margin-bottom: 0;
}
.kdb-dropdown-title {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--kdb-accent);
	margin: 0 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--kdb-line);
	display: flex;
	align-items: center;
	gap: 8px;
}
.kdb-dropdown-title::before {
	content: counter(group-idx, decimal-leading-zero);
	color: var(--kdb-muted);
	font-weight: 400;
}
.kdb-dropdown {
	counter-reset: group-idx;
}
.kdb-dropdown-group {
	counter-increment: group-idx;
}
.kdb-dropdown ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.kdb-dropdown a {
	display: block;
	padding: 6px 10px;
	margin-left: -10px;
	color: var(--kdb-fg) !important;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border-left: 2px solid transparent;
	transition: background .15s ease, border-color .15s ease, padding .15s ease, color .15s ease;
}
.kdb-dropdown a:hover {
	background: rgba(220,61,42,0.08) !important;
	border-left-color: var(--kdb-accent);
	padding-left: 14px;
	color: #fff !important;
}

/* Right actions */
.kdb-actions {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 16px;
}
.kdb-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	background: var(--kdb-accent) !important;
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	border: 1px solid var(--kdb-accent) !important;
	border-radius: 0 !important;
	transition: background .15s ease;
	position: relative;
}
.kdb-cta::before {
	content: "";
	position: absolute;
	top: -3px; right: -3px;
	width: 8px; height: 8px;
	border-top: 1px solid var(--kdb-accent);
	border-right: 1px solid var(--kdb-accent);
	opacity: .6;
}
.kdb-cta::after {
	content: "";
	position: absolute;
	bottom: -3px; left: -3px;
	width: 8px; height: 8px;
	border-bottom: 1px solid var(--kdb-accent);
	border-left: 1px solid var(--kdb-accent);
	opacity: .6;
}
.kdb-cta:hover {
	background: var(--kdb-accent-hover) !important;
	color: #fff !important;
}
.kdb-cta svg { width: 16px; height: 16px; }
.kdb-cta-phone {
	font-weight: 700;
}

/* Burger */
body .kdb-header .kdb-burger,
body.elementor-kit-6 .kdb-header .kdb-burger {
	display: none;
	width: 44px !important;
	min-width: 44px;
	height: 44px !important;
	flex: 0 0 44px;
	background: transparent !important;
	background-color: transparent !important;
	border: 1px solid var(--kdb-line-strong) !important;
	border-radius: 0 !important;
	cursor: pointer;
	padding: 0 !important;
	margin: 0;
	box-shadow: none !important;
	align-items: center;
	justify-content: center;
	position: relative;
}
body .kdb-header .kdb-burger:hover,
body .kdb-header .kdb-burger:focus,
body.elementor-kit-6 .kdb-header .kdb-burger:hover,
body.elementor-kit-6 .kdb-header .kdb-burger:focus {
	background: rgba(255,255,255,0.04) !important;
	border-color: var(--kdb-line-strong) !important;
	outline: none !important;
}
.kdb-burger span {
	display: block;
	position: absolute;
	height: 2px;
	width: 22px;
	background: var(--kdb-fg);
	transition: transform .25s ease, opacity .2s ease, top .25s ease;
	left: 50%;
	margin-left: -11px;
}
.kdb-burger span:nth-child(1) { top: 14px; }
.kdb-burger span:nth-child(2) { top: 21px; }
.kdb-burger span:nth-child(3) { top: 28px; }
body.kdb-menu-open .kdb-burger span:nth-child(1) {
	top: 21px;
	transform: rotate(45deg);
}
body.kdb-menu-open .kdb-burger span:nth-child(2) { opacity: 0; }
body.kdb-menu-open .kdb-burger span:nth-child(3) {
	top: 21px;
	transform: rotate(-45deg);
}

/* Scrolled state */
.kdb-header.is-scrolled {
	background: rgba(20, 24, 31, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.kdb-header.is-scrolled .kdb-main {
	height: var(--kdb-header-h-scrolled);
}
.kdb-header.is-scrolled .kdb-logo img { height: 36px; }
.kdb-header.is-scrolled .kdb-topbar {
	max-height: 0;
}

/* Mobile menu */
.kdb-mobile {
	position: fixed;
	top: 0; right: 0;
	width: min(420px, 90vw);
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	background: var(--kdb-bg);
	z-index: 1001;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .3s;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border-left: 1px solid var(--kdb-line-strong);
	display: flex;
	flex-direction: column;
}
.kdb-mobile * { box-sizing: border-box; }
body.kdb-menu-open .kdb-mobile {
	transform: translateX(0);
	visibility: visible;
	transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s;
}
.kdb-mobile-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	height: 100vh;
	height: 100dvh;
	background: rgba(0,0,0,.6);
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}
body.kdb-menu-open .kdb-mobile-overlay {
	opacity: 1;
	pointer-events: auto;
}
.kdb-mobile-head {
	height: var(--kdb-header-h-mobile);
	border-bottom: 1px solid var(--kdb-line);
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}

/* Close button — high specificity to override Elementor kit */
body .kdb-mobile .kdb-mobile-close,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-close {
	width: 44px !important;
	min-width: 44px;
	max-width: 44px;
	height: 44px !important;
	flex: 0 0 44px;
	background: transparent !important;
	background-color: transparent !important;
	border: 1px solid var(--kdb-line-strong) !important;
	border-radius: 0 !important;
	color: var(--kdb-fg) !important;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 0 !important;
	margin: 0;
	box-shadow: none !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 400 !important;
}
body .kdb-mobile .kdb-mobile-close:hover,
body .kdb-mobile .kdb-mobile-close:focus,
body .kdb-mobile .kdb-mobile-close:active,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-close:hover,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-close:focus,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-close:active {
	background: rgba(255,255,255,0.04) !important;
	background-color: rgba(255,255,255,0.04) !important;
	color: var(--kdb-fg) !important;
	border-color: var(--kdb-line-strong) !important;
	box-shadow: none !important;
	outline: none !important;
}

.kdb-mobile-body {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Mobile menu items — high specificity to kill Elementor kit backgrounds */
body .kdb-mobile .kdb-mobile-item,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item {
	border-bottom: 1px solid var(--kdb-line);
	background: transparent !important;
	background-color: transparent !important;
}
body .kdb-mobile .kdb-mobile-item > a,
body .kdb-mobile .kdb-mobile-item > button,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item > a,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item > button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--kdb-fg) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	padding: 16px 0 !important;
	margin: 0;
	text-decoration: none;
	cursor: pointer;
	text-align: left;
	text-transform: none !important;
	letter-spacing: normal !important;
	outline: none;
}
body .kdb-mobile .kdb-mobile-item > a:hover,
body .kdb-mobile .kdb-mobile-item > a:focus,
body .kdb-mobile .kdb-mobile-item > a:active,
body .kdb-mobile .kdb-mobile-item > button:hover,
body .kdb-mobile .kdb-mobile-item > button:focus,
body .kdb-mobile .kdb-mobile-item > button:active,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item > a:hover,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item > a:focus,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item > button:hover,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item > button:focus {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--kdb-fg) !important;
	border: 0 !important;
	border-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}
body .kdb-mobile .kdb-mobile-item.is-open > button,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item.is-open > button {
	color: var(--kdb-accent) !important;
}
body .kdb-mobile .kdb-mobile-item.is-active > a,
body .kdb-mobile .kdb-mobile-item.is-active > button,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item.is-active > a,
body.elementor-kit-6 .kdb-mobile .kdb-mobile-item.is-active > button {
	color: var(--kdb-accent) !important;
}

.kdb-mobile-item > button .kdb-caret {
	width: 12px; height: 12px;
	transition: transform .25s ease;
}
.kdb-mobile-item.is-open > button .kdb-caret {
	transform: rotate(180deg);
}
.kdb-mobile-sub {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
}
.kdb-mobile-item.is-open .kdb-mobile-sub {
	max-height: 2000px;
}
.kdb-mobile-sub-group {
	padding: 4px 0 12px;
}
.kdb-mobile-sub-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--kdb-accent);
	padding: 8px 0;
}
.kdb-mobile-sub a {
	display: block;
	padding: 8px 0 8px 16px;
	color: #ffffff !important;
	text-decoration: none;
	font-size: 14px;
	border-left: 1px solid var(--kdb-line);
}
.kdb-mobile-sub a:hover {
	color: #ffffff !important;
	border-left-color: var(--kdb-accent);
	background: transparent !important;
}

.kdb-mobile-foot {
	border-top: 1px solid var(--kdb-line);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-shrink: 0;
}
.kdb-mobile-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px;
	background: var(--kdb-accent) !important;
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	border-radius: 0 !important;
}
.kdb-mobile-cta:hover {
	background: var(--kdb-accent-hover) !important;
	color: #fff !important;
}
.kdb-mobile-socials {
	display: flex;
	gap: 8px;
}
.kdb-mobile-socials a {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px;
	border: 1px solid var(--kdb-line-strong);
	color: var(--kdb-fg) !important;
	text-decoration: none;
	font-size: 13px;
	background: transparent !important;
	transition: background .15s ease, border-color .15s ease;
}
.kdb-mobile-socials a:hover {
	background: rgba(255,255,255,0.04) !important;
	border-color: var(--kdb-accent);
	color: var(--kdb-fg) !important;
}
.kdb-mobile-socials svg { width: 16px; height: 16px; }
.kdb-mobile-lang {
	display: flex;
	gap: 0;
	border: 1px solid var(--kdb-line-strong);
}
.kdb-mobile-lang a {
	flex: 1;
	padding: 12px;
	text-align: center;
	color: var(--kdb-muted) !important;
	text-decoration: none;
	font-size: 12px;
	letter-spacing: .1em;
	background: transparent !important;
}
.kdb-mobile-lang a.is-active {
	background: var(--kdb-fg) !important;
	color: var(--kdb-bg) !important;
}

.kdb-mobile-phone-btn {
	display: none;
}

/* Language switcher in actions area — shown on all viewports */
.kdb-lang-switcher {
	display: inline-flex;
	align-items: stretch;
	height: 44px;
	border: 1px solid var(--kdb-line-strong);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
}
.kdb-lang-switcher a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	min-width: 40px;
	color: var(--kdb-muted) !important;
	text-decoration: none;
	background: transparent !important;
	transition: color .15s ease, background .15s ease;
}
.kdb-lang-switcher a + a {
	border-left: 1px solid var(--kdb-line-strong);
}
.kdb-lang-switcher a.is-active {
	color: var(--kdb-fg) !important;
	background: rgba(255,255,255,0.06) !important;
}
.kdb-lang-switcher a:hover {
	color: var(--kdb-fg) !important;
}

/* Defense against legacy header icons (Astra/Elementor mega menu) */
.kdb-header .kdb-dropdown a::before,
.kdb-header .kdb-nav-link::before,
.kdb-mobile a::before,
.kdb-mobile .kdb-mobile-sub-title::before {
	display: none !important;
}
.kdb-dropdown-title::before {
	display: inline !important;
}
.kdb-header .kdb-dropdown a > i,
.kdb-header .kdb-dropdown a > svg.menu-item-icon,
.kdb-header .kdb-dropdown a > .menu-image,
.kdb-header .kdb-nav-link > i,
.kdb-header .kdb-nav-link > .menu-image,
.kdb-mobile a > i,
.kdb-mobile a > .menu-image {
	display: none !important;
}

/* Responsive */
@media (max-width: 1180px) {
	.kdb-nav-link { padding: 10px 10px; font-size: 13px; }
	.kdb-main { padding: 0 24px; gap: 20px; }
	.kdb-cta-text { display: none; }
	.kdb-dropdown { width: 760px; column-count: 3; column-gap: 24px; }
}
@media (max-width: 960px) {
	.kdb-topbar { display: none; }
	.kdb-nav { display: none; }
	.kdb-cta { display: none; }
	body .kdb-header .kdb-burger,
	body.elementor-kit-6 .kdb-header .kdb-burger {
		display: inline-flex;
	}
	.kdb-main {
		height: var(--kdb-header-h-mobile);
		justify-content: space-between;
		padding: 0 16px;
	}
	.kdb-header.is-scrolled .kdb-main {
		height: var(--kdb-header-h-mobile);
	}
	.kdb-logo img { height: 32px; max-width: 160px; }
	.kdb-header.is-scrolled .kdb-logo img { height: 32px; }

	.kdb-actions {
		gap: 8px;
	}
	.kdb-mobile-phone-btn {
		display: inline-flex;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		background: var(--kdb-accent) !important;
		color: #fff !important;
		text-decoration: none;
		border-radius: 0 !important;
	}
	.kdb-mobile-phone-btn svg { width: 18px; height: 18px; }
}

body.kdb-menu-open {
	overflow: hidden;
}

@media (max-width: 340px) {
	.kdb-lang-switcher a {
		min-width: 24px;
		padding: 0 4px;
	}
}