/* ============================================================
   SITE FOOTER — light theme (Stripe/Notion pattern)
   Klasa .footer pozostaje dla backward-compat ze starym CSS.
   Wszystko domknięte selektorem .site-footer aby przeciąć
   wycieki z main.min.css (.footer { padding }, .footer p {…}).
   ============================================================ */

.site-footer {
  --sf-bg: #fafafa;
  --sf-card: #ffffff;
  --sf-text: #0a0a0a;
  --sf-text-2: #374151;
  --sf-text-3: #6b7280;
  --sf-border: #e7e7e7;
  --sf-border-soft: #eef1f5;
  --sf-blue: #3476e9;
  --sf-blue-hover: #1e62d9;
  --sf-blue-light: #eaf1fd;
  --sf-ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--sf-bg);
  color: var(--sf-text-2);
  /* override .footer { padding: 31.35px 41.25px } z main.min.css */
  padding: 50px 0 28px;
  font-size: 14px;
  position: relative;
  /* Brak margin-top i border-top — footer "klei" się bezpośrednio do ostatniej sekcji
     bez białego paska i linii separującej. */
}

/* Override .footer p { font-size: 11px } z main.min.css */
.site-footer p {
  font-size: inherit;
}

.site-footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

/* === TOP: brand + columns === */
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 72px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--sf-border-soft);
}
.site-footer .footer-brand-col {
  display: flex;
  flex-direction: column;
}
.site-footer .footer-social {
  display: flex;
  gap: 8px;
}
.site-footer .footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: 8px;
  color: var(--sf-text-3);
  transition: color .18s var(--sf-ease), border-color .18s var(--sf-ease), transform .18s var(--sf-ease), box-shadow .18s var(--sf-ease);
  text-decoration: none;
}
.site-footer .footer-social a:hover {
  color: var(--sf-text);
  border-color: #c8c8c8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
.site-footer .footer-social svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}
.site-footer .footer-social svg[fill="none"] { fill: none; }
.site-footer .footer-social svg path,
.site-footer .footer-social svg rect,
.site-footer .footer-social svg line { color: inherit; }

.site-footer .footer-apps {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  max-width: 320px;
}
.site-footer .footer-apps a {
  flex: 1 1 0;
  min-width: 0;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: 9px;
  color: var(--sf-text);
  text-decoration: none;
  transition: border-color .18s var(--sf-ease), transform .18s var(--sf-ease), box-shadow .18s var(--sf-ease);
  font-size: 12px;
  line-height: 1.2;
  box-sizing: border-box;
}
.site-footer .footer-apps a:hover {
  border-color: #c8c8c8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}
.site-footer .footer-apps svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}
/* Oba ikony tej samej wielkości. Logo nie skaluje boxa — boxy mają flex:1 (równe). */
.site-footer .footer-apps .apple-badge svg,
.site-footer .footer-apps .gplay-badge svg { width: 24px; height: 24px; }
.site-footer .footer-apps .app-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.site-footer .footer-apps .app-eyebrow {
  font-size: 9px;
  color: var(--sf-text-3);
}
.site-footer .footer-apps .app-name {
  font-size: 12px;
  font-weight: 600;
}

/* === KOLUMNY === */
.site-footer .footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.site-footer details.footer-col > summary {
  list-style: none;
  cursor: pointer;
}
.site-footer details.footer-col > summary::-webkit-details-marker { display: none; }
.site-footer details.footer-col > summary::marker { display: none; }
.site-footer details.footer-col > summary > h3 { margin: 0; }
.site-footer .footer-col h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-text-3);
  margin: 0 0 14px;
}
.site-footer .footer-chev {
  width: 16px;
  height: 16px;
  color: var(--sf-text-3);
  transition: transform .2s var(--sf-ease);
  flex-shrink: 0;
}

/* domyślnie ul w kolumnie = pionowa lista flex */
.site-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Produkt — 2 kolumny pod jednym labelem.
   Większa specyficzność niż `.site-footer .footer-col ul`, więc display:grid wygrywa. */
