:root {
  --works-bg: #f7f4ed;
  --works-green: #23453a;
  --works-red: #b5533d;
  --works-muted: #6d716f;
  --works-line: #dddcd6;
}

.works-page {
  overflow: hidden;
}

.works-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.works-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.works-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--works-red);
}

.works-hero {
  padding: 50px 0 0px;
  /*background: var(--works-bg);*/
}

.works-hero h1 {
  margin: 20px 0 25px;
  font-size: clamp(50px, 4vw, 88px);
  line-height: 1.1;
  letter-spacing: .04em;
}

.works-hero p {
  margin: 0;
  color: var(--works-muted);
  font-size: 15px;
  line-height: 2;
}

.works-gallery {
  padding: 0px 0 135px;
  background: #fff;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 72px 25px;
}

.work-card {
  display: block;
}

.work-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0 0 23px;
  overflow: hidden;
  background: #efeee9;
}

.work-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, .75, .25, 1);
}

.work-image-placeholder {
  background: repeating-linear-gradient(135deg, #eceae4 0, #eceae4 10px, #f5f3ee 10px, #f5f3ee 20px);
	display:none;
}

.work-image-placeholder figcaption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #939089;
  font-size: 10px;
  letter-spacing: .08em;
}

.work-image-placeholder img:not([hidden]) + figcaption {
  display: none;
}

.work-card:hover .work-card__image img {
  transform: scale(1.035);
}

.work-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 15px;
}

.work-card__body span {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid #cfd2cf;
  border-radius: 999px;
  color: var(--works-muted);
  font-size: 10px;
  line-height: 1;
}

.work-card__body h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}

.work-card__body i {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #c8ccc9;
  border-radius: 50%;
  font-style: normal;
  transition: .25s;
}

.work-card:hover .work-card__body i {
  color: #fff;
  border-color: var(--works-green);
  background: var(--works-green);
  transform: translate(2px, -2px);
}

.works-message {
  padding: 90px 0 105px;
  background: var(--works-bg);
}

.works-message .works-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.works-message p {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 700;
  line-height: 1.7;
}

.works-message a {
  display: flex;
  justify-content: space-between;
  width: min(340px, 100%);
  padding: 18px 0;
  border-bottom: 1px solid #9da19f;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 58px 20px;
  }

  .works-message .works-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .works-inner {
    width: min(100% - 34px, 1240px);
  }

  .works-hero {
    padding: 0px 0 0px;
  }

  .works-hero h1 {
    font-size: 46px;
  }

  .works-gallery {
    padding: 0px 0 85px;
  }

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

  .work-card__image {
    margin-bottom: 19px;
  }

  .work-card__body h2 {
    font-size: 18px;
  }

  .works-message {
    padding: 65px 0 75px;
  }

  .works-message p {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card__image img,
  .work-card__body i {
    transition: none;
  }
}
