/* Адаптивная кнопка прайс-листа */

.download-price__short { display: none !important; }
.download-price__full { display: inline !important; }

/* Нижняя полоса шапки: меню + прайс */
.header__bottom {
  align-items: center;
  flex-wrap: nowrap;
  min-height: 52px;
}

.header__menu {
  min-width: 0;
  /* overflow:auto обрезает mega-menu каталога — оставляем visible */
  overflow: visible;
}

.header__download-price {
  flex: 0 0 auto !important;
  padding-left: 12px !important;
  padding-right: 8px;
  max-width: none !important;
  width: auto !important;
  min-width: 0;
  align-self: stretch;
  display: flex !important;
  align-items: center;
}

.header__download-price .download-price {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  height: auto !important;
  min-height: 44px;
  padding: 8px 14px 8px 36px;
  white-space: nowrap !important;
  line-height: 1.2;
  text-align: left;
  background-size: 18px 18px;
  background-position: 12px center;
  box-sizing: border-box;
}

/* Десктоп: каталог по hover / focus (на случай если Bootstrap dropdown JS недоступен) */
@media (min-width: 992px) {
  .header .header__menu,
  .header .header__bottom,
  .header .main-menu {
    overflow: visible !important;
  }

  .header .catalog.mega-menu.dropdown:hover > .dropdown-menu,
  .header .catalog.mega-menu.dropdown:focus-within > .dropdown-menu,
  .header .catalog.mega-menu.dropdown.show > .dropdown-menu {
    display: block !important;
  }
}

/* Десктоп <1800: короткий «Прайс», чтобы не наезжать на пункты меню */
@media (max-width: 1799.98px) {
  .header__download-price .download-price__full { display: none !important; }
  .header__download-price .download-price__short { display: inline !important; }
  .header__download-price .download-price {
    font-size: 11px;
    padding: 8px 12px 8px 32px;
    background-position: 10px center;
    background-size: 16px 16px;
  }
}

/* Ниже lg шапка десктопная скрыта — прайс только в mobile-header */
@media (max-width: 991.98px) {
  .header__download-price { display: none !important; }
}

/* Мобильная шапка */
.mobile-header__price {
  padding: 10px 12px 4px;
  width: 100%;
  box-sizing: border-box;
}

.mobile-header__price .download-price,
.download-price--mobile {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: none !important;
  min-height: 46px;
  height: auto !important;
  padding: 12px 16px 12px 42px;
  border-radius: 8px;
  background-color: #eef7e6;
  background-position: 14px center;
  background-size: 18px 18px;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  white-space: normal !important;
  box-sizing: border-box;
}

.mobile-header__price .download-price__full { display: inline !important; }
.mobile-header__price .download-price__short { display: none !important; }

@media (max-width: 379.98px) {
  .mobile-header__price .download-price__full { display: none !important; }
  .mobile-header__price .download-price__short { display: inline !important; }
  .mobile-header__price .download-price,
  .download-price--mobile {
    padding-left: 38px;
    font-size: 13px;
    white-space: nowrap !important;
  }
}

/* Страница /price */
.download-price--page {
  display: inline-flex !important;
  align-items: center;
  min-height: 48px;
  height: auto !important;
  padding: 12px 20px 12px 42px;
  border-radius: 8px;
  background-color: #eef7e6;
  background-position: 14px center;
  max-width: 100%;
  white-space: normal !important;
  box-sizing: border-box;
}

@media (max-width: 575.98px) {
  .download-price--page {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
