/* ===== RESET / BASE ===== */
:root{
  --bg:#0b0f14;
  --bg2:#0a0d12;
  --panel:rgba(0,0,0,.55);
  --panel2:rgba(0,0,0,.35);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --line:rgba(255,255,255,.12);
  --glass:rgba(10,15,20,.42);
  --shadow:0 18px 60px rgba(0,0,0,.45);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

a{color:rgba(255,255,255,.92);}
a:hover{color:#fff;}

.skip-link{
  position:absolute;
  left:-999px;
  top:8px;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:10px;
  z-index:9999;
}
.skip-link:focus{left:12px;}

/* ===== HERO ===== */
.hero{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  background:url("../img/bg1.jpg") no-repeat center center / cover;
}

/* ogólne przyciemnienie + kierunkowy gradient */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 600px at 70% 55%, rgba(0,0,0,.15), rgba(0,0,0,.70)),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 58%, rgba(0,0,0,.42) 100%);
  z-index:1;
}

.hero-glow{
  position:absolute; inset:0; z-index:1;
  background: radial-gradient(500px 260px at 68% 62%, rgba(255,255,255,.09), transparent 60%);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse{
  0%,100%{opacity:.55; transform:translateY(0);}
  50%{opacity:.85; transform:translateY(-8px);}
}

.hero-grid{
  position:absolute; inset:0; z-index:1;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:70px 70px;
  mask-image: radial-gradient(520px 420px at 70% 55%, rgba(0,0,0,.55), transparent 70%);
  opacity:.22;
}

/* ===== SIDEBAR ===== */
.sidebar{
  position:absolute;
  inset:0 auto 0 0;
  width:260px;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:24px 22px;
  gap:16px;
  background:var(--panel);
  backdrop-filter: blur(1px);
}

.fade-right{
  position:absolute;
  top:0; right:-80px; bottom:0;
  width:80px;
  pointer-events:none;
  background:linear-gradient(to right, var(--panel) 0%, var(--panel2) 40%, rgba(0,0,0,0) 100%);
}

.brand img{
  width:140px;
  height:auto;
  display:block;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.35));
}

.brand-slogan{
  margin:4px 0 6px;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:rgba(255,255,255,.82);
  line-height:1.45;
  text-shadow:0 2px 10px rgba(0,0,0,.7);
}
.brand-slogan span{
  display:block;
  font-size:10px;
  font-weight:600;
  letter-spacing:1.2px;
  opacity:.78;
}

.nav{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:6px;
}

.nav-link{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.3px;
  padding:10px 10px;
  border-radius:10px;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  border:1px solid transparent;
}
.nav-link:hover{
  background:rgba(255,255,255,.10);
  transform: translateX(2px);
}
.nav-link.active{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.18);
}

.sidebar-footer{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
}
.pill{
  display:inline-block;
  text-decoration:none;
  color:#fff;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  padding:10px 12px;
  border-radius:12px;
  font-weight:700;
}

/* ===== HERO CONTENT ===== */
.hero-content{
  position:relative;
  z-index:2;
  margin-left:260px;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:40px 18px;
}

.badge{
  display:inline-block;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.88);
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:12px;
}

.hero-title{
  margin:14px 0 10px;
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 12px 48px rgba(0,0,0,.75);
}

.hero-lead{
  max-width: 820px;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,.86);
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.2px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn.primary{
  background:#fff;
  color:#000;
  border-color:rgba(255,255,255,.85);
}
.btn.ghost{
  background:rgba(255,255,255,.10);
  color:#fff;
  border-color:rgba(255,255,255,.18);
}

.hero-meta{
  margin-top:14px;
  font-size:13px;
  color:rgba(255,255,255,.76);
}
.hero-meta a{
  color:rgba(255,255,255,.92);
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.35);
}
.hero-meta a:hover{ border-bottom-color: rgba(255,255,255,.75); }
.dot{ margin:0 10px; opacity:.7; }

/* ===== SECTIONS ===== */
.section{
  padding:80px 18px;
  background:
    radial-gradient(1200px 600px at 15% 20%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(900px 500px at 85% 70%, rgba(255,255,255,.05), transparent 55%),
    var(--bg);
}
.section-alt{
  background:
    radial-gradient(900px 500px at 20% 70%, rgba(255,255,255,.05), transparent 55%),
    radial-gradient(1200px 600px at 80% 20%, rgba(255,255,255,.06), transparent 55%),
    var(--bg2);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.wrap{
  width:min(1100px, 92vw);
  margin-left:260px;
  margin-right:auto;
}

.section-head{
  margin-bottom:26px;
}
.section-head h2{
  font-size:34px;
  margin:0 0 10px;
  letter-spacing:.2px;
}
.section-head p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
  max-width: 820px;
}

/* grids */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:16px; }

.card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  backdrop-filter: blur(4px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}

