/* ════════════════════════════════════════════
   NIEZAPOMNIANE ANIMACJE — style 2.0
   Paleta z motyla: magenta / błękit / słońce
   ════════════════════════════════════════════ */
:root {
  --ink: #241436;
  --ink-soft: #5c5470;
  --paper: #ffffff;
  --paper-tint: #faf7ff;
  --pink: #f0288f;
  --blue: #29a9e1;
  --sun: #ffc531;
  --mint: #06d6a0;
  --violet: #8b5cf6;
  --orange: #ff8a3d;
  --candy: linear-gradient(92deg, var(--pink) 0%, var(--orange) 55%, var(--sun) 100%);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-soft: 0 10px 40px rgba(36, 20, 54, 0.10);
  --shadow-pop: 0 20px 60px rgba(36, 20, 54, 0.16);
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text, .btn, .chip, .pricing-title {
  font-family: 'Nunito', 'Inter', sans-serif;
}

h1 { font-size: clamp(2.75rem, 7.5vw, 5.25rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; font-weight: 800; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }
.center { text-align: center; margin-top: 40px; }

.candy {
  background: var(--candy);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--sun); }

.section-lead {
  max-width: 620px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Przyciski ── */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  color: #fff;
  background: var(--candy);
  background-size: 150% 100%;
  box-shadow: 0 10px 30px rgba(240, 40, 143, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(240, 40, 143, 0.45);
  background-position: 100% 0;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(36, 20, 54, 0.16);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-3px); }

.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-light:hover { transform: translateY(-3px); }

/* ════════════════════════════════════════════
   NAWIGACJA
   ════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(36, 20, 54, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 8px 30px rgba(36, 20, 54, 0.08); background: rgba(255,255,255,0.88); }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  object-fit: cover;
}
.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.logo-text em {
  font-style: normal;
  display: block;
  background: var(--candy);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.navbar ul { list-style: none; display: flex; align-items: center; gap: 30px; }
.navbar ul li a.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  transition: color 0.25s ease;
}
.navbar ul li a.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 3px;
  border-radius: 3px;
  background: var(--candy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.navbar ul li a.nav-link:hover, .navbar ul li a.nav-link.active { color: var(--ink); }
.navbar ul li a.nav-link:hover::after, .navbar ul li a.nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--pink); transform: translateY(-2px); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  height: 3px; width: 100%;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 205px) 0 40px;
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(240, 40, 143, 0.09), transparent 70%),
    radial-gradient(55% 45% at 88% 12%, rgba(41, 169, 225, 0.10), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(255, 197, 49, 0.10), transparent 70%),
    var(--paper);
  overflow: hidden;
}

/* Tor, po którym jeździ ciuchcia */
.train-track {
  position: absolute;
  top: calc(var(--nav-h) + 168px);
  left: 0; right: 0;
  height: 3px;
  background-image: linear-gradient(90deg, rgba(36,20,54,0.14) 0 22px, transparent 22px 40px);
  background-size: 40px 3px;
}

.hero-inner { text-align: center; position: relative; z-index: 2; }
.hero-sub {
  max-width: 560px;
  margin: 22px auto 34px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  margin-top: 70px;
  z-index: 2;
}
.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.hero-photo img { display: block; width: 100%; height: auto; }

.hero-float {
  position: absolute;
  width: clamp(140px, 22%, 260px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  border: 5px solid #fff;
}
.hero-float img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero-float-a { left: -14px; bottom: -34px; transform: rotate(-4deg); }
.hero-float-b { right: -14px; top: -44px; transform: rotate(3.5deg); }

/* balony w tle */
.floating-bits { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floating-bits span {
  position: absolute;
  left: var(--x);
  bottom: -60px;
  font-size: 1.6rem;
  opacity: 0;
  animation: floatUp var(--dur) linear var(--delay) infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-115vh) rotate(18deg); opacity: 0; }
}

/* Ciuchcia (tworzona w JS) */
.train-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.train-container img {
  position: absolute;
  bottom: 0;
  height: 100%;
  width: auto;
  will-change: transform;
  animation: trainBob 0.85s ease-in-out infinite;
}
@keyframes trainBob {
  0%, 100% { margin-bottom: 0; }
  50% { margin-bottom: 3px; }
}

/* ════════════════════════════════════════════
   TICKER
   ════════════════════════════════════════════ */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: tickerScroll 28s linear infinite; }
