/* ═══════════════════════════════════════════════
   calendar-days.css — Күнтізбе / Календарь
   ═══════════════════════════════════════════════ */

/* ── Сетка: 4 в ряд ── */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .cal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .cal-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 420px) {
  .cal-grid { grid-template-columns: 1fr; }
}

/* ── Карточка ── */
.cal-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow var(--tr), transform var(--tr);
  cursor: pointer;
}
.cal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.cal-card--no-pdf {
  cursor: default;
}
.cal-card--no-pdf:hover {
  box-shadow: var(--shadow-sm);
  transform: none;
}

/* ── Картинка ── */
.cal-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eef4f0;
  flex-shrink: 0;
}
.cal-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.cal-card:hover .cal-card-img img {
  transform: scale(1.05);
}

/* ── Заглушка (нет изображения) ── */
.cal-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4f0;
}
.cal-card-placeholder .bi {
  font-size: 52px;
  color: rgba(27, 77, 53, 0.2);
}

/* ── Оверлей при наведении ── */
.cal-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 77, 53, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--tr);
}
.cal-card:hover .cal-card-overlay {
  opacity: 1;
}
.cal-card-overlay .bi {
  font-size: 36px;
  color: var(--white);
}

/* ── Название ── */
.cal-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  padding: 12px 10px 14px;
  line-height: 1.4;
}

/* ── Пусто ── */
.cal-empty {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--text-gray);
  text-align: center;
  padding: 32px 0;
}
