.mega-menu table td .wrap > a {
  /*transition: color ease 0.3s;*/
}
.light-menu-color .mega-menu table td .wrap > a:not(:hover),
.light-menu-color .logo-row .top-description,
.light-menu-color .logo_and_menu-row .top-btn:not(:hover) > span {
  color: #fff;
}
.light-menu-color .logo_and_menu-row svg:not(.not_fill) path {
  fill: #fff !important;
}
.top-block .top-block-item .personal.top > a {
  transition: none;
}

body .wrapper1.long_banner.with_left_block .header_wrap .line-row {
  display: none !important;
}
body .wrapper1.long_banner .top_big_one_banner .top_slider_wrapp {
  margin-bottom: 0px;
}
body .wrapper1.long_banner .drag-block.grey.TIZERS .tizers_block {
  margin-top: 0px;
}

/*long banner*/
@media (min-width: 992px) {
  .wrapper1.long_banner .header_wrap .wrapper_inner,
  .wrapper1.long_banner .header_wrap .maxwidth-theme,
  .wrapper1.long_banner .top-block > .maxwidth-theme > .wrapp_block {
    background: none;
  }
  .wrapper1.long_banner .header_wrap .top-block {
    border-bottom-color: transparent;
  }
  .wrapper1.long_banner .header_wrap .top-block .wrapp_block {
    position: relative;
  }
  .wrapper1.long_banner .header_wrap .top-block .wrapp_block:after {
    /*content:"";display:block;width:100%;height:1px;background: #000;opacity: 0.05;position:absolute;bottom:-14px;*/
  }
  .wrapper1.long_banner .header_wrap .line-row {
    border-top-color: transparent;
    background: #000;
    opacity: 0.1;
  }
  .wrapper1.long_banner .header_wrap.light-menu-color .line-row {
    background: #fff;
  }
  .wrapper1.long_banner .header_wrap .wrapper_inner .logo_and_menu-row:after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #000;
    opacity: 0.05;
    position: absolute;
    bottom: 0px;
    opacity: 0;
  }

  .wrapper_inner > .right_block > .middle .maxwidth-theme {
    padding: 0px;
  }

  .fill_bg_n .wrapper1.long_banner .menu-row.middle-block.bglight,
  .fill_bg_y .wrapper1.long_banner .menu-row.middle-block.bglight .mega-menu {
    border-color: transparent;
  }
  .fill_bg_n
    .wrapper1.long_banner
    .menu-row.middle-block.bglight
    .row
    .col-md-12:after,
  .fill_bg_y
    .wrapper1.long_banner
    .menu-row.middle-block.bglight
    .mega-menu
    .row
    .col-md-12:after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #000;
    opacity: 0.05;
    position: absolute;
    bottom: 0px;
  }
  .wrapper1.long_banner .menu-row.middle-block.bglight .mega-menu,
  .wrapper1.long_banner .menu-row.middle-block.bglight .right-icons {
    border-top-color: transparent;
  }
  .wrapper1.long_banner .menu-row.middle-block.bglight .wrap_icon {
    border-left-color: transparent;
  }

  .wrapper1.long_banner .top_big_one_banner {
    margin-top: -100px;
  }
  .wrapper1.long_banner
    .top_big_one_banner
    .top_slider_wrapp
    .flexslider
    .slides
    > li,
  .wrapper1.long_banner .top_big_one_banner .top_slider_wrapp .flexslider {
    height: 631px;
  }
  .wrapper1.long_banner
    .top_big_one_banner
    .top_slider_wrapp
    .flexslider
    .slides
    > li
    td {
    height: 531px;
  }
  .wrapper1.long_banner .top_slider_wrapp .flexslider .slides > li {
    background-size: cover;
  }
  .wrapper1.long_banner .flexslider .wrapper_inner {
    padding-top: 100px;
  }
  .wrapper1.long_banner .flexslider .banner_title {
    padding-top: 0px;
  }

  /* Стили для десктопной версии */
  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-9.slide {
    width: 66.6%; /* Размер под 8 колонок из 12 */
  }

  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child {
    width: 33.33333333%; /* Размер под 4 колонки из 12 */
    margin-top: 0px;
    padding-left: 16px;
  }

  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child
    .item
    .item_inner {
    height: 350px !important;
    /* width: 378px; */
    margin-right: 27px;
  }

  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child
    .item
    img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  /* Стили для нижних баннеров в десктопной версии */
  .top_big_one_banner.short_block.top_margin_banner .col-md-12.items .item {
    width: 33.33333333%;
    float: left;
    padding: 0;
  }

  .top_big_one_banner.short_block.top_margin_banner
    .col-md-12.items
    .item
    .item_inner {
    /* margin: 10px; */
    height: 250px !important;
  }

  /* Общие стили для изображений в баннерах */
  .top_big_one_banner.short_block.top_margin_banner .col-md-12.items .item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  /* Отключаем слайдер на десктопе */
  /* .top_big_one_banner.short_block.top_margin_banner
    .col-md-12.items.swipeignore {
    display: flex;
    flex-wrap: wrap;
  } */
}

