

/* Start:/local/components/rsf/news.list/templates/.default/style.css?17859226317664*/
/* Component: news.list */

.news-list {
    padding: 0 var(--page-padding) 124px;
}

.news-list__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Section header */
.news-list .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-list .section-heading {
    color: var(--color-primary);
    /* Главная (B.4): heading 40px — в Figma без вышестоящего H1 */
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.96px;
    margin: 0;
}

/* Inner pages (/press/): H2 меньше H1 «Пресс-центр» (40px). Скоуп через page-title-section
   на странице — главная её не имеет, поэтому правило не применится. */
body:has(.page-title-section) .news-list .section-heading {
    font-size: 32px;
    letter-spacing: -1.5px;
}

.news-list .section-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Высота 48 = padding-block 16 + lh 16 без min-height (стабильность iOS). */
    padding: 16px 24px;
    border-radius: 100px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: opacity 0.2s;
}

.news-list .section-header__btn:hover {
    opacity: 0.85;
}

/* Full-width button (mobile) — pill-стиль, независимый от глобального .btn-primary
   (.btn-primary живёт только в contests.list/style.css; на /press/ компонент не подключён).
   Высота 48 = padding-block 16 + lh 16 без min-height (стабильность iOS Safari). */
.news-list .btn-full {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 100px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.news-list .btn-full:hover {
    opacity: 0.85;
}

/* Card grid */
.news-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.news-card {
    display: flex;
}

.news-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    transition: transform 0.2s;
}

.news-card__link:hover {
    transform: translateY(-3px);
}

.news-cards--slider {
    display: flex;
}

.news-cards--slider .news-card {
		flex: none;
    max-width: 416px;
}
.news-cards--slider .news-card:not(:last-child) {
    margin-right: 32px;
}

/* Image */
.news-img-wrapper {
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.news-card__link:hover .news-img {
    transform: scale(1.05);
}

.news-img-placeholder {
    width: 100%;
    background: linear-gradient(135deg, #d5dce8 0%, #bfc7d6 100%);
}

.news-img-placeholder,
.news-img
{
    aspect-ratio: 416/277;
}

/* Content */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Высота 32 = padding-block 8 + lh 16 (без min-height) — стабильная
       центровка glyph на iOS Safari. */
    padding: 8px 12px;
    border-radius: 24px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    align-self: flex-start;
    text-align: center;
}

.news-title {
    color: var(--color-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: var(--color-text);
    opacity: 0.6;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    margin-top: auto;
}

/* Preview text (for list pages) */
.news-preview {
    color: var(--color-text-secondary, #6B6E7B);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state */
.news-list__empty {
    text-align: center;
    color: var(--color-text-secondary);
    padding: 60px 0;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    transition: all 0.15s;
}

.pagination__link:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination__link--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    cursor: default;
}

/* Tablet narrow (1024-1199, без Figma — переходный) */
@media (max-width: 1199px) {
    .news-list {
        padding: 0 var(--page-padding) 96px;
    }

    .news-list__container {
        gap: 48px;
    }

    .news-list .section-heading {
        font-size: 32px;
        letter-spacing: -1.5px;
    }

    body:has(.page-title-section) .news-list .section-heading {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .news-cards {
        gap: 24px;
    }
}

/* Tablet wide (768-1023, без Figma) — 2 cols + 3-я full-row */
@media (max-width: 1023px) {
    .news-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card:nth-child(3) {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .news-list {
        padding: 0 var(--page-padding) 64px;
    }
    
    .news-card__link:hover .news-img {
        transform: none;
    }
    
    .news-card__link:hover {
        transform: none;
    }

    .news-list .section-heading {
        /* Главная mobile (B.4): 32 ls -0.96 по Figma 2144:681 */
        font-size: 32px;
        letter-spacing: -0.96px;
    }

    body:has(.page-title-section) .news-list .section-heading {
        /* Inner mobile (/press/): подзаголовок меньше mobile H1 (36px по A.5) */
        font-size: 24px;
        letter-spacing: -0.5px;
    }

    .news-list__container {
        gap: 32px;
    }

    .news-cards {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .news-card:nth-child(3) {
        grid-column: auto;
    }

    .news-card__link {
        gap: 16px;
    }

    .news-img-wrapper {
        border-radius: 16px;
    }

    .news-title {
        font-size: 20px;
        line-height: 1.4;
    }

    .news-date {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Hide button in section-header on mobile */
    .news-list .section-header__btn {
        display: none;
    }

    /* Show full-width button below cards */
    .news-list .btn-full {
        display: inline-flex;
        width: 100%;
        justify-content: center;
    }
}

/* End */
/* /local/components/rsf/news.list/templates/.default/style.css?17859226317664 */
