/* Бывший selections-cards.css — главная /selections/ */

.selections {
  width: 100%;
  max-width: 100%;
  background-color: #1d1e1e;
  color: #fff;
  padding-bottom: 30px;
}

.border-radius-l {
  border-radius: 12px;
}

.text-m {
  font-size: 16px;
}

.selections-intro {
  line-height: 1.5;
}

.selections-cards {
  display: grid;
  margin-top: 48px;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.spl-service > a {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.spl-service ._card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  background-color: #2a2b2b;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  transition: border-color 0.2s ease;
}

.spl-service ._card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #2a2b2b;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: filter 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.spl-service ._card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
}

.spl-service a:hover ._card.in-dev::before {
  filter: blur(18px);
  transform: scale(1.08);
}

.spl-service ._card-text {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
}

.spl-service ._card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.spl-service ._card h3 {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #888;
}

/* Было /selections/selections-images/ — теперь common (деплой master) */
.spl-service ._card.card1::before {
  background-image: url("../images/mainPage/card1.jpg");
}
.spl-service ._card.card2::before {
  background-image: url("../images/mainPage/card2.jpg");
}
.spl-service ._card.card3::before {
  background-image: url("../images/mainPage/card3.jpg");
}
.spl-service ._card.card4::before {
  background-image: url("../images/mainPage/card4.jpg");
}
.spl-service ._card.card5::before {
  background-image: url("../images/mainPage/card5.jpg");
}
.spl-service ._card.card6::before {
  background-image: url("../images/mainPage/card6.jpg");
}
.spl-service ._card.card7::before {
  background-image: url("../images/mainPage/card7.jpg");
}
.spl-service ._card.card8::before {
  background-image: url("../images/mainPage/card8.jpg");
}
.spl-service ._card.card9::before {
  background-image: url("../images/mainPage/card9.jpg");
}
.spl-service ._card.card10::before {
  background-image: url("../images/mainPage/card10.jpg");
}
.spl-service ._card.card11::before {
  background-image: url("../images/mainPage/card11.jpg");
}

@media only screen and (min-width: 768px) {
  .selections-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (min-width: 1051px) {
  .selections-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .spl-service ._card h2 {
    font-size: 24px;
  }

  .spl-service ._card h3 {
    font-size: 16px;
  }
}

@media only screen and (max-width: 768px) {
  .selections-intro,
  .selections-cards {
    margin-top: 24px;
  }
}

@media only screen and (max-width: 490px) {
  .selections {
    padding: 24px 16px;
  }

  .selections-intro {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .selections-cards {
    margin-top: 16px;
    gap: 12px;
  }

  .spl-service ._card {
    aspect-ratio: 16 / 11;
    min-height: 132px;
  }

  .spl-service ._card::before {
    background-size: 100% auto;
  }

  .spl-service ._card-text {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .spl-service ._card h2 {
    font-size: 16px;
  }

  .spl-service ._card h3 {
    font-size: 13px;
  }
}
