footer {
  position: relative;
  width: 100%;
  background-color: #1a1a1a;
  color: #ccc;
  padding: 40px 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 140px;
}

.footer-knight {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  animation: knightFloat 6s ease-in-out infinite;
}
.footer-knight {
  pointer-events: none; /* ← obraz nie przechwytuje kliknięć */
}

.footer-text, .footer-text a {
  pointer-events: auto; /* ← linki dalej działają normalnie */
  position: relative;
  z-index: 2; /* ← upewniamy się, że są nad rycerzem */
}

@keyframes knightFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}
.footer-knight .knight-label {
  font-size: 0.75rem;
  color: #f5f5f5;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 14px;
  margin-top: 6px;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  opacity: 0.6;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}
.footer-knight img {
  max-height: 100%;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
  opacity: 0.95;
}

.footer-text {
  text-align: center;
  z-index: 1;
  padding: 10px 0;
}

.footer-text p,
footer .quote {
  font-size: 0.9rem;
  line-height: 1.4;
}

footer .quote {
  font-style: italic;
  opacity: 0.7;
  margin-top: 8px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 12px;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.25), transparent 80%);
  filter: blur(8px);
  z-index: 3;
  pointer-events: none;
  opacity: 0.8;
}

/* ======== TABLET & MAŁE EKRANY ======== */
@media (max-width: 768px) {
  .footer-knight {
    display: flex;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 10px;
  }

  .footer-text p,
  footer .quote {
    font-size: 0.85rem;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }

  .hero-content .tagline {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .cta-buttons a {
    width: 100%;
    max-width: 90vw;
    font-size: 1rem;
    padding: 10px 12px;
  }

  .gargoyle {
    display: none;
  }

  .floating-ghost {
    right: 10px;
    bottom: 50px;
    transform: scale(0.7);
  }
}

/* ======== SMARTFONY ======== */
@media (max-width: 480px) {
  .footer-text p,
  footer .quote {
    font-size: 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.2rem;
  }

  .hero-content .tagline {
    font-size: 0.9rem;
  }

  .cta-buttons a {
    font-size: 0.9rem;
  }
}
