.scroll-to-top {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--color-secondary, #113f77);
	color: var(--color-white, #fff);
	box-shadow: 0 4px 16px rgba(17, 63, 119, 0.35);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.scroll-to-top--visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
	background: var(--color-secondary-dark, #0d3566);
	outline: none;
}

.scroll-to-top:focus-visible {
	box-shadow: 0 0 0 3px var(--color-on-secondary, #9cc7f2), 0 4px 16px rgba(17, 63, 119, 0.35);
}

.scroll-to-top__icon {
	display: block;
	width: 18px;
	height: 18px;
	pointer-events: none;
}

@media (max-width: 767px) {
	.scroll-to-top {
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scroll-to-top {
		transition: none;
	}
}

/* ===== Группа плавающих кнопок (пуши + наверх) ===== */
#webpush-widget .webpush-fab-group {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border-radius: 999px;
	overflow: hidden;
	background: var(--color-secondary, #113f77);
	box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

#webpush-widget .webpush-fab-group__btn {
	position: relative;
	width: 48px;
	height: 48px;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: grid;
	place-items: center;
	background: transparent;
	color: var(--color-white, #fff);
	box-shadow: none;
	border-radius: 0;
	transition: background-color 0.15s ease;
}

#webpush-widget .webpush-fab-group__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--color-danger, #c00);
	border: 2px solid var(--color-secondary, #113f77);
	box-sizing: content-box;
	pointer-events: none;
}

#webpush-widget .webpush-fab-group__btn--subscribed .webpush-fab-group__badge,
#webpush-widget .webpush-fab-group__badge:not([hidden]) {
	display: block;
}

#webpush-widget .webpush-fab-group__btn + .webpush-fab-group__btn {
	border-top: 1px solid rgba(255,255,255,.18);
}

#webpush-widget .webpush-fab-group__btn:hover,
#webpush-widget .webpush-fab-group__btn:focus-visible {
	background: rgba(255,255,255,.12);
	outline: none;
}

#webpush-widget .webpush-fab-group__btn--top {
	/* Спрятано без "пустого места": высота схлопнута, но можно анимировать */
	height: 0;
	min-height: 0;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	overflow: hidden;
	transition:
		height 0.18s ease,
		opacity 0.18s ease,
		transform 0.18s ease,
		background-color 0.15s ease;
}

#webpush-widget .webpush-fab-group__btn--top.scroll-to-top--visible {
	height: 48px;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

@media (max-width: 767px) {
	#webpush-widget .webpush-fab-group__btn {
		width: 44px;
		height: 44px;
	}

	#webpush-widget .webpush-fab-group__btn--top.scroll-to-top--visible {
		height: 44px;
	}
}
