

/* Start:/local/templates/apro/components/bitrix/news/mediahub/bitrix/news.list/.default/style.css?17823759258146*/
.mediahub-page {
  position: relative;
  z-index: 3;
  padding-top: 200px;
  padding-bottom: 120px;
}
.mediahub__filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 48px;
  position: relative;
}
.mediahub__search {
  border-bottom: 1px solid var(--a-pro-black-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(50% - 20px);
}
.mediahub__search-input {
  width: calc(100% - 60px);
  background: none;
  background: none;
  box-shadow: none;
  padding: 0;
  border: none;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;

  color: var(--a-pro-black);
  outline: none;
}
.mediahub__search-button {
  background: none;
  box-shadow: none;
  padding: 0;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  stroke: var(--a-pro-black-light);
  transition: 0.5s;
  cursor: pointer;
  outline: none;
}
.mediahub__search-button:hover {
  stroke: var(--a-pro-blue);
}
.mediahub__filter-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(50% - 20px);
  gap: 24px;
}
.mediahub__filter-item {
  width: 180px;
  border-bottom: 1px solid var(--a-pro-black-light);
  font-family: var(--font-family);
  position: relative;
  color: var(--a-pro-black);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  padding: 7px 0;
}
.mediahub__filter-result {
  position: relative;
  padding-right: 16px; /* запас под стрелку справа */
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}
.mediahub__filter-item_open .mediahub__filter-result::after {
  transform: rotate(0deg);
}
.mediahub__filter-result::after {
  content: "";
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxNSAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjUxNyA4LjM0OTIzTDcuMjg5MDYgMi4xMjEzMUwxLjA2MTE0IDguMzQ5MjMiIHN0cm9rZT0iIzFEQUVFQyIgc3Ryb2tlLXdpZHRoPSIzIi8+Cjwvc3ZnPgo=);
  display: inline-block;
  position: absolute;
  width: 9px;
  height: 9px;
  background-position: center;
  background-repeat: no-repeat;
  margin: auto 0 auto auto;
  transform: rotate(180deg);
  top: 0;
  bottom: 0;
  right: 0;
}
.mediahub__filter-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
}
.mediahub__filter-item_open .mediahub__filter-box {
  display: block;
}
.mediahub__filter-box::before {
  content: "";
  width: calc(100% + 28px);
  height: calc(100% + 14px);
  position: absolute;
  top: 0;
  left: -14px;
  background: #cbd0d5;
  z-index: 2;
}
.mediahub__filter-option {
  position: relative;
  z-index: 3;
  padding-top: 7px;
}
.mediahub__filter-reset {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 20px;
  color: var(--a-pro-blue);
  cursor: pointer;
  text-decoration: underline;
  position: absolute;
  top: 100%;
  right: 0;
}
.mediahub__filter-reset_visible {
  display: inline-block;
}
.mediahub__empty {
  padding: 32px 0;
  text-align: center;
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 26px;
  color: var(--a-pro-black-light);
}
.mediahub__hashtags {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.mediahub__hashtag {
  box-sizing: border-box;
  padding: 8px 24px;

  border: 1px solid var(--a-pro-black);
  border-radius: 56px;

  font-weight: 400;
  font-size: 16px;
  line-height: 24px;

  color: var(--a-pro-black);
  cursor: pointer;
  transition: 0.5s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.mediahub__hashtag span {
  color: var(--a-pro-blue);
}
.mediahub__hashtag:hover {
  border-color: var(--a-pro-blue);
  color: var(--a-pro-blue);
}

.mediahub__articles {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 80px 40px;
  flex-wrap: wrap;
  width: 100%;
}
.mediahub__load-more-link {
  max-width: 352px;
  text-decoration: none;
  margin: 80px 0 40px;
}
.article {
  max-width: 397px;
  display: block;
  width: 100%;
}
.article__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  height: 20px;

  font-weight: 400;
  font-size: 12px;
  line-height: 20px;

  color: var(--a-pro-black-middle);
}
.article__tags {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  text-transform: lowercase;
}
.article__image {
  width: 100%;
  height: 218px;
  display: block;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 16px;
}
.article__name {
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;

  color: var(--a-pro-black-middle);
  text-decoration: none;
  transition: 0.5s;
}
.article__image:hover + .article__name,
.article__name:hover {
  color: var(--a-pro-blue);
}

/* ===== MEDIAHUB адаптив под макеты ===== */

/* ~1300px: немного сжать сетку и фильтры */
@media (max-width: 1300px) and (min-width: 961px) {
  .mediahub-page {
    padding-top: 180px;
    padding-bottom: 110px;
  }

  .mediahub__filter {
    gap: 32px;
  }

  .mediahub__articles {
    gap: 64px 32px;
  }

  .article {
    max-width: 360px;
  }
}

/* 961–1200px: две карточки на всю ширину */
@media (max-width: 1200px) and (min-width: 961px) {
  .mediahub__articles {
    justify-content: space-between;
  }

  .article {
    flex: 0 1 calc(50% - 20px);
    max-width: none;
  }
}

/* 721–960px: две колонки карточек, фильтры в столбец */
@media (max-width: 960px) and (min-width: 721px) {
  .mediahub-page {
    padding-top: 160px;
    padding-bottom: 96px;
  }

  .mediahub__filter {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .mediahub__search {
    width: 100%;
  }

  .mediahub__filter-list {
    width: 100%;
    justify-content: flex-start;
    gap: 24px;
  }

  .mediahub__hashtags {
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .mediahub__articles {
    gap: 48px 32px;
  }

  .article {
    max-width: calc(50% - 16px);
  }

  .article__image {
    height: 210px;
  }
}

/* ≤720px: одна колонка, мобильный фильтр как в макете */
@media (max-width: 720px) {
  .mediahub-page {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .mediahub__filter {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 32px;
  }

  .mediahub__search {
    width: 100%;
  }

  .mediahub__search-input {
    font-size: 18px;
    line-height: 24px;
  }

  .mediahub__filter-list {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .mediahub__filter-item {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    font-size: 16px;
    line-height: 24px;
  }

  .mediahub__hashtags {
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .mediahub__hashtag {
    padding: 6px 18px;
    font-size: 14px;
    line-height: 20px;
  }

  .mediahub__articles {
    gap: 40px;
  }

  .article {
    max-width: 100%;
    width: 100%;
    flex: 0 0 100%;
  }

  .article__image {
    height: 200px;
    margin-bottom: 12px;
  }

  .article__name {
    font-size: 20px;
    line-height: 28px;
  }
}

/* очень узкие экраны */
@media (max-width: 375px) {
  .mediahub-page {
    padding-top: 130px;
    padding-bottom: 72px;
  }

  .mediahub__filter {
    gap: 20px;
  }

  .mediahub__search-input {
    font-size: 16px;
  }

  .mediahub__filter-item {
    font-size: 14px;
  }

  .mediahub__hashtag {
    padding: 6px 14px;
    font-size: 13px;
  }

  .article__image {
    height: 180px;
  }

  .article__name {
    font-size: 18px;
    line-height: 24px;
  }
}

/* End */
/* /local/templates/apro/components/bitrix/news/mediahub/bitrix/news.list/.default/style.css?17823759258146 */
