/* Фиксированная панель «Позвонить / Макс» — только мобильные */
.stroi-mobile-bar {
	display: none;
}

@media (max-width: 767px) {
	html {
		--stroi-mobile-bar-height: 50px;
	}

	body {
		padding-bottom: var(--stroi-mobile-bar-height);
	}

	.stroi-mobile-bar {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 99999;
		width: 100%;
		background: #c9752b;
		box-shadow: 0 -2px 10px rgba(43, 47, 63, 0.2);
	}

	.stroi-mobile-bar__item {
		position: relative;
		overflow: hidden;
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.45em;
		padding: 13px;
		font-size: 18px;
		line-height: 1.2;
		text-align: center;
		color: #fff;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
		background: linear-gradient(
			120deg,
			#c9752b 0%,
			#e6893c 20%,
			#f5b06a 40%,
			#e6893c 60%,
			#c9752b 80%,
			#d47a35 100%
		);
		background-size: 250% 250%;
		animation: stroi-mobile-bar-gradient 5s ease infinite;
	}

	.stroi-mobile-bar__item::before {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(
			105deg,
			transparent 35%,
			rgba(255, 255, 255, 0.4) 50%,
			transparent 65%
		);
		transform: translateX(-120%);
		animation: stroi-mobile-bar-shimmer 3.2s ease-in-out infinite;
		pointer-events: none;
	}

	.stroi-mobile-bar__item > * {
		position: relative;
		z-index: 1;
	}

	.stroi-mobile-bar__item--phone {
		border-right: 1px solid rgba(255, 255, 255, 0.35);
	}

	.stroi-mobile-bar__item--max::before {
		animation-delay: 1.6s;
	}

	.stroi-mobile-bar__item:active::after {
		content: '';
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.1);
		pointer-events: none;
	}

	.stroi-mobile-bar__max-icon {
		width: 20px;
		height: 20px;
		flex-shrink: 0;
		display: block;
	}
}

@keyframes stroi-mobile-bar-gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@keyframes stroi-mobile-bar-shimmer {
	0% {
		transform: translateX(-120%);
	}
	55%,
	100% {
		transform: translateX(120%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.stroi-mobile-bar__item,
	.stroi-mobile-bar__item::before {
		animation: none;
	}
}
