/* Hotline modal popup */
.hl-phone-popup {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .3s ease, visibility .3s ease;
}

.hl-phone-popup.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.hl-phone-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 25, 50, .62);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hl-phone-popup__panel {
	position: relative;
	width: min(100%, 360px);
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 28px 70px rgba(5, 35, 70, .38),
		0 0 0 1px rgba(255, 255, 255, .12);
	transform: translateY(24px) scale(.92);
	transition: transform .38s cubic-bezier(.22, 1, .36, 1);
}

.hl-phone-popup.is-open .hl-phone-popup__panel {
	transform: translateY(0) scale(1);
}

.hl-phone-popup__header {
	position: relative;
	padding: 26px 24px 22px;
	text-align: center;
	color: #fff;
	background: linear-gradient(135deg, #ff5252 0%, #e53935 45%, #c62828 100%);
}

.hl-phone-popup__header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .22) 0%, transparent 55%);
	pointer-events: none;
}

.hl-phone-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.hl-phone-popup__close:hover {
	background: rgba(255, 255, 255, .32);
	transform: rotate(90deg);
}

.hl-phone-popup__badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	border: 2px solid rgba(255, 255, 255, .35);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.hl-phone-popup__badge::before,
.hl-phone-popup__badge::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .45);
	animation: hlPopupBadgeRing 2.2s ease-out infinite;
}

.hl-phone-popup__badge::after {
	animation-delay: 1.1s;
}

.hl-phone-popup__badge img {
	position: relative;
	z-index: 1;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 50%;
}

.hl-phone-popup__title {
	position: relative;
	margin: 0 0 4px;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: .02em;
}

.hl-phone-popup__subtitle {
	position: relative;
	margin: 0;
	font-size: 13px;
	opacity: .92;
}

.hl-phone-popup__body {
	padding: 18px 18px 20px;
	display: grid;
	gap: 10px;
	background: linear-gradient(180deg, #fafcff 0%, #f3f7fc 100%);
}

.hl-phone-popup__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 16px;
	text-decoration: none;
	color: #0f2744;
	background: #fff;
	border: 1px solid rgba(5, 59, 124, .1);
	box-shadow: 0 4px 16px rgba(5, 59, 124, .07);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hl-phone-popup__item:hover {
	transform: translateY(-2px);
	border-color: rgba(229, 57, 53, .35);
	box-shadow: 0 12px 28px rgba(229, 57, 53, .16);
	color: #b71c1c;
}

.hl-phone-popup__item-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
	color: #fff;
	font-size: 20px;
	box-shadow: 0 6px 16px rgba(229, 57, 53, .32);
}

.hl-phone-popup__item-text {
	min-width: 0;
	flex: 1;
}

.hl-phone-popup__item-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #6b829e;
	margin-bottom: 3px;
}

.hl-phone-popup__item-number {
	display: block;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.hl-phone-popup__item-action {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #0a4a96 0%, #053b7c 100%);
	padding: 8px 14px;
	border-radius: 999px;
	letter-spacing: .04em;
	white-space: nowrap;
}

.hl-phone-popup__item:hover .hl-phone-popup__item-action {
	background: linear-gradient(135deg, #ef5350 0%, #d32f2f 100%);
}

@keyframes hlPopupBadgeRing {
	0% {
		transform: scale(1);
		opacity: .8;
	}
	100% {
		transform: scale(1.45);
		opacity: 0;
	}
}

@media (max-width: 480px) {
	.hl-phone-popup__item {
		flex-wrap: wrap;
	}

	.hl-phone-popup__item-action {
		width: 100%;
		text-align: center;
		margin-top: 4px;
	}

	.hl-phone-popup__item-number {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hl-phone-popup__badge::before,
	.hl-phone-popup__badge::after {
		animation: none;
	}
}