.site-footer ul.footer-col-grid,
.site-footer .footer-col ul.footer-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
}

.site-footer .footer-col a {
  color: var(--sf-text-2);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .15s var(--sf-ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
/* Domyka leaki: globalne `a { line-height: 2rem; font-size: 1.38rem }`
   i `.footer a { line-height: 22px; font-size: 11px }` z main.min.css.
   Specyficzność 0,3,2 + jawny li w selektorze przebija wszystko poniżej. */
.site-footer .footer-cols .footer-col ul li a {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
}
/* Reset line-box na <li> — bez tego li dziedziczy line-height/font-size
   z globalnych reguł motywu i rezerwuje 32px wysokości zamiast ~20px,
   przez co lista wygląda na rozstrzeloną. */
.site-footer .footer-cols .footer-col ul li {
  font-size: 13.5px;
  line-height: 1.45;
  padding: 0;
  margin: 0;
  min-height: 0;
}
.site-footer .footer-col a:hover {
  color: var(--sf-text);
}

.site-footer .ftr-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--sf-blue-light);
  color: var(--sf-blue);
  border: 1px solid rgba(82, 138, 245, .15);
}
.site-footer .ftr-badge.ftr-badge-hot {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(146, 64, 14, .12);
}

/* "Program partnerski" — link wyróżniony ze strzałką */
.site-footer .footer-col .footer-more {
  color: var(--sf-blue);
  font-weight: 600;
}
.site-footer .footer-col .footer-more::after {
  content: '→';
  margin-left: 6px;
  display: inline-block;
  transition: transform .18s var(--sf-ease);
}
.site-footer .footer-col .footer-more:hover {
  color: var(--sf-blue-hover);
}
.site-footer .footer-col .footer-more:hover::after {
  transform: translateX(3px);
}

/* Desktop: chevron schowany, summary nieklikalne — details zawsze otwarte */
@media (min-width: 1025px) {
  .site-footer details.footer-col > summary {
    cursor: default;
    pointer-events: none;
    display: block;
    margin: 0 0 14px;
  }
  .site-footer .footer-chev { display: none; }
}

