/* ===== FOOTER ===== */
.footer {
  background: #0a0a0a;
  color: #e5e7eb;
  padding: 32px 0 22px;
  font-family: Garet, system-ui, -apple-system;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer>.footer-main>.footer-links {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.footer .footer-links h3 {
  font-family: "Open Sans", system-ui, -apple-system;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer .footer-links a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 11.5px;
  line-height: 1.9;
  font-weight: 500;
}

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

.footer-address img[alt*="Security Masters"] {
  width: 220px;
  height: 64px;
  display: block;
  object-fit: cover;
  object-position: center;
  margin: 0 0 16px;
}

.footer-address p {
  margin: 30px 10px 16px;
  font-weight: 700;
  font-size: 13px;
  line-height: 2.2;
  color: #fff;
}

.footer-address-social {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-address-social img {
  width: 20px;
  height: 20px;
  display: block;
  margin-left: 10px;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 28px;
  padding: 28px 0;
  gap: 12px 18px;
  font-size: 12px;
  color: #cbd5e1;
}

.footer-legal p {
  margin: 0;
  color: #ffffff;
  font-weight: 500;
}

.footer-legal a {
  color: #ffffff;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-legal a+a::before {
  content: "|";
  margin: 0 10px 0 6px;
  color: rgba(255, 255, 255, .35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
}

.footer .footer-links .btn {
  display: inline-flex;
  width: auto;
  line-height: 1;
  padding: 14px 22px;
  margin-top: 80px;
  ;
  text-decoration: none !important;
}

.footer .footer-links a:not(.btn) {
  display: block;
  line-height: 1.9;
}

@media (max-width: 880px) {
  .footer>.footer-main>.footer-links {
    gap: 32px 24px;
  }

  .footer .footer-links .btn {
    margin-top: 32px;
  }

  .footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .footer>.footer-main>.footer-links {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-address img[alt*="Security Masters"] {
    margin: 0 auto;
  }

  .footer-address {
    text-align: center;
  }

  .footer-address p {
    margin: 16px 0 12px;
    line-height: 1.9;
  }

  .footer-address-social {
    justify-content: center;
  }

  .footer .footer-links {
    text-align: center;
  }

  .footer .footer-links .btn {
    margin-top: 18px;
  }

  .footer-legal {
    display: block;
    text-align: center;
  }

  .footer-legal p+p {
    margin-top: 8px;
  }

  .footer-legal p:last-child {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .footer-legal a+a::before {
    display: none;
  }
}

/* ≤ 560px */
@media (max-width: 560px) {
  .footer {
    padding: 26px 0 18px;
  }

  .footer-main {
    padding: 0 16px;
  }

  /* (zachowujemy 1 kolumnę, dokładamy dopracowania) */
  .footer>.footer-main>.footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-address img[alt*="Security Masters"] {
    width: 180px;
  }

  .footer .footer-links a {
    font-size: 11px;
  }

  .footer .footer-links h3 {
    font-size: 13px;
  }

  .footer-address-social img {
    width: 18px;
    height: 18px;
  }
}

/* ≤ 400px */
@media (max-width: 400px) {
  .footer-address img[alt*="Security Masters"] {
    width: 160px;
  }

  .footer .footer-links a {
    font-size: 10.5px;
  }

  .footer-legal {
    font-size: 11px;
  }
}