#amx-header {
  --amx-red: #bb1111;
  --amx-red-dark: #981010;
  --amx-white: #ffffff;
  --amx-text: #171717;
  --amx-text-soft: #727272;
  --amx-line: rgba(187, 17, 17, 0.10);
  --amx-line-soft: rgba(0, 0, 0, 0.08);
  --amx-bg-soft: #fff6f6;
  --amx-shadow: 0 18px 42px rgba(0, 0, 0, 0.10);
  --amx-radius-lg: 24px;
  --amx-radius-md: 16px;
  position: sticky;
  top: 0;
  z-index: 99999;
  width: 100%;
  background: #fff;
  font-family: Inter, Arial, Helvetica, sans-serif;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

#amx-header *,
#amx-header *::before,
#amx-header *::after {
  box-sizing: border-box;
}

#amx-header a,
#amx-header button {
  -webkit-tap-highlight-color: transparent;
}

/* top bar */
#amx-header .amx-topbar {
  width: 100%;
  background: linear-gradient(180deg, #c11616 0%, #b41111 100%);
}

#amx-header .amx-topbar__inner,
#amx-header .amx-mainbar__inner {
  width: 100%;
  padding-left: 28px;
  padding-right: 28px;
}

#amx-header .amx-topbar__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#amx-header .amx-topbar__left,
#amx-header .amx-topbar__right {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

#amx-header .amx-topbar__contact,
#amx-header .amx-topbar__link {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: opacity .2s ease, color .2s ease;
}

#amx-header .amx-topbar__contact:hover,
#amx-header .amx-topbar__link:hover {
  color: #fff;
  opacity: 0.82;
}

#amx-header .amx-topbar__icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  flex: 0 0 14px;
  opacity: 0.95;
}

#amx-header .amx-topbar__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* main bar */
#amx-header .amx-mainbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

#amx-header .amx-mainbar__inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  position: relative;
}

#amx-header .amx-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

#amx-header .amx-brand__logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 86px;
  max-width: 290px;
}

#amx-header .amx-mobile-call {
  display: none;
}

/* desktop nav */
#amx-header .amx-nav--desktop {
  display: flex;
  justify-content: center;
  min-width: 0;
}

#amx-header .amx-menu {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  align-items: center;
}

#amx-header .amx-menu__item {
  position: relative;
}

#amx-header .amx-menu__link,
#amx-header .amx-menu__toggle {
  min-height: 42px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--amx-text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
  white-space: nowrap;
}

#amx-header .amx-menu__link:hover,
#amx-header .amx-menu__toggle:hover,
#amx-header .amx-menu__item.is-open > .amx-menu__toggle {
  background: var(--amx-bg-soft);
  color: var(--amx-red);
}

#amx-header .amx-menu__chevron,
#amx-header .amx-mobile-toggle__chevron {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform .25s ease;
  flex: 0 0 auto;
}

#amx-header .amx-menu__item.is-open .amx-menu__chevron,
#amx-header .amx-mobile-group.is-open .amx-mobile-toggle__chevron {
  transform: rotate(180deg);
}

/* dropdown */
#amx-header .amx-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 340px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 20;
}

#amx-header .amx-dropdown--wide {
  min-width: 780px;
}

#amx-header .amx-menu__item.is-open > .amx-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#amx-header .amx-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--amx-white);
  border: 1px solid var(--amx-line-soft);
  border-radius: var(--amx-radius-lg);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.10);
  padding: 20px;
  text-align: left;
}

#amx-header .amx-dropdown__grid--single {
  grid-template-columns: 1fr;
  min-width: 320px;
}

#amx-header .amx-dropdown__col {
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: left;
}

#amx-header .amx-dropdown__title {
  display: block;
  margin-bottom: 6px;
  color: var(--amx-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#amx-header .amx-dropdown__link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--amx-text);
  font-size: 14px;
  line-height: 1.4;
  text-align: left !important;
  text-justify: auto !important;
  word-spacing: 0 !important;
  letter-spacing: normal !important;
  white-space: normal !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

#amx-header .amx-dropdown__link:hover {
  background: var(--amx-bg-soft);
  color: var(--amx-red);
  transform: translateX(2px);
}

