
.service-item {
  position: relative;
  cursor: pointer;
  min-height: 200px;
  margin-right: var(--gap);
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
  width: 100%;
  transition: flex 0.2s ease, transform 0.1s, box-shadow 0.1s;
}

.service-item:last-child {
  margin-right: 0;
}

.service-item.active {
  flex: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service-item .service-info {
  position: absolute;
  padding: var(--gap);
  bottom: 0;
  left: 0;
  width: 100%;
  color: #fff;
  text-align: center;
}

.service-item .service-info p {
  height: 0;
}

.service-item.active img {
  transform: scale(1);
}

.service-item.active .service-info {
  text-align: left;
}

.service-item.active .service-info p {
  height: auto;
}