/* Floating "Связаться с клубом" widget — port of domfk-vostochka.ru floating-contact (2026-10-07). */
.floating-contact {
	position: fixed;
	right: 20px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 980; /* below lead modal (1200), mobile menu (1001), cookie banner (100000) */
	font-family: "Montserrat", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.floating-contact__btn {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin: 0;
	padding: 0;
	border: 2px solid #000;
	border-radius: 50%;
	background: #ffc945;
	color: #000;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.floating-contact__btn:hover,
.floating-contact__btn:focus-visible {
	transform: scale(1.05);
	background: #f5bd2a;
}
.floating-contact__btn:focus-visible {
	outline: 2px solid #c5252d;
	outline-offset: 3px;
}
.floating-contact__btn.is-active,
.floating-contact__btn.is-active:hover {
	background: #c5252d;
	color: #fff;
}
.floating-contact__btn svg {
	display: block;
}
.floating-contact__btn-icon--close {
	display: none !important;
}
.floating-contact.is-open .floating-contact__btn-icon--chat {
	display: none !important;
}
.floating-contact.is-open .floating-contact__btn-icon--close {
	display: block !important;
}
.floating-contact__popover {
	position: absolute;
	right: 0;
	bottom: calc(100% + 14px);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: min(300px, calc(100vw - 32px));
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	overflow-y: auto;
	padding: 20px;
	border: 2px solid #000;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	text-align: left;
	animation: floating-contact-in 0.2s ease;
}
.floating-contact__popover[hidden] {
	display: none !important;
}
@keyframes floating-contact-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
.floating-contact__header {
	padding-bottom: 12px;
	border-bottom: 1px solid #e8e8e8;
}
.floating-contact__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
}
.floating-contact__subtitle {
	margin: 4px 0 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	color: #777;
}
.floating-contact__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.floating-contact__channel,
.floating-contact__channel:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.floating-contact__channel:hover,
.floating-contact__channel:focus-visible {
	background: #f5f5f5;
	border-color: #e8e8e8;
	color: inherit;
	text-decoration: none;
}
.floating-contact__channel:focus-visible {
	outline: 2px solid #c5252d;
	outline-offset: 2px;
}
.floating-contact__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	border: 1px solid #000;
	border-radius: 50%;
}
.floating-contact__icon svg {
	display: block;
}
.floating-contact__icon--telegram {
	background: #ffc945;
	color: #000;
}
.floating-contact__icon--whatsapp {
	background: #25d366;
	border-color: #128c7e;
	color: #fff;
}
.floating-contact__icon--vk,
.floating-contact__icon--phone,
.floating-contact__icon--book {
	background: #fff;
	color: #000;
}
.floating-contact__icon--max {
	border: 0;
	background: transparent;
}
.floating-contact__icon--max svg {
	width: 36px;
	height: 36px;
}
.floating-contact__icon-text {
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.02em;
}
.floating-contact__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.floating-contact__name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
}
.floating-contact__desc {
	margin-top: 2px;
	overflow: hidden;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	color: #777;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* Hide while the mobile menu or a modal is open */
body.domfk-menu-open .floating-contact,
body.domfk-modal-open .floating-contact {
	display: none;
}
@media (max-width: 640px) {
	.floating-contact {
		right: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}
	.floating-contact__btn {
		width: 50px;
		height: 50px;
	}
}
@media print {
	.floating-contact { display: none !important; }
}
