.hd-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hd-nav-shell {
  position: relative;
  display: flex;
  min-height: 66px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 12px 18px;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.11);
}

.hd-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #222222;
  text-decoration: none;
}

.hd-brand-logo {
  display: flex;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #FF5527;
}

.hd-brand-logo img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
}

.hd-brand-copy {
  min-width: 0;
}

.hd-brand-title {
  display: block;
  color: #222222;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
}

.hd-brand-subtitle {
  display: block;
  max-width: 310px;
  overflow: hidden;
  color: #6C757D;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hd-mobile-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hd-nav-link {
  position: relative;
  color: #222222;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hd-nav-link:hover,
.hd-nav-link-active {
  color: #FF5527;
}

.hd-nav-link-active {
  font-weight: 400;
}

.hd-nav-link-active::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #FF5527;
  content: "";
}

.hd-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hd-nav-install {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #EAEAEA;
  border-radius: 999px;
  background: #FFFFFF;
  color: #6C757D;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hd-nav-install:hover {
  border-color: rgba(255, 85, 39, 0.26);
  background: #FFF4EF;
  color: #FF5527;
  box-shadow: 0 10px 24px rgba(255, 85, 39, 0.12);
  transform: translateY(-1px);
}

.hd-nav-install svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.25;
}

.hd-nav-install-top {
  display: none;
}

.hd-nav-divider {
  width: 1px;
  height: 32px;
  margin: 0 8px;
  background: #EAEAEA;
}

.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hd-btn-primary {
  border: 0;
  border-radius: 12px;
  background: #FF5527;
  box-shadow: 0 14px 30px rgba(255, 85, 39, 0.28);
  color: #FFFFFF;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 600;
}

.hd-btn-primary:hover {
  background: #E9471F;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.hd-btn-secondary {
  border: 0;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.10);
  color: #222222;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
}

.hd-btn-secondary:hover {
  background: #F7F7F7;
  color: #222222;
}

.hd-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  background: #FFFFFF;
  color: #222222;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.05);
}

.hd-menu-toggle span {
  display: grid;
  gap: 5px;
}

.hd-menu-toggle i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hd-site-header a:focus-visible,
.hd-site-header button:focus-visible {
  outline: 3px solid rgba(255, 85, 39, 0.25);
  outline-offset: 3px;
}

@media (max-width: 1160px) {
  .hd-nav {
    gap: 12px;
  }

  .hd-mobile-menu {
    gap: 12px;
  }

  .hd-brand-title {
    font-size: 18px;
  }

  .hd-brand-subtitle {
    max-width: 190px;
  }

  .hd-brand-logo {
    width: 48px;
    height: 48px;
  }

  .hd-brand-logo img {
    width: 33px;
    height: 33px;
  }

  .hd-nav-link,
  .hd-btn {
    font-size: 12px;
  }

  .hd-btn-primary {
    padding: 12px 18px;
  }

  .hd-btn-secondary {
    padding: 11px 16px;
  }

  .hd-nav-divider {
    margin: 0 2px;
  }
}

@media (max-width: 900px) {
  .hd-site-header {
    padding: 0;
  }

  .hd-nav-shell {
    min-height: 64px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 12px 16px;
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.07);
  }

  .hd-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hd-brand-logo img {
    width: 28px;
    height: 28px;
  }

  .hd-brand-title {
    font-size: 17px;
  }

  .hd-brand-subtitle {
    max-width: 230px;
    font-size: 11px;
  }

  .hd-menu-toggle {
    display: inline-flex;
  }

  .hd-nav-install-top {
    display: inline-flex;
    margin-left: auto;
  }

  .hd-mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 0;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 12px;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.12);
  }

  body.nav-open .hd-mobile-menu {
    display: flex;
  }

  .hd-mobile-menu .hd-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .hd-mobile-menu .hd-nav-link {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 400;
  }

  .hd-mobile-menu .hd-nav-link-active::after {
    display: none;
  }

  .hd-nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 6px;
  }

  .hd-mobile-menu .hd-nav-install {
    display: none;
  }

  .hd-nav-divider {
    display: none;
  }

  .hd-mobile-menu .hd-btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hd-brand-subtitle {
    display: none;
  }
}
@media (max-width: 767px) {
    body:not(.public-body) #site-nav {
        display: none !important;
        position: absolute !important;
        top: 72px !important;
        left: 16px !important;
        right: 16px !important;
        z-index: 60 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        padding: 12px !important;
        border: 1px solid #EAEAEA !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14) !important;
        backdrop-filter: blur(14px) !important;
    }

    body.nav-open:not(.public-body) #site-nav {
        display: flex !important;
    }

    body:not(.public-body) #site-nav a {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    body:not(.public-body) #site-nav {
        display: flex !important;
    }

    body:not(.public-body) header [data-nav-toggle] {
        display: none !important;
    }
}
