.mc-section {
  padding: 84px 0 96px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(var(--hot-rgb), 0.07), rgba(0, 0, 0, 0) 70%),
    var(--bg);
}

.mc-title-main {
  font-size: clamp(29px, 2.4vw, 72px);
  font-weight: 400;
  margin-bottom: 32px;
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Карточка: фото на весь блок, снизу затемнение, дата-плашка над названием */
.mc-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  aspect-ratio: 4 / 5;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 18px;
  background-color: #1d1615;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* .js .reveal задаёт свой transition — здесь он шире, чтобы работал и hover */
.mc-grid .mc-card {
  transition: opacity 0.6s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s ease;
}

.mc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.6s var(--ease);
  z-index: 0;
}

.mc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 7, 7, 0.1) 0%,
    rgba(10, 7, 7, 0) 28%,
    rgba(10, 7, 7, 0.6) 62%,
    rgba(10, 7, 7, 0.94) 100%
  );
  z-index: 1;
}

.mc-title,
.mc-date {
  position: relative;
  z-index: 2;
}

.mc-title {
  order: 2;
  font-family: "Merriweather", serif;
  font-size: 20px !important;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.mc-date {
  order: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--hot);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.mc-date-muted {
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: none;
}

.mc-grid a.mc-card:hover,
.mc-grid a.mc-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(var(--hot-rgb), 0.7), 0 24px 40px -20px rgba(0, 0, 0, 0.9);
}

.mc-card:hover::before {
  transform: scale(1.07);
}

/* ---------- «Все мастер-классы» и пустое состояние ---------- */
.mc-card-all,
.mc-card-empty {
  justify-content: space-between;
  padding: 22px 20px;
  background:
    radial-gradient(260px 220px at 100% 100%, rgba(var(--hot-rgb), 0.3), rgba(0, 0, 0, 0) 70%),
    linear-gradient(160deg, #241514, #150f0e);
  box-shadow: 0 0 0 1px rgba(var(--hot-rgb), 0.35);
}

.mc-card-all::before,
.mc-card-empty::before {
  display: none;
}

.mc-card-all .mc-title,
.mc-card-empty .mc-title {
  order: 1;
  font-size: 22px !important;
  text-shadow: none;
}

.mc-card-all .mc-date,
.mc-card-empty .mc-date {
  order: 2;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #ff8a80;
  font-size: 13px !important;
}

.mc-card-all .mc-date::after {
  content: "→";
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.mc-card-all:hover .mc-date::after {
  transform: translateX(5px);
}

.mc-card-empty {
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--card-border);
}

.mc-card-empty .mc-date {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 15px !important;
}

@media (max-width: 1024px) {
  .mc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mc-card {
    aspect-ratio: 3 / 2;
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .mc-section {
    padding: 56px 0 64px;
  }

  .mc-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mc-card {
    aspect-ratio: 16 / 10;
    min-height: 220px;
    max-height: 320px;
  }

  .mc-card-all,
  .mc-card-empty {
    aspect-ratio: auto;
    min-height: 150px;
    gap: 24px;
  }
}
