@charset "utf-8";
/* =====================================================
   all_up-button.css v2.0
   Единая кнопка «Наверх» (btt-rocket) для всех страниц
   Заменяет старый .up-button
   Переменные: из other-base.css / prod_product.css
   ===================================================== */


/* ─── Скрыть старую кнопку ─── */
.up-button { display: none !important; }


/* ─── Кнопка-ракета ─── */

.btt-rocket {
  position: fixed;
  bottom: 80px;
  left: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 91;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1), background .2s, bottom .25s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  will-change: transform, opacity;
}

[data-theme="dark"] .btt-rocket {
  box-shadow: 0 4px 16px rgba(91, 141, 239, 0.25);
}

.btt-rocket.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btt-rocket:hover {
  background: var(--accent-hover, #1d4ed8);
  transform: translateY(-2px) !important;
}

.btt-rocket svg {
  width: 22px;
  height: 22px;
  transition: transform .3s;
}

.btt-rocket.is-launching svg {
  animation: rocket-launch .6s ease forwards;
}

.btt-rocket__trail {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 0;
  background: linear-gradient(to bottom, var(--orange, #ea580c), transparent);
  border-radius: 0 0 6px 6px;
  transition: height .2s;
  opacity: 0;
}

.btt-rocket:hover .btt-rocket__trail {
  height: 16px;
  opacity: .7;
}


/* ─── Анимация запуска ─── */

@keyframes rocket-launch {
  0%   { transform: translateY(0) scale(1); }
  40%  { transform: translateY(-8px) scale(1.1); }
  100% { transform: translateY(-50px) scale(.5); opacity: 0; }
}


/* ─── Адаптив ─── */

@media (max-width: 768px) {
  .btt-rocket {
    bottom: 90px;
    left: 16px;
    width: 42px;
    height: 42px;
  }
  .btt-rocket svg {
    width: 18px;
    height: 18px;
  }
}

@media print {
  .btt-rocket { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .btt-rocket { transition: none; }
  .btt-rocket.is-launching svg { animation: none; }
}
