.site-footer {
  --sf-ink: #111;
  --sf-paper: #e8e4da;
  --sf-acid: #dfff00;
  --sf-red: #f13b2d;
  position: relative;
  display: block !important;
  width: 100%;
  grid-template-columns: none !important;
  z-index: 2;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--sf-paper) !important;
  background: var(--sf-ink) !important;
  border-top: 1px solid var(--sf-ink);
  font-family: "IBM Plex Mono", monospace;
  text-align: left !important;
}

.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; }
.site-footer a { color: inherit; text-decoration: none; }

.site-footer__lead {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(20rem, 3.2fr) minmax(13rem, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 5rem);
  min-height: clamp(22rem, 43vw, 40rem);
  padding: clamp(2rem, 5vw, 5rem);
  color: var(--sf-ink);
  background: var(--sf-acid);
  border-bottom: 1px solid var(--sf-ink);
  overflow: hidden;
}

.site-footer__lead > * { min-width: 0; }

.site-footer__eyebrow {
  align-self: start;
  margin: 0 !important;
  font: 600 .68rem/1.4 "IBM Plex Mono", monospace !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-footer__eyebrow::before { content: "●"; margin-right: .65rem; color: var(--sf-red); }

.site-footer__lead h2 {
  margin: 0 !important;
  max-width: 13ch;
  color: var(--sf-ink) !important;
  font: 900 clamp(3.2rem, 8.4vw, 9.5rem)/.82 "Archivo Black", sans-serif !important;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.site-footer__lead h2 em {
  display: block;
  color: var(--sf-red);
  font: italic 500 .76em/.95 "Newsreader", serif;
  letter-spacing: -.055em;
  text-transform: none;
}
.site-footer__lead h2 > span + span { margin-left: .14em; }

.site-footer__cta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 1rem 1.2rem !important;
  color: var(--sf-paper) !important;
  background: var(--sf-ink);
  border: 1px solid var(--sf-ink);
  font: 700 .72rem/1.2 "IBM Plex Mono", monospace !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease;
}

.site-footer__cta span { font: 400 1.5rem/1 "Newsreader", serif; transition: transform .18s ease; }
.site-footer__cta:hover { color: var(--sf-ink) !important; background: var(--sf-paper); }
.site-footer__cta:hover span { transform: translate(.25rem, -.25rem); }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 2fr) repeat(3, minmax(10rem, 1fr));
  border-bottom: 1px solid #474747;
}

.site-footer__brand, .site-footer__column {
  min-width: 0;
  padding: clamp(2rem, 4vw, 4.25rem);
  border-right: 1px solid #474747;
}

.site-footer__column:last-child { border-right: 0; }

.site-footer .site-footer__wordmark {
  display: inline-flex !important;
  align-items: baseline;
  margin: 0 0 2.25rem !important;
  color: var(--sf-paper) !important;
  font-family: "Archivo Black", sans-serif !important;
  font-size: clamp(1.65rem, 2.8vw, 3.5rem) !important;
  line-height: .9 !important;
  letter-spacing: -.07em;
}

