

/* Start:/local/components/sibirix/blog.list/templates/.default/styles.css?179457713919543*/
/* ==========================================================================
   СТИЛИ КОМПОНЕНТА SIBIRIX:BLOG.LIST
   ========================================================================== */

/* Секция со списком новостей */
.news-list-section {
    padding-bottom: 80px;
}

/* --------------------------------------------------------------------------
   Поиск
   -------------------------------------------------------------------------- */
.news-search {
    margin-bottom: 24px;
}

.news-search__form {
    position: relative;
    width: 100%;
}

input[type="text"].news-search__input {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 17px 48px 17px 44px; /* Справа 48px для крестика */
    color: var(--white);
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: rgba(var(--scrollbar-rgb), .05);
}

.news-search__input:focus {
    border-color: var(--cyan);
}

.news-search__input::placeholder {
    color: var(--muted);
}

.news-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(87%) sepia(55%) saturate(696%) hue-rotate(126deg) brightness(99%) contrast(87%);
}

/* Кнопка очистки поиска (крестик) */
.news-search__clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, color 0.2s;
}

.news-search__clear.is-visible {
    opacity: 1;
    visibility: visible;
}

.news-search__clear:hover {
    color: var(--white);
}

/* --------------------------------------------------------------------------
   Фильтры и Сортировка
   -------------------------------------------------------------------------- */
.news-controls {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 56px;
    gap: 16px;
}

/* Теги */
.news-tags {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 4px;
    flex: 1;
    background: rgba(var(--scrollbar-rgb), .05);
}

.news-page a.news-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    background-color: transparent;
    color: var(--cyan);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid transparent;
    font-weight: 500;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.news-page a.news-tag:hover, 
.news-page a.news-tag.active {
    background-color: var(--cyan);
    color: var(--bg);
    font-weight: 500;
}

/* Кастомный блок сортировки */
.news-sort {
    position: relative;
    width: 338px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: transparent;
    cursor: pointer;
    user-select: none;
    background: rgba(var(--scrollbar-rgb), .05);
}

.news-sort__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    height: 100%;
}

.news-sort__arrow {
    color: var(--white);
    transition: transform 0.3s ease;
}

.news-sort.is-open .news-sort__arrow {
    transform: rotate(180deg);
}

.news-sort__dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    width: 100%;
    margin: 0;
    padding: 8px;
    list-style: none;
    background-color: var(--surface-card);
    border: 1px solid var(--line);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10;
    box-sizing: border-box;
}

