/* Ход строительства — сетка месяцев (стиль как у слайдов) */

.process-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.process-month {
  position: relative;
  cursor: pointer;
  border-radius: 40px;
  overflow: hidden;
  width: 100%;
  height: 422px;
  transition: transform 0.2s;
}

.process-month::before {
  content: "";
  width: 100%;
  height: 60%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 55.09%, rgba(0, 0, 0, 0.6) 100%);
  border-radius: 40px;
  z-index: 1;
  pointer-events: none;
}

.process-month::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(67, 191, 232, 0.7);
  border-radius: 40px;
  display: none;
  z-index: 1;
  pointer-events: none;
}

.process-month:hover::after {
  display: block;
}

.process-month:hover {
  transform: translateY(-4px);
}

.process-month__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.process-month__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 40px;
}

.process-month__count {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 2;
}

.process-month__title {
  position: absolute;
  left: 40px;
  bottom: 40px;
  margin: 0;
  font-size: 1.5rem;
  line-height: 140%;
  font-weight: 500;
  color: #fff;
  z-index: 2;
}

/* Адаптив */

@media (max-width: 1200px) {
  .process-month {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .process-months {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .process-month {
    height: 300px;
    border-radius: 24px;
  }
  .process-month::before,
  .process-month::after {
    border-radius: 24px;
  }
  .process-month__thumb img {
    border-radius: 24px;
  }
  .process-month__title {
    left: 20px;
    bottom: 20px;
    font-size: 1.1rem;
  }
  .process-month__count {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .process-months {
    grid-template-columns: 1fr;
  }
  .process-month {
    height: 280px;
  }
}
