.contact-float {
	position: fixed;
	right: max(22px, env(safe-area-inset-right));
	top: 50%;
	transform: translateY(-50%);
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
	pointer-events: none;
}

.contact-float *,
.contact-float *::before,
.contact-float *::after {
	box-sizing: border-box;
}

.contact-float__trigger {
	position: relative;
	z-index: 2;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(148, 163, 184, 0.32);
	border-radius: 999px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #e0f2fe;
	background: rgba(15, 23, 42, 0.82);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	cursor: pointer;
	pointer-events: auto;
	transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.contact-float__trigger:hover,
.contact-float.is-open .contact-float__trigger {
	color: #67e8f9;
	border-color: rgba(34, 211, 238, 0.58);
	background: rgba(15, 23, 42, 0.94);
	box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.16), 0 18px 40px rgba(0, 0, 0, 0.48), 0 0 26px rgba(34, 211, 238, 0.22);
	transform: translateY(-2px);
}

.contact-float__trigger:focus-visible,
.contact-float__close:focus-visible,
.contact-float__copy:focus-visible {
	outline: 2px solid rgba(34, 211, 238, 0.9);
	outline-offset: 3px;
}

.contact-float__trigger svg,
.contact-float__close svg,
.contact-float__copy svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-float__trigger svg {
	width: 24px;
	height: 24px;
	stroke-width: 1.8;
}

.contact-float__trigger img {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 999px;
	pointer-events: none;
}

.contact-float__panel {
	position: absolute;
	right: 66px;
	top: 50%;
	width: min(340px, calc(100vw - 100px));
	padding: 20px 16px 18px;
	border: 1px solid rgba(34, 211, 238, 0.2);
	border-radius: 24px;
	color: #f1f5f9;
	background: rgba(15, 23, 42, 0.91);
	box-shadow: 0 18px 56px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(34, 211, 238, 0.08), 0 0 70px rgba(34, 211, 238, 0.08);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	transform: translate(12px, -50%) scale(0.98);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.contact-float.is-open .contact-float__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(0, -50%) scale(1);
}

.contact-float__header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	padding: 0 4px;
}

