

/* Start:/local/templates/immunohealth/assets/css/pages/news-b2b.css?178998969014939*/
/* ==========================================================================
   /news-b2b/ — «Новости и база знаний ImmunoHealth™»
   Макет: Figma O4hCS4XXvppJ73LW1CNYgf, фрейм 1:1631 (1600×3207).

   Файл подключается через SetAdditionalCSS, а ShowHead() в header-coop.php
   стоит выше ссылки на style.css — значит эти правила читаются раньше общих.
   Поэтому всё, что правит общие классы (.coop-*, .contacts-*), пишется
   составным селектором с .news-b2b: 0,2,0 против 0,1,0, порядок не важен.

   Содержание:
     1. Токены
     2. Шапка страницы
     3. Фильтры и поиск
     4. Сетка статей
     5. Правки общих секций (видео, контакты)
     6. Адаптив
   ========================================================================== */


/* ====================== 1. ТОКЕНЫ ====================== */
/* Переменных с этими значениями в style.css нет — свести в общий :root. */
:root {
    --c-black:        #000000;              /* заголовки и текст карточек статей (Фигма) */
    --c-news-meta:    rgba(0, 0, 0, .7);    /* дата статьи, плейсхолдеры полей: #000 @ 70% */
    --c-news-shadow:  rgba(0, 0, 0, .3);    /* тень карточки статьи 2/2/6 */
    --c-news-cover-a: #e3e4e6;              /* подложка под обложкой книги, старт градиента */
    --c-news-cover-b: #4d4845;              /* она же, финиш градиента */
}


/* ====================== 2. ШАПКА СТРАНИЦЫ ====================== */
/* Карточка 1480×220, серая, r30 — тот же компонент, что и на «Сотрудничестве»,
   только заголовок в две строки шире 14ch: перенос задаёт <br> в разметке. */
.news-b2b .coop-intro__title { max-width: none; }


/* ====================== 3. ФИЛЬТРЫ И ПОИСК ====================== */
.nb-filters { padding-top: 150px; }   /* от низа серой карточки до панели (Фигма) */

.nb-filters__bar {
    display: flex;
    align-items: center;
    gap: 35px;
    min-height: 110px;
    padding-inline: 35px;
    background: var(--c-grey-050);
    border-radius: 30px;
}
/* margin-right:auto держит зазор до сортировки: на 1600 это 110px как в Фигме */
.nb-filters__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-right: auto;
    min-width: 0;
}

.nb-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 23px;
    border: 1px solid var(--c-teal);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: var(--c-black);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--t2), color var(--t2);
}
.nb-tag:hover,
.nb-tag:focus-visible,
.nb-tag.is-active {
    background: var(--c-teal);
    color: var(--c-white);
}

/* Сортировка и поиск: белые поля 49px, r10; иконка на 26px от края, текст на 52px */
.nb-select,
.nb-search {
    position: relative;
    display: block;
    min-width: 0;
}
.nb-select { flex: 0 1 362px; }
.nb-search { flex: 0 1 472px; }

.nb-select__ic,
.nb-select__arrow,
.nb-search__ic {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    display: block;
    pointer-events: none;
}
.nb-select__ic,
.nb-search__ic { left: 26px; opacity: .7; }
.nb-select__arrow { right: 17px; }

.nb-select__control,
.nb-search__control {
    width: 100%;
    min-height: 49px;
    padding: 0 20px 0 52px;
    background: var(--c-white);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: var(--c-black);
}
.nb-select__control {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 43px;
    color: var(--c-news-meta);
    cursor: pointer;
}
.nb-search__control::placeholder { color: var(--c-news-meta); opacity: 1; }
.nb-search__control::-webkit-search-cancel-button { margin-left: 6px; }


/* ====================== 4. СЕТКА СТАТЕЙ ====================== */
.nb-list { padding-top: 40px; }

.nb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.nb-card { min-width: 0; }

.nb-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 357px;
    background: var(--c-white);
    border: 1px solid var(--c-line-4);
    border-radius: 20px;
    box-shadow: 2px 2px 6px var(--c-news-shadow);
    overflow: hidden;
    color: var(--c-black);
    text-decoration: none;
    transition: transform var(--t2), box-shadow var(--t2);
}
.nb-card__link:hover,
.nb-card__link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 3px 5px 14px var(--c-news-shadow);
    color: var(--c-black);
}

/* картинка в макете лежит поверх рамки, отсюда margin -1px */
.nb-card__cover {
    position: relative;
    flex: 0 0 auto;
    margin: -1px -1px 0;
    aspect-ratio: 480 / 167;
    overflow: hidden;
}
.nb-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.nb-card__link:hover .nb-card__cover img,
.nb-card__link:focus-visible .nb-card__cover img { transform: scale(1.03); }

/* обложка книги 357×223 не закрывает окно 480×167 — позиция и градиент из макета.
   fill, а не cover: в Фигме обложка сжата по вертикали, а не обрезана по краям */
.nb-card__cover--framed {
    background: linear-gradient(35.52deg, var(--c-news-cover-a) 10.34%, var(--c-news-cover-b) 90.64%);
}
.nb-card__cover--framed img {
    inset: -16.62% auto auto 12.81%;
    width: 74.37%;
    height: 133.23%;
    object-fit: fill;
}

/* 19px = 20px по макету минус 1px рамки */
.nb-card__body {
    display: flex;
    flex-direction: column;
    padding: 15px 19px 16px;
}
.nb-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.nb-card__tag {
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    color: var(--c-teal);
    text-transform: uppercase;
}
.nb-card__date {
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: var(--c-news-meta);
    white-space: nowrap;
}
/* блок заголовка в макете высотой в две строки, одна строка центрируется в нём */
.nb-card__title {
    margin-top: 18px;
    min-height: 46px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 23px;
    color: var(--c-black);
}
.nb-card__text {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: var(--c-black);
}


