.lpdg-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.lpdg-header__shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.lpdg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 88px;
  padding: 10px 0;
  position: relative;
}

/* LOGO */
.lpdg-header__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 118px;
  min-width: 118px;
  max-width: 118px;
}

.lpdg-header .custom-logo-link,
.lpdg-header .lpdg-header__logo-link {
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
  line-height: 1;
}

.lpdg-header .custom-logo,
.lpdg-header .custom-logo-link img,
.lpdg-header__brand img {
  display: block;
  width: 100% !important;
  max-width: 118px !important;
  height: auto !important;
  max-height: 44px !important;
  object-fit: contain;
}

.lpdg-header__logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #111214;
  letter-spacing: -0.03em;
}

/* NAV DESKTOP */
.lpdg-header__nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex: 1 1 auto;
  min-width: 0;
}

.lpdg-nav {
  min-width: 0;
}

.lpdg-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lpdg-nav__list > li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lpdg-nav__list > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #151515;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.lpdg-nav__list > li.current-menu-item > a::after,
.lpdg-nav__list > li.current-menu-parent > a::after,
.lpdg-nav__list > li > a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: #7ed957;
  border-radius: 999px;
}

/* DROPDOWN DESKTOP */
.lpdg-nav__list .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(20, 28, 45, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 40;
}

.lpdg-nav__list li:hover > .sub-menu,
.lpdg-nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lpdg-nav__list .sub-menu li {
  margin: 0;
  padding: 0;
}

.lpdg-nav__list .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #172033;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
}

.lpdg-nav__list .sub-menu a:hover {
  background: rgba(126, 217, 87, 0.08);
}

/* CTA */
.lpdg-header__cta {
  flex: 0 0 auto;
}

.lpdg-header__cta .lpdg-btn {
  white-space: nowrap;
}

/* TOGGLE MOBILE */
.lpdg-header__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  background: #fff;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  flex: 0 0 auto;
}

.lpdg-header__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #151515;
  border-radius: 999px;
}

/* TABLET/MOBILE */
@media (max-width: 1024px) {
  .lpdg-header__shell {
    width: calc(100% - 24px);
  }

  .lpdg-header__inner {
    min-height: 76px;
    gap: 14px;
  }

  .lpdg-header__brand {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
  }

  .lpdg-header .custom-logo,
  .lpdg-header .custom-logo-link img,
  .lpdg-header__brand img {
    max-width: 92px !important;
    max-height: 34px !important;
  }

  .lpdg-header__toggle {
    display: inline-flex;
  }

  .lpdg-header__nav-wrap {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px;
    background: rgba(250, 250, 247, 0.98);
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(20, 28, 45, 0.12);
  }

  .lpdg-header.is-open .lpdg-header__nav-wrap {
    display: flex;
  }

  .lpdg-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .lpdg-nav__list > li > a {
    width: 100%;
    min-height: 42px;
    font-size: 18px;
  }

  .lpdg-nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 100%;
    margin-top: 6px;
    padding: 0 0 0 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: block;
  }

  .lpdg-nav__list .sub-menu a {
    padding: 8px 0;
    font-size: 15px;
  }

  .lpdg-header__cta .lpdg-btn {
    width: 100%;
    justify-content: center;
  }
}