/* Плавающие кнопки — по образцу fasadpanel.kz */

#rs-to-top {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

/* Кнопка «Вверх» — справа внизу */
.rs-top-button {
	position: fixed;
	right: 5%;
	bottom: 30px;
	z-index: 1020;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s, visibility 1s;
	pointer-events: none;
}

.rs-top-button.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.rs-top-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 42px;
	padding: 9px 18px;
	border-radius: 4px;
	background-color: #d42927;
	color: #fff !important;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	text-decoration: none !important;
	line-height: 1;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.rs-top-button__link:hover,
.rs-top-button__link:focus {
	background-color: #b8201e;
	color: #fff !important;
	transform: translateY(-2px);
}

/* WhatsApp — слева внизу */
.rs-whatsup {
	position: fixed;
	left: 100px;
	bottom: 50px;
	display: grid;
	align-items: center;
	justify-content: center;
	width: 55px;
	height: 55px;
	border-radius: 123px;
	background-color: #62bd19;
	z-index: 100;
	text-decoration: none !important;
	line-height: 0;
	transition: transform 0.2s ease;
}

.rs-whatsup:hover,
.rs-whatsup:focus {
	transform: scale(1.06);
}

.rs-pulse {
	animation: rs-pulse-animation 2s infinite;
}

@keyframes rs-pulse-animation {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
	}
	100% {
		box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
	}
}

@media (max-width: 600px) {
	.rs-whatsup {
		bottom: 15px;
		left: 15px;
	}

	.rs-top-button {
		right: 15px;
		bottom: 80px;
	}
}