.card h3{ margin:0 0 10px; font-size:18px; }
.card p{ margin:0; color:rgba(255,255,255,.80); line-height:1.65; }

.list{
  margin:0;
  padding-left: 18px;
  color: rgba(255,255,255,.80);
}
.list li{ margin:8px 0; }

/* steps */
.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
.step{ position:relative; }
.step-no{
  width:34px; height:34px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  margin-bottom:10px;
}

/* callout */
.callout{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px;
  border-radius:18px;
  background: rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
}
.callout h3{ margin:0 0 6px; }
.callout p{ margin:0; color:var(--muted); }

/* tags */
.mini{ margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }
.tag{
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.86);
}

/* FAQ */
.faq{ display:flex; flex-direction:column; gap:10px; }
.faq-q{
  text-align:left;
  cursor:pointer;
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.92);
  font-weight:900;
}
.faq-a{
  display:none;
  padding:12px 16px 16px;
  margin-top:-6px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.80);
  line-height:1.7;
}
.faq-q[aria-expanded="true"] + .faq-a{ display:block; }

.muted{ color:var(--muted); }
.small{ font-size:13px; }

.contact-box{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.18);
  background:rgba(0,0,0,.15);
}
.contact-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 8px;
  gap:12px;
}
.label{ color:rgba(255,255,255,.65); font-weight:800; }

.divider{
  height:1px;
  background:rgba(255,255,255,.10);
  margin:16px 0;
}

/* footer */
.footer{
  background:#070a0f;
  border-top:1px solid rgba(255,255,255,.10);
  padding:18px;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:rgba(255,255,255,.70);
  font-size:13px;
}
.footer a{
  color:rgba(255,255,255,.86);
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.25);
}
.footer a:hover{ border-bottom-color: rgba(255,255,255,.60); }

/* ===== ANIM ===== */
.fade-in{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
.fade-in.visible{
  opacity:1;
  transform:none;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .fade-in{opacity:1; transform:none; transition:none;}
  .hero-glow{animation:none;}
}

/* ===== RWD ===== */
@media (max-width: 1024px){
  .steps{ grid-template-columns:1fr 1fr; }
  .grid-3{ grid-template-columns:1fr; }
}

@media (max-width: 768px){
  .sidebar{
    width:100%;
    height:76px;
    flex-direction:row;
    align-items:center;
    padding:12px 16px;
    gap:12px;
  }
  .fade-right{display:none;}
  .brand img{width:120px;}
  .brand-slogan{display:none;} /* na mobile ukryj slogan w panelu */
  .nav{flex-direction:row; margin-left:auto; gap:6px;}
  .nav-link{padding:10px 10px; font-size:14px;}
  .sidebar-footer{display:none;}

  .hero-content{
    margin-left:0;
    padding-top: 92px;
  }
  .wrap{
    margin-left:auto;
  }
  .grid-2{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .footer-inner{ flex-direction:column; align-items:flex-start; }
}

/* ===== FLOW / TIMELINE ===== */
.timeline{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top: 18px;
  padding-left: 22px;
}

/* pionowa linia – bazowa (delikatna) */
.timeline::before{
  content:"";
  position:absolute;
  left:8px;
  top:10px;
  bottom:10px;
  width:2px;
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
}

/* linia "aktywna" – będzie rosnąć (JS nadaje --progress) */
.timeline-line{
  position:absolute;
  left:8px;
  top:10px;
  width:2px;
  height: var(--progress, 0px);
  background: rgba(255,255,255,0.55);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(255,255,255,0.20);
  transition: height 0.25s ease;
}

/* item */
.t-item{
  position:relative;
  display:block;
}

.t-dot{
  position:absolute;
  left: -2px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.t-card{
  margin-left: 22px;
}

/* aktywny krok (podświetlenie) */
.t-item.is-active .t-dot{
  background: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.85);
  transform: scale(1.05);
}

.t-item.is-active .t-card{
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 22px 70px rgba(0,0,0,0.55);
}

/* RWD */
@media (max-width: 768px){
  .timeline{ padding-left: 18px; }
  .timeline::before,
  .timeline-line{ left: 6px; }
  .t-dot{ left:-4px; }
  .t-card{ margin-left: 18px; }
}

/* ===== FLOW ICONS ===== */
.timeline h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline h3 i {
  font-size: 18px;
  min-width: 22px;

  color: rgba(255,255,255,0.85);
  opacity: 0.9;

  /* delikatny glow */
  text-shadow:
    0 0 10px rgba(255,255,255,0.25),
    0 2px 6px rgba(0,0,0,0.6);

  transition: transform 0.25s ease, color 0.25s ease;
}

/* aktywny krok – ikona lekko „żyje” */
.t-item.is-active h3 i {
  color: #ffffff;
  transform: scale(1.12);
  text-shadow:
    0 0 18px rgba(255,255,255,0.45),
    0 0 32px rgba(255,255,255,0.25);
}
