/* Single footer geometry source for the landing and every CMS page. */
footer.footer .footer-layout.footer-layout-compact,
footer.footer.footer-modern .footer-layout.footer-layout-compact {
  gap: 10px;
  padding: 12px;
}

footer.footer .footer-layout.footer-layout-compact > .footer-card,
footer.footer .footer-layout.footer-layout-compact > .footer-card.rates-card,
footer.footer.footer-modern .footer-layout.footer-layout-compact > .footer-card,
footer.footer.footer-modern .footer-layout.footer-layout-compact > .footer-card.rates-card {
  min-height: 0;
  padding: 14px;
  margin: 0 !important;
}

footer.footer .footer-contacts {
  gap: 6px;
  justify-content: space-between;
}

footer.footer .footer-messengers {
  display: grid;
  align-items: start;
  gap: 6px;
  margin-top: 2px;
}

footer.footer .footer-messenger-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

footer.footer .footer-messenger-button {
  display: inline-grid !important;
  grid-template-columns: 16px auto;
  align-items: center;
  justify-content: center;
  column-gap: 6px;
  min-height: 34px;
  min-width: 0;
  padding: 6px 9px;
  font-size: .78rem;
  line-height: 1;
  flex: 0 1 auto;
}

footer.footer .footer-messenger-button .messenger-icon {
  display: block;
  align-self: center;
  justify-self: center;
  width: 16px;
  height: 16px;
  margin: 0;
  object-fit: contain;
  transform: none;
  color: rgba(244, 244, 241, .92);
  fill: currentColor;
}

footer.footer .footer-messenger-button .messenger-label {
  display: inline-flex;
  align-items: center;
  height: 16px;
  line-height: 16px;
  white-space: nowrap;
}

footer.footer .footer-messenger-button .messenger-icon-max {
  width: 16px !important;
  height: 16px !important;
  flex-basis: 16px !important;
  filter: none;
}

footer.footer .footer-messenger-button:hover .messenger-icon-telegram { color: #2aabee; }
footer.footer .footer-messenger-button:hover .messenger-icon-whatsapp { color: #25d366; }
footer.footer .footer-messenger-button:hover .messenger-icon-vk { color: #4c75a3; }
footer.footer .footer-messenger-button:hover .messenger-icon-yandex { color: #ff4433; }
footer.footer .footer-messenger-button:hover .messenger-icon-two-gis { color: #7ac143; }
footer.footer .footer-messenger-button:hover .messenger-icon-drom { color: #e9342b; }
footer.footer .footer-messenger-button:hover .messenger-icon-instagram { color: #d96bdb; }

footer.footer .footer-messenger-button:hover .messenger-icon {
  filter: drop-shadow(0 0 7px currentColor);
}

footer.footer .footer-card .rates-card-head {
  margin-bottom: 8px;
}

footer.footer .rates-card .rates-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

footer.footer .rates-source-block {
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  min-width: 0;
  margin-bottom: 0;
  padding: 12px;
}

footer.footer .rates-source-warning {
  justify-items: center;
  overflow: hidden;
}

footer.footer .rates-source-warning span {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

footer.footer .footer-company {
  gap: 2px;
  justify-content: space-between;
}

@media (max-width: 760px) {
  footer.footer .footer-layout.footer-layout-compact > .footer-card,
  footer.footer .footer-layout.footer-layout-compact > .footer-card.rates-card,
  footer.footer.footer-modern .footer-layout.footer-layout-compact > .footer-card,
  footer.footer.footer-modern .footer-layout.footer-layout-compact > .footer-card.rates-card {
    min-height: auto;
    padding: 14px;
  }
}
