/* Homepage refinements; preserve the shared layout on internal pages. */
body.ref-home-page .footer-top {
  grid-template-columns: 1.3fr .85fr .85fr 1.15fr 1fr;
  gap: 24px;
}
body.ref-home-page .footer-brand p {
  max-width: none;
  font-weight: 400 !important;
}
body.ref-home-page .footer-logo-link,
body.ref-home-page .footer-logo-link picture {
  display: block;
  width: 100%;
}
body.ref-home-page .footer-logo {
  width: 100%;
  height: auto;
}
body.ref-home-page .footer-copyright p {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.75;
}
body.ref-home-page .footer-top > .footer-copyright {
  grid-column: auto;
}
body.ref-home-page .footer-legal {
  flex-wrap: wrap;
}
@media (min-width: 701px) {
  /* Match the mounting accessories: two compact horizontal cards. */
  body.ref-home-page #home-cat-03 .home-catalog-static { gap: 14px; }
  body.ref-home-page #home-cat-03 .home-catalog-card {
    display: grid !important;
    grid-template-columns: 36% 64%;
    min-height: 120px;
  }
  body.ref-home-page #home-cat-03 .home-catalog-photo {
    position: relative;
    width: auto;
    max-width: none;
    height: auto;
    aspect-ratio: 1.48;
    border-right: 0;
    border-bottom: 1px solid #edf0f2;
  }
  body.ref-home-page #home-cat-03 .home-catalog-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  body.ref-home-page #home-cat-03 .home-catalog-copy {
    width: auto;
    max-width: none;
    padding: 14px 15px 16px;
  }
  body.ref-home-page #home-cat-03 .home-catalog-copy strong { font-size: 14px; }
  body.ref-home-page #home-cat-03 .home-catalog-copy > span { font-size: 12px; }
}
@media (max-width: 1023px) {
  body.ref-home-page .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  body.ref-home-page .footer-brand { grid-column: 1 / -1; }
  body.ref-home-page .footer-col { min-width: 0; }
  body.ref-home-page .footer-col address { overflow-wrap: anywhere; }
}
@media (max-width: 700px) {
  body.ref-home-page .footer-top { padding-inline: 0; }
  body.ref-home-page .footer-bottom { padding-inline: 0; }
  body.ref-home-page .ref-footer-cats-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    align-items: start;
  }
  body.ref-home-page #why .why-grid { grid-template-columns: minmax(0, 1fr); }
  body.ref-home-page #why .why-card { border-right: 0; }
  body.ref-home-page #why .why-card:last-child { border-bottom: 0; }
  /* Half the image's previous width also halves its intrinsic height. */
  body.ref-home-page #home-cat-03 a[href="products/vzk"] .home-catalog-photo img {
    width: 50%;
    height: auto;
  }
  body.ref-home-page .footer-legal { flex-direction: column; align-items: flex-start; }
}
