

:root {
  --border: #e5e7eb;
  --muted: #6b7280;
  --dark: #1f2937;
  --panel: #f9fafb;


  --panel-hover: #f3f4f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-card: 0 8px 20px -10px rgba(17, 24, 39, 0.22);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
a {
  text-decoration: none;
  color: var(--dark);
}

.menu-wrap {
  position: relative;
  display: inline-block;
  display: flex;
  justify-content: start;
}

.menu-trigger {
  padding: 17px 7px;
  color: var(--dark);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  text-wrap: nowrap;
  transition: color 0.15s ease;
}

.menu-trigger:hover {
  color: var(--dark) !important;
}

.mega-menu {
  --right-panel-width: 320px;
  position: absolute;
  top: 98%;
  left: 0;
  width: 948px;
  max-width: calc(100vw - 96px);
  min-height: 540px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    width 0.32s ease,
    min-height 0.32s ease;
  z-index: 20;
  padding: 30px;
}

[dir="rtl"] .mega-menu {
  left: auto;
  right: 0;
}

.menu-trigger:hover + .mega-menu,
.mega-menu:hover,
.menu-wrap.open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 9999;
}

.mega-menu.is-collapsed {
  width: calc(var(--right-panel-width) + 64px);
  min-height: 0;
}

.mega-menu.is-collapsed .mega-left-panel {
  opacity: 0;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
}

.right-list:hover .right-item.is-active:not(:hover) {
  background: transparent !important;
  border-right-color: transparent !important;
  border-left-color: transparent !important;
  box-shadow: none !important;
  color: #4b5563 !important;
}

.right-list:hover .right-item.is-active:not(:hover) .right-item-text {
  color: #4b5563 !important;
}

.right-list:hover .right-item.is-active:not(:hover) .right-item-arrow {
  color: #9ca3af !important;
  transform: none !important;
}

.mega-menu.is-collapsed .right-item.is-active:not(:hover) {
  background: transparent !important;
  border-right-color: transparent !important;
  border-left-color: transparent !important;
  box-shadow: none !important;
  color: #4b5563 !important;
}

.mega-menu.is-collapsed .right-item.is-active:not(:hover) .right-item-text {
  color: #4b5563 !important;
}

.mega-menu.is-collapsed .right-item.is-active:not(:hover) .right-item-arrow {
  color: #9ca3af !important;
  transform: none !important;
}

[dir="rtl"] .mega-menu.is-collapsed .mega-left-panel {
  padding-right: 0;
  padding-left: 0;
}

.mega-right-panel {
  width: var(--right-panel-width);
  flex: 0 0 var(--right-panel-width);
  background: var(--panel);
  border-left: 1px solid var(--border);
  max-height: 500px;
  overflow-y: auto;
  border-radius: 8px;
}

[dir="rtl"] .mega-right-panel {
  border-left: none;
  border-right: 1px solid var(--border);
}

.right-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.right-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: right;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #4b5563;
  padding: 14px 20px;
  border-right: 4px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.right-item:hover,
.right-item.is-active {
  background: #fff;
  color: var(--mainColor) !important;
  border-right-color: var(--mainColor);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.right-item:hover .right-item-text,
.right-item.is-active .right-item-text {
  color: var(--mainColor) !important;
}

.right-item-text {
  color: var(--dark);
}

.right-item-arrow {
  color: #9ca3af;
  font-size: 20px;
  display: inline-block;
  line-height: 1;
  transition:
    transform 0.22s ease,
    color 0.22s ease;
}

.right-item:hover .right-item-arrow,
.right-item.is-active .right-item-arrow {
  color: var(--mainColor);
  transform: translateX(-4px) scale(1.08);
}

.mega-left-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 1000px;
  width: 66%;
  padding: 8px 28px;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: start;
  opacity: 1;
  transition:
    opacity 0.25s ease,
    max-width 0.32s ease,
    max-height 0.32s ease,
    padding 0.32s ease;
}


.menu-title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--dark);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.menu-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--mainColor);
  border-radius: 2px;
}


.group-grid {
  flex: 1 1 auto;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  align-items: start;
  align-content: start;
}

.group-grid:has(> .promo-card-wrap:only-child) {
  align-content: stretch;
}

.group {
  min-width: 0;
}

