/* =====================================================
   Actual Section — Two-layer card design
   Top: image area (≈60%)
   Bottom: dark green gradient plaque with text (≈40%)
   ===================================================== */

/* ── Grid: максимум 4 карточки в ряд ──────── */
.act-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 10px 0;
}

/* ── Single card ──────────────────────────── */
.act-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 1px 1px 20px #d7d7d7;
}

.act-item:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.act-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* ── Image wrapper (≈60%) ─────────────────── */
.act-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e8f5e9; /* светло-салатный фон */
}

.act-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s ease;
}


/* ── Body — нижняя плашка (≈40%) ──────────── */
.act-body {
  background: #368b36;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 65px
}

.act-title {
  font-family: 'Gibson', 'noto-serif', georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  text-align: center;
  display: -webkit-box;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
  white-space: pre-line;
}

/* ── Responsive: Tablet (≤900px) ──────────── */
@media (max-width: 900px) {
  .act-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .act-item {
    border-radius: 20px;
  }

  .act-body {
    padding: 5px;
    min-height: 64px;
  }

  .act-title {
    font-size: 0.88rem;
  }
}

/* ── Responsive: Mobile (≤600px) ──────────── */
@media (max-width: 600px) {
  .act-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .act-item {
    border-radius: 16px;
  }

  .act-body {
    padding: 5px;
    min-height: 56px;
  }

  .act-title {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
}