/* =========================================================
   OFFER
   Sekcja "Oferta" + kafle (szkolenia i spływy)
   ========================================================= */

/* =========================================================
   1) Sekcja i layout
   ========================================================= */

.offer {
  padding: 32px 0;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.05);
  background: linear-gradient(
    to bottom,
    #e6ebf0 0%,
    #e6ebf0 65%,
    #dde3e8 100%
  );
}

.offer__wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.offer__inner {
  max-width: var(--offer-max, 1200px);
  margin: 0 auto;
}

.offer__block {
  margin-top: 32px;
}

.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 12px;
}

/* =========================================================
   2) Header sekcji
   ========================================================= */

.offer__header {
  margin-bottom: 12px;
}

.offer__header::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 16px;
  background: rgba(15, 23, 42, 0.18);
  border-radius: 2px;
}

.offer__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 2.4vw, 40px);
  letter-spacing: -0.02em;
}

.offer__lead {
  margin: 0;
  max-width: 52ch;
  opacity: 0.85;
}

/* =========================================================
   3) Tytuły bloków: "Szkolenia", "Spływy"
   ========================================================= */

.offer__block-title {
  margin: 0 0 16px;
}

/* =========================================================
   4) Kafel (card)
   ========================================================= */

.offer-card {
  position: relative;
  display: block;
  text-decoration: none;
  cursor: pointer;

  overflow: hidden;
  border-radius: 4px;
  transform: translateZ(0);

  box-shadow: 0 10px 24px rgba(12, 18, 28, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.offer-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
}

.offer-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: scale(1);
  transition: transform 260ms ease;
}

.offer-card__media::after {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(10, 14, 22, 0);
  transition: background-color 180ms ease;

  pointer-events: none;
}

.offer-card__content {
  position: absolute;
  inset: 0;

  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;

  color: #fff;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0.00) 100%
  );
}

.offer-card__tag {
  display: inline-block;
  margin-bottom: 6px;

  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.offer-card__title {
  margin: 0;

  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;

  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.95;
  max-width: 42ch;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 3.2em;
  transition: transform 180ms ease;
}

.offer-card__cta {
  position: absolute;
  bottom: 7px;
  right: 20px;

  font-size: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

/* =========================================================
   5) Hover / focus
   ========================================================= */

.offer-card:hover,
.offer-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(12, 18, 28, 0.14);
}

.offer-card:hover .offer-card__img,
.offer-card:focus-within .offer-card__img {
  transform: scale(1.03);
}

.offer-card:hover .offer-card__media::after,
.offer-card:focus-within .offer-card__media::after {
  background: rgba(10, 14, 22, 0.22);
}

.offer-card:hover .offer-card__desc {
  transform: translateY(-10px);
}

.offer-card:hover .offer-card__cta {
  opacity: 0.9;
  transform: translateY(0);
}

.offer-card:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.55);
  outline-offset: 3px;
}

/* =========================================================
   6) Kurs pływania na desce SUP (intro) + logo w boxie
   ========================================================= */

.offer-course {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 32px; /* było 40px */
  align-items: center;

  max-width: var(--offer-max, 1200px);
  margin: 1.25rem 0 2.25rem;
  padding: 22px 24px;

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
}

.offer-course-info {
  margin: 0;
  padding: 0;
  max-width: none;

  background: transparent;
  border: 0;
  border-radius: 0;
}

.offer-course-info__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.offer-course-info__lead,
.offer-course-info__text {
  max-width: 760px;
}

.offer-course-info__lead {
  margin: 0.6rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.offer-course-info__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.68);
}

.offer-course-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

.offer-course-logo img {
  max-width: 160px; /* było 150px */
  width: 100%;
  height: auto;
  opacity: 0.9;
  transform: translateY(-6px);
}

/* =========================================================
   7) RWD
   ========================================================= */

@media (max-width: 1024px) {
  .offer-course {
    grid-template-columns: 1fr 150px;
    gap: 28px;
  }

  .offer-course-logo img {
    max-width: 140px;
    transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  .offer {
    padding: 56px 0;
  }

  .offer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .offer-course {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .offer-course-logo {
    justify-content: flex-start;
  }

  .offer-course-logo img {
    max-width: 120px;
    transform: none;
  }
}

@media (max-width: 700px) {
  .offer-course {
    margin: 1rem 0 1.75rem;
    padding: 0.9rem 0.95rem;
  }

  .offer-course-info__title {
    font-size: 1.25rem;
  }

  .offer-course-info__lead {
    font-size: 1rem;
  }

  .offer-course-info__text {
    font-size: 0.95rem;
  }
}