.program-backtotop-item {
  display: none;
}

.program-backtotop-item.is-visible {
  display: block;
}

.program-backtotop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: #064a45;
  color: #fff;
  font-family: Arial, sans-serif;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.34), 0 2px 6px rgba(6, 74, 69, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.program-backtotop:hover {
  transform: scale(1.07);
  background: #033c38;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.4), 0 3px 8px rgba(6, 74, 69, 0.35);
}

.program-backtotop:focus-visible {
  outline: 3px solid #dec08d;
  outline-offset: 3px;
}

.program-backtotop__arrow {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 0.8;
}

.program-backtotop__label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

@media (max-width: 768px) {
  .omni-btnbox {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 20px));
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .omni-btnbox.is-page-scrolled {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .program-backtotop__arrow {
    font-size: 21px;
  }

  .program-backtotop__label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
