/* Мега-меню: >1400 → ≤1400 → 769–1400 tablet → ≤900 → ≤768 */

.site-header__bottom {
  position: relative;
  overflow: visible;
}

.site-header__bottom .menu-wrap:has(.mega-menu) {
  overflow: visible;
}

.mega-menu {
  --mm-accent: #fb8227;
  --mm-text: #1d1d1d;
  --mm-link: #1a1919;
  --mm-divider: #e7e7e7;
  --mm-soft: #f5f6f8;
  --mm-banner-grad: linear-gradient(71deg, #fb8227 0%, #f7b432 100%);
  --mm-vh-offset: 140px;
  --mm-panel-max-h: calc(100vh - var(--mm-vh-offset));
  --mm-panel-max-h: calc(100dvh - var(--mm-vh-offset));
  position: static;
  flex: 1 1 auto;
  min-width: 0;
}

.mega-menu .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mega-menu__tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-menu__tab {
  position: static;
}

.mega-menu__tab-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 24px 0;
}

.mega-menu__tab-anchor {
  position: relative;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  color: var(--mm-text);
  text-decoration: none;
  padding: 0;
}

.mega-menu__tab-anchor::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  height: 1px;
  background: var(--mm-accent);
  opacity: 0;
  pointer-events: none;
}

.mega-menu__tab.is-current .mega-menu__tab-anchor,
.mega-menu__tab.is-open .mega-menu__tab-anchor,
.mega-menu__tab:hover .mega-menu__tab-anchor,
.mega-menu__tab-anchor:hover,
.mega-menu__tab-anchor:focus {
  color: var(--mm-accent);
  text-decoration: none;
}

.mega-menu__tab.is-current .mega-menu__tab-anchor::after,
.mega-menu__tab.is-open .mega-menu__tab-anchor::after,
.mega-menu__tab:hover .mega-menu__tab-anchor::after {
  opacity: 1;
}

.mega-menu__tab-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--mm-text);
}

.mega-menu__tab.is-current .mega-menu__tab-toggle,
.mega-menu__tab.is-open .mega-menu__tab-toggle,
.mega-menu__tab:hover .mega-menu__tab-toggle {
  color: var(--mm-accent);
}

.mega-menu__tab-chevron {
  display: block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid currentColor;
  border-right: 0;
}

.mega-menu__tab.is-open .mega-menu__tab-chevron {
  border-top: 5px solid currentColor;
  border-bottom: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.mega-menu__panel {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: min(1368px, calc(100vw - 48px));
  z-index: 40;
  padding-top: 4px;
}

.mega-menu__tab:hover > .mega-menu__panel,
.mega-menu__tab.is-open > .mega-menu__panel {
  display: block;
}

.mega-menu__panel-inner {
  box-sizing: border-box;
  padding: 50px;
  background: #fff;
  border-radius: 57px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  overflow: visible;
}

/* SEO / default: фиксированная сетка 4×260 + баннер 230 */
.mega-menu__panel[data-mm-layout="default"] .mega-menu__panel-inner {
  display: grid;
  grid-template-columns: 1040px 230px;
  gap: 0;
  justify-content: space-between;
  align-items: start;
}

.mega-menu__panel[data-mm-layout="default"] .mega-menu__columns {
  display: grid;
  grid-template-columns: repeat(4, 260px);
  grid-template-rows: auto auto;
  width: 1040px;
  column-gap: 0;
  row-gap: 0;
}

.mega-menu__panel[data-mm-layout="default"] .mega-menu__column {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  min-width: 0;
  padding: 0 15px;
}

.mega-menu__panel[data-mm-layout="default"] .mega-menu__column + .mega-menu__column {
  border-left: 1px solid var(--mm-divider);
}

.mega-menu__panel[data-mm-layout="default"] .mega-menu__column > .mega-menu__section:only-child {
  grid-row: 1 / -1;
}

.mega-menu__panel[data-mm-layout="default"] .mega-menu__column > .mega-menu__section:first-child:not(:only-child) {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mm-divider);
}

.mega-menu__panel[data-mm-layout="default"] .mega-menu__column > .mega-menu__section + .mega-menu__section {
  padding-top: 20px;
}

/* Compact: auto-height, nav hug + баннер на остаток ширины */
.mega-menu__panel[data-mm-layout="compact"] .mega-menu__panel-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  height: auto;
}

.mega-menu__panel[data-mm-layout="compact"] .mega-menu__columns {
  flex: 0 0 auto;
  width: auto;
  display: grid;
  grid-template-columns: var(--mm-cols-template, repeat(var(--mm-col-count, 3), var(--mm-col-base, 260px)));
  grid-template-rows: none;
}

.mega-menu__panel[data-mm-layout="compact"][data-mm-col-count="3"] .mega-menu__column:has(.mega-menu__section--list-cols-2) {
  width: var(--mm-list-col-width);
  min-width: var(--mm-list-col-width);
  max-width: var(--mm-list-col-width);
}

.mega-menu__panel[data-mm-layout="compact"][data-mm-col-count="3"] .mega-menu__section--list-cols-2 .mega-menu__list {
  grid-template-columns: 120px 120px;
  column-gap: 20px;
}

