.all-news {
    padding: 60px 0;
}

/* ─── Табы ─────────────────────────────────────────────────── */

.all-news__tabs {
    margin-bottom: 50px;
}

.all-news-tabs__list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.all-news-tabs__item {
    margin-right: 2px;
}

.all-news-tabs__link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgb(4, 142, 201);
    background: #fff;
    border: 1px solid #fdda77;
    text-decoration: none;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.all-news-tabs__link:hover {
    background: #faf7ec;
    color: #383838;
}

.all-news-tabs__link--active {
    background: #fdc600;
    color: #383838;
    border-color: #fdc600;
}

/* ─── Список новостей ───────────────────────────────────────── */

.all-news__list {
    display: flex;
    flex-direction: column;
    font-family: "Proxima Nova Rg", sans-serif;
}

.all-news__list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid #e8e5de;
    text-decoration: none;
    transition: background 0.18s ease;
}

.all-news__list-item:first-child {
    border-top: 1px solid #e8e5de;
}

.all-news__list-item:hover .all-news__list-item-title {
    color: #383838;
}

.all-news__list-item-body {
    flex: 1;
}

.all-news__list-item-title {
    font-size: 20px;
    font-weight: 700;
    color: rgb(4, 142, 201);
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color 0.18s ease;
}

.all-news__list-item-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.all-news__list-item-date svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.all-news__list-item-arrow {
    flex-shrink: 0;
    color: #2196c4;
    opacity: 0.7;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.all-news__list-item:hover .all-news__list-item-arrow {
    opacity: 1;
}

/* ─── Пустой список ─────────────────────────────────────────── */

.all-news__empty {
    text-align: center;
    padding: 60px 0;
}

.all-news__empty-text {
    font-size: 18px;
    color: #b0aca3;
}

/* ─── Пагинация ─────────────────────────────────────────────── */

.all-news__pagination-wrapper {
    margin-top: 48px;
}

.all-news__pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.all-news__pagination .page-item {
    display: inline-block;
}

.all-news__pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-family: "Proxima Nova Rg", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2196c4;
    background: #fff;
    border: 1px solid #e8e5de;
    text-decoration: none;
    transition: all 0.22s ease;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: unset !important;
}

.all-news__pagination .page-link:hover {
    background: #faf7ec;
    border-color: #fdda77;
    color: #383838;
}

.all-news__pagination .active .page-link {
    background: #fdc600;
    border-color: #fdc600;
    color: #383838;
    cursor: default;
}

.all-news__pagination .disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── Адаптив ───────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .all-news-tabs__link {
        height: 48px;
        padding: 0 24px;
        font-size: 14px;
    }

    .all-news__list-item-title {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .all-news-tabs__list {
        flex-wrap: wrap;
        gap: 6px;
    }

    .all-news-tabs__link {
        padding: 0 18px;
        height: 44px;
        font-size: 13px;
        white-space: nowrap;
    }

    .all-news__list-item {
        padding: 20px 0;
    }

    .all-news__list-item-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .all-news__list-item-date {
        font-size: 13px;
    }

    .all-news__pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .all-news-tabs__link {
        white-space: normal;
        text-align: center;
    }

    .all-news__list-item-title {
        font-size: 15px;
    }

    .all-news__list-item-arrow {
        width: 8px;
        height: 14px;
    }
}

/* ─── Карточки (3 колонки) ─────────────────────────────────── */

.all-news__grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.all-news__card {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
    margin-bottom: 40px;
}

.all-news__card-inner {
    text-align: justify;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.all-news__image-wrapper {
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
    height: 250px; /* Фиксированная высота */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.all-news__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет блок без искажений */
    transition: transform 0.3s ease;
}

.all-news__card-title {
    color: rgb(4, 142, 201);
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 300;
}

.all-news__card-link {
    color: #048ec9;
    text-decoration: none;
    transition: color 0.18s ease;
}

.all-news__card-link:hover {
    text-decoration: underline;
    color: #002e45;
}

.all-news__intro {
    color: #383838;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
}

.all-news__intro p {
    margin: 0;
}

.all-news__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-top: auto;
}

.all-news__date svg {
    flex-shrink: 0;
    color: #9ca3af;
}

@media (max-width: 1024px) {
    .all-news__card {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .all-news__image-wrapper {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .all-news__card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .all-news__card-title {
        font-size: 20px;
    }
    
    .all-news__image-wrapper {
        height: 200px;
    }
}

.all-news__longtitle {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}