@media (min-width: 1024px) {
  .view-slider-show.view-display-id-front_slider {
    position: relative;
    /* padding: 0 40px; */
    /* margin: -71px 0 20px; */
  }

  .view-slider-show.view-display-id-front_slider .views-field.views-field-title {
      margin-top: -14px;
  }

  .view-slider-show.view-display-id-front_slider > .view-header {
    display: grid;
    justify-content: end;
  }

  section.front-section.front_popular_products.region-shell {
    padding: 0 40px;
  }

  .view-slider-show .region-front_popular_products h2.block__title {
    color: #1f1f1f;
    font-family: 'Bebas Neue Cyrillic';
    font-style: normal;
    font-weight: 400;
    font-size: 54px;
    line-height: 52px;
    margin: 0 0 15px;
  }

   .view-slider-show .view-conent_and_filters {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 0 !important;
    margin-top: 15px;
  }

   .view-slider-show .view-content.row.mobile-catalog-content {
    display: block !important;
    width: 100%;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
  }

   .view-content.row.mobile-catalog-content>.slider-front-product {
    --slider-gap: 24px;

    display: flex;
    flex-wrap: nowrap;
    gap: var(--slider-gap);
    width: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
  }

   .slider-front-product-item {
    flex: 0 0 calc((100% - (var(--slider-gap) * 5)) / 6);
    max-width: calc((100% - (var(--slider-gap) * 5)) / 6);
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 18px;
  }

   .view-slider-show .views-field-field-image .field-content {
    display: block;
    width: 100%;
    aspect-ratio: 332 / 186;
    background: #f7f5f5;
    border-radius: 8px;
    overflow: hidden;
  }

  .view-slider-show .views-field-field-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .view-slider-show .views-field-field-article-main {
    display: flex;
    gap: 6px;
    margin-top: 0;
    font-size: 10px;
    line-height: 1.25;
    color: #777;
  }

  .view-slider-show .views-label-field-article-main {
    white-space: nowrap;
    font-weight: 400;
  }

  .view-slider-show .views-field-title a {
    display: block;
    color: #1d1d1d;
    font-size: 12px;
    line-height: 1.25;
    text-decoration: none;
    word-break: break-word;
  }

  .slider-front-product__nav {
    visibility: hidden;
  }

  .view-slider-show.view-display-id-front_slider:hover .slider-front-product__nav {
    visibility: visible;
  }

  .slider-front-product__nav {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 44px;
    height: 44px;
    border: 1px solid #820000;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
      background-color .2s ease,
      border-color .2s ease;
  }

  .slider-front-product__nav--prev {
    left: 8px;
  }

  .slider-front-product__nav--next {
    right: 8px;
  }

  .slider-front-product__nav::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 1px auto 0;
    background-color: #820000;
    mask-image: url("../images/expand-element.svg");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-image: url("../images/expand-element.svg");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  .slider-front-product__nav--prev::before {
    transform: rotate(90deg);
  }

  .slider-front-product__nav--next::before {
    transform: rotate(-90deg);
  }

  .slider-front-product__nav:hover {
    background: #820000;
    border-color: #820000;
  }

  .slider-front-product__nav:hover::before {
    background-color: #fff;
  }

  .slider-front-product-item--clone {
    pointer-events: none;
  }
}


@media (max-width: 1023px) {

  section.front-section.front_popular_products.region-shell {
    padding: 21px 14px 0;
  }

  .slider-front-product .view-header {
    margin-bottom: 13px;
  }

   .view-slider-show .view-conent_and_filters {
    display: block !important;
    grid-template-columns: none !important;
    padding: 0 !important;
  }

   .view-slider-show .view-content.row.mobile-catalog-content {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    margin: 0 !important;
    padding: 0 0 0 !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* touch-action: pan-x; */
  }

   .view-slider-show .view-content.row.mobile-catalog-content::-webkit-scrollbar {
    display: none;
  }

  .view-slider-show.view-display-id-front_slider .view-content.row.mobile-catalog-content>.slider-front-product {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 19px;
    width: max-content;
    transform: none !important;
    /* touch-action: pan-x; */
  }

  .view-slider-show.view-display-id-front_slider .slider-front-product-item {
    flex: 0 0 calc((100vw - 48px) / 2);
    width: calc((100vw - 48px) / 2);
    max-width: calc((100vw - 48px) / 2);
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-snap-align: start;
  }

  .view-slider-show.view-display-id-front_slider .slider-front-product-item>.views-field-field-image:nth-of-type(1),
  .view-slider-show.view-display-id-front_slider .slider-front-product-item>.views-field-field-image:nth-of-type(4) {
    margin-top: 0;
  }

  .view-slider-show.view-display-id-front_slider .views-field-field-image .field-content {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 1 / 0.72;

    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
  }

  .view-slider-show.view-display-id-front_slider .views-field-field-image a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
  }

  .view-slider-show.view-display-id-front_slider .views-field-field-image img {
    display: block;
    max-width: 92%;
    max-height: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .view-slider-show.view-display-id-front_slider .views-field-field-article-main {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    margin-top: -6px;
    font-size: 11px;
    line-height: 1.25;
    color: #777;
  }

  .view-slider-show.view-display-id-front_slider .views-label-field-article-main {
    color: #999;
    font-weight: 400;
  }

  .view-slider-show.view-display-id-front_slider .views-field-title {
    margin-top: -8px;
  }

  .view-slider-show.view-display-id-front_slider .views-field-title a {
    display: block;

    color: #1d1d1d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;

    word-break: break-word;
  }

  .view-slider-show.view-display-id-front_slider .views-field-title a:hover {
    color: #820000;
  }

  .slider-front-product__nav,
  .slider-front-product-item--clone {
    display: none !important;
  }
}