/* ===================== */
/*  DESIGN TOKENS        */
/* ===================== */
:root{
  --bg: #0b1220;
  --card:#0f182a;
  --muted:#a9bdd8;
  --text:#ecf2ff;

  --accent:#6E58F5;   /* fiolet */
  --accent-2:#F471B5; /* róż */
  --accent-3:#4CC3FF; /* cyjan */
  --green:#22c55e;

  --shadow: 0 16px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --container: 1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0; color:var(--text);
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  display:flex; flex-direction:column; min-height:100dvh; /* sticky footer base */
  background:#0a0f1a;
}

/* Stałe, pełnoekranowe halo w tle (nie powtarza się przy scrollu) */
body::before{
  content:""; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:
    radial-gradient(1200px 700px at 6% -10%, rgba(110,88,245,.28), transparent 60%),
    radial-gradient(1200px 700px at 100% 10%, rgba(76,195,255,.18), transparent 60%),
    radial-gradient(1000px 640px at 20% 100%, rgba(244,113,181,.16), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0a0f1a 70%, #0b1220 100%);
}

.container{width:min(var(--container), 94%); margin-inline:auto; position:relative; z-index:1}

/* ===================== */
/*  HEADER / NAV         */
/* ===================== */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(13,20,35,.6);
  backdrop-filter:saturate(1.1) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav-wrap{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; padding:12px 0 8px; position:relative;
}

/* LOGO – wymuszenie białej wersji nawet dla czarnego PNG */
.logo{
  height:56px; width:auto; display:block;
  -webkit-filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,255,255,.18)) !important;
          filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255,255,255,.18)) !important;
  mix-blend-mode: screen;
}
.logo-link{display:inline-flex}

/* Nawigacja: większe, pogrubione zakładki i wyśrodkowanie */
.main-nav{
  display:flex; justify-content:center; align-items:center; flex-wrap:wrap;
  gap:12px 18px; margin:6px 0 0;
}
.main-nav a{
  color:var(--text); text-decoration:none;
  padding:12px 20px; border-radius:999px;
  font-weight:900; font-size:clamp(1.08rem, 1.55vw, 1.22rem);
  letter-spacing:.01em;
  border:1px solid transparent; opacity:.98; transition:.25s ease;
}
.main-nav a:hover{background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.2); opacity:1}
.main-nav .cta{background:linear-gradient(90deg, var(--accent), var(--accent-3)); color:#07101d; font-weight:900; border:0}
.main-nav .cta:hover{transform:translateY(-1px) scale(1.02)}

/* Hamburger (mobile) */
.hamburger{display:none; background:none; border:0; width:44px; height:44px; position:absolute; right:0; top:10px; cursor:pointer}
.hamburger span{display:block; position:absolute; left:10px; right:10px; height:2px; background:white; transition:.3s}
.hamburger span:nth-child(1){top:14px}
.hamburger span:nth-child(2){top:21px}
.hamburger span:nth-child(3){top:28px}

/* ===================== */
/*  LAYOUT CORE          */
/* ===================== */
main{flex:1 0 auto} /* sticky footer */
.section{position:relative; isolation:isolate}

/* ===================== */
/*  PODSTRONY            */
/* ===================== */
/* ABOUT (o-mnie) */
.about-top{padding:40px 0 10px}
.about-split{display:grid; grid-template-columns:.9fr 6px 1.5fr; gap:18px; align-items:start}
.about-photo img{width:100%; max-width:420px; display:block; margin:auto; filter:drop-shadow(0 20px 40px rgba(0,0,0,.35))}
.divider{width:6px; height:100%; background:linear-gradient(180deg, var(--accent), var(--accent-3)); border-radius:8px}
.about-text p{color:var(--muted)}
.quote{margin-top:14px; font-weight:700; border-left:4px solid var(--accent); padding-left:12px; color:#d8ecff}

/* osiągnięcia */
.achievements{padding:28px 0 60px}
.achievements h2{text-align:center}
.ekg{height:110px; margin:14px auto 6px; width:min(720px, 94%)}
.ekg-line{stroke:var(--accent); stroke-width:3; stroke-linejoin:round; stroke-linecap:round; stroke-dasharray:900; animation:dash 5s linear infinite; fill:none}
@keyframes dash{ to{ stroke-dashoffset:-900 } }
.diplomas{margin-top:16px}
.diplomas .row{display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:10px}
.diploma{background:var(--card); border:1px solid rgba(255,255,255,.08); border-radius:12px; color:var(--text); padding:10px 12px; cursor:pointer; transition:.2s}
.diploma:hover{transform:translateY(-2px); background:rgba(255,255,255,.06)}
.diploma-details{max-width:900px; margin:10px auto 0}
.detail{display:none; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:14px; margin-top:8px}

/* PRICING (usługi) */
.pad-top{padding-top:28px}
.price-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:16px}
.price-card{background:var(--card); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow)}
.price-card h2{margin:0 0 10px}
.price-card table{width:100%; border-collapse:collapse}
.price-card th, .price-card td{padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.06)}
.price-card thead th{background:rgba(255,255,255,.06); text-align:left}
.note{margin:.6em 0 0; color:var(--muted); font-size:.98rem}
.info-callout{margin:22px auto 40px; text-align:center; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:14px; width:min(900px, 100%)}

/* GALLERY */
.gallery-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.gallery-grid img{width:100%; height:260px; object-fit:cover; border-radius:14px; cursor:pointer; transition:.25s}
.gallery-grid img:hover{transform:translateY(-3px); filter:brightness(1.08)}
.lightbox{position:fixed; inset:0; background:rgba(0,0,0,.85); display:none; align-items:center; justify-content:center; gap:12px; z-index:80}
.lightbox img{max-width:88vw; max-height:82vh; border-radius:10px}
.lb-close,.lb-prev,.lb-next{position:absolute; background:rgba(255,255,255,.12); border:0; color:#fff; width:44px; height:44px; border-radius:999px; cursor:pointer}
.lb-close{top:20px; right:20px}
.lb-prev{left:20px}
.lb-next{right:20px}

/* CONTACT */
.contact-card{
  display:grid; grid-template-columns:160px 1fr; gap:18px; align-items:center;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.07); border-radius:16px; padding:18px; box-shadow:var(--shadow);
  margin-bottom:16px;
}
.cc-avatar{width:160px; height:160px; object-fit:contain; border-radius:14px; background:#0c162a}
.cc-sub{color:var(--muted); margin-top:-6px}
.cc-line{margin:.25em 0}
.cc-icon{margin-right:6px}
.phone{font-weight:900; color:#34f4ff; text-decoration:none}
.email{font-weight:900; color:var(--green)}
.map-wrap{border-radius:16px; overflow:hidden; border:1px solid rgba(255,255,255,.08); box-shadow:var(--shadow)}

/* ===================== */
/*  FOOTER               */
/* ===================== */
.site-footer{background:#07101d; border-top:1px solid rgba(255,255,255,.06)}
.site-footer .container{padding:18px 0; text-align:center}

/* ===================== */
/*  RESPONSIVE           */
/* ===================== */
@media (max-width: 980px){
  .main-nav{display:none; width:100%}
  .main-nav.open{display:flex; flex-direction:column; align-items:center}
  .hamburger{display:block}

  .about-split{grid-template-columns:1fr}
  .price-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr 1fr}
  .contact-card{grid-template-columns:1fr}
  .cc-avatar{margin-inline:auto}
}
