/* Footer layout for the app QR design. The existing Bitrix menus remain interactive. */
.footer--app-redesign,
.subscribe {
  font-family: Inter, Arial, Helvetica, sans-serif;
}
.footer--app-redesign .footer__container {
  max-width: 1920px;
  padding: 56px 40px 55px clamp(40px, 7.3vw, 140px);
}

.footer--app-redesign .footer__content {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 240px;
  grid-template-areas:
    "app menu support"
    "app menu socials"
    "app menu pays";
  column-gap: clamp(48px, 6.6vw, 126px);
  row-gap: 24px;
  align-items: start;
}

.footer--app-redesign .footer__app {
  grid-area: app;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.footer--app-redesign .footer__app-logo,
.footer--app-redesign .footer__app-qr {
  display: block;
  width: fit-content;
}

.footer--app-redesign .footer__app-logo img {
  display: block;
}

.footer--app-redesign .footer__app-qr {
  margin-top: 28px;
}

.footer--app-redesign .footer__app-qr img {
  display: block;
  width: 112px;
  height: 112px;
}

.footer--app-redesign .footer__app-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.footer--app-redesign .footer__app-caption strong,
.footer--app-redesign .footer__app-caption b {
  font-weight: 700;
}

.footer--app-redesign .footer__menu,
.footer--app-redesign .footer__support,
.footer--app-redesign .footer__socials,
.footer--app-redesign .footer__pays {
  margin: 0;
}

.footer--app-redesign .footer__support,
.footer--app-redesign .footer__socials,
.footer--app-redesign .footer__pays {
  justify-self: end;
  text-align: right;
}

.footer--app-redesign .footer__support-phone {
  margin-bottom: 4px;
}

.footer--app-redesign .footer__socials {
  margin-top: 12px;
}

.footer--app-redesign .footer__pays {
  margin-bottom: 56px;
}

.footer--app-redesign .footer__pays .footer__row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 0;
}

.footer--app-redesign .footer__pays .footer__row + .footer__row {
  margin-top: 8px;
}

.footer--app-redesign .footer__pays .menu-footer__link {
  white-space: nowrap;
  line-height: 20px;
}

@media (min-width: 768px) {
  .footer--app-redesign .footer__menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
  }

  .footer--app-redesign .menu-footer__item,
  .footer--app-redesign .menu-footer__item:last-child {
    width: auto;
    padding-right: 0;
  }

  .footer--app-redesign .menu-footer__ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
  }
}

@media (max-width: 1350px) {
  .footer--app-redesign .footer__container {
    padding: 48px 36px 60px;
  }

  .footer--app-redesign .footer__content {
    grid-template-columns: 160px minmax(0, 1fr) 205px;
    column-gap: 40px;
  }
}

@media (max-width: 1199px) {
  .footer--app-redesign .footer__content {
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-areas:
      "app support"
      "app socials"
      "menu menu"
      "pays pays";
    row-gap: 24px;
  }

  .footer--app-redesign .footer__menu {
    margin-top: 20px;
  }

  .footer--app-redesign .footer__pays {
    justify-self: stretch;
  }
}

@media (max-width: 767px) {
  .footer--app-redesign .footer__container {
    padding: 36px 20px 44px;
  }

  .footer--app-redesign .footer__content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "app"
      "support"
      "socials"
      "menu"
      "pays";
    row-gap: 28px;
  }

  .footer--app-redesign .footer__app,
  .footer--app-redesign .footer__support,
  .footer--app-redesign .footer__socials,
  .footer--app-redesign .footer__pays {
    justify-self: center;
    text-align: center;
  }

  .footer--app-redesign .footer__pays {
    margin-bottom: 64px;
  }

  .footer--app-redesign .footer__app-logo,
  .footer--app-redesign .footer__app-qr {
    margin-left: auto;
    margin-right: auto;
  }

  .footer--app-redesign .footer__app-qr {
    margin-top: 22px;
  }

  .footer--app-redesign .footer__menu {
    width: 100%;
    margin-top: 0;
  }

  .footer--app-redesign .footer__socials {
    margin-top: 0;
  }

  .footer--app-redesign .footer__pays .footer__row {
    align-items: center;
  }

  .footer--app-redesign .footer__pays .menu-footer__link {
    white-space: normal;
  }
}
