.links {
  padding: 170px 0 210px;
  overflow: hidden;
}

.links-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 35px;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 193px 50px;
}

.links-grid-item {
  border-radius: 20px;
  border: 2px solid #ff8b00;
  background: rgba(255, 255, 255, 0.85);
  /* backdrop-filter: blur(5px); */
  position: relative;
  padding-bottom: 50px;
}

.links-grid-title {
  max-width: 403px;
  margin: 0 auto;
  position: relative;
  top: -30px;
}

.links-grid-img {
  max-width: 360px;
  margin: 0 auto;
}

.links-grid-item a {
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 20px 0px 16px 0px;
  background: #ff8b00;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  line-height: 100%; /* 16px */
  width: 205px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.links-grid-item a img {
  width: 16px;
}

.links-grid-item--002 {
  border: 2px solid #11be93;
}

.links-grid-item--002 a {
  background-color: #11be93;
}

.links-grid-item--003 {
  border: 2px solid #f34e6c;
}

.links-grid-item--003 a {
  background-color: #f34e6c;
}

.links-grid-item--003 .links-grid-img {
  max-width: 433px;
}

.links-grid-item--004 {
  border: 2px solid #8dbaff;
}

.links-grid-item--004 a {
  background-color: #8dbaff;
}

.links-grid-item--005 {
  border: 2px solid #2581c7;
}

.links-grid-item--005 a {
  background-color: #2581c7;
}

.links-grid-item--006 {
  border: 2px solid #ffc20b;
}

.links-grid-item--006 a {
  background-color: #ffc20b;
}

.links-grid-item:after {
  content: '';
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center right;
  z-index: -1;
}

.links-grid-item--001:after {
  background-image: url(../../img/links/links-grid-bg-001.png);
  right: 64px;
  top: -70px;
  width: 1068px;
  height: 160%;
}

.links-grid-item--002:after {
  background-image: url(../../img/links/links-grid-bg-002.png);
  left: 64px;
  top: -70px;
  width: 1114px;
  height: 160%;
  background-position: center left;
}

.links-grid-item--003:after {
  background-image: url(../../img/links/links-grid-bg-003.png);
  right: 64px;
  top: -70px;
  width: 1200px;
  height: 160%;
}

.links-grid-item--004:after {
  background-image: url(../../img/links/links-grid-bg-004.png);
  left: 64px;
  top: -70px;
  width: 1048px;
  height: 160%;
  background-position: center left;
}
.links-grid-item--005:after {
  background-image: url(../../img/links/links-grid-bg-005.png);
  right: 64px;
  top: -70px;
  width: 931px;
  height: 160%;
}

.links-grid-item--006:after {
  background-image: url(../../img/links/links-grid-bg-006.png);
  left: 64px;
  top: -70px;
  width: 998px;
  height: 160%;
}

@media screen and (max-width: 1000px) {
  .links {
    padding: 20px 0 50px;
  }

  .links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 67px;
  }

  .links-grid-title {
    max-width: 248px;
    top: -20px;
  }

  .links-grid-img {
    max-width: 300px;
  }

  .links-grid-item a {
    font-size: 14px;
    width: 205px;
    height: 30px;
  }

  .links-grid-item--001:after {
    background-image: url(../../img/links/links-grid-bg-sp-001.png);
    top: 40px;
    max-width: 100%;
    height: 100%;
    width: 87.92vw;
    background-position: center left;
    right: auto;
    left: -40px;
  }

  .links-grid-item--002:after {
    background-image: url(../../img/links/links-grid-bg-sp-002.png);
    height: 100%;
    max-width: 100%;
    top: 40px;
    width: 87.92vw;
    background-position: center right;
    left: auto;
    right: -40px;
  }

  .links-grid-item--003:after {
    background-image: url(../../img/links/links-grid-bg-sp-003.png);
    top: 40px;
    max-width: 100%;
    height: 100%;
    width: 87.92vw;
    background-position: center left;
    right: auto;
    left: -40px;
  }

  .links-grid-item--004:after {
    background-image: url(../../img/links/links-grid-bg-sp-004.png);
    height: 100%;
    max-width: 100%;
    top: 40px;
    width: 87.92vw;
    background-position: center right;
    left: auto;
    right: -40px;
  }
  .links-grid-item--005:after {
    background-image: url(../../img/links/links-grid-bg-sp-005.png);
    top: 40px;
    max-width: 100%;
    height: 100%;
    width: 87.92vw;
    background-position: center left;
    right: auto;
    left: -40px;
  }

  .links-grid-item--006:after {
    background-image: url(../../img/links/links-grid-bg-sp-006.png);
    height: 100%;
    max-width: 100%;
    top: 40px;
    width: 87.92vw;
    background-position: center right;
    left: auto;
    right: -40px;
  }
}

@media screen and (max-width: 767px) {
  .links-grid-item--002 .links-grid-img {
    max-width: 210px;
  }

  .links-grid-item--003 .links-grid-img {
    max-width: 300px;
  }
}
