/* Баннер «Связаться с руководством» — eltemiks-lab.ru */

@font-face {
	font-family: "Eltdb Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(fonts/manrope-cyrillic.woff2) format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Eltdb Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(fonts/manrope-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.eltdb {
	--eltdb-navy: #0b1a55;
	--eltdb-navy-2: #013666;
	--eltdb-cyan: #00cdee;
	--eltdb-teal: #00a8ab;
	--eltdb-teal-dark: #00767e;
	--eltdb-teal-light: #00b0a8;
	--eltdb-gray: #6e7389;
	--eltdb-mint: #d9f7f6;
	--eltdb-border: #c3d0e2;
	--eltdb-error: #e0102a;

	container-type: inline-size;
	position: relative;
	margin: 30px 0;
	font-family: "Eltdb Manrope", "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	color: var(--eltdb-navy);
	line-height: 1.3;
	text-align: left;
}
.eltdb *,
.eltdb *::before,
.eltdb *::after {
	box-sizing: border-box;
}
/* тема сайта задаёт всем элементам font-family "SegoeUIRegular" и font-size 14px — внутри баннера наследуем свои */
.eltdb * {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}
.eltdb img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0;
	border: 0;
	box-shadow: none;
}
.eltdb a {
	text-decoration: none;
}

.eltdb__inner {
	position: relative;
	overflow: hidden;
	border: 1.5px solid #a9e7f1;
	border-radius: 22px;
	background: #fff;
}

/* ---------- шапка: логотип | Элтемикс-Лаб ---------- */
.eltdb__head {
	display: flex;
	align-items: center;
	gap: 18px;
}
.eltdb__logo {
	width: 210px;
	flex: none;
}
.eltdb__brand {
	padding-left: 18px;
	border-left: 2px solid var(--eltdb-cyan);
	font-size: 22px;
	font-weight: 700;
	line-height: 46px;
	color: var(--eltdb-navy);
	white-space: nowrap;
}

/* ---------- заголовки с бирюзовой чертой ---------- */
.eltdb__title,
.eltdb__ask {
	position: relative;
	font-weight: 800;
	color: var(--eltdb-navy);
}
.eltdb__title::after,
.eltdb__ask::after {
	content: "";
	display: block;
	width: 100px;
	height: 5px;
	margin-top: 8px;
	border-radius: 3px;
	background: var(--eltdb-cyan);
}
.eltdb__title {
	margin: 18px 0 22px;
	font-size: 32px;
	line-height: 1.1;
}
.eltdb__ask {
	margin: 0 0 14px;
	font-size: 19px;
}
.eltdb__ask::after {
	width: 78px;
	height: 4px;
	margin-top: 7px;
}

/* ---------- директор ---------- */
.eltdb__person {
	display: flex;
	align-items: center;
	gap: 18px;
}
.eltdb__photo {
	flex: none;
	width: 160px;
	height: 160px !important;
	border-radius: 50%;
	object-fit: cover;
}
.eltdb__name {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.15;
}
.eltdb__role {
	margin: 4px 0 14px;
	font-size: 17px;
	font-weight: 500;
	color: var(--eltdb-gray);
}
.eltdb a.eltdb__contact {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: 8px;
	font-size: 17px;
	font-weight: 600;
	color: #1f2a63;
	white-space: nowrap;
}
.eltdb a.eltdb__contact:hover {
	color: var(--eltdb-teal);
}
.eltdb__ico {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: var(--eltdb-mint);
}
.eltdb__ico img {
	width: 22px;
}

