@media (max-width: 767px) {

  .test-filter table {
    display: none;
  }
.top-info-wrapper {
    display: none !important;
}


  .test-filter .view-content {
    min-height: 1000px;
  }

  .view-header {
    height: max-content;
    /* height: auto; */
    height: min-content;
  }


  .layout-container.layout-container--inner.page--common {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .top-info-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 0 10px 22px 10px;
    flex-direction: column-reverse;
  }

  .view-conent_and_filters.mobile-catalog-layout {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .view-conent_and_filters.mobile-catalog-layout>* {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 7px 0 !important;
    padding: 0 !important;
  }

  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-content {
    display: block !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-content>.table-responsive,
  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-content>.table-responsive.col,
  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-content>.col,
  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-content>div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
  }

  .mobile-table-cards-enabled table.is-mobile-cards-source {
    display: none !important;
  }

  .mobile-table-cards-enabled .view-content.row>.table-responsive.col,
  .mobile-table-cards-enabled .mobile-catalog-content>.table-responsive,
  .mobile-table-cards-enabled .mobile-catalog-content>.table-responsive.col,
  .mobile-table-cards-enabled .mobile-catalog-content>div {
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .view-conent_and_filters.mobile-catalog-layout .view-content.row>.table-responsive.col {
    overflow: visible !important;
  }

  .mobile-catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 0;
    background: #fff;
    border-radius: 0;
  }

  .mobile-catalog-toolbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #1f1f1f;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
    cursor: pointer;
  }

  .mobile-catalog-toolbar__icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex: 0 0 22px;
  }

  .mobile-catalog-toolbar__icon--sort {
    background-image: url('/themes/custom/newstratec3/images/view-sorting.svg');
  }

  .mobile-catalog-toolbar__icon--filter {
    background-image: url('/themes/custom/newstratec3/images/view-open-filters.svg');
  }

  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-sort-panel,
  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-filters {
    display: none !important;
  }

  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-sort-panel.is-open {
    display: block !important;
  }

  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-filters.is-open {
    display: block !important;
  }

  .mobile-catalog-sort-panel {
    margin: 0 0 16px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e7e1e1;
    border-radius: 10px;
  }

  .mobile-catalog-sort-panel .form-item,
  .mobile-catalog-sort-panel .js-form-item {
    margin-bottom: 12px;
  }

  .mobile-catalog-sort-panel label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: #555;
  }

  .mobile-catalog-sort-panel select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
  }

  .mobile-catalog-sort-actions {
    margin-top: 12px;
  }

  .mobile-catalog-sort-apply {
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #1f1f1f;
    background: transparent;
    color: #1f1f1f;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-catalog-sort-panel .form-actions,
  .mobile-catalog-sort-panel .mobile-catalog-filter-actions {
    display: none !important;
  }

  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-filters {
    position: relative;
    margin: 0 0 16px 0 !important;
    padding: 14px 14px 7px 14px !important;
    background: #fff;
    border: 1px solid #e7e1e1;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .view-conent_and_filters.mobile-catalog-layout .mobile-catalog-filters .views-exposed-form.bef-exposed-form {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* .views-exposed-form.bef-exposed-form .bef-checkboxes,
  fieldset[data-drupal-selector="edit-m"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector^="edit-f-"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-alloy"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-chip"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-long"] div.fieldset-wrapper .bef-checkboxes {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    justify-content: stretch !important;
  } */

  .views-exposed-form.bef-exposed-form .fieldset-wrapper {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .views-exposed-form.bef-exposed-form .js-form-type-checkbox {
    margin: 0 0 8px !important;
  }

  .views-exposed-form.bef-exposed-form .fieldset-legend {
    font-size: 15px;
  }

  .mobile-catalog-filters:not(.is-open) .mobile-catalog-filter-actions {
    display: none !important;
  }

  .mobile-catalog-filter-actions .form-submit,
  .mobile-catalog-filter-actions input[type="submit"],
  .mobile-catalog-filter-actions .button {
    width: 100%;
    min-height: 34px;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 1px solid #1f1f1f !important;
    background: transparent !important;
    color: #1f1f1f !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  .mobile-catalog-filters.is-open {
    padding-bottom: 72px !important;
  }

  .views-filter-hide-toggle {
    display: none !important;
  }

  .view-content.row {
    display: block !important;
    gap: 0 !important;
    margin: 0 !important;
  }

  .view-content.row>.table-responsive.col,
  .view-content.row>.col,
  .view-content.row>div {
    padding: 0 !important;
    margin: 0 0 14px !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .mobile-product-cards-wrapper {
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
  }

  .mobile-series-caption {
    margin: 0 0 5px;
    padding: 5px 8px 0px;
    background: #dfdfdf;
    border-radius: 5px;
  }

  .mobile-series-caption>div {
    display: block !important;
  }

  .mobile-series-caption .col-md-6.col-sm-12:last-child,
  .mobile-series-caption .view-brand {
    display: none !important;
  }

  .mobile-series-caption .cap-desc {
    padding: 0 !important;
  }

  .mobile-series-caption .turn-geom h2:first-child,
  .mobile-series-caption h2:first-child {
    margin: 0;
    font-size: 17px;
    line-height: 1;
    font-weight: 600;
    color: #1f1f1f;
    padding: 1px 10px 7px;
  }

  .mobile-series-caption .turn-geom h2,
  .mobile-series-caption h2 {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #6a6a6a;
  }

  .mobile-series-caption .turn-geom h2 a,
  .mobile-series-caption h2 a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 2px;
  }

  .mobile-series-caption .views-description {
    /* margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: #7a7a7a; */
  }

  .mobile-series-caption .views-description p {
    margin: 0;
    display: none;
  }

  .mobile-product-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  /* .mobile-product-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    gap: 10px;
    align-items: start;
    width: 100%;
    padding: 10px 12px;
    background: #f8f5f5;
    border-radius: 10px;
    box-shadow: none;
  } */
  .mobile-product-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 6px 6px;
    background: #f8f5f5;
    border-radius: 10px;
    box-shadow: none;
  }

  .mobile-product-card__media {
    width: 34px;
    min-width: 34px;
    padding-top: 2px;
  }

  .mobile-product-card__media img {
    display: block;
    width: 34px;
    max-width: 34px;
    height: auto;
    object-fit: contain;
  }

  .mobile-product-card__content {
    min-width: 0;
  }

  .mobile-product-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .mobile-product-card__badge.is-on-order {
    color: #b25463;
    background: #f4d7dd;
  }

  .mobile-product-card__badge.is-in-stock {
    color: #4ca25a;
    background: #dff1e1;
  }

  .mobile-product-card__title {
    font-size: 15px;
    line-height: 1.18;
    font-weight: 600;
    color: #5b6470;
    word-break: break-word;
  }

  .mobile-product-card__title a {
    color: inherit;
    text-decoration: none;
  }

  .mobile-product-card__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin-top: 6px;
    border: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.2;
    color: #6d6d6d;
    cursor: pointer;
  }

  .mobile-product-card__toggle::after {
    content: "";
    width: 24px;
    height: 15px;
    background-image: url(../images/expand-element.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
  }

  .mobile-product-card.is-open .mobile-product-card__toggle::after {
    transform: rotate(180deg);
  }

  .mobile-product-card__details {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5dddd;
  }

  .mobile-product-card.is-open .mobile-product-card__details {
    display: block;
  }

  .mobile-product-card__details-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    padding: 3px 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-product-card__details-label {
    color: #8a8a8a;
  }

  .mobile-product-card__details-value {
    min-width: 0;
    color: #4a4a4a;
    word-break: break-word;
  }

  .mobile-product-card__cart {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 28px;
    min-width: 28px;
    padding-top: 2px;
  }

  .mobile-product-card__cart .addtocart-quantity-wrapper-container,
  .mobile-product-card__cart .ajax-addtocart-wrapper,
  .mobile-product-card__cart img,
  .mobile-product-card__cart svg {
    display: none !important;
  }

  .mobile-product-card__cart .addtocart-link-class,
  .mobile-product-card__cart form,
  .mobile-product-card__cart .form-actions {
    margin: 0 !important;
  }

  .mobile-product-card__cart .addtocart-link-class a,
  .mobile-product-card__cart a.button,
  .mobile-product-card__cart .button,
  .mobile-product-card__cart button,
  .mobile-product-card__cart input[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent url('/themes/custom/newstratec3/images/icon-cart-black.svg') center center / 32px 32px no-repeat !important;
    box-shadow: none !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .turn-geom>h2:not(:first-of-type) {
    display: none;
  }
}


@media (max-width: 767px) {

  /* Контейнер фильтров становится опорной точкой */
  .view-filters.mobile-catalog-filters {
    position: relative !important;
    box-sizing: border-box;
  }

  /* Панель кнопок теперь живёт ВНУТРИ filters, а не у экрана */

  .mobile-catalog-filters:not(.is-open) .mobile-catalog-filter-actions {
    display: none !important;
  }

  .mobile-catalog-filter-actions .form-submit,
  .mobile-catalog-filter-actions input[type="submit"],
  .mobile-catalog-filter-actions .button {
    flex: 1 1 0 !important;
    /* width: calc(50% - 5px) !important; */
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;

    margin: 0 !important;
    padding: 0 10px !important;

    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 34px !important;
    text-align: center !important;
    box-shadow: none !important;
    white-space: nowrap !important;
  }

  /* Сбросить фильтры */
  .mobile-catalog-filter-actions input[name="reset"],
  .mobile-catalog-filter-actions .form-submit[name="reset"] {
    border: 1px solid #d9d9d9 !important;
    background: #f2f2f2 !important;
    color: #1f1f1f !important;
  }

  /* Применить */
  .mobile-catalog-filter-actions input[type="submit"]:not([name="reset"]),
  .mobile-catalog-filter-actions .form-submit:not([name="reset"]) {
    border: 1px solid #820000 !important;
    background: #820000 !important;
    color: #fff !important;
  }

  /* Убираем старый запас снизу, который был нужен для fixed */
  .mobile-catalog-filters.is-open {
    padding-bottom: 14px !important;
  }
}

@media (max-width: 767px) {
  .view-filters.mobile-catalog-filters {
    position: relative !important;
    box-sizing: border-box;
    padding: 14px 10px 10px 10px !important;
  }

  .mobile-catalog-filters.is-open {
    padding-bottom: 10px !important;
  }

  .mobile-catalog-filter-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 20 !important;

    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 10px !important;

    width: 100% !important;
    margin: 10px 0 0 0 !important;
    padding: 0 0 10px 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
  }

  .mobile-catalog-filters:not(.is-open) .mobile-catalog-filter-actions {
    display: none !important;
  }

  .mobile-catalog-filter-actions .form-submit,
  .mobile-catalog-filter-actions input[type="submit"],
  .mobile-catalog-filter-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 1 1 0 !important;
    /* width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important; */
    min-width: 120px !important;

    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;

    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  .mobile-catalog-filter-actions input[name="reset"],
  .mobile-catalog-filter-actions .form-submit[name="reset"] {
    border: 1px solid #d9d9d9 !important;
    background: #f2f2f2 !important;
    color: #1f1f1f !important;
  }

  .mobile-catalog-filter-actions input[type="submit"]:not([name="reset"]),
  .mobile-catalog-filter-actions .form-submit:not([name="reset"]) {
    border: 1px solid #820000 !important;
    background: #820000 !important;
    color: #fff !important;
  }
}

@media (max-width: 767px) {
  .views-exposed-form.bef-exposed-form .form-actions {
    display: grid;
    gap: 12px;
    /* margin-top: 28px; */
    grid-auto-flow: column;
  }

  /* скрываем блои сортировки на фильтрах */
  .views-exposed-form .js-form-item.form-item.js-form-type-select.form-item-sort-order.js-form-item-sort-order,
  .views-exposed-form .js-form-item.form-item.js-form-type-select.form-item-sort-by.js-form-item-sort-by {
    display: none;
  }

  .turn-geom {
    display: flex;
  }

  .mobile-product-card__details-value h2 {
    display: none;
  }

  fieldset.fieldgroup.form-composite {
    max-height: 250px;
    overflow-y: auto;
  }

  fieldset[data-drupal-selector="edit-f-100-1"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-100-2"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-100-3"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-100-4"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-100-5"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-100-6"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-long"] div.fieldset-wrapper .bef-checkboxes {
    grid-template-columns: 95%;
    gap: 1%;
    align-items: start;
    row-gap: 4px;
  }

  fieldset[data-drupal-selector="edit-m"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-50-1"]>div>div>div,
  fieldset[data-drupal-selector="edit-f-50-2"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-50-3"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-50-4"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-50-5"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-50-6"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-50-7"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-alloy"] div.fieldset-wrapper .bef-checkboxes,
  fieldset[data-drupal-selector="edit-f-chip"] div.fieldset-wrapper .bef-checkboxes {
    grid-template-columns: 42% 42%;
    gap: 5%;
    row-gap: 4px;
    display: grid;
    justify-content: space-between;
  }

  .view-conent_and_filters .mobile-catalog-toolbar {
    display: grid !important;
    grid-auto-flow: column;
    justify-content: space-between;
    padding: 10px 10px !important;
  }

  .page-title-node h1 {
    font-size: 35px;
    /* margin-left: 5px; */
    line-height: 1em;
  }

  .mobile-product-card__details-row:has(.flag-bookmark) {
    display: none;
  }

  
}