

:root{
  --bg:#050505;
  --fg:#ffffff;
  --dim:rgba(255,255,255,.78);

  --gold1:#f4e1a6;
  --gold2:#d6b35f;

  --card:rgba(255,255,255,.04);
  --card2:rgba(255,255,255,.06);

  --stroke:rgba(255,255,255,.12);
  --stroke2:rgba(255,255,255,.22);

  --radius:24px;
  --imgBorder:rgba(255,255,255,.90);

  --shadow1:0 18px 44px rgba(0,0,0,.35);
  --shadow2:0 22px 60px rgba(0,0,0,.46);
}


body.service-page{
  background-color:var(--bg);
  color:var(--fg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;

  
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.035) 0,
      rgba(255,255,255,.035) 1px,
      rgba(255,255,255,0) 1px,
      rgba(255,255,255,0) 12px
    ),
    radial-gradient(800px 500px at 20% 0, rgba(214,179,95,.10), rgba(0,0,0,0) 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(244,225,166,.07), rgba(0,0,0,0) 55%);
  background-attachment:fixed;
}

.sp-wrap{
  width:min(1200px,calc(100% - 40px));
  margin:0 auto;
}


.sp-wrap--hero{
  width:min(1600px,calc(100% - 40px));
  margin:0 auto;
}


.sp-wrap--wide{
  width:min(1600px,calc(100% - 40px));
  margin:0 auto;
}

@media (min-width: 1900px){
  .sp-wrap--wide{
    width:min(1800px,calc(100% - 60px));
  }
}

.sp-section{
  margin:42px 0;
}


.sp-card{
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow1);
}


.sp-grid-2{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:24px;
  align-items:start;
}


.sp-h2{
  font-size:clamp(20px,2.1vw,28px);
  line-height:1.2;
  margin:0 0 12px 0;
}

.sp-p{
  color:var(--dim);
  font-size:16px;
  line-height:1.78;
  max-width:80ch;
}

.sp-premium{
  background:linear-gradient(90deg,var(--gold1),var(--gold2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}


.sp-media{
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--imgBorder);
  box-shadow:var(--shadow2);
  background:rgba(255,255,255,.02);
  aspect-ratio: 4 / 3;
}


.sp-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,0) 55%),
    radial-gradient(900px 700px at 30% 20%, rgba(244,225,166,.07), rgba(0,0,0,0) 55%);
  opacity:.95;
}


.sp-media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:calc(var(--radius) - 1px);
  transform:translateZ(0);
  transition:transform .25s ease;
}

.sp-media:hover img{
  transform:scale(1.01);
}


.sp-media--small{
  box-shadow: 0 18px 44px rgba(0,0,0,.40);
}


.sp-chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.sp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--stroke2);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  color:var(--fg);
  text-decoration:none;
  font-weight:600;
  letter-spacing:.2px;
  transition:transform .15s ease,border-color .15s ease,background .15s ease, box-shadow .15s ease;
}

.sp-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(244,225,166,.55);
  background:linear-gradient(180deg,rgba(244,225,166,.10),rgba(255,255,255,.02));
  box-shadow:0 12px 28px rgba(0,0,0,.32);
}

.sp-btn:focus-visible{
  outline:2px solid rgba(244,225,166,.65);
  outline-offset:3px;
}


.sp-btn--gold{
  border-color: rgba(244,225,166,.55);
  background: linear-gradient(180deg, rgba(244,225,166,.14), rgba(255,255,255,.02));
}


.sp-list{
  margin:0;
  padding-left:18px;
}
.sp-list li{ margin:8px 0; }


.sp-icon{
  width:48px;
  height:48px;
  display:block;
  margin:0 0 12px 0;
  opacity:.96;
}
.sp-icon--inline{ margin:0; }


.sp-headline{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 10px 0;
}
.sp-headline .sp-h2{ margin:0; }


@media (min-width: 721px){
  body.service-page .sp-section[aria-label="Jak pracujemy"] .sp-grid-2{
    grid-template-columns: 1fr 1fr;
  }
}
.sp-icon-card .sp-p{ max-width:70ch; }


