:root {
  --ego-site-header-height: 78px;
  --ego-header-height: 78px;
  --ego-header-ink: #151931;
  --ego-header-muted: #686b7b;
  --ego-header-border: #dedfd8;
  --ego-header-surface: rgba(244, 244, 239, 0.94);
  --ego-header-card: #ffffff;
  --ego-header-primary: #fd3500;
  --ego-header-primary-hover: #e93000;
  --ego-header-tint: #ffe9e2;
}

html {
  scroll-padding-top: calc(var(--ego-site-header-height) + 20px);
}

.ego-site-header,
.ego-site-header *,
.ego-site-header *::before,
.ego-site-header *::after {
  box-sizing: border-box;
}

.ego-site-header {
  position: fixed;
  z-index: 10050;
  top: 0;
  right: 0;
  left: 0;
  height: var(--ego-site-header-height);
  border-bottom: 1px solid rgba(21, 25, 49, 0.12);
  background: var(--ego-header-surface);
  box-shadow: 0 8px 28px rgba(21, 25, 49, 0.06);
  color: var(--ego-header-ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.ego-site-header a,
.ego-site-header button {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
}

.ego-site-header button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ego-site-header a:focus-visible,
.ego-site-header button:focus-visible {
  outline: 3px solid rgba(253, 53, 0, 0.38);
  outline-offset: 3px;
}

.ego-header-shell {
  width: min(calc(100% - 40px), 1440px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ego-header-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-width: 66px;
}

.ego-header-brand img {
  display: block;
  width: 62px;
  height: 35px;
  object-fit: contain;
}

.ego-header-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.25vw, 22px);
  margin-left: auto;
  font-size: 14px;
  font-weight: 650;
}

.ego-header-nav-link,
.ego-header-solutions-toggle {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.ego-header-nav-link::after,
.ego-header-solutions-toggle::before {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--ego-header-primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.ego-header-nav-link:hover,
.ego-header-solutions-toggle:hover,
.ego-header-nav-link.is-active,
.ego-header-solutions-toggle.is-active,
.ego-header-solutions-toggle[aria-expanded="true"] {
  color: var(--ego-header-primary);
}

.ego-header-nav-link.is-active::after,
.ego-header-solutions-toggle.is-active::before,
.ego-header-solutions-toggle[aria-expanded="true"]::before {
  opacity: 1;
  transform: scaleX(1);
}

.ego-header-solutions {
  position: relative;
}

.ego-header-chevron {
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.ego-header-solutions-toggle[aria-expanded="true"] .ego-header-chevron {
  transform: rotate(180deg);
}

.ego-header-solutions-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -18px;
  width: min(650px, calc(100vw - 40px));
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  border: 1px solid var(--ego-header-border);
  border-radius: 18px;
  background: var(--ego-header-card);
  box-shadow: 0 24px 70px rgba(21, 25, 49, 0.18);
}

.ego-header-solutions-menu[hidden] {
  display: none !important;
}

.ego-header-menu-group {
  min-width: 0;
}

.ego-header-menu-heading {
  margin: 0 0 8px;
  padding: 0 10px 10px;
  border-bottom: 1px solid #ededeb;
}

.ego-header-menu-heading strong,
.ego-header-menu-heading small {
  display: block;
}

.ego-header-menu-heading strong {
  font-size: 14px;
  font-weight: 800;
}

.ego-header-menu-heading small {
  margin-top: 3px;
  color: var(--ego-header-muted);
  font-size: 12px;
  font-weight: 500;
}

.ego-header-solution-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: #333746 !important;
  font-size: 13px;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.ego-header-solution-link:hover {
  background: #f5f5f2;
  color: var(--ego-header-primary) !important;
  transform: translateX(2px);
}

.ego-header-solution-link.is-active {
  background: var(--ego-header-tint);
  color: #b42800 !important;
  font-weight: 800;
}

.ego-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ego-header-icon-link,
.ego-header-mobile-call,
.ego-header-menu-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 25, 49, 0.14) !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64) !important;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.ego-header-icon-link:hover,
.ego-header-mobile-call:hover,
.ego-header-menu-toggle:hover {
  border-color: rgba(253, 53, 0, 0.45) !important;
  background: var(--ego-header-tint) !important;
  color: var(--ego-header-primary);
}

.ego-header-icon-link svg,
.ego-header-mobile-call svg {
  width: 19px;
  height: 19px;
}

.ego-header-phone {
  padding: 8px 2px;
  white-space: nowrap;
  font-size: 13px !important;
  font-weight: 750 !important;
  transition: color 160ms ease;
}

.ego-header-phone:hover {
  color: var(--ego-header-primary);
}

.ego-header-login,
.ego-header-pilot {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13px !important;
  font-weight: 800 !important;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ego-header-login {
  border: 1px solid rgba(21, 25, 49, 0.3);
  background: rgba(255, 255, 255, 0.56);
}

.ego-header-login:hover {
  border-color: var(--ego-header-primary);
  background: var(--ego-header-card);
  color: var(--ego-header-primary);
}

.ego-header-pilot {
  border: 1px solid var(--ego-header-primary);
  background: var(--ego-header-primary);
  box-shadow: 0 9px 22px rgba(253, 53, 0, 0.2);
  color: #ffffff !important;
}

.ego-header-pilot:hover {
  border-color: var(--ego-header-primary-hover);
  background: var(--ego-header-primary-hover);
  box-shadow: 0 12px 28px rgba(253, 53, 0, 0.27);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.ego-header-mobile-actions,
.ego-header-mobile-utilities {
  display: none;
}

.ego-site-header + #ego-pricing {
  padding-top: var(--ego-site-header-height) !important;
}

body.ego-header-menu-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  :root {
    --ego-site-header-height: 68px;
    --ego-header-height: 68px;
  }

  .ego-site-header {
    background: rgba(244, 244, 239, 0.98);
  }

  .ego-header-shell {
    width: min(calc(100% - 28px), 1440px);
    gap: 12px;
  }

  .ego-header-brand img {
    width: 56px;
    height: 32px;
  }

  .ego-header-actions {
    display: none;
  }

  .ego-header-mobile-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ego-header-mobile-call,
  .ego-header-menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .ego-header-menu-toggle {
    position: relative;
    flex-direction: column;
    gap: 5px;
  }

  .ego-header-menu-toggle span {
    width: 17px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .ego-header-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .ego-header-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .ego-header-nav {
    position: fixed;
    z-index: 10049;
    top: var(--ego-site-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    min-width: 0;
    margin: 0;
    padding: 16px max(18px, calc((100vw - 720px) / 2)) 28px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--ego-header-border);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(21, 25, 49, 0.18);
    font-size: 16px;
  }

  .ego-site-header[data-menu-open="true"] .ego-header-nav {
    display: flex;
  }

  .ego-header-nav-link,
  .ego-header-solutions-toggle {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    padding: 0 4px;
    border-bottom: 1px solid #ededeb !important;
  }

  .ego-header-nav-link::after,
  .ego-header-solutions-toggle::before {
    display: none;
  }

  .ego-header-solutions {
    width: 100%;
  }

  .ego-header-solutions-menu {
    position: static;
    width: 100%;
    margin: 8px 0 14px;
    padding: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    border-radius: 14px;
    background: #f8f8f5;
    box-shadow: none;
  }

  .ego-header-solution-link {
    min-height: 42px;
    background: rgba(255, 255, 255, 0.66);
    font-size: 14px;
  }

  .ego-header-mobile-utilities {
    margin-top: 16px;
    display: grid;
    gap: 12px;
  }

  .ego-header-mobile-contacts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ego-header-muted);
    font-size: 14px;
    font-weight: 700;
  }

  .ego-header-mobile-contacts a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .ego-header-mobile-contacts svg {
    width: 18px;
    height: 18px;
  }

  .ego-header-mobile-buttons {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 10px;
  }

  .ego-header-mobile-buttons .ego-header-login,
  .ego-header-mobile-buttons .ego-header-pilot {
    width: 100%;
    min-height: 48px;
    padding-inline: 13px;
  }
}

@media (max-width: 680px) {
  .ego-header-solutions-menu {
    grid-template-columns: 1fr;
  }

  .ego-header-mobile-contacts {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .ego-header-mobile-buttons {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ego-site-header *,
  .ego-site-header *::before,
  .ego-site-header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .ego-site-header {
    display: none !important;
  }

  .ego-site-header + #ego-pricing {
    padding-top: 0 !important;
  }
}
