/* =========================================================
   4RINGS — PREMIUM FOOTER FINAL v94 / production integrated
   Źródło: zaakceptowany wariant WPCode, przeniesiony do 4rings-core.
   WAŻNE: klasy kategorii nie używają wzorca fr-cat-,
   żeby globalny badge lock nie robił z linków stopki plakietek.
   ========================================================= */

:root {
    --fr-logo-red: #D7193F;
    --fr-footer-bg: #07090d;
    --fr-footer-text: #f8fafc;
    --fr-footer-muted: #a7b0bd;
    --fr-footer-border: rgba(255,255,255,.14);
    --fr-footer-section-accent: #94A3B8;
    --fr-footer-news: #E12626;
    --fr-footer-tests: #1565C0;
    --fr-footer-rankings: #1E8E3E;
    --fr-footer-guides: #5B3CC4;
    --fr-footer-drives: #FFC400;
    --fr-footer-market: #F57C00;
    --fr-footer-china: #8B1E3F;
  }

  body footer.site-footer,
  body .site-footer,
  body .site-info,
  body .inside-site-info {
    display: none !important;
  }

  body .fr-premium-footer,
  body .fr-premium-footer * {
    box-sizing: border-box !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  }

  body .fr-premium-footer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 24px 0 15px !important;
    background: var(--fr-footer-bg) !important;
    color: var(--fr-footer-text) !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
  }

  body .fr-premium-footer__top {
    width: min(1040px, calc(100vw - 56px)) !important;
    max-width: 1040px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(450px, .95fr) minmax(300px, .6fr) !important;
    justify-content: center !important;
    gap: 54px !important;
    align-items: start !important;
  }

  body .fr-premium-footer__section {
    min-width: 0 !important;
  }

  body .fr-premium-footer__heading {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 0 10px !important;
    padding: 0 0 0 11px !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
  }

  body .fr-premium-footer__heading::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    bottom: 2px !important;
    width: 3px !important;
    background: var(--fr-footer-section-accent) !important;
  }

  body .fr-premium-footer__links {
    display: grid !important;
    grid-template-columns: repeat(4, max-content) !important;
    justify-content: start !important;
    align-items: center !important;
    gap: 7px 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
  }

  body .fr-premium-footer__links--editorial {
    grid-template-columns: repeat(2, max-content) !important;
    gap: 7px 22px !important;
  }

  body .fr-premium-footer__links li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Mocny reset badge/plakietek w stopce */
  body .fr-premium-footer a,
  body .fr-premium-footer a[class],
  body .fr-premium-footer .fr-premium-footer__links a,
  body .fr-premium-footer .fr-premium-footer__links a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 20px !important;
    padding: 2px 0 2px 10px !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    color: var(--fr-footer-muted) !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    font-weight: 640 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: color .18s ease !important;
  }

  body .fr-premium-footer .fr-premium-footer__links a::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 4px !important;
    bottom: 4px !important;
    width: 3px !important;
    background: var(--fr-cat, var(--fr-logo-red)) !important;
  }

  body .fr-premium-footer .fr-premium-footer__links--editorial a::before {
    background: var(--fr-footer-section-accent) !important;
  }

  body .fr-premium-footer .fr-premium-footer__links a:hover {
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    text-decoration: underline !important;
    text-decoration-color: var(--fr-cat, var(--fr-footer-section-accent)) !important;
    text-underline-offset: 4px !important;
  }

  body .fr-premium-footer__links a.fr-footer-news { --fr-cat: var(--fr-footer-news); }
  body .fr-premium-footer__links a.fr-footer-tests { --fr-cat: var(--fr-footer-tests); }
  body .fr-premium-footer__links a.fr-footer-rankings { --fr-cat: var(--fr-footer-rankings); }
  body .fr-premium-footer__links a.fr-footer-guides { --fr-cat: var(--fr-footer-guides); }
  body .fr-premium-footer__links a.fr-footer-drives { --fr-cat: var(--fr-footer-drives); }
  body .fr-premium-footer__links a.fr-footer-market { --fr-cat: var(--fr-footer-market); }
  body .fr-premium-footer__links a.fr-footer-china { --fr-cat: var(--fr-footer-china); }

  body .fr-premium-footer__bottom {
    width: min(1180px, calc(100vw - 56px)) !important;
    max-width: 1180px !important;
    margin: 22px auto 0 !important;
    padding-top: 15px !important;
    border-top: 1px solid var(--fr-footer-border) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 28px !important;
    align-items: center !important;
  }

  body .fr-premium-footer__brand {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 0 !important;
  }

  body .fr-premium-footer__logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: fit-content !important;
    text-decoration: none !important;
    padding: 0 !important;
  }

  body .fr-premium-footer__logo img {
    display: block !important;
    width: auto !important;
    max-width: 138px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    filter: none !important;
  }

  body .fr-premium-footer__desc {
    max-width: 420px !important;
    margin: 0 !important;
    color: var(--fr-footer-muted) !important;
    font-size: 11.8px !important;
    line-height: 1.45 !important;
    font-weight: 510 !important;
  }

  body .fr-premium-footer__copyright {
    color: var(--fr-footer-muted) !important;
    font-size: 11.8px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  @media (max-width: 900px) {
    body .fr-premium-footer {
      padding: 23px 0 15px !important;
    }

    body .fr-premium-footer__top {
      width: calc(100% - 32px) !important;
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 22px 18px !important;
      text-align: center !important;
      justify-items: center !important;
      overflow: hidden !important;
    }

    body .fr-premium-footer__section {
      width: 100% !important;
      max-width: 190px !important;
      text-align: left !important;
      justify-self: center !important;
    }

    body .fr-premium-footer__heading {
      margin-left: 0 !important;
      margin-right: 0 !important;
      margin-bottom: 9px !important;
      font-size: 11.7px !important;
    }

    body .fr-premium-footer__links,
    body .fr-premium-footer__links--editorial {
      grid-template-columns: 1fr !important;
      justify-content: start !important;
      justify-items: start !important;
      gap: 7px !important;
      width: 100% !important;
      margin: 0 !important;
    }

    body .fr-premium-footer .fr-premium-footer__links a {
      min-height: 22px !important;
      font-size: 11.8px !important;
      font-weight: 640 !important;
      padding-left: 10px !important;
      width: fit-content !important;
    }

    body .fr-premium-footer__bottom {
      width: calc(100% - 32px) !important;
      display: block !important;
      text-align: center !important;
      margin-top: 21px !important;
      padding-top: 15px !important;
    }

    body .fr-premium-footer__brand {
      display: block !important;
      text-align: center !important;
    }

    body .fr-premium-footer__logo {
      display: flex !important;
      margin-left: auto !important;
      margin-right: auto !important;
      justify-content: center !important;
      width: 100% !important;
    }

    body .fr-premium-footer__logo img {
      max-width: 148px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    body .fr-premium-footer__desc {
      max-width: 320px !important;
      margin: 10px auto 0 !important;
      text-align: center !important;
      font-size: 12px !important;
    }

    body .fr-premium-footer__copyright {
      margin-top: 13px !important;
      text-align: center !important;
      white-space: normal !important;
      font-size: 11.5px !important;
    }
  }

  @media (max-width: 370px) {
    body .fr-premium-footer__top {
      gap: 20px 12px !important;
    }

    body .fr-premium-footer__section {
      max-width: 155px !important;
    }

    body .fr-premium-footer .fr-premium-footer__links a {
      font-size: 11.3px !important;
    }
  }
