.ax-header,
.ax-menu__panel {
  --ax-accent: #f15f43;
  --ax-accent-dark: #d9472b;
  --ax-dark: #1b1b1b;
  --ax-text: #111111;
  --ax-text-muted: #6b6b6b;
  --ax-border: #e6e2d9;
  --ax-bg: #ffffff;
  --ax-bg-soft: #f7f5f0;
  --ax-radius-sm: 12px;
  --ax-radius-md: 20px;
  --ax-radius-pill: 999px;
  --ax-height: 76px;
  --ax-gutter: clamp(20px, 5.8vw, 84px);
  --ax-shadow: 0 12px 32px rgba(27, 27, 27, 0.12);
  --ax-transition: 0.2s ease;
  --ax-font: 'FuturaNew', Arial, Helvetica, sans-serif;
}

html {
  scroll-padding-top: 76px;
}

.ax-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  border-bottom: 1px solid var(--ax-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  font-family: var(--ax-font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ax-text);
}

.ax-header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  box-sizing: border-box;
  max-width: 1440px;
  height: var(--ax-height);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
}

.ax-header__logo {
  display: block;
  flex-shrink: 0;
  border: 0;
  line-height: 0;
}

.ax-header__logo-img {
  display: block;
  width: auto;
  height: 32px;
  border: 0;
}

.ax-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 28px;
}

.ax-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ax-header .ax-nav__link,
.ax-header .ax-nav__sublink {
  border: 0;
  color: var(--ax-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ax-transition), background-color var(--ax-transition);
}

.ax-header .ax-nav__link:hover,
.ax-header .ax-nav__link:focus-visible,
.ax-header .ax-nav__link[aria-current="page"] {
  color: var(--ax-accent-dark);
}

.ax-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ax-radius-pill);
  background: none;
  color: inherit;
  cursor: pointer;
  transition: color var(--ax-transition);
}

.ax-nav__toggle:hover,
.ax-nav__toggle:focus-visible {
  color: var(--ax-accent-dark);
}

.ax-nav__toggle-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--ax-transition);
}

.ax-nav__sub {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  padding: 10px;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-md);
  background: var(--ax-bg);
  box-shadow: var(--ax-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--ax-transition), transform var(--ax-transition), visibility var(--ax-transition);
}

.ax-nav__sub::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 14px;
}

.ax-header .ax-nav__sublink {
  padding: 10px 12px;
  border-radius: var(--ax-radius-sm);
}

.ax-header .ax-nav__sublink:hover,
.ax-header .ax-nav__sublink:focus-visible,
.ax-header .ax-nav__sublink[aria-current="page"] {
  background: var(--ax-bg-soft);
  color: var(--ax-accent-dark);
}

.ax-nav__item:hover .ax-nav__sub,
.ax-nav__item:focus-within .ax-nav__sub,
.ax-nav__item.is-open .ax-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ax-nav__item:hover .ax-nav__toggle-icon,
.ax-nav__item.is-open .ax-nav__toggle-icon {
  transform: rotate(180deg);
}

.ax-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.ax-header .ax-header__phone {
  border: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ax-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ax-transition);
}

.ax-header .ax-header__phone:hover,
.ax-header .ax-header__phone:focus-visible {
  color: var(--ax-accent-dark);
}

.ax-header .ax-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--ax-radius-pill);
  background: var(--ax-dark);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--ax-transition);
}

.ax-header .ax-header__cta:hover,
.ax-header .ax-header__cta:focus-visible {
  background: #000000;
  color: #ffffff;
}

.ax-menu {
  display: none;
  position: relative;
}

.ax-menu__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ax-dark);
  border-radius: var(--ax-radius-pill);
  list-style: none;
  cursor: pointer;
}

.ax-menu__button::-webkit-details-marker {
  display: none;
}

.ax-menu__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ax-menu__panel {
  position: absolute;
  top: 56px;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  padding: 16px;
  overflow-y: auto;
  border: 1px solid var(--ax-border);
  border-radius: var(--ax-radius-md);
  background: var(--ax-bg);
  box-shadow: var(--ax-shadow);
}

.ax-header .ax-menu__link,
.ax-header .ax-menu__sublink {
  border: 0;
  color: var(--ax-dark);
  text-decoration: none;
}

.ax-header .ax-menu__link {
  padding: 12px 8px;
  font-size: 18px;
}

.ax-menu__sub {
  display: flex;
  flex-direction: column;
  margin: 0 0 6px 12px;
  padding-left: 12px;
  border-left: 2px solid var(--ax-border);
}

.ax-header .ax-menu__sublink {
  padding: 8px;
  font-size: 16px;
  color: var(--ax-text-muted);
}

.ax-header .ax-menu__link[aria-current="page"],
.ax-header .ax-menu__sublink[aria-current="page"] {
  color: var(--ax-accent-dark);
}

.ax-header + .header__subnav {
  position: sticky;
  top: var(--ax-height);
  z-index: 1050;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .ax-header__inner {
    gap: 28px;
  }

  .ax-nav {
    gap: 20px;
  }

  .ax-header .ax-header__cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .ax-nav,
  .ax-header .ax-header__phone {
    display: none;
  }

  .ax-menu {
    display: block;
  }
}

@media (max-width: 760px) {
  .ax-header .ax-header__cta {
    display: none;
  }

  .ax-header + .header__subnav {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-header .ax-nav__link,
  .ax-header .ax-nav__sublink,
  .ax-nav__toggle,
  .ax-nav__toggle-icon,
  .ax-nav__sub,
  .ax-header .ax-header__phone,
  .ax-header .ax-header__cta {
    transition: none;
  }
}
