
:root {
  --bg: #0b1220;
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --panel: #0f1a2b;
  --brand: #7c93ff;
  --brand2: #4fd1c5;
  --border: rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #0b1220;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, sans-serif;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(124,147,255,.08), transparent 60%),
    radial-gradient(800px 400px at 100% 0, rgba(79,209,197,.06), transparent 60%);
  z-index: 0;
}
.page { position: relative; z-index: 1; }
img { display: block; max-width: 100%; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: clamp(28px, 6vw, 56px) 0; }
.mb { margin-bottom: 20px; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.align-end { align-items: flex-end; }
.gap { gap: 12px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: 12px; color: var(--muted); }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack > * + * { margin-top: 12px; }
.hero__title { font-size: clamp(26px, 4.2vw, 52px); line-height: 1.15; margin: 6px 0 0; }

/* Navbar */
.navbar { position: sticky; top: 0; backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-logo { width: 36px; height: 36px; border-radius: 14px; display: grid; place-items: center; background: #111827; color: white; font-weight: 800; }
.brand-name { font-weight: 600; letter-spacing: .2px; }
.nav-links a { color: inherit; text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.06); }
.nav-links { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
@media (min-width: 820px) { .nav-links { width: auto; display: flex; } }

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

@media (min-width: 640px) {  }
@media (min-width: 960px) {
  .grid--2 { grid-template-columns: 1.1fr .9fr; }
  
}

/* Buttons */
.btn {
  --bgbtn: #111827; --fgbtn: #fff; --hover: #0f172a;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; padding: 10px 14px; text-decoration: none; border: 1px solid transparent; gap: 8px;
  background: var(--bgbtn); color: var(--fgbtn); cursor: pointer; transition: .2s transform, .2s background, .2s box-shadow;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  font-size: clamp(14px, 1.8vw, 16px);
}
.btn:hover { transform: translateY(-2px); background: var(--hover); }
.btn--secondary { --bgbtn: #f3f4f6; --fgbtn: #111827; --hover: #e5e7eb; }
.btn--outline { --bgbtn: transparent; --fgbtn: inherit; border-color: var(--border); box-shadow: none; }
.btn--sm { padding: 8px 10px; box-shadow: none; }

/* Modern pill button for CTA */
.btn--modernpill {
  position: relative;
  border-radius: 9999px;
  padding: 10px 18px;
  background: rgba(255,255,255,.02);
  color: #e6e9ef;
  border: 1px solid var(--border);
  overflow: hidden;
}
.btn--modernpill::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 9999px;
  padding: 1px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.btn--modernpill::after {
  content: "";
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transition: transform .5s ease, left .5s ease;
}
.btn--modernpill:hover::after { left: 130%; }
.btn--modernpill:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Cards & works */
.card { background: var(--panel); border: 1px solid var(--border); padding: 18px; border-radius: 18px; box-shadow: var(--shadow); }
.hoverlift { transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease; will-change: transform; backface-visibility: hidden;  }
.hoverlift:hover { transform: translateY(-6px) scale(1.035); box-shadow: 0 18px 40px rgba(0,0,0,.35); }

.work-card { background: var(--panel); border:1px solid var(--border); border-radius:18px; overflow:hidden; box-shadow: var(--shadow); }
.work-media { position:relative; aspect-ratio: 4/3; overflow:hidden; }
.work-media img { width:100%; height:100%; object-fit:cover; transform: scale(1.04); transition: transform .35s ease; }
.work-card:hover .work-media img { transform: scale(1.12); }
.work-body { padding: 14px; }
.work-title { font-weight: 700; }
.tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.tag { font-size:12px; padding:4px 8px; border-radius:999px; background: rgba(255,255,255,.08); border:1px solid var(--border); }

/* FAQ */
.faq { display:grid; gap:12px; }
.faq-item { background: var(--panel); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.faq-q { width:100%; text-align:left; background:none; border:0; padding:14px 16px; color:inherit; font-weight:600; cursor:pointer; }
.faq-a { max-height:0; overflow:hidden; transition:max-height .3s ease, opacity .3s ease; opacity:.6; padding:0 16px; }
.faq-item.open .faq-a { max-height: 260px; padding: 0 16px 14px; opacity:1; }

/* Forms */
.form { display:grid; gap:10px; margin-top:16px; }
.form input, .form textarea {
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid var(--border);
  background:#ffffff10; color:inherit; outline:none;
}
.form input:focus, .form textarea:focus { box-shadow: 0 0 0 2px #7c93ff66; }

/* Hero avatar */
.hero__media { display:grid; place-items:center; }
.avatar-wrap { position:relative; width: min(360px, 90%); aspect-ratio: 1; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border:1px solid var(--border); }
.avatar { width:100%; height:100%; object-fit:cover;  }
.avatar-overlay { position:absolute; inset:0; background: linear-gradient(45deg, #7c93ff22, #4fd1c522); }

/* About */
.about .about-copy.center { text-align: center; align-items: center; }
.accent-line { width: 64px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand2)); display: inline-block; margin: 8px 0 12px; }
.about .narrow p { max-width: 62ch; margin-inline: auto; }

/* Footer */
.footer { border-top: 1px solid var(--border); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 18px 0; }
.footer a { color:inherit; opacity:.8; text-decoration:none; }
.footer a:hover { opacity:1; text-decoration:underline; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.active { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

.offer-cta { margin-top: clamp(32px, 6vw, 64px); display:flex; justify-content:center; align-items:center; }

.grid .card { position: relative; z-index: 1; }
.offer-cta .btn { position: relative; z-index: 2; }

/* Fade-up on appear */
.fade-up { opacity: 0; transform: translateY(16px); }
.fade-up.visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }


/* Equal 2-column grid for 4-card layouts */
.grid--2eq { display:grid; gap:16px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .grid--2eq { grid-template-columns: 1fr 1fr; } }

/* Pricing cards */
.pricing { margin-top: clamp(28px, 6vw, 56px); }
.price-grid { display:grid; gap:16px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price { background: var(--panel); border:1px solid var(--border); border-radius:18px; padding:18px; box-shadow: var(--shadow); }
.price h3 { margin: 0 0 6px; }
.price .cost { font-size: 22px; font-weight: 800; margin-bottom: 10px; color:#e6e9ef; }
.price ul { list-style: none; padding:0; margin: 8px 0 12px; color: var(--muted); }
.price ul li { margin: 6px 0; }
.price .btn { width: 100%; }
.price--pro { border-color: #7c93ff66; box-shadow: 0 16px 42px rgba(124,147,255,.2); }


/* Accordion */
.accordion { margin-top: 18px; display: grid; gap: 10px; }
.acc-item { background: var(--panel); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.acc-toggle { width:100%; text-align:left; background:none; border:0; padding:14px 16px; color:inherit; font-weight:700; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.acc-icon { opacity:.7; transition: transform .2s ease; }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease, opacity .3s ease, padding .3s ease; padding: 0 16px; opacity: .6; }
.acc-item.open .acc-panel { max-height: 300px; padding: 0 16px 14px; opacity: 1; }
.acc-panel ul { margin: 10px 0; padding-left: 18px; }
.acc-panel li { margin: 6px 0; }

/* End CTA */
.end-cta { margin-top: clamp(28px, 6vw, 56px); text-align: center; }
.end-cta .btn { margin-top: 12px; }


/* --- Tiny screen adjustments --- */
@media (max-width: 360px) {
  .nav-links a {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
  .brand-name {
    font-size: 1rem;
  }
}
/* --- End tiny screen adjustments --- */


/* Animacja fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Zoom-in on appear */
.zoom-in { opacity: 0; transform: translateY(8px) scale(0.88); transform-origin: center; }
.zoom-in.visible { opacity: 1; transform: translateY(0) scale(1); transition: opacity .5s ease, transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform, opacity; }


/* Hover zoom effect for pricing cards */
.price {
  transition: transform 0.35s ease;
  will-change: transform;
  backface-visibility: hidden;
  
}
.price:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }


/* Stronger zoom effect for top offer cards */
.grid--2eq .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
  
}
.grid--2eq .card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }


/* --- Hover zoom for top offer cards (above "Pakiety i wycena") --- */
/* Higher specificity to override .reveal/.reveal.active transforms without !important */
.grid--2eq .card {
  will-change: transform;
  backface-visibility: hidden;
  
}
.grid--2eq .card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }


/* --- Crisp hover zoom for pricing & top offer cards --- */
/* Goal: subtle zoom without font blur (avoid 3D GPU hacks) */
.grid--2eq .card,
.price {
  transition: transform .28s ease, box-shadow .28s ease;
  backface-visibility: hidden;
  contain: paint;
}

/* Typography rendering hints */
.price, .price *,
.grid--2eq .card, .grid--2eq .card * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Hover: smaller scale to keep text sharp */
.grid--2eq .card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }

.price:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }

/* Ensure hover outranks reveal/active transforms */
.reveal.active.grid--2eq .card:hover,
.reveal.active.price:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }


/* === Text-safe hover zoom for ALL cards === */
/* Scales only a background layer, not the text/content */
.card, .price { position: relative; overflow: hidden; }
.card::before, .price::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--panel);
  border-radius: inherit;
  transform: scale(1);
  transition: transform .28s ease;
  z-index: 0;
}
.card > *, .price > * { position: relative; z-index: 1; }
.card:hover::before, .price:hover::before { transform: scale(1.03); }
.card:hover, .price:hover { box-shadow: 0 18px 40px rgba(0,0,0,.35); }


/* === Overrides: remove text-scaling on hover === */
.card.hoverlift:hover { transform: translateY(-6px); }           /* was translateY + scale */
.grid--2eq .card:hover { transform: translateY(-6px); }          /* remove scale from earlier rule */
.price:hover { transform: translateY(-6px); }                     /* ensure no scale on container */
.card.zoom-in:hover { transform: translateY(-6px); }              


/* === Typography render hints (optional, safe) === */
.card, .price,
.card * , .price * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


/* --- Creator Support tweaks 2025-08-24 --- */
/* Ensure content doesn't sit under sticky navbar and footer sits lower */
main { min-height: calc(100vh - 220px); }
.navbar { position: sticky; top: 0; }
main > .section:first-child { padding-top: 36px; }
/* Card text colors unified */
.work-body, .work-title, .work-card p { color: var(--text); }
.work-card .muted { color: var(--muted); }
/* Fallback look when project images are missing */
.work-media { background: linear-gradient(135deg, rgba(124,147,255,.18), rgba(79,209,197,.12)); }
.work-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.06), transparent 40%);
  pointer-events: none;
}
.footer { margin-top: 48px; }