.ticker-track span { padding-right: 12px; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════
   SEKCJE
   ════════════════════════════════════════════ */
.section { padding: 110px 0; }
.section-tint { background: var(--paper-tint); }

.attr-group { margin: 56px 0 22px; }
.chip {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 20px;
  border-radius: 999px;
}
.chip-pink { background: rgba(240, 40, 143, 0.10); color: var(--pink); }
.chip-blue { background: rgba(41, 169, 225, 0.12); color: #147bb0; }
.chip-mint { background: rgba(6, 214, 160, 0.13); color: #048a68; }

.attr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.attr-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.a-card {
  background: #fff;
  border: 1px solid rgba(36, 20, 54, 0.06);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: 0 4px 20px rgba(36, 20, 54, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.a-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.a-card h3 { margin: 14px 0 8px; }
.a-card p { color: var(--ink-soft); font-size: 0.98rem; }

.a-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  border-radius: 16px;
}
.tint-pink   .a-icon { background: rgba(240, 40, 143, 0.12); }
.tint-blue   .a-icon { background: rgba(41, 169, 225, 0.14); }
.tint-yellow .a-icon { background: rgba(255, 197, 49, 0.20); }
.tint-mint   .a-icon { background: rgba(6, 214, 160, 0.14); }
.tint-violet .a-icon { background: rgba(139, 92, 246, 0.13); }
.tint-orange .a-icon { background: rgba(255, 138, 61, 0.15); }

/* ── Urodziny / split ── */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.split-text p { margin-bottom: 18px; color: var(--ink-soft); }
.split-text p strong { color: var(--ink); }

.check-list { list-style: none; margin: 8px 0 30px; }
.check-list li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--mint);
}

.poster {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.poster:hover { transform: scale(1.015) rotate(-0.4deg); }
.poster img { display: block; width: 100%; height: auto; }
.poster figcaption {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  background: rgba(36, 20, 54, 0.75);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ── Bale ── */
.ball-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.ball-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(36, 20, 54, 0.06);
  border: 1px solid rgba(36, 20, 54, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ball-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.ball-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.ball-body { padding: 24px 24px 28px; }
.ball-body h3 { margin-bottom: 8px; }
.ball-body p { color: var(--ink-soft); font-size: 0.98rem; }

/* ── Galeria ── */
.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 24px 30px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 10px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(36,20,54,0.18); border-radius: 10px; }
.gallery figure {
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.gallery figure:hover { transform: scale(1.02); }
.gallery img {
  display: block;
  height: 320px;
  width: auto;
  object-fit: cover;
}
.gallery figure.tall img { height: 320px; }

/* ── Cennik ── */
.pricing {
  margin: 40px 24px 110px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 10% 0%, rgba(240, 40, 143, 0.35), transparent 60%),
    radial-gradient(70% 120% at 95% 100%, rgba(41, 169, 225, 0.35), transparent 60%),
    var(--ink);
  color: #fff;
  padding: 70px 0;
}
.pricing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.pricing-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; }
.pricing-title span { font-size: 0.45em; font-weight: 500; opacity: 0.8; }
.pricing-sub { margin-top: 10px; opacity: 0.85; max-width: 460px; }
.pricing-actions { display: flex; flex-direction: column; gap: 14px; }

/* ════════════════════════════════════════════
   STOPKA
   ════════════════════════════════════════════ */
footer {
  background: var(--paper-tint);
  border-top: 1px solid rgba(36, 20, 54, 0.07);
  padding: 70px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-logo { font-size: 1.3rem; }
.footer-tag { color: var(--ink-soft); margin-top: 10px; }
footer h3 { font-size: 1.02rem; margin-bottom: 12px; }
footer p { color: var(--ink-soft); margin-bottom: 6px; }
footer a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s ease; }
footer a:hover { color: var(--pink); }
.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid rgba(36, 20, 54, 0.07);
  padding-top: 24px;
}

/* ════════════════════════════════════════════
   POPUP / LIGHTBOX / BACK-TO-TOP
   ════════════════════════════════════════════ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 32, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  padding: 24px;
}
.popup-overlay.active { opacity: 1; visibility: visible; }

.popup-content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px 44px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-pop);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.popup-overlay.active .popup-content { transform: translateY(0) scale(1); }
.popup-emoji { font-size: 2.6rem; margin-bottom: 10px; }
.popup-content h3 { font-size: 1.6rem; margin-bottom: 8px; }
.popup-content p { color: var(--ink-soft); margin-bottom: 22px; }

.phone-link {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: var(--candy);
  text-decoration: none;
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phone-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(240, 40, 143, 0.35); }

.close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(36, 20, 54, 0.07);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.close-btn:hover { background: rgba(36, 20, 54, 0.14); transform: rotate(90deg); }

.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
}
.lightbox .close-btn {
  position: fixed;
  top: 20px; right: 20px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.lightbox .close-btn:hover { background: rgba(255, 255, 255, 0.3); }

.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  z-index: 800;
  box-shadow: var(--shadow-soft);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--pink); }

/* ── Konfetti ── */
.confetti-piece {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1200;
  animation: confettiFly 0.9s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}
@keyframes confettiFly {
  to {
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
    opacity: 0;
  }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.32, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   RESPONSYWNOŚĆ
   ════════════════════════════════════════════ */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .poster { max-width: 460px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .pricing-inner { flex-direction: column; text-align: center; }
  .pricing-actions { width: 100%; max-width: 360px; }
}

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .navbar ul {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(36, 20, 54, 0.08);
    padding: 10px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .navbar ul.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .navbar ul li a.nav-link { display: block; padding: 14px 4px; font-size: 1.1rem; }
  .navbar ul li a.nav-link::after { display: none; }
  .nav-cta-wrap { margin-top: 10px; }
  .nav-cta { width: 100%; padding: 14px; font-size: 1.05rem; }

  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--nav-h) + 190px); }
  .train-track { top: calc(var(--nav-h) + 152px); }
  .hero-sub { font-size: 1.05rem; }
  .hero-visual { margin-top: 54px; }
  .hero-float-a { bottom: -22px; }
  .hero-float-b { top: -26px; }
  .gallery img { height: 240px; }
  .pricing { margin: 20px 16px 80px; padding: 54px 0; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-float { border-width: 3px; }
  .logo-text { font-size: 1rem; }
}

/* ── Ograniczony ruch ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floating-bits span,
  .ticker-track,
  .train-container img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