.news-sort.is-open .news-sort__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-sort__option {
    padding: 8px;
    color: var(--white);
    font-size: 14px;
    line-height: 1.5;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.news-sort__option:hover {
    background-color: rgba(var(--cyan-rgb, 0, 229, 255), 0.1);
}

.news-sort__option.active {
    background-color: rgba(var(--cyan-rgb, 0, 229, 255), 0.1);
    color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Сетка и счетчик
   -------------------------------------------------------------------------- */
.news-result-count {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 32px;
    color: var(--muted);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Базовые стили для карточек
   -------------------------------------------------------------------------- */
.news-card {
    background-color: var(--surface-card);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color .25s ease, background .25s ease;
    border: 1px solid var(--line);
}

.news-card:hover {
    border-color: rgba(var(--cyan-rgb), .44);
    background: var(--card-hover);
}

/* Ссылка на картинку */
.news-card__image-link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
}

/* Картинка (теперь это тег img) */
.news-card__image {
    width: 100%;
    aspect-ratio: 3 / 2; /* Пропорции для обычных карточек */
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.news-card__image-link:hover .news-card__image {
    opacity: 0.85;
}

.news-card__content {
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Контейнер для меток */
.news-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Стили метки */
.news-card__content a.news-card__label, .news-card__content a.news-card__sphere {
    display: inline-block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--cyan);
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.news-card__content a.news-card__label:hover,
.news-card__content a.news-card__sphere:hover {
    border-color: var(--cyan);
}

.news-card__date {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

/* Ссылка на заголовок */
.news-card__title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 2;
}

.news-card__title-link:hover .news-card__title {
    color: var(--cyan);
}

.news-card__title {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 16px 0;
    color: var(--white);
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;    
}

.news-card__preview {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.4;
    font-weight: 400;
    margin: 0 0 32px 0;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопка "Читать материал" */
.news-card a.news-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    padding: 16px 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    text-align: center;
    color: rgba(var(--scrollbar-rgb), 1);
    background: rgba(var(--scrollbar-rgb), 0.1);
    position: relative;
    z-index: 2;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

/* Стрелка через after */
.news-card a.news-card__btn::after {
    content: "→";
    display: inline-block;
    transition: transform 0.2s ease;
}

.news-card a.news-card__btn:hover {
    color: var(--bg);
    background: var(--cyan);
    border-color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Главная карточка (Featured)
   -------------------------------------------------------------------------- */
.news-card--featured {
    grid-column: span 3;
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 300px;
    border-radius: 24px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    background-color: var(--surface-card);
    margin-bottom: 16px;
}

.news-card--featured:hover {
    background: var(--surface-card); /* Отключаем общий ховер фона */
    border-color: rgba(var(--cyan-rgb), .44);
}

/* Левая часть с картинкой */
.news-card--featured .news-card__image-link {
    width: 55%;
    display: block;
    position: relative;
    flex-shrink: 0;
    z-index: 0;
    border-radius: 0;
}

/* Картинка внутри Featured */
.news-card--featured .news-card__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: auto;
    border-radius: 0;
}

/* Правая часть с контентом */
.news-card--featured .news-card__content {
    position: relative;
    z-index: 1;
    width: 50%;
    margin-left: -5%;
    background-color: var(--surface-card);
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
    border-radius: 24px 0 0 24px; /* Скругление левых углов */
}

/* Верхняя часть (Последняя публикация + дата) */
.news-card--featured .news-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Заголовок "Последняя публикация" */
.news-card--featured .news-card__featured-title {
    font-size: 22px;
    line-height: 1.3;
    color: var(--cyan);
    font-weight: 400;
}

/* Дата в Featured */
.news-card--featured .news-card__date {
    font-size: 12px;
    color: var(--muted);
}

/* Метки в Featured */
.news-card--featured .news-card__labels {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.news-card--featured .news-card__label,
.news-card--featured .news-card__sphere {
    display: inline-block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--cyan);
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.news-card--featured .news-card__label:hover,
.news-card--featured .news-card__sphere:hover {
    border-color: var(--cyan);
}

/* Заголовок новости в Featured */
.news-card--featured .news-card__title {
    font-size: 36px;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 24px;
}

.news-card--featured .news-card__title-link {
    text-decoration: none;
    display: block;
    position: relative;
    z-index: 2;
}

.news-card--featured .news-card__title-link:hover .news-card__title {
    color: var(--cyan);
}

/* Кнопка в Featured */
.news-card--featured a.news-card__btn {
    margin-top: auto;
    align-self: flex-end;
    width: fit-content;
    min-width: 200px;
    padding: 14px 24px;
    border-color: rgba(var(--cyan-rgb), 0.3);
    color: var(--cyan);
    background-color: rgba(var(--cyan-rgb), 0.05);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-card--featured a.news-card__btn::after {
    content: "→";
    display: inline-block;
    transition: transform 0.2s ease;
}

.news-card--featured a.news-card__btn:hover {
    background-color: var(--cyan);
    color: var(--bg);
    border-color: var(--cyan);
}

/* --------------------------------------------------------------------------
   Кнопка "Показать ещё" и конец ленты
   -------------------------------------------------------------------------- */
.news-load-more-container {
    text-align: center;
    margin-top: 32px;
    margin-bottom: 20px;
}

.site-page button.news-load-more-btn {
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.4;
    color: var(--cyan);
    cursor: pointer;
    transition: opacity 0.2s;
}

.news-load-more-btn:hover {
    opacity: 0.7;
}

.news-end-message {
    text-align: center;
    font-size: 18px;
    color: var(--muted);
    padding: 20px 0;
    line-height: 1.4;
    width: 100%;
}

@media (max-width: 1400px) {
    /* Общие отступы секции */
    .news-content > section {
        padding: 70px 0;
    }

    /* Заголовок Hero */
    .news-hero__title {
        font-size: 40px; /* Уменьшаем с 56px */
    }

    .news-card--featured .news-card__featured-title {
        font-size: 18px;
    }

    .news-sort {
        width: 100%;
        max-width: 338px;
    }

    /* Заголовки в карточках */
    .news-card__title {
        font-size: 18px; /* Уменьшаем с 22px */
    }
    
    .news-card--featured .news-card__title {
        font-size: 32px; /* Уменьшаем с 36px */
    }

    .news-card__preview {
        font-size: 16px;
    }

    /* Кнопки */
    .news-card a.news-card__btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    .site-page button.news-load-more-btn {
        font-size: 16px;
    }
}

/* 1. Самый широкий брейкпоинт */
@media (max-width: 1100px) {
    .news-controls {
        flex-direction: column;
    }
}

/* 2. Планшеты */
@media (min-width: 681px) and (max-width: 980px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-card--featured {
        grid-column: span 2;
        flex-direction: column;
    }

    .news-card--featured .news-card__image-link {
        width: 100%;
    }
    .news-card--featured .news-card__content {
        z-index: 1;
        width: 100%;
        margin: -5% 0 0 0;
        background-color: var(--surface-card);
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 24px;
        padding: 20px;
    }    

    .news-card a.news-card__btn {
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 15px;
        line-height: 1.4;
    }

    .news-card--featured a.news-card__btn {
        color: var(--white);
        width: auto;
        min-width: auto;
        align-self: auto;
        background: rgba(var(--scrollbar-rgb), 0.1);
        border-radius: 8px;
        padding: 8px 12px;        
    }

    .site-page button.news-load-more-btn {
        font-size: 14px;
    }
}

/* 3. Мобилки */
@media (max-width: 680px) {
    .news-controls {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 40px;
    }
    .news-tags {
        flex-direction: column;
    }
    .news-sort {
        width: auto;
        max-width: none;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card--featured {
        grid-column: auto;
        flex-direction: column;
    }
    .news-card--featured .news-card__image-link {
        width: 100%;
    }
    .news-card--featured .news-card__content {
        z-index: 1;
        width: 100%;
        margin: -5% 0 0 0;
        background-color: var(--surface-card);
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 24px;
        padding: 20px;
    }    
    .news-card--featured .news-card__featured-title {
        font-size: 18px;
    }
    .news-card--featured .news-card__title {
        font-size: 26px;
    }

    .news-card a.news-card__btn {
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 13px;
        line-height: 1.4;
    }

    .news-card--featured a.news-card__btn {
        color: var(--white);
        width: auto;
        min-width: auto;
        align-self: auto;
        background: rgba(var(--scrollbar-rgb), 0.1);
        border-radius: 8px;
        padding: 8px 12px;        
    }

    .site-page button.news-load-more-btn {
        font-size: 14px;
    }
    .news-card__preview {
        font-size: 15px;
    }
    .news-card__title {
        font-size: 18px;
    }
}

/* ==========================================================================
   ФИЛЬТР ПО СФЕРАМ
   ========================================================================== */
.news-spheres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0 24px;
}

.news-sphere {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(85, 236, 238, 0.2);   /* Blue-Sky-200 */
    color: var(--white, #fff);
    font-weight: 500;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
    white-space: nowrap;
}

.news-sphere:hover {
    background: rgba(85, 236, 238, 0.35);
}

.news-sphere.active {
    background: rgba(85, 236, 238, 1);     /* Text-Brand */
    color: #000;
}

/* Мобилка — меньше отступы */
@media (max-width: 680px) {
    .news-spheres {
        gap: 6px;
        margin: 12px 0 20px;
    }
    .news-sphere {
        font-size: 11px;
        padding: 7px 10px;
        height: 26px;
    }
}
/* End */
/* /local/components/sibirix/blog.list/templates/.default/styles.css?179457713919543 */
