.big-card-info {
  display: flex;
  flex-direction: column;
  height: 25em;  /* 400px */
  box-sizing: border-box;
  padding: var(--space-card-big);
  overflow: hidden;
  cursor: pointer;
}

.big-card-info__bg {
  inset: 0;
  background-color: #4d4d4d;
}

.big-card-info__mask {
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.4s ease;
}

.big-card-info:hover .big-card-info__mask {
  background-color: var(--blue);
}

.big-card-info__icon {
  align-self: flex-end;
  width: 3.4375em;  /* 55px */
  height: 3.4375em;
  flex-shrink: 0;
  transition: width 0.4s ease, height 0.4s ease;
}

.big-card-info:hover .big-card-info__icon {
  width: 6em;  /* 96px */
  height: 6em;
}

.big-card-info__text {
  margin-top: auto;  /* прилипає до низу */
  display: flex;
  flex-direction: column;
}

.big-card-info__title {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  line-height: var(--lh-h3);
  color: var(--white);
}

/* grid-trick: висота 0 → природна без стрибків */
.big-card-info__desc-clip {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  transition: grid-template-rows 0.4s ease, margin-top 0.4s ease;
}

.big-card-info:hover .big-card-info__desc-clip {
  grid-template-rows: 1fr;
  margin-top: 1em;  /* 16px gap */
}

.big-card-info__desc {
  min-height: 0;  /* обов'язково для 0fr */
  overflow: hidden;
  color: var(--grey-30);
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.big-card-info:hover .big-card-info__desc {
  opacity: 1;
}
