.selection-head,
.model-tabs,
.selection-info > a,
.quick-consult a,
.group-banner > .wide {
  display: flex;
  align-items: center;
}
.selection-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.selection-head h2 {
  font:
    800 clamp(25px, 2.15vw, 37px)/1.1 Arial,
    sans-serif;
  letter-spacing: -0.055em;
}
.selection-head > a {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.model-tabs {
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.model-tabs a,
.selection-info > a {
  background: #e9eaed;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 650;
}
.model-tabs a[aria-current],
.selection-info > a {
  background: #396fca;
  color: #fff;
}
.selection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 23px);
}
.selection-info,
.selection-model {
  border-radius: 17px;
  background: #f5f5f4;
  padding: clamp(19px, 2.15vw, 37px);
  display: flex;
  flex-direction: column;
  min-height: clamp(365px, 29vw, 460px);
  overflow: hidden;
}
.selection-info {
  background: #eaf0f6;
}
.selection-info h3,
.selection-model h3 {
  font-size: clamp(21px, 1.65vw, 29px);
  letter-spacing: -0.05em;
}
.selection-info p {
  color: #495463;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.55;
  margin: 7px 0 16px;
}
.selection-info > a {
  align-self: flex-start;
  gap: 14px;
}
.group-photo {
  display: flex;
  justify-content: center;
  align-items: end;
  margin: auto 0 -7px;
  padding-top: 15px;
}
.group-photo img {
  width: 38%;
  height: 110px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.group-photo img + img {
  margin-left: -9%;
}
.selection-model > div {
  display: grid;
  place-items: center;
  flex: 1;
  padding: 8px 0 22px;
}
.selection-model img {
  width: 100%;
  height: clamp(175px, 15vw, 255px);
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.2s;
}
.selection-model:hover img {
  transform: scale(1.04);
}
.selection-model footer {
  border-top: 1px solid #d8dadd;
  padding-top: 15px;
  position: relative;
}
.selection-model footer span {
  color: #676d75;
  font-size: 14px;
}
.selection-model footer svg {
  position: absolute;
  right: 0;
  bottom: 0;
}
.group-banner {
  background: #eef1f3;
}
.group-banner > .wide {
  justify-content: space-between;
  gap: 35px;
  padding-block: 48px;
}
.group-banner h1 {
  font-size: clamp(38px, 5vw, 76px);
  letter-spacing: -0.065em;
}
.group-banner h1 + p {
  max-width: 620px;
  color: #535b66;
}
.group-banner img {
  width: 30%;
  height: 290px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.group-page section {
  padding-block: 54px;
}
.group-page h2 {
  margin-bottom: 20px;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -0.055em;
}
.quick-consult {
  position: fixed;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: grid;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 5px 20px #1a243117;
}
.quick-consult a {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 11px 6px;
  font-size: 11px;
  font-weight: 700;
}
.quick-consult a + a {
  border-top: 1px solid #ddd;
}
.quick-consult a:first-child {
  background: #396fca;
  color: white;
}
.quick-consult svg {
  width: 20px;
  height: 20px;
}
.inquiry-form {
  width: min(620px, calc(100% - 42px));
  margin: 55px auto 90px;
  display: grid;
  gap: 21px;
}
.inquiry-form label {
  display: grid;
  gap: 7px;
  font-weight: 650;
}
.inquiry-form input:not([type="checkbox"]),
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  background: white;
  border: 1px solid #bfc4cc;
  border-radius: 6px;
  padding: 12px;
  resize: vertical;
}
.inquiry-form .agree {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.agree a {
  text-decoration: underline;
}
.inquiry-form button {
  border: 0;
  justify-content: center;
}
.mobile-categories {
  display: none;
}
@media (max-width: 1150px) {
  .quick-consult {
    inset: auto 15px 12px auto;
    transform: none;
    display: flex;
  }
  .quick-consult a {
    padding: 9px 14px;
  }
  .quick-consult a + a {
    border-top: 0;
    border-left: 1px solid #ddd;
  }
  .footer {
    padding-bottom: 85px;
  }
}
@media (max-width: 820px) {
  .mobile-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
  }
  .main-nav.is-open {
    max-height: 72vh;
    overflow: auto;
  }
  .selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .selection-info,
  .selection-model {
    min-height: 280px;
  }
}
@media (max-width: 580px) {
  .model-tabs {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 5px;
  }
  .model-tabs a {
    white-space: nowrap;
    font-size: 13px;
  }
  .selection-head {
    align-items: start;
  }
  .selection-head h2 {
    max-width: 220px;
  }
  .selection-grid {
    gap: 10px;
  }
  .selection-info {
    grid-column: 1/-1;
    min-height: 0;
    position: relative;
    padding-right: 33%;
  }
  .group-photo {
    position: absolute;
    width: 31%;
    right: 5px;
    bottom: 12px;
  }
  .group-photo img {
    height: 90px;
  }
  .selection-model {
    padding: 13px;
    min-height: 210px;
  }
  .selection-model img {
    height: 140px;
  }
  .selection-model h3 {
    font-size: 19px;
  }
  .group-banner > .wide {
    padding-block: 35px;
    gap: 10px;
    flex-direction: column;
  }
  .group-banner img {
    height: 200px;
    width: 300px;
  }
  .group-page section {
    padding-block: 35px;
  }
  .quick-consult {
    inset: auto 0 0;
    border-radius: 0;
    justify-content: stretch;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quick-consult a {
    flex: 1;
    flex-direction: row;
    padding: 13px 4px;
    font-size: 12px;
  }
  .quick-consult svg {
    width: 16px;
  }
}
@media (min-width: 821px) {
  .selection-grid:has(> .selection-model:last-child:nth-child(2)) {
    grid-template-columns: 1fr 1.4fr;
  }
  .selection-grid:has(> .selection-model:last-child:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1600px) {
  .equipment-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 22px;
  }
  .selection-head {
    display: contents;
  }
  .selection-head h2 {
    grid-column: 1;
    grid-row: 1;
  }
  .selection-head > a {
    grid-column: 3;
    grid-row: 1;
  }
  .model-tabs {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }
  .model-tabs a {
    padding-inline: 12px;
  }
  .selection-grid {
    grid-column: 1/-1;
    margin-top: 24px;
  }
}

/* Let a single product use the available space in its category card. */
#equipment .group-photo:has(> img:only-child) {
  position: static;
  flex: 1 0 auto;
  align-items: center;
  width: 100%;
  margin: 0;
  padding-top: 12px;
}
#equipment .group-photo > img:only-child {
  width: 100%;
  height: clamp(176px, 13vw, 232px);
  object-fit: contain;
}
@media (max-width: 580px) {
  #equipment .selection-info:has(.group-photo > img:only-child) {
    padding-right: clamp(19px, 2.15vw, 37px);
  }
  #equipment .group-photo > img:only-child {
    height: clamp(150px, 42vw, 195px);
  }
}