/* actions */
#amx-header .amx-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  position: relative;
  z-index: 2;
}

#amx-header .amx-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

#amx-header .amx-btn:hover {
  transform: translateY(-1px);
}

#amx-header .amx-btn--ghost {
  color: var(--amx-red);
  background: #fff;
  border: 1px solid rgba(187, 17, 17, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

#amx-header .amx-btn--ghost:hover {
  background: var(--amx-bg-soft);
}

#amx-header .amx-btn--solid {
  color: #fff;
  background: linear-gradient(180deg, #c11616 0%, #b41111 100%);
  box-shadow: 0 10px 24px rgba(187, 17, 17, 0.18);
}

#amx-header .amx-btn--solid:hover {
  background: linear-gradient(180deg, #b41111 0%, #9e0f0f 100%);
  box-shadow: 0 12px 28px rgba(187, 17, 17, 0.22);
}

#amx-header .amx-btn__icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  flex: 0 0 15px;
}

#amx-header .amx-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

#amx-header .amx-btn__icon--arrow {
  width: 11px;
  height: 11px;
}

/* burger */
#amx-header .amx-burger {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(187, 17, 17, 0.18);
  background: #fff;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

#amx-header .amx-burger__line {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--amx-red);
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

#amx-header .amx-burger__line:nth-child(1) {
  top: 17px;
}

#amx-header .amx-burger__line:nth-child(2) {
  top: 24px;
}

#amx-header .amx-burger__line:nth-child(3) {
  top: 31px;
}

#amx-header.is-mobile-open .amx-burger__line:nth-child(1) {
  top: 24px;
  transform: rotate(45deg);
}

#amx-header.is-mobile-open .amx-burger__line:nth-child(2) {
  opacity: 0;
}

#amx-header.is-mobile-open .amx-burger__line:nth-child(3) {
  top: 24px;
  transform: rotate(-45deg);
}

/* mobile panel */
#amx-header .amx-mobile-panel {
  display: none;
  width: 100%;
  border-top: 1px solid var(--amx-line);
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.04);
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#amx-header .amx-mobile-panel__inner {
  width: 100%;
  padding: 14px 16px 22px;
  display: grid;
  gap: 8px;
}

#amx-header .amx-mobile-link,
#amx-header .amx-mobile-toggle {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--amx-text);
  border-radius: 16px;
  text-decoration: none;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

#amx-header .amx-mobile-link:hover,
#amx-header .amx-mobile-toggle:hover {
  background: var(--amx-bg-soft);
  color: var(--amx-red);
}

#amx-header .amx-mobile-submenu {
  display: none;
  padding: 4px 0 8px;
}

#amx-header .amx-mobile-group.is-open .amx-mobile-submenu {
  display: grid;
}

#amx-header .amx-mobile-sublink {
  text-decoration: none;
  color: var(--amx-text);
  padding: 11px 14px 11px 24px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  word-spacing: normal;
  letter-spacing: normal;
}

#amx-header .amx-mobile-sublink:hover {
  background: var(--amx-bg-soft);
  color: var(--amx-red);
}

#amx-header .amx-mobile-contact {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--amx-line);
}

#amx-header .amx-mobile-contact__item {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--amx-text);
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  border-radius: 14px;
}

#amx-header .amx-mobile-contact__item:hover {
  background: var(--amx-bg-soft);
  color: var(--amx-red);
}

#amx-header .amx-mobile-contact__icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  flex: 0 0 15px;
}

#amx-header .amx-mobile-contact__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

#amx-header .amx-mobile-cta {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--amx-line);
}

#amx-header .amx-mobile-cta__btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

#amx-header .amx-mobile-cta__btn--ghost {
  border: 1px solid rgba(187, 17, 17, 0.18);
  color: var(--amx-red);
  background: #fff;
}

#amx-header .amx-mobile-cta__btn--solid {
  background: linear-gradient(180deg, #c11616 0%, #b41111 100%);
  color: #fff;
}

