.footer-media-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 132px));
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-media-list:empty {
  display: none;
}

.footer-media-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.footer-media-img {
  display: block;
  width: 120px;
  height: 120px;
  padding: 7px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.footer-media-text {
  max-width: 132px;
  margin: 0;
  color: var(--muted, #b7c0b8);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.site-footer .footer-media-list {
  grid-column: 1 / -1;
}

.route-footer .route-wrap > .footer-media-list {
  flex: 1 0 100%;
  order: 2;
}

.route-footer .footer-media-text {
  color: rgba(17, 21, 18, 0.76);
}

.quote-footer .footer-media-list {
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 420px) {
  .footer-media-list {
    grid-template-columns: repeat(2, minmax(0, 120px));
    gap: 16px;
  }

  .footer-media-img {
    width: 112px;
    height: 112px;
  }
}
