.site-footer {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, calc(8.108px + 0.27027vw), 12px);
  padding: 0 var(--section-padding-x) 10px;
  --site-footer-radius: var(--radius-big);
}
@media (max-width: 988px) {
  .site-footer {
    padding-inline: var(--section-padding-x-mobile);
    --site-footer-radius: var(--radius-medium-mobile);
  }
}

.site-footer__card {
  display: flex;
  flex-direction: column;
  gap: clamp(85px, calc(1.757px + 11.8919vw), 173px);
  padding: clamp(30px, calc(20.541px + 1.35135vw), 40px)
           30px
           clamp(20px, calc(39.459px - 1.35135vw), 30px)
           clamp(30px, calc(1.622px + 4.05405vw), 60px);
  background: var(--color-cards-bg);
  border-radius: var(--site-footer-radius);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 69px;
}

.site-footer__columns {
  display: flex;
  align-items: flex-start;
  gap: 69px;
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__label {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.15;
  color: var(--color-text);
}

.site-footer__value {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--font-size-h3-card-xs);
  line-height: 1.15;
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__menu-link {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__logo {
  flex: none;
  width: clamp(32.9px, calc(-1.249px + 4.8784vw), 69px);
  height: auto;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-footer__social a {
  display: block;
  width: clamp(32px, calc(17.811px + 2.02703vw), 47px);
}
.site-footer__social img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: clamp(16px, calc(12.216px + 0.54054vw), 20px) 30px;
  background: var(--color-cards-bg);
  border-radius: var(--radius-label);
}

.site-footer__copy {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(10px, calc(6.216px + 0.54054vw), 14px);
  line-height: normal;
  color: var(--color-text);
  white-space: nowrap;
}
.site-footer__copy > a {
  text-decoration: none;
}

.site-footer__payments {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  width: 316px;
  /* Amex's 20→27; the other three keep their desktop ratio to it. */
  --site-footer-pay: clamp(20px, calc(13.378px + 0.94595vw), 27px);
}
/* Both sizes explicit: Safari sizes a flex-item image from its file's
   intrinsic width otherwise, ignoring the height. */
.site-footer__payments img {
  display: block;
  flex: none;
  width: calc(var(--site-footer-pay) * var(--w) / 27);
  height: calc(var(--site-footer-pay) * var(--h) / 27);
}
.site-footer__payments img:nth-child(1) { --w: 110; --h: 31; }
.site-footer__payments img:nth-child(2) { --w: 68; --h: 22.1; }
.site-footer__payments img:nth-child(3) { --w: 42.333; --h: 26.609; }
.site-footer__payments img:nth-child(4) { --w: 27; --h: 27; }

/* Bottom bar stacked (the mobile frame): the payments pill alone, the
   copyright line under it, centred and muted. Row until the copyright
   line + 30 + the 316 payments row stop fitting; recompute if the
   copy, its ramp or the row width changes. */
@media (max-width: 742.98px) {
  .site-footer__bar {
    display: contents;
  }
  .site-footer__payments {
    width: 100%;
    padding: clamp(16px, calc(12.216px + 0.54054vw), 20px) 30px;
    background: var(--color-cards-bg);
    border-radius: var(--radius-label);
  }
  .site-footer__copy {
    order: 1;
    justify-content: center;
    gap: 4px;
    opacity: var(--opacity-secondary-text);
  }
  .site-footer__copy-sep {
    display: none;
  }
}

/* Card stacked (the mobile frame): logo on top, then contacts, then
   menu, all left-packed. Row until address + 69 + menu + 69 + logo
   stop fitting at their floors; recompute if any of those change. */
@media (max-width: 604.98px) {
  .site-footer__top {
    flex-direction: column;
    gap: 54px;
  }
  .site-footer__logo {
    order: -1;
  }
  .site-footer__columns {
    flex-direction: column;
    gap: 40px;
  }
}