/* ====================== 5. ПРАВКИ ОБЩИХ СЕКЦИЙ ====================== */
/* Заголовок «Видео наших выступлений» в этом макете 60/78 = 1.3 */
.news-b2b .coop-videos__title { line-height: 1.3; }

/* Контакты: соцсети стоят выше карточек с режимом работы, зазор 20px,
   до футера 40px (в макете, в отличие от «Сотрудничества») */
.news-b2b .contacts__social { margin-top: 20px; }
.news-b2b .coop-contacts { padding-bottom: 40px; }


/* ====================== 6. АДАПТИВ ====================== */
@media (max-width: 1280px) {
    /* теги + сортировка + поиск в строку уже не влезают — панель в два ряда */
    .nb-filters__bar {
        flex-wrap: wrap;
        gap: 16px 20px;
        min-height: 0;
        padding: 24px 30px;
    }
    .nb-filters__tags { width: 100%; margin-right: 0; }
    .nb-select,
    .nb-search { flex: 1 1 260px; }
}

@media (max-width: 1024px) {
    .nb-filters { padding-top: 80px; }
    .nb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nb-card__link { min-height: 0; }
    .news-b2b .coop-contacts { padding-bottom: 32px; }
}

@media (max-width: 640px) {
    .nb-filters { padding-top: 60px; }
    .nb-filters__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 20px;
        border-radius: 20px;
    }
    .nb-filters__tags { gap: 8px; }
    .nb-tag { min-height: 40px; padding-inline: 18px; }
    .nb-select,
    .nb-search { flex: 0 0 auto; }

    .nb-list { padding-top: 24px; }
    .nb-grid { grid-template-columns: minmax(0, 1fr); }
    .nb-card__title { margin-top: 14px; min-height: 0; font-size: 17px; }
    .nb-card__text { margin-top: 6px; }

    .news-b2b .coop-contacts { padding-bottom: 24px; }
}


/* Плитки видео оставались в натуральную величину картинки: правило с предком
   .coop-videos__grid не срабатывало, шаблон компонента отдаёт свою обёртку.
   Поэтому привязка к самому блоку, без ансесторов. */
.coop-video__media {
    display: block !important;
    position: relative;
    aspect-ratio: 355 / 236;
    overflow: hidden;
    border-radius: 15px;
}
.coop-video__media img,
.coop-video img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: cover;
}


/* ============================================================================
   Селект сортировки на /news-b2b/ — штатный кастомный (.nws-select, data-select).
   Нативный <select> не поддаётся оформлению, поэтому здесь та же связка, что на
   /partners/. Стили дублируются: оригиналы лежат в partners.css, который на этой
   странице не подключается.
   ============================================================================ */
.nb-select.nws-select { position: relative; }
.nb-select .nws-select__trigger {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.nb-select .nws-select__menu {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 6px);
    z-index: 20;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--c-white);
    border: 1px solid var(--c-coop);
    border-radius: 10px;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, .12);
    display: none;
}
.nb-select.is-open .nws-select__menu { display: block; }
.nb-select .nws-select__menu li {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.3;
    color: var(--c-body);
    cursor: pointer;
}
.nb-select .nws-select__menu li:hover,
.nb-select .nws-select__menu li[aria-selected="true"] {
    background: var(--c-coop);
    color: var(--c-white);
}
.nb-select.is-open .nb-select__arrow { transform: rotate(180deg); }
.nb-select__arrow { transition: transform var(--t1); }

/* рубрики стали кнопками — сбрасываем вид кнопки и добавляем активное состояние */
button.nb-tag {
    font: inherit;
    cursor: pointer;
}
.nb-tag.is-active,
.nb-tag:hover,
.nb-tag:focus-visible {
    background: var(--c-coop);
    border-color: var(--c-coop);
    color: var(--c-white);
}
.nb-card[hidden] { display: none !important; }


/* Поле сортировки стало <div> вместо <label> — повторяем вид поля целиком,
   чтобы не зависеть от того, к какому тегу были привязаны исходные правила. */
.nb-select,
.nb-select.nws-select {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    height: 49px;
    padding: 0 18px;
    background: var(--c-white);
    border: 1px solid var(--c-coop);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--c-body);
    min-width: 280px;
}
/* Иконки в исходной вёрстке были спозиционированы абсолютно — при флексе они
   наезжали на текст. Возвращаем их в поток, отступы даёт gap контейнера. */
.nb-select__ic,
.nb-select__arrow {
    position: static !important;
    inset: auto !important;
    transform: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: block;
}
.nb-select.is-open .nb-select__arrow { transform: rotate(180deg); }
/* у триггера своих отступов быть не должно — иначе текст уезжает под иконку */
.nb-select .nws-select__trigger { padding: 0 !important; margin: 0; min-width: 0; }
.nb-select .nws-select__trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* панель и сетка теперь в одной секции — отступ между ними задаём здесь */
.nb-filters__bar + .nb-grid { margin-top: clamp(24px, 2.5vw, 40px); }

/* Слайдер видео */
.coop-videos-slider { margin-top: clamp(20px, 2.5vw, 40px); overflow: hidden; }
.coop-videos-slider .swiper-slide { height: auto; }
.coop-videos-slider__pag {
    position: static;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.coop-videos-slider__pag .swiper-pagination-bullet {
    width: 8px; height: 8px; margin: 0;
    background: var(--c-line-3); opacity: 1;
}
.coop-videos-slider__pag .swiper-pagination-bullet-active { background: var(--c-coop); }

/* End */
/* /local/templates/immunohealth/assets/css/pages/news-b2b.css?178998969014939 */
