:root {
  --shared-header-red: #e52b24;
  --shared-header-ink: #171717;
  --shared-header-line: #d9d9d6;
  --shared-header-topbar: #303234;
  --shared-header-max: 1320px;
}

.shared-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: none;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.shared-site-header .header-inner {
  width: min(calc(100% - 64px), var(--shared-header-max));
  max-width: none;
  margin-inline: auto;
}

.shared-site-header .shared-topbar {
  background: var(--shared-header-topbar);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.shared-site-header .shared-topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}

.shared-site-header .shared-topbar-inner > span {
  color: rgba(255, 255, 255, 0.76);
}

.shared-site-header .shared-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.shared-site-header .shared-topbar-actions a {
  color: #ffffff;
  white-space: nowrap;
}

.shared-site-header .shared-topbar-actions a:hover {
  color: #ff746f;
}

.shared-site-header .shared-header-main {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0;
}

.shared-site-header .brand {
  flex: 0 0 auto;
  max-width: none;
}

.shared-site-header .brand img {
  width: 230px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

.shared-site-header .menu-toggle {
  width: auto;
  min-width: 92px;
  flex: 0 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--shared-header-line);
  border-radius: 3px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--shared-header-ink);
  box-shadow: none;
}

.shared-site-header .menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
}

.shared-site-header .menu-toggle strong {
  margin-left: 4px;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.shared-site-header.is-open .menu-toggle {
  border-color: rgba(229, 43, 36, 0.4);
  color: var(--shared-header-red);
}

.shared-site-header .shared-nav {
  position: static;
  width: auto;
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 30px;
  padding: 0;
  color: var(--shared-header-ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.shared-site-header .shared-nav > a {
  position: relative;
  width: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  color: inherit;
  white-space: nowrap;
}

.shared-site-header .shared-nav > a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--shared-header-red);
  content: "";
  opacity: 0;
  transform: scaleX(0.25);
  transition: opacity 160ms ease, transform 160ms ease;
}

.shared-site-header .shared-nav > a:hover::after,
.shared-site-header .shared-nav > a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.shared-site-header .shared-nav .shared-contact-link {
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid var(--shared-header-ink);
  border-radius: 3px;
}

.shared-site-header .shared-nav .shared-contact-link::after {
  display: none;
}

.shared-site-header .shared-nav .shared-contact-link:hover,
.shared-site-header .shared-nav .shared-contact-link[aria-current="page"] {
  border-color: var(--shared-header-red);
  background: var(--shared-header-red);
  color: #ffffff;
}

@media (max-width: 980px) {
  .shared-site-header .header-inner {
    width: min(calc(100% - 40px), var(--shared-header-max));
  }

  .shared-site-header .shared-header-main {
    min-height: 78px;
  }

  .shared-site-header .brand img {
    width: 190px;
  }

  .shared-site-header .menu-toggle {
    display: inline-flex !important;
  }

  .shared-site-header .shared-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none !important;
    width: 100%;
    max-height: calc(100svh - 112px);
    overflow-y: auto;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 22px;
    border-top: 1px solid var(--shared-header-line);
    border-bottom: 1px solid var(--shared-header-line);
    background: #ffffff;
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.14);
  }

  .shared-site-header.is-open .shared-nav {
    display: grid !important;
  }

  .shared-site-header .shared-nav > a,
  .shared-site-header .shared-nav .shared-contact-link {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid var(--shared-header-line);
    border-radius: 0;
    background: transparent;
    color: var(--shared-header-ink);
    white-space: normal;
  }

  .shared-site-header .shared-nav > a::after {
    display: none;
  }

  .shared-site-header .shared-nav .shared-contact-link:hover,
  .shared-site-header .shared-nav .shared-contact-link[aria-current="page"] {
    background: transparent;
    color: var(--shared-header-red);
  }
}

@media (max-width: 640px) {
  .shared-site-header .header-inner {
    width: min(calc(100% - 30px), var(--shared-header-max));
  }

  .shared-site-header .shared-topbar-inner {
    min-height: 34px;
    padding: 0;
  }

  .shared-site-header .shared-topbar-inner > span {
    display: none;
  }

  .shared-site-header .shared-topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
  }

  .shared-site-header .shared-header-main {
    min-height: 72px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .shared-site-header .brand {
    max-width: calc(100% - 108px);
  }

  .shared-site-header .brand img {
    width: 164px;
  }

  .shared-site-header .menu-toggle {
    width: 96px;
    min-width: 96px;
    flex: 0 0 96px;
    padding: 9px 10px;
  }

  .shared-site-header .shared-nav {
    max-height: calc(100svh - 106px);
  }
}

@media (max-width: 360px) {
  .shared-site-header .shared-topbar-actions {
    font-size: 10px;
  }

  .shared-site-header .brand img {
    width: 150px;
  }
}
