
/* V54 — opisy wydarzeń i automatyczne galerie podstron usług */
.service-events-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}
.service-event-card{
  position:relative;
  min-height:190px;
  padding:25px 24px 23px;
  border:1px solid rgba(15,39,70,.10);
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 42px rgba(15,39,70,.07);
  overflow:hidden;
}
.service-event-card::after{
  content:"";
  position:absolute;
  width:110px;
  height:110px;
  right:-42px;
  bottom:-48px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(24,192,195,.15),rgba(255,31,107,.05) 58%,transparent 70%);
}
.service-event-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  margin-bottom:17px;
  background:linear-gradient(135deg,rgba(255,31,107,.12),rgba(24,192,195,.13));
  font-size:22px;
}
.service-event-card h3{
  margin:0 0 9px;
  color:#0c213e;
  font-size:1.08rem;
  line-height:1.2;
}
.service-event-card p{
  position:relative;
  z-index:1;
  margin:0;
  color:#617089;
  line-height:1.65;
}
.service-gallery-section[hidden]{display:none!important}
.service-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}
.service-gallery-grid.is-single{
  grid-template-columns:minmax(0,760px);
  justify-content:center;
}
.service-gallery-grid.is-two{
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:920px;
  margin-left:auto;
  margin-right:auto;
}
.service-gallery-item{
  display:block;
  width:100%;
  padding:0;
  border:0;
  border-radius:22px;
  overflow:hidden;
  background:#eef3f7;
  box-shadow:0 18px 44px rgba(15,39,70,.10);
  cursor:zoom-in;
  aspect-ratio:4/3;
}
.service-gallery-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .35s ease;
}
.service-gallery-item:hover img{transform:scale(1.035)}
.service-gallery-note{
  margin:17px auto 0;
  max-width:760px;
  color:#748198;
  font-size:.92rem;
  text-align:center;
}
.service-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:26px;
  background:rgba(4,12,24,.88);
  backdrop-filter:blur(8px);
}
.service-lightbox.is-open{display:flex}
.service-lightbox img{
  max-width:min(1200px,94vw);
  max-height:88vh;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
}
.service-lightbox-close{
  position:absolute;
  top:18px;
  right:22px;
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:29px;
  line-height:1;
  cursor:pointer;
}
@media(max-width:820px){
  .service-events-grid{grid-template-columns:1fr;gap:14px}
  .service-event-card{min-height:0;padding:21px}
  .service-gallery-grid,
  .service-gallery-grid.is-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .service-gallery-grid.is-single{grid-template-columns:1fr}
  .service-gallery-item{border-radius:16px}
}
@media(max-width:520px){
  .service-gallery-grid,
  .service-gallery-grid.is-two{grid-template-columns:1fr}
  .service-lightbox{padding:14px}
}

/* V55 — czysta galeria + przewijanie strzałkami */
.service-gallery-section .addon-section-head > p,
.service-gallery-note{display:none!important}

.service-gallery-shell{
  position:relative;
  margin-top:28px;
}
.service-gallery-grid{
  display:flex!important;
  gap:18px!important;
  margin-top:0!important;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding:2px 2px 18px;
}
.service-gallery-grid::-webkit-scrollbar{display:none}
.service-gallery-grid .service-gallery-item{
  flex:0 0 calc((100% - 18px)/2);
  min-width:0;
  scroll-snap-align:start;
}
.service-gallery-arrow{
  position:absolute;
  top:50%;
  z-index:8;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,39,70,.10);
  border-radius:50%;
  background:rgba(255,255,255,.96);
  color:#0b1c38;
  box-shadow:0 12px 32px rgba(15,39,70,.16);
  font-size:34px;
  line-height:1;
  cursor:pointer;
  transform:translateY(-50%);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease,background .2s ease,color .2s ease;
}
.service-gallery-shell.can-scroll .service-gallery-arrow{
  opacity:1;
  pointer-events:auto;
}
.service-gallery-prev{left:-24px}
.service-gallery-next{right:-24px}
.service-gallery-arrow:hover:not(:disabled){
  background:#ff1762;
  color:#fff;
  transform:translateY(-50%) scale(1.06);
}
.service-gallery-arrow:disabled{
  opacity:.28!important;
  cursor:default;
  pointer-events:none!important;
}

