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

:root {
  --primary-color: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #40916c;
  --secondary-color: #52b788;
  --accent-color: #95d5b2;
  --dark: #081c15;
  --gray-dark: #2d3436;
  --gray: #636e72;
  --gray-light: #b2bec3;
  --light: #f8f9fa;
  --white: #ffffff;
  --success: #52b788;
  --warning: #f39c12;
  --error: #e74c3c;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

body.page-loaded {
  opacity: 1;
}

/* Globalne przejście dla zmiany motywu */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition: background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    fill 0.4s ease !important;
}

body.page-transitioning {
  pointer-events: none;
}

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.page-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

[data-theme="dark"] .page-transition-overlay {
  background: var(--dark);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.navbar {
  
 position: fixed;
  
 top: 0;
  
 left: 0;
  
 right: 0;
  
 z-index: 1000;
  
 background-color: transparent;
  
 transition: var(--transition);
  
 padding: 1.75rem 0;
  

  /* Większy padding dla nawigacji */
  

}





/* Back to Portfolio Button */

.back-to-portfolio {
  
 display: inline-flex;
  
 align-items: center;
  
 gap: 0.4rem;
  
 padding: 0.5rem 1rem;
  
 background: linear-gradient(135deg, #6366f1, #8b5cf6);
  
 color: white !important;
  
 text-decoration: none;
  
 font-size: 0.8rem;
  
 font-weight: 600;
  
 border-radius: 20px;
  
 transition: all 0.3s ease;
  
 box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  
 white-space: nowrap;
  

}



.back-to-portfolio:hover {
  
 background: linear-gradient(135deg, #4f46e5, #7c3aed);
  
 transform: translateX(-2px);
  
 box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  

}



.back-to-portfolio svg {
  
 transition: transform 0.3s ease;
  

}



.back-to-portfolio:hover svg {
  
 transform: translateX(-3px);
  

}



@media (max-width: 768px) {
  
 .back-to-portfolio {
    
 position: fixed;
    
 top: auto;
    
 bottom: 1rem;
    
 left: 1rem;
    
 z-index: 1000;
    
 padding: 0.6rem 1rem;
    
 font-size: 0.75rem;
    
 box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    

  }

  

}

.navbar.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  /* Zwiększony padding po scrollu */
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.navbar.scrolled .nav-logo {
  color: var(--primary-color);
}

.nav-logo i {
  font-size: 1.8rem;
}

.nav-logo-svg {
  width: 1.8rem;
  height: 1.8rem;
  transition: var(--transition-fast);
}

/* Mobile theme toggle container - hidden on desktop */
.mobile-theme-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.navbar.scrolled .nav-link {
  color: var(--dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  width: 25px;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: var(--transition);
}

.navbar.scrolled .hamburger {
  background-color: var(--dark);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: inherit;
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.pexels.com/photos/1301856/pexels-photo-1301856.jpeg?auto=compress&cs=tinysrgb&w=1920');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  animation: kenburns 20s infinite alternate;
}

@keyframes kenburns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(29, 67, 50, 0.8) 0%, rgba(45, 106, 79, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 var(--spacing-md);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  text-align: center;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 2rem;
  color: var(--white);
  opacity: 0.7;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
  animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-tag {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.about-section {
  background-color: var(--light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-text h3 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

.about-text p {
  color: var(--gray-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image {
  position: relative;
}

.image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.service-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-card.featured {
  border: 2px solid var(--primary-color);
}

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: rotate(5deg) scale(1.1);
}

.service-icon i {
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  color: var(--gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-dark);
  margin-bottom: 0.75rem;
}

.service-features i {
  color: var(--secondary-color);
  font-size: 1rem;
}

.gallery-section {
  background-color: var(--light);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gray-light);
  background-color: var(--white);
  color: var(--gray-dark);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.875rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.gallery-item.hidden {
  display: none;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--white);
  padding: var(--spacing-md);
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  font-size: 0.875rem;
  opacity: 0.9;
}

.testimonials-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: var(--white);
}

.testimonials-section .section-tag,
.testimonials-section .section-title {
  color: var(--white);
}

.testimonials-section .section-description {
  color: rgba(255, 255, 255, 0.9);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
  width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.testimonial-track {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2.25rem;
  color: var(--primary-color);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-stars {
  color: var(--warning);
  margin-bottom: 1rem;
}

.testimonial-stars i {
  font-size: 1rem;
  margin-right: 0.15rem;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-dark);
  margin-bottom: 1.25rem;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 0 -1.75rem -1.75rem -1.75rem;
  background: #f5f7f5;
  text-align: center;
  margin-top: auto;
  border-radius: 0 0 16px 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.author-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.4;
}

.verified-badge {
  color: var(--success) !important;
  font-size: 0.75rem !important;
  margin-top: 0.3rem;
  display: inline-flex;
  align-items: center;
}

.verified-badge i {
  margin-right: 0.3rem;
  font-size: 0.7rem;
}

/* Rating Summary Badge */
.testimonials-summary {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.rating-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.rating-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.rating-stars {
  display: flex;
  gap: 0.3rem;
}

.rating-stars i {
  color: var(--warning);
  font-size: 1.1rem;
}

.rating-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: 1.5rem;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.contact-section {
  background-color: var(--light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.contact-info h3 {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

/* Contact items grid - 2x2 on mobile */
.contact-items-grid {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .contact-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contact-items-grid .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 12px;
  }

  .contact-items-grid .contact-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.5rem;
  }

  .contact-items-grid .contact-icon i {
    font-size: 1.1rem;
  }

  .contact-items-grid .contact-item h4 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }

  .contact-items-grid .contact-item p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .contact-items-grid .contact-item p a {
    word-break: break-all;
  }
}

.contact-item {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem;
  color: var(--white);
}

.contact-item h4 {
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--gray);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.social-links i {
  font-size: 1.25rem;
}

.contact-form {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
}

.form-group textarea {
  resize: vertical;
}

.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.footer-logo i {
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.footer-col p {
  color: var(--gray-light);
  line-height: 1.8;
}

.footer-col h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: var(--gray-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer-col .btn-primary {
  color: #ffffff !important;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-dark);
  border-radius: 12px;
  background-color: var(--gray-dark);
  color: var(--white);
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--gray-dark);
  color: var(--gray-light);
}

.footer-bottom p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
}

/* Portfolio Return Button */
.footer-portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white) !important;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.footer-portfolio-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* Nav Portfolio Link */
.nav-portfolio {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background-color: var(--dark);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  transition: var(--transition);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: linear-gradient(135deg, var(--success), var(--secondary-color));
}

.toast.error {
  background: linear-gradient(135deg, var(--error), #c0392b);
}

@media (max-width: 768px) {
  /* ======================================
     MOBILE SPACING & BREATHING ROOM FIX
     ====================================== */

  /* Główny kontener - więcej paddingu na mobile */
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Sekcje - mniejszy pionowy padding na mobile */
  section {
    padding: 3rem 0;
  }

  /* Section header - lepszy spacing */
  .section-header {
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.3;
  }

  .section-description {
    font-size: 0.95rem;
    padding: 0 0.25rem;
  }

  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    color: var(--dark);
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
  }

  /* Grid layouts */
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Hero section mobile spacing */
  .hero-content {
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .btn {
    width: 100%;
  }

  /* ======================================
     TESTIMONIALS MOBILE FIXES
     ====================================== */
  .testimonials-section {
    padding: 3rem 0;
  }

  .testimonials-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 0.25rem;
  }

  .testimonial-card {
    margin: 0 0.25rem;
    padding: 1.25rem;
  }

  .testimonial-text {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .testimonial-author {
    padding: 1rem 1.25rem;
    margin: 0 -1.25rem -1.25rem -1.25rem;
  }

  .author-avatar {
    width: 42px;
    height: 42px;
    font-size: 0.85rem;
  }

  .rating-badge {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .rating-number {
    font-size: 2.25rem;
  }

  /* ======================================
     SERVICE CARDS MOBILE
     ====================================== */
  .service-card {
    padding: 1.5rem;
    margin: 0;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-features {
    padding-left: 0;
  }

  .service-features li {
    font-size: 0.875rem;
    padding: 0.35rem 0;
  }

  /* ======================================
     CTA SECTION MOBILE
     ====================================== */
  .cta-section {
    padding: 2.5rem 0;
  }

  .cta-content {
    padding: 0 0.5rem;
  }

  .cta-content h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.35;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  /* ======================================
     CONTACT SECTION MOBILE
     ====================================== */
  .contact-form {
    padding: 1.5rem;
    margin: 0;
  }

  .contact-item {
    flex-direction: row;
    gap: 0.75rem;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
  }

  /* ======================================
     FOOTER MOBILE SPACING
     ====================================== */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4 {
    margin-bottom: 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-form input {
    width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }

  /* ======================================
     FAQ SECTION MOBILE
     ====================================== */
  .accordion-item {
    margin: 0 0 0.75rem 0;
  }

  .accordion-header {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .accordion-body {
    padding: 0 1.25rem 1rem 1.25rem;
    font-size: 0.875rem;
  }

  /* ======================================
     SCROLL TO TOP MOBILE
     ====================================== */
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  /* ======================================
     EXTRA SMALL SCREENS (< 480px)
     ====================================== */

  /* Jeszcze więcej paddingu dla bardzo małych ekranów */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Mniejsze fonty dla bardzo małych ekranów */
  .section-title {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
  }

  .section-tag {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item img {
    height: 220px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-logo {
    justify-content: center;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-author {
    padding: 0.875rem 1rem;
    margin: 0 -1rem -1rem -1rem;
  }

  .testimonial-text {
    font-size: 0.825rem;
  }

  /* Service cards */
  .service-card {
    padding: 1.25rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  /* CTA */
  .cta-content h2 {
    font-size: 1.15rem;
  }

  /* Hero */
  .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  /* Contact */
  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-icon i {
    font-size: 1rem;
  }
}

.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Nav Link Active State */
.nav-link.active {
  color: var(--secondary-color);
}

.nav-link.active::after {
  width: 100%;
}

.navbar.scrolled .nav-link.active {
  color: var(--primary-color);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: var(--spacing-xl) 0;
}

.cta-content {
  text-align: center;
  color: var(--white);
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-sm);
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
  border-color: var(--white);
}

.cta-buttons .btn-primary:hover {
  background-color: transparent;
  color: var(--white);
}

.cta-buttons .btn-secondary i {
  margin-right: 0.5rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer Contact List */
.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-light);
}

.footer-contact li i {
  color: var(--secondary-color);
  width: 20px;
}

/* ===========================================
   ULTRA PREMIUM FEATURES
   =========================================== */

/* --- DARK MODE VARIABLES --- */
/* ===========================================
   DARK MODE - Comprehensive Styles
   =========================================== */
[data-theme="dark"] {
  /* NIE odwracamy podstawowych zmiennych - zachowujemy je oryginalne
     aby hero i inne elementy z białym tekstem zachowały swoje kolory */

  /* Zmienne specyficzne dla dark mode */
  --dm-bg-primary: #0f0f0f;
  --dm-bg-secondary: #161616;
  --dm-bg-tertiary: #1e1e1e;
  --dm-bg-elevated: #252525;
  --dm-border: rgba(255, 255, 255, 0.08);
  --dm-border-hover: rgba(255, 255, 255, 0.15);
  --dm-text-primary: #f0f0f0;
  --dm-text-secondary: #b0b0b0;
  --dm-text-muted: #757575;

  /* Cienie dla dark mode - subtelniejsze */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] body {
  background-color: var(--dm-bg-primary);
  color: var(--dm-text-primary);
}

/* Navbar */
[data-theme="dark"] .navbar.scrolled {
  background-color: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dm-border);
}

[data-theme="dark"] .navbar.scrolled .nav-logo {
  color: #ffffff;
}

[data-theme="dark"] .navbar.scrolled .nav-link {
  color: #ffffff;
}

[data-theme="dark"] .navbar.scrolled .hamburger {
  background-color: #ffffff;
}

/* Mobile menu dark mode - only applies on mobile */
@media (max-width: 768px) {
  [data-theme="dark"] .nav-menu {
    background-color: var(--dm-bg-primary);
    border-left: 1px solid var(--dm-border);
  }

  [data-theme="dark"] .nav-menu .nav-link {
    color: var(--dm-text-primary);
    border-bottom-color: var(--dm-border);
  }

  [data-theme="dark"] .nav-menu .nav-link:hover {
    color: var(--secondary-color);
    background-color: rgba(82, 183, 136, 0.1);
  }
}

/* Sekcje z alternatywnym tłem */
[data-theme="dark"] .about-section,
[data-theme="dark"] .gallery-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .pricing-section,
[data-theme="dark"] .faq-section {
  background-color: var(--dm-bg-secondary);
}

/* Karty i komponenty */
[data-theme="dark"] .service-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .gallery-item {
  background-color: var(--dm-bg-tertiary);
  border: 1px solid var(--dm-border);
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .pricing-card:hover,
[data-theme="dark"] .team-card:hover,
[data-theme="dark"] .value-card:hover {
  border-color: var(--dm-border-hover);
  box-shadow: 0 12px 40px rgba(82, 183, 136, 0.15);
}

/* Nagłówki */
[data-theme="dark"] .section-title,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .pricing-header h3,
[data-theme="dark"] .team-card h3,
[data-theme="dark"] .value-card h3,
[data-theme="dark"] .accordion-header,
[data-theme="dark"] .timeline-content h3,
[data-theme="dark"] .about-text h3 {
  color: #ffffff;
}

/* Teksty */
[data-theme="dark"] .section-description,
[data-theme="dark"] .service-card p,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .team-card p,
[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .pricing-features li,
[data-theme="dark"] .accordion-body,
[data-theme="dark"] .about-text p {
  color: #b0b0b0;
}

/* Service card features list */
[data-theme="dark"] .service-features li {
  color: #b0b0b0;
}

[data-theme="dark"] .service-features i {
  color: var(--secondary-color);
}

/* Stats */
[data-theme="dark"] .stat-number {
  color: var(--secondary-color);
}

[data-theme="dark"] .stat-label {
  color: #9a9a9a;
}

/* Testimonials */
[data-theme="dark"] .testimonial-card {
  background-color: var(--dm-bg-tertiary);
  border: 1px solid var(--dm-border);
}

[data-theme="dark"] .testimonial-text {
  color: #b0b0b0;
}

[data-theme="dark"] .testimonial-quote {
  color: var(--secondary-color);
  opacity: 0.5;
}

/* Testimonial author section */
[data-theme="dark"] .testimonial-author {
  background: rgba(25, 25, 25, 0.95) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .testimonial-author .name,
[data-theme="dark"] .author-info h4 {
  color: #ffffff !important;
}

[data-theme="dark"] .testimonial-author .location,
[data-theme="dark"] .testimonial-author .date,
[data-theme="dark"] .author-info span {
  color: #9a9a9a !important;
}

[data-theme="dark"] .testimonial-verified,
[data-theme="dark"] .verified-badge {
  color: var(--secondary-color) !important;
}

/* Rating badge */
[data-theme="dark"] .rating-badge {
  background-color: transparent;
  border: none;
}

[data-theme="dark"] .rating-badge .rating-text {
  color: #b0b0b0;
}

/* Formularz kontaktowy */
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea,
[data-theme="dark"] .contact-form select {
  background-color: var(--dm-bg-elevated);
  border-color: var(--dm-border);
  color: var(--dm-text-primary);
}

[data-theme="dark"] .contact-form input::placeholder,
[data-theme="dark"] .contact-form textarea::placeholder {
  color: var(--dm-text-muted);
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus,
[data-theme="dark"] .contact-form select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.2);
}

[data-theme="dark"] .contact-form label {
  color: var(--dm-text-primary);
}

/* Contact items grid dark mode */
[data-theme="dark"] .contact-items-grid .contact-item {
  background-color: var(--dm-bg-tertiary);
  border: 1px solid var(--dm-border);
}

[data-theme="dark"] .contact-items-grid .contact-item h4 {
  color: var(--dm-text-primary);
}

[data-theme="dark"] .contact-items-grid .contact-item p,
[data-theme="dark"] .contact-items-grid .contact-item p a {
  color: var(--dm-text-secondary);
}

[data-theme="dark"] .contact-items-grid .contact-item p a:hover {
  color: var(--secondary-color);
}

/* Przyciski filtrów */
[data-theme="dark"] .filter-btn {
  background-color: var(--dm-bg-tertiary);
  border-color: var(--dm-border);
  color: var(--dm-text-secondary);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
  color: #ffffff;
}

/* Footer */
[data-theme="dark"] .footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

[data-theme="dark"] .footer-col h4 {
  color: var(--dm-text-primary);
}

[data-theme="dark"] .footer-col p,
[data-theme="dark"] .footer-col a,
[data-theme="dark"] .footer-col li {
  color: var(--dm-text-secondary);
}

[data-theme="dark"] .footer-col a:hover {
  color: var(--secondary-color);
}

/* Social links in dark mode */
[data-theme="dark"] .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .social-links a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  border-color: transparent;
}

/* Before & After section (gallery) */
[data-theme="dark"] .before-after-item {
  background-color: #1e1e1e !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .before-after-item h4 {
  color: #ffffff !important;
}

[data-theme="dark"] .before-after-item p {
  color: #9a9a9a !important;
}

/* Section with var(--light) background in dark mode */
[data-theme="dark"] section[style*="background: var(--light)"],
[data-theme="dark"] section[style*="background:var(--light)"] {
  background-color: #161616 !important;
}

/* Gallery overlay */
[data-theme="dark"] .gallery-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
}

/* Pricing - Featured card */
[data-theme="dark"] .pricing-card.featured {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-color: var(--secondary-color);
}

/* Accordion */
[data-theme="dark"] .accordion-header:hover {
  background-color: var(--dm-bg-elevated);
}

[data-theme="dark"] .accordion-item.active .accordion-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #ffffff;
}

[data-theme="dark"] .accordion-body {
  border-top-color: var(--dm-border);
}

/* Timeline */
[data-theme="dark"] .timeline-dot {
  border-color: var(--dm-bg-primary);
}

/* Stats */
[data-theme="dark"] .stat-label {
  color: var(--dm-text-muted);
}

/* Breadcrumb */
[data-theme="dark"] .breadcrumb span {
  color: var(--dm-text-muted);
}

/* Info grid items */
[data-theme="dark"] .info-item,
[data-theme="dark"] .contact-info-item {
  background-color: var(--dm-bg-tertiary);
  border: 1px solid var(--dm-border);
}

[data-theme="dark"] .info-item h4,
[data-theme="dark"] .contact-info-item h4 {
  color: var(--dm-text-primary);
}

[data-theme="dark"] .info-item p,
[data-theme="dark"] .contact-info-item p {
  color: var(--dm-text-secondary);
}

/* Scroll to top button */
[data-theme="dark"] .scroll-to-top {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Blob container - reduce opacity in dark mode */
[data-theme="dark"] .blob {
  opacity: 0.08;
}

/* Process steps */
[data-theme="dark"] .step-number {
  box-shadow: 0 4px 20px rgba(82, 183, 136, 0.3);
}

[data-theme="dark"] .process-step h4 {
  color: var(--dm-text-primary);
}

[data-theme="dark"] .process-step p {
  color: var(--dm-text-secondary);
}

/* Map placeholder */
[data-theme="dark"] .map-placeholder {
  background: linear-gradient(135deg, var(--dm-bg-tertiary), var(--dm-bg-secondary));
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: inherit;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
  margin-left: 0.75rem;
  opacity: 0.7;
}

.theme-toggle:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle .fa-moon {
  display: block;
}

.theme-toggle .fa-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
  display: block;
}

/* Mobile theme toggle specific styles */
@media (max-width: 768px) {
  .mobile-theme-toggle .theme-toggle {
    color: var(--primary-color);
    opacity: 1;
  }

  [data-theme="dark"] .mobile-theme-toggle .theme-toggle {
    color: var(--secondary-color);
  }
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 10001;
  transition: width 0.1s ease-out;
}

/* --- PRELOADER --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-logo i {
  font-size: 3rem;
  animation: preloaderSpin 2s linear infinite;
}

@keyframes preloaderPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes preloaderSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-top: 2rem;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--white);
  border-radius: 3px;
  animation: preloaderBarMove 1s ease-in-out infinite;
}

@keyframes preloaderBarMove {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(350%);
  }
}

/* --- SUBTLE TILT EFFECT --- */
.tilt-effect {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
}

/* --- CUSTOM CURSOR (SUBTLE) --- */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: difference;
}

.custom-cursor.visible {
  opacity: 0.6;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: rgba(45, 106, 79, 0.2);
}

.custom-cursor.clicking {
  transform: translate(-50%, -50%) scale(0.8);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

/* --- ENHANCED LINK HOVER --- */
.nav-link,
.footer-col ul li a,
.breadcrumb a {
  position: relative;
  display: inline-block;
}

.nav-link::after,
.footer-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.footer-col ul li a:hover::after {
  width: 100%;
}

/* --- SMOOTH REVEAL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- CARD SHINE EFFECT (SUBTLE) --- */
.service-card::after,
.pricing-card::after,
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transition: left 0.5s ease;
}

.service-card:hover::after,
.pricing-card:hover::after,
.gallery-item:hover::after {
  left: 100%;
}

/* --- FLOATING ANIMATION --- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* --- GRADIENT TEXT --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- GLOW EFFECT ON FOCUS --- */
.btn:focus,
.filter-btn:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.3);
}

/* --- SMOOTH PAGE TRANSITIONS (ENHANCED) --- */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  pointer-events: none;
}

.page-transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

.page-transition-overlay::before {
  content: '';
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

[data-theme="dark"] .page-transition-overlay {
  background: linear-gradient(135deg, #0d1b0f 0%, var(--primary-dark) 100%);
}

/* --- 3D CARD EFFECTS (ENHANCED) --- */
.service-card,
.pricing-card,
.team-card,
.value-card,
.gallery-item,
.testimonial-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.service-card::after,
.pricing-card::after,
.team-card::after,
.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(-20px);
  width: 80%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-card:hover::after,
.pricing-card:hover::after,
.team-card:hover::after,
.value-card:hover::after {
  opacity: 1;
}

/* 3D tilt glow effect */
.tilt-effect {
  --glow-x: 50%;
  --glow-y: 50%;
}

.tilt-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y),
      rgba(82, 183, 136, 0.15) 0%,
      transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.tilt-effect:hover::before {
  opacity: 1;
}

/* Floating animation for featured cards */
.service-card.featured,
.pricing-card.featured {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ===========================================
   MOBILE-FIRST RESPONSIVE BREAKPOINTS
   320px, 480px, 768px, 1024px, 1280px
   =========================================== */

/* --- ACCESSIBILITY: FOCUS STATES (WCAG AA) --- */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Remove default outline since we use focus-visible */
*:focus {
  outline: none;
}

/* --- BASE MOBILE STYLES (< 480px) --- */
@media (max-width: 479px) {
  :root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Hero mobile */
  .hero-content {
    width: 100%;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Gallery: 1 kolumna */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .gallery-item img {
    height: 220px;
  }

  /* Services: 1 kolumna */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Form inputs: min 48px height dla dotyku */
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px;
    font-size: 16px;
    /* Zapobiega zoom na iOS */
    padding: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  /* Buttons */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
  }

  /* Section spacing */
  section {
    padding: var(--spacing-lg) 0;
  }

  .section-header {
    margin-bottom: var(--spacing-lg);
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }

  /* Stats */
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Hamburger menu improvements */
  .nav-menu {
    top: 60px;
    padding: var(--spacing-sm);
  }

  .nav-link {
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  /* CTA section */
  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  /* Filter buttons */
  .gallery-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: var(--spacing-md);
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* Contact */
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .contact-form {
    padding: var(--spacing-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Contact info centering on mobile */
  .contact-info {
    text-align: center;
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Featured pricing card - remove scale on mobile */
  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }

  /* Rating badge - vertical layout on mobile */
  .rating-badge {
    flex-direction: column;
    gap: 0.75rem;
  }

  .rating-number {
    font-size: 2.5rem;
  }

  /* Testimonial author - fix overflow caused by negative margins */
  .testimonial-author {
    margin: 1rem -1rem -1rem -1rem;
    padding: 1rem;
  }

  /* Newsletter form in footer - stack vertically */
  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }
}

/* --- SMALL MOBILE (320px - 479px) --- */
@media (max-width: 359px) {
  /* ======================================
     EKSTREMALNIE MAŁE EKRANY - FULL FIX
     ====================================== */

  /* Globalny overflow fix */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Kontener - mniejsze paddingi */
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Sekcje */
  section {
    padding: 2rem 0;
    overflow-x: hidden;
  }

  /* Hero */
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }

  .hero-content {
    padding: 0 0.5rem;
  }

  .hero-buttons {
    padding: 0 0.25rem;
    gap: 0.75rem;
  }

  /* Navbar */
  .nav-logo span {
    font-size: 1.1rem;
  }

  .nav-logo i {
    font-size: 1.3rem;
  }

  /* Section headers */
  .section-header {
    padding: 0 0.25rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem !important;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .section-tag {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .section-description {
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 0 0.25rem;
  }

  /* Buttons */
  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.825rem;
    width: 100%;
    text-align: center;
  }

  /* Service cards */
  .service-card {
    padding: 1rem;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-icon {
    width: 45px;
    height: 45px;
  }

  .service-icon i {
    font-size: 1.1rem;
  }

  .service-features li {
    font-size: 0.8rem;
  }

  /* Contact items */
  .contact-items-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .contact-item {
    padding: 0.75rem;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-icon i {
    font-size: 0.9rem;
  }

  .contact-item h4 {
    font-size: 0.8rem;
  }

  .contact-item p {
    font-size: 0.75rem;
    word-break: break-all;
  }

  /* CTA section */
  .cta-content h2 {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .cta-content p {
    font-size: 0.85rem;
  }

  .cta-buttons {
    gap: 0.5rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0 1rem;
  }

  .footer-col h4 {
    font-size: 0.95rem;
  }

  .footer-col ul li,
  .footer-col p {
    font-size: 0.8rem;
  }

  .footer-contact li {
    font-size: 0.75rem;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }

  .social-links a i {
    font-size: 0.9rem;
  }

  /* Gallery */
  .gallery-grid {
    gap: 0.75rem;
  }

  .gallery-item img {
    height: 180px;
  }

  .gallery-overlay h4 {
    font-size: 0.9rem;
  }

  .gallery-overlay p {
    font-size: 0.75rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 0.875rem;
  }

  .testimonial-text {
    font-size: 0.8rem;
  }

  .rating-badge {
    padding: 0.75rem;
  }

  .rating-number {
    font-size: 2rem;
  }

  /* Process steps */
  .process-step {
    padding: 0.875rem;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .process-step h4 {
    font-size: 0.95rem;
  }

  .process-step p {
    font-size: 0.8rem;
  }

  /* Pricing cards */
  .pricing-card {
    padding: 1rem;
  }

  .pricing-price {
    font-size: 1.75rem;
  }

  .pricing-features li {
    font-size: 0.8rem;
    padding: 0.35rem 0;
  }

  /* FAQ */
  .accordion-header {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }

  .accordion-body {
    font-size: 0.8rem;
    padding: 0 1rem 0.875rem;
  }

  /* Page hero (subpages) */
  .page-hero .hero-title {
    font-size: 1.5rem;
  }

  .page-hero .hero-subtitle,
  .page-hero .hero-content p {
    font-size: 0.85rem;
  }

  .breadcrumb {
    font-size: 0.75rem;
  }

  /* Scroll to top */
  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }
}

/* --- LARGE MOBILE / SMALL TABLET (480px - 767px) --- */
@media (min-width: 480px) and (max-width: 767px) {
  :root {
    --spacing-md: 1.25rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  /* Gallery: 2 kolumny */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- TABLET (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  /* Gallery: 2-3 kolumny */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- SMALL DESKTOP (1024px - 1279px) --- */
@media (min-width: 1024px) and (max-width: 1279px) {

  /* Gallery: 3 kolumny */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- LARGE DESKTOP (1280px+) --- */
@media (min-width: 1280px) {

  /* Gallery: 4 kolumny */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 4.5rem;
  }
}

/* --- HAMBURGER MENU ANIMATION ENHANCEMENT --- */
.nav-toggle {
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger {
  width: 24px;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: inherit;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* X animation when active */
.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--dark);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: var(--dark);
}

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
  background-color: var(--dark);
}

.navbar.scrolled .nav-toggle.active .hamburger {
  background-color: transparent;
}

@media (max-width: 768px) {

  /* Mobile navbar layout: [theme-toggle] [logo centered] [hamburger] */
  .nav-container {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 0;
  }

  /* Mobile theme toggle - shown on left */
  .mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: center;
    order: 1;
  }

  .mobile-theme-toggle .theme-toggle {
    position: static;
    margin: 0;
  }

  /* Logo centered */
  .nav-logo {
    order: 2;
    justify-content: center;
    font-size: 1.25rem;
  }

  .nav-logo-svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  /* Hamburger on right */
  .nav-toggle {
    display: flex;
    order: 3;
    justify-content: center;
    align-items: center;
    align-self: center;
  }

  /* Hide desktop theme toggle on mobile */
  .nav-container>.theme-toggle {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    background-color: var(--white);
    padding: 80px var(--spacing-md) var(--spacing-md);
    box-shadow: var(--shadow-xl);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    color: var(--dark);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 1.1rem;
    display: block;
  }

  .nav-link::after {
    display: none;
  }
}

/* --- CUSTOM CHECKBOX STYLING --- */
.consent-group {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  position: relative;
  padding: 1rem;
  background: rgba(45, 106, 79, 0.03);
  border: 1px solid rgba(45, 106, 79, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.custom-checkbox:hover {
  background: rgba(45, 106, 79, 0.06);
  border-color: rgba(45, 106, 79, 0.2);
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.checkbox-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.checkbox-mark i {
  color: var(--white);
  font-size: 12px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover state */
.custom-checkbox:hover .checkbox-mark {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* Checked state */
.custom-checkbox input[type="checkbox"]:checked+.checkbox-mark {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
  box-shadow: 0 3px 12px rgba(45, 106, 79, 0.35);
}

.custom-checkbox input[type="checkbox"]:checked+.checkbox-mark i {
  opacity: 1;
  transform: scale(1);
}

/* Ripple effect on check */
.custom-checkbox input[type="checkbox"]:checked+.checkbox-mark::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: checkRipple 0.4s ease-out;
}

@keyframes checkRipple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Focus state for accessibility */
.custom-checkbox input[type="checkbox"]:focus+.checkbox-mark {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--gray-dark);
  line-height: 1.6;
  padding-top: 2px;
}

.checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.checkbox-label a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.checkbox-label a:hover {
  color: var(--secondary-color);
}

.checkbox-label a:hover::after {
  width: 100%;
}

/* Dark mode support */
[data-theme="dark"] .custom-checkbox {
  background: rgba(82, 183, 136, 0.05);
  border-color: rgba(82, 183, 136, 0.15);
}

[data-theme="dark"] .custom-checkbox:hover {
  background: rgba(82, 183, 136, 0.1);
  border-color: rgba(82, 183, 136, 0.25);
}

[data-theme="dark"] .checkbox-mark {
  background: var(--dark);
  border-color: var(--gray);
}

[data-theme="dark"] .checkbox-label {
  color: var(--gray-light);
}

[data-theme="dark"] .checkbox-label a {
  color: var(--secondary-color);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid var(--primary-color);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 300px;
}

.cookie-icon {
  font-size: 2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.cookie-banner-text h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.cookie-banner-text p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Cookie przyciski */
.cookie-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-color: var(--primary-color);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--gray-dark);
  border-color: var(--gray-light);
}

.cookie-btn-reject:hover {
  border-color: var(--gray);
  background: var(--light);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.cookie-btn-settings:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: var(--white);
  border-radius: 16px;
  max-width: 550px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-modal-overlay.visible .cookie-modal {
  transform: scale(1) translateY(0);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-light);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.cookie-modal-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.cookie-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cookie-modal-body {
  padding: 1.5rem;
  max-height: 50vh;
  overflow-y: auto;
}

.cookie-modal-intro {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cookie-category {
  background: var(--light);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-category-info h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-category-info h4 i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.cookie-category-info p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.4;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-light);
  transition: 0.3s;
  border-radius: 28px;
}

.cookie-toggle-slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked+.cookie-toggle-slider {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.cookie-toggle input:checked+.cookie-toggle-slider::before {
  transform: translateX(22px);
}

.cookie-toggle.disabled .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle.disabled input:checked+.cookie-toggle-slider {
  background: var(--gray);
}

.cookie-modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-light);
  background: var(--light);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Responsywność */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.25rem;
  }

  .cookie-banner-text {
    flex-direction: column;
    align-items: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dark mode */
[data-theme="dark"] .cookie-banner {
  background: var(--dark);
  border-top-color: var(--secondary-color);
}

[data-theme="dark"] .cookie-banner-text h3 {
  color: var(--white);
}

[data-theme="dark"] .cookie-banner-text p {
  color: var(--gray-light);
}

[data-theme="dark"] .cookie-btn-reject {
  color: var(--gray-light);
  border-color: var(--gray);
}

[data-theme="dark"] .cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cookie-modal {
  background: var(--dark);
}

[data-theme="dark"] .cookie-modal-body {
  color: var(--gray-light);
}

[data-theme="dark"] .cookie-category {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cookie-category-info h4 {
  color: var(--white);
}

[data-theme="dark"] .cookie-modal-footer {
  background: rgba(255, 255, 255, 0.05);
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* ===========================================
   GLOBAL MOBILE SPACING FIX - FINAL OVERRIDE
   =========================================== */

/* Wszystkie sekcje - więcej oddechu na mobile */
@media (max-width: 768px) {

  /* Globalny kontener - wymuszone wartości */
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Wszystkie sekcje - pionowy padding */
  section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 1.75rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  /* About section */
  .about-section .container,
  .services-section .container,
  .gallery-section .container,
  .contact-section .container,
  .process-section .container,
  .faq-section .container,
  .pricing-section .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Services grid - poprawne marginesy */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    margin-left: 0;
    margin-right: 0;
  }

  .service-card {
    margin-left: 0;
    margin-right: 0;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  /* About content */
  .about-content {
    gap: 1.5rem;
  }

  .about-text {
    padding: 0 0.25rem;
  }

  /* Process steps */
  .process-steps {
    gap: 1rem;
  }

  .process-step {
    padding: 1.25rem;
  }

  /* CTA section */
  .cta-section .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Footer spacing */
  .footer .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .footer-content {
    gap: 1.75rem;
  }

  .footer-col {
    text-align: center;
    padding: 0 0.5rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .about-section .container,
  .services-section .container,
  .gallery-section .container,
  .contact-section .container,
  .process-section .container,
  .faq-section .container,
  .pricing-section .container,
  .cta-section .container,
  .footer .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Mniejsze paddingi dla kart */
  .service-card {
    padding: 1.25rem;
  }

  .process-step {
    padding: 1rem;
  }

  /* Hero content */
  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-buttons {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* --- PRINT STYLES --- */
@media print {

  .navbar,
  .footer,
  .scroll-to-top,
  .preloader,
  .cookie-banner,
  .cookie-modal-overlay {
    display: none !important;
  }

  * {
    background: white !important;
    color: black !important;
  }
}
