/* SERVER — Jakub Podsiadło | strona statyczna, czysty CSS, brak zależności */

:root {
  --navy: #0f2136;
  --navy-2: #16324f;
  --accent: #2f6fed;
  --accent-2: #1a4fc0;
  --accent-violet: #7c3aed;
  --accent-pink: #ec4899;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1c2733;
  --text-light: #5b6b7c;
  --border: #e4e9f0;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 33, 54, 0.08);
  --maxw: 1160px;
  --gap: 24px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: #fff; }
.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head p { color: var(--text-light); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-violet) 100%);
  background-size: 160% 160%;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.4s ease;
}
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 10px 24px rgba(124,58,237,0.35); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(15,33,54,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height .25s ease;
}
.site-header.is-scrolled .container { height: 66px; }
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark { height: 34px; width: auto; display: block; transition: height .25s ease; }
.site-header.is-scrolled .logo-mark { height: 28px; }
.logo small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-transform: uppercase;
}

.nav-primary { display: flex; align-items: center; gap: 8px; }
.nav-primary a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 10px 14px;
  border-radius: 8px;
}
.nav-primary a:hover { background: var(--bg); text-decoration: none; }
.nav-primary a.is-active { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-primary {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
  }
  .nav-primary.is-open { max-height: 420px; opacity: 1; padding: 12px 24px 20px; }
  .nav-primary a { padding: 12px 8px; }
}

/* Hero */
.hero {
  background-image:
    linear-gradient(120deg, rgba(15,33,54,0.92) 0%, rgba(15,33,54,0.72) 32%, rgba(20,20,50,0.40) 65%, rgba(15,33,54,0.55) 100%),
    url("/assets/img/hero/hero-network-bg.jpg");
  background-size: 200% 200%, cover;
  background-repeat: no-repeat, no-repeat;
  background-position: 0% 50%, center;
  animation: heroGradient 18s ease infinite;
  color: #fff;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: .35;
  animation: dotDrift 44s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(47,111,237,0.35), transparent 70%);
  pointer-events: none;
}
.hero-blob--1 { right: -120px; top: -120px; width: 420px; height: 420px; animation: floatSlow 10s ease-in-out infinite; }
.hero-blob--2 { left: -80px; bottom: -140px; width: 320px; height: 320px; background: radial-gradient(circle at center, rgba(124,58,237,0.30), transparent 70%); animation: floatSlow 13s ease-in-out infinite reverse; }
.hero-blob--3 { left: 40%; top: -60px; width: 180px; height: 180px; background: radial-gradient(circle at center, rgba(236,72,153,0.22), transparent 70%); animation: floatSlow 8s ease-in-out infinite; }
@keyframes dotDrift { from { background-position: 0 0; } to { background-position: 260px 260px; } }
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 700px; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(47,111,237,0.18);
  border: 1px solid rgba(47,111,237,0.4);
  color: #bcd0ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 18px; }
.hero p.lead { color: #cbd8ea; font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stats .stat strong { display: block; font-size: 1.8rem; color: #fff; }
.hero-stats .stat span { color: #9db2cc; font-size: 0.9rem; }

/* Services grid */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: 0 22px 48px rgba(47,111,237,0.20);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(47,111,237,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
  transition: transform .25s ease, background .25s ease;
}
.card:hover .icon { transform: scale(1.08) rotate(-4deg); background: rgba(47,111,237,0.16); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-light); margin: 0; font-size: 0.96rem; }

/* Team */
.team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
.team-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
  padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(47,111,237,0.20); }
