.footer-sponsors {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 28px);
  padding-top: 22px;
  min-width: 0;
  max-width: 100%;
}

.footer-sponsors::before {
  content: 'Partnerji projekta';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow, #ffd400);
  font-family: var(--font-condensed, 'Barlow Condensed', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-sponsors a,
.footer-sponsors span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-height: 60px;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-sponsors a:hover,
.footer-sponsors a:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
}

.footer-sponsor-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.footer-sponsor-logo-letape {
  height: 60px;
  width: auto;
}

.footer-sponsor-logo-aktual {
  max-height: 60px;
}

.footer-sponsor-logo-bahrain {
  width: clamp(128px, 13vw, 172px);
  height: auto;
  max-height: 48px;
}

.footer-sponsor-logo-wide,
.footer-sponsor-logo-letape,
.footer-sponsor-logo-aktual,
.footer-sponsor-logo-bahrain {
  max-width: 100%;
}

footer {
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}

footer .footer-copy,
footer .footer-logo {
  flex: 0 0 auto;
}

.footer-actions {
  display: grid;
  gap: 16px;
  margin-left: auto;
  justify-items: start;
}

.footer-info {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.footer-help,
.footer-policies {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.footer-email {
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.footer-email:hover,
.footer-email:focus-visible,
.footer-policy-links a:hover,
.footer-policy-links a:focus-visible {
  opacity: 0.78;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px 12px;
}

.footer-policy-links a {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.footer-social {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-social-label,
.footer-section-label {
  color: var(--yellow, #ffd400);
  font-family: var(--font-condensed, 'Barlow Condensed', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-social-links {
  display: flex;
  gap: 10px;
}

.footer-social-links a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer-social-links img {
  display: block;
  width: 24px;
  height: 24px;
}

@media (min-width: 641px) and (max-width: 1080px) {
  footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px !important;
    align-items: start !important;
    justify-content: stretch !important;
    padding: 26px clamp(22px, 4vw, 38px) 24px !important;
    text-align: left !important;
  }

  .footer-brand {
    display: none !important;
  }

  .footer-sponsors {
    width: 100% !important;
    flex: none !important;
    justify-content: center !important;
    gap: 18px 28px !important;
    padding-top: 24px !important;
  }

  footer .footer-sponsors::before {
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
    text-align: center !important;
    white-space: nowrap;
  }

  .footer-sponsors a,
  .footer-sponsors span {
    min-height: 46px !important;
  }

  .footer-sponsor-logo,
  .footer-sponsor-logo-letape,
  .footer-sponsor-logo-aktual {
    height: auto !important;
    max-height: 42px !important;
  }

  .footer-sponsor-logo-bahrain {
    width: clamp(118px, 24vw, 154px) !important;
    height: auto !important;
    max-height: 40px !important;
  }

  .footer-sponsor-logo-letape {
    height: 42px !important;
  }

  .footer-actions {
    width: min(100%, 560px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    align-items: start !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .footer-info {
    display: grid !important;
    grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px !important;
    align-items: start !important;
    justify-items: center !important;
  }

  .footer-social,
  .footer-help,
  .footer-policies {
    width: auto !important;
    justify-items: center !important;
  }

  .footer-policy-links {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
  }

  .footer-social-label,
  .footer-section-label,
  .footer-email {
    width: auto !important;
    text-align: center !important;
  }

  .footer-social-links {
    justify-content: center !important;
  }

  .footer-copy {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    text-align: center !important;
    order: initial !important;
  }
}

@media (min-width: 641px) and (max-width: 760px) {
  .footer-brand {
    display: flex !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .footer-actions,
  .footer-info {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .footer-actions {
    width: min(100%, 420px) !important;
    justify-items: center !important;
    text-align: center !important;
  }

  .footer-info,
  .footer-social,
  .footer-help,
  .footer-policies {
    justify-items: center !important;
  }

  .footer-policy-links {
    align-items: center !important;
  }

  .footer-social-label,
  .footer-section-label,
  .footer-email {
    text-align: center !important;
  }

  .footer-social-links {
    justify-content: center !important;
  }
}

@media (max-width: 640px) {
  .footer-sponsors {
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 16px 22px;
    padding-top: 24px;
  }

  .footer-sponsors::before {
    left: 0;
    transform: none;
    white-space: nowrap;
  }

  .footer-sponsors a,
  .footer-sponsors span {
    width: auto;
    min-height: 52px;
  }

  .footer-sponsor-logo {
    max-height: 60px;
  }

  .footer-sponsor-logo-letape {
    height: 60px;
    width: auto;
  }

  .footer-sponsor-logo-aktual {
    max-height: 60px;
  }

  .footer-sponsor-logo-bahrain {
    width: clamp(124px, 42vw, 168px);
    height: auto;
    max-height: 46px;
  }

  .footer-social {
    width: 100%;
    justify-items: start;
  }

  .footer-actions {
    width: 100%;
    margin-left: 0;
    justify-items: start;
  }

  .footer-info {
    width: 100%;
    justify-items: start;
    text-align: left;
  }

  .footer-help,
  .footer-policies {
    justify-items: start;
  }

  .footer-policy-links {
    justify-content: flex-start;
  }
}
