.process-steps {
  padding: 20px 0;
  background: #fff;
  overflow: visible; /* Pozwalamy na breakout */
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible; /* Pozwalamy na breakout */
}

/* Navigation */
/* NOWE: pełny bleed do krawędzi ekranu */
.process-steps__nav-bleed {
  position: relative;
  /* trik 100vw: wyprowadzamy element poza .container po obu stronach */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  /* opcjonalnie: zablokuj „przycinanie" rodziców */
  overflow: visible;
}

/* SCROLLER – tu zostaje przewijanie! */
.process-steps__nav {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;     /* 1) Wspólna linia dołu dla wszystkich elementów */
  gap: 0;
  margin: 0 auto 60px;         /* zwykły margines, bez negatywów */
  padding: 0 20px;              /* wewnętrzne odsunięcie */
  flex-wrap: nowrap;
  position: relative;
  overflow-x: auto;             /* MUSI zostać, żeby działał scrollLeft */
  overflow-y: hidden;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
  scroll-behavior: smooth;
}

/* ukrycie paska przewijania w WebKit (opcjonalnie) */
.process-steps__nav::-webkit-scrollbar { display: none; }

.process-steps__nav-item,
.process-steps__nav-arrow {
  display: flex;
  align-items: center;     /* pionowe wyśrodkowanie względem tekstu */
  justify-content: center;
  line-height: 1;          /* żeby nie puchło od linii tekstu */
}

.process-steps__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 120px;
  margin: 0 15px;
  flex-shrink: 0;
  border-radius: 8px;
  /* Efekt "wychodzenia" z prawej strony */
  transform: translateX(0);
  opacity: 1;
}

/* Efekt dla elementów, które "wychodzą" z prawej strony */
.process-steps__nav-item:nth-child(n+4) {
  animation: slideInFromRight 0.8s ease-out forwards;
  transform: translateX(50px);
  opacity: 0;
}

@keyframes slideInFromRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

h3.process-steps__heading {
  font-weight: 400;
  color: var(--color-science-blue);
}

.process-steps__nav-svg svg {
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-black);
  border-radius: 500px;
  padding: 9px;
}
.process-steps__nav-item.active svg {
  fill: var(--color-science-blue);
}

.process-steps__nav-number {
  width: 70px;
  height: 70px;
  padding: 9px;                 /* taki sam „oddech" jak w svg */
  border: 2px solid var(--color-black);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;           /* jak w .process-steps__nav-svg */
  font-family: var(--typography-family-main);
  font-size: 2.5rem;             /* spójne z wcześniejszym rozmiarem */
  line-height: 1;
  color: var(--color-black);     /* domyślnie czarny */
}

.process-steps__nav-item.active .process-steps__nav-number {
  background: #fff;
  border-color: var(--color-black);  /* zachowaj obramowanie jak w svg */
  color: var(--color-science-blue);
}

.process-steps__nav-svg {
  width: 70px;
  height: 70px;
  margin-bottom: 30px;          /* 2) Usuń sztuczne podnoszenie kółka */
}

.process-steps__nav-svg svg {
  width: 100%;
  height: 100%;
}

.process-steps__nav-title {
  font-size: 1.9em;
  text-align: center;
  line-height: 1.15;         /* 4) dopnij tytuły, żeby nie puchły */
  font-weight: var(--typography-weight-regular);
  font-family: var(--typography-family-secondary);
  margin: 0;                 /* 4) dopnij tytuły, żeby nie puchły */
}
.process-steps__nav-arrow {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 28px 15px;
}
.process-steps__nav-arrow svg {
  width: 28px;
  height: 28px;
  margin: 0;
  transform: translateY(2px); /* 3) subtelna korekta optyczna */
}

/* Swiper Content */
.process-steps__swiper-container {
  position: relative;
}

.process-steps__swiper {
  min-height: 400px;
  cursor: grab;
}

.process-steps__swiper:active {
  cursor: grabbing;
}

/* Visual indicators for swipe functionality */
.process-steps__swiper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show swipe indicator on mobile */
@media (max-width: 768px) {
  .process-steps__swiper::before {
    opacity: 0;
  }
  
  .process-steps__swiper-container::after {
    content: '← Przesuń palcem →';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    z-index: 10;
    pointer-events: none;
    animation: fadeInOut 3s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

/* Show keyboard indicator on desktop */
@media (min-width: 769px) {
  .process-steps__swiper-container::after {
    content: '← → Użyj strzałek klawiatury';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    z-index: 10;
    pointer-events: none;
    animation: fadeInOut 3s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Swiper Navigation Buttons - positioned on sides */
.process-steps__nav-next,
.process-steps__nav-prev {
  color: var(--color-science-blue);
  width: 40px;
  height: 40px;
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.process-steps__nav-next:after,
.process-steps__nav-prev:after {
  font-size: 20px;
  font-weight: bold;
}

.process-steps__nav-next {
  right: -60px;
}

.process-steps__nav-prev {
  left: -60px;
}

.process-steps__content-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0;
}

.process-steps__heading {
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.process-steps__description {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.process-steps__image {
  text-align: center;
}

.process-steps__img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .process-steps__nav {
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 10px 0 0;
    margin-left: -10px;
    width: calc(100% + 10px);
  }
  
  .process-steps__nav-item {
    padding: 15px 20px;
    min-width: 100px;
    margin: 0 8px;
    /* Better touch targets for mobile */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .process-steps__nav-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .process-steps__nav-title {
    font-size: 1rem;
  }
  
  .process-steps__nav-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  .process-steps__content-item {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0;
  }
  
  /* Hide navigation arrows on mobile to encourage swipe */
  .process-steps__nav-next,
  .process-steps__nav-prev {
    display: none;
  }
  
  /* Add very subtle shadow to indicate swipeable content */
  .process-steps__swiper {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .process-steps__nav-item {
    padding: 12px 15px;
    min-width: 80px;
    margin: 0 5px;
  }
  
  .process-steps__nav-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .process-steps__nav-title {
    font-size: 0.9rem;
  }
  
  .process-steps__nav-arrow svg {
    width: 16px;
    height: 16px;
  }
  
  .process-steps__content-item {
    gap: 20px;
    padding: 15px 0;
  }
  
  .process-steps__heading {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .process-steps__description {
    font-size: 14px;
  }
}

/* Extra small mobile */
@media (max-width: 360px) {
  .process-steps__nav-item {
    padding: 10px 12px;
    min-width: 70px;
    margin: 0 3px;
  }
  
  .process-steps__nav-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .process-steps__nav-title {
    font-size: 0.8rem;
  }
  
  .process-steps__heading {
    font-size: 24px;
  }
  
  .process-steps__description {
    font-size: 13px;
  }
}