.sp-gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:16px;
}


@media (min-width: 1201px){
  
  .sp-gallery{
    grid-template-columns: repeat(12, 1fr);
    grid-template-areas:
      "a a a a a a b b b b b b"
      "a a a a a a c c c d d d"
      "e e e e e e e e e e e e";
    gap:16px;
  }

  
  .sp-gallery .sp-media{
    aspect-ratio: auto;
    min-height: 220px;
  }

  .sp-gallery .sp-media:nth-child(1){ grid-area:a; min-height: 460px; }
  .sp-gallery .sp-media:nth-child(2){ grid-area:b; min-height: 220px; }
  .sp-gallery .sp-media:nth-child(3){ grid-area:c; min-height: 220px; }
  .sp-gallery .sp-media:nth-child(4){ grid-area:d; min-height: 220px; }
  .sp-gallery .sp-media:nth-child(5){ grid-area:e; min-height: 340px; }
}


@keyframes spKenBurnsSoft{
  from{ transform: scale(1) translate3d(0,0,0); }
  to  { transform: scale(1.10) translate3d(-1.2%, -1.2%, 0); }
}


@media (min-width: 1201px){
  .sp-gallery .sp-media img{
    
    transition: transform .6s ease;
    animation: spKenBurnsSoft 14s ease-in-out infinite alternate;
    transform-origin: center;
    will-change: transform;
  }

  
  .sp-gallery .sp-media:nth-child(1) img{ animation-delay: -2s; }
  .sp-gallery .sp-media:nth-child(2) img{ animation-delay: -6s; }
  .sp-gallery .sp-media:nth-child(3) img{ animation-delay: -9s; }
  .sp-gallery .sp-media:nth-child(4) img{ animation-delay: -12s; }
  .sp-gallery .sp-media:nth-child(5) img{ animation-delay: -4s; }

  
  .sp-gallery .sp-media:nth-child(1) img{ animation-duration: 15s; }
  .sp-gallery .sp-media:nth-child(2) img{ animation-duration: 19s; }
  .sp-gallery .sp-media:nth-child(3) img{ animation-duration: 14s; }
  .sp-gallery .sp-media:nth-child(4) img{ animation-duration: 21s; }
  .sp-gallery .sp-media:nth-child(5) img{ animation-duration: 16s; }


  
  .sp-gallery .sp-media:hover img{
    animation-play-state: paused;
    transform: scale(1.11);
  }
}


@media (prefers-reduced-motion: reduce){
  .sp-gallery .sp-media img{
    animation: none !important;
    transition: none !important;
  }
}



.sp-faq p{ margin: 0 0 14px 0; }
.sp-faq p:last-child{ margin-bottom:0; }



.sp-hero-feature{
  margin: 0;
}

.sp-hero-media{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;

  
  border: 0;
  box-shadow: none;
  background: transparent;

  aspect-ratio: 19 / 9;
}


.sp-hero-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(0);
}


.sp-hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:12px;
  padding:24px;
  pointer-events:none;

  background:
    radial-gradient(950px 700px at 28% 18%, rgba(244,225,166,.10), rgba(0,0,0,0) 55%),
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.40) 56%, rgba(0,0,0,0) 78%),
    linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.72) 100%);
}

.sp-hero-actions,
.sp-hero-actions a{
  pointer-events:auto;
}

.sp-hero-badge{
  align-self:flex-start;
  font-size:12px;
  letter-spacing:.34px;
  text-transform:uppercase;
  padding:7px 10px;
  border-radius:999px;
  border: 0;
  background:rgba(0,0,0,.35);
  color:rgba(255,255,255,.92);
}

.sp-hero-title{
  margin:0;
  font-size: clamp(26px, 3.0vw, 44px);
  line-height: 1.08;
  letter-spacing: .2px;
  color: transparent;
  max-width: 28ch;
}

.sp-hero-text{
  margin:0;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.65;
  max-width: 74ch;
}

