.page-flow .site-footer:has(.footer-metal) {
  display: grid;
  align-items: center;
  gap: 12px clamp(12px, 2vw, 36px);
}

.page-flow .site-footer .footer-call {
  margin-top: 0;
  font-size: inherit;
}

.footer-metal {
  display: grid;
  place-items: center;
  width: min(100%, 350px);
  height: clamp(66px, 7vw, 104px);
  justify-self: end;
  pointer-events: none;
}

.footer-metal img {
  display: block;
  width: auto;
  max-width: 86%;
  height: 60%;
  object-fit: contain;
}

.footer-metal canvas,
.footer-metal--animated img {
  visibility: hidden;
}

.footer-metal--animated canvas {
  visibility: visible;
}

.site-footer .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.site-footer .footer-contact a {
  padding-block: 2px;
}

@media (min-width: 701px) {
  .page-flow .site-footer:has(.footer-metal) {
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    font-size: clamp(16px, 1.3vw, 20px);
  }

  .page-flow .site-footer:has(.footer-contact) {
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  }

  .site-footer .footer-links {
    display: contents;
  }

  .page-flow .site-footer .footer-links > a {
    justify-self: start;
    min-height: 50px;
  }
}

@media (max-width: 700px) {
  .page-flow .site-footer:has(.footer-metal) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0 clamp(6px, 2vw, 16px);
    padding-block: 20px;
    font-size: clamp(13px, 3.7vw, 16px);
  }

  .site-footer .footer-links {
    display: contents;
  }

  .page-flow .site-footer .footer-links a {
    min-height: 44px;
    font-size: inherit;
    white-space: nowrap;
  }

  .site-footer .footer-links > a:first-child {
    grid-area: 1 / 1;
  }

  .site-footer .footer-links > a[href^="mailto:"],
  .site-footer .footer-contact:has(a[href^="mailto:"]) {
    grid-area: 1 / 2;
    justify-self: center;
  }

  .site-footer .footer-contact:has(a[href^="https://t.me/"]) {
    grid-area: 2 / 2;
    justify-self: center;
  }

  .site-footer .footer-contact-label,
  .site-footer .footer-links a[href^="mailto:"] span,
  .site-footer .footer-metal {
    display: none;
  }

  .page-flow .site-footer .footer-call {
    grid-area: 1 / 3;
    padding-inline: clamp(9px, 2.4vw, 16px);
    white-space: nowrap;
  }
}
