.sub-page {
    background: #434343;
}

.sub-page .header {
    background: #1e1e1e;
    position: static;
}

.sub-page .main-footer {
    border-top: 4px solid var(--primary-color, #f59e0b);
}

.main-info {
    background: #ffffff;
    color: #393b3d;
    min-height: 800px;
    padding: 65px 0 100px;
}

.main-info .section__title_primary {
    color: #333333;
    text-align: center;
    text-transform: uppercase;
}

.main-info.news-page {
    background: #ffffff;
    color: #21272a;
    min-height: 800px;
    padding: 60px 0 88px;
}

.news-page__stack {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.news-category-section {
    width: 100%;
}

.news-page .section__title_primary {
    color: #393b3d;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 36px;
    text-align: center;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1194px;
    padding: 0;
}

.news-item {
    background: transparent;
    cursor: pointer;
    min-width: 0;
    transition: transform 0.25s ease;
}

.news-item:hover {
    transform: translateY(-4px);
}

.news-thumb {
    background: #f0f0f3;
    display: block;
    height: 200px;
    overflow: hidden;
    width: 100%;
}

.news-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.news-content {
    padding-top: 10px;
}

.news-card-title {
    color: #f59e0b;
    display: -webkit-box;
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    margin: 0;
    min-height: 72px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
}

.news-date {
    color: #737373;
    font-size: 20px;
    font-style: italic;
    line-height: 36px;
    margin: 0;
}

.news-card-divider {
    border-top: 1px dotted #adadad;
    margin: 0 0 12px;
}

.news-desc {
    color: #21272a;
    display: -webkit-box;
    font-family: Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.news-action {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.news-more-link {
    align-items: center;
    background: #ffffff;
    border: 1px solid #f59e0b;
    border-radius: 5px;
    color: #f59e0b;
    display: inline-flex;
    font-size: 24px;
    font-weight: 600;
    height: 54px;
    justify-content: center;
    line-height: 36px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 180px;
}

.news-more-link:hover {
    background: #f59e0b;
    color: #ffffff;
}

.news-empty {
    color: #393b3d;
    font-size: 22px;
    margin: 0;
    text-align: center;
}

.news-pagination {
    align-items: center;
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 36px;
}

.news-pagination__item {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #111112;
    display: inline-flex;
    font-family: Inter, Arial, sans-serif;
    font-size: 20px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    width: 40px;
}

.news-pagination__item:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.news-pagination__item.is-active {
    border: 2px solid #f59e0b;
    border-radius: 5px;
    color: #f59e0b;
}

.news-pagination__arrow {
    border-color: #a4a4aa;
    border-radius: 0;
    color: #111112;
    font-size: 24px;
}

.news-pagination__arrow.is-disabled {
    border-color: #f0f0f3;
    color: #a4a4aa;
    pointer-events: none;
}

.news-pagination__ellipsis,
.news-pagination__ellipsis:hover {
    border-color: transparent;
    color: #111112;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .main-info.news-page {
        padding: 42px 0 64px;
    }

    .news-page__stack {
        gap: 44px;
    }

    .news-page .section__title_primary {
        font-size: 34px;
        margin-bottom: 28px;
    }

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

    .news-thumb {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .news-card-title {
        font-size: 24px;
        line-height: 32px;
        min-height: 0;
    }

    .news-date {
        font-size: 18px;
        line-height: 30px;
    }

    .news-desc {
        font-size: 16px;
    }

    .news-action,
    .news-pagination {
        margin-top: 28px;
    }
}