/* Per-card subtle color tints */
.grid--2eq .card:nth-child(1)::before { color: rgba(0,180,255,.06);}   /* OBS */
.grid--2eq .card:nth-child(2)::before { color: rgba(255,200,0,.06);}   /* Alerty */
.grid--2eq .card:nth-child(3)::before { color: rgba(255,0,80,.06);}    /* YouTube */
.grid--2eq .card:nth-child(4)::before { color: rgba(100,200,255,.06);} /* WWW */
.grid--2eq .card:nth-child(5)::before { color: rgba(255,80,0,.06);}    /* Montaż */
.grid--2eq .card:nth-child(6)::before { color: rgba(0,255,180,.06);}   /* Social */
.grid--2eq .card:nth-child(7)::before { color: rgba(180,100,255,.06);} /* Branding */
.grid--2eq .card:nth-child(8)::before { color: rgba(255,150,50,.06);}  /* Konsultacje */


/* === Oferta cards Variant 2: background icons top right === */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: attr(data-icon);
  position: absolute;
  top: .5rem;
  right: .75rem;
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.05);
  pointer-events: none;
}
/* Per-card subtle color tints */
.grid--2eq .card:nth-child(1)::before { color: rgba(0,180,255,.06);}   /* OBS */
.grid--2eq .card:nth-child(2)::before { color: rgba(255,200,0,.06);}   /* Alerty */
.grid--2eq .card:nth-child(3)::before { color: rgba(255,0,80,.06);}    /* YouTube */
.grid--2eq .card:nth-child(4)::before { color: rgba(100,200,255,.06);} /* WWW */
.grid--2eq .card:nth-child(5)::before { color: rgba(255,80,0,.06);}    /* Montaż */
.grid--2eq .card:nth-child(6)::before { color: rgba(0,255,180,.06);}   /* Social */
.grid--2eq .card:nth-child(7)::before { color: rgba(180,100,255,.06);} /* Branding */
.grid--2eq .card:nth-child(8)::before { color: rgba(255,150,50,.06);}  /* Konsultacje */


