/* Wspólna stopka Kredo Labs — zwarty, minimalistyczny układ (ładowany z home-page.css lub osobno) */
@import url('nav-logo-balloon.css');

.footer-main {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .footer-main {
    padding-top: 2.25rem;
    padding-bottom: 1.75rem;
  }
}

/* Wrapper max-w: kolumna — rząd linków nad paskiem dolnym */
.footer-main > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Tylko rząd kolumn (.grid) — elastyczny wrap; nie stylować paska .border-t jako kolumny */
.footer-main > div:first-of-type > .grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 1rem 1.5rem !important;
  margin-bottom: 0.875rem !important;
}

.footer-main > div:first-of-type > .grid > div {
  flex: 1 1 160px;
  min-width: min(100%, 140px);
  max-width: 100%;
  box-sizing: border-box;
}

.footer-main > div:first-of-type > .grid > div:first-child {
  flex: 1 1 220px;
  max-width: min(380px, 100%);
}

@media (min-width: 1024px) {
  .footer-main > div:first-of-type > .grid > div:first-child {
    flex: 1.25 1 260px;
    max-width: 400px;
  }
}

@media (max-width: 639px) {
  .footer-main > div:first-of-type > .grid > div {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.footer-main h3 {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main .footer-nav-link {
  display: inline-block;
  padding: 2px 0;
  font-size: 0.75rem;
  color: #cbd5e1;
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.55);
  text-underline-offset: 3px;
  line-height: 1.4;
  transition: color 0.15s;
}

.footer-main .footer-nav-link:hover {
  color: #38bdf8;
  text-decoration-color: rgba(56, 189, 248, 0.7);
}

.footer-main .footer-micro {
  display: block;
  font-size: 0.625rem;
  line-height: 1.35;
  color: #94a3b8;
  margin-top: 0.08rem;
  margin-bottom: 0.3rem;
  max-width: 14rem;
}

.footer-main .footer-li-spaced {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.footer-main .footer-li-spaced li + li {
  margin-top: 0;
}

.footer-main .footer-lang-link {
  color: #cbd5e1;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  padding: 0 4px;
}

.footer-main .footer-lang-link:hover {
  color: #67e8f9;
}

.footer-main .footer-legal-meta {
  color: #94a3b8;
  font-size: 0.6875rem;
}

.footer-main .border-t {
  border-color: rgba(71, 85, 105, 0.5) !important;
  margin-top: 0.5rem !important;
}

.footer-main .border-t + div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.65rem;
}

@media (max-width: 639px) {
  .footer-main .border-t + div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.footer-main .border-t + div p:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.footer-main address {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.footer-main address a {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}

.footer-main address i {
  flex-shrink: 0;
  width: 0.875rem;
}

.footer-main .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.footer-main .footer-social a {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border-radius: 0.375rem;
  transition: color 0.15s ease;
}

/* Nagłówek: „KREDO” — efekt glitch wylaczony */
span.nav-brand-title {
  display: inline-block;
  position: relative;
  transform: none;
  isolation: auto;
  animation: none !important;
  text-shadow: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  span.nav-brand-title {
    animation: none;
    text-shadow: none;
    filter: none;
  }
}
