/* Etap 8 — Stopka
   Logo z nowego projektu + treść i mechanizmy starej stopki. */

.footer-redesign {
  background:
    linear-gradient(90deg,
      rgba(31, 48, 65, 0.56) 0%,
      rgba(24, 32, 40, 0.94) 20%,
      rgba(24, 32, 40, 0.98) 50%,
      rgba(24, 32, 40, 0.94) 80%,
      rgba(31, 48, 65, 0.56) 100%),
    #182028;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-redesign__inner {
  max-width: 1280px;
  min-height: 112px;
  margin: 0 auto;
  padding: 4px 22px 14px;
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-redesign__brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-redesign__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer-redesign__logo {
  width: 148px;
  height: auto;
  display: block;
  transform: translateY(-14px);
}

.footer-redesign__legacy-content {
  min-width: 0;
  padding-top: 0;
  text-align: center;
}

.footer-redesign .footer-company {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 500;
}

.footer-redesign .footer-company a,
.footer-redesign .footer-company a:visited,
.footer-redesign .footer-company a:hover,
.footer-redesign .footer-company a:active {
  color: inherit;
  text-decoration: none;
}

.footer-redesign .footer-desc {
  margin: 0 0 11px;
  color: rgba(225, 232, 238, 0.88);
  font-size: 0.80rem;
  line-height: 1.45;
}

.footer-redesign .footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-redesign .footer-links a {
  margin: 0;
  color: rgba(248, 250, 252, 0.95);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.25;
}

.footer-redesign .footer-links a:hover {
  text-decoration: underline;
  color: #ffffff;
}

html.theme-dark .footer-redesign {
  background:
    linear-gradient(90deg,
      rgba(25, 38, 51, 0.50) 0%,
      rgba(15, 20, 25, 0.97) 22%,
      rgba(15, 20, 25, 1) 50%,
      rgba(15, 20, 25, 0.97) 78%,
      rgba(25, 38, 51, 0.50) 100%),
    #0f1419;
}

@media (max-width: 760px) {
  .footer-redesign__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .footer-redesign__brand {
    justify-content: center;
  }

  .footer-redesign__logo {
    width: 132px;
    transform: translateY(-10px);
  }

  .footer-redesign .footer-desc {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .footer-redesign__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-redesign .footer-links {
    gap: 13px;
  }

  .footer-redesign .footer-company,
  .footer-redesign .footer-desc,
  .footer-redesign .footer-links a {
    font-size: 0.76rem;
  }
}


.footer-redesign__inner {
  grid-template-columns: 175px minmax(0, 1fr) 92px;
}

.footer-redesign__to-top-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0;
  transform: translateX(-100px);
}

.footer-redesign__to-top {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: rgba(248, 250, 252, 0.96);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-redesign__to-top:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.footer-redesign__to-top:focus-visible {
  outline: 2px solid rgba(239, 29, 36, 0.9);
  outline-offset: 4px;
  border-radius: 8px;
}



@media (max-width: 760px) {
  .footer-redesign__inner {
    grid-template-columns: 1fr;
  }

  .footer-redesign__to-top-wrap {
    justify-content: center;
    padding-top: 4px;
    transform: none;
  }
}


/* Strzałka "do góry" — pliki WebP dostarczone przez użytkownika */
.footer-redesign__to-top {
  line-height: 0;
}

.footer-redesign__to-top-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  pointer-events: none;
}


@media (max-width: 760px) {
  .footer-redesign__to-top-img {
    max-height: 48px;
  }
}
