.szybkie-linki {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.row {
  display: grid;
  justify-content: center;
  gap: 16px;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.row-8 {
  grid-template-columns: repeat(8, 90px);
  padding-top: 2%;
}

.row-7 {
  grid-template-columns: repeat(7, 90px);
}

/* LINK jako kafelek */
.item {
  position: relative;
  display: block;
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* animacja hover */
.item:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

/* tooltip */
.item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);   /* odstęp nad obrazkiem */
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  transform-origin: bottom center;

  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.3;

    max-width: 180px;           /* 🔑 kluczowe */
  text-align: center;
  white-space: normal;        /* 🔑 pozwala na drugi rząd */
  word-wrap: break-word;

  opacity: 0;
  pointer-events: none;
  z-index: 20;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.item::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0,0,0,0.85);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.item:hover::before {
  opacity: 1;
}

.item:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}


/* RESPONSYWNOŚĆ */
/* TABLET */
@media (max-width: 1100px) {
  .row-8,
  .row-7 {
    grid-template-columns: repeat(4, 90px);
  }
}

/* MOBILE – JEDEN WSPÓLNY GRID */
@media (max-width: 700px) {
  .rows {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    gap: 16px;
    justify-content: center;
  }

  .row {
    display: contents;
  }

    .item::after {
    max-width: 140px;
  }
}


@media (max-width: 700px) {
  .rows {
    display: grid;
    grid-template-columns: repeat(3, 90px);
    gap: 16px;
    justify-content: center;
  }

  .row {
    display: contents;
  }

    .item::after {
    max-width: 140px;
  }
}

