[hidden] {
  display: none !important;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links button {
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  color: #ef6a86;
}

.footer-links button:focus-visible {
  outline: 3px solid rgba(239, 106, 134, 0.35);
  outline-offset: 4px;
  border-radius: 3px;
}

.cookie-notice {
  position: fixed;
  z-index: 1000;
  left: 20px;
  bottom: 20px;
  width: min(520px, calc(100% - 40px));
  padding: 22px;
  color: #303a37;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(48, 58, 55, 0.14);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(47, 58, 55, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cookie-notice__title {
  margin: 0 0 8px;
  color: #303a37;
  font-size: 17px;
  font-weight: 800;
}

.cookie-notice__text {
  margin: 0;
  color: #68726f;
  font-size: 13px;
  line-height: 1.6;
}

.cookie-notice__text a {
  color: #303a37;
  font-weight: 800;
}

.cookie-notice__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
}

.cookie-notice__button {
  min-height: 42px;
  padding: 0 20px;
  color: #fff;
  background: #303a37;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cookie-notice__button:hover {
  background: #ef6a86;
}

.cookie-notice__button:focus-visible {
  outline: 3px solid rgba(239, 106, 134, 0.35);
  outline-offset: 3px;
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: #303a37;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(47, 58, 55, 0.25);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ef6a86;
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(239, 106, 134, 0.38);
  outline-offset: 4px;
}

.cookie-notice-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .footer-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .cookie-notice {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 19px;
    border-radius: 17px;
  }

  .cookie-notice__actions {
    display: grid;
  }

  .cookie-notice__button {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
