.works {
  position: relative;
  padding-bottom: 8rem;
  padding-top: 12rem !important;
}

.works__container {
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, min(85.33vw, 320px));
  row-gap: 6rem;
  column-gap: 2rem;
  justify-content: center;
  max-width: 1128px;
}

.works__item {
  width: min(85.33vw, 320px);
  position: relative;
}

.works__item-category {
  background-color: #2d4074;
  color: #fff;
  width: fit-content;
  font-size: 1.6rem;
  line-height: 1.5;
  padding: 0.4rem 1.6rem;
  position: absolute;
  top: 0;
  left: 0;
}

.works__item-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.works__item-title {
  font-size: 1.8rem;
  line-height: 2.6rem;
  margin: 1rem 0;
}

.works__item-info {
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: 500;
}

@media (min-width: 768px) {
  .works {
    position: relative;
    padding-top: 16rem !important;
    padding-bottom: 16rem;
  }

  .works__container {
    margin-top: 60px;
    padding: 0 20px;
    box-sizing: content-box;
    grid-template-columns: repeat(auto-fit, 360px);
    column-gap: 24px;
    row-gap: 80px;
  }

  .works__item {
    width: 360px;
    position: relative;
  }

  .works__item-title {
    font-size: 2rem;
    line-height: 2.9rem;
    margin: 0.8rem 0;
  }

  .works__item-info {
    font-weight: 700;
  }

  .dropdown-list {
    max-width: 936px;
    width: fit-content;
    margin: 0 auto;
  }
}