.team-card .photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy);
  flex-shrink: 0;
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.team-card:hover .photo img { transform: scale(1.06); }
.team-card .body { padding: 0; flex: 1; min-width: 0; }
@media (max-width: 520px) {
  .team-card { flex-direction: column; align-items: center; text-align: center; }
  .team-card .body { width: 100%; }
  .team-card .contact-line { text-align: center; }
}
.team-card h3 { margin-bottom: 2px; font-size: 1.15rem; }
.team-card .role { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; display: block; }
.team-card .contact-line { font-size: 0.92rem; color: var(--text-light); }
.team-card .contact-line a { color: var(--text-light); }
.team-card .contact-line a:hover { color: var(--accent); }

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }
.stat-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.stat-box .stat strong { display: block; font-size: 2rem; color: #fff; }
.stat-box .stat span { color: #9db2cc; font-size: 0.88rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-light);
  background: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,16,26,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-card p.quote { font-style: italic; color: var(--text); }
.testimonial-card .who { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.testimonial-card .who span { display: block; font-weight: 400; color: var(--text-light); font-size: 0.85rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 18px; }
.info-list .row { display: flex; gap: 14px; align-items: flex-start; }
.info-list .row .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(47,111,237,0.1); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-list .row strong { display: block; color: var(--navy); font-size: 0.95rem; }
.info-list .row span, .info-list .row a { color: var(--text-light); font-size: 0.95rem; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.map-wrap iframe { width: 100%; flex: 1; min-height: 280px; border: 0; }
.map-wrap .map-link {
  margin: 0;
  padding: 10px 16px;
  background: var(--card);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: center;
}
.map-wrap .map-link a { color: var(--accent); font-weight: 600; }

/* Karta z kodem QR wizytówki (dol strony kontakt) */
.qr-card {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 48px auto 0;
  max-width: 620px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 30px;
}
.qr-card img {
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.qr-card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.qr-card p { margin: 0; color: var(--text-light); font-size: 0.95rem; }
@media (max-width: 560px) {
  .qr-card { flex-direction: column; text-align: center; padding: 26px 22px; }
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; font-size: 1.5rem; }
.cta-band p { color: #cbd8ea; margin: 6px 0 0; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6d8; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: #b9c6d8; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links li { margin-bottom: 8px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; font-size: 0.85rem; color: #7f93ab; flex-wrap: wrap; gap: 10px;
}

/* Utility */
.mt-lg { margin-top: 56px; }
.text-center { text-align: center; }
.badge {
  display: inline-block;
  background: rgba(47,111,237,0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ==========================================================================
   WERSJA 2.0 — animacje i aktywne kontrolki (czysty CSS, bez bibliotek)
   ========================================================================== */

@keyframes heroGradient {
  0%   { background-position: 0% 50%, center; }
  50%  { background-position: 100% 50%, center; }
  100% { background-position: 0% 50%, center; }
}
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-16px, 18px) scale(1.06); }
}
@keyframes fadeSpin {
  from { opacity: 0; transform: rotate(-8deg) scale(.9); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll-reveal: elementy z data-animate zaczynaja ukryte, JS dopisuje .is-visible */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate="fade"] { transform: none; }
[data-animate="zoom"] { transform: scale(.92); }
[data-animate="zoom"].is-visible { transform: scale(1); }

/* Stopniowanie animacji kart w siatce (efekt "fali") */
.grid[data-animate-group] > *,
.team-grid[data-animate-group] > *,
.testimonial-grid[data-animate-group] > *,
.gallery-grid[data-animate-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.grid[data-animate-group].is-visible > *,
.team-grid[data-animate-group].is-visible > *,
.testimonial-grid[data-animate-group].is-visible > *,
.gallery-grid[data-animate-group].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.grid[data-animate-group].is-visible > *:nth-child(1) { transition-delay: .05s; }
.grid[data-animate-group].is-visible > *:nth-child(2) { transition-delay: .12s; }
.grid[data-animate-group].is-visible > *:nth-child(3) { transition-delay: .19s; }
.grid[data-animate-group].is-visible > *:nth-child(4) { transition-delay: .26s; }
.team-grid[data-animate-group].is-visible > *:nth-child(1) { transition-delay: .05s; }
.team-grid[data-animate-group].is-visible > *:nth-child(2) { transition-delay: .16s; }
.gallery-grid[data-animate-group].is-visible > *:nth-child(1) { transition-delay: .03s; }
.gallery-grid[data-animate-group].is-visible > *:nth-child(2) { transition-delay: .08s; }
.gallery-grid[data-animate-group].is-visible > *:nth-child(3) { transition-delay: .13s; }
.gallery-grid[data-animate-group].is-visible > *:nth-child(4) { transition-delay: .18s; }
.gallery-grid[data-animate-group].is-visible > *:nth-child(5) { transition-delay: .23s; }
.gallery-grid[data-animate-group].is-visible > *:nth-child(6) { transition-delay: .28s; }

/* Licznik statystyk */
.stat strong[data-counter], .stat-box .stat strong[data-counter] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
.stat strong[data-counter].is-counting,
.stat-box .stat strong[data-counter].is-counting { animation: popIn .4s ease; }

/* Przycisk "do góry" */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15,33,54,0.28);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 60;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--accent); }
.back-to-top svg { width: 20px; height: 20px; }

/* Karuzela opinii — prosty i niezawodny model: w danej chwili tylko jedna
   karta ma klase .is-active (display:block), reszta jest display:none.
   Bez transform/flex-width/overflow - nic tu nie moze "znikac" ani rozjezdzac
   sie w bok, bo w DOM-ie zawsze widoczna jest dokladnie jedna karta. */
.testimonial-carousel { position: relative; padding: 0 8px; }
.testimonial-track { position: relative; }
.testimonial-track .testimonial-card { display: none; }
.testimonial-track .testimonial-card.is-active {
  display: block;
  animation: testimonialFade .4s ease;
}
@keyframes testimonialFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.carousel-dots button.is-active { background: var(--accent); transform: scale(1.25); }
.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .2s ease, color .2s ease;
}
.carousel-arrow:hover { background: var(--accent); color: #fff; }
.carousel-arrow--prev { left: -10px; }
.carousel-arrow--next { right: -10px; }
@media (max-width: 640px) { .carousel-arrow { display: none; } }

/* Nawigacja w lightboxie */
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav--prev { left: 20px; }
.lightbox-nav--next { right: 20px; }
.lightbox img { animation: popIn .25s ease; }

/* ==========================================================================
   WERSJA 2.1 — bardziej spektakularna forma graficzna
   ========================================================================== */

/* Gradientowy, animowany tekst wybranych naglowkow (tylko na jasnym tle) */
.grad-text {
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent) 45%, var(--accent-violet) 80%, var(--accent-pink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradShift 8s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Faliste przejscia miedzy sekcjami - czyste SVG, bez obrazkow */
.wave-divider { display: block; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 70px; }
.wave-divider--hero { position: relative; z-index: 1; margin-top: -2px; }
.wave-divider--hero path { fill: var(--bg); }
.wave-divider--footer path { fill: var(--navy); }
@media (max-width: 640px) { .wave-divider svg { height: 40px; } }

/* Delikatne, bezpieczne "plamy" w tle sekcji - nie wplywaja na czytelnosc,
   bo siedza za trescia (z-index:0) i sa przycinane do granic sekcji. */
.section, .section--alt { position: relative; overflow: hidden; }
.section > .container, .section--alt > .container { position: relative; z-index: 1; }
.section::before, .section--alt::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.section::before {
  background: radial-gradient(circle at center, rgba(47,111,237,0.10), transparent 70%);
  right: -160px; top: -120px;
}
.section--alt::before {
  background: radial-gradient(circle at center, rgba(124,58,237,0.09), transparent 70%);
  left: -160px; bottom: -140px;
}

/* Kart "premium": animowany gradientowy pasek u gory przy najechaniu */
.card, .team-card, .testimonial-card { position: relative; overflow: hidden; }
.card::after, .team-card::after, .testimonial-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-violet), var(--accent-pink), var(--accent));
  background-size: 200% auto;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover::after, .team-card:hover::after, .testimonial-card:hover::after {
  transform: scaleX(1);
  animation: gradShift 3s linear infinite;
}

/* Przycisk z animowanym "polyskiem" przy najechaniu */
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn--shine:hover::before { left: 130%; }

/* Uszanuj preferencje ograniczonego ruchu */
@media (prefers-reduced-motion: reduce) {
  .hero, .hero::before, .hero-blob, .grad-text, [data-animate], .grid[data-animate-group] > *,
  .team-grid[data-animate-group] > *, .testimonial-grid[data-animate-group] > *,
  .gallery-grid[data-animate-group] > *, .testimonial-card.is-active, .card, .team-card,
  .card::after, .team-card::after, .testimonial-card::after,
  .team-card .photo img, .back-to-top, .btn--shine::before {
    animation: none !important;
    transition: none !important;
  }
  [data-animate], .grid[data-animate-group] > *, .team-grid[data-animate-group] > *,
  .testimonial-grid[data-animate-group] > *, .gallery-grid[data-animate-group] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .grad-text {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--navy) !important;
  }
}
