.oferta_sekcja_wrapper {
  width: 100%;
  position: relative;
  transition: all 0.5s ease;
}

/* SIATKA DOMYŚLNA */
.oferta_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.oferta_kafelek {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Lekki, elegancki cień */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.oferta_kafelek:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Głębszy cień po najechaniu */
}

.kafelek_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #002a544d;
  z-index: 1;
  transition: background 0.3s ease;
}

.oferta_kafelek h3, .detale_lewo h3 {
  color: #ffffff !important;
  position: relative;
  z-index: 2;
  margin: 0;
  text-align: center;
  padding: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* WIDOK DETALI */
.oferta_detale {
  display: none;
  opacity: 0;
  gap: 30px;
  width: 100%;
  align-items: stretch; /* Klucz do równej wysokości lewej i prawej strony */
  transition: opacity 0.5s ease;
}

.detale_lewo {
  flex: 0 0 350px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer; /* Zmienia kursor sugerując opcję kliknięcia */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detale_lewo:hover .kafelek_overlay {
  background: rgb(21 43 95 / 53%);
}

.detale_prawo {
  flex: 1;
  display: flex; /* Pozwala białemu oknu dopasować się do wysokości */
	width: 100% !important;
}

.modal_box {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Wyśrodkowuje tekst w pionie */
}

.modal_close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 26px;
  cursor: pointer;
  color: #888888;
  transition: color 0.3s ease, transform 0.3s ease;
}

.modal_close:hover {
  color: #111111;
  transform: rotate(90deg); /* Drobny detal animacyjny */
}

#detale_tytul_h3 {
  color: #0883C6 !important; /* Zmiana koloru na wybrany niebieski */
  margin-top: 0;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.modal_box ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.modal_box li {
  margin-bottom: 12px;
  line-height: 1.6;
  opacity: 0; /* Przygotowanie do animacji wejścia */
}

.modal_box p {
  font-weight: bold;
  margin-bottom: 15px;
  margin-top: 0;
}

/* Animacja kaskadowa punktów */
@keyframes wjazdElementu {
  from {
    opacity: 0;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RESPONSYWNOŚĆ DLA URZĄDZEŃ MOBILNYCH I TABLETÓW */
@media (max-width: 1024px) {
  .oferta_grid { grid-template-columns: repeat(2, 1fr); }
  .detale_lewo { flex: 0 0 280px; }
}

@media (max-width: 768px) {
  .oferta_detale { flex-direction: column; align-items: center; }
  .detale_lewo { flex: none; width: 100%; height: 200px; } /* Na telefonie górny kafelek musi mieć sztywną wysokość */
  .modal_box { padding: 25px; }
	.oferta_kafelek { max-height: 240px !important; width: 100% !important }
}

@media (max-width: 480px) {
  .oferta_grid { grid-template-columns: 1fr; }
}