/* Compact marketing-site footer on phones. Desktop keeps the existing grid. */
@media (max-width: 639px) {
  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1rem;
    padding-top: 1.75rem;
    padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer__main,
  .site-footer__bottom {
    display: contents;
  }

  .site-footer__brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer__social {
    grid-column: 2;
    grid-row: 1;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(48, 48, 48, 0.05);
  }

  .site-footer__contacts {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.25rem;
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(48, 48, 48, 0.1);
  }

  .site-footer__item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
  }

  .site-footer__item:last-child {
    grid-column: 1 / -1;
  }

  .site-footer__item .footer-label {
    margin: 0;
    line-height: 1.25;
  }

  .site-footer__value {
    margin: 0 !important;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.45;
  }

  .site-footer__copy {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(48, 48, 48, 0.1);
  }
}
