/* VERSION: header-v1 | real HTML work-hours label + inline SVG search | 2026-08-22 */
/*
Header styles.
*/

/* =========================
   1. Верхняя синяя плашка
   ========================= */

.custom-top-bar {
	background: #0b7fa8;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.4;
}

.custom-top-bar__inner {
	max-width: 1540px;
	margin: 0 auto;
	padding: 10px 70px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.custom-top-bar__menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 26px;
}

.custom-top-bar__menu a {
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	white-space: nowrap;
}

.custom-top-bar__menu a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.custom-top-bar__text {
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	text-align: right;
	white-space: nowrap;
}

/* =========================
   2. Основная белая шапка
   ========================= */

@media (min-width: 1025px) {
.site-header {
	background: #ffffff;
	border-bottom: none;
	padding: 0;
}

.site-header .inside-header {
	display: block !important;
	max-width: none;
	padding: 0;
}

.custom-main-header {
	background: #ffffff;
}

.custom-main-header__inner {
	max-width: 1540px;
	margin: 0 auto;
	padding: 28px 70px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(18px, 2.2vw, 46px);
	min-width: 0;
}

.custom-main-header__logo {
	flex: 0 1 430px;
	min-width: 240px;
	max-width: 430px;
	margin-right: clamp(22px, 2.4vw, 42px);
}

.custom-main-header__logo img {
	display: block;
	width: 100%;
	max-width: 460px;
	height: auto;
}

.custom-main-header__right {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(14px, 1.7vw, 28px);
	flex: 0 1 auto;
	min-width: 0;
	margin-left: auto;
	flex-wrap: nowrap;
}

.custom-main-header__socials {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.custom-main-header__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 52px;
	height: 52px;

	border-radius: 12px;
	background: #f3f6fb;

	text-decoration: none;
	line-height: 1;
	overflow: hidden;

	transition: transform 0.2s ease, background 0.2s ease;
}

.custom-main-header__socials a:hover {
	background: #e8eef8;
	transform: translateY(-2px);
}

.custom-main-header__socials img {
	display: block;
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.custom-main-header__contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 0 0 auto;
	min-width: 0;
	white-space: nowrap;
}

.custom-main-header__contact span {
	color: #8b8b8b;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.custom-main-header__contact a {
	color: #0086bd;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

.custom-main-header__contact a:hover {
	color: #006f9c;
	text-decoration: underline;
}

.custom-main-header__cta {
	flex: 0 0 auto;
}

.custom-main-header__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 16px 26px;
	border-radius: 7px;
	background: #f55743;
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.custom-main-header__button:hover {
	background: #df4936;
	color: #ffffff;
}

.custom-main-header__search {
	position: relative;
	flex: 0 0 auto;
}

.custom-main-header__search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: #111111;
	background: #f3f6fb;
	border: 1px solid rgba(7, 31, 99, 0.08);
	text-decoration: none;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	border-radius: 10px;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	list-style: none;
}

.custom-main-header__search-toggle::-webkit-details-marker {
	display: none;
}

.custom-main-header__search-toggle::marker {
	content: "";
}

.custom-main-header__search-toggle:hover,
.custom-main-header__search[open] .custom-main-header__search-toggle {
	color: #0b7fa8;
	background: #eaf5fb;
	border-color: rgba(11, 150, 198, 0.22);
	box-shadow: 0 8px 18px rgba(13, 45, 98, 0.08);
}

.custom-main-header__search-form {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 10050;
	width: min(330px, calc(100vw - 48px));
	padding: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid rgba(11, 150, 198, 0.18);
	border-radius: 12px;
	box-shadow: 0 18px 42px rgba(13, 45, 98, 0.18);
}

.custom-main-header__search-form::before {
	content: "";
	position: absolute;
	top: -7px;
	right: 14px;
	width: 14px;
	height: 14px;
	background: #ffffff;
	border-left: 1px solid rgba(11, 150, 198, 0.18);
	border-top: 1px solid rgba(11, 150, 198, 0.18);
	transform: rotate(45deg);
}

.custom-main-header__search-input {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 10px 12px;
	color: #071f63;
	background: #f8fbff;
	border: 1px solid rgba(7, 31, 99, 0.16);
	border-radius: 9px;
	font-size: 15px;
	line-height: 1.2;
	outline: none;
}

.custom-main-header__search-input:focus {
	border-color: #0b96c6;
	box-shadow: 0 0 0 3px rgba(11, 150, 198, 0.14);
}

.custom-main-header__search-submit {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	height: 42px;
	padding: 10px 16px;
	color: #ffffff;
	background: #0b96c6;
	border: 0;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.custom-main-header__search-submit:hover,
.custom-main-header__search-submit:focus-visible {
	background: #0b7fa8;
}


/* =========================
   Новая разметка шапки из hooks.php
   ========================= */

.custom-main-header__availability {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	min-width: 0;
}

.custom-main-header__online {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 2px;
	color: #6f7e8b;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.custom-main-header__online-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: #2bb673;
	box-shadow: 0 0 0 3px rgba(43, 182, 115, 0.10);
}

.custom-main-header__hours {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: #7d8790;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.15;
	white-space: nowrap;
}

.custom-main-header__contacts {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.3vw, 22px);
	flex: 0 0 auto;
	min-width: 0;
}

.custom-main-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.custom-main-header__proposal {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 52px;
	padding: 8px 12px;
	border: 1px solid rgba(11, 150, 198, 0.16);
	border-radius: 10px;
	background: #f3f8fb;
	color: #0b4f78;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.custom-main-header__proposal:hover,
.custom-main-header__proposal:focus-visible {
	background: #eaf5fb;
	border-color: rgba(11, 150, 198, 0.30);
	color: #073d5b;
	text-decoration: none;
	transform: translateY(-1px);
}

.custom-main-header__proposal-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
}

.custom-main-header__proposal-icon img {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.custom-main-header__proposal-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.05;
}

.custom-main-header__proposal-text strong {
	font-size: 12px;
	font-weight: 700;
}

}

