.footer {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: calc(2 * var(--side-spacing));
  padding-bottom: var(--side-spacing);
}

/* React apps pin a CTA bar to the bottom of the viewport on mobile (<=767px) —
   reserve space under the footer so the bar doesn't cover its links. */
@media (max-width: 767px) {
  .footer--spa {
    padding-bottom: 5rem;
  }
}

.footer--with-top-border {
  border-top: 1px solid var(--border-light-gray-color);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 8px;
}

.footer__links > li {
  margin-top: 0;
}

.footer--full { padding-top: 0; }

.footer__app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  background: var(--background-light-gray-color);
  border-bottom: 1px solid var(--border-light-gray-color);
}

.footer__app-copy { max-width: 650px; }
.footer__app h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; }
.footer__app-copy p { margin: 0 0 20px; }
.footer__app-stores { display: flex; flex-wrap: wrap; gap: 12px; }
/* Store badges: black tiles with the store glyph and a two-line label, like the official buttons */
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 9px 18px;
  border-radius: 13px;
  background: var(--text-black-color);
  color: #fff;
  line-height: 1.15;
  text-decoration: none;
}
.store-button:hover,
.store-button:focus-visible { background: var(--dark-blue-color); color: #fff; text-decoration: none; }
.store-button__icon { width: 26px; height: 26px; flex: none; }
.store-button__label { display: flex; flex-direction: column; text-align: left; }
.store-button__hint { font-size: 12px; }
.store-button__name { font-size: 18px; font-weight: 600; }
.footer__app-qr { flex: 0 0 180px; text-align: center; }
.footer__app-qr-image { display: inline-flex; padding: 12px; border-radius: 16px; background: var(--light-yellow-color); }
.footer__app-qr img { display: block; }
.footer__app-qr p { font-size: 14px; margin: 12px 0 0; }

.footer__navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 32px;
  padding: 40px 0;
}

.footer__navigation > * { min-width: 0; }
.footer__logo { display: inline-flex; min-height: 44px; align-items: center; }
.footer__brand p { max-width: 220px; margin: 16px 0 0; color: var(--text-gray-color); }
.footer__group h2 { margin: 0 0 16px; font-size: 20px; line-height: 1.3; }
.footer__group ul { margin: 0; padding: 0; }
.footer__group li { margin: 0 0 12px; }
.footer__group a { overflow-wrap: anywhere; }
.footer__documents { padding: 24px 0; border-block: 1px solid var(--border-light-gray-color); font-size: 14px; }
.footer__documents .footer__links { gap: 12px 24px; margin: 0; padding: 0; }
.footer__documents .footer__links > li { margin: 0; }
.footer__copyright { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; color: var(--text-gray-color); font-size: 12px; }

@media (max-width: 767px) {
  .footer__app { padding: 24px 16px; }
  .footer__app-qr { display: none; }
  .footer__app h2 { font-size: 24px; }
  .footer__navigation { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 0; }
  .footer__brand p { max-width: none; }
  .footer__group li { margin: 0; }
  .footer__group a, .footer__documents a, .footer__documents button { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__documents .footer__links { flex-direction: column; gap: 0; }
}