.sp-hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 4px;
}



.sp-feature{ margin-top: 18px; }

.sp-feature-media{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--imgBorder);
  box-shadow: var(--shadow2);
  background: rgba(255,255,255,.02);
  aspect-ratio: 16 / 8;
}

.sp-feature-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(0);
}

.sp-feature-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  pointer-events: none;

  background:
    radial-gradient(900px 650px at 35% 20%, rgba(244,225,166,.10), rgba(0,0,0,0) 55%),
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,0) 78%),
    linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.70) 100%);
}

.sp-feature-actions,
.sp-feature-actions a{ pointer-events: auto; }

.sp-feature-badge{
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
}

.sp-feature-title{
  margin: 0;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.15;
  color: #fff;
  max-width: 28ch;
}

.sp-feature-text{
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.6;
  max-width: 62ch;
}

.sp-feature-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}




body.service-page .sp-hero-title--mobile{ 
  display: none;
}
body.service-page .sp-hero-overlay .sp-hero-title{
  display: block;
}


@media (min-width: 721px) and (max-width: 900px){
  body.service-page .sp-hero-title--mobile{
    display: block !important;
  }
  body.service-page .sp-hero-overlay .sp-hero-title{
    display: none !important;
  }
}


@media (min-width: 721px) and (max-width: 900px){

  
  body.service-page .sp-hero-media::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:1;
    background:
      linear-gradient(
        90deg,
        rgba(0,0,0,.62) 0%,
        rgba(0,0,0,.40) 45%,
        rgba(0,0,0,.10) 100%
      );
  }

  
  body.service-page .sp-hero-media img{
    position:relative;
    z-index:0;
  }

  
  body.service-page .sp-hero-overlay{
    z-index:2;
  }

  
  body.service-page .sp-hero-text,
  body.service-page .sp-hero-badge,
  body.service-page .sp-hero-actions{
    text-shadow: 0 1px 10px rgba(0,0,0,.45);
  }
}



@media (max-width: 900px){
  .sp-wrap{ width: calc(100% - 10px); }
  .sp-wrap--hero{ width: calc(100% - 10px); }

  .sp-grid-2{ grid-template-columns:1fr; }
  .sp-section{ margin:34px 0; }
  .sp-card{ padding:20px; }

  .sp-media{ aspect-ratio: 16 / 10; }
  .sp-gallery{ grid-template-columns: repeat(2, 1fr); gap:14px; }

  .sp-hero-overlay{
    padding: 18px;
    background:
      linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.82) 100%);
  }
  .sp-hero-title,
  .sp-hero-text{ max-width: 100%; }

  .sp-feature-overlay{
    padding: 18px;
    background:
      linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.78) 100%);
  }
  .sp-feature-title,
  .sp-feature-text{ max-width: 100%; }

  .sp-wrap--wide{ width:min(1600px,calc(100% - 26px)); }

  .sp-hero-overlay{ position: absolute; }  
}



@media (max-width: 900px){
  body.service-page .sp-hero-title--mobile{
    margin-top: var(--h1TopGap, 15px) !important;
    font-size: clamp(18px, 5.2vw, 24px) !important;
  }
}


@media (max-width: 520px){
  .sp-gallery{ grid-template-columns: 1fr; gap:12px; }
  .sp-hero-media{ aspect-ratio: 4 / 3; }   
  .sp-feature-media{ aspect-ratio: 4 / 3; }
}


@media (prefers-reduced-motion: reduce){
  .sp-media img{ transition:none; }
  .sp-btn{ transition:none; }
}


body.service-page #header-spacer{
  height: calc(var(--headerH, 0px) - 45px) !important;
}

body.service-page main > .sp-section:first-child{
  margin-top: calc(var(--headerH) - 16px);
}
@media (min-width: 901px){
  body.service-page main > .sp-section:first-child{
    margin-top: calc(var(--headerH) - 110px);
  }
}


body.service-page main > .sp-section:first-child .sp-card{
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}




