.nonstandard-projects {
  width: min(1760px, calc(100% - 120px));
  margin: 8px auto 86px;
}

.nonstandard-projects,
.nonstandard-projects * {
  box-sizing: border-box;
}

.nonstandard-projects a,
.nonstandard-projects a * {
  text-decoration: none !important;
}

.nonstandard-projects__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.nonstandard-projects__head h2 {
  margin: 0;
  color: #101810;
  font-size: clamp(34px, 4vw, 62px);
  line-height: .98;
  font-weight: 900;
}

.nonstandard-projects__head p {
  width: min(560px, 100%);
  margin: 0;
  color: #465246;
  font-size: 20px;
  line-height: 1.42;
}

.nonstandard-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.nonstandard-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: #2a312a !important;
  border: 1px solid rgba(20, 32, 20, .08);
  box-shadow: 0 14px 36px rgba(18, 28, 18, .1);
  transition: transform .22s ease, box-shadow .22s ease;
}

.nonstandard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(18, 28, 18, .16);
}

.nonstandard-card__media {
  height: clamp(260px, 22vw, 360px);
  overflow: hidden;
  background: #edf2ed;
}

.nonstandard-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.nonstandard-card:hover .nonstandard-card__media img {
  transform: scale(1.04);
}

.nonstandard-card__body {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.nonstandard-card__body h3 {
  margin: 0;
  color: #2a312a;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}

.nonstandard-detail__hero {
  max-width: 1380px;
  margin: 36px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 36px;
  align-items: stretch;
}

.nonstandard-detail__hero img {
  display: block;
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  background: #edf3ed;
}

.nonstandard-detail__hero > div {
  padding: 44px;
  border-radius: 12px;
  background: #eef3ef;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nonstandard-detail__hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: .98;
}

.nonstandard-detail__hero p:not(.product-eyebrow) {
  margin: 0 0 26px;
  color: #2f382f;
  font-size: 22px;
  line-height: 1.45;
}

.nonstandard-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.nonstandard-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #eef2ee;
  box-shadow: 0 10px 24px rgba(18, 28, 18, .08);
}

.nonstandard-gallery img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
  transition: transform .45s ease;
}

.nonstandard-gallery a:hover img {
  transform: scale(1.04);
}

@media (max-width: 1040px) {
  .nonstandard-projects {
    width: min(940px, calc(100% - 44px));
  }

  .nonstandard-projects__grid,
  .nonstandard-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nonstandard-detail__hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nonstandard-projects {
    width: min(100% - 28px, 520px);
  }

  .nonstandard-projects__head {
    display: block;
  }

  .nonstandard-projects__head p {
    margin-top: 12px;
    font-size: 17px;
  }

  .nonstandard-projects__grid,
  .nonstandard-gallery {
    grid-template-columns: 1fr;
  }

  .nonstandard-detail__hero img {
    min-height: 330px;
  }
}
