/* Меню сайту (TWEKO) v2.3.0 — works without JavaScript */
:root {
	--twmh-h: 64px;
	--twmh-h-s: 58px;
	--twmh-top: 0px;
	--twmh-bnav-h: 62px;
	--twmh-ink: #10233f;
	--twmh-muted: #536275;
	--twmh-soft: #5f6f82;
	--twmh-blue: #1473e6;
	--twmh-line: #e8edf3;
	--twmh-bg-soft: #f4f7fb;
}

/* state checkboxes are never visible */
.twmh-state {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
	clip: rect(0 0 0 0);
}

/* the wrapper is hidden by the HTML `hidden` attribute; only mobile reveals it */
.twmh-root[hidden] { display: none !important; }
@media (max-width: 991.98px) {
	body.twmh-on .twmh-root[hidden] { display: contents !important; }
}

/* desktop: nothing of ours is shown */
.twmh-bar,
.twmh-bnav,
.twmh-search,
.twmh-drawer,
.twmh-backdrop { display: none; }

@media (max-width: 991.98px) {

	/* ---------- no horizontal overflow ----------
	   Any theme element wider than the screen (footer badges, galleries, tables)
	   makes mobile browsers enlarge the layout viewport; fixed bars are then
	   attached to that larger area and slide half out of view while scrolling.
	   `clip` cuts the overflow without creating a scroll container. */
	html:has(body.twmh-on),
	body.twmh-on { overflow-x: hidden; }
	@supports (overflow-x: clip) {
		html:has(body.twmh-on),
		body.twmh-on { overflow-x: clip; }
	}

	/* ---------- theme header hidden, our bar shown ---------- */
	body.twmh-on.twmh-hide-topbar .top_menu { display: none !important; }
	body.twmh-on nav.navbar.sticky-top { display: none !important; }
	body.twmh-on { padding-top: var(--twmh-h) !important; }
	body.twmh-on:has(#twmh-nav-toggle:checked) { overflow: hidden !important; }

	.twmh-on .twmh-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		position: fixed;
		top: var(--twmh-top);
		left: 0;
		right: 0;
		z-index: 1030;
		height: var(--twmh-h);
		margin: 0;
		padding: 0 8px 0 16px;
		box-sizing: border-box;
		background: rgba(255, 255, 255, .97);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		border-bottom: 1px solid var(--twmh-line);
		transition: height .2s ease, box-shadow .2s ease;
	}
	.twmh-on .twmh-bar.twmh-scrolled {
		height: var(--twmh-h-s);
		box-shadow: 0 6px 18px rgba(16, 35, 63, .07);
	}
	.twmh-bar__logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; line-height: 0; }
	.twmh-bar__logo img {
		display: block !important;
		width: clamp(140px, 46vw, 176px) !important;
		max-width: 100%;
		height: auto !important;
		opacity: 1 !important;
		transition: width .2s ease;
	}
	.twmh-bar.twmh-scrolled .twmh-bar__logo img { width: clamp(132px, 42vw, 160px) !important; }
	.twmh-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }

	/* ---------- icon buttons (links and labels) ---------- */
	.twmh-ibtn,
	.twmh-search button {
		-webkit-appearance: none !important;
		appearance: none !important;
		border: 0 !important;
		box-shadow: none !important;
		text-shadow: none !important;
		outline: 0;
		min-width: 0;
		line-height: 1;
	}
	.twmh-ibtn {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin: 0 !important;
		padding: 0 !important;
		border-radius: 12px;
		background: transparent;
		color: var(--twmh-ink) !important;
		font-weight: inherit;
		cursor: pointer;
		user-select: none;
		-webkit-tap-highlight-color: transparent;
		text-decoration: none !important;
		transition: background-color .15s ease;
	}
	.twmh-ibtn:active { background: #eef3f9; }
	.twmh-ibtn:focus { outline: 0 !important; }
	.twmh-ibtn:focus-visible { outline: 2px solid var(--twmh-blue) !important; outline-offset: 1px; }
	.twmh-ibtn svg { width: 22px; height: 22px; }
	.twmh-ibtn--phone { color: var(--twmh-blue) !important; }
	#twmh-search-toggle:checked ~ .twmh-bar [data-twmh-search] { background: #eef3f9; }
	.twmh-burger { flex-direction: column; gap: 5px; }
	.twmh-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--twmh-ink); }

	/* ---------- search ---------- */
	.twmh-on .twmh-search {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		top: calc(var(--twmh-top) + var(--twmh-cur-h, var(--twmh-h)));
		z-index: 1029;
		padding: 10px 16px 12px;
		background: #fff;
		border-bottom: 1px solid var(--twmh-line);
		box-shadow: 0 10px 24px rgba(16, 35, 63, .08);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	}
	.twmh-on #twmh-search-toggle:checked ~ .twmh-search {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .18s ease, transform .18s ease, visibility 0s;
	}
	.twmh-search form { display: flex; gap: 8px; margin: 0; }
	.twmh-search input[type="search"] {
		flex: 1;
		min-width: 0;
		height: 44px;
		margin: 0;
		padding: 0 14px;
		border: 1px solid #dfe6ee;
		border-radius: 12px;
		background: #f6f8fb;
		color: var(--twmh-ink);
		font-size: 16px;
		box-shadow: none;
		-webkit-appearance: none;
		appearance: none;
	}
	.twmh-search input[type="search"]:focus { outline: none; border-color: var(--twmh-blue); background: #fff; }
	.twmh-search button {
		flex: 0 0 44px;
		height: 44px;
		border-radius: 12px;
		background: var(--twmh-blue) !important;
		color: #fff !important;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		cursor: pointer;
	}
	.twmh-search button svg { width: 20px; height: 20px; }

	/* ---------- drawer ---------- */
	.twmh-on .twmh-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1055;
		margin: 0 !important;
		background: rgba(16, 35, 63, .45);
		opacity: 0;
		visibility: hidden;
		cursor: pointer;
		transition: opacity .25s ease, visibility 0s linear .25s;
	}
	.twmh-on .twmh-drawer {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1060;
		width: min(100%, 420px);
		background: #fff;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s;
		box-shadow: -12px 0 32px rgba(16, 35, 63, .12);
	}
	.twmh-on #twmh-nav-toggle:checked ~ .twmh-backdrop { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
	.twmh-on #twmh-nav-toggle:checked ~ .twmh-drawer { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
	.twmh-on #twmh-nav-toggle:checked ~ .twmh-bnav { visibility: hidden; }

	.twmh-drawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex: 0 0 auto;
		height: var(--twmh-h);
		padding: 0 8px 0 20px;
		margin-top: var(--twmh-top);
		border-bottom: 1px solid var(--twmh-line);
	}
	.twmh-drawer__logo { line-height: 0; }
	.twmh-drawer__logo img { display: block !important; width: 160px !important; height: auto !important; opacity: 1 !important; }
	.twmh-drawer__body {
		flex: 1 1 auto;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		padding: 6px 20px calc(28px + env(safe-area-inset-bottom));
	}

	/* menu */
	.twmh-menu ul { list-style: none !important; margin: 0; padding: 0; }
	.twmh-menu li { list-style: none !important; margin: 0; padding: 0; }
	.twmh-list > li { border-bottom: 1px solid #eef2f6; }
	.twmh-row {
		display: flex !important;
		align-items: center;
		min-height: 52px;
		margin: 0;
		padding: 0;
		list-style: none;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	summary.twmh-row::-webkit-details-marker { display: none; }
	summary.twmh-row::marker { content: ''; }
	.twmh-row > a,
	.twmh-row__label {
		flex: 1 1 auto;
		padding: 15px 0;
		color: var(--twmh-ink) !important;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.3;
		letter-spacing: .02em;
		text-transform: uppercase;
		text-decoration: none !important;
	}
	.twmh-list > li.is-current > .twmh-row > a,
	.twmh-list > li.is-ancestor > .twmh-row > a,
	.twmh-list > li.is-ancestor > details > .twmh-row > a,
	.twmh-list > li.is-ancestor > details > .twmh-row > .twmh-row__label { color: var(--twmh-blue) !important; }
	.twmh-toggle {
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
		margin-right: -10px;
		border-radius: 10px;
		color: var(--twmh-muted);
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
	.twmh-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
	details[open] > .twmh-row .twmh-toggle { color: var(--twmh-blue); }
	details[open] > .twmh-row .twmh-toggle svg { transform: rotate(180deg); }
	.twmh-sub {
		display: block !important;
		position: static !important;
		float: none !important;
		margin: 0 0 14px 2px !important;
		padding: 2px 0 2px 16px !important;
		border: 0 !important;
		border-left: 2px solid var(--twmh-blue) !important;
		background: none !important;
		box-shadow: none !important;
	}
	.twmh-sub a {
		display: block;
		padding: 9px 0;
		color: var(--twmh-soft) !important;
		font-size: 14.5px;
		font-weight: 400;
		line-height: 1.35;
		text-transform: none;
		text-decoration: none !important;
	}
	.twmh-sub li.is-current > a { color: var(--twmh-blue) !important; font-weight: 600; }
	.twmh-sub .twmh-sub { margin-bottom: 4px !important; border-left-color: #cfdcec !important; }

	/* contacts */
	.twmh-contacts { margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--twmh-bg-soft); }
	.twmh-contacts__title {
		margin-bottom: 10px;
		color: var(--twmh-muted);
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .08em;
		text-transform: uppercase;
	}
	.twmh-contacts__phone,
	.twmh-contacts__mail,
	.twmh-contacts__addr {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 6px 0;
		text-decoration: none !important;
	}
	.twmh-contacts__phone { color: var(--twmh-ink) !important; font-size: 16px; font-weight: 600; }
	.twmh-contacts__mail { color: var(--twmh-soft) !important; font-size: 14.5px; }
	.twmh-contacts__addr { align-items: flex-start; color: var(--twmh-soft) !important; font-size: 14px; line-height: 1.4; }
	.twmh-contacts svg { width: 18px; height: 18px; color: var(--twmh-blue); flex: 0 0 auto; }
	.twmh-contacts__addr svg { margin-top: 1px; }
	.twmh-cta {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		height: 50px;
		margin-top: 14px;
		border-radius: 12px;
		background: var(--twmh-blue);
		color: #fff !important;
		font-size: 15.5px;
		font-weight: 600;
		text-decoration: none !important;
		box-shadow: 0 6px 16px rgba(20, 115, 230, .25);
	}
	.twmh-cta:active { background: #0f62c7; }
	.twmh-cta svg { width: 20px; height: 20px; color: #fff; }
	button.twmh-cta--ghost {
		width: 100%;
		margin-top: 10px;
		background: #fff !important;
		color: var(--twmh-blue) !important;
		border: 1.5px solid var(--twmh-blue) !important;
		box-shadow: none !important;
		font-family: inherit;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}
	button.twmh-cta--ghost:active { background: #eef5ff !important; }

	/* languages */
	.twmh-langs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 22px; }
	.twmh-langs a {
		padding: 8px 14px;
		color: var(--twmh-muted) !important;
		font-size: 14px;
		font-weight: 600;
		letter-spacing: .04em;
		text-decoration: none !important;
	}
	.twmh-langs a + a { border-left: 1px solid #d6dee8; }
	.twmh-langs a:not(.is-ext) + a.is-ext { margin-left: 10px; border-left-color: #9fb0c4; }
	.twmh-langs a.is-current { color: var(--twmh-blue) !important; }

	/* white logo from a dark theme header -> TWEKO navy */
	img.twmh-logo-light { filter: brightness(0) saturate(100%) invert(11%) sepia(35%) saturate(2600%) hue-rotate(200deg) brightness(92%); }
}

/* ---------- bottom navigation (phones) ---------- */
@media (max-width: 767.98px) {
	body.twmh-on.twmh-has-bnav .twmh-bnav {
		display: grid;
		grid-template-columns: repeat(var(--twmh-n, 4), 1fr);
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1020;
		min-height: var(--twmh-bnav-h);
		padding-bottom: env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, .97);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		border-top: 1px solid #e4eaf1;
		box-shadow: 0 -4px 16px rgba(16, 35, 63, .05);
	}
	body.twmh-on.twmh-has-bnav { padding-bottom: calc(var(--twmh-bnav-h) + env(safe-area-inset-bottom)) !important; }
	.twmh-bnav__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-height: var(--twmh-bnav-h);
		padding: 6px 2px;
		color: var(--twmh-muted) !important;
		font-size: 10.5px;
		font-weight: 600;
		line-height: 1.1;
		letter-spacing: .01em;
		text-decoration: none !important;
		-webkit-tap-highlight-color: transparent;
	}
	.twmh-bnav__item svg { width: 22px; height: 22px; }
	.twmh-bnav__item:active { background: #f1f5fa; }
	.twmh-bnav__item.is-active { color: var(--twmh-blue) !important; }
	.twmh-bnav__item--call { color: var(--twmh-ink) !important; }

	body.twmh-on .twmh-old-hidden,
	body.twmh-on.twmh-has-bnav .footer_nav_mobile { display: none !important; }

	body.twmh-on.twmh-has-bnav .grecaptcha-badge { bottom: calc(var(--twmh-bnav-h) + 14px + env(safe-area-inset-bottom)) !important; }
	body.twmh-on.twmh-has-bnav .joinchat,
	body.twmh-on.twmh-has-bnav .ht-ctc-chat,
	body.twmh-on.twmh-has-bnav .wa__btn_popup,
	body.twmh-on.twmh-has-bnav .wh-widget-send-button-wrapper,
	body.twmh-on.twmh-has-bnav #whatsapp-button { bottom: calc(var(--twmh-bnav-h) + 14px + env(safe-area-inset-bottom)) !important; }
}

@media (prefers-reduced-motion: reduce) {
	.twmh-drawer, .twmh-backdrop, .twmh-search, .twmh-bar { transition: none !important; }
}
