.spaces-showcase {
  padding: clamp(5rem, 9vw, 9rem) 0;
  overflow: hidden;
  color: #fffaf0;
  background: #081b17;
}

.spaces-showcase-heading {
  display: grid;
  grid-template-columns: minmax(12rem, .48fr) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.spaces-showcase-heading p,
.spaces-overview-heading p {
  margin: 0;
  color: #76ddd6;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.spaces-showcase-heading h2,
.spaces-overview-heading h2 {
  max-width: 11ch;
  margin: 0;
  color: #ffe1a0;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
  line-height: .92;
}

.spaces-showcase-heading span {
  grid-column: 2;
  max-width: 34rem;
  color: rgba(255, 250, 240, .7);
  line-height: 1.55;
}

.spaces-showcase-list {
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
}

.spaces-showcase-item {
  width: min(88vw, 82rem);
  margin: 0 auto 0 max(3vw, calc((100vw - 92rem) / 2));
}

.spaces-showcase-item:nth-child(even) {
  margin-right: max(3vw, calc((100vw - 92rem) / 2));
  margin-left: auto;
}

.spaces-showcase-item > a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #102a24;
  border: 1px solid rgba(255, 225, 160, .26);
}

.spaces-showcase-item > a::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  content: "Открыть крупно ↗";
  padding: .62rem .85rem;
  color: #fffaf0;
  background: rgba(5, 15, 13, .78);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

.spaces-showcase-item > a:hover::after,
.spaces-showcase-item > a:focus-visible::after {
  color: #081b17;
  background: #76ddd6;
}

.spaces-showcase-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.spaces-showcase-item > a:hover img {
  transform: scale(1.008);
}

.spaces-showcase-item figcaption {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: .7rem 1rem;
  align-items: baseline;
  padding-top: 1.2rem;
}

.spaces-showcase-item figcaption span {
  color: #76ddd6;
  font-weight: 700;
  letter-spacing: .12em;
}

.spaces-showcase-item figcaption strong {
  color: #fffaf0;
  font-family: var(--font-heading, Georgia, serif);
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
  font-weight: 400;
}

.spaces-showcase-item figcaption em {
  color: rgba(255, 250, 240, .62);
  font-style: normal;
}

.spaces-overview {
  padding-top: clamp(4.5rem, 8vw, 8rem);
  background: #edf2ef;
}

.spaces-overview-heading {
  display: grid;
  grid-template-columns: minmax(12rem, .48fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.spaces-overview-heading h2 {
  color: #29423c;
}

@media (max-width: 760px) {
  .spaces-showcase-heading,
  .spaces-overview-heading {
    grid-template-columns: 1fr;
  }

  .spaces-showcase-heading span {
    grid-column: 1;
  }

  .spaces-showcase-item,
  .spaces-showcase-item:nth-child(even) {
    width: calc(100% - 2rem);
    margin-inline: 1rem;
  }

  .spaces-showcase-item > a::after {
    right: .5rem;
    bottom: .5rem;
    padding: .48rem .6rem;
    font-size: .62rem;
  }

  .spaces-showcase-item figcaption {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .spaces-showcase-item figcaption em {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spaces-showcase-item img {
    transition: none;
  }
}