/* Адаптивные стили */
@media (max-width: 991px) {
  .top_big_one_banner.short_block.top_margin_banner.with_childs {
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .isMobile {
    display: none !important;
  }

  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-9.slide {
    width: 100%;
    margin-top: 10px;
    /* padding: 0; */
  }
  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child {
    width: 98.3%;
    margin-top: 10px;
    padding: 0;
  }

  /* Стили для нижних баннеров в планшетной версии */
  .top_big_one_banner.short_block.top_margin_banner .col-md-12.items {
    white-space: nowrap;
    display: flex;
    overflow: auto;
    flex-wrap: nowrap;
    justify-content: normal;
    gap: 0;
  }

  .top_big_one_banner.short_block.top_margin_banner
    .col-md-12.items.swipeignore
    .item {
    flex-shrink: 0;
    white-space: normal;
  }

  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child
    .item
    .item_inner {
    height: auto !important;
    min-height: 250px;
    max-width: 100%;
    margin: 0 auto;
  }

  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child
    .item
    img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child
    .item
    .item_inner {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child
    .item
    .item_inner {
    min-height: 150px;
  }

  /* Стили для нижних баннеров на мобильных */
  .top_big_one_banner.short_block.top_margin_banner .col-md-12.items .item {
    width: 100%;
    float: none;
  }

  .top_big_one_banner.short_block.top_margin_banner
    .col-md-12.items
    .item
    .item_inner {
    height: 200px !important;
    margin: 5px 0;
  }

  /* Стили для мобильного слайдера */
  .top_big_one_banner.short_block.top_margin_banner
    .mobile-overflow.swipeignore {
    overflow: hidden;
    margin: 0 -10px;
    padding: 0 10px;
  }

  .top_big_one_banner.short_block.top_margin_banner
    .mobile-overflow.swipeignore
    .item {
    width: 280px;
    display: inline-block;
    vertical-align: top;
    white-space: normal;
    padding: 0 8px 0 14px;
  }
}

/* Фикс для FAVORIT_ITEM: делаем drag-block по ширине и высоте как col-md-3.child */
.top_big_one_banner.short_block.top_margin_banner.with_childs
  .col-md-3.child
  .favorit-item-fit {
  /* width: 95%; */
  /* height: 100%; */
  width: 97.6%;
  height: 350px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  margin-bottom: 0 !important;
  margin: 0;
  /* border: 1px solid red; */
  padding-right: 0;
  padding-left: 0;
}

/* @media (max-width: 1024px) {
  .top_big_one_banner.short_block.top_margin_banner.with_childs .col-md-3.child .favorit-item-fit {
    width: 308px;
  }
} */

@media (max-width: 991px) {
  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child
    .favorit-item-fit {
    width: 100%;
    height: auto;
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .top_big_one_banner.short_block.top_margin_banner.with_childs
    .col-md-3.child
    .favorit-item-fit {
    min-height: 150px;
  }
}

/* Компактный стиль для контента внутри FAVORIT_ITEM */
.favorit-item-fit {
  font-size: 13px;
  /* padding: 10px 8px !important; */
  line-height: 1.3;
}
.favorit-item-fit .content_wrapper_block,
.favorit-item-fit .maxwidth-theme,
.favorit-item-fit .hot-wrapper-items,
.favorit-item-fit .items {
  padding: 0 !important;
  margin: 0 !important;
}
.favorit-item-fit .item {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}
.favorit-item-fit .item .image-wrapper,
.favorit-item-fit .item .image {
  /* max-width: 120px !important; */
  /* margin: 0 auto 8px auto !important; */
}
.favorit-item-fit .item .item_info {
  padding: 0 !important;
}
.favorit-item-fit .item .title,
.favorit-item-fit .item .item_info_wrapper {
  display: flex;
  /* gap: 20px; */
  flex-direction: column;
  justify-content: space-between;
}
.favorit-item-fit .item .cost,
.favorit-item-fit .item .footer_button {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}
.favorit-item-fit .item .article_block,
.favorit-item-fit .item .sa_block {
  margin: 0 !important;
  font-size: 12px !important;
}
.favorit-item-fit .item .main_item_wrapper {
  padding: 0 !important;
}
.favorit-item-fit .item .item_info--bottom_block {
  margin-top: 4px !important;
}
.favorit-item-fit .item .basket_props_block {
  display: none !important;
}
.favorit-item-fit .item .item_inner {
  min-height: unset !important;
  height: auto !important;
  padding: 0 !important;
}
.favorit-item-fit .item img {
  /* max-height: 90px !important; */
  width: auto !important;
  object-fit: contain !important;
}

@media (min-width: 992px) {
  body .top_big_banners.short_block .items .item:not(.wide100) {
    width: fit-content;
  }
}
@media (max-width: 991px) {
  .favorit-item-fit {
    padding: 0 !important;
  }
  .favorit-item-fit .item .image-wrapper,
  .favorit-item-fit .item .image {
    /* max-width: 80px !important; */
  }
  .favorit-item-fit .item img {
    max-height: fit-content !important;
  }
}
