/* Shared site header for every page of bimpsoft.com (landing, blog, knowledge base).
   Same look as the header of the new home page (landing/home-v2.html, approved by the owner):
   dark bar 58px, logo 28px, menu 13.5px 64px away from the logo, dark dropdown cards («A · Темний строгий список»).
   Markup: site/src/lib/site-header.mjs. Behaviour: /js/site-header.js. Every class starts with sh-. */

.sh-header,
.sh-mnav {
	font-family: Manrope, Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.sh-header *,
.sh-header *::before,
.sh-header *::after,
.sh-mnav *,
.sh-mnav *::before,
.sh-mnav *::after {
	box-sizing: border-box;
}
.sh-header :where(ul, li, p),
.sh-mnav :where(ul, li, p) {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sh-header img,
.sh-mnav img,
.sh-header svg,
.sh-mnav svg {
	display: block;
	max-width: none;
}
.sh-header button,
.sh-mnav button,
.sh-mnav summary {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
}
.sh-header a,
.sh-header a:hover,
.sh-mnav a,
.sh-mnav a:hover {
	text-decoration: none;
}
.sh-header strong,
.sh-mnav strong {
	font-weight: 700;
}
.sh-i {
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sh-header :focus-visible,
.sh-mnav :focus-visible {
	outline: 2px solid #9dc1ea;
	outline-offset: 3px;
	border-radius: 4px;
}
.sh-skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 300;
	background: #ffffff;
	color: #1a202c;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 700;
}
.sh-skip:focus {
	top: 12px;
}

/* ---------- Header: in the page flow, sticks to the top; the top bar scrolls away ---------- */
.sh-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 100;
	color: #ffffff;
	font-size: 16px;
}
.sh-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 28px;
}
.sh-topbar {
	border-bottom: 1px solid rgba(157, 193, 234, 0.14);
	background: #0c121d;
}
.sh-topbar-in {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 24px;
	height: 34px;
	font-size: 12px;
}
.sh-header .sh-topbar a,
.sh-header .sh-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	color: #c4cdd8;
	font-size: 12px;
	font-weight: 400;
	text-decoration: none;
}
.sh-header .sh-topbar a:hover,
.sh-header .sh-lang-btn:hover {
	color: #ffffff;
}
.sh-lang {
	position: relative;
}
.sh-header .sh-lang-btn {
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.sh-lang-list {
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 5;
	display: none;
	min-width: 170px;
	padding: 6px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
}
.sh-lang.is-open .sh-lang-list {
	display: block;
}
.sh-header .sh-topbar .sh-lang-list a {
	display: block;
	min-height: 0;
	padding: 8px 12px;
	border-radius: 6px;
	color: #1a202c;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
}
.sh-header .sh-topbar .sh-lang-list a:hover {
	background: #f2f6fa;
	color: #3a5f8a;
}
.sh-header .sh-topbar .sh-lang-list a[aria-current] {
	color: #3a5f8a;
}

.sh-bar {
	padding: 0 12px;
	background: rgba(12, 18, 29, 0.92);
	transition: background-color 0.2s;
}
.sh-bar-in {
	display: flex;
	align-items: center;
	gap: 32px;
	height: 58px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
}
.sh-header .sh-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	height: 44px;
	margin-right: 24px;
}
.sh-header .sh-logo img,
.sh-mnav .sh-logo img {
	width: auto;
	height: 28px;
}
.sh-nav {
	display: flex;
	align-items: center;
	gap: 22px;
	flex: 1 1 auto;
	margin-left: 64px;
}
.sh-nav-item {
	position: relative;
}
.sh-header .sh-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 10px 0;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	color: #e7eef6;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.sh-nav-link svg {
	transition: transform 0.15s;
}
.sh-header .sh-nav-link:hover,
.sh-header .sh-nav-item.is-open > .sh-nav-link {
	color: #9dc1ea;
	border-bottom-color: #9dc1ea;
}
.sh-nav-item.is-open > .sh-nav-link svg {
	transform: rotate(180deg);
}

