/* Masthead and footer shared by the catalogue and article. */
.brand-header,
.brand-footer {
  --brand-red: #ed1c24;
  line-height: 1.5;
}

.brand-header {
  position: relative;
  z-index: 10;
}

.brand-header .brand-shell,
.brand-footer .brand-shell {
  width: min(1200px, calc(100% - 24px));
  margin-inline: auto;
}

.brand-header .contact-strip {
  background: var(--brand-red);
  color: #f5f5f5;
  font-size: 13px;
}

.brand-header .contact-row,
.brand-header .contact-links,
.brand-header .contact-links a,
.brand-header .language-links,
.brand-header .banner-row {
  display: flex;
  align-items: center;
}

.brand-header .contact-row {
  min-height: 34px;
  justify-content: space-between;
}

.brand-header .contact-links { gap: 12px; }
.brand-header .contact-links a { color: inherit; gap: 4px; }
.brand-header .contact-links svg { width: 16px; height: 16px; }
.brand-header .contact-links .phone-mobile,
.brand-header .contact-row .language-links { display: none; }

.brand-header .brand-banner {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px #0000001a;
}

.brand-header .banner-row { min-height: 70px; gap: 15px; }
.brand-header .brand-logo { flex-shrink: 0; }
.brand-header .brand-logo img { display: block; width: auto; height: 60px; }

.brand-header .main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  margin-left: auto;
}

.brand-header .main-nav a {
  display: block;
  color: var(--brand-red);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.brand-header .main-nav > a,
.brand-header .nav-group > a {
  line-height: 40px;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

.brand-header .main-nav a.current,
.brand-header .main-nav a:hover,
.brand-header .main-nav a:focus-visible { text-decoration-line: underline; }
.brand-header .nav-group { position: relative; }

.brand-header .nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 220px;
  padding: 4px 0;
  background: #fff;
  box-shadow: 1px 4px 9px #0002;
}

.brand-header .nav-group:hover .nav-submenu,
.brand-header .nav-group:focus-within .nav-submenu { display: block; }
.brand-header .nav-submenu a {
  padding: 7px 12px;
  color: #222;
  font-size: 14px;
  white-space: normal;
}

.brand-header .language-links { gap: 7px; flex-shrink: 0; }
.brand-header .banner-row > .language-links { margin-left: 14px; }
.brand-header .language-links a { display: block; line-height: 0; }
.brand-header .language-links img { width: 28px; height: 18px; border-radius: 3px; }

.brand-header .search-shortcut,
.brand-header .menu-toggle {
  color: var(--brand-red);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.brand-header .search-shortcut { display: flex; min-height: 40px; }
.brand-header .search-shortcut svg { width: 18px; height: 18px; }
.brand-header .menu-toggle { display: none; background: none; border: 0; }

.brand-footer { background: #fff; color: #151515; font-size: 15px; }
.brand-footer .footer-columns {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.1fr) minmax(0, .92fr) minmax(0, 1fr);
  gap: 28px;
  padding-block: 60px;
}
.brand-footer h2,
.brand-footer h3 {
  color: var(--brand-red);
  margin: 0 0 15px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  text-transform: uppercase;
}
.brand-footer a { color: inherit; }
.brand-footer a:hover,
.brand-footer a:focus-visible { color: var(--brand-red); }
.brand-footer p { margin: 0; line-height: 25px; overflow-wrap: anywhere; }
.brand-footer ul { list-style: none; padding: 0; margin: 0; }
.brand-footer .footer-list li { padding: 7px 0; border-bottom: 1px solid #ececec; }
.brand-footer .social-list { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.brand-footer .copyright {
  border-top: 1px solid #ececec;
  color: var(--brand-red);
  padding: 15px 0;
  text-align: center;
}

@media (max-width: 1100px) {
  .brand-header .brand-shell { width: calc(100% - 10px); }
  .brand-header .contact-strip { background: #f4f4f4; color: #333; font-size: 16px; }
  .brand-header .contact-row { min-height: 40px; }
  .brand-header .company-name,
  .brand-header .contact-links .contact-email,
  .brand-header .contact-links .phone-desktop,
  .brand-header .banner-row > .language-links { display: none; }
  .brand-header .contact-links .phone-mobile { display: block; }
  .brand-header .contact-row .language-links { display: flex; gap: 5px; }
  .brand-header .language-links img { height: 20px; border-radius: 0; }
  .brand-header .brand-banner { box-shadow: none; }
  .brand-header .banner-row {
    position: relative;
    min-height: 80px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0;
  }
  .brand-header .brand-logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .brand-header .brand-logo img { max-width: 100%; object-fit: contain; }
  .brand-header .menu-toggle,
  .brand-header .search-shortcut {
    display: flex;
    min-height: 44px;
    padding: 0;
    grid-row: 1;
  }
  .brand-header .menu-toggle { grid-column: 1; justify-content: flex-start; }
  .brand-header .menu-toggle svg { width: 29px; height: 29px; }
  .brand-header .search-shortcut { grid-column: 3; }
  .brand-header .main-nav {
    display: none;
    position: absolute;
    inset: 100% -5px auto;
    align-items: stretch;
    gap: 0;
    padding: 9px 16px 14px;
    margin: 0;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 6px 12px #0002;
  }
  .brand-header .main-nav.open { display: flex; flex-direction: column; }
  .brand-header .main-nav > a,
  .brand-header .nav-group > a {
    line-height: 1.5;
    padding: 9px 0;
    border: 0;
    text-underline-offset: 4px;
  }
  .brand-header .nav-submenu {
    display: block;
    position: static;
    padding: 0 0 4px 12px;
    box-shadow: none;
    min-width: 0;
  }
  .brand-header .nav-submenu a {
    padding: 5px 0;
    border: 0;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
  }
  .brand-footer .brand-shell { width: 96%; }
  .brand-footer .footer-columns { grid-template-columns: 1fr; gap: 20px; }
}