/* === Fix Oferta cards icons right alignment === */
.card::before {
  right: 1rem !important;
  left: auto !important;
  text-align: right;
}





/* === Portfolio grid final fix (clean) === */
.grid.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 1200px) { .grid.grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* === Portfolio new chips === */
.chips{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:1.5rem}
.chip{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border-radius:9999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease}
.chip:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18)}
.chip--active{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.26);font-weight:600}
@media(min-width:960px){.grid.grid--3{grid-template-columns:repeat(3,1fr)}}





/* === Equal height portfolio cards (fixed) === */
.grid.grid--3 .work-card {
  display: block;
}
.grid.grid--3 .work-card .work-body {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


/* === Portfolio grid fix (3-up) + equal heights === */
.grid.grid--3 {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 1024px) {
  .grid.grid--3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .grid.grid--3 { grid-template-columns: 1fr !important; }
}
/* Consistent media crop */
.work-card .work-media { aspect-ratio: 16 / 10; overflow: hidden; }
.work-card .work-media img { width: 100%; height: 100%; object-fit: cover; }
/* Equal height cards without breaking grid */
.work-card { display: flex; flex-direction: column; height: 100%; }
.work-card .work-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; margin-top: .75rem; }
.work-card .tags { margin-top: auto; }

/* === Portfolio grid fix (ensure 3 columns on desktop) === */
.grid.grid--3 { grid-template-columns: repeat(3, 1fr) !important; }

@media (max-width: 1024px) {
  .grid.grid--3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .grid.grid--3 { grid-template-columns: 1fr !important; }
}

/* === Portfolio kafelki - poprawiona szerokość i odstępy === */
.grid.grid--3 {
  gap: 12px !important;
  justify-content: center;
}
.grid.grid--3 .work-card {
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
}

/* === Portfolio kafelki - wyrównane odstępy poziome i pionowe === */
.grid.grid--3 {
  gap: 16px !important; /* równe odstępy pion/poziom */
  justify-content: center;
}
.grid.grid--3 .work-card {
  max-width: 360px; /* delikatnie szersze niż 340px */
  width: 100%;
  margin: 0 auto;
}
