/* Nine service cards and their responsive illustrations. */

/* Service cards only. The six-photo sprite is an original ImageGen asset. */

#solutions .solutions-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
  align-items: stretch;
}

#solutions .solution-card {
  --photo-x: 0px;
  --photo-y: 0px;
  grid-column: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  border-radius: 28px;
  background: #fff;
  color: #20212c;
  border: 1px solid #e8e5ef;
  box-shadow: 0 5px 24px #28203804;
  overflow: hidden;
  transition: transform .3s ease,box-shadow .3s ease,border-color .3s ease;
  scroll-margin-top: 118px;
}

#solutions .solution-card--dark {
  background: #211a31;
  border-color: #30263f;
  color: #fff;
}

#solutions .solution-visual.solution-photo {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4/3;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #e8e0f3;
  isolation: isolate;
}

#solutions .solution-card--dark .solution-photo {
  background: #21172f;
}

#solutions .solution-photo__sprite {
  position: absolute;
  inset: 0;
  display: block;
  background-image: url("assets/solutions/solutions-scenes-v01.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  background-position: var(--sprite-x,0%) var(--sprite-y,0%);
  transform: translate3d(var(--photo-x),var(--photo-y),0) scale(1.035);
  transition: transform .7s cubic-bezier(.2,.65,.25,1);
  will-change: auto;
}

#solutions .solution-photo__sprite--extra {
  background-image: url("assets/solutions/solutions-extra-scenes-v01.png");
  background-size: 300% auto;
}

#solutions #marketing .solution-photo__sprite--funnel {
  background-image: url("assets/solutions/autovoronki-light-v02.png");
  background-size: cover;
  background-position: center;
}

#solutions .solution-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 28px 28px 27px;
}

#solutions .category {
  display: block;
  margin: 0 0 13px;
  color: #7653b7;
  font-family: "IBM Plex Mono",monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .75px;
  text-transform: uppercase;
}

#solutions .solution-card--dark .category {
  color: #bba0ee;
}

#solutions .solution-copy h3 {
  margin: 0 0 15px;
  max-width: 100%;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.8px;
  color: inherit;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

#solutions .solution-copy p {
  margin: 0 0 26px;
  color: #747580;
  font-size: 14px;
  line-height: 1.75;
  max-width: none;
  overflow-wrap: break-word;
}

#solutions .solution-card--dark .solution-copy p {
  color: #bcb7c8;
}

#solutions .card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  padding: 15px 0 0;
  border-top: 1px solid #eeebf3;
  border-radius: 0;
  color: #272230;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  min-height: 36px;
}

#solutions .solution-card--dark .card-link {
  color: #fff;
  border-top-color: #ffffff20;
}

#solutions .card-link svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform .25s ease;
}

#solutions .card-link:focus-visible {
  outline: 2px solid #a076ec;
  outline-offset: 5px;
}

#solutions .section-action {
  margin-top: 38px;
}

@media(hover:hover) and (pointer:fine) {
  #solutions .solution-card:hover {
    transform: translateY(-4px);
    border-color: #cdbbe9;
    box-shadow: 0 18px 42px #35254812;
  }

  #solutions .solution-card--dark:hover {
    border-color: #6e558d;
    box-shadow: 0 18px 42px #24143220;
  }

  #solutions .solution-card:hover .solution-photo__sprite {
    transform: translate3d(var(--photo-x),var(--photo-y),0) scale(1.055);
  }

  #solutions .card-link:hover svg {
    transform: translateX(3px);
  }
}

@media(max-width:1100px) {
  #solutions .solutions-grid {
    gap: 16px;
  }

  #solutions .solution-copy {
    padding: 24px 22px;
  }

  #solutions .solution-copy h3 {
    font-size: 23px;
  }
}

@media(max-width:900px) {
  #solutions .solutions-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(max-width:560px) {
  #solutions .solutions-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
  }

  #solutions .solution-card {
    border-radius: 24px;
  }

  #solutions .solution-copy {
    padding: 25px 24px;
  }

  #solutions .solution-copy h3 {
    font-size: 26px;
    line-height: 1.2;
  }

  #solutions .solution-copy p {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  #solutions .category {
    font-size: 10px;
  }

  #solutions .card-link {
    font-size: 12px;
    min-height: 42px;
  }

  #solutions .section-action .button {
    max-width: 100%;
    white-space: normal;
  }

  #solutions .section-action .button-text {
    min-width: 0;
    white-space: normal;
    text-align: left;
  }
}

@media(prefers-reduced-motion:reduce) {
  #solutions .solution-card, #solutions .solution-photo__sprite, #solutions .card-link svg {
    animation: none!important;
    transition: none!important;
    transform: none!important;
  }
}