.mega-menu__panel[data-mm-layout="compact"] .mega-menu__column {
  display: flex;
  flex-direction: column;
  grid-row: auto;
  grid-template-rows: none;
  min-width: 0;
  padding: 0 15px;
  overflow: hidden;
}

.mega-menu__panel[data-mm-layout="compact"] .mega-menu__column + .mega-menu__column {
  border-left: 1px solid var(--mm-divider);
}

.mega-menu__panel[data-mm-layout="compact"] .mega-menu__column > .mega-menu__section:first-child:not(:only-child) {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--mm-divider);
}

.mega-menu__panel[data-mm-layout="compact"] .mega-menu__column > .mega-menu__section + .mega-menu__section {
  padding-top: 20px;
}

.mega-menu__panel[data-mm-layout="compact"] .mega-menu__column:has(.mega-menu__section--list-cols-2) {
  min-width: 0;
  width: auto;
}

.mega-menu__section--list-cols-2 .mega-menu__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 20px;
}

.mega-menu__section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  min-width: 0;
}

.mega-menu__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.mega-menu__section-title,
.site-header .mega-menu a.mega-menu__section-title,
.site-header .mega-menu a.mega-menu__section-title:visited,
.site-header .mega-menu a.mega-menu__section-title:hover {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: #fb8227;
  text-decoration: none;
  text-transform: none;
}

.mega-menu__section-toggle {
  display: none;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.mega-menu__section-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--mm-link);
  border-bottom: 2px solid var(--mm-link);
  transform: rotate(45deg);
  margin-top: -4px;
}

.mega-menu__section.is-open .mega-menu__section-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: var(--mm-accent);
}

.mega-menu__section-body[hidden] {
  display: block !important;
}

.mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-header .mega-menu a.mega-menu__link,
.site-header .mega-menu a.mega-menu__link:visited {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 19px;
  height: auto;
  color: #1a1919;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  text-decoration: none;
}

.site-header .mega-menu a.mega-menu__link.is-stub {
  cursor: default;
}

.site-header .mega-menu a.mega-menu__link:hover,
.site-header .mega-menu a.mega-menu__link:focus-visible,
.site-header .mega-menu a.mega-menu__link.is-current {
  color: #fb8227;
  text-decoration: none;
}

.site-header .mega-menu a.mega-menu__link:hover .mega-menu__anchor-text,
.site-header .mega-menu a.mega-menu__link:focus-visible .mega-menu__anchor-text,
.site-header .mega-menu a.mega-menu__link.is-current .mega-menu__anchor-text {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mega-menu__icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1.5px;
  object-fit: contain;
  filter: brightness(0) invert(81%);
}

.site-header .mega-menu a.mega-menu__link:hover .mega-menu__icon,
.site-header .mega-menu a.mega-menu__link:focus-visible .mega-menu__icon,
.site-header .mega-menu a.mega-menu__link.is-current .mega-menu__icon {
  filter: brightness(0) invert(81%);
}

.mega-menu__icon--native,
.site-header .mega-menu a.mega-menu__link:hover .mega-menu__icon--native,
.site-header .mega-menu a.mega-menu__link:focus-visible .mega-menu__icon--native,
.site-header .mega-menu a.mega-menu__link.is-current .mega-menu__icon--native {
  filter: none;
}

.mega-menu__link-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 19px;
}

.mega-menu__anchor-text {
  display: inline;
}

.mega-menu__anchor-tail {
  display: inline;
  white-space: nowrap;
}

