/* =========================================================
   Stopka
   ========================================================= */

.footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  min-height: 360px;
  padding: 28px clamp(28px, 4vw, 72px);
  background: var(--c-dark);
  box-shadow: 0 -8px 32px -16px rgba(0, 0, 0, 0.25);
  color: var(--c-white);
  font-family: var(--font-main);
  overflow-x: hidden;
}

.footer a {
  color: var(--c-white);
  text-decoration: none;
}

.footer a:hover {
  color: var(--c-accent);
}

.footer__logo {
  display: block;
  line-height: 0;
}

.footer__logo img {
  display: block;
  width: 318px;
  max-width: 100%;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

/* --- Wiersz główny --- */

.footer__main {
  display: grid;
  grid-template-columns: 230px 315px minmax(0, 635px);
  justify-content: space-between;
  align-items: start;
  gap: 28px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- Nawigacja --- */

.footer__nav {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 28px;
  width: 230px;
  padding: 10px;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
}

.footer__nav a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  white-space: nowrap;
}

/* --- Trusted by --- */

.footer__trusted {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 16px;
  width: 315px;
  padding: 10px;
}

/* Uwaga: na stronie w WordPressie ten nagłówek dziedziczy
   domyślną typografię Elementora (Roboto 600 / 32 px) — zachowane 1:1. */
.footer__trusted-title {
  margin: 0;
  color: var(--c-white);
  font-family: var(--font-alt);
  font-size: 32px;
  font-weight: 600;
  line-height: 32px;
}

.footer__clients {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  width: 315px;
  padding: 10px;
}

.footer__client img {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: contain;
}

.footer__client--rounded img {
  border-radius: 8px;
}

/* --- Kontakt --- */

.footer__contact {
  display: grid;
  grid-template-columns: 165px 442px;
  column-gap: 28px;
  align-items: start;
  flex-shrink: 0;
  width: 635px;
  max-width: 635px;
  padding: 10px;
}

.footer__contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 32px;
  width: 165px;
  padding: 10px;
}

.footer__cta {
  width: 155px;
  min-height: 60px;
  font-size: 34px;
  line-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .footer__cta:hover {
    transform: translateY(-1px);
    box-shadow: none;
  }
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--c-white);
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.footer__socials svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .footer__socials a:hover {
    transform: translateY(-2px);
    opacity: 0.85;
    color: var(--c-accent);
  }
}

.footer__contact-data {
  display: grid;
  grid-template-columns: 270px 142px;
  column-gap: 30px;
  align-items: start;
  width: 442px;
  padding: 10px;
}

