/* Card component transferred from the animation preview. */
body.home #hero .tugan-cards-container {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 4vw;
}
body.home #hero .tugan-service-cards,
body.home #hero .tugan-service-cards * { box-sizing: border-box; }
body.home #hero .tugan-service-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 32px);
  perspective: 1200px;
  margin: 0;
  padding: 0;
  font-family: "Tektur", sans-serif;
  font-weight: 400;
  letter-spacing: normal;
}
body.home #hero .tugan-service-cards .reveal-card {
  position: relative;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}
body.home #hero .tugan-service-cards .card-content {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  height: 100%;
  display: flex;
  flex-direction: column;
}
body.home #hero .tugan-service-cards .card-icon {
  flex-shrink: 0;
  height: clamp(125px, 12vw, 190px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
}
body.home #hero .tugan-service-cards .card-icon img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
  margin: 0;
}
body.home #hero .tugan-service-cards .card-label {
  flex: 1;
  position: relative;
  display: block;
  min-height: 104px;
  margin: 0;
  padding: 20px 12px 14px 24px;
  background: url('/assets/themes/vrclub/assets/i/gr.webp') center / 100% 100% no-repeat;
  font-family: "Tektur", sans-serif;
  font-size: clamp(12px, 1.06vw, 16px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
  color: #f5eef3;
  text-align: left;
}
@media (max-width: 1250px) {
  body.home #hero .tugan-service-cards .card-label { padding-left: 19px; min-height: 112px; }
}
@media (max-width: 900px) {
  body.home #hero .tugan-service-cards .card-label { font-size: 11px; padding: 15px 7px 12px 14px; min-height: 112px; }
  body.home #hero .tugan-service-cards .card-icon { height: 110px; }
}
@media (max-width: 640px) {
  body.home #hero .tugan-cards-container { padding-inline: 20px; }
  body.home #hero .tugan-service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  body.home #hero .tugan-service-cards .reveal-card:nth-child(5) { grid-column: 1 / -1; width: calc((100% - 14px) / 2); justify-self: center; }
  body.home #hero .tugan-service-cards .card-icon { height: 111px; margin-bottom: 6px; }
  body.home #hero .tugan-service-cards .card-label { min-height: 104px; font-size: 11px; line-height: 1.35; padding: 17px 7px 10px 13px; }
}

/* Hover the artwork or its caption to lift both parts of the same service. */
body.home #hero .tugan-service-cards .card-icon img {
  transform: translateY(0) scale(1) rotate(0deg);
  transform-origin: center 60%;
  transition: transform 520ms cubic-bezier(.2,.8,.25,1), filter 460ms ease;
}
body.home #hero .tugan-service-cards .card-label {
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition: transform 460ms cubic-bezier(.2,.8,.25,1), filter 460ms ease, color 340ms ease, text-shadow 460ms ease;
}
@media (hover: hover) and (pointer: fine) {
  body.home #hero .tugan-service-cards .reveal-card:hover { z-index: 4; }
  body.home #hero .tugan-service-cards .reveal-card:hover .card-icon img {
    transform: translateY(-7px) scale(1.14) rotate(-2deg);
    filter: brightness(1.1) drop-shadow(0 0 14px rgb(255 146 30 / .46)) drop-shadow(0 0 26px rgb(0 200 255 / .16));
  }
  body.home #hero .tugan-service-cards .reveal-card:hover .card-label {
    transform: translateY(-3px) scale(1.035);
    filter: brightness(1.07) drop-shadow(0 0 12px rgb(255 125 4 / .32));
    color: #fff;
    text-shadow: 0 0 14px rgb(0 200 255 / .16);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home #hero .tugan-service-cards .card-icon img,
  body.home #hero .tugan-service-cards .card-label { transition: none; }
  body.home #hero .tugan-service-cards .reveal-card:hover .card-icon img,
  body.home #hero .tugan-service-cards .reveal-card:hover .card-label { transform: none; }
}

/* Слои первого экрана: карточки-предложения всегда выше детей, иначе при загрузке
   мальчик и девочка налезают на карточки, которые появляются при первом скролле. */
body.home #hero .tugan-cards-container { z-index: 6; }
body.home #hero .hero__info,
body.home #hero .hero__img,
body.home #hero .hero__img-two { z-index: 1; }