/* Dropdowns: variant A «Темний строгий список» */
.sh-drop {
	position: absolute;
	top: 100%;
	left: -28px;
	z-index: 10;
	display: none;
	padding-top: 16px;
}
.sh-nav-item.is-open > .sh-drop {
	display: block;
}
.sh-drop-card {
	width: 400px;
	max-width: calc(100vw - 32px);
	padding: 26px 32px 14px;
	border-radius: 10px;
	background: #111a28;
	border: 1px solid rgba(157, 193, 234, 0.18);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
	color: #ffffff;
}
.sh-drop--mega .sh-drop-card {
	width: 860px;
	padding: 28px 36px 0;
	overflow: hidden;
}
.sh-drop-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 56px;
}
.sh-drop-col {
	display: flex;
	flex-direction: column;
}
.sh-drop-title {
	display: block;
	margin-bottom: 12px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.6;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9dc1ea;
}
.sh-header .sh-drop-ic {
	display: none;
}
.sh-header .sh-drop-link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 16px;
	gap: 16px;
	align-items: center;
	margin: 0;
	padding: 13px 0;
	border-top: 1px solid rgba(157, 193, 234, 0.12);
	color: #ffffff;
	text-decoration: none;
}
.sh-header .sh-drop-link::after {
	content: '→';
	font-size: 14px;
	color: #6f8aa8;
	transition: color 0.15s, transform 0.15s;
}
.sh-header .sh-drop-link:hover {
	background: transparent;
	color: #ffffff;
}
.sh-header .sh-drop-link:hover::after {
	color: #9dc1ea;
	transform: translateX(3px);
}
.sh-header .sh-drop-link strong {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
	color: #ffffff;
	transition: color 0.15s;
}
.sh-header .sh-drop-link:hover strong {
	color: #9dc1ea;
}
.sh-header .sh-drop-link small {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	line-height: 1.45;
	color: #9aa7b6;
}
.sh-drop-foot {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: 18px -36px 0;
	padding: 16px 36px;
	border-top: 1px solid rgba(157, 193, 234, 0.14);
	background: rgba(157, 193, 234, 0.05);
}
.sh-header .sh-go,
.sh-mnav .sh-go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #9dc1ea;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.sh-go svg {
	transition: transform 0.15s;
}
.sh-header .sh-go:hover,
.sh-mnav .sh-go:hover {
	color: #9dc1ea;
	text-decoration: underline;
}
.sh-go:hover svg {
	transform: translateX(3px);
}

/* Demo button */
.sh-header .sh-cta,
.sh-mnav .sh-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 5px;
	background: #9dc1ea;
	color: #0c121d;
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s;
}
.sh-header .sh-cta {
	margin-left: auto;
}
.sh-header .sh-cta:hover,
.sh-mnav .sh-cta:hover {
	background: #b7d3f1;
	color: #0c121d;
}
.sh-burger {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	padding: 0;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid rgba(157, 193, 234, 0.3);
	border-radius: 5px;
	color: #e7eef6;
	cursor: pointer;
}

/* Blog and knowledge base: the header scrolls away with the page (their own sticky menus start at the top) */
.sh-header.sh-header--static {
	position: relative;
	top: auto;
}

/* After scrolling: glass bar over the page */
.sh-header.is-stuck .sh-bar {
	background: rgba(12, 18, 29, 0.8);
	box-shadow: 0 1px 0 rgba(157, 193, 234, 0.16), 0 12px 30px -16px rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
}

