/* Стрелка подъёма повторяет кнопку главной страницы. */
.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #eee7da66;
  border-radius: 50%;
  background: var(--green, #1f3d2b);
  color: #faf7f0;
  box-shadow: 0 3px 14px #132d1c30;
  line-height: 1;
  cursor: pointer;
}
.back-to-top svg { width: 22px; height: 22px; display: block; flex: 0 0 22px; }
.back-to-top:hover { background: #294b36; }
.back-to-top:focus-visible { outline: 3px solid #b69a68; outline-offset: 3px; }
/* Кнопка не перекрывает меню, фотографии, форму и уведомление cookies. */
.back-to-top[hidden],
body:has(dialog[open]) .back-to-top,
body:has(.site-menu[open]) .back-to-top,
body:has(.mobile-menu[open]) .back-to-top,
body:has([data-cookie-notice]:not([hidden])) .back-to-top { display: none; }
@media print { .back-to-top { display: none; } }