.footer__address {
  margin: 0;
  color: var(--c-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.footer__address strong {
  display: block;
  margin-bottom: 22px;
  font-size: 20px;
  font-weight: 700;
  line-height: 27px;
}

/* NIP / KRS / REGON — wyrównane do adresu.
   Na WordPressie dziedziczy domyślną typografię Elementora. */
.footer__legal {
  margin-top: 73px;
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* --- Dolny pasek --- */

.footer__bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
  max-width: 1280px;
  min-height: 40px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer__copyright,
.footer__privacy {
  margin: 0;
  flex: 0 0 auto;
  color: var(--c-white);
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
}

.footer__links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 18px;
  padding: 10px;
}

/* =========================================================
   Zwężony desktop
   ========================================================= */

@media (max-width: 1280px) {
  .footer {
    padding: 28px 24px;
  }

  .footer__main {
    max-width: 1120px;
    grid-template-columns: 210px 285px minmax(0, 580px);
    gap: 24px;
  }

  .footer__nav {
    width: 210px;
    gap: 24px;
  }

  .footer__nav a {
    font-size: 15px;
    line-height: 28px;
  }

  .footer__trusted,
  .footer__clients {
    width: 285px;
  }

  .footer__trusted-title {
    font-size: 19px;
    line-height: 26px;
  }

  .footer__clients {
    gap: 22px;
  }

  .footer__client img {
    height: 44px;
  }

  .footer__contact {
    width: 580px;
    max-width: 580px;
    grid-template-columns: 145px 410px;
    column-gap: 25px;
  }

  .footer__contact-action {
    width: 145px;
    gap: 28px;
  }

  .footer__cta {
    width: 145px;
    min-height: 56px;
    padding: 8px 14px;
    font-size: 30px;
    line-height: 40px;
  }

  .footer__socials {
    gap: 14px;
  }

  .footer__socials a,
  .footer__socials svg {
    width: 34px;
    height: 34px;
  }

  .footer__contact-data {
    width: 410px;
    grid-template-columns: 250px 134px;
    column-gap: 26px;
  }

  .footer__address {
    font-size: 15px;
    line-height: 21px;
  }

  .footer__address strong {
    font-size: 18px;
    line-height: 25px;
  }

  .footer__legal {
    margin-top: 72px;
  }

  .footer__bottom {
    max-width: 1120px;
    padding: 0;
    gap: 24px;
  }

  .footer__links {
    gap: 16px;
  }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1099px) {
  .footer {
    padding: 32px 48px;
  }

  .footer__main {
    grid-template-columns: 250px 345px;
    gap: 48px;
  }

  .footer__contact {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    grid-template-columns: 175px 466px;
    justify-content: start;
    column-gap: 64px;
  }

  .footer__contact-action {
    width: 175px;
    gap: 40px;
  }

  .footer__cta {
    width: 175px;
    min-height: 65px;
    font-size: 36px;
    line-height: 49px;
  }

  .footer__contact-data {
    width: 466px;
    grid-template-columns: 285px 149px;
    column-gap: 32px;
  }

  .footer__address {
    font-size: 16px;
    line-height: 22px;
  }

  .footer__address strong {
    font-size: 20px;
    line-height: 27px;
  }

  .footer__legal {
    margin-top: 73px;
  }

  .footer__bottom {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 0;
  }
}

/* =========================================================
   Mały tablet / duży telefon
   ========================================================= */

@media (max-width: 900px) {
  .footer {
    align-items: center;
    padding: 32px;
  }

  .footer__logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .footer__logo img {
    width: 318px;
    height: auto;
    object-position: center center;
  }

  .footer__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    width: 100%;
  }

  .footer__nav {
    width: 100%;
    max-width: 420px;
    justify-content: center;
    gap: 64px;
  }

  .footer__trusted,
  .footer__clients {
    width: 100%;
    max-width: 420px;
    align-items: center;
    text-align: center;
  }

  .footer__trusted-title {
    text-align: center;
  }

  .footer__clients {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 40px;
  }

  .footer__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 466px;
  }

  .footer__contact-action {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .footer__contact-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    text-align: center;
  }

  .footer__legal {
    margin-top: 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: 20px;
  }
}

/* =========================================================
   Telefon
   ========================================================= */

@media (max-width: 767px) {
  .footer {
    padding: 32px 24px;
    gap: 48px;
  }

  .footer__logo img {
    width: 100%;
    max-width: 318px;
    height: auto;
  }

  .footer__main {
    gap: 56px;
  }

  .footer__nav {
    max-width: 360px;
    gap: 56px;
  }

  .footer__nav a {
    font-size: 20px;
    line-height: 36px;
  }

  .footer__trusted,
  .footer__clients {
    max-width: 360px;
  }

  .footer__trusted-title {
    font-size: 36px;
    line-height: 44px;
  }

  .footer__clients {
    gap: 32px 40px;
  }

  .footer__cta {
    width: 240px;
    min-height: 72px;
    font-size: 40px;
    line-height: 48px;
  }

  .footer__contact-data {
    max-width: 420px;
  }

  .footer__address {
    font-size: 20px;
    line-height: 30px;
  }

  .footer__address strong {
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 40px;
  }

  .footer__copyright,
  .footer__privacy {
    font-size: 20px;
    line-height: 28px;
  }
}

/* =========================================================
   Mały telefon
   ========================================================= */

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

  .footer__nav {
    max-width: 100%;
    gap: 40px;
  }

  .footer__nav a {
    font-size: 18px;
    line-height: 34px;
  }

  .footer__clients {
    gap: 28px 32px;
  }

  .footer__address {
    font-size: 18px;
    line-height: 28px;
  }
}
