/* Balanced three-column footer on phones (RU and EN). */
@media (max-width:600px){
 .footer .footer-grid{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.16fr) minmax(0,.92fr)!important;
  column-gap:16px!important;
  row-gap:18px!important;
  align-items:start!important;
 }
 .footer .footer-grid>div:not(:first-child){
  min-width:0!important;
  align-self:start!important;
 }
 .footer .footer-grid h4{
  min-height:24px!important;
  margin:0 0 8px!important;
  display:flex!important;
  align-items:flex-start!important;
  line-height:1.2!important;
  white-space:nowrap!important;
 }
 .footer .footer-grid>div:nth-child(3) a{
  font-size:clamp(8px,2.15vw,9px)!important;
  line-height:1.45!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
 }
 .footer .footer-grid>div:last-child{
  padding-left:2px!important;
  gap:7px!important;
 }
 .footer .footer-grid>div:last-child a,
 .footer .footer-grid>div:last-child .footer-contact-action{
  min-height:21px!important;
  margin:0!important;
  line-height:1.45!important;
  white-space:nowrap!important;
 }
}
@media (max-width:360px){
 .footer .footer-grid{column-gap:12px!important}
 .footer .footer-grid>div:nth-child(3) a{font-size:7.8px!important}
 .footer .footer-grid>div:last-child a,.footer .footer-grid>div:last-child .footer-contact-action{font-size:8.4px!important}
}

/* Align legal links and contact links into matching horizontal rows. */
@media (max-width:600px){
 .footer .footer-grid>div:nth-child(3),
 .footer .footer-grid>div:last-child{
  gap:0!important;
 }
 .footer .footer-grid>div:nth-child(3)>a,
 .footer .footer-grid>div:last-child>a,
 .footer .footer-grid>div:last-child>.footer-contact-action{
  display:flex!important;
  align-items:center!important;
  width:fit-content!important;
  height:24px!important;
  min-height:24px!important;
  margin:0!important;
  padding:0!important;
  line-height:1.2!important;
 }
}
