.t915__container {
    max-width: 1400px;
}

.t-col_6 {
    max-width: 660px;
}

/* Контейнер карточки */
    /* Поток */

.t-feed__col-grid__content {
    padding: 30px 20px 20px;
}

.t-feed__col-grid__post-wrapper .t-feed__post-imgwrapper {
    margin-bottom: 0px !important;
}

.t-feed__col-grid__post-wrapper {
            border: 1px solid #E7E7ED; /* синяя рамка */
    border-radius: 24px; /* скругление под капсулу */
}

.t-feed__col-grid__post-wrapper:hover {
  border-color: #6C7BFF;
}

.t-feed__post-bgimg.t-bgimg.loaded {
  border-radius: 18px !important;
  margin: 24px 24px 0 24px !important; /* сверху, справа, снизу, слева */
  background-size: cover;
  background-position: center;
}

.t-feed__post-label {
    padding: 6px 16px; /* отступы внутри */
    border: 1px solid #235bb0; /* синяя рамка */
    border-radius: 40px; /* скругление под капсулу */
    color: #235bb0; /* текст синий */
    background-color: #fff; /* белый фон */
    line-height: 1.4;
}

.t-feed__post-label span {
    color: #235bb0;
}

.t-feed__post-popup__relevants-bgimg {
    border-radius: 24px;
}


/* Контейнер для кнопок */
.t-feed__parts-switch-wrapper {
  display: flex !important;
  justify-content: space-between;
  gap: 12px; /* расстояние между кнопками */
  flex-wrap: nowrap; /* чтобы не переносились */
  width: 100%;
}

/* Сами кнопки */
.t-feed__parts-switch-btn {
  flex: 1 1 auto;         /* все кнопки одинаковой ширины */
  height: 70px;           /* фиксированная высота */
  line-height: 70px;      /* выравнивание текста по центру */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;    /* скругления как на макете */
  text-align: center;
}

/* Выравниваем контейнер фильтров под ширину родителя */
.js-feed-parts-select-container.t-feed__container.t-col.t-col_12 {
  width: 100% !important;        /* растягиваем */
  max-width: 1400px !important;  /* подгоняем под .t915__container */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;            /* отступ слева */
  padding-right: 20px;           /* отступ справа */
  box-sizing: border-box;        /* чтобы padding не ломал ширину */
}

/* При наведении */
.t-feed__parts-switch-btn:hover {
  border-color: #6C7BFF;
}

@media (max-width: 640px) {
  .t-feed__parts-switch-wrapper {
 justify-content: flex-start;  /* не растягиваем */
    flex-wrap: wrap;    
    overflow-x: auto;              /* добавляем горизонтальный скролл */
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }

  .t-feed__parts-switch-btn {
    flex: 0 0 auto;                /* ширина по контенту */
    height: 44px;                  /* меньше высота */
    line-height: 1.2;
    font-size: 14px;               /* чуть меньше текст */
    padding: 0 8px;               /* внутренние отступы */
    border-radius: 12px;           /* пропорционально скругления */
  }

  /* убираем скроллбар */
  .t-feed__parts-switch-wrapper::-webkit-scrollbar {
    display: none;
  }
  
  .t-feed__container .t-feed__parts-switch-wrapper {
    margin-bottom: 10px;

}

}


@media screen and (max-width: 960px) {
    .t-feed__container_inrow1 .t-feed__post:first-child, .t-feed__container_inrow2 .t-feed__post:nth-child(-n+2), .t-feed__container_inrow3 .t-feed__post:nth-child(-n+3), .t-feed__container_inrow4 .t-feed__post:nth-child(-n+4) {
        margin-top: 20px !important;
    }
}

/* Ограничение ширины конкретного аккордеона */
.t668__col {
  max-width: 1400px !important;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}


/* Ограничение ширины аккордеона T668 */
.t668 .t-container {
  max-width: 1400px !important; /* фиксируем ширину */
  margin: 0 auto !important;   /* по центру */
  box-sizing: border-box;
}