/* =========================================
   GRID KAFELI – GŁÓWNE KATEGORIE OFERTY
   (1:1 jak CO PRODUKUJEMY na home)
   ========================================= */

.offer-grid {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: #f3f4f6; /* tak jak products-section */
}

.offer-grid__header {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: left;
}

.offer-grid__kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280; /* zbliżone do products-lead (#4b5563) */
  margin-bottom: 0.4rem;
}

.offer-grid__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: #020617;
}

.offer-grid__subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4b5563;
}

/* GRID – jak products-grid */

.offer-grid__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* na bardzo szerokich ekranach – 3 kolumny (już jest, ale zostawiamy) */
@media (min-width: 1600px) {
  .offer-grid__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* tablet / małe laptopy – 1 kolumna (jak products-grid) */
@media (max-width: 1024px) {
  .offer-grid__items {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ============================
   KARTA OFERTY – jak product-card
   ============================ */

.offer-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  min-height: clamp(360px, 32vw, 460px);
  background: #020617;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.35);
  color: #f9fafb;
  cursor: pointer;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out;
}

.offer-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Zdjęcie w tle – odpowiednik .product-card__image */

.offer-card__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.offer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.1);
  transform: scale(1.04);
  opacity: 0.6;
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    filter 0.4s ease-out;
}

/* Gradient + lekkie przyciemnienie od dołu – jak product-card */

.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(15, 23, 42, 0.96) 0%,
      rgba(15, 23, 42, 0.35) 55%,
      transparent 100%),
    radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.28),
      transparent 55%);
  mix-blend-mode: multiply;
}

/* Overlay – treść przyklejona do dołu, jak .product-card__overlay */

.offer-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 2.1rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Numer – jak product-card__index */

.offer-card__badge {
  display: block;
  font-size: 3.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.3rem;
}

/* Tytuł – jak product-card__title */

.offer-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Opis – jak product-card__text */

.offer-card__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* Link – jak product-card__link */

.offer-card__cta {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #38bdf8;
  text-decoration: none;
}

.offer-card__cta::after {
  content: " ›";
}

/* HOVER – powiększenie zdjęcia + cień + podbicie koloru linku */

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.5);
}

.offer-card:hover .offer-card__media img {
  transform: scale(1.08);
  opacity: 0.85;
  filter: grayscale(0.4) contrast(1.05);
}

.offer-card:hover .offer-card__cta {
  color: #60a5fa;
}

/* zdjęcie w tle – ciemniejsze, żeby tekst był czytelniejszy */
.offer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.9);
  transform: scale(1.04);
  opacity: 0.45; /* BYŁO 0.6 – mniej przebija */
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out,
    filter 0.4s ease-out;
}

/* mocniejszy gradient pod tekstem */
.offer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(15, 23, 42, 0.98) 0%,
      rgba(15, 23, 42, 0.75) 45%,
      rgba(15, 23, 42, 0.35) 70%,
      transparent 100%
    ),
    radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.30),
      transparent 55%);
  mix-blend-mode: multiply;
}

/* overlay z treścią */
.offer-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 2.2rem 2.4rem 2.1rem;
  display: flex;
  flex-direction: column;
}


/* tytuł – większy, bardziej „biały” */
.offer-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f9fafb;
  text-shadow: 0 12px 35px rgba(15, 23, 42, 0.9);
}

/* opis – jaśniejszy + lekki cień, żeby był nad zdjęciem */
.offer-card__text {
  margin: 0;
  margin-top: auto;              /* dociska opis do dołu karty */
  font-size: 0.98rem;
  line-height: 1.7;
  color: #f9fafb;
  text-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
}

/* CTA – trochę większe i jaśniejsze */
.offer-card__cta {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
  text-decoration: none;
  text-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
}

.offer-card__cta::after {
  content: " ›";
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.18s ease;
}

/* hover zostaje ten sam, tylko korzysta z nowych wartości */
.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.5);
}

.offer-card:hover .offer-card__media img {
  transform: scale(1.08);
  opacity: 0.8;
  filter: grayscale(0.4) contrast(1.05);
}

.offer-card:hover .offer-card__cta {
  color: #bfdbfe;
}

.offer-card:hover .offer-card__cta::after {
  transform: translateX(3px);
}