.dwc-megamenu {
  --dwc-menu-green: #063b28;
  --dwc-menu-gold: #d4af37;
  --dwc-menu-border: #dfe6e2;
  position: relative;
  z-index: 20;
  background: var(--dwc-global-main-bg, var(--dwc-menu-green));
  border-bottom: 3px solid var(--dwc-global-accent, var(--dwc-menu-gold));
  width: 100%;
}

.dwc-megamenu__inner { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.dwc-megamenu__list { display: flex; align-items: stretch; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.dwc-megamenu__item { position: relative; }
.dwc-megamenu__link { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 22px; color: var(--dwc-global-main-text, #fff); background: var(--dwc-global-main-bg, var(--dwc-menu-green)); font-size: 16px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.dwc-megamenu__link:hover, .dwc-megamenu__link:focus-visible, .dwc-megamenu__item.is-open > .dwc-megamenu__link { filter: brightness(1.12); color: var(--dwc-global-main-hover, var(--dwc-menu-gold)); outline: none; }
.dwc-megamenu__chevron { font-size: 22px; line-height: 1; transform: translateY(-2px); }
.dwc-megamenu__panel { position: absolute; top: 100%; left: 50%; box-sizing: border-box; width: min(960px, calc(100vw - 32px)); padding: 8px 24px; background: var(--dwc-global-submenu-bg, #fff); border: 1px solid var(--dwc-menu-border); box-shadow: 0 14px 32px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease; }
.dwc-megamenu__item:hover > .dwc-megamenu__panel, .dwc-megamenu__item:focus-within > .dwc-megamenu__panel, .dwc-megamenu__item.is-open > .dwc-megamenu__panel { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.dwc-megamenu__children { display: grid; grid-template-columns: repeat(var(--dwc-menu-columns), minmax(0, 1fr)); gap: 22px 28px; margin: 0; padding: 0; list-style: none; }
.dwc-megamenu__child > a { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding-bottom: 9px; color: var(--dwc-global-subitem-text, var(--dwc-menu-green)); background: var(--dwc-global-subitem-bg, #fff); border-bottom: 1px solid var(--dwc-menu-border); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.dwc-megamenu__child > a:hover, .dwc-megamenu__grandchildren a:hover { color: var(--dwc-global-subitem-hover, #b08e18); }
.dwc-megamenu__grandchildren { margin: 10px 0 0; padding: 0; list-style: none; }
.dwc-megamenu__grandchildren a { display: block; padding: 4px 0; color: var(--dwc-global-nested-text, #52615b); background: var(--dwc-global-nested-bg, #fff); font-size: 14px; text-decoration: none; }
.dwc-megamenu__badge { padding: 2px 6px; color: var(--dwc-global-badge-text, #063b28); background: var(--dwc-global-badge-bg, #d4af37); font-size: 10px; line-height: 1.4; text-transform: uppercase; }
.dwc-megamenu__custom-icon { flex: 0 0 auto; }
.dwc-megamenu__panel--content { max-width: 720px; }
.dwc-megamenu__content img { max-width: 100%; height: auto; }
.dwc-megamenu__blocks { display: grid; box-sizing: border-box; width: 100%; max-width: 100%; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: 0; }
.dwc-megamenu__block-column { box-sizing: border-box; grid-column: span var(--dwc-column-width, 6); width: 100%; max-width: 100%; min-width: 0; }
.dwc-megamenu__block { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; background: transparent; }
.dwc-megamenu__block + .dwc-megamenu__block { margin-top: 6px; }
.dwc-megamenu__block-title { display: flex; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; align-items: center; gap: 7px; padding: 4px 8px; color: var(--dwc-global-subitem-text, var(--dwc-menu-green)); background: var(--dwc-global-subitem-bg, #fff); border-bottom: 1px solid var(--dwc-menu-border); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.dwc-megamenu__block-title:hover, .dwc-megamenu__block-title:focus-visible { color: var(--dwc-global-subitem-hover, #b08e18); }
.dwc-megamenu__block ul { margin: 8px 0 0; padding: 0; background: var(--dwc-global-nested-bg, #fff); list-style: none; }
.dwc-megamenu__block li a { display: block; padding: 4px 0; color: var(--dwc-global-nested-text, #52615b); text-decoration: none; }
.dwc-megamenu__tree { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.dwc-megamenu__tree .dwc-megamenu__tree { margin-left: 14px; }
.dwc-megamenu__tree-item { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 0; }
.dwc-megamenu__tree-item > a { display: flex; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 4px 0; align-items: center; justify-content: space-between; gap: 12px; color: var(--dwc-global-nested-text, #52615b); background: var(--dwc-global-nested-bg, #fff); text-decoration: none; overflow-wrap: anywhere; }
.dwc-megamenu__tree-item > a:hover, .dwc-megamenu__tree-item > a:focus-visible { color: var(--dwc-global-nested-hover, #b08e18); }
.dwc-megamenu__tree-item > a > span:first-child { min-width: 0; }
.dwc-megamenu__tree-chevron { display: none; flex: 0 0 auto; font-size: 22px; line-height: 1; }
.dwc-megamenu__item--multilevel > .dwc-megamenu__panel { width: min(360px, calc(100vw - 32px)); overflow: hidden; }
.dwc-megamenu__item--multilevel .dwc-megamenu__children { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 0; }
.dwc-megamenu__item--multilevel .dwc-megamenu__tree .dwc-megamenu__tree { margin: 0 0 0 14px; border-left: 1px solid var(--dwc-menu-border); padding-left: 10px; }
.dwc-megamenu__item--dropdown > .dwc-megamenu__panel { width: min(300px, calc(100vw - 32px)); overflow: visible; }
.dwc-megamenu__dropdown-list { box-sizing: border-box; width: 100%; margin: 0; padding: 0; list-style: none; }
.dwc-megamenu__dropdown-entry { box-sizing: border-box; width: 100%; margin: 0; }
.dwc-megamenu__dropdown-entry-link { display: flex; box-sizing: border-box; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--dwc-global-subitem-text, var(--dwc-menu-green)); background: var(--dwc-global-subitem-bg, #fff); border-bottom: 1px solid var(--dwc-menu-border); text-decoration: none; overflow-wrap: anywhere; }
.dwc-megamenu__dropdown-entry-link:hover, .dwc-megamenu__dropdown-entry-link:focus-visible, .dwc-megamenu__dropdown-entry.is-active > .dwc-megamenu__dropdown-entry-link { color: var(--dwc-global-subitem-hover, #b08e18); }
.dwc-megamenu__item--dropdown .dwc-megamenu__tree-chevron { display: inline; }
.dwc-megamenu__item--desktop-main { display: none; }
.dwc-megamenu__item--responsive-main { display: block; }

@media (min-width: 992px) {
  .dwc-megamenu__item--desktop-main { display: block; }
  .dwc-megamenu__item--responsive-main { display: none; }
  .dwc-megamenu__item--dropdown > .dwc-megamenu__panel { padding: 8px 0; }
  .dwc-megamenu__dropdown-content {
    position: absolute;
    z-index: 2;
    top: -1px;
    left: calc(100% - 1px);
    display: none;
    box-sizing: border-box;
    width: min(900px, calc(100vw - 360px));
    max-width: none;
    margin: 0;
    padding: 18px 20px;
    overflow: visible;
    background: var(--dwc-global-submenu-bg, #fff);
    border: 1px solid var(--dwc-menu-border);
    box-shadow: 0 14px 32px rgba(0,0,0,.15);
  }
  .dwc-megamenu__dropdown-entry:hover > .dwc-megamenu__dropdown-content,
  .dwc-megamenu__dropdown-entry:focus-within > .dwc-megamenu__dropdown-content,
  .dwc-megamenu__dropdown-entry.is-active > .dwc-megamenu__dropdown-content { display: block; }
  .dwc-megamenu__dropdown-content > .dwc-megamenu__children { display: grid; grid-template-columns: repeat(var(--dwc-menu-columns), minmax(0, 1fr)); gap: 18px 28px; margin: 0; }
  .dwc-megamenu__dropdown-content > .dwc-megamenu__blocks { gap: 18px 28px; }
}
.dwc-megamenu__item--align-left > .dwc-megamenu__panel { left: 0; transform: translate(0, 8px); }
.dwc-megamenu__item--align-left:hover > .dwc-megamenu__panel, .dwc-megamenu__item--align-left:focus-within > .dwc-megamenu__panel, .dwc-megamenu__item--align-left.is-open > .dwc-megamenu__panel { transform: translate(0, 0); }
.dwc-megamenu__item--align-right > .dwc-megamenu__panel { right: 0; left: auto; transform: translate(0, 8px); }
.dwc-megamenu__item--align-right:hover > .dwc-megamenu__panel, .dwc-megamenu__item--align-right:focus-within > .dwc-megamenu__panel, .dwc-megamenu__item--align-right.is-open > .dwc-megamenu__panel { transform: translate(0, 0); }
.dwc-megamenu__item--align-container { position: static; }
.dwc-megamenu__item--align-container > .dwc-megamenu__panel { right: 20px; left: 20px; width: auto; transform: translate(0, 8px); }
.dwc-megamenu__item--align-container:hover > .dwc-megamenu__panel, .dwc-megamenu__item--align-container:focus-within > .dwc-megamenu__panel, .dwc-megamenu__item--align-container.is-open > .dwc-megamenu__panel { transform: translate(0, 0); }
.dwc-megamenu__item--width-2 > .dwc-megamenu__panel { max-width: 240px; }
.dwc-megamenu__item--width-2 > .dwc-megamenu__panel > .dwc-megamenu__blocks { column-gap: 0; }
.dwc-megamenu__item--width-3 > .dwc-megamenu__panel { max-width: 360px; }
.dwc-megamenu__item--width-4 > .dwc-megamenu__panel { max-width: 480px; }
.dwc-megamenu__item--width-5 > .dwc-megamenu__panel { max-width: 600px; }
.dwc-megamenu__item--width-6 > .dwc-megamenu__panel { max-width: 720px; }
.dwc-megamenu__item--width-8 > .dwc-megamenu__panel { max-width: 960px; }
.dwc-megamenu__item--width-10 > .dwc-megamenu__panel { max-width: 1200px; }
.dwc-megamenu__item--width-12 > .dwc-megamenu__panel { max-width: 1400px; }
.dwc-megamenu__item--mobile { display: none; }
.dwc-megamenu__visibility--mobile { display: none; }
.dwc-megamenu__toggle-state { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dwc-megamenu__toggle { display: none; }

@media (max-width: 991.98px) {
  .dwc-megamenu__inner { box-sizing: border-box; width: 100%; padding: 0 12px; overflow: visible; }
  .dwc-megamenu__toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 8px; color: #fff; background: none; border: 0; font-size: 15px; font-weight: 700; text-transform: uppercase; }
  .dwc-megamenu__toggle-icon { font-size: 20px; }
  .dwc-megamenu__list { display: none; flex-direction: column; align-items: stretch; width: 100%; }
  .dwc-megamenu__toggle-state:checked ~ .dwc-megamenu__list,
  .dwc-megamenu.is-open .dwc-megamenu__list {
    display: flex;
    max-height: calc(100dvh - 76px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .dwc-megamenu__item { width: 100%; }
  .dwc-megamenu__link { min-height: 48px; justify-content: space-between; padding: 0 8px; font-size: 14px; }
  .dwc-megamenu__panel,
  .dwc-megamenu__item[class*="dwc-megamenu__item--width-"] > .dwc-megamenu__panel {
    position: static;
    left: auto;
    right: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 12px 8px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
  }
  .dwc-megamenu__item.is-open > .dwc-megamenu__panel { display: block; }
  .dwc-megamenu.is-open .dwc-megamenu__item--responsive-main.is-open > .dwc-megamenu__panel {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .dwc-megamenu.is-open .dwc-megamenu__item > .dwc-megamenu__panel {
    background: var(--dwc-global-submenu-bg, #fff) !important;
  }
  .dwc-megamenu.is-open .dwc-megamenu__inner > .dwc-megamenu__list {
    justify-content: flex-start !important;
    background: var(--dwc-global-main-bg, var(--dwc-menu-green)) !important;
    border-bottom-color: var(--dwc-global-accent, var(--dwc-menu-gold)) !important;
  }
  .dwc-megamenu.is-open .dwc-megamenu__item > .dwc-megamenu__link {
    color: var(--dwc-global-main-text, #fff) !important;
    background: var(--dwc-global-main-bg, var(--dwc-menu-green)) !important;
  }
  .dwc-megamenu.is-open .dwc-megamenu__item > .dwc-megamenu__link:hover,
  .dwc-megamenu.is-open .dwc-megamenu__item > .dwc-megamenu__link:focus-visible,
  .dwc-megamenu.is-open .dwc-megamenu__item.is-open > .dwc-megamenu__link {
    color: var(--dwc-global-main-hover, var(--dwc-menu-gold)) !important;
  }
  .dwc-megamenu__item--desktop { display: none; }
  .dwc-megamenu__item--mobile { display: block; }
  .dwc-megamenu__visibility--desktop { display: none; }
  .dwc-megamenu__visibility--mobile { display: block; }
  .dwc-megamenu__children { grid-template-columns: 1fr; gap: 0; }
  .dwc-megamenu__blocks { display: flex; flex-direction: column; width: 100%; gap: 18px; }
  .dwc-megamenu__block-column { grid-column: auto; width: 100%; min-width: 0; }
  .dwc-megamenu__block-title,
  .dwc-megamenu__block li a { box-sizing: border-box; width: 100%; overflow-wrap: anywhere; }
  .dwc-megamenu__child > a { padding: 10px 8px; }
  .dwc-megamenu .dwc-megamenu__item--dropdown > .dwc-megamenu__panel { overflow: hidden !important; }
  .dwc-megamenu__dropdown-content {
    position: static;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 8px 14px 18px;
    border: 0;
    border-left: 1px solid var(--dwc-menu-border);
    box-shadow: none;
  }
  .dwc-megamenu__dropdown-entry-link { padding: 10px 8px; }
  .dwc-megamenu__item--dropdown .dwc-megamenu__tree-chevron { transform: rotate(90deg); }
}
