:root {
  --catalog-green: #048f17;
  --catalog-mint: #e7f4f5;
  --catalog-ink: #313131;
  --catalog-text: #272727;
  --catalog-muted: rgba(49, 49, 49, 0.72);
  --catalog-radius: 10px;
}

#route-fences {
  background: #fff;
  color: var(--catalog-ink);
}

#route-fences .container {
  width: min(1160px, calc(100% - 40px));
}

#route-fences .catalog-hero {
  height: 165px;
  padding: 40px 0 0;
  text-align: left;
}

#route-fences .catalog-hero h1 {
  margin: 0;
  color: var(--catalog-ink);
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

#route-fences .catalog-list {
  padding: 0 0 32px;
}

#route-fences .catalog-list__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#route-fences .catalog-products {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 40px;
  align-items: stretch;
}

#route-fences .catalog-product {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

#route-fences .catalog-product:nth-child(1),
#route-fences .catalog-product:nth-child(2),
#route-fences .catalog-product:nth-child(6),
#route-fences .catalog-product:nth-child(7) {
  grid-column: span 3;
}

#route-fences .catalog-product:nth-child(3),
#route-fences .catalog-product:nth-child(4),
#route-fences .catalog-product:nth-child(5),
#route-fences .catalog-product:nth-child(n + 8) {
  grid-column: span 2;
}

#route-fences .catalog-product__image {
  width: 100%;
  height: 340px;
  border-radius: var(--catalog-radius);
  background-color: #ddd;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  object-fit: cover;
  margin: 0 0 20px;
  display: block;
}

#route-fences .catalog-product__image--fallback {
  background-image: url("./catalog-reference/image-01.png");
}

#route-fences .catalog-product:nth-child(2) .catalog-product__image--fallback {
  background-image: url("./catalog-reference/image-02.png");
}

#route-fences .catalog-product:nth-child(3) .catalog-product__image--fallback {
  background-image: url("./catalog-reference/image-03.png");
}

#route-fences .catalog-product:nth-child(4) .catalog-product__image--fallback {
  background-image: url("./catalog-reference/image-04.png");
}

#route-fences .catalog-product:nth-child(5) .catalog-product__image--fallback {
  background-image: url("./catalog-reference/image-05.png");
}

#route-fences .catalog-product:nth-child(n + 6) .catalog-product__image--fallback {
  background-image: url("./catalog-reference/image-06.png");
}

#route-fences .catalog-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

#route-fences .catalog-product h3 {
  margin: 0 0 10px;
  color: var(--catalog-text);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}

#route-fences .catalog-product p {
  min-height: 88px;
  margin: 0 0 20px;
  color: var(--catalog-muted);
  font-size: 18px;
  line-height: 1.2;
}

#route-fences .catalog-product:nth-child(1) p,
#route-fences .catalog-product:nth-child(2) p,
#route-fences .catalog-product:nth-child(6) p,
#route-fences .catalog-product:nth-child(7) p {
  min-height: 66px;
}

#route-fences .catalog-product .price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 146px;
  height: 42px;
  padding: 10px;
  margin: auto 0 20px;
  border-radius: var(--catalog-radius);
  background: var(--catalog-mint);
  color: rgba(39, 39, 39, 0.6);
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

#route-fences .catalog-product .button {
  width: 100%;
  min-height: 46px;
}

#route-fences .contacts-section {
  padding-top: 48px;
}

#route-fences #request-cta {
  padding: 24px 0 56px;
}

#route-fences #request-cta .cta--with-image {
  min-height: 430px;
  margin-top: 0;
  align-items: end;
}

#route-fences #request-cta .cta--with-image::before {
  inset: 78px 0 0;
}

#route-fences #request-cta .cta--with-image > img {
  width: auto;
  height: 430px;
  max-height: none;
  align-self: end;
  object-fit: contain;
  object-position: bottom center;
}

#route-fences #request-cta .cta--with-image .cta__content {
  padding-top: 112px;
}

#route-fences #request-cta .inline-form input[type="tel"] {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  #route-fences .catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #route-fences .catalog-product,
  #route-fences .catalog-product:nth-child(n) {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  #route-fences #request-cta .cta--with-image {
    min-height: 0;
    padding: 28px;
  }

  #route-fences #request-cta .cta--with-image > img {
    width: min(100%, 420px);
    height: auto;
    max-height: 429px;
  }

  #route-fences #request-cta .cta--with-image .cta__content {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  #route-fences .container {
    width: min(1160px, calc(100% - 28px));
  }

  #route-fences .catalog-hero {
    height: auto;
    padding: 32px 0 28px;
  }

  #route-fences .catalog-hero h1 {
    font-size: 30px;
  }

  #route-fences .catalog-list {
    padding-bottom: 24px;
  }

  #route-fences .catalog-products {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  #route-fences .catalog-product__image {
    height: auto;
    aspect-ratio: 1.1 / 1;
  }

  #route-fences .catalog-product p,
  #route-fences .catalog-product:nth-child(n) p {
    min-height: 0;
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  #route-fences .catalog-hero {
    text-align: left;
  }
}
