.eo-catalog-megamenu-r1 {
  --eo-mega-blue: #1674d1;
  --eo-mega-blue-dark: #0f5eae;
  --eo-mega-turquoise: #13a6a1;
  --eo-mega-ink: #17243a;
  --eo-mega-muted: #6f7c8f;
  --eo-mega-border: #e4eaf1;
  --eo-mega-surface: #f6f9fc;
  --eo-mega-height: min(680px, calc(100vh - 150px));
}

.eo-catalog-megamenu-r1 .eo-menu-back {
  display: none;
}

@media (min-width: 992px) {
  .eo-catalog-megamenu-r1 .menu-wrapper.new {
    left: 50%;
    right: auto;
    width: min(1180px, calc(100vw - 32px));
    transform: translateX(-50%);
    border-radius: 0 0 14px 14px;
  }

  .eo-catalog-megamenu-r1 .menu1.new {
    height: var(--eo-mega-height);
    max-height: calc(100vh - 118px);
    overflow: hidden;
    color: var(--eo-mega-ink);
    background: #fff;
    border: 1px solid var(--eo-mega-border);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 20px 55px rgba(19, 42, 70, .18);
  }

  .eo-catalog-megamenu-r1 .menu1.new > .menu__collapse {
    position: static;
    width: 310px;
    height: 100%;
    padding: 10px 8px 14px;
    overflow: hidden auto;
    color: var(--eo-mega-ink);
    background: linear-gradient(180deg, #f7fafc 0%, #f2f7fa 100%);
    border-right: 1px solid var(--eo-mega-border);
    scrollbar-width: thin;
    scrollbar-color: #b9c7d6 transparent;
  }

  .eo-catalog-megamenu-r1 .menu1.new > .menu__collapse::-webkit-scrollbar,
  .eo-catalog-megamenu-r1 .eo-mega-panel::-webkit-scrollbar {
    width: 7px;
  }

  .eo-catalog-megamenu-r1 .menu1.new > .menu__collapse::-webkit-scrollbar-thumb,
  .eo-catalog-megamenu-r1 .eo-mega-panel::-webkit-scrollbar-thumb {
    background: #b9c7d6;
    border-radius: 10px;
  }

  .eo-catalog-megamenu-r1 .menu1.new .menu__level-1-li {
    position: static;
    display: flex;
    min-height: 50px;
    margin: 2px 0;
    border: 0;
    border-radius: 9px !important;
    transition: background-color .14s ease, box-shadow .14s ease;
  }

  .eo-catalog-megamenu-r1 .menu1.new .menu__level-1-li.has-children::after {
    display: none;
  }

  .eo-catalog-megamenu-r1 .menu1.new .menu__level-1-li:hover,
  .eo-catalog-megamenu-r1 .menu1.new .menu__level-1-li.open {
    background: #fff;
    box-shadow: 0 6px 18px rgba(25, 70, 110, .08);
  }

  .eo-catalog-megamenu-r1 .menu1.new .menu__level-1-li.open::before {
    position: absolute;
    left: 8px;
    width: 3px;
    height: 30px;
    margin-top: 10px;
    content: '';
    background: linear-gradient(180deg, var(--eo-mega-blue), var(--eo-mega-turquoise));
    border-radius: 3px;
  }

  .eo-catalog-megamenu-r1 .menu1.new .menu__level-1-a {
    min-width: 0;
    min-height: 50px;
    padding: 7px 5px 7px 10px;
    line-height: 1.25;
    font-size: 13px;
    font-weight: 600;
    color: var(--eo-mega-ink);
  }

  .eo-catalog-megamenu-r1 .eo-menu-root-icon {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 9px;
    color: var(--eo-mega-blue);
    background: #eaf3fc;
    border-radius: 8px;
  }

  .eo-catalog-megamenu-r1 .eo-menu-root-icon .menu__level-1-icon,
  .eo-catalog-megamenu-r1 .eo-menu-root-icon .menu__level-1-img {
    width: 17px;
    height: 17px;
    margin: 0;
    object-fit: contain;
  }

  .eo-catalog-megamenu-r1 .eo-menu-root-name {
    overflow-wrap: anywhere;
  }

  .eo-catalog-megamenu-r1 .menu1.new .menu__chevron-level-1 {
    position: static;
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 50px;
    padding: 0;
    font-size: 10px;
    color: #8492a6;
    background: transparent;
    transition: color .14s ease, transform .14s ease;
  }

  .eo-catalog-megamenu-r1 .menu1.new .menu__level-1-li.open > .menu__chevron-level-1 {
    color: var(--eo-mega-blue);
    transform: translateX(2px);
  }

  .eo-catalog-megamenu-r1 .menu1.new .eo-mega-panel {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 310px;
    display: none;
    width: calc(100% - 310px);
    height: 100%;
    max-height: none;
    padding: 0;
    overflow: hidden auto;
    color: var(--eo-mega-ink);
    background: #fff;
    border-radius: 0 0 14px 0;
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: #c4cfdb transparent;
  }

  .eo-catalog-megamenu-r1 .menu1.new .eo-mega-panel.open {
    display: block;
    opacity: 1 !important;
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__inner {
    min-height: 100%;
    padding: 30px 32px 34px;
    background:
      radial-gradient(circle at 100% 0, rgba(19, 166, 161, .08), transparent 32%),
      #fff;
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--eo-mega-border);
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__eyebrow {
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: 10px;
    font-weight: 700;
    color: var(--eo-mega-turquoise);
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__title {
    max-width: 620px;
    line-height: 1.17;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    color: var(--eo-mega-ink);
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: var(--eo-mega-blue);
    background: #eef6fd;
    border-radius: 8px;
    transition: color .14s ease, background-color .14s ease;
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__all:hover {
    color: #fff;
    background: var(--eo-mega-blue);
  }

  .eo-catalog-megamenu-r1 .eo-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card {
    position: relative;
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--eo-mega-border);
    border-radius: 11px;
    cursor: pointer;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card:hover,
  .eo-catalog-megamenu-r1 .eo-mega-card:focus {
    border-color: #b9d8f3;
    box-shadow: 0 10px 24px rgba(24, 84, 130, .10);
    transform: translateY(-2px);
    outline: none;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card__top {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card__icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 11px;
    overflow: hidden;
    color: var(--eo-mega-turquoise);
    background: #eaf8f7;
    border-radius: 9px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card__icon .menu__level-2-img {
    position: static;
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-2-a {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    line-height: 1.32;
    font-size: 13px;
    font-weight: 700;
    color: var(--eo-mega-ink);
    overflow-wrap: anywhere;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card__arrow {
    flex: 0 0 auto;
    margin-left: 8px;
    font-size: 10px;
    color: #9eabb9;
    transition: color .14s ease, transform .14s ease;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card:hover .eo-mega-card__arrow {
    color: var(--eo-mega-blue);
    transform: translateX(3px);
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-3 {
    padding: 12px 0 0 49px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-3-li + li {
    margin-top: 7px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-3-a {
    display: block;
    line-height: 1.35;
    font-size: 11px;
    color: var(--eo-mega-muted);
    overflow-wrap: anywhere;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-3-a:hover {
    color: var(--eo-mega-blue);
    text-decoration: none;
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf {
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 44px;
    text-align: center;
    background: linear-gradient(145deg, #f5f9fd, #eff9f8);
    border: 1px solid var(--eo-mega-border);
    border-radius: 13px;
    cursor: pointer;
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    font-size: 27px;
    color: var(--eo-mega-blue);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(22, 116, 209, .12);
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf__title {
    max-width: 600px;
    line-height: 1.25;
    font-size: 24px;
    font-weight: 700;
    color: var(--eo-mega-ink);
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf__text {
    max-width: 470px;
    margin: 10px 0 22px;
    line-height: 1.55;
    font-size: 13px;
    color: var(--eo-mega-muted);
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf__button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 38px;
    line-height: 38px;
    color: #fff;
    background: var(--eo-mega-blue);
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf__button:hover {
    color: #fff;
    background: var(--eo-mega-blue-dark);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .eo-catalog-megamenu-r1 {
    --eo-mega-height: min(620px, calc(100vh - 130px));
  }

  .eo-catalog-megamenu-r1 .menu1.new > .menu__collapse {
    width: 285px;
  }

  .eo-catalog-megamenu-r1 .menu1.new .eo-mega-panel {
    left: 285px;
    width: calc(100% - 285px);
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__inner {
    padding: 24px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

@media (max-width: 991px) {
  .eo-catalog-megamenu-r1 .menu-wrapper {
    overflow: hidden;
    color: var(--eo-mega-ink);
    background: #f6f9fc;
  }

  .eo-catalog-megamenu-r1 .eo-megamenu {
    min-height: 100%;
    color: var(--eo-mega-ink);
    background: #f6f9fc;
  }

  .eo-catalog-megamenu-r1 .menu__header {
    position: sticky;
    z-index: 30;
    top: 0;
    height: 58px;
    padding: 0 14px;
    color: var(--eo-mega-ink);
    background: #fff;
    border-bottom: 1px solid var(--eo-mega-border);
    box-shadow: 0 4px 16px rgba(23, 36, 58, .06);
  }

  .eo-catalog-megamenu-r1 .menu__header-title {
    overflow: hidden;
    padding: 0 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 17px;
    font-weight: 700;
  }

  .eo-catalog-megamenu-r1 .menu__header-icon.fa-times,
  .eo-catalog-megamenu-r1 .eo-menu-back {
    display: flex !important;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    color: var(--eo-mega-ink);
    background: #eef3f7;
    border-radius: 10px;
  }

  .eo-catalog-megamenu-r1 .eo-menu-back {
    visibility: hidden;
    pointer-events: none;
  }

  .eo-catalog-megamenu-r1 .eo-megamenu.eo-mobile-detail .eo-menu-back {
    visibility: visible;
    pointer-events: auto;
  }

  .eo-catalog-megamenu-r1 .menu__collapse {
    top: 58px;
    height: calc(100vh - 58px) !important;
    padding: 8px 10px 24px;
    overflow: hidden auto;
    background: #f6f9fc;
    -webkit-overflow-scrolling: touch;
  }

  .eo-catalog-megamenu-r1 .menu__level-1-li {
    position: static;
    display: flex;
    min-height: 54px;
    margin: 4px 0;
    align-items: center;
    background: #fff;
    border: 1px solid var(--eo-mega-border);
    border-radius: 10px !important;
  }

  .eo-catalog-megamenu-r1 .menu__level-1-a {
    min-width: 0;
    min-height: 54px;
    padding: 7px 4px 7px 8px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--eo-mega-ink);
  }

  .eo-catalog-megamenu-r1 .eo-menu-root-icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    color: var(--eo-mega-blue);
    background: #edf5fc;
    border-radius: 9px;
  }

  .eo-catalog-megamenu-r1 .eo-menu-root-icon .menu__level-1-icon,
  .eo-catalog-megamenu-r1 .eo-menu-root-icon .menu__level-1-img {
    width: 18px;
    height: 18px;
    margin: 0;
    object-fit: contain;
  }

  .eo-catalog-megamenu-r1 .menu__chevron-level-1 {
    position: static;
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 52px;
    padding: 0;
    color: #718096;
    background: transparent;
    transform: none !important;
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel,
  .eo-catalog-megamenu-r1 .eo-mega-panel:not(.in) {
    position: fixed;
    z-index: 20;
    top: 58px;
    left: 100%;
    display: block;
    visibility: hidden;
    width: 100%;
    height: calc(100vh - 58px) !important;
    max-height: none;
    padding: 0;
    overflow: hidden auto;
    color: var(--eo-mega-ink);
    background: #f6f9fc;
    border: 0;
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transition: left .16s ease, opacity .16s ease;
    -webkit-overflow-scrolling: touch;
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel.eo-mobile-open {
    left: 0;
    visibility: visible;
    opacity: 1 !important;
    pointer-events: auto;
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__inner {
    min-height: 100%;
    padding: 18px 12px 28px;
    background: #f6f9fc;
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__heading {
    margin-bottom: 14px;
    padding: 0 4px 14px;
    border-bottom: 1px solid var(--eo-mega-border);
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__eyebrow {
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    font-weight: 700;
    color: var(--eo-mega-turquoise);
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__title {
    line-height: 1.25;
    font-size: 20px;
    font-weight: 700;
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--eo-mega-blue);
  }

  .eo-catalog-megamenu-r1 .eo-mega-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card {
    padding: 0;
    background: #fff;
    border: 1px solid var(--eo-mega-border);
    border-radius: 10px;
    overflow: hidden;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card__top {
    display: flex;
    min-height: 56px;
    align-items: center;
    padding: 7px 10px;
    cursor: pointer;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card__icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    color: var(--eo-mega-turquoise);
    background: #eaf8f7;
    border-radius: 8px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card__icon .menu__level-2-img {
    display: block;
    position: static;
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-2-a {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    line-height: 1.3;
    font-size: 13px;
    font-weight: 700;
    color: var(--eo-mega-ink);
    overflow-wrap: anywhere;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card__arrow {
    margin-left: 8px;
    font-size: 11px;
    color: #8593a5;
    transition: transform .15s ease;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card.has-children .eo-mega-card__arrow::before {
    content: '\f078';
  }

  .eo-catalog-megamenu-r1 .eo-mega-card.eo-mobile-expanded .eo-mega-card__arrow {
    transform: rotate(180deg);
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-3,
  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-3:not(.in) {
    display: none;
    height: auto;
    padding: 4px 12px 12px 58px;
    overflow: visible;
    border-top: 1px solid #eef2f6;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card.eo-mobile-expanded .menu__level-3 {
    display: block;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-3-li {
    border: 0;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-3-a {
    display: block;
    min-height: 42px;
    padding: 11px 0;
    line-height: 1.35;
    font-size: 12px;
    color: #5f6f83;
    border-bottom: 1px solid #eef2f6;
    overflow-wrap: anywhere;
  }

  .eo-catalog-megamenu-r1 .eo-mega-card .menu__level-3-li:last-child .menu__level-3-a {
    border-bottom: 0;
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf {
    padding: 36px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--eo-mega-border);
    border-radius: 12px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--eo-mega-blue);
    background: #edf5fc;
    border-radius: 16px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf__title {
    line-height: 1.3;
    font-size: 19px;
    font-weight: 700;
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf__text {
    margin: 10px auto 20px;
    max-width: 420px;
    line-height: 1.5;
    font-size: 13px;
    color: var(--eo-mega-muted);
  }

  .eo-catalog-megamenu-r1 .eo-mega-leaf__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    line-height: 40px;
    color: #fff;
    background: var(--eo-mega-blue);
  }
}

@media (max-width: 430px) {
  .eo-catalog-megamenu-r1 .menu__collapse {
    padding-right: 8px;
    padding-left: 8px;
  }

  .eo-catalog-megamenu-r1 .eo-mega-panel__inner {
    padding-right: 9px;
    padding-left: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eo-catalog-megamenu-r1 *,
  .eo-catalog-megamenu-r1 *::before,
  .eo-catalog-megamenu-r1 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
