.page_top_button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(85, 6, 10, 0.25);
  border-radius: 50%;
  background: #ffffff;
  color: #55060a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(35px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.page_top_button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(85, 6, 10, 0.12);
  transform: scale(0.7);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease;
}

.page_top_button_show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page_top_button_show::before {
  transform: scale(1);
  opacity: 1;
}

.page_top_button svg {
  position: relative;
  z-index: 2;
  font-size: 15px;
  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
}

.page_top_button:hover {
  background: #55060a;
  color: #ffffff;
  border-color: #55060a;
  transform: translateY(-4px);
  box-shadow:
    0 12px 35px rgba(85, 6, 10, 0.22),
    0 0 0 6px rgba(85, 6, 10, 0.04);
}

.page_top_button:hover::before {
  border-color: rgba(255, 255, 255, 0.25);
}

.page_top_button:hover svg {
  transform: translateY(-4px);
}
.page_top_button::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(85, 6, 10, 0.35);
  border-right-color: rgba(85, 6, 10, 0.15);
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
  transition:
    opacity 0.5s ease,
    transform 0.7s ease;
}

.page_top_button_show::after {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.page_top_button:hover::after {
  transform: rotate(180deg) scale(1.05);
}
@media (max-width: 575px) {
  .page_top_button {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .page_top_button svg {
    font-size: 13px;
  }
}
