body {
  box-sizing: border-box;
  overflow-x: hidden;
}
body.dark-bg {
  background: #181a1b;
  color: #fff;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
body.dark-bg::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  background-size: 400px 400px;
}
.floating-icons {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1;
}
.floating-icon {
  position: absolute;
  font-size: 2.2rem;
  color: rgba(59, 130, 246, 0.18);
  animation: float 6s ease-in-out infinite;
}
.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.floating-icon:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; }
.floating-icon:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.floating-icon:nth-child(6) { top: 60%; right: 5%; animation-delay: 5s; }
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
/* ANIMATIONS */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* FLOATING ICONS */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: auto;
  text-align: center;
  padding: 0 1.5rem;
  margin-top: 2rem;
}
.main-header {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2.2rem;
  max-width: 900px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-btn {
  background: linear-gradient(135deg, #00e6a6 0%, #3b82f6 100%);
  color: #181a1b;
  border: none;
  border-radius: 16px;
  font-size: 1.75rem;
  padding: 1.1rem 2.5rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(59,130,246,0.15);
  letter-spacing: 0.5px;
}
.cta-btn:hover {
  background: linear-gradient(135deg, #00b383 0%, #2563eb 100%);
  transform: translateY(-3px) scale(1.04);
}
footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2.5rem 0 1.5rem 0;
}
.footer-logo {
  height: 60px;
  opacity: 0.9;
}
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background: #232526;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
.modal-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  background: linear-gradient(135deg, #fff 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
#lead-form input {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border: none;
  font-size: 1.25rem;
  background: #181a1b;
  color: #fff;
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
  font-weight: 500;
}
#lead-form input:focus {
  outline: 2px solid #00e6a6;
}
.calendar-widget-fullwidth {
  width: 100%;
  max-width: 1100px;
  margin: 2.5rem auto 0 auto;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 8px;
}

.calendar-widget-fullwidth div {
  min-height: 600px;
}
.video-widget-fullwidth {
  width: 100%;
  max-width: 700px;
  margin: 0.2rem auto 0 auto;
  box-sizing: border-box;
}
.calcom-widget-bg {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 24px 0 24px 0 !important;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
  overflow-x: hidden !important;
  overflow-y: visible;
  display: flex;
  justify-content: center;
  position: relative;
}

#my-cal-inline-automatyzacja {
  width: 100%;
  min-width: 350px;
  max-width: 1100px;
  min-height: 600px;
  box-sizing: border-box;
  overflow-x: hidden !important;
  padding: 0 12px !important;
}

/* Poprawka na wycinanie cyfr/godzin w Cal.com (wymuszenie, by zawartość nie wystawała) */
#my-cal-inline-automatyzacja > * {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

#my-cal-inline-spotkanie-ws-recepcji {
  width: 100%;
  min-width: 350px;
  max-width: 1100px;
  min-height: 600px;
  box-sizing: border-box;
  overflow-x: hidden !important;
  padding: 0 12px !important;
}
#my-cal-inline-spotkanie-ws-recepcji > * {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.calendar-info {
  font-size: 1.15rem;
  color: #232526;
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  margin: 24px auto 18px auto;
  max-width: 700px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(59,130,246,0.06);
}

.main-content {
  flex: 1 0 auto;
}
.calcom-section {
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .calcom-widget-bg {
    max-width: 100vw;
  }
  #my-cal-inline-automatyzacja {
    max-width: 100vw;
  }
  #my-cal-inline-spotkanie-ws-recepcji {
    max-width: 100vw;
  }
}
@media (max-width: 700px) {
  .main-header {
    font-size: 1.35rem;
    padding: 0 0.5rem;
    line-height: 1.2;
  }
  .video-widget-fullwidth {
    padding: 0 8px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .calcom-widget-bg {
    padding: 12px 6px;
    border-radius: 12px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  #my-cal-inline-automatyzacja {
    min-height: 400px;
    padding: 0 2px !important;
  }
  #my-cal-inline-spotkanie-ws-recepcji {
    min-height: 400px;
    padding: 0 2px !important;
  }
  .floating-icons {
    display: none !important;
  }
} 