/* ============================================================
   COMPONENTS (global)
   ============================================================ */

.card{
  background: var(--card);
  border: var(--border-2);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: none;
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.card:hover{
  box-shadow: var(--shadow-soft, 0 10px 28px rgba(0,0,0,.08));
  border-color: rgba(37,99,235,.18);
}
html[data-theme="dark"] .card:hover{
  border-color: rgba(96,165,250,.24);
}

.lead{
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--muted);
  margin: 0 0 18px;
}
.lead.small{ font-size:15px; }

.h1{
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.15;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.h1 strong{
  background: linear-gradient(90deg, var(--accent), rgba(37,99,235,.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 12px;
  border: var(--border-2);

  background: color-mix(in srgb, var(--card) 86%, white);
  color: var(--text);

  font-weight: 750;
  cursor: pointer;

  transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease, transform .06s ease;
}
html[data-theme="dark"] .btn{
  background: color-mix(in srgb, var(--card) 86%, black);
  border-color: rgba(255,255,255,.12);
}
.btn:hover{
  box-shadow: var(--shadow-soft, 0 10px 28px rgba(0,0,0,.08));
  border-color: rgba(0,0,0,.14);
}
html[data-theme="dark"] .btn:hover{
  border-color: rgba(255,255,255,.18);
}
.btn:active{ transform: translateY(1px); }
.btn:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

.btn--primary{
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 78%, white),
    color-mix(in srgb, var(--accent-2) 78%, white)
  );
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.btn--primary:hover{ box-shadow: 0 12px 30px rgba(0,0,0,.16); }
html[data-theme="dark"] .btn--primary{ box-shadow: 0 12px 34px rgba(0,0,0,.50); }

.badges{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  backdrop-filter: blur(10px) saturate(160%);
  text-transform: uppercase;
}
html[data-theme="dark"] .badge{
  background: rgba(18,21,28,.65);
  border-color: rgba(255,255,255,.12);
}

/* TIMELINE */
.timeline{ display:grid; gap:18px; }
.timeline-item{
  display:grid;
  grid-template-columns: 52px 1fr;
  gap:14px;
  align-items:start;
  background: var(--card);
  border: var(--border-2);
  border-radius: var(--radius);
  padding:14px 16px;
}
.timeline-step{
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 14px;
}
.timeline-item p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:14px;
}

/* STICKY CTA – tylko mobile */
.sticky-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--bg) 90%, white);
  backdrop-filter: blur(10px) saturate(140%);
  border-top: 1px solid rgba(0,0,0,.05);
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 60;
}
html[data-theme="dark"] .sticky-cta{
  background: color-mix(in srgb, var(--bg) 90%, black);
  border-top-color: rgba(255,255,255,.08);
}
.sticky-cta .btn{
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 12px;
}
@media (min-width: 900px){ .sticky-cta{ display:none; } }
@media (max-width: 899px){ body{ padding-bottom: 56px; } }

/* Section striping (readability) */
body > section{ background: transparent; }
body > section:nth-of-type(even){
  background: color-mix(in srgb, var(--bg) 88%, white);
}
html[data-theme="dark"] body > section:nth-of-type(even){
  background: color-mix(in srgb, var(--bg) 86%, black);
}

/* ============================================================
   DLA KOGO (section #dla-kogo) — reuse Zakres groups styling
   ============================================================ */

#dla-kogo .scope-groups{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

#dla-kogo .scope-group{
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
  border: var(--border-2);
  border-radius: calc(var(--radius) - 2px);
  padding: 16px 16px;

  box-shadow:
    0 6px 18px rgba(0,0,0,.06),
    0 1px 2px rgba(0,0,0,.04);

  transition:
    box-shadow .25s ease,
    transform .25s ease,
    border-color .25s ease;
}

#dla-kogo .scope-group__title{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

#dla-kogo .scope-group__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

#dla-kogo .scope-group__list li{
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.55;
}

#dla-kogo .scope-group__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 78%, transparent);
}

@media (hover:hover){
  #dla-kogo .scope-group:hover{
    transform: translateY(-2px);
    box-shadow:
      0 12px 28px rgba(0,0,0,.10),
      0 4px 8px rgba(0,0,0,.06);
    border-color: rgba(37,99,235,.18);
  }
}

html[data-theme="dark"] #dla-kogo .scope-group{
  box-shadow:
    0 8px 22px rgba(0,0,0,.55),
    0 1px 2px rgba(0,0,0,.40);
}

@media (hover:hover){
  html[data-theme="dark"] #dla-kogo .scope-group:hover{
    box-shadow:
      0 14px 34px rgba(0,0,0,.70),
      0 4px 10px rgba(0,0,0,.45);
  }
}

