
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #475569;
  margin-top: 5rem;
}

.footer-wave {
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.footer-content {
  padding: 4rem 0 2rem 0;
  position: relative;
}

.footer-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c7d2fe, transparent);
}

.footer-section {
  animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #6366f1;
}

.footer-logo i {
  font-size: 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.footer-description {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.footer-heading i {
  color: #8b5cf6;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  padding-left: 0;
}

.footer-links a i {
  font-size: 0.75rem;
  color: #a78bfa;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #6366f1;
  padding-left: 0.5rem;
}

.footer-links a:hover i {
  color: #6366f1;
  transform: translateX(3px);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 2px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link i {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  border-color: transparent;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover i {
  color: white;
  transform: scale(1.1);
}

.footer-newsletter-text {
  color: #64748b;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.newsletter-form {
  margin-bottom: 1rem;
}

.newsletter-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: 14px;
  padding: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.newsletter-input-wrapper:focus-within {
  border-color: #6366f1;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.newsletter-input-wrapper > i {
  position: absolute;
  left: 1rem;
  color: #a78bfa;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 1;
}

.newsletter-input-wrapper:focus-within > i {
  color: #6366f1;
  transform: scale(1.1);
}

.newsletter-input-wrapper .form-control {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  color: #334155;
  font-size: 0.95rem;
}

.newsletter-input-wrapper .form-control:focus {
  box-shadow: none;
  outline: none;
}

.newsletter-input-wrapper .form-control::placeholder {
  color: #94a3b8;
}

.newsletter-input-wrapper .btn {
  border-radius: 10px;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.newsletter-input-wrapper .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.newsletter-input-wrapper .btn i {
  font-size: 1rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-badges .badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-bottom {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  padding: 1.5rem 0;
}

.footer-copyright {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-copyright i {
  color: #a78bfa;
}

.footer-copyright strong {
  color: #6366f1;
  font-weight: 700;
}

.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.3s ease;
}

.footer-legal a:hover {
  color: #6366f1;
}

.footer-legal a:hover::after {
  width: 100%;
}

/* Responsywność */
@media (max-width: 768px) {
  .site-footer {
    margin-top: 3rem;
  }
  
  .footer-wave {
    top: -40px;
    height: 40px;
  }
  
  .footer-wave svg {
    height: 40px;
  }
  
  .footer-content {
    padding: 3rem 0 1.5rem 0;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-description {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-heading {
    justify-content: center;
  }
  
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-links a {
    justify-content: center;
  }
  
  .footer-newsletter-text {
    text-align: center;
  }
  
  .footer-badges {
    justify-content: center;
  }
  
  .footer-bottom {
    padding: 1.25rem 0;
  }
  
  .footer-copyright {
    margin-bottom: 1rem;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-legal {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .newsletter-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .newsletter-input-wrapper .form-control {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    margin-bottom: 0.5rem;
  }
  
  .newsletter-input-wrapper .btn {
    width: 100%;
  }
}