.works-list-page {
  padding: 100px 0 140px;
  background: #f3eee9;
}

.works-list-page__inner {
  width: min(100% - 120px, 1200px);
  margin: 0 auto;
}

.works-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}

.works-card {
  display: block;
}

.works-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.works-card__title {
  margin: 18px 0 10px;
  color: #2b2522;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .08em;
}

.works-card__text {
  margin: 0;
  color: #81756e;
  font-size: 13px;
  line-height: 2;
  letter-spacing: .06em;
}

.works-pagination {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.works-detail {
  padding: 90px 0 0;
  background: #f3eee9;
}

.works-detail__inner {
  width: min(100% - 80px, 960px);
  margin: 0 auto;
  padding: 48px;
  background: #fff;
  border-radius: 8px;
}

.works-detail__img {
    margin: 0px auto 40px;
    max-width: 700px;
}

.works-detail__img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.works-detail__title {
  margin: 0 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #8d8179;
  font-size: 24px;
  line-height: 1.8;
  letter-spacing: .12em;
}

.works-detail__content {
  font-size: 14px;
  line-height: 2.3;
  letter-spacing: .08em;
}

.works-detail-back {
  padding: 80px 0 140px;
  background: #f3eee9;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 900px) {
  .works-list-page {
    padding: 60px 0 90px;
  }

  .works-list-page__inner {
    width: calc(100% - 40px);
  }

  .works-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .works-detail__inner {
    width: calc(100% - 40px);
    padding: 28px 22px 42px;
  }

  .works-detail__title {
    font-size: 18px;
  }
}