.site-flag {
  display: block;
  width: 84px;
  height: 56px;
  flex: none;
}

body > .flag-header {
  gap: clamp(12px, 2vw, 30px);
}

body > .flag-header nav {
  margin-left: auto;
}

#nv-catalog .flag-header {
  position: relative;
  padding-right: 124px;
}

#nv-catalog .site-flag {
  position: absolute;
  top: 24px;
  right: 24px;
}

/* Keep the equipment artwork visible and place its flag in the shared header. */
.application-art {
  aspect-ratio: 1224 / 1307;
  align-self: center;
  display: block;
  overflow: hidden;
}

@media (max-width: 1040px) {
  body > .flag-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 8px;
  }

  .flag-header .brand {
    width: min(238px, 100%);
  }

  .flag-header .brand img {
    width: 100%;
  }

  body > .flag-header nav {
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

@media (max-width: 640px) {
  #nv-catalog .flag-header {
    padding-right: 110px;
  }

  #nv-catalog .site-flag {
    top: 18px;
    right: 14px;
  }
}