.mega-menu__dev-badge {
  display: inline-block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-left: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  box-sizing: border-box;
  border-radius: 7px;
  background: rgba(207, 207, 207, 0.7);
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.mega-menu__dev-badge-char {
  display: block;
  width: 17px;
  height: 17px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 14px;
  font-style: normal;
  line-height: 17px;
  text-align: center;
}

.mega-menu__dev-badge:hover,
.mega-menu__dev-badge.is-active {
  background: #fb8227;
}

.mega-menu__dev-tip {
  position: fixed;
  z-index: 100000;
  padding: 6px 10px;
  border-radius: 8px;
  background: #1a1919;
  color: #fff;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.site-header .mega-menu a.mega-menu__footer-link,
.site-header .mega-menu a.mega-menu__footer-link:visited,
.site-header .mega-menu a.mega-menu__footer-link:hover {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: #fb8227;
  text-decoration: none;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.12;
}

.mega-menu__footer-link img {
  width: 20px;
  height: 20px;
}

.mega-menu__panel[data-mm-layout="default"] .mega-menu__banner {
  position: relative;
  width: 230px;
  height: 661px;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  overflow: visible;
  align-self: start;
}

/* Compact desktop: ORM — stacked; Foreign — stacked-foreign; GEO — split 50/50 */
@media (min-width: 1401px) {
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch {
    position: relative;
    flex: 1 1 0;
    width: auto;
    min-width: 230px;
    height: auto;
    margin: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    border-radius: 32px;
    overflow: hidden;
    align-self: stretch;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch .mega-menu__banner-card {
    display: block;
    position: absolute;
    inset: 0;
    top: 0;
    border-radius: inherit;
  }

  /* ORM (2333:491): лупа 75px в head, title 18px, text 14px */
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) {
    display: flex;
    flex-direction: column;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-deco {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    width: 230px;
    max-width: 100%;
    height: auto;
    margin: 0;
    transform: none;
    opacity: 0.5;
    object-fit: contain;
    object-position: left bottom;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-body {
    position: static;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding: 24px 24px 20px;
    text-align: left;
    gap: 0;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-head {
    position: relative;
    flex: 0 0 auto;
    padding-right: 58px;
    font-size: 18px;
    line-height: 1.15;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-head .mega-menu__banner-title {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-head .mega-menu__banner-search {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    z-index: 2;
    width: 60px;
    height: auto;
    max-height: 64px;
    margin: 0;
    object-fit: contain;
    object-position: right top;
    pointer-events: none;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-text {
    margin: 14px 0 15px;
    padding-top: 0;
    padding-right: 4px;
    max-width: none;
    font-size: 14px;
    line-height: 1.28;
    flex: 0 0 auto;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-btn,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-btn:visited,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-btn:hover {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 56px;
    height: auto;
    margin-top: 12px;
    flex: 0 0 auto;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.12;
  }

  /* Зарубежное SEO (2333:298): stacked-foreign */
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign {
    display: flex;
    flex-direction: column;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-deco {
    top: 6px;
    bottom: auto;
    left: 50%;
    width: 350px;
    max-width: 100%;
    height: auto;
    margin: 0;
    transform: translateX(-50%);
    opacity: 0.5;
    object-fit: contain;
    object-position: center top;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign > .mega-menu__banner-search {
    position: absolute;
    top: 100px;
    right: 30px;
    left: auto;
    bottom: auto;
    z-index: 2;
    width: 145px;
    max-width: 145px;
    height: auto;
    margin: 0;
    transform: none;
    object-fit: contain;
    object-position: right top;
    pointer-events: none;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-body {
    position: static;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding: 24px 24px 20px;
    text-align: left;
    gap: 0;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-title {
    margin: 0;
    max-width: 290px;
    width: auto;
    white-space: normal;
    font-size: 24px;
    line-height: 1.12;
    text-align: left;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-foot {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    min-width: 0;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-text {
    margin: 0 0 28px;
    max-width: none;
    font-size: 16px;
    line-height: 1.28;
    flex: 0 0 auto;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-btn,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-btn:visited,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-btn:hover {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 56px;
    height: auto;
    margin-top: 0;
    flex: 0 0 auto;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.12;
  }

  /* GEO / AI (2333:978): 50% текст | 50% лупа + декор */
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    padding: 20px 16px 20px 28px;
    text-align: left;
    gap: 0;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-title {
    margin: 0;
    max-width: none;
    white-space: normal;
    font-size: 18px;
    line-height: 1.12;
    text-align: left;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-text {
    margin: 19px 0 24px;
    max-width: none;
    font-size: 14px;
    line-height: 1.28;
    flex: 1 1 auto;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-btn,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-btn:visited,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-btn:hover {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 38px;
    height: auto;
    margin-top: 0;
    flex: 0 0 auto;
    padding: 12px 32px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.12;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 0;
    overflow: visible;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-visual .mega-menu__banner-deco {
    position: absolute;
    left: 42%;
    bottom: -70px;
    top: auto;
    z-index: 0;
    width: 230px;
    max-width: none;
    height: auto;
    margin: 0;
    transform: translateX(-50%);
    opacity: 0.85;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-visual .mega-menu__banner-search {
    position: absolute;
    top: 2px;
    left: 50%;
    z-index: 1;
    width: 170px;
    max-width: 170px;
    height: auto;
    margin: 0;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center top;
    pointer-events: none;
  }
}

.mega-menu__banner-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  bottom: 0;
  border-radius: 32px;
  background: var(--mm-banner-grad);
  overflow: hidden;
  pointer-events: none;
}

.mega-menu__banner-deco {
  position: absolute;
  left: 0;
  top: 76px;
  z-index: 0;
  width: 230px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
}

.mega-menu__panel[data-mm-layout="default"] .mega-menu__banner-deco {
  top: calc(44px + 32px);
}

.mega-menu__banner-search {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 2;
  width: 190px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.mega-menu__banner-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  padding: 238px 20px 52px;
  text-align: center;
}

.mega-menu__banner-title {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.12;
  color: #fff;
}

.mega-menu__banner-text {
  margin: 33px 0 0;
  color: #fff;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.28;
}

.site-header .mega-menu a.mega-menu__banner-btn,
.site-header .mega-menu a.mega-menu__banner-btn:visited,
.site-header .mega-menu a.mega-menu__banner-btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 190px;
  min-height: 64px;
  margin-top: auto;
  padding: 16px 24px;
  border-radius: 16px;
  background: #fff;
  color: #fb8227;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.12;
  text-align: center;
  text-decoration: none;
}

.site-header .mega-menu a.mega-menu__banner-btn:hover {
  filter: brightness(0.98);
}

body.mega-menu-open {
  overflow: hidden;
}

.mega-menu__backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: transparent;
}

/* Desktop + низкий экран */
@media (min-width: 1401px) and (max-height: 900px) {
  .mega-menu__panel[data-mm-layout="default"] .mega-menu__panel-inner {
    max-height: var(--mm-panel-max-h);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 130, 39, 0.55) transparent;
  }

  .mega-menu__panel-inner::-webkit-scrollbar {
    width: 5px;
  }

  .mega-menu__panel-inner::-webkit-scrollbar-track {
    background: transparent;
    margin: 28px 0;
  }

  .mega-menu__panel-inner::-webkit-scrollbar-thumb {
    background: rgba(251, 130, 39, 0.45);
    border-radius: 100px;
  }

  .mega-menu__panel-inner::-webkit-scrollbar-thumb:hover {
    background: var(--mm-accent);
  }

  .mega-menu__panel[data-mm-layout="default"] .mega-menu__banner {
    --mm-banner-h: min(661px, calc(var(--mm-panel-max-h) - 100px));
    position: sticky;
    top: 0;
    z-index: 1;
    height: var(--mm-banner-h);
    container-type: size;
    container-name: mm-banner;
  }

  .mega-menu__banner-card {
    top: min(44px, 7cqh);
  }

  .mega-menu__panel[data-mm-layout="default"] .mega-menu__banner-deco {
    top: calc(min(44px, 7cqh) + min(32px, 5cqh));
  }

  .mega-menu__banner-search {
    width: min(190px, 100%);
    max-height: 36cqh;
  }

  .mega-menu__banner-body {
    min-height: 0;
    padding: clamp(120px, 36cqh, 238px) 20px clamp(16px, 8cqh, 52px);
  }

  .mega-menu__banner-title {
    font-size: clamp(22px, 5cqh, 32px);
  }

  .mega-menu__banner-text {
    margin-top: clamp(12px, 5cqh, 33px);
    font-size: clamp(13px, 2.4cqh, 16px);
  }

  .site-header .mega-menu a.mega-menu__banner-btn,
  .site-header .mega-menu a.mega-menu__banner-btn:visited,
  .site-header .mega-menu a.mega-menu__banner-btn:hover {
    flex-shrink: 0;
    min-height: clamp(48px, 10cqh, 64px);
    padding: 12px 20px;
    font-size: clamp(14px, 2.4cqh, 16px);
  }
}

/* ≤1400 */
@media (max-width: 1400px) {
  /* Перебиваем `.menu-wrap{display:block!important}` темы (min-width:1200) */
  .site-header:has(.mega-menu) .site-header__bottom {
    padding: 16px 0;
    position: relative;
    background-color: #fff;
    z-index: 4;
  }

  .site-header:has(.mega-menu) .menu-wrap {
    display: none !important;
    position: fixed !important;
    flex-direction: column;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100vh !important;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #fff;
    z-index: 5;
    padding: 12px 16px 100px;
    box-sizing: border-box;
  }

  .site-header:has(.mega-menu):has(.menu-mobile.opened) .menu-wrap {
    display: block !important;
  }

  .site-header:has(.mega-menu) .menu-mobile-wrapper {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    margin-left: 12px;
    border: 1px solid #1d1d1d;
    border-radius: 12px;
    cursor: pointer;
  }

  .site-header:has(.mega-menu) .menu-mobile {
    display: block !important;
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
  }

  .site-header:has(.mega-menu) .menu-mobile span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1d1d1d;
    border-radius: 0;
    opacity: 1;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
  }

  .site-header:has(.mega-menu) .menu-mobile span:nth-child(1) {
    top: 5px;
  }

  .site-header:has(.mega-menu) .menu-mobile span:nth-child(2),
  .site-header:has(.mega-menu) .menu-mobile span:nth-child(3) {
    top: 12px;
  }

  .site-header:has(.mega-menu) .menu-mobile span:nth-child(4) {
    top: 19px;
  }

  .site-header:has(.mega-menu) .menu-mobile.opened span:nth-child(1),
  .site-header:has(.mega-menu) .menu-mobile.opened span:nth-child(4) {
    top: 18px;
    left: 50%;
    width: 0%;
  }

  .site-header:has(.mega-menu) .menu-mobile.opened span:nth-child(2) {
    transform: rotate(45deg);
  }

  .site-header:has(.mega-menu) .menu-mobile.opened span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .site-header:has(.mega-menu) .menu-wrap .mega-menu {
    width: 100%;
  }

  .mega-menu {
    --mm-banner-grad: linear-gradient(90deg, #fb8227 0%, #f7b432 100%);
  }

  .mega-menu__tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    box-sizing: border-box;
    padding: 40px;
    background: #fff;
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  }

  .mega-menu__tab {
    display: contents;
  }

  .mega-menu__tab-link {
    order: 0;
    justify-content: flex-start;
    gap: 5px;
    padding: 4px 0 10px;
    box-shadow: none;
    cursor: pointer;
  }

  .mega-menu__tab-anchor {
    font-size: 14px;
    line-height: 18px;
    pointer-events: auto;
  }

  .mega-menu__tab-toggle {
    pointer-events: auto;
  }

  .mega-menu__section-title,
  .site-header .mega-menu a.mega-menu__section-title,
  .site-header .mega-menu a.mega-menu__section-title:visited,
  .site-header .mega-menu a.mega-menu__section-title:hover {
    font-size: 14px;
    line-height: 17px;
  }

  .mega-menu__section {
    gap: 20px;
  }

  .mega-menu__list {
    gap: 20px;
  }

  .site-header .mega-menu a.mega-menu__link,
  .site-header .mega-menu a.mega-menu__link:visited {
    font-size: 14px;
    line-height: 17px;
    color: #1a1919;
  }

  .site-header .mega-menu a.mega-menu__footer-link,
  .site-header .mega-menu a.mega-menu__footer-link:visited,
  .site-header .mega-menu a.mega-menu__footer-link:hover {
    font-size: 14px;
    margin-top: 20px;
  }

  .mega-menu__banner-title {
    font-size: 32px;
  }

  .mega-menu__banner-text {
    font-size: 16px;
  }

  .site-header .mega-menu a.mega-menu__banner-btn,
  .site-header .mega-menu a.mega-menu__banner-btn:visited,
  .site-header .mega-menu a.mega-menu__banner-btn:hover {
    font-size: 16px;
  }

  .mega-menu__panel {
    order: 1;
    flex: 1 0 100%;
    display: none;
    position: static;
    transform: none;
    width: 100%;
    padding-top: 0;
    border-top: 0;
  }

  .mega-menu__tab.is-open > .mega-menu__panel {
    display: block;
  }

  .mega-menu__panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 0 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .mega-menu__columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    width: auto;
    gap: 20px 16px;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__columns {
    grid-template-columns: repeat(var(--mm-col-count, 3), minmax(0, 1fr));
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__column:has(.mega-menu__section--list-cols-2) {
    min-width: 0;
    width: auto;
    grid-column: span 2;
  }

  /* Compact на tablet/mobile — как default (SEO) */
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__panel-inner {
    display: grid;
    grid-template-columns: 1fr;
    flex-direction: unset;
    align-items: stretch;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__columns {
    flex: none;
    width: 100%;
  }

  .mega-menu__panel[data-mm-layout="compact"][data-mm-col-count="3"] .mega-menu__column:has(.mega-menu__section--list-cols-2) {
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign {
    flex: none;
    width: 100%;
    min-width: 0;
    align-self: auto;
    border-radius: 24px;
    overflow: hidden;
    background: var(--mm-banner-grad);
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch .mega-menu__banner-card {
    display: none;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner-foot {
    display: contents;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) {
    display: grid;
    grid-template-columns: 181px minmax(0, 1fr);
    height: 200px;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-body,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-head {
    display: contents;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-search {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 179px;
    max-width: 179px;
    max-height: none;
    height: 191px;
    margin: 18px 0 0 2px;
    align-self: start;
    object-fit: contain;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-title,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-text {
    grid-column: 2;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-btn {
    grid-column: 2;
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 190px;
    max-width: 190px;
    margin-top: 0;
    min-height: 64px;
    height: 64px;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-deco {
    top: 80%;
    left: 50%;
    bottom: auto;
    right: auto;
    width: 230px;
    transform: translateY(-50%);
    object-position: left center;
    opacity: 1;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-title {
    font-size: 32px;
    max-width: none;
    white-space: nowrap;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch:not(.mega-menu__banner--stretch-split):not(.mega-menu__banner--stretch-foreign) .mega-menu__banner-text {
    margin: 0;
    padding-top: 0;
    font-size: 14px;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign {
    display: grid;
    grid-template-columns: 181px minmax(0, 1fr);
    height: 200px;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign > .mega-menu__banner-search {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 179px;
    max-width: 179px;
    height: 191px;
    margin: 18px 0 0 2px;
    align-self: start;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-deco {
    top: 80%;
    left: 50%;
    bottom: auto;
    width: 230px;
    transform: translateY(-50%);
    object-position: left center;
    opacity: 1;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-body {
    position: static;
    display: flex;
    flex-direction: column;
    flex: none;
    height: auto;
    min-height: 0;
    padding: 28px 40px 20px 0;
    gap: 10px;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-title {
    max-width: none;
    width: auto;
    font-size: 32px;
    white-space: nowrap;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-text {
    margin: 0;
    font-size: 14px;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-foreign .mega-menu__banner-btn {
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 190px;
    max-width: 190px;
    margin-top: 0;
    min-height: 64px;
    height: 64px;
  }

  .mega-menu__column {
    display: flex;
    flex-direction: column;
    grid-template-rows: none;
    grid-row: auto;
    gap: 0;
    padding: 0 12px;
  }

  .mega-menu__column:first-child {
    padding-left: 0;
  }

  .mega-menu__column:last-child {
    padding-right: 0;
  }

  .mega-menu__column > .mega-menu__section:only-child {
    grid-row: auto;
  }

  .mega-menu__column > .mega-menu__section:first-child:not(:only-child) {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--mm-divider);
  }

  .mega-menu__column > .mega-menu__section + .mega-menu__section {
    padding-top: 20px;
    border-top: 0;
  }

  .mega-menu__section-toggle {
    display: none;
  }

  .mega-menu__banner {
    display: grid;
    grid-template-columns: 181px minmax(0, 1fr);
    align-items: stretch;
    column-gap: 16px;
    width: 100%;
    height: 200px;
    box-sizing: border-box;
    padding: 0;
    border-radius: 24px;
    background: var(--mm-banner-grad);
    overflow: hidden;
    position: relative;
  }

  .mega-menu__banner-card {
    display: none;
  }

  .mega-menu__banner-deco {
    left: 50%;
    top: 80%;
    width: 230px;
    height: auto;
    max-height: none;
    margin: 0;
    transform: translateY(-50%);
    object-fit: contain;
    object-position: left center;
    opacity: 1;
    z-index: 0;
  }

  .mega-menu__banner-search {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    width: 179px;
    height: 191px;
    margin: 18px 0 0 2px;
    align-self: start;
    object-fit: contain;
    object-position: left top;
  }

  .mega-menu__banner-body {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    z-index: 1;
    align-self: stretch;
    height: auto;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 28px 40px 20px 0;
    text-align: left;
  }

  .mega-menu__banner-title {
    margin: 0;
    max-width: none;
    white-space: nowrap;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.12;
    text-align: left;
  }

  .mega-menu__banner-text {
    margin: 0;
    max-width: 420px;
    padding-right: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.28;
    text-align: left;
  }

  .site-header .mega-menu a.mega-menu__banner-btn,
  .site-header .mega-menu a.mega-menu__banner-btn:visited,
  .site-header .mega-menu a.mega-menu__banner-btn:hover {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 2;
    box-sizing: border-box;
    width: 190px;
    max-width: 190px;
    min-height: 64px;
    height: 64px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.12;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 181px;
    align-items: stretch;
    width: 100%;
    height: 200px;
    background: var(--mm-banner-grad);
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-body {
    padding: 28px 40px 20px 28px;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-visual .mega-menu__banner-search {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 179px;
    max-width: 179px;
    margin: 18px 0 0 2px;
    align-self: start;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__banner--stretch-split .mega-menu__banner-visual .mega-menu__banner-deco {
    left: 45%;
    top: 90%;
    bottom: auto;
    transform: translate(-50%, -35%);
    opacity: 0.85;
  }
}

/* Общий баннер tablet — скрыт по умолчанию, 769–1400 ниже */
.mega-menu__banner--tablet-shared {
  display: none;
}

/* Tablet: 769–1400 (бургер, не мобилка) */
@media (min-width: 769px) and (max-width: 1400px) {
  .mega-menu__panel[data-mm-layout="default"] .mega-menu__columns,
  .mega-menu__columns {
    grid-template-columns: repeat(4, 216px);
    width: auto;
  }

  .mega-menu__panel[data-mm-layout="compact"][data-mm-col-count="4"] .mega-menu__columns {
    grid-template-columns: repeat(4, 216px);
    width: auto;
  }

  .mega-menu__panel[data-mm-layout="compact"][data-mm-col-count="3"] .mega-menu__columns {
    grid-template-columns: 216px 216px 432px;
    width: auto;
  }

  .mega-menu__panel[data-mm-layout="compact"][data-mm-col-count="2"] .mega-menu__columns {
    grid-template-columns: 216px 432px;
    width: auto;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__columns {
    width: auto;
  }

  /* Как на desktop: широкая колонка — отдельный трек, не span 2 */
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__column:has(.mega-menu__section--list-cols-2) {
    grid-column: auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .mega-menu__panel[data-mm-layout="compact"][data-mm-col-count="3"] .mega-menu__column:has(.mega-menu__section--list-cols-2),
  .mega-menu__panel[data-mm-layout="compact"][data-mm-col-count="2"] .mega-menu__column:has(.mega-menu__section--list-cols-2) {
    width: 432px;
    min-width: 432px;
    max-width: 432px;
  }

  .mega-menu {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 40px;
    background: #fff;
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  }

  .mega-menu__tabs {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .mega-menu__banner--tablet-shared {
    display: grid !important;
    flex-shrink: 0;
    width: 100%;
    margin-top: 24px;
  }

  .mega-menu__banner--tablet-shared .mega-menu__banner-foot {
    display: contents;
  }

  .mega-menu__tab .mega-menu__panel .mega-menu__banner {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .mega-menu {
    padding: 30px;
  }
}

/* ≤900 */
@media (max-width: 900px) {
  .mega-menu__tabs {
    padding: 30px;
    gap: 12px 20px;
    border-radius: 32px;
  }

  .mega-menu__tab-anchor {
    font-size: 13px;
    line-height: 16px;
  }

  .mega-menu__section-title,
  .site-header .mega-menu a.mega-menu__section-title,
  .site-header .mega-menu a.mega-menu__section-title:visited,
  .site-header .mega-menu a.mega-menu__section-title:hover {
    font-size: 13px;
    line-height: 16px;
  }

  .site-header .mega-menu a.mega-menu__link,
  .site-header .mega-menu a.mega-menu__link:visited {
    font-size: 13px;
    line-height: 16px;
    color: #1a1919;
  }

  .mega-menu__panel-inner {
    gap: 20px;
    padding-top: 16px;
  }

  .mega-menu__columns {
    gap: 16px 12px;
  }

  .mega-menu__column {
    padding: 0 8px;
  }

  .mega-menu__banner {
    height: 200px;
    column-gap: 12px;
    padding: 0;
  }

  .mega-menu__banner-deco {
    left: 50%;
    top: 80%;
    transform: translateY(-50%);
  }

  .mega-menu__banner-search {
    width: 172px;
    height: 182px;
    margin: 28px 0 0 10px;
  }

  .mega-menu__banner-body {
    gap: 8px;
    padding: 24px 40px 16px 0;
  }

  .mega-menu__banner-title {
    font-size: 24px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .mega-menu__banner-text {
    font-size: 12px;
    line-height: 1.28;
    max-width: none;
  }

  .site-header .mega-menu a.mega-menu__banner-btn,
  .site-header .mega-menu a.mega-menu__banner-btn:visited,
  .site-header .mega-menu a.mega-menu__banner-btn:hover {
    right: 40px;
    bottom: 40px;
    width: 190px;
    max-width: 190px;
    min-height: 64px;
    height: 64px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.15;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .mega-menu__tabs {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Общий баннер мобилки — только ≤768 */
.mega-menu__banner--mobile-shared {
  display: none;
}

/* ≤768 */
@media (max-width: 768px) {
  .mega-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    --mm-banner-grad: linear-gradient(46deg, #fb8227 0%, #f7b432 100%);
  }

  .mega-menu__tabs {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .mega-menu__banner--mobile-shared {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
    width: calc(100% - 20px);
    height: auto;
    min-height: 0;
    margin: 10px 10px 0;
    padding: 24px 24px 18px;
    border-radius: 19px;
    gap: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    color: #fff;
    background: var(--mm-banner-grad);
  }

  .mega-menu__banner--mobile-shared .mega-menu__banner-card {
    display: none;
  }

  .mega-menu__banner--mobile-shared .mega-menu__banner-deco {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 7%;
    top: auto;
    z-index: 0;
    width: 230px;
    max-width: 72%;
    height: auto;
    margin: 0;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center bottom;
    opacity: 1;
    pointer-events: none;
  }

  .mega-menu__banner--mobile-shared .mega-menu__banner-body {
    display: contents;
  }

  .mega-menu__banner--mobile-shared .mega-menu__banner-head,
  .mega-menu__banner--mobile-shared .mega-menu__banner-foot {
    display: contents;
  }

  .mega-menu__banner--mobile-shared .mega-menu__banner-search {
    order: 3;
    position: relative;
    z-index: 1;
    top: auto;
    right: auto;
    left: auto;
    width: 150px;
    height: auto;
    max-height: none;
    margin: 12px auto 0;
    align-self: center;
    object-fit: contain;
    pointer-events: none;
  }

  .mega-menu__banner--mobile-shared .mega-menu__banner-title {
    order: 1;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    white-space: normal;
  }

  .mega-menu__banner--mobile-shared .mega-menu__banner-text {
    order: 2;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 18px 0 0;
    padding-top: 0;
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 12px;
    line-height: 1.28;
  }

  .site-header .mega-menu .mega-menu__banner--mobile-shared a.mega-menu__banner-btn,
  .site-header .mega-menu .mega-menu__banner--mobile-shared a.mega-menu__banner-btn:visited,
  .site-header .mega-menu .mega-menu__banner--mobile-shared a.mega-menu__banner-btn:hover {
    order: 4;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 56px;
    height: auto;
    /* ~⅓ высоты лупы + чуть выше */
    margin: calc(-150px * 202 / 190 / 3 - 12px) 0 0 !important;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.12;
  }

  .mega-menu__tab {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mega-menu__tab-link {
    justify-content: space-between;
    gap: 8px;
    padding: 16px 16px 16px 20px;
    box-shadow: inset 0 -1px 0 var(--mm-divider);
    cursor: pointer;
    background: transparent;
  }

  .mega-menu__tab.is-open .mega-menu__tab-link {
    box-shadow: none;
  }

  .mega-menu__tab:last-child .mega-menu__tab-link {
    box-shadow: none;
  }

  .site-header:has(.mega-menu) .menu__mobile-top,
  .site-header:has(.mega-menu) .menu-mobile-top {
    border-top: 0;
  }

  .site-header .mega-menu a.mega-menu__tab-anchor,
  .site-header .mega-menu a.mega-menu__tab-anchor:visited,
  .mega-menu__tab-anchor {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    text-transform: uppercase;
    color: #1d1d1d;
    pointer-events: auto;
  }

  .site-header .mega-menu .mega-menu__tab.is-open a.mega-menu__tab-anchor,
  .site-header .mega-menu .mega-menu__tab.is-open a.mega-menu__tab-anchor:visited,
  .site-header .mega-menu .mega-menu__tab.is-open a.mega-menu__tab-anchor:hover,
  .site-header .mega-menu .mega-menu__tab.is-current a.mega-menu__tab-anchor,
  .site-header .mega-menu .mega-menu__tab.is-current a.mega-menu__tab-anchor:visited,
  .site-header .mega-menu .mega-menu__tab.is-current a.mega-menu__tab-anchor:hover {
    color: #fb8227;
  }

  .mega-menu__tab-toggle {
    pointer-events: auto;
    color: #1d1d1d;
  }

  .mega-menu__tab.is-open .mega-menu__tab-toggle,
  .mega-menu__tab.is-current .mega-menu__tab-toggle {
    color: #fb8227;
  }

  .mega-menu__tab-anchor::after {
    display: none;
  }

  .mega-menu__tab-toggle {
    width: 28px;
    height: 28px;
  }

  .mega-menu__tab-chevron {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-top: 0;
  }

  .mega-menu__tab.is-open .mega-menu__tab-chevron {
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    margin-top: -4px;
  }

  .mega-menu__tab.is-current:not(.is-open) .mega-menu__tab-chevron,
  .mega-menu__tab:hover:not(.is-open) .mega-menu__tab-chevron {
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-left: 0;
    border-top: 0;
    transform: rotate(-45deg);
    margin-top: 0;
  }

  .mega-menu__panel {
    flex: none;
    padding-top: 0;
    border-top: 0;
    display: none;
  }

  .mega-menu__tab:hover > .mega-menu__panel {
    display: none;
  }

  .mega-menu__tab.is-open > .mega-menu__panel {
    display: block;
  }

  .mega-menu__panel-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .mega-menu__panel[data-mm-layout="default"] .mega-menu__panel-inner,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__panel-inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    align-items: stretch;
  }

  .mega-menu__panel[data-mm-layout="default"] .mega-menu__columns,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__columns,
  .mega-menu__panel .mega-menu__columns {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--mm-soft);
    border-radius: 0;
  }

  .mega-menu__panel[data-mm-layout="default"] .mega-menu__column,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__column,
  .mega-menu__column {
    display: flex !important;
    flex-direction: column;
    grid-row: auto !important;
    grid-template-rows: none !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    gap: 0;
    padding: 0;
    overflow: visible;
  }

  .mega-menu__panel[data-mm-layout="default"] .mega-menu__column + .mega-menu__column,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__column + .mega-menu__column,
  .mega-menu__column + .mega-menu__column {
    border-left: 0;
  }

  .mega-menu__panel[data-mm-layout="default"] .mega-menu__column > .mega-menu__section:only-child,
  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__column > .mega-menu__section:only-child {
    grid-row: auto;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__columns {
    flex: none;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__column:has(.mega-menu__section--list-cols-2) {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .mega-menu__panel[data-mm-layout="compact"] .mega-menu__section--list-cols-2 .mega-menu__list {
    grid-template-columns: 1fr;
  }

  /* Колонки только у открытой вкладки (панель закрыта — display:none) */
  .mega-menu__tab:not(.is-open) .mega-menu__panel .mega-menu__columns {
    display: none !important;
  }

  .mega-menu__tab .mega-menu__banner {
    display: none !important;
  }

  .mega-menu__column {
    gap: 0;
    padding: 0;
  }

  .mega-menu__column + .mega-menu__column {
    border-left: 0;
  }

  .mega-menu__section {
    gap: 0;
    padding: 15px 20px;
    border-bottom: 1px solid var(--mm-divider);
  }

  .mega-menu__columns > .mega-menu__column:last-child > .mega-menu__section:last-child {
    border-bottom: 0;
  }

  .mega-menu__section-head {
    min-height: 17px;
  }

  .mega-menu__section-title,
  .site-header .mega-menu a.mega-menu__section-title,
  .site-header .mega-menu a.mega-menu__section-title:visited,
  .site-header .mega-menu a.mega-menu__section-title:hover {
    font-size: 14px;
    line-height: 17px;
    font-weight: 600;
    color: #fb8227;
  }

  .mega-menu__section.is-open .mega-menu__section-title,
  .site-header .mega-menu .mega-menu__section.is-open a.mega-menu__section-title {
    color: #fb8227;
    font-weight: 600;
  }

  .mega-menu__section-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cfcfcf;
  }

  .mega-menu__section-chevron {
    border-color: #cfcfcf;
    transform: rotate(-45deg);
    margin-top: 0;
  }

  .mega-menu__section.is-open .mega-menu__section-toggle {
    color: #000;
  }

  .mega-menu__section.is-open .mega-menu__section-chevron {
    transform: rotate(45deg);
    margin-top: -4px;
    border-color: #000;
  }

  .mega-menu__section-body[hidden] {
    display: none !important;
  }

  .mega-menu__section-body {
    padding: 12px 0 8px;
  }

  .mega-menu__list {
    gap: 16px;
  }

  .mega-menu__section--list-cols-2 .mega-menu__list {
    grid-template-columns: 1fr;
  }

  .site-header .mega-menu a.mega-menu__link,
  .site-header .mega-menu a.mega-menu__link:visited {
    font-size: 14px;
    line-height: 17px;
    font-weight: 400;
    color: #1a1919;
  }
}
