.kompresor {
  width: 100%;
  margin: 40px 0;
  font-family: Arial, sans-serif;
}

.kompresor__header {
  text-align: center;
  margin-bottom: 30px;
}

.kompresor__title {
  font-size: 3.6rem;
  font-weight: bold;
  color: #4b3f6b;
}

.kompresor__slider-wrapper {
  display: flex;
  justify-content: flex-start;
}

.kompresor__slider {
  position: relative;
  width: 600px;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(75, 63, 107, 0.1);
  background-color: #fff;
  margin-left: 40px; /* tylko slider ma margines */
}

.kompresor__images {
  width: 100%;
  height: 100%;
  position: relative;
}

.kompresor__images img {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.kompresor__images img.active {
  opacity: 1;
  z-index: 1;
}

/* Strzałki */
.kompresor__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  font-size: 3rem;
  color: #4b3f6b;
  cursor: pointer;
  z-index: 3;
  user-select: none;
  padding: 0 10px;
  margin-right: 40px;
}

.kompresor__arrow--left {
  left: 5px;
}

.kompresor__arrow--right {
  right: 5px;
}

.kompresor__arrow:hover {
  color: #333;
}

.atmos {
  display: flex;
  gap: 40px;
  margin: 40px auto;
  max-width: 1200px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.atmos__images img {
  max-width: 600px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.atmos__tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.atmos__tab-buttons {
  display: flex;
  border-bottom: 3px solid #ccc;
  background-color: #f5f3fa;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 -3px 5px -3px rgba(120, 81, 160, 0.4);
}

.tab-button {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 4px solid transparent;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  color: #6a5495;
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
  border-radius: 8px 8px 0 0;
}

.tab-button:not(.active):hover {
  color: #9677c3;
  background-color: #ebe9f7;
}

.tab-button.active {
  border-bottom-color: #7c63b8;
  color: #7c63b8;
  background-color: #ebe9f7;
  box-shadow: 0 -4px 8px rgba(124, 99, 184, 0.3);
}

.atmos__tab-content {
  padding: 30px 20px;
  background: #f9f8fc;
  border-radius: 0 0 8px 8px;
  min-height: 280px;
  font-size: 1.1rem;
  color: #4b3f6b;
  box-shadow: 0 4px 12px rgba(124, 99, 184, 0.1);
}

.tab-content {
  display: none;
  line-height: 1.6;
}

.tab-content.active {
  display: block;
}

.atmos__tab-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 1rem;
  color: #4b3f6b;
}

.atmos__tab-content th,
.atmos__tab-content td {
  border: 1px solid #c7c1dc;
  padding: 10px;
  text-align: center;
  background-color: #f2eff9;
}

.atmos__tab-content th {
  background-color: #dcd6f7;
  font-weight: 700;
}

.atmos__tab-content ul {
  margin-top: 15px;
  padding-left: 22px;
  list-style-type: disc;
  color: #6b5e8c;
  font-weight: 500;
}

.kompresor__content-wrapper {
  display: flex;
  gap: 0px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 20px;
}

.kompresor__slider-wrapper {
  display: flex;
  justify-content: flex-start;
}

.kompresor__slider {
  margin-right: 40px;
  width: 600px;
  height: 400px;
}

.kompresor__text-wrapper {
  flex: 1;
  font-size: 1.2rem;
  line-height: 1.5;
  word-spacing: 0.25em;
  color: #4b3f6b;
  margin-right: 40px;
}

.broszura-button {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #6a5495;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.broszura-button:hover {
  background-color: #4b3f6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* Contact section styles - kept as is */
.contact-expert-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 5%;
  background-color: #f7f7f7;
}

.contact-text {
  flex: 1;
  text-align: left;
}

.contact-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.contact-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #555;
}

.whatsapp-link {
  display: inline-block;
  background-color: #25d366;
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.whatsapp-link:hover {
  background-color: #128c7e;
}

.contact-image {
  text-align: center;
  flex: 1;
  margin-top: 60px;
}

.contact-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  font-size: 24px;
  margin-top: 5px;
  font-weight: bold;
}

.subtitle {
  font-size: 18px;
  margin-bottom: 5px;
  color: #888;
}

.contact-info {
  font-size: 18px;
  color: #333;
}

.contact-info a {
  color: #0066cc;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* RESPONSYWNOŚĆ */

/* Tablet (do 900px) */
@media (max-width: 900px) {
  .kompresor__content-wrapper {
    flex-direction: column;
  }
  .kompresor__slider-wrapper,
  .kompresor__text-wrapper {
    flex: 1 1 100%;
    margin-right: 0 !important;
  }
  .kompresor__slider {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 3 / 2;
    margin-left: 0;
    margin-bottom: 20px;
  }
  .kompresor__arrow {
    font-size: 2.5rem;
    margin-right: 10px;
  }
  .kompresor__title {
    font-size: 2.8rem;
  }
  .kompresor__text-wrapper {
    font-size: 1.1rem;
  }
  .atmos {
    flex-direction: column;
    gap: 20px;
    max-width: 90%;
  }
  .atmos__images img {
    max-width: 100%;
    height: auto;
  }
}

/* Mobile (do 480px) */
@media (max-width: 480px) {
  .kompresor__title {
    font-size: 2.2rem;
  }
  .kompresor__slider {
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .kompresor__arrow {
    font-size: 2rem;
    margin-right: 5px;
  }
  .kompresor__text-wrapper {
    font-size: 1rem;
    margin-right: 0;
    padding: 0 10px;
  }
  .atmos__tab-buttons {
    flex-direction: column;
  }
  .tab-button {
    font-size: 1.2rem;
    padding: 12px 10px;
  }
  .contact-expert-section {
    flex-direction: column;
    padding: 30px 5%;
  }
  .contact-image {
    margin-top: 30px;
  }
}
@media (max-width: 900px) {
  .kompresor__slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 0 auto 20px;
  }

  .kompresor__images {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .kompresor__images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
  }

  .kompresor__images img.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
  }

  .kompresor__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    z-index: 3;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.4em 0.6em;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
  }

  .kompresor__arrow--left {
    left: 10px;
  }

  .kompresor__arrow--right {
    right: 10px;
  }
}