.sp-compare-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:16px;
}

.sp-compare-item{
  aspect-ratio: 4 / 3; 
}

.sp-compare-cap{
  position:absolute;
  inset:auto 0 0 0;
  padding:14px 14px 12px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.70) 70%, rgba(0,0,0,.82) 100%);
}

.sp-compare-badge{
  align-self:flex-start;
  font-size:12px;
  letter-spacing:.28px;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
}

.sp-compare-badge--gold{
  border-color: rgba(244,225,166,.55);
  background: rgba(0,0,0,.35);
}

.sp-compare-title{
  font-weight:700;
  color:#fff;
  font-size:16px;
  line-height:1.2;
}

.sp-compare-desc{
  color: rgba(255,255,255,.78);
  font-size:13px;
  line-height:1.45;
  max-width: 70ch;
}

@media (max-width: 720px){
  .sp-compare-grid{
    grid-template-columns: 1fr;
    gap:14px;
  }
}

@media (max-width: 720px){

  
  :root{
    --heroOuterR: 24px;
    --heroPad: 14px;
    --heroImgH: 260px;
    --featureImgH: 240px;
  }

  
  body.service-page .sp-hero-media{
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    border-radius: var(--heroOuterR) !important;
    overflow: hidden !important;

    aspect-ratio: auto !important;
  }

  
  body.service-page .sp-hero-media > img,
  body.service-page .sp-hero-media img{
    width: 100% !important;
    height: var(--heroImgH) !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.service-page .sp-hero-overlay{
    position: relative !important;
    inset: auto !important;
    padding: 12px 0 var(--heroPad) 0 !important;
    background: transparent !important;
  }

  body.service-page .sp-hero-title--mobile{
    display: block !important;
    margin: -40px auto 10px auto !important;
    text-align: center !important;

    font-size: clamp(18px, 5.4vw, 20px) !important;
    line-height: 1.12 !important;
    max-width: 30ch !important;

    letter-spacing: .2px !important;
  }


  
  body.service-page .sp-hero-badge,
  body.service-page .sp-hero-text,
  body.service-page .sp-hero-actions{
    padding-left: var(--heroPad) !important;
    padding-right: var(--heroPad) !important;
  }

  body.service-page .sp-hero-text{
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 0 !important;
  }

  body.service-page .sp-hero-actions{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }

  body.service-page .sp-hero-actions .sp-btn{
    width: 100% !important;
    justify-content: center !important;
  }

  

  body.service-page .sp-feature-media{
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;

    aspect-ratio: auto !important;
    overflow: visible !important;
  }

  body.service-page .sp-feature-media > img{
    height: var(--featureImgH) !important;
    width: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  body.service-page .sp-feature-overlay{
    position: relative !important;
    inset: auto !important;
    background: transparent !important;
    padding: 14px 0 0 0 !important;
    pointer-events: auto !important;
  }

  body.service-page .sp-feature-title,
  body.service-page .sp-feature-text{
    max-width: 100% !important;
  }

  body.service-page .sp-feature-actions{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.service-page .sp-feature-actions .sp-btn{
    width: 100% !important;
    justify-content: center !important;
  }
  
  body.service-page .sp-hero-overlay .sp-hero-title{
    display: none !important;
  }

  
  body.service-page .sp-section[aria-label="Proces współpracy"] .sp-grid-2{
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  body.service-page .sp-section[aria-label="Proces współpracy"] .sp-grid-2 > figure{
    order: 1 !important;
  }
  body.service-page .sp-section[aria-label="Proces współpracy"] .sp-grid-2 > .sp-card{
    order: 2 !important;
  }


}


body.service-page{
  
  scroll-padding-top: 110px;
}


body.service-page #opisz-inwestycje,
body.service-page #jak-to-dziala{
  scroll-margin-top: 110px;
}


@media (min-width: 721px){
  body.service-page .sp-section[aria-label="Proces współpracy"] .sp-grid-2{
    grid-template-columns: 1fr 1fr;
  }
}
