
.container {
  margin: 0 auto;
  padding-top: 0px;
  max-width: 1000px;
}

.oferta {
  font-family: 'Cormorant Garamond';
  font-size: 100px;
  font-style: italic;
  font-weight: 100;
  margin-bottom: 30px;
}

.description{
  text-align: justify;
  font-size: 20px;
  max-width: 100%;
  margin: 0 auto 30px;
}

.description1 {
  text-align: center;
  font-size: 20px;
  max-width: 100%;
  margin-top: 20px;
}

/*--------------------------------------------------------------------------------------------------------*/

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0px;
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: white;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.tile img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.tile img.hover {
  opacity: 0;
}

.tile:hover img.hover {
  opacity: 1;
}

.tile:hover img.default {
  opacity: 0;
}

.tile span {
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center; /* wyrównanie kafelków na środku */
    gap: 20px;
    max-width: 700px; /* pozwala smooth centrować */
  }

  .tile {
    margin: 0 auto;    /* centrowanie elementu */
    width: 100%;       /* pełna szerokość w kolumnie */
  }
}

/* 1 kafelek w rzędzie — TELEFON < 600px */
@media (max-width: 500px) {
  .service-grid {
    grid-template-columns: 1fr;
    max-width: 350px; /* węższa siatka, ale się nie chowa */
  }

  .tile {
    width: 100%;
    margin: 0 auto;
  }
}
