/* item */


.services-main {
  
  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
  }

  .grid-item {
    padding: 20px;
    background: linear-gradient(250.57deg, rgba(255, 205, 40, 0.73) 0%, #FFCD28 102.34%);
    position: relative;
    overflow: hidden;
    min-width: min(378px,80vw);
  }

  .grid-item-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
  }

  .grid-item-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .grid-icon-adaptive {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .grid-item::before {
    background: url("/local/templates/bridge-group.ru/images/fingerprint.png") no-repeat;
    background-size: 850px 850px;
    content: "";
    position: absolute;
    z-index: 2;
    opacity: 0.2;
    height: 850px;
    width: 850px;
    transform-origin: bottom left;
    top: -115%;
    left: -15%;
    transform: rotate(15deg) translateX(120px) translateY(-3px);
  }

  .grid-item:last-child:nth-child(odd) {
    grid-column: 1 / span 2;
  }

  .grid-item:last-child:nth-child(odd)::before {
    left: 40%;
    top: -155%
  } 

  .service-icon {
    background-color: white;
    width: 60px !important;
    height: 60px;
    border-radius: 50%;
  }

  .card-title {
    font-weight: 700;
    font-size: 20px;
    overflow-wrap: break-word;

  }

  .card-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #333333CC
  }

  .card-link a{
    color: black;
    font-size: 16px;
  }
  .card-link a:hover {
    color: var(--fill_dark_light_white_hover);
  }
  .svg {
    margin-bottom: 4px;
    margin-left: 6px;
  }
}

@media (min-width:900px) {
  .grid-item:nth-child(4n+2),
  .grid-item:nth-child(4n+3) {
    background: linear-gradient(70.2deg, #D9D9D9 0%, rgba(217, 217, 217, 0.2) 100%);
  }
}

@media (max-width:900px) {
  .services-main {
    .grid-container {
      grid-template-columns: 1fr;
    }
    .grid-item {
      grid-column: 1;
    }
    .grid-item:nth-child(2n) {
      background: linear-gradient(70.2deg, #D9D9D9 0%, rgba(217, 217, 217, 0.2) 100%);
    }
    .grid-item:last-child:nth-child(odd) {
      grid-column: 1;
    }
    

    .service-icon {
      width: 44px !important;
      height: 44px;
    }
    .grid-icon-adaptive {
      flex-direction: row;
      gap: 16px;
    }

    .card-title {
      font-size: 18px;
      line-height: 130%;
      width: 80%;
    }

    .card-text {
      font-size: 14px;
      line-height: 20px;
    }

    .card-link a{
      font-size: 14px;
    }
    .grid-item:last-child:nth-child(2n+1)::before, & .grid-item::before {
      left: unset;
      right: -410px;
      top: -174%;
    }
  }
}
