/* Dopracowanie stopki: proporcje kolumn, nagłówki, odstępy, ikony, dolny pasek */
.site-footer { --footer-gap: clamp(1.5rem, 2.6vw, 2.75rem); --footer-line: clamp(.55rem, .5vw + .4rem, .7rem); }

/* 1. proporcje kolumn ~32 / 30 / 17 / 21 (desktop) */
@media (min-width: 1280px) {
  .site-footer .footer__grid {
    grid-template-columns: minmax(0, 32fr) minmax(0, 30fr) minmax(0, 17fr) minmax(0, 21fr);
    column-gap: var(--footer-gap);
    align-items: start;
  }
}
.site-footer .footer__main { padding-block: clamp(2.5rem, 4.5vw, 3.75rem) clamp(2rem, 3.5vw, 3rem); }
.site-footer .footer__grid { row-gap: 2.25rem; }

/* 2 + 4. nagłówki kolumn: jedna linia, lepszy kontrast i rytm */
.site-footer .footer__heading {
  margin: 0 0 .15rem;
  min-height: 1.3rem;
  display: flex;
  align-items: center;
  color: #cdeaa0;
  font-family: var(--font-text);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.site-footer .footer__brand-column, .site-footer .footer__contact-column, .site-footer .footer__nav { gap: .9rem; }

/* 3. równe odstępy pionowe: linki nawigacji i grupy kontaktu */
.site-footer .footer__links { gap: var(--footer-line); }
.site-footer .footer__link { display: inline-block; padding: .1rem 0; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.site-footer .footer__contact { gap: 1.1rem; }
.site-footer .footer__contact-row { gap: .9rem; align-items: flex-start; }
.site-footer .footer__contact-row > span:last-child { gap: .35rem; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.site-footer .footer__contact-row > span:last-child > strong { color: #fff; font-weight: 600; margin-bottom: .1rem; }

/* 5. wyróżnione dane główne */
.site-footer .footer__contact-row a.is-primary { color: #fff; font-weight: 700; font-size: 1.02rem; }
.site-footer .footer__contact-row a { transition: color .2s ease; }
.site-footer .footer__contact-row a:hover, .site-footer .footer__contact-row a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 7. ikony: wspólny rozmiar, tło i stany */
.site-footer .footer__social-link, .site-footer .footer__contact-icon {
  width: 2.5rem; height: 2.5rem; flex: none;
  background: rgba(255, 255, 255, .09);
  color: #e6f3d3;
}
.site-footer .footer__social-link svg, .site-footer .footer__contact-icon svg { width: 1.15rem; height: 1.15rem; }
.site-footer .footer__social-link { transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.site-footer .footer__social-link:hover, .site-footer .footer__social-link:focus-visible { background: #a1c201; color: #17200a; transform: translateY(-2px); }
.site-footer .footer__social-link:focus-visible, .site-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.site-footer .footer__social-link:focus-visible { border-radius: 999px; }
.site-footer .footer__contact-icon { margin-top: -.1rem; }
.site-footer .footer__lead { color: rgba(255, 255, 255, .8); line-height: 1.6; max-width: 28rem; }

/* 9. dolny pasek: niższy, ale z wygodnymi obszarami klikalnymi */
.site-footer .footer__bottom { padding-block: 0; }
.site-footer .footer__bottom-inner { min-height: 3.1rem; padding-block: .35rem; gap: .5rem 1.5rem; align-items: center; }
.site-footer .footer__copyright { margin: 0; font-size: .82rem; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.site-footer .footer__legal-links { gap: .15rem 1.25rem; }
.site-footer .footer__legal-link { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 .1rem; font-size: .82rem; color: rgba(255, 255, 255, .78); }

/* tablet: dwie kolumny, telefon: jedna – bez przewijania poziomego */
@media (max-width: 1279.98px) {
  .site-footer .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--footer-gap); }
  .site-footer .footer__brand-column { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .site-footer .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* 8. przycisk „na górę" – gdy widać dolny pasek stopki, unosi się nad nim */
.to-top { transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .35s, background .2s ease, box-shadow .2s ease, bottom .3s cubic-bezier(.22, 1, .36, 1); }
/* „na górę" nie zmienia pozycji przy stopce */

/* tablet/telefon: stały dolny pasek (64 px) nie zasłania praw autorskich; „na górę" po prawej stronie, gdzie jest wolne miejsce */
@media (max-width: 1279.98px) {
  .site-footer { padding-bottom: 0; }
  .site-footer .footer__bottom { padding-bottom: calc(.35rem + 64px); }
}

/* ===== Układ v3: kolumna 1 = logo + dane firmy + social; kolumna 2 = kontakt (telefony | e-maile) ===== */
@media (min-width: 1280px) {
  .site-footer .footer__grid { grid-template-columns: minmax(0, 30fr) minmax(0, 27fr) minmax(0, 19fr) minmax(0, 24fr); }
}
.site-footer .footer__main { padding-block: clamp(2rem, 3.2vw, 2.75rem) clamp(1.5rem, 2.6vw, 2.25rem); }
.site-footer .footer__grid { row-gap: 1.75rem; }

/* logo nie dominuje */
.site-footer .footer__brand img { width: clamp(6rem, 7vw, 7.25rem); }
.site-footer .footer__brand-column { gap: .85rem; }

/* dane firmy pod logo */
.site-footer .footer__company { display: grid; gap: .3rem; margin: 0; font-style: normal; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.site-footer .footer__company-name { color: #fff; font-weight: 600; margin-bottom: .1rem; }
.site-footer .footer__company-address { color: rgba(255, 255, 255, .82); text-decoration: none; transition: color .2s ease; width: fit-content; }
.site-footer .footer__company-address:hover, .site-footer .footer__company-address:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer__socials { margin-top: .25rem; }

/* kontakt: dwie grupy rozdzielone cienką linią, zwarte wiersze */
.site-footer .footer__contact { display: grid; gap: 0; }
.site-footer .footer__contact-group { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer .footer__contact-group + .footer__contact-group { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer .footer__contact-group li { display: flex; align-items: center; gap: .75rem; min-height: 2.1rem; }
.site-footer .footer__contact-group .footer__contact-icon { width: 2.1rem; height: 2.1rem; margin: 0; }
.site-footer .footer__contact-group .footer__contact-icon svg { width: 1rem; height: 1rem; }
.site-footer .footer__contact-group a { color: rgba(255, 255, 255, .85); text-decoration: none; min-height: 0; padding: 0; transition: color .2s ease; overflow-wrap: anywhere; }
.site-footer .footer__contact-group a.is-primary { color: #fff; font-weight: 700; font-size: 1.02rem; }
.site-footer .footer__contact-group a:hover, .site-footer .footer__contact-group a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* na tablecie kolumna 1 zajmuje cały wiersz – dane firmy i logo obok siebie nie są potrzebne */


/* telefon: wszystko wyrównane do lewej (spójnie z nagłówkami) */
@media (max-width: 767.98px) {
  .site-footer, .site-footer .footer__links, .site-footer .footer__legal-links, .site-footer .footer__copyright { text-align: left; }
  .site-footer .footer__links { justify-items: start; }
  .site-footer .footer__legal-links { justify-content: flex-start; }
}

/* ===== Poprawki: bez pogrubień kontaktów, bez podkreśleń po najechaniu ===== */
.site-footer .footer__contact-group a.is-primary,
.site-footer .footer__contact-row a.is-primary { font-weight: 400; font-size: inherit; color: rgba(255, 255, 255, .85); }
.site-footer a:hover, .site-footer a:focus-visible { text-decoration: none !important; }
.site-footer .footer__contact-group a:hover, .site-footer .footer__contact-group a:focus-visible,
.site-footer .footer__company-address:hover, .site-footer .footer__company-address:focus-visible,
.site-footer .footer__link:hover, .site-footer .footer__legal-link:hover { color: #fff; text-decoration: none; }

/* „na górę" zawsze po lewej; nad paskiem stopki unosi się tuż nad nim, a stopka ma miejsce pod przyciskiem */
@media (min-width: 1280px) { .site-footer .footer__main { padding-bottom: 4.5rem; } }

/* telefon: wszystko wyśrodkowane, prawa autorskie na samym dole */
@media (max-width: 767.98px) {
  .site-footer, .site-footer .footer__links, .site-footer .footer__legal-links, .site-footer .footer__copyright { text-align: center; }
  .site-footer .footer__grid { justify-items: center; }
  .site-footer .footer__brand-column, .site-footer .footer__contact-column, .site-footer .footer__nav { justify-items: center; justify-self: stretch; text-align: center; }
  .site-footer .footer__heading { justify-content: center; }
  .site-footer .footer__links { justify-items: center; }
  .site-footer .footer__company { justify-items: center; }
  .site-footer .footer__company-address, .site-footer .footer__brand { margin-inline: auto; }
  .site-footer .footer__socials { justify-content: center; }
  .site-footer .footer__contact { justify-items: center; }
  .site-footer .footer__contact-group { justify-items: center; }
  .site-footer .footer__contact-group li { justify-content: center; }
  .site-footer .footer__bottom-inner { flex-direction: column-reverse; align-items: center; justify-content: center; text-align: center; gap: .15rem; }
  .site-footer .footer__legal-links { justify-content: center; }
}

/* Mobile: dolny pasek (Dojazd / Kup bilet) i przycisk „do góry” nie zasłaniają stopki */
@media (max-width: 1199.98px) {
  body { padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-fixed { height: calc(4rem + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: border-box; background: var(--color-primary); }
  .mobile-fixed .mobile-fixed-container a { justify-content: center; gap: .3rem; padding: .5rem .75rem; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
  .mobile-fixed .mobile-fixed-container a .descp { line-height: 1.15; }
  .footer__copyright { padding-inline: 3.5rem; text-wrap: balance; }
}
