/**
 * Кнопка «Наверх» (template-parts/components/back-to-top.php) — визуальная копия
 * кнопки старого сайта (конструктор Т-Банка): 56×56, скругление 16, полупрозрачный
 * тёмный фон, белая стрелка. Правый нижний угол (bottom 18). Показ/клик — back-to-top.js.
 * (Ранее стояла над кнопкой чата Т-Бизнес bottom:92; чат убран — вернули в угол.)
 */

.back-to-top {
  position: fixed;
  inset-inline-end: 16px;
  inset-block-end: 18px;
  /* ниже попапов (1100); с cookie-баннером (950, слева) не пересекается */
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  appearance: none;
  /* правка заказчика 27.11.2026: 48×48, без скругления, полупрозрачнее + blur подложки */
  background: rgba(17, 17, 17, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.18s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(17, 17, 17, 0.75);
}

.back-to-top__icon {
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  -webkit-mask: url("../icons/back-to-top.svg") center / contain no-repeat;
  mask: url("../icons/back-to-top.svg") center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