#amx-header .amx-mobile-cta__icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  flex: 0 0 15px;
}

#amx-header .amx-mobile-cta__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

#amx-header .amx-mobile-cta__icon--arrow {
  width: 11px;
  height: 11px;
}

@media (max-width: 1260px) {
  #amx-header .amx-mainbar__inner {
    gap: 18px;
  }

  #amx-header .amx-menu {
    gap: 1px;
  }

  #amx-header .amx-menu__link,
  #amx-header .amx-menu__toggle {
    padding: 0 8px;
    font-size: 13px;
    gap: 7px;
  }

  #amx-header .amx-dropdown--wide {
    min-width: 680px;
  }
}

@media (max-width: 1140px) {
  #amx-header .amx-brand__logo {
    max-height: 78px;
    max-width: 260px;
  }

  #amx-header .amx-btn {
    padding: 0 15px;
  }
}

@media (max-width: 1080px) {
  #amx-header .amx-nav--desktop,
  #amx-header .amx-actions .amx-btn,
  #amx-header .amx-topbar__right {
    display: none;
  }

  #amx-header .amx-topbar__inner {
    min-height: 42px;
  }

  #amx-header .amx-topbar__left {
    gap: 14px;
  }

  #amx-header .amx-topbar__contact {
    font-size: 12px;
  }

  #amx-header .amx-mainbar__inner {
    min-height: 88px;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 0;
    position: relative;
  }

  #amx-header .amx-mobile-call {
    grid-column: 1;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    border-radius: 14px;
    border: 1px solid rgba(187, 17, 17, 0.18);
    background: #fff;
    text-decoration: none;
    color: var(--amx-red);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 3;
  }

  #amx-header .amx-mobile-call__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    flex: 0 0 18px;
  }

  #amx-header .amx-mobile-call__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
  }

  #amx-header .amx-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  #amx-header .amx-brand__logo {
    max-height: 58px;
    max-width: 200px;
  }

  #amx-header .amx-actions {
    grid-column: 3;
    justify-self: end;
    width: 46px;
    display: flex;
    justify-content: flex-end;
    z-index: 3;
  }

  #amx-header .amx-burger {
    width: 46px;
    height: 46px;
    display: inline-flex;
    border-radius: 14px;
  }

  #amx-header .amx-mobile-panel {
    display: block;
    max-height: calc(100dvh - 88px);
  }
}

@media (max-width: 760px) {
  #amx-header .amx-topbar {
    display: none;
  }

  #amx-header .amx-topbar__inner,
  #amx-header .amx-mainbar__inner,
  #amx-header .amx-mobile-panel__inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  #amx-header .amx-mainbar__inner {
    min-height: 82px;
    grid-template-columns: 46px 1fr 46px;
  }

  #amx-header .amx-mobile-panel {
    max-height: calc(100dvh - 82px);
  }

  #amx-header .amx-mobile-panel__inner {
    padding-top: 14px;
    padding-bottom: 20px;
  }

  #amx-header .amx-brand__logo {
    max-height: 52px;
    max-width: 176px;
  }

  #amx-header .amx-mobile-call,
  #amx-header .amx-burger,
  #amx-header .amx-actions {
    width: 44px;
  }

  #amx-header .amx-mobile-call,
  #amx-header .amx-burger {
    height: 44px;
    border-radius: 14px;
  }

  #amx-header .amx-burger__line:nth-child(1) {
    top: 14px;
  }

  #amx-header .amx-burger__line:nth-child(2) {
    top: 21px;
  }

  #amx-header .amx-burger__line:nth-child(3) {
    top: 28px;
  }

  #amx-header.is-mobile-open .amx-burger__line:nth-child(1),
  #amx-header.is-mobile-open .amx-burger__line:nth-child(3) {
    top: 21px;
  }
}

@media (max-width: 380px) {
  #amx-header .amx-brand__logo {
    max-height: 48px;
    max-width: 160px;
  }

  #amx-header .amx-mobile-panel {
    max-height: calc(100dvh - 78px);
  }
}