/* =========================
   3. Скрываем стандартный брендинг GeneratePress
   ========================= */

.site-branding,
.inside-header .site-logo,
.inside-header .site-branding-container {
	display: none;
}

/* =========================
   4. Нижнее основное меню GeneratePress
   ========================= */

@media (min-width: 1025px) {
#site-navigation,
.main-navigation,
.site-header .main-navigation,
.nav-float-right .inside-header .main-navigation {
	display: block !important;
	float: none !important;
	clear: both !important;
	width: 100% !important;
	margin: 0 !important;
	background: #0b96c6 !important;
	position: sticky;
	top: 0;
	z-index: 9999;
	box-shadow: 0 8px 22px rgba(7, 31, 99, 0.12);
}

/* Липкая синяя плашка меню: поправка для админ-панели WordPress */

.admin-bar #site-navigation,
.admin-bar .main-navigation,
.admin-bar .site-header .main-navigation,
.admin-bar .nav-float-right .inside-header .main-navigation {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar #site-navigation,
	.admin-bar .main-navigation,
	.admin-bar .site-header .main-navigation,
	.admin-bar .nav-float-right .inside-header .main-navigation {
		top: 46px;
	}
}


.site-header .main-navigation {
	width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

#site-navigation .inside-navigation,
.main-navigation .inside-navigation {
	max-width: 1540px !important;
	margin: 0 auto !important;
	padding-left: 70px !important;
	padding-right: 70px !important;
	background: #0b96c6 !important;
}

#site-navigation .main-nav,
#site-navigation .main-nav > ul,
.main-navigation .main-nav,
.main-navigation .main-nav > ul {
	background: #0b96c6 !important;
}

#site-navigation .main-nav > ul,
.main-navigation .main-nav > ul {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

#site-navigation .main-nav > ul > li,
.main-navigation .main-nav > ul > li {
	position: relative;
}

#site-navigation .main-nav > ul > li > a,
.main-navigation .main-nav > ul > li > a {
	display: flex !important;
	align-items: center !important;
	color: #ffffff !important;
	background: transparent !important;
	padding: 18px 16px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
}

#site-navigation .main-nav > ul > li > a:hover,
#site-navigation .main-nav > ul > li.current-menu-item > a,
#site-navigation .main-nav > ul > li.current-menu-parent > a,
.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a,
.main-navigation .main-nav > ul > li.current-menu-parent > a {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.12) !important;
}

.main-navigation .menu-toggle {
	color: #ffffff !important;
	font-weight: 700;
	text-transform: uppercase;
	background: #0b96c6 !important;
}

#site-navigation,
.main-navigation,
.main-navigation .inside-navigation,
.main-navigation .main-nav,
.main-navigation .main-nav > ul {
	overflow: visible !important;
}

}

/* =========================
   6. Адаптив: критичные правила шапки
   ========================= */

@media (min-width: 1025px) and (max-width: 1540px) {
	.custom-main-header__inner {
		gap: 24px;
	}

	.custom-main-header__logo {
		flex-basis: 400px;
		max-width: 400px;
		margin-right: 24px;
	}

	.custom-main-header__right {
		gap: 18px;
	}

	.custom-main-header__socials {
		gap: 9px;
	}

	.custom-main-header__socials a {
		width: 46px;
		height: 46px;
	}

	.custom-main-header__socials img {
		width: 30px;
		height: 30px;
	}

	.custom-main-header__button {
		padding-left: 22px;
		padding-right: 22px;
	}
}

@media (min-width: 1025px) and (max-width: 1400px) {
	.custom-top-bar__inner,
	.custom-main-header__inner,
	.main-navigation .inside-navigation {
		padding-left: 40px !important;
		padding-right: 40px !important;
	}

	.custom-main-header__inner {
		gap: 28px;
	}

	.custom-main-header__logo {
		flex-basis: 390px;
		max-width: 390px;
		margin-right: 24px;
	}

	.custom-main-header__right {
		gap: 20px;
	}

	.custom-main-header__contact a {
		font-size: 16px;
	}

	.custom-main-header__button {
		padding-left: 22px;
		padding-right: 22px;
		font-size: 13px;
	}

	#site-navigation .main-nav > ul > li > a,
	.main-navigation .main-nav > ul > li > a {
		padding-left: 13px !important;
		padding-right: 13px !important;
	}
}

@media (min-width: 1025px) and (max-width: 1280px) {
	.custom-top-bar__inner,
	.custom-main-header__inner,
	.main-navigation .inside-navigation {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	.custom-top-bar__menu {
		gap: 18px;
	}

	.custom-main-header__inner {
		gap: 18px;
	}

	.custom-main-header__logo {
		flex-basis: 340px;
		max-width: 340px;
		min-width: 220px;
		margin-right: 18px;
	}

	.custom-main-header__right {
		gap: 14px;
	}

	.custom-main-header__socials {
		gap: 8px;
	}

	.custom-main-header__socials a {
		width: 42px;
		height: 42px;
		border-radius: 10px;
	}

	.custom-main-header__socials img {
		width: 28px;
		height: 28px;
	}

	.custom-main-header__contact a {
		font-size: 16px;
	}

	.custom-main-header__button {
		min-height: 48px;
		padding: 14px 18px;
		font-size: 12px;
	}

	.custom-main-header__search-toggle {
		width: 36px;
		height: 36px;
		font-size: 26px;
	}

	#site-navigation .main-nav > ul,
	.main-navigation .main-nav > ul {
		gap: 4px !important;
	}

	#site-navigation .main-nav > ul > li > a,
	.main-navigation .main-nav > ul > li > a {
		padding: 17px 11px !important;
		font-size: 15px !important;
	}
}

@media (min-width: 1025px) and (max-width: 1200px) {
	.custom-main-header__inner {
		align-items: center;
		gap: 14px;
	}

	.custom-main-header__right {
		flex-wrap: nowrap;
		justify-content: flex-end;
		gap: 12px;
	}

	.custom-main-header__logo {
		flex-basis: 310px;
		max-width: 310px;
		min-width: 200px;
		margin-right: 14px;
	}

	.custom-main-header__contact span {
		display: none;
	}

	.custom-main-header__contact {
		gap: 0;
	}

	.custom-main-header__contact a {
		font-size: 15px;
	}

	.custom-main-header__button {
		min-height: 44px;
		padding: 13px 16px;
		font-size: 12px;
	}
}

@media (min-width: 1025px) and (max-width: 1100px) {
	.custom-top-bar__inner,
	.custom-main-header__inner,
	.main-navigation .inside-navigation {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.custom-main-header__inner {
		gap: 12px;
	}

	.custom-main-header__logo {
		flex-basis: 280px;
		max-width: 280px;
		min-width: 180px;
		margin-right: 12px;
	}

	.custom-main-header__right {
		gap: 10px;
	}

	.custom-main-header__socials {
		gap: 7px;
	}

	.custom-main-header__socials a {
		width: 38px;
		height: 38px;
		border-radius: 9px;
	}

	.custom-main-header__socials img {
		width: 26px;
		height: 26px;
	}

	.custom-main-header__contact a {
		font-size: 15px;
	}

	.custom-main-header__cta,
	.custom-main-header__search {
		display: none;
	}

	#site-navigation .main-nav > ul > li > a,
	.main-navigation .main-nav > ul > li > a {
		padding: 16px 9px !important;
		font-size: 14px !important;
	}
}



@media (min-width: 1025px) and (max-width: 1280px) {
	.custom-main-header__hours {
		display: none;
	}

	.custom-main-header__contacts {
		gap: 10px;
	}

	.custom-main-header__proposal {
		padding-left: 9px;
		padding-right: 9px;
	}
}

@media (min-width: 1025px) and (max-width: 1100px) {
	.custom-main-header__online {
		display: none;
	}

	.custom-main-header__contacts .custom-main-header__contact:first-child {
		display: none;
	}

	.custom-main-header__proposal-text {
		display: none;
	}

	.custom-main-header__proposal {
		width: 44px;
		height: 44px;
		min-height: 44px;
		padding: 0;
		justify-content: center;
	}
}

@media (min-width: 1025px) {
	body {
		padding-top: 0;
	}
}

/* Mobile-only injected Blog item: hidden outside the opened mobile menu. */
.serg-mobile-blog-injected {
	display: none !important;
}
/* Real HTML label is hidden by default so the existing mobile footer remains unchanged. */
.custom-main-header__hours-label {
	display: none;
}

/* ==========================================================
   7. Desktop header v2 — compact, fluid and zoom-safe
   1025px+ only. Mobile header/menu is not affected.
   ========================================================== */

@media (min-width: 1025px) {
	.custom-main-header {
		background: #ffffff;
	}

	.custom-main-header__inner {
		box-sizing: border-box;
		width: 100%;
		max-width: 1540px;
		margin: 0 auto;
		padding: 18px clamp(28px, 3vw, 48px);
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: clamp(14px, 1.35vw, 22px);
		min-width: 0;
	}

	/* Logo grows on wide screens and is allowed to shrink smoothly. */
	.custom-main-header__logo {
		flex: 1 1 430px;
		width: auto;
		min-width: 300px;
		max-width: 480px;
		margin: 0 !important;
	}

	.custom-main-header__logo a {
		display: block;
		width: 100%;
	}

	.custom-main-header__logo img {
		display: block;
		width: 100%;
		max-width: 480px;
		height: auto;
		max-height: 78px;
		object-fit: contain;
		object-position: left center;
	}

	/* Everything to the right stays in one physical row. */
	.custom-main-header__right {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: clamp(10px, 1vw, 16px);
		flex: 0 1 auto;
		min-width: 0;
		margin-left: auto;
		flex-wrap: nowrap;
	}

	/* Messenger block + work hours are side by side. */
	.custom-main-header__availability {
		display: flex !important;
		flex-direction: row !important;
		align-items: flex-start !important;
		justify-content: flex-start !important;
		gap: clamp(16px, 1.2vw, 21px) !important;
		flex: 0 0 auto;
		min-width: 0;
	}

	/* Online is centered against the full three-icon row. */
	.custom-main-header__socials {
		display: grid !important;
		grid-template-columns: repeat(3, 44px);
		grid-template-rows: auto 44px;
		align-items: center;
		justify-content: center;
		column-gap: 7px;
		row-gap: 6px;
		flex: 0 0 auto;
		margin-left: -6px;
		margin-right: 6px;
	}

	.custom-main-header__online {
		grid-column: 1 / -1;
		grid-row: 1;
		justify-self: center;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		gap: 6px;
		width: max-content;
		margin: 0 !important;
		color: #667783;
		font-size: 11px;
		font-weight: 600;
		line-height: 1;
		white-space: nowrap;
	}

	.custom-main-header__online-dot {
		display: inline-block;
		width: 7px;
		height: 7px;
		flex: 0 0 7px;
		border-radius: 50%;
		background: #2bb673;
		box-shadow:
			0 0 0 3px rgba(43, 182, 115, 0.11),
			0 0 9px rgba(43, 182, 115, 0.42);
	}

	.custom-main-header__socials > a {
		grid-row: 2;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 44px !important;
		height: 44px !important;
		margin: 0 !important;
		border-radius: 11px !important;
		background: #f1f7fb !important;
		border: 1px solid rgba(11, 150, 198, 0.07);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
		overflow: hidden;
		transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
	}

	.custom-main-header__socials > a:hover {
		background: #e8f4fa !important;
		border-color: rgba(11, 150, 198, 0.17);
		transform: translateY(-1px);
	}

	.custom-main-header__socials > a img {
		display: block;
		width: 30px !important;
		height: 30px !important;
		max-width: 30px !important;
		max-height: 30px !important;
		object-fit: contain;
	}

	.custom-main-header__hours {
		display: flex !important;
		flex-direction: column !important;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 3px;
		margin: 0 !important;
		color: #75838d;
		font-size: 10px;
		font-weight: 500;
		line-height: 1.17;
		white-space: nowrap;
	}

	.custom-main-header__hours-label {
		display: block;
		margin: 0 0 3px;
		color: #667783;
		font-size: 11px;
		font-weight: 600;
		line-height: 1;
		white-space: nowrap;
	}

	.custom-main-header__contacts {
		display: flex !important;
		align-items: center;
		gap: clamp(11px, 0.9vw, 16px) !important;
		flex: 0 0 auto;
		min-width: 0;
	}

	.custom-main-header__contact {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: center;
		gap: 5px;
		flex: 0 0 auto;
		min-width: 0;
		white-space: nowrap;
	}

	.custom-main-header__contact span,
	.custom-main-header__contact-label {
		display: block !important;
		color: #8a9197;
		font-size: 10px;
		font-weight: 500;
		line-height: 1;
		letter-spacing: 0.015em;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.custom-main-header__contact a {
		color: #007fae;
		font-size: 16px;
		font-weight: 500;
		line-height: 1.15;
		text-decoration: none;
		white-space: nowrap;
	}

	.custom-main-header__contact a:hover {
		color: #006d96;
		text-decoration: underline;
	}

	.custom-main-header__actions {
		display: flex !important;
		align-items: center;
		gap: 8px !important;
		flex: 0 0 auto;
		min-width: 0;
	}

	.custom-main-header__cta,
	.custom-main-header__search {
		display: block !important;
		flex: 0 0 auto;
	}

	/* Download target/href remains entirely in hooks.php; only presentation changes here. */
	.custom-main-header__proposal {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 48px;
		padding: 7px 10px;
		border: 1px solid rgba(11, 150, 198, 0.18);
		border-radius: 11px;
		background: #f3f8fb;
		color: #0b4f78;
		text-decoration: none;
		white-space: nowrap;
		box-sizing: border-box;
	}

	.custom-main-header__proposal-icon {
		width: 30px;
		height: 30px;
		flex: 0 0 30px;
	}

	.custom-main-header__proposal-icon img {
		width: 30px;
		height: 30px;
		object-fit: contain;
	}

	.custom-main-header__proposal-text {
		display: flex !important;
		flex-direction: column;
		gap: 0;
		font-size: 9px;
		font-weight: 500;
		line-height: 1.02;
	}

	.custom-main-header__proposal-text strong {
		font-size: 11px;
		font-weight: 700;
	}

	/* Inline SVG magnifier: crisp at browser zoom and requires no extra request. */
	.custom-main-header__search-toggle {
		position: relative;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 44px !important;
		height: 44px !important;
		padding: 0 !important;
		border: 1px solid rgba(7, 31, 99, 0.10);
		border-radius: 11px;
		background-color: #f3f7fb;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='10.8' cy='10.8' r='6.2' stroke='%23073D5B' stroke-width='1.8'/%3E%3Cpath d='M15.5 15.5L20 20' stroke='%23073D5B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 23px 23px;
		color: #073d5b;
		font-size: 0 !important;
		line-height: 1;
		cursor: pointer;
		box-sizing: border-box;
	}

	.custom-main-header__search-toggle > span {
		display: none !important;
	}

	.custom-main-header__search-toggle::before,
	.custom-main-header__search-toggle::after {
		content: none !important;
		display: none !important;
	}

	.custom-main-header__search-toggle:hover,
	.custom-main-header__search[open] .custom-main-header__search-toggle {
		color: #0b8fbe;
		background-color: #eaf5fb;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='10.8' cy='10.8' r='6.2' stroke='%230B8FBE' stroke-width='1.8'/%3E%3Cpath d='M15.5 15.5L20 20' stroke='%230B8FBE' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
		border-color: rgba(11, 150, 198, 0.22);
	}
}

/* Large / normal desktop. */
@media (min-width: 1501px) {
	.custom-main-header__logo {
		flex-basis: 450px;
		min-width: 400px;
		max-width: 480px;
	}
}

/* 125% zoom on a 1920px display usually lands around this range. */
@media (min-width: 1025px) and (max-width: 1500px) {
	.custom-main-header__inner {
		padding-left: 30px !important;
		padding-right: 30px !important;
		gap: 14px !important;
	}

	.custom-main-header__logo {
		flex-basis: 390px;
		min-width: 330px;
		max-width: 420px;
	}

	.custom-main-header__right {
		gap: 11px !important;
	}
}

@media (min-width: 1025px) and (max-width: 1380px) {
	.custom-main-header__inner {
		padding-left: 24px !important;
		padding-right: 24px !important;
		gap: 11px !important;
	}

	.custom-main-header__logo {
		flex-basis: 335px;
		min-width: 285px;
		max-width: 360px;
	}

	.custom-main-header__right {
		gap: 9px !important;
	}

	.custom-main-header__availability {
		gap: 12px !important;
	}

	.custom-main-header__socials {
		margin-left: -3px;
		margin-right: 3px;
	}

	.custom-main-header__socials {
		grid-template-columns: repeat(3, 40px);
		grid-template-rows: auto 40px;
		column-gap: 6px;
	}

	.custom-main-header__socials > a {
		width: 40px !important;
		height: 40px !important;
	}

	.custom-main-header__socials > a img {
		width: 27px !important;
		height: 27px !important;
	}

	.custom-main-header__online {
		font-size: 10px;
	}

	.custom-main-header__hours {
		font-size: 9px;
	}

	.custom-main-header__hours-label {
		font-size: 10px;
		margin-bottom: 2px;
	}

	.custom-main-header__contacts {
		gap: 9px !important;
	}

	.custom-main-header__contact span,
	.custom-main-header__contact-label {
		font-size: 9px;
	}

	.custom-main-header__contact a {
		font-size: 14.5px;
	}

	.custom-main-header__proposal {
		min-height: 44px;
		padding: 6px 8px;
		gap: 6px;
	}

	.custom-main-header__proposal-icon,
	.custom-main-header__proposal-icon img {
		width: 27px;
		height: 27px;
		flex-basis: 27px;
	}

	.custom-main-header__proposal-text {
		font-size: 8px;
	}

	.custom-main-header__proposal-text strong {
		font-size: 10px;
	}

	.custom-main-header__search-toggle {
		width: 40px !important;
		height: 40px !important;
	}
}

/* Narrow desktop / high zoom: preserve every block, compress only dimensions. */
@media (min-width: 1025px) and (max-width: 1220px) {
	.custom-main-header__inner {
		padding-left: 18px !important;
		padding-right: 18px !important;
		gap: 8px !important;
	}

	.custom-main-header__logo {
		flex: 1 1 270px;
		min-width: 235px;
		max-width: 300px;
	}

	.custom-main-header__right {
		gap: 7px !important;
	}

	.custom-main-header__availability {
		gap: 9px !important;
	}

	.custom-main-header__socials {
		margin-left: 0;
		margin-right: 0;
		grid-template-columns: repeat(3, 36px);
		grid-template-rows: auto 36px;
		column-gap: 5px;
		row-gap: 4px;
	}

	.custom-main-header__socials > a {
		width: 36px !important;
		height: 36px !important;
		border-radius: 9px !important;
	}

	.custom-main-header__socials > a img {
		width: 24px !important;
		height: 24px !important;
	}

	.custom-main-header__online {
		font-size: 9px;
		gap: 5px;
	}

	.custom-main-header__online-dot {
		width: 6px;
		height: 6px;
		flex-basis: 6px;
	}

	.custom-main-header__hours {
		font-size: 8px;
		gap: 2px;
	}

	.custom-main-header__hours-label {
		font-size: 9px;
		margin-bottom: 1px;
	}

	.custom-main-header__contacts {
		gap: 7px !important;
	}

	.custom-main-header__contact {
		gap: 3px;
	}

	.custom-main-header__contact span,
	.custom-main-header__contact-label {
		display: block !important;
		font-size: 7.5px;
	}

	.custom-main-header__contact a {
		font-size: 12.5px;
	}

	/* The download action stays present; only its long caption collapses. */
	.custom-main-header__proposal {
		width: 38px;
		height: 38px;
		min-height: 38px;
		padding: 0;
		justify-content: center;
		border-radius: 9px;
	}

	.custom-main-header__proposal-text {
		display: none !important;
	}

	.custom-main-header__proposal-icon,
	.custom-main-header__proposal-icon img {
		width: 25px;
		height: 25px;
		flex-basis: 25px;
	}

	.custom-main-header__search-toggle {
		width: 38px !important;
		height: 38px !important;
		border-radius: 9px;
	}
}

@media (min-width: 1025px) and (max-width: 1100px) {
	.custom-main-header__inner {
		padding-left: 14px !important;
		padding-right: 14px !important;
		gap: 6px !important;
	}

	.custom-main-header__logo {
		flex-basis: 225px;
		min-width: 195px;
		max-width: 245px;
	}

	.custom-main-header__right,
	.custom-main-header__availability,
	.custom-main-header__contacts,
	.custom-main-header__actions {
		gap: 5px !important;
	}

	.custom-main-header__socials {
		grid-template-columns: repeat(3, 33px);
		grid-template-rows: auto 33px;
		column-gap: 4px;
	}

	.custom-main-header__socials > a {
		width: 33px !important;
		height: 33px !important;
	}

	.custom-main-header__socials > a img {
		width: 22px !important;
		height: 22px !important;
	}

	.custom-main-header__online {
		display: inline-flex !important;
		font-size: 8px;
	}

	.custom-main-header__hours {
		display: flex !important;
		font-size: 7.2px;
	}

	.custom-main-header__hours-label {
		font-size: 8px;
		margin-bottom: 1px;
	}

	.custom-main-header__contacts .custom-main-header__contact:first-child {
		display: flex !important;
	}

	.custom-main-header__contact span,
	.custom-main-header__contact-label {
		display: block !important;
		font-size: 6.8px;
	}

	.custom-main-header__contact a {
		font-size: 11.5px;
	}

	.custom-main-header__cta,
	.custom-main-header__search {
		display: block !important;
	}

	.custom-main-header__proposal {
		width: 35px;
		height: 35px;
		min-height: 35px;
	}

	.custom-main-header__proposal-icon,
	.custom-main-header__proposal-icon img {
		width: 23px;
		height: 23px;
		flex-basis: 23px;
	}

	.custom-main-header__search-toggle {
		width: 35px !important;
		height: 35px !important;
	}
}