/* ---------- кнопка Telegram ---------- */
.eltdb a.eltdb__tg {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 54px;
	margin-top: 22px;
	padding: 8px 24px;
	border-radius: 16px;
	background: linear-gradient(90deg, #00aaad, #01a2a5);
	box-shadow: 0 6px 16px rgba(0, 150, 155, 0.25);
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.eltdb a.eltdb__tg:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 9px 20px rgba(0, 150, 155, 0.32);
}
.eltdb__tg-ico {
	width: 36px;
}

/* ---------- карточка с формой ---------- */
.eltdb__card {
	position: relative;
	z-index: 1;
	padding: 18px 20px 16px;
	border: 1px solid #eef2f7;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 10px 30px rgba(20, 60, 120, 0.12);
}
.eltdb .wpcf7 {
	margin: 0;
}
.eltdb .wpcf7-form {
	margin: 0;
}
.eltdb .wpcf7-form p {
	margin: 0;
}
.eltdb-field {
	margin-bottom: 10px;
}
.eltdb .eltdb-label {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--eltdb-navy);
}
.eltdb .eltdb-label span {
	color: var(--eltdb-navy);
}
.eltdb .wpcf7-form-control-wrap {
	position: relative;
	display: block;
}
.eltdb .wpcf7-form input[type="text"],
.eltdb .wpcf7-form input[type="email"],
.eltdb .wpcf7-form textarea {
	display: block;
	width: 100%;
	max-width: none;
	height: 40px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--eltdb-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	color: var(--eltdb-navy);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.eltdb .wpcf7-form textarea {
	height: 86px;
	min-height: 60px;
	resize: vertical;
}
.eltdb .wpcf7-form input::placeholder,
.eltdb .wpcf7-form textarea::placeholder {
	color: #6b7385;
	opacity: 1;
}
.eltdb .wpcf7-form input[type="text"]:focus,
.eltdb .wpcf7-form input[type="email"]:focus,
.eltdb .wpcf7-form textarea:focus {
	border-color: var(--eltdb-teal);
	box-shadow: 0 0 0 3px rgba(0, 168, 171, 0.15);
}
.eltdb .wpcf7-form .wpcf7-not-valid {
	border-color: var(--eltdb-error) !important;
}
.eltdb .wpcf7-not-valid-tip {
	display: block;
	margin-top: 3px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--eltdb-error);
}
.eltdb-hidden {
	display: none;
}
.eltdb-submit {
	position: relative;
	margin-top: 4px;
}
.eltdb .wpcf7-form input.wpcf7-submit {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 14px;
	background: var(--eltdb-navy-2);
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.eltdb .wpcf7-form input.wpcf7-submit:hover {
	background-color: #02498a;
}
.eltdb .wpcf7-form input.wpcf7-submit:disabled {
	opacity: 0.6;
	cursor: default;
}
.eltdb .ajax-loader {
	position: absolute;
	top: 50%;
	right: 14px;
	margin: -8px 0 0;
}

/* согласие на обработку ПДн — мелким шрифтом, как на сайте */
.eltdb-consent {
	margin-top: 10px;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.35;
	color: #4a5068;
}
.eltdb-consent .wpcf7-list-item {
	display: block;
	margin: 0;
}
.eltdb-consent label {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 0;
	font-weight: 500;
	cursor: pointer;
}
.eltdb-consent input[type="checkbox"] {
	flex: none;
	width: 14px;
	height: 14px;
	margin: 1px 0 0;
}
.eltdb-consent a {
	color: #2f6fd6;
}
.eltdb-consent a:hover {
	text-decoration: underline;
}

/* сообщение под формой */
.eltdb div.wpcf7-response-output {
	margin: 10px 0 0;
	padding: 8px 10px;
	border: 1.5px solid;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}
.eltdb .wpcf7-validation-errors,
.eltdb .wpcf7-acceptance-missing,
.eltdb .wpcf7-mail-sent-ng,
.eltdb .wpcf7-aborted,
.eltdb .wpcf7-spam-blocked {
	border-color: var(--eltdb-error) !important;
	color: var(--eltdb-error);
}
.eltdb .wpcf7-mail-sent-ok {
	border-color: var(--eltdb-teal) !important;
	color: #00777a;
}
.eltdb .wpcf7-display-none {
	display: none;
}

/* =========================================================
   Горизонтальный баннер (страницы)
   ========================================================= */
.eltdb--h .eltdb__inner {
	padding: 20px 18px 24px;
	background: linear-gradient(180deg, #ffffff 0%, #f6fafd 100%);
}
.eltdb--h .eltdb__inner::after {
	/* нижняя бирюзовая волна */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 26px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 26' preserveAspectRatio='none'%3E%3Cpath d='M0 2 C 30 2, 40 21, 90 21 L 1000 21' fill='none' stroke='%2300d2ef' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
	pointer-events: none;
}
.eltdb--h .eltdb__card {
	margin-top: 22px;
}

@container (min-width: 760px) {
	.eltdb--h .eltdb__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(290px, 36%);
		grid-template-areas:
			"head head"
			"title card"
			"person card"
			"tg card";
		grid-template-rows: auto auto auto 1fr;
		column-gap: 26px;
		padding: 22px 13% 40px 26px;
		background:
			url(img/bg-lab.jpg) right top / auto 100% no-repeat,
			linear-gradient(180deg, #ffffff 0%, #f6fafd 100%);
	}
	.eltdb--h .eltdb__info {
		display: contents;
	}
	.eltdb--h .eltdb__head { grid-area: head; }
	.eltdb--h .eltdb__title { grid-area: title; }
	.eltdb--h .eltdb__person { grid-area: person; }
	.eltdb--h .eltdb__tg { grid-area: tg; align-self: start; }
	.eltdb--h .eltdb__card {
		grid-area: card;
		align-self: start;
		margin-top: 4px;
	}
}

/* узкий экран */
@container (max-width: 520px) {
	.eltdb__logo { width: 150px; }
	.eltdb__brand { font-size: 16px; line-height: 34px; padding-left: 12px; }
	.eltdb__head { gap: 12px; }
	.eltdb__title { font-size: 26px; }
	.eltdb--h .eltdb__person { gap: 14px; }
	.eltdb--h .eltdb__photo { width: 110px; height: 110px !important; }
	.eltdb--h .eltdb__name { font-size: 18px; }
	.eltdb--h .eltdb__role { font-size: 14px; margin-bottom: 8px; }
	.eltdb--h a.eltdb__contact { font-size: 15px; gap: 8px; }
	.eltdb--h .eltdb__ico { width: 30px; height: 30px; }
	.eltdb--h .eltdb__ico img { width: 18px; }
	.eltdb--h a.eltdb__tg { font-size: 19px; }
	.eltdb--h .eltdb__card { padding: 16px 14px 14px; }
}
@container (max-width: 330px) {
	.eltdb--h .eltdb__person { flex-direction: column; align-items: flex-start; }
}

/* китайский: без жирного латинского шрифта для иероглифов */
.eltdb--cn .eltdb__title,
.eltdb--cn .eltdb__name,
.eltdb--cn .eltdb__tg,
.eltdb--cn .eltdb__ask {
	font-weight: 700;
}

/* =========================================================
   Вертикальный баннер (всплывающее окно)
   ========================================================= */
.eltdb--v {
	margin: 0;
}
.eltdb--v .eltdb__inner {
	padding: 16px 20px 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
}
.eltdb--v .eltdb__head {
	justify-content: center;
}
.eltdb--v .eltdb__logo {
	width: 64%;
}
.eltdb--v .eltdb__person {
	margin-top: 14px;
	gap: 14px;
}
.eltdb--v .eltdb__photo {
	width: 124px;
	height: 124px !important;
}
.eltdb--v .eltdb__name {
	font-size: 18px;
}
.eltdb--v .eltdb__role {
	margin: 3px 0 8px;
	font-size: 13.5px;
}
.eltdb--v a.eltdb__contact {
	gap: 9px;
	margin-top: 6px;
	font-size: 14.5px;
}
.eltdb--v .eltdb__ico {
	width: 30px;
	height: 30px;
	border-radius: 8px;
}
.eltdb--v .eltdb__ico img {
	width: 18px;
}
.eltdb--v a.eltdb__tg {
	justify-content: space-between;
	min-height: 48px;
	margin-top: 16px;
	padding: 6px 22px;
	border-radius: 24px;
	background: var(--eltdb-teal-dark);
	box-shadow: 0 6px 14px rgba(0, 118, 126, 0.25);
	font-size: 17px;
}
.eltdb--v .eltdb__tg-ico {
	width: 30px;
}
.eltdb--v .eltdb__tg-arrow {
	width: 22px;
}
.eltdb__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0 2px;
}
.eltdb__divider::before,
.eltdb__divider::after {
	content: "";
	flex: 1;
	height: 1.5px;
	background: #67b6ea;
}
.eltdb__divider img {
	width: 30px;
}
.eltdb--v .eltdb__card {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}
.eltdb--v .eltdb__ask {
	font-size: 21px;
}
.eltdb--v .eltdb-label {
	/* во всплывающем окне подписи не видны — только плейсхолдеры, как на макете */
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.eltdb--v .wpcf7-form textarea {
	height: 74px;
}
.eltdb--v .wpcf7-form input.wpcf7-submit {
	height: 46px;
	border-radius: 14px;
	background: var(--eltdb-teal-light) url(img/ico-plane-white.png) no-repeat calc(50% - 72px) 50% / 26px auto;
	padding-left: 44px;
	font-size: 19px;
}
.eltdb--v .wpcf7-form input.wpcf7-submit:hover {
	background-color: #009c95;
}
.eltdb__icons {
	display: flex;
	align-items: flex-end;
	justify-content: space-around;
	margin: 14px -20px 0;
	padding: 6px 26px 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23c3f0f7'/%3E%3Cstop offset='1' stop-color='%23e8fbfd'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 45 C 80 30, 150 60, 250 52 S 360 25, 400 15 L 400 80 L 0 80 Z' fill='url(%23g)'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 70%;
}
.eltdb__icons img {
	width: 46px;
}

/* =========================================================
   Кнопка «Связаться с руководством» и всплывающее окно
   ========================================================= */
.eltdb-launch {
	position: fixed;
	left: 20px;
	bottom: 84px;
	z-index: 9999;
	display: block;
	margin: 0;
	padding: 14px 24px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(90deg, #00b4ae 0%, #00828d 100%);
	box-shadow: 0 5px 15px rgba(0, 130, 141, 0.35);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.eltdb-launch:hover,
.eltdb-launch:focus-visible {
	transform: translateY(-2px);
}
.eltdb-launch.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.eltdb-pop {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 100000;
	width: 380px;
	max-width: calc(100vw - 40px);
	border: 1.5px solid #a9e7f1;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(10, 40, 90, 0.28);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.eltdb-is-open .stock-floating {
	visibility: hidden;
}
.eltdb-pop[hidden] {
	display: none;
}
.eltdb-pop.is-open {
	opacity: 1;
	transform: none;
}
.eltdb-pop__scroll {
	max-height: calc(100vh - 44px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 20px;
}
.eltdb-pop__close {
	position: absolute;
	top: -13px;
	right: -13px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #252525;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	color: #fff;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}
.eltdb-pop__close:hover {
	background: #000;
	transform: scale(1.1);
}
.eltdb-pop__close svg {
	display: block;
}

@media (max-width: 767px) {
	.eltdb-launch {
		left: 15px;
		bottom: 104px;
		padding: 12px 18px;
		font-size: 14px;
	}
}
@media (max-width: 480px) {
	/* снизу на телефоне ярлык Jivo — окно стоит над ним */
	.eltdb-pop {
		left: 10px;
		right: 10px;
		bottom: 58px;
		width: auto;
		max-width: none;
	}
	.eltdb-pop__scroll {
		max-height: calc(100vh - 68px);
		max-height: calc(100dvh - 68px);
	}
	.eltdb-pop__close {
		top: 8px;
		right: 8px;
	}
}
