/* Aggio Cat: wspolne osadzenie zaakceptowanych banerow, 2026-10-20.
   Tylko CSS. Oryginalne pliki graficzne pozostaja bez zmian. */
html body .ac-all-content.ac-cats .ac-cats-main:has(> .ac-cats-hero.ac-premium-banner) {
  width: 100% !important;
  max-width: none !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body .ac-all-content.ac-cats .ac-cats-main > header.ac-cats-hero.ac-premium-banner.ac3d-integrated {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 1 !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #061527 !important;
  position: relative !important;
  z-index: 0 !important;
}
html body .ac-all-content.ac-cats .ac-cats-main > header.ac-cats-hero.ac-premium-banner.ac3d-integrated > img.ac3d-full {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  position: static !important;
  transform: none !important;
}
html body .ac-all-content.ac-cats .ac-cats-main > header.ac-cats-hero.ac-premium-banner.ac3d-integrated > img.ac3d-mobile {
  display: none !important;
}
html body .ac-all-content.ac-cats .ac-cats-main:has(> .ac-cats-hero.ac-premium-banner) > .ac-cats-grid {
  width: calc(100% - 32px) !important;
  max-width: 1170px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html body .ac-all-mioty section.ac-mioty-premium-banner {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
html body .ac-all-mioty section.ac-mioty-premium-banner > img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
}
html body .ac3 .offer-heading:not(.retired-heading) {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #071225 !important;
  background-image: url("assets/kocieta-baner-v208.png") !important;
  background-size: 100% auto !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  overflow: hidden !important;
}
/* Tytul HTML pozostaje dostepny dla czytnikow ekranu.
   Zatwierdzony baner zawiera juz widoczny tytul i podpis. */
html body .ac3 .offer-heading:not(.retired-heading) > .container {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* v2.64.7: the same original Polish logo on desktop and mobile. */
.ac-home-desktop-brand{display:none}
@media(min-width:801px){
 .ac-all-home .ac2-home > .ac-home-desktop-brand{position:absolute;display:flex;align-items:center;justify-content:center;left:1.3%;top:.4%;width:21.7%;height:11.4%;padding:.5%;z-index:4;background:linear-gradient(110deg,#091422,#060d17);box-shadow:0 0 8px 5px #081321;border-radius:8px;line-height:0}
 .ac-all-home .ac-home-desktop-brand > img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
 .ac-all-home .ac-home-desktop-brand:focus-visible{outline:2px solid #d6b2c8;outline-offset:3px}
}

/* Shortcode pages reset the theme's admin margin; reserve the toolbar space there. */
body.admin-bar .ac-all-content.ac3 > .ac-v245-spacer,
body.admin-bar .ac-all-content.ac-all-mioty > .ac-v245-spacer{margin-top:32px!important}
@media(max-width:782px){
 body.admin-bar .ac-all-content.ac3 > .ac-v245-spacer,
 body.admin-bar .ac-all-content.ac-all-mioty > .ac-v245-spacer{margin-top:46px!important}
}

/* v2.64.9: desktop-only 3:1 About layout. Approved source pixels are reused
   for the portrait and signature. Source proportions and the mobile markup stay intact. */
@media (min-width: 851px) {
  html body .ac-about-site main.ac-about-main:has(.ac-about-hero-me-approved) {
    padding-top: 0 !important;
    container-type: inline-size;
  }
  html body .ac-about-site .ac-about-hero-me-approved {
    display: block !important; position: relative !important; isolation: isolate;
    width: 100cqw !important; max-width: none !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    aspect-ratio: 3 / 1 !important;
    margin: 0 0 0 calc((100% - 100cqw) / 2) !important;
    padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    overflow: hidden !important;
    background: radial-gradient(ellipse at 8% 30%, #102b40 0%, #0b1b2b 36%, #030a12 68%, #000 100%) !important;
  }
  html body .ac-about-site .ac-about-hero-me-approved > img { display: none !important; }
  html body .ac-about-site .ac-about-hero-me-approved > h1,
  html body .ac-about-site .ac-about-hero-me-approved > p.ac-approved-visually-hidden {
    position: absolute !important; left: 6.2% !important;
    height: auto !important; max-width: none !important; margin: 0 !important;
    padding: 0 !important; border: 0 !important; overflow: visible !important;
    clip: auto !important; clip-path: none !important; white-space: normal !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-weight: 400 !important; color: #eef1f4 !important; text-align: left !important;
  }
  html body .ac-about-site .ac-about-hero-me-approved > h1 {
    top: 22% !important; width: 50% !important;
    font-size: 5.2cqw !important; line-height: 1.1 !important; letter-spacing: -.025em !important;
  }
  html body .ac-about-site .ac-about-hero-me-approved > h1::before {
    content: "AGGIO CAT*PL · POZNAJ HODOWCZYNIĘ";
    position: absolute; left: 0; bottom: calc(100% + 1.3cqw);
    font-family: Georgia, 'Times New Roman', serif; font-size: .95cqw;
    line-height: 1.3; letter-spacing: .2em; white-space: nowrap; color: #c193ae;
  }
  html body .ac-about-site .ac-about-hero-me-approved > p.ac-approved-visually-hidden {
    top: 44% !important; width: 43% !important;
    font-size: 1.5cqw !important; line-height: 1.5 !important; letter-spacing: 0 !important;
  }
  html body .ac-about-site .ac-about-hero-me-approved::before,
  html body .ac-about-site .ac-about-hero-me-approved::after {
    content: ""; position: absolute;
    background-image: url("assets/about-banners/o-mnie-zatwierdzony.png");
    background-repeat: no-repeat; pointer-events: none;
  }
  html body .ac-about-site .ac-about-hero-me-approved::before {
    left: 6.2%; top: 70%; width: 22.12806026%; height: 20.33898305%;
    background-size: 355.74468085% 653.47222222%;
    background-position: 5.82362729% 70.26348808%;
    mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent), linear-gradient(0deg, transparent, #000 5%, #000 95%, transparent);
    mask-composite: intersect;
    filter: brightness(1.1) contrast(2);
    mix-blend-mode: screen;
  }
  html body .ac-about-site .ac-about-hero-me-approved::after {
    right: 0; top: 0; width: 42.27871940%; height: 100%;
    background-size: 186.19153675% 132.90960452%;
    background-position: 96.89922481% 42.91845494%;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 100%);
  }
  html body .ac-about-site .ac-about-hero-me-approved + .ac-about-me-grid { margin-top: 16px !important; }
}
