.works {
  position: relative;
  z-index: 2;
}

.works::before {
  content: "";
  background: linear-gradient(132deg, #8570de 0.00%, #ff75a0 100.00%);
  width: 34%;
  padding-top: 34%;
  left: 10%;
  top: 37%;
  transform: translateX(-50%) translateY(-50%);
  position: absolute;
  border-radius: 100%;
  height: 0;
  filter: blur(240vw);
  opacity: 0.4;
  z-index: -1;
}

.works::after {
  content: "";
  background: linear-gradient(132deg, #00abff 0.00%, #7eecdb 100.00%);
  width: 34%;
  padding-top: 34%;
  left: 73%;
  top: 71%;
  transform: translateX(-50%) translateY(-50%);
  position: absolute;
  border-radius: 100%;
  height: 0;
  filter: blur(240vw);
  opacity: 0.4;
  z-index: -1;
}

.works .center-block {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-direction: column;
}

.works-head {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 16px;
}

.works-head .btn-secondary {
  margin-top: 0
}

.works__header {
  width: 50%;
}

.works__blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.works .works-project {
  display: flex;
  overflow: hidden;
  position: relative;
  gap: 16px;
}

.works .works-project__img {
  border-radius: 18px;
  height: 300px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.works .works-project__img a:first-child {
  cursor: zoom-in;
  height: 100%;
  display: block;
  overflow: hidden;
}

.works .works-project__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: relative;

}

.works .works-project__text .tag-mini {

}

.works-project__img img {
  max-height: 100%;
  min-width: 100%;
  object-fit: cover;
  vertical-align: bottom;
}

.works-project__header {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;

}

.works-project__header-num {
  font-size: 40px;
  line-height: 40px;
  font-weight: 900;

}

.works-project__header h2 {
  margin: 0;
}

.works-project__year {
  margin-bottom: 6px;
}

.works-project__text h2 {

}

.works-project__stack {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 4px;
  margin: 16px 0 0 0;
  flex-wrap: wrap;
}

.works-project__link {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 8px 8px;
  border-radius: 20px;
  height: 40px;
  background-color: #ffffff;
  transition: background-color ease-in-out 0.1s;
  z-index: 3;
  cursor: pointer !important;
}

.works-project__name {
  position: absolute;
  right: 48px;
  bottom: 4px;
  padding: 8px 24px;
  border-radius: 20px;
  height: 40px;
  background-color: #ffffff;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
}

.works-project__link:first-child {
  right: 44px;
}

.works-project__link:hover {
  background-color: rgb(239, 239, 243);
}

.works-project__link:hover img {

}

.works-project__link img{
  width: 24px;
  height: 24px;
  transition: all ease-in-out 0.3s;
}

.works-page {
}

.works-page--head p {
  margin-bottom: 32px;
}

.works-page .works-page__blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.works-page .works-project {

  flex-direction: column;
  align-items: stretch;
}

.works-page .works-project__img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.works-page .works-project {
  display: flex;
  flex-direction: column;
}

.works-page .works-project__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.works-page .works-project__text .subtitle {
  margin-bottom: 16px;
}

.works-page .works-project__text .btn {
  margin-top: 16px;
}

.works-page .works-project__img a {
  display: block;
}

.works-page .works-project__img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  vertical-align: bottom;
}

.works-page .works-project {
  flex: 1;
  min-width: 400px;
}

@media screen and (max-width: 1280px) {
  .works-project__stack {
    padding-right: 30px;
    flex-wrap: wrap;
  }

  .works .center-block {
    gap: 32px;
  }

  .works-page .works-project {
    min-width: 400px;
  }
}

@media screen and (max-width: 1024px) {
  .works .center-block {
    gap: 16px;
  }

  .works-head {
    min-width: 400px;
  }

  .works__header {
    width: 75%;
  }

  .works-project {

  }

  .works .works-project__img {
    width: 300px;
    height: auto;

  }

  .works .works-project__img img {
    max-width: 100%;
    min-height: 100%;
  }

  .works-project__text {
    padding: 16px;
  }
}

@media screen and (max-width: 768px) {
 .works .center-block {
   flex-direction: column;
 }

  .works-project {
    flex-direction: column;
    align-items: stretch;
  }

  .works-page .works-project:nth-child(2n) {
    flex-direction: column;
  }

  .works-project:nth-child(2n) {
    flex-direction: column-reverse;
  }

  .works-page .works-project {
    min-width: 320px;
  }

  .works .works-project__img {
    width: 100%;
    min-width: inherit;
    max-width: inherit;
  }

  .works .works-project__img img {
    max-width: 100%;
    min-height: auto;
  }

  .works-head {
    flex-direction: column;
    gap: 24px;
    min-width: 250px;
    padding: 0;
  }

  .works__header {
    width: 100%;
  }

  .works__blocks {
    width: auto;
  }

  .works::before, .works::after {
    width: 78%;
    padding-top: 78%;
  }
}

@media screen and (max-width: 370px) {
  .works-page .works-project {
    min-width: 200px;
  }
}
