@media (min-width: 761px) {
  html body[class] .catalog-nav { position: relative; }
  html body[class] .catalog-dropdown {
    position: absolute !important;
    top: calc(100% - 8px) !important;
    left: -24px !important;
    right: auto !important;
    max-width: calc(100vw - 40px);
  }
  html body[class] #catalog-dropdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 640px;
    gap: 28px;
    padding: 28px;
  }
  html body[class] #catalog-dropdown .industrial-group { border-top: 0; padding-top: 0; }
}

html body.ref-page .catalog-zone,
html body.ref-page .enquiry-section,
html body.ref-page .factory-gallery,
html body.ref-page .company-facts,
html body.ref-page .partners-section { margin-bottom: 56px !important; }
@media (max-width: 760px) {
  html body.ref-page .catalog-zone,
  html body.ref-page .enquiry-section,
  html body.ref-page .factory-gallery,
  html body.ref-page .company-facts,
  html body.ref-page .partners-section { margin-bottom: 36px !important; }
}

#enquiry-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
}

@media (min-width: 761px) {
  body.ref-page .catalog-mosaic > :is(#ex-alarms, #ex-controls)[open] {
    display: flex;
    flex-direction: column;
  }

  body.ref-page .catalog-mosaic > :is(#ex-alarms, #ex-controls)[open]::details-content {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  body.ref-page .catalog-mosaic > :is(#ex-alarms, #ex-controls)[open] > .product-description {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  body.ref-page .catalog-mosaic > :is(#ex-alarms, #ex-controls)[open] > .product-description > a {
    align-self: flex-start;
    margin-top: auto;
  }
}
