/* Eteran v50 — jedna, stabilna stopka na stronie głównej i podstronach */
.unified-footer.footer,
.unified-footer .footer__bottom {
  border-bottom: 0 !important;
}

.unified-footer.footer::after {
  display: none !important;
  content: none !important;
}

.unified-footer .footer__main {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.22fr) repeat(3, minmax(150px, .82fr)) !important;
  gap: clamp(34px, 5vw, 82px) !important;
  align-items: start !important;
  padding-bottom: 52px !important;
}

.unified-footer .footer__brand,
.unified-footer .footer__column {
  min-width: 0 !important;
  align-self: start !important;
}

.unified-footer .footer__brand {
  width: 100% !important;
  max-width: 310px !important;
}

.unified-footer .footer__column {
  display: flex !important;
  flex-direction: column !important;
  grid-column: auto !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.unified-footer .footer__column h3 {
  margin: 2px 0 8px !important;
}

.unified-footer .footer__column a {
  width: fit-content !important;
  max-width: 100% !important;
}

.unified-footer .footer__bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 25px !important;
}

.unified-footer .footer__bottom nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
}

.unified-footer .footer__bottom .footer__login-link {
  display: inline-flex !important;
  min-height: 34px !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.unified-footer .footer__legal {
  display: none !important;
}

@media (max-width: 1020px) and (min-width: 721px) {
  .unified-footer .footer__main {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 34px 30px !important;
  }

  .unified-footer .footer__brand {
    grid-column: 1 / -1 !important;
    max-width: 520px !important;
    padding-bottom: 4px !important;
  }

  .unified-footer .footer__column:last-child {
    grid-column: auto !important;
  }
}

@media (max-width: 720px) {
  .unified-footer.footer {
    padding-top: 48px !important;
    padding-bottom: max(22px, env(safe-area-inset-bottom)) !important;
  }

  .unified-footer .footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 24px !important;
    padding-bottom: 28px !important;
  }

  .unified-footer .footer__brand {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px 18px !important;
    max-width: none !important;
    padding-bottom: 24px !important;
  }

  .unified-footer .footer__brand .logo--footer {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
  }

  .unified-footer .footer__brand > p {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    max-width: 470px !important;
    margin: 0 !important;
    font-size: .84rem !important;
    line-height: 1.6 !important;
  }

  .unified-footer .footer__socials {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    margin: 0 !important;
  }

  .unified-footer .footer__column {
    grid-column: auto !important;
    gap: 10px !important;
    padding: 22px 0 24px !important;
    border-top: 1px solid rgba(25, 60, 58, .09) !important;
  }

  .unified-footer .footer__column h3 {
    margin: 0 0 7px !important;
  }

  .unified-footer .footer__column a {
    font-size: .79rem !important;
    line-height: 1.42 !important;
  }

  .unified-footer .footer__column:last-child {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px 22px !important;
    padding-bottom: 4px !important;
  }

  .unified-footer .footer__column:last-child h3 {
    grid-column: 1 / -1 !important;
  }

  .unified-footer .footer__bottom {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 24px 0 0 !important;
    border-top: 1px solid rgba(25, 60, 58, .09) !important;
  }

  .unified-footer .footer__bottom nav {
    order: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 10px 16px !important;
    align-items: center !important;
    justify-content: stretch !important;
  }

  .unified-footer .footer__bottom nav a {
    display: inline-flex !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    line-height: 1.25 !important;
  }

  .unified-footer .footer__bottom .footer__login-link {
    width: fit-content !important;
    padding-inline: 12px !important;
  }

  .unified-footer .footer__bottom > p {
    order: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 19px !important;
    border-top: 1px solid rgba(25, 60, 58, .07) !important;
    text-align: center !important;
  }
}

@media (max-width: 420px) {
  .unified-footer .footer__main {
    gap: 0 18px !important;
  }

  .unified-footer .footer__brand {
    gap: 10px 12px !important;
  }

  .unified-footer .footer__socials {
    gap: 6px !important;
  }

  .unified-footer .footer__socials a {
    width: 35px !important;
    height: 35px !important;
  }

  .unified-footer .footer__column:last-child {
    gap-inline: 16px !important;
  }
}