.site-footer__wordmark span { color: var(--sf-red); }
.site-footer .site-footer__wordmark.brand-logo { gap: .9rem; letter-spacing: 0; }
.site-footer .site-footer__wordmark.brand-logo { align-items: center !important; }
.site-footer .site-footer__wordmark .brand-logo__mark { width: clamp(2.7rem, 4vw, 4.5rem); height: clamp(2.7rem, 4vw, 4.5rem); object-fit: contain; }
.site-footer .site-footer__wordmark .brand-logo__name { color: var(--sf-paper); font: 700 clamp(1.3rem, 2.25vw, 2.6rem)/1 "IBM Plex Mono", monospace; letter-spacing: -.07em; text-transform: lowercase; }
.site-footer .site-footer__wordmark .brand-logo__name i { color: var(--sf-red); font-style: normal; }
.site-footer__brand > p { margin: 0 0 2.2rem !important; max-width: 28rem; color: #a9a69f !important; font: 400 clamp(.82rem, 1vw, .95rem)/1.65 "IBM Plex Mono", monospace !important; }
.site-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.site-footer__contact a { display: inline-block; padding: .25rem 0; font: 500 clamp(.78rem, .9vw, .9rem)/1.4 "IBM Plex Mono", monospace !important; border-bottom: 1px solid #555; }

.site-footer__label {
  display: block;
  margin: 0 0 1.75rem !important;
  color: #a19d93 !important;
  font: 600 .63rem/1.3 "IBM Plex Mono", monospace !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer__column nav, .site-footer__column { font-size: inherit; }
.site-footer__column a:not(.site-footer__social-link) {
  display: block;
  width: fit-content;
  padding: .38rem 0;
  color: var(--sf-paper) !important;
  font: 400 .75rem/1.35 "IBM Plex Mono", monospace !important;
}
.site-footer__column a:not(.site-footer__social-link)::before { content: "↳"; display: inline-block; width: 0; opacity: 0; color: var(--sf-acid); transition: width .18s ease, opacity .18s ease; }
.site-footer__column a:not(.site-footer__social-link):hover::before { width: 1.2rem; opacity: 1; }

.site-footer__socials { display: grid; gap: .65rem; }
.site-footer__social-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 3.2rem;
  padding: .8rem 0 !important;
  color: var(--sf-paper) !important;
  border-top: 1px solid #555;
  font: 700 .7rem/1.2 "IBM Plex Mono", monospace !important;
  text-transform: uppercase;
}
.site-footer__social-link:last-child { border-bottom: 1px solid #555; }
.site-footer__social-link span { color: var(--sf-red); font-size: 1.15rem; transition: transform .18s ease; }
.site-footer__social-link:hover span { transform: translate(.2rem, -.2rem); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem clamp(2rem, 4vw, 4.25rem);
  color: #a19d93;
  font: 400 .62rem/1.45 "IBM Plex Mono", monospace !important;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.site-footer__bottom p { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.35rem; margin: 0 !important; color: inherit !important; font: inherit !important; }
.site-footer__copyright,
.site-footer__nip { white-space: nowrap; }
.site-footer__locations { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; color: #999; }
.site-footer__locations a { white-space: nowrap; }
.site-footer__locations strong { color: var(--sf-paper); font-weight: 800; }
.site-footer__locations i { color: #555; font-style: normal; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer__legal a { color: #aaa !important; }
.site-footer a:focus-visible { outline: 3px solid var(--sf-red); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-footer__lead { grid-template-columns: 1fr; align-items: start; min-height: 34rem; }
  .site-footer__eyebrow { align-self: auto; }
  .site-footer__cta { width: min(100%, 22rem); }
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid #474747; }
}

@media (max-width: 680px) {
  .site-footer__lead { min-height: 31rem; padding: 2rem 1.25rem; gap: 2.5rem; }
  .site-footer__lead h2 { width: 100%; max-width: none; font-size: clamp(2.85rem, 13.5vw, 3.8rem) !important; line-height: .82 !important; overflow-wrap: normal; word-break: normal; }
  .site-footer__lead h2 > span { display: block; }
  .site-footer__lead h2 > span + span { margin-left: 0; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand, .site-footer__column { padding: 2rem 1.25rem; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__column:nth-child(3) { border-right: 0; }
  .site-footer__column:last-child { grid-column: 1 / -1; border-top: 1px solid #474747; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; padding: 1.4rem 1.25rem; }
  .site-footer__bottom p { display: grid; gap: .6rem; width: 100%; line-height: 1.45 !important; }
  .site-footer__bottom p > span { display: block; }
  .site-footer__locations { display: flex !important; gap: .38rem .62rem; line-height: 1.65; }
  .site-footer__legal { width: 100%; justify-content: space-between; gap: .75rem; }
}

/* --- Formularz kontaktowy w bloku CTA --- */
.site-footer__form-block {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: clamp(1.75rem, 3.5vw, 3.5rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--sf-ink);
}

.site-footer__form-eyebrow {
  margin: 0 0 1.1rem !important;
  font: 600 .68rem/1.4 "IBM Plex Mono", monospace !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sf-ink) !important;
}
.site-footer__form-eyebrow::before { content: "●"; margin-right: .65rem; color: var(--sf-red); }

.site-footer__form { margin: 0; }

.site-footer__form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--sf-ink);
  border: 1px solid var(--sf-ink);
}

.site-footer__field { display: block; padding: .8rem 1rem 1rem; background: var(--sf-acid); }
.site-footer__field--wide { grid-column: 1 / -1; }
.site-footer__field > span {
  display: block;
  margin-bottom: .45rem;
  font: 600 .63rem/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-ink);
}
.site-footer__field input,
.site-footer__field textarea {
  display: block;
  width: 100%;
  min-height: 2rem;
  padding: .15rem 0;
  border: 0;
  background: transparent;
  color: var(--sf-ink);
  font: 500 1rem/1.5 "IBM Plex Mono", monospace;
  border-radius: 0;
  outline: none;
  resize: vertical;
}
.site-footer__field:focus-within { background: var(--sf-paper); }
.site-footer__field input:focus-visible,
.site-footer__field textarea:focus-visible { outline: 3px solid var(--sf-red); outline-offset: 3px; }

/* honeypot - pole niewidoczne dla ludzi, przynęta dla botów */
.site-footer__form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.site-footer__form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.1rem;
}

.site-footer__form-submit {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  min-height: 3.25rem;
  padding: .9rem 1.4rem;
  border: 1px solid var(--sf-ink);
  background: var(--sf-ink);
  color: var(--sf-paper);
  font: 700 .72rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  transition: color .18s ease, background .18s ease;
}
.site-footer__form-submit span { font: 400 1.35rem/1 "Newsreader", serif; transition: transform .18s ease; }
.site-footer__form-submit:hover { color: var(--sf-ink); background: var(--sf-paper); }
.site-footer__form-submit:hover span { transform: translate(.25rem, -.25rem); }
.site-footer__form-submit:focus-visible { outline: 3px solid var(--sf-red); outline-offset: 4px; }
.site-footer__form-submit:disabled { opacity: .6; cursor: wait; }

.site-footer__form-note {
  margin: 0 !important;
  max-width: 30rem;
  font: 400 .68rem/1.55 "IBM Plex Mono", monospace !important;
  color: #3d3d00 !important;
}
.site-footer__form-note a { color: var(--sf-ink) !important; text-decoration: underline !important; }

.site-footer__form-status {
  margin: 1rem 0 0 !important;
  width: fit-content;
  max-width: 100%;
  padding: .8rem 1rem;
  background: var(--sf-ink);
  color: var(--sf-acid) !important;
  font: 600 .75rem/1.5 "IBM Plex Mono", monospace !important;
}
.site-footer__form-status.is-error { background: var(--sf-red); color: var(--sf-paper) !important; }
.site-footer__form-status[hidden] { display: none; }

@media (max-width: 680px) {
  .site-footer__form-fields { grid-template-columns: 1fr; }
  .site-footer__form-submit { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer a, .site-footer a *,
  .site-footer__form-submit, .site-footer__form-submit * { transition: none !important; }
}
