/**
 * /local/assets/mda/contacts-hero.css — карточка сети на /contacts/.
 * Разметку подставляет \MDA\ContactsHero вместо штатного блока с логотипом.
 * Подложку карточки (градиент, рамка, тень) даёт .contacts_img из contacts.css —
 * класс сохранён намеренно, здесь только раскладка и содержимое.
 *
 * Анимации — исключительно transform/opacity: рядом тяжёлая карта Яндекса,
 * и перекраска слоёв на скролле заметна. Blur не используется вовсе.
 */

.contacts_img.mdah {
	display: block;
	padding: 36px 32px 32px;
	text-align: center;
}

/* ── Аквариум ───────────────────────────────────────────────────────────── */
.mdah__tank {
	position: relative;
	height: 240px;
	margin-bottom: 8px;
}

.mdah__jelly {
	width: 190px;
	height: 100%;
	overflow: visible;
	animation: mdah-float 7s ease-in-out infinite;
}

.mdah__bell {
	transform-origin: 110px 60px;
	animation: mdah-pulse 3.4s ease-in-out infinite;
}

.mdah__eye {
	animation: mdah-blink 6s ease-in-out infinite;
	transform-origin: 132px 74px;
}

/* Щупальца качаются вразнобой: одинаковая фаза читается как один жёсткий кусок */
.mdah__arms path {
	transform-origin: 110px 120px;
	animation: mdah-wave 4.2s ease-in-out infinite;
	animation-delay: calc(var(--i) * -0.7s);
}

.mdah__bubble {
	position: absolute;
	left: 50%;
	bottom: 12px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(230, 212, 255, .55);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
	opacity: 0;
	animation: mdah-bubble 6s linear infinite;
	animation-delay: calc(var(--i) * -1.2s);
	margin-left: calc(var(--i) * 26px - 52px);
}

.mdah__bubble:nth-child(odd) {
	width: 5px;
	height: 5px;
}

@keyframes mdah-float {
	0%, 100% { transform: translateY(0) rotate(-1.5deg); }
	50%      { transform: translateY(-18px) rotate(1.5deg); }
}

@keyframes mdah-pulse {
	0%, 100% { transform: scale(1, 1); }
	45%      { transform: scale(1.06, .9); }
}

@keyframes mdah-wave {
	0%, 100% { transform: rotate(-4deg); }
	50%      { transform: rotate(4deg); }
}

@keyframes mdah-blink {
	0%, 92%, 100% { transform: scaleY(1); }
	96%           { transform: scaleY(.1); }
}

@keyframes mdah-bubble {
	0%   { opacity: 0; transform: translateY(0) scale(.6); }
	12%  { opacity: .7; }
	80%  { opacity: .25; }
	100% { opacity: 0; transform: translateY(-190px) scale(1); }
}

/* ── Цифры и кнопки ─────────────────────────────────────────────────────── */
.mdah__title {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .72);
}

.mdah__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 22px;
}

.mdah__stat {
	padding: 16px 12px;
	border-radius: 14px;
	border: 1px solid rgba(168, 85, 247, .22);
	background: rgba(168, 85, 247, .08);
}

.mdah__stat b {
	display: block;
	font-size: 26px;
	line-height: 1.1;
	font-weight: 700;
	color: #fff;
}

.mdah__stat span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.35;
	color: rgba(255, 255, 255, .60);
}

.mdah__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.mdah__btn {
	flex: 1 1 190px;
	padding: 13px 22px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #fff !important;
	background: linear-gradient(135deg, #a855f7, #e845da);
	transition: transform .15s ease, box-shadow .15s ease;
}

.mdah__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px -14px rgba(168, 85, 247, .9);
}

.mdah__btn--ghost {
	background: transparent;
	border: 1px solid rgba(168, 85, 247, .45);
}

.mdah__apps {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 16px 0 0;
}

.mdah__store {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 14px 6px 12px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: #141018;
	color: #fff !important;
	text-align: left;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.mdah__store:hover,
.mdah__store:focus-visible {
	background: #1d1824;
	border-color: rgba(255, 255, 255, 0.32);
	outline: none;
}

.mdah__store:active {
	transform: scale(0.98);
}

.mdah__store-icon {
	flex: none;
	width: 20px;
	height: 20px;
}

.mdah__store-txt {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.mdah__store-txt small {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 767px) {
	.contacts_img.mdah {
		padding: 28px 20px 24px;
	}

	.mdah__tank {
		height: 190px;
	}

	.mdah__jelly {
		width: 150px;
	}

	.mdah__stat b {
		font-size: 22px;
	}

	.mdah__store {
		flex: 1 1 148px;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mdah__jelly,
	.mdah__bell,
	.mdah__eye,
	.mdah__arms path,
	.mdah__bubble {
		animation: none;
	}

	.mdah__bubble {
		opacity: .35;
	}
}