@media (min-width: 900px){
  #dla-kogo .scope-groups{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
}

@media (max-width: 640px){
  #dla-kogo .scope-groups{ margin-top: 14px; gap: 12px; }
  #dla-kogo .scope-group{ padding: 14px 13px; }
  #dla-kogo .scope-group__list li{ padding-left: 16px; }
}

/* ============================================================
   ZAKRES (section #zakres) — groups + headings (premium, readable)
   ============================================================ */

#zakres .scope-groups{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

#zakres .scope-group{
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
  border: var(--border-2);
  border-radius: calc(var(--radius) - 2px);
  padding: 16px 16px;

  box-shadow:
    0 6px 18px rgba(0,0,0,.06),
    0 1px 2px rgba(0,0,0,.04);

  transition:
    box-shadow .25s ease,
    transform .25s ease,
    border-color .25s ease;
}

@media (hover:hover){
  #zakres .scope-group:hover{
    transform: translateY(-2px);
    box-shadow:
      0 12px 28px rgba(0,0,0,.10),
      0 4px 8px rgba(0,0,0,.06);
    border-color: rgba(37,99,235,.18);
  }
}

html[data-theme="dark"] #zakres .scope-group{
  box-shadow:
    0 8px 22px rgba(0,0,0,.55),
    0 1px 2px rgba(0,0,0,.40);
}

@media (hover:hover){
  html[data-theme="dark"] #zakres .scope-group:hover{
    box-shadow:
      0 14px 34px rgba(0,0,0,.70),
      0 4px 10px rgba(0,0,0,.45);
  }
}

#zakres .scope-group__title{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

#zakres .scope-group__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

#zakres .scope-group__list li{
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.55;
}

#zakres .scope-group__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 78%, transparent);
}

@media (min-width: 900px){
  #zakres .scope-groups{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }
  #zakres .scope-group:nth-child(3){
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px){
  #zakres .scope-groups{ margin-top: 14px; gap: 12px; }
  #zakres .scope-group{ padding: 14px 13px; }
  #zakres .scope-group__list li{ padding-left: 16px; }
}

/* ============================================================
   Section titles: subtle premium emphasis
   ============================================================ */

.section__title{
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  letter-spacing: -0.02em;
}

.section__title::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: rgba(0,0,0,.16);
}

html[data-theme="dark"] .section__title::after{
  background: rgba(255,255,255,.18);
}

@media (max-width: 640px){
  .section__title{ padding-bottom: 9px; }
  .section__title::after{ width: 44px; }
}

/* Kontakt: use global button system */
#kontakt .btn,
#kontakt .contact-actions .btn,
#kontakt .kontakt-form .btn,
#kontakt .kontakt-form button,
#kontakt .kontakt-form input[type="submit"]{
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 750;
}

@media (max-width: 899px){
  .sticky-cta .btn{ padding: 8px 10px; font-size: 13px; }
}


/* ============================================================
   JS Scroll Reveal (mobile) — wolniej i bardziej „premium”
   Działa tylko gdy JS doda: html.reveal-js
   ============================================================ */

   html.reveal-js .reveal,
   html.reveal-js .reveal-item{
     will-change: opacity, transform, filter;
   }
   
   /* start: ukryte */
   html.reveal-js .reveal.reveal-hidden,
   html.reveal-js .reveal-item.reveal-hidden{
     opacity: 0;
     transform: translate3d(0, 18px, 0);
     filter: blur(3px);
   }
   
   /* end: widoczne */
   html.reveal-js .reveal.is-visible,
   html.reveal-js .reveal-item.is-visible{
     opacity: 1;
     transform: none;
     filter: none;
   }
   
   /* animacja jak na większości nowoczesnych landingów */
   html.reveal-js .reveal,
   html.reveal-js .reveal-item{
     transition-property: opacity, transform, filter;
     transition-duration: 900ms;
     transition-timing-function: cubic-bezier(.2,.9,.2,1);
     transition-delay: var(--d, 0ms);
   }
   
   /* mobile: odrobinę wolniej i „miękko” */
   @media (max-width: 860px){
     html.reveal-js .reveal,
     html.reveal-js .reveal-item{
       transition-duration: 1050ms;
     }
     html.reveal-js .reveal.reveal-hidden,
     html.reveal-js .reveal-item.reveal-hidden{
       transform: translate3d(0, 20px, 0);
       filter: blur(3.5px);
     }
   }
   
   /* dostępność */
   @media (prefers-reduced-motion: reduce){
     html.reveal-js .reveal,
     html.reveal-js .reveal-item{
       transition: none !important;
       filter: none !important;
       transform: none !important;
       opacity: 1 !important;
     }
   }