.service-lightbox-arrow{
  position:absolute;
  top:50%;
  z-index:4;
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.42);
  border-radius:50%;
  background:rgba(4,12,24,.42);
  color:#fff;
  font-size:42px;
  line-height:1;
  cursor:pointer;
  transform:translateY(-50%);
  transition:background .2s ease,transform .2s ease;
}
.service-lightbox-arrow:hover{background:#ff1762;transform:translateY(-50%) scale(1.06)}
.service-lightbox-prev{left:24px}
.service-lightbox-next{right:24px}

@media(max-width:820px){
  .service-gallery-grid .service-gallery-item{flex-basis:calc((100% - 10px)/2)}
  .service-gallery-grid{gap:10px!important}
  .service-gallery-prev{left:8px}
  .service-gallery-next{right:8px}
  .service-gallery-arrow{width:42px;height:42px;font-size:30px}
  .service-lightbox-prev{left:8px}
  .service-lightbox-next{right:8px}
  .service-lightbox-arrow{width:44px;height:44px;font-size:34px}
}
@media(max-width:520px){
  .service-gallery-grid .service-gallery-item{flex-basis:100%}
}


/* V56 — lightbox: zdjęcie na środku, strzałki przy krawędziach zdjęcia */
.service-lightbox{
  padding:40px 92px !important;
}
.service-lightbox-stage{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  max-width:calc(100vw - 184px);
  max-height:calc(100vh - 80px);
}
.service-lightbox-stage img,
.service-lightbox > img{
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:min(1200px,calc(100vw - 184px)) !important;
  max-height:calc(100vh - 80px) !important;
  object-fit:contain !important;
  object-position:center center !important;
  margin:0 !important;
}
.service-lightbox-stage .service-lightbox-arrow{
  top:50% !important;
}
.service-lightbox-stage .service-lightbox-prev{
  left:-68px !important;
  right:auto !important;
}
.service-lightbox-stage .service-lightbox-next{
  right:-68px !important;
  left:auto !important;
}
@media(max-width:820px){
  .service-lightbox{
    padding:14px !important;
  }
  .service-lightbox-stage{
    max-width:calc(100vw - 28px);
    max-height:calc(100vh - 28px);
  }
  .service-lightbox-stage img,
  .service-lightbox > img{
    max-width:calc(100vw - 28px) !important;
    max-height:calc(100vh - 28px) !important;
  }
  .service-lightbox-stage .service-lightbox-prev{
    left:10px !important;
  }
  .service-lightbox-stage .service-lightbox-next{
    right:10px !important;
  }
}


/* V55 — wycentrowanie ikon strzałek i X */
.service-lightbox-close,
.service-lightbox-arrow,
.service-gallery-arrow{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  line-height:1 !important;
  text-align:center !important;
}
.service-lightbox-close{
  font-size:30px !important;
  color:transparent !important;
}
.service-lightbox-close::before{
  content:"×";
  display:block;
  color:#fff;
  transform:translateY(-1px);
}
.service-lightbox-arrow,
.service-gallery-arrow{
  font-family:Arial, Helvetica, sans-serif !important;
  font-weight:400 !important;
}
/* V56 — lightbox: strzałki na krańcach ekranu + idealne wyśrodkowanie ikon */
.service-lightbox{
  padding:0 !important;
}
.service-lightbox-stage{
  position:relative !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.service-lightbox img,
.service-lightbox-stage img{
  max-width:min(1200px, calc(100vw - 120px)) !important;
  max-height:calc(100vh - 48px) !important;
  margin:0 auto !important;
}
.service-lightbox-prev,
.service-lightbox-next{
  position:absolute !important;
  top:50% !important;
  transform:translateY(-50%) !important;
}
.service-lightbox-prev{left:22px !important; right:auto !important;}
.service-lightbox-next{right:22px !important; left:auto !important;}
.service-lightbox-close{
  top:18px !important;
  right:18px !important;
}
.service-lightbox-arrow,
.service-lightbox-close,
.service-gallery-arrow{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  line-height:1 !important;
  padding:0 !important;
}
.service-lightbox-arrow{
  font-size:0 !important;
}
.service-lightbox-prev::before,
.service-lightbox-next::before{
  display:block;
  color:#fff;
  font-family:Arial, Helvetica, sans-serif;
  font-size:36px;
  line-height:1;
  transform:translateY(-1px);
}
.service-lightbox-prev::before{content:"<"; transform:translate(-1px,-1px);} 
.service-lightbox-next::before{content:">"; transform:translate(1px,-1px);} 
.service-lightbox-close{
  font-size:0 !important;
  color:transparent !important;
}
.service-lightbox-close::before{
  content:"×";
  display:block;
  color:#fff;
  font-family:Arial, Helvetica, sans-serif;
  font-size:28px;
  line-height:1;
  transform:translateY(-1px);
}
@media(max-width:820px){
  .service-lightbox img,
  .service-lightbox-stage img{
    max-width:calc(100vw - 72px) !important;
    max-height:calc(100vh - 40px) !important;
  }
  .service-lightbox-prev{left:10px !important;}
  .service-lightbox-next{right:10px !important;}
  .service-lightbox-close{top:10px !important; right:10px !important;}
  .service-lightbox-arrow{width:44px !important; height:44px !important;}
  .service-lightbox-prev::before,
  .service-lightbox-next::before{font-size:30px;}
  .service-lightbox-close::before{font-size:24px;}
}


/* V57 — FINAL: działające kontrolki lightboxa na krawędziach viewportu */
.service-lightbox{
  padding:0 !important;
}
.service-lightbox-stage{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  pointer-events:auto !important;
}
.service-lightbox-stage img{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:min(1200px,calc(100vw - 130px)) !important;
  max-height:calc(100vh - 50px) !important;
  object-fit:contain !important;
  margin:auto !important;
  pointer-events:auto !important;
}
.service-lightbox-arrow,
.service-lightbox-close{
  position:fixed !important;
  z-index:100003 !important;
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  min-height:54px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  margin:0 !important;
  border:1px solid rgba(255,255,255,.48) !important;
  border-radius:50% !important;
  background:rgba(4,12,24,.42) !important;
  color:#fff !important;
  line-height:1 !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  font-size:0 !important;
  transform:none !important;
}
.service-lightbox-arrow span,
.service-lightbox-close span{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
  color:#fff !important;
  font-family:Arial,Helvetica,sans-serif !important;
  line-height:1 !important;
  text-align:center !important;
  transform:none !important;
  pointer-events:none !important;
}
.service-lightbox-prev{
  left:20px !important;
  right:auto !important;
  top:50% !important;
  bottom:auto !important;
  transform:translateY(-50%) !important;
}
.service-lightbox-next{
  right:20px !important;
  left:auto !important;
  top:50% !important;
  bottom:auto !important;
  transform:translateY(-50%) !important;
}
.service-lightbox-prev span,
.service-lightbox-next span{
  font-size:30px !important;
  font-weight:700 !important;
}
.service-lightbox-close{
  top:18px !important;
  right:18px !important;
  left:auto !important;
  bottom:auto !important;
}
.service-lightbox-close span{
  font-size:31px !important;
  font-weight:400 !important;
  padding-bottom:2px !important;
}
.service-lightbox-arrow::before,
.service-lightbox-arrow::after,
.service-lightbox-close::before,
.service-lightbox-close::after{
  content:none !important;
  display:none !important;
}
.service-lightbox-arrow:hover,
.service-lightbox-close:hover{
  background:#ff1762 !important;
}
@media(max-width:820px){
  .service-lightbox-stage img{
    max-width:calc(100vw - 76px) !important;
    max-height:calc(100vh - 46px) !important;
  }
  .service-lightbox-arrow,
  .service-lightbox-close{
    width:46px !important;height:46px !important;min-width:46px !important;min-height:46px !important;
  }
  .service-lightbox-prev{left:8px !important;}
  .service-lightbox-next{right:8px !important;}
  .service-lightbox-close{top:8px !important;right:8px !important;}
  .service-lightbox-prev span,.service-lightbox-next span{font-size:26px !important;}
  .service-lightbox-close span{font-size:27px !important;}
}