.contact-float__status-dot {
	width: 10px;
	height: 10px;
	margin-top: 6px;
	border-radius: 999px;
	background: linear-gradient(135deg, #22d3ee, #38bdf8);
	box-shadow: 0 0 10px rgba(34, 211, 238, 0.66), 0 0 28px rgba(56, 189, 248, 0.34);
	flex: 0 0 auto;
}

.contact-float__heading {
	min-width: 0;
	flex: 1 1 auto;
	display: grid;
	gap: 2px;
}

.contact-float__heading strong {
	color: #f8fafc;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0;
}

.contact-float__heading span {
	max-width: 230px;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0;
}

.contact-float__close,
.contact-float__copy {
	border: 1px solid rgba(255, 255, 255, 0.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-float__close {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	padding: 0;
	flex: 0 0 auto;
}

.contact-float__close:hover {
	color: #22d3ee;
	border-color: rgba(34, 211, 238, 0.42);
	background: rgba(34, 211, 238, 0.12);
	box-shadow: 0 0 16px rgba(34, 211, 238, 0.18);
	transform: rotate(90deg);
}

.contact-float__close svg {
	width: 14px;
	height: 14px;
	stroke-width: 2;
}

.contact-float__cards {
	display: grid;
	gap: 10px;
}

.contact-float__card {
	min-height: 80px;
	border: 1px solid rgba(34, 211, 238, 0.1);
	border-radius: 18px;
	padding: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
	background: rgba(30, 41, 59, 0.92);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.contact-float__card--telegram {
	cursor: pointer;
}

.contact-float__card:hover {
	border-color: rgba(34, 211, 238, 0.4);
	background: rgba(30, 41, 59, 0.98);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 3px 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(34, 211, 238, 0.25), 0 0 28px rgba(34, 211, 238, 0.08);
	transform: translateY(-3px);
}

.contact-float__card-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-float__card-icon--email {
	color: #22d3ee;
	background: rgba(34, 211, 238, 0.1);
	box-shadow: 0 0 12px rgba(34, 211, 238, 0.12);
}

.contact-float__card-icon--telegram {
	color: #38bdf8;
	background: rgba(56, 189, 248, 0.1);
	box-shadow: 0 0 12px rgba(56, 189, 248, 0.1);
}

.contact-float__card:hover .contact-float__card-icon--telegram {
	transform: rotate(6deg);
	box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.contact-float__card-icon svg {
	width: 20px;
	height: 20px;
}

.contact-float__card-icon--email svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-float__card-icon--telegram svg {
	fill: currentColor;
	stroke: none;
}

.contact-float__card-icon--telegram svg path {
	fill: currentColor;
}

.contact-float__card-icon--telegram svg circle {
	fill: currentColor;
	opacity: 0.15;
}

.contact-float__card-info {
	min-width: 0;
	flex: 1 1 auto;
	display: grid;
	gap: 2px;
}

.contact-float__card-info strong {
	color: #e2e8f0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}

.contact-float__card-info span {
	color: #94a3b8;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.contact-float__card-info em {
	color: #64748b;
	font-size: 11px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
}

.contact-float__copy {
	position: relative;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	padding: 0;
	flex: 0 0 auto;
}

.contact-float__copy:hover {
	color: #22d3ee;
	border-color: rgba(34, 211, 238, 0.42);
	background: rgba(34, 211, 238, 0.12);
	box-shadow: 0 0 18px rgba(34, 211, 238, 0.2);
}

.contact-float__copy.is-copied {
	color: #34d399;
	border-color: rgba(16, 185, 129, 0.5);
	background: rgba(16, 185, 129, 0.15);
	box-shadow: 0 0 18px rgba(16, 185, 129, 0.24);
}

.contact-float__copy svg {
	width: 15px;
	height: 15px;
	stroke-width: 2;
}

.contact-float__copy::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	padding: 5px 9px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 7px;
	color: #e2e8f0;
	background: #1e293b;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.contact-float__copy:hover::after,
.contact-float__copy.is-copied::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

.contact-float__qr {
	position: relative;
	width: 72px;
	height: 72px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	flex: 0 0 72px;
	overflow: hidden;
	background: #1e293b;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-float__card:hover .contact-float__qr {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.08);
	transform: scale(1.04);
}

.contact-float__qr svg,
.contact-float__qr img {
	display: block;
	width: 100%;
	height: 100%;
}

.contact-float__qr img {
	object-fit: contain;
	background: #fff;
}

@media (max-width: 1024px) {
	.contact-float__panel {
		width: min(310px, calc(100vw - 92px));
		padding: 16px 13px 15px;
		border-radius: 20px;
	}

	.contact-float__card {
		min-height: 74px;
		padding: 12px;
		gap: 10px;
		border-radius: 15px;
	}

	.contact-float__card-icon {
		width: 36px;
		height: 36px;
	}

	.contact-float__qr {
		width: 60px;
		height: 60px;
		flex-basis: 60px;
		border-radius: 10px;
	}
}

@media (max-width: 640px) {
	.contact-float {
		right: max(14px, env(safe-area-inset-right));
	}

	.contact-float__trigger {
		width: 48px;
		height: 48px;
	}

	.contact-float__panel {
		right: 60px;
		width: min(300px, calc(100vw - 88px));
		max-height: calc(100vh - 32px);
		overflow-y: auto;
	}

	.contact-float__heading span {
		max-width: 190px;
	}

	.contact-float__card-info strong {
		font-size: 12px;
	}

	.contact-float__card-info span {
		font-size: 11px;
	}

	.contact-float__card-info em {
		font-size: 10px;
	}

	.contact-float__qr {
		width: 54px;
		height: 54px;
		flex-basis: 54px;
	}
}