/* ---------- Mobile menu ---------- */
.sh-mnav {
	position: fixed;
	inset: 0;
	z-index: 2000;
	overflow-y: auto;
	background: #0c121d;
	color: #ffffff;
	font-size: 16px;
}
.sh-mnav[hidden] {
	display: none;
}
.sh-mnav-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 64px;
	padding: 0 20px;
	border-bottom: 1px solid rgba(157, 193, 234, 0.14);
}
.sh-mnav .sh-logo {
	display: flex;
	align-items: center;
}
.sh-mnav-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(157, 193, 234, 0.3);
	border-radius: 5px;
	color: #ffffff;
	cursor: pointer;
}
.sh-mnav-body {
	padding: 8px 20px 32px;
}
.sh-mnav details {
	margin: 0;
	padding: 0;
	border: 0;
}
.sh-mnav summary,
.sh-mnav .sh-mnav-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 56px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid rgba(157, 193, 234, 0.14);
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	list-style: none;
}
/* page styles (landing styles.css) colour summary:hover and details[open] summary — not here */
.sh-mnav details > summary,
.sh-mnav details > summary:hover,
.sh-mnav details[open] > summary {
	background: transparent;
	border-color: rgba(157, 193, 234, 0.14);
	outline-offset: -2px;
}
.sh-mnav summary::-webkit-details-marker {
	display: none;
}
.sh-mnav summary::marker {
	content: '';
}
.sh-mnav summary svg {
	transition: transform 0.15s;
}
.sh-mnav details[open] > summary svg {
	transform: rotate(180deg);
}
.sh-mnav-sub {
	padding: 8px 0 12px;
	border-bottom: 1px solid rgba(157, 193, 234, 0.14);
}
.sh-mnav-title {
	display: block;
	margin: 10px 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9dc1ea;
}
.sh-mnav .sh-mnav-sub a:not(.sh-go) {
	display: flex;
	gap: 12px;
	align-items: center;
	min-height: 48px;
	padding: 6px 0;
	color: #ffffff;
	text-decoration: none;
}
.sh-mnav .sh-mnav-sub .sh-go {
	min-height: 44px;
	margin-top: 4px;
}
.sh-mnav .sh-drop-ic {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #1a2c46;
	color: #9dc1ea;
}
.sh-mnav-sub strong {
	display: block;
	font-size: 15px;
	line-height: 1.3;
}
.sh-mnav-sub small {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	color: #c4cdd8;
}
.sh-mnav .sh-mnav-cta {
	display: flex;
	width: 100%;
	min-height: 42px;
	margin-top: 24px;
	padding: 9px 18px;
	font-size: 14px;
}
.sh-mnav-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin-top: 20px;
	font-size: 14px;
}
.sh-mnav .sh-mnav-contacts a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #c4cdd8;
	text-decoration: none;
}
.sh-mnav-langs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.sh-mnav .sh-mnav-langs a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 12px;
	border: 1px solid rgba(157, 193, 234, 0.22);
	border-radius: 6px;
	color: #e7eef6;
	font-size: 13px;
	text-decoration: none;
}
.sh-mnav .sh-mnav-langs a[aria-current] {
	border-color: #9dc1ea;
	color: #9dc1ea;
}

/* ---------- Responsive ---------- */
/* Wide screens: the top bar (34px) scrolls away, the bar stays on top */
@media (min-width: 1101px) {
	.sh-header:not(.sh-header--static) {
		top: -35px;
	}
}
@media (max-width: 1100px) {
	.sh-nav,
	.sh-topbar {
		display: none;
	}
	.sh-bar-in {
		gap: 10px;
		height: 64px;
	}
	.sh-header .sh-logo {
		margin-right: 0;
	}
	.sh-header .sh-cta {
		min-height: 44px;
		padding: 10px 14px;
		font-size: 14px;
	}
	.sh-burger {
		display: flex;
		margin-left: 0;
		order: 3;
	}
}
@media (max-width: 960px) {
	.sh-header .sh-logo img,
	.sh-mnav .sh-logo img {
		height: 38px;
	}
}
@media (max-width: 640px) {
	.sh-wrap {
		padding: 0 20px;
	}
	.sh-bar {
		padding: 0 8px;
	}
	.sh-bar-in {
		padding: 0 12px;
	}
}
@media (max-width: 400px) {
	.sh-header .sh-logo img {
		height: 30px;
	}
	.sh-header .sh-cta {
		padding: 8px 10px;
		font-size: 13px;
	}
}
@media (max-width: 340px) {
	.sh-header .sh-cta {
		display: none;
	}
	.sh-burger {
		margin-left: auto;
	}
}
@media (prefers-reduced-motion: reduce) {
	.sh-header *,
	.sh-mnav * {
		transition: none !important;
	}
}

/* Два посилання внизу «Наших рішень» (uk): тур ліворуч, усі галузі праворуч */
.sh-drop-foot:has(.sh-go + .sh-go) { justify-content: space-between; }
.sh-mnav .sh-go + .sh-go { margin-top: 4px; }