.group h3 {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.group h3 .submenu-link {
  display: block;
  flex: 1 1 auto;
  padding: 2px 6px;
  margin-inline-start: -6px;
  border-radius: var(--radius-sm);
  color: var(--dark);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.group h3 .submenu-link:hover {
  color: var(--mainColor);
  background: var(--panel);
}

.group:has(> h3:only-child) {
  align-self: stretch;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.group:has(> h3:only-child) h3 {
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.group:has(> h3:only-child) h3::after {
  content: "‹";
  margin-inline-start: auto;
  color: #9ca3af;
  font-size: 18px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.group:has(> h3:only-child):hover {
  background: #fff;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.group:has(> h3:only-child):hover h3 .submenu-link {
  background: transparent;
}

.group:has(> h3:only-child):hover h3::after {
  color: var(--mainColor);
  transform: translateX(-3px);
}

.group ul {
  list-style: none;
  margin: 0;
  padding-right: 0; 
  border-right: none; 
  display: flex;
  flex-direction: column;
  gap: 6px; 
}

[dir="rtl"] .group ul {
  border-right: none; 
}

.group li {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}


.group li,
.group li > ul li {
  list-style: none !important;
}

.group li::marker {
  content: none !important;
}

.group li::before {
  content: none !important;
  display: none !important;
}


.group li .submenu-link {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  text-wrap: pretty;
  overflow-wrap: break-word;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.group li .submenu-link:hover {
  color: var(--mainColor);
  background: var(--panel);
  transform: translateX(-4px); 
}

.group li > ul {
  list-style: none;
  margin: 6px 0 4px;
  padding: 0;
  padding-inline-end: 14px;
  border-inline-end: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.group li > ul .submenu-link {
  padding: 5px 10px;
  font-size: 12.5px;
  color: #9ca3af;
}

.group li > ul .submenu-link:hover {
  color: var(--mainColor);
  background: var(--panel-hover);
}


.group li > ul ul {
  border-inline-end-color: #e9eaee;
  margin-top: 4px;
}

.group li > ul ul .submenu-link {
  font-size: 12px;
  color: #b0b5bd;
}


.group li .group {
  margin: 10px 0 2px;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--border);
}

.group li .group h3 {
  margin: 0 0 8px;
  padding-bottom: 0;
  border-bottom: none;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.group li .group ul {
  gap: 2px;
}

.group li .group li {
  font-size: 12.5px;
}

.group li .group li .submenu-link {
  padding: 5px 10px;
  color: #9ca3af;
}


.mega-left-panel,
.mega-right-panel {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.mega-left-panel::-webkit-scrollbar,
.mega-right-panel::-webkit-scrollbar {
  width: 6px;
}

.mega-left-panel::-webkit-scrollbar-thumb,
.mega-right-panel::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

.mega-left-panel::-webkit-scrollbar-track,
.mega-right-panel::-webkit-scrollbar-track {
  background: transparent;
}

.submenu-link:focus-visible,
.right-item:focus-visible,
.menu-trigger:focus-visible {
  outline: 2px solid var(--mainColor);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


.promo-card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  margin-top: 4px;
}

.promo-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 280px;
  padding: 30px 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #b7761a 0%, #e5ad53 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.promo-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  order: 2;
  width: 128px;
  height: 128px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.promo-card-icon svg {
  width: 56px;
  height: 56px;
}

.promo-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  order: 1;
  min-width: 0;
}

.promo-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.promo-card-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.promo-card-desc {
  margin: 0 0 18px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}

.promo-card-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--mainColor) !important;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.promo-card-cta:hover {
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .promo-card-wrap {
    min-height: 0;
  }

  .promo-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 20px;
  }

  .promo-card-icon {
    order: 0;
    width: 72px;
    height: 72px;
  }

  .promo-card-icon svg {
    width: 36px;
    height: 36px;
  }

  .promo-card-cta {
    width: 100%;
  }
}


@media (prefers-reduced-motion: reduce) {
  .mega-menu,
  .mega-left-panel,
  .group h3 .submenu-link,
  .group li .submenu-link,
  .group:has(> h3:only-child),
  .group:has(> h3:only-child) h3::after,
  .right-item,
  .right-item-arrow {
    transition: none !important;
    animation: none !important;
  }

  .group li .submenu-link:hover,
  .group:has(> h3:only-child):hover {
    transform: none !important;
  }
}

@media (max-width: 1280px) {
  .mega-menu {
    width: min(948px, calc(100vw - 32px));
    right: auto;
    left: 0;
  }

  .mega-menu.is-collapsed {
    max-width: calc(100vw - 32px);
  }

  .right-item {
    font-size: 14px;
  }

  .menu-title {
    font-size: 20px;
  }

  .group h3 {
    font-size: 15px;
  }

  .group li,
  .group li .submenu-link {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .mega-menu {
    flex-direction: column;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-height: 0;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px;
  }

  .mega-menu.is-collapsed {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .mega-right-panel,
  .mega-left-panel {
    width: 100%;
    flex: 1 1 auto;
    max-width: none;
  }

  .mega-menu.is-collapsed .mega-left-panel {
    max-width: none;
    max-height: 0;
    margin: 0;
  }

  .mega-right-panel {
    border-left: none;
    border-bottom: 1px solid var(--border);
    max-height: 240px;
  }

  .mega-left-panel {
    padding: 16px 8px;
    max-height: none;
  }

  .group-grid {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .group li > ul,
  .group li .group {
    padding-inline-end: 10px;
    padding-inline-start: 10px;
  }
}