html {
  scroll-behavior: smooth;
}

.equipment-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, .68), rgba(0, 0, 0, .62)),
    url('../images2/banner_market-mining.jpg') center/cover no-repeat;
}

.equipment-hero-content {
  max-width: 780px;
  color: #fff;
}

.equipment-hero-content span {
  color: #f0a814;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.equipment-hero-content h1 {
  margin: 12px 0 14px;
  color: #fff;
  font-size: 52px;
  font-weight: 900;
  text-transform: uppercase;
}

.equipment-hero-content p {
  margin: 0;
  color: #eee;
  font-size: 17px;
  line-height: 1.7;
}

.equipment-page {
  padding: 70px 0;
  background: #f5f6f3;
}

.equipment-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.brand-sidebar {
  position: sticky;
  top: 18px;
  overflow: hidden;
  background: #25252b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.brand-sidebar-title {
  margin: 0;
  padding: 18px 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  background: #222;
  text-transform: uppercase;
}

.brand-sidebar a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: .25s ease;
}

.brand-sidebar a:hover,
.brand-sidebar a:focus,
.brand-sidebar a.active {
  padding-left: 22px;
  background: #df4545;
  color: #fff;
  text-decoration: none;
}

.equipment-intro {
  margin-bottom: 28px;
  text-align: center;
}

.equipment-intro span {
  display: block;
  margin-bottom: 16px;
  color: #df4545;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.equipment-intro h2 {
  margin: 8px 0 10px;
  color: #1d1d1d;
  font-size: 34px;
  font-weight: 900;
}

.equipment-intro img {
  display: block;
  margin: 12px auto;
  max-width: 300px;
  width: auto;
  height: auto;
}

.equipment-intro p {
  max-width: 820px;
  margin: 0 auto;
  color: #555;
  line-height: 1.75;
}

.equipment-intro p br {
  display: block;
  content: "";
  margin-top: 14px;
}

.brand-section {
  margin-bottom: 28px;
  padding: 28px;
  scroll-margin-top: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}

.brand-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.brand-heading h2 {
  margin: 0;
  color: #222;
  font-size: 25px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-heading h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 8px;
  background: #df4545;
}

.brand-heading img {
  max-width: 300px;
  max-height: none;
  width: auto;
  height: auto;
  object-fit: contain;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.equipment-card {
  overflow: hidden;
  height: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .11);
}

.equipment-image,
.equipment-image-placeholder {
  width: 100%;
  height: 220px;
  background: #f5f5f5;
  border-radius: 8px;
}

.equipment-image {
  display: block;
  padding: 0;
  object-fit: cover;
}

.equipment-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #df4545;
  font-size: 58px;
}

.equipment-card-body {
  padding: 14px 4px 6px;
}

.equipment-card-body h3 {
  margin: 0 0 8px;
  color: #1a73e8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.equipment-card-body p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

.equipment-cta {
  padding: 58px 20px;
  text-align: center;
  color: #fff;
  background: #222;
}

.equipment-cta h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 31px;
  font-weight: 900;
}

.equipment-cta p {
  margin-bottom: 24px;
  color: #ddd;
}

.equipment-cta a {
  display: inline-block;
  padding: 12px 27px;
  border: 2px solid #df4545;
  background: #df4545;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: .3s ease;
}

.equipment-cta a:hover {
  background: transparent;
  color: #fff;
  text-decoration: none;
}

.equipment-back {
  display: inline-block;
  margin-bottom: 18px;
  color: #df4545;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.equipment-back:hover {
  color: #111;
  text-decoration: none;
}

@media (max-width: 991px) {
  .equipment-layout {
    grid-template-columns: 1fr;
  }

  .brand-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-sidebar-title {
    grid-column: 1 / -1;
  }

  .brand-sidebar a {
    border-right: 1px solid rgba(255, 255, 255, .12);
  }

  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .equipment-hero {
    min-height: 340px;
  }

  .equipment-hero-content h1 {
    font-size: 38px;
  }

  .equipment-page {
    padding: 48px 0;
  }

  .brand-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-section {
    padding: 21px;
  }
}

@media (max-width: 520px) {
  .equipment-hero-content h1 {
    font-size: 32px;
  }

  .equipment-grid,
  .brand-sidebar {
    grid-template-columns: 1fr;
  }

  .equipment-intro h2 {
    font-size: 28px;
  }

  .brand-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