/* === TRUST STRIP (badge'y + EU logo) === */
.site-footer .footer-trust {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--sf-border-soft);
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-footer .footer-trust-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sf-text-3);
  flex-shrink: 0;
}
.site-footer .trust-row {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.site-footer .trust-group {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-footer .trust-row img {
  height: 38px;
  width: auto;
  opacity: .75;
  transition: opacity .25s var(--sf-ease);
  display: block;
}
.site-footer .trust-row img:hover { opacity: 1; }
.site-footer .trust-group:first-child img { height: 43px; }

/* EU logo — zachowane jako MAŁE inline SVG z motywu.
   Override .footer .ue-logo { display: flex } z main.min.css
   nie szkodzi (chcemy flex), ale tu domykamy rozmiar i wyrównanie. */
.site-footer .footer-eu-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .2s var(--sf-ease);
  opacity: .88;
  margin-left: auto;
  flex-shrink: 0;
}
.site-footer .footer-eu-mark:hover { opacity: 1; }
.site-footer .footer-eu-mark svg {
  height: 28px;
  width: auto;
  display: block;
}

/* === BOTTOM === */
.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  padding-top: 24px;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer .footer-copy {
  margin: 0;
  color: var(--sf-text);
  font-size: 12.5px;
  font-weight: 500;
}
.site-footer .footer-legal {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-left: auto;
}
/* Silna reguła z !important — domyka leaki z main.min.css
   (.footer a { font-size: 11px; line-height: 22px; color: #001139 } itd.)
   i ewentualnie inne, których nie znalazłem grep'em. */
.site-footer .footer-bottom .footer-legal a {
  color: var(--sf-text-3) !important;
  text-decoration: none !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: color .15s var(--sf-ease);
}
.site-footer .footer-bottom .footer-legal a:hover {
  color: var(--sf-text);
}

/* === RESPONSIVE — tablet === */
@media (max-width: 1024px) {
  .site-footer { padding: 56px 0 24px; }
  .site-footer .footer-inner { padding: 0 24px; }
  .site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 16px;
    border-bottom: none;
  }
  .site-footer .footer-cols {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--sf-border-soft);
  }
  .site-footer details.footer-col {
    border-bottom: 1px solid var(--sf-border-soft);
  }
  /* Ostatni col (Zasoby) — bez linii pod, żeby Trust strip "podpiął się" bezpośrednio. */
  .site-footer details.footer-col:last-child {
    border-bottom: none;
  }
  /* Trust strip podciągnięty na mobile — bez padding-top, skoro brak linii nad. */
  .site-footer .footer-trust {
    padding-top: 0;
  }
  .site-footer details.footer-col > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin: 0;
    gap: 12px;
  }
  .site-footer details.footer-col > summary > h3 {
    font-size: 13px;
    color: var(--sf-text);
    letter-spacing: .06em;
    transition: color .18s var(--sf-ease);
  }
  .site-footer details.footer-col[open] > summary > h3 { color: var(--sf-blue); }
  .site-footer details.footer-col[open] .footer-chev {
    transform: rotate(180deg);
    color: var(--sf-blue);
  }
  .site-footer details.footer-col > ul {
    padding: 2px 0 18px;
    gap: 10px;
  }
  .site-footer details.footer-col > ul > li > a {
    font-size: 14.5px;
    padding: 4px 0;
  }
  /* Produkt na mobile: jedna kolumna (zostaje accordion) */
  .site-footer .footer-col ul.footer-col-grid,
  .site-footer ul.footer-col-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .site-footer .footer-trust {
    flex-wrap: wrap;
    gap: 18px 28px;
  }
  .site-footer .footer-eu-mark { margin-left: auto; }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* === RESPONSIVE — mobile === */
@media (max-width: 720px) {
  .site-footer { padding: 30px 0 24px; }
  .site-footer .footer-inner { padding: 0 20px; }
  .site-footer .footer-top {
    gap: 32px;
    padding-bottom: 28px;
  }
  .site-footer .footer-brand-col { gap: 0; }
  .site-footer .footer-social { gap: 8px; }
  .site-footer .footer-social a { width: 38px; height: 38px; }
  .site-footer .footer-apps {
    flex-direction: row;
    gap: 8px;
    margin-top: 14px;
  }
  .site-footer .footer-apps a {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    justify-content: center;
  }
  .site-footer .footer-trust {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 0 24px;
    text-align: center;
  }
  .site-footer .footer-trust-label {
    align-self: center;
    font-size: 10px;
  }
  .site-footer .trust-row {
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    width: 100%;
  }
  .site-footer .trust-row img { height: 30px; }
  .site-footer .trust-group:first-child img { height: 34px; }
  .site-footer .trust-group { gap: 22px; }
  .site-footer .footer-eu-mark {
    margin-left: 0;
    margin-top: 6px;
    align-self: center;
  }
  /* Mobile zostaje przy poprzednim rozmiarze; desktopowy ~+15% nie aplikuje się tu */
  .site-footer .footer-eu-mark svg { height: 24px; }
  .site-footer .footer-bottom {
    gap: 10px;
    padding-top: 20px;
  }
  .site-footer .footer-copy { font-size: 12px; }
  /* App badges pełna szerokość na mobile (tablet/desktop zostają z max-width: 320px) */
  .site-footer .footer-apps {
    max-width: none;
  }
  .site-footer .footer-legal {
    gap: 8px 14px;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .site-footer .footer-bottom .footer-legal a {
    font-size: 11px !important;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .site-footer .footer-apps a { padding: 9px 10px; }
  .site-footer .footer-apps .app-eyebrow { font-size: 8.5px; }
  .site-footer .footer-apps .app-name { font-size: 11.5px; }
}
