main {
    position: relative;
    z-index: 2;
}

.top {
    padding: 170px 0 90px;
}

.top-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(172deg, rgba(0, 0, 0, 0.00) -8.7%, rgba(0, 0, 0, 0.84) 69.7%);
}

.top::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(172deg, rgba(0, 0, 0, 0.00) -8.7%, rgba(0, 0, 0, 0.84) 69.7%);

}

.top-title {
    width: fit-content;
    margin: 0 auto;
    color: #FFF;
    font-family: "DM Sans";
    text-align: center;
    font-size: 60px;
    font-weight: 700;
    line-height: 80px;
    position: relative;
    z-index: 2;
    letter-spacing: -2.01px;
}

.arhive {
    padding: 120px 0;
}

.news-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 60px 30px;

}

.news-card {
    width: 100%;
    position: relative;
    max-width: calc(25% - 23px);
    display: block;
    background: #FFF;
    box-shadow: 8px 8px 26px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding-bottom: 20px;
}

.news-preview {
    display: block;
    width: 255px;
    height: 255px;
    border-radius: 8px 8px 0 0;
}

.news-date-box {
    position: absolute;
    right: 0;
    left: auto;
    top: -20px;
    bottom: 0;
    margin: auto;
    height: fit-content;
    width: fit-content;
    max-width: 103px;
}

.date {
    background: #FCDA00;
    color: #04000B;
    text-align: center;
    font-family: 'Outfit';
    font-size: 36px;
    font-weight: 600;
    line-height: 36px;
    padding: 15px 22px;
    display: block;
}

.month {
    padding: 5px 0;
    width: 100%;
    background: #1D417A;
    color: #FCFCFC;
    text-align: center;
    font-family: 'DM Sans';
    font-size: 15px;
    font-weight: 400;
    line-height: 27px;
    /* 180% */
    display: block;
}

.news-card-content {
    padding: 47px 8px 20px;
}

.news-card-title {
    color: #393939;
    font-family: "DM Sans";
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    /* 138.889% */
    letter-spacing: -0.606px;
    white-space: nowrap;
    /* Не переносить строки */
    overflow: hidden;
    /* Скрыть лишний текст */
    text-overflow: ellipsis;
}

.news-card-excerpt {
    color: #393939;
    font-family: "DM Sans";
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    /* 156.25% */
    letter-spacing: -0.606px;
    margin: 5px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Сколько строк оставить */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more,
.news-more:visited {
    border-radius: 60px;
    background: #1D417A;
    color: #FFF;
    font-family: "DM Sans";
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.416px;
    padding: 5px;
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
    display: block;
    text-align: center;
    transition: color .5s ease;
}
.news-more:hover{
    color:#9E9E9E ;
}
.news-card {
    height: 502px;

}

.news-card:first-child {
    max-width: calc(50% - 14px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-card:first-child::before {
    content: '';
    display: block;
    z-index: 2;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(172deg, rgba(0, 0, 0, 0.00) -8.7%, rgba(0, 0, 0, 0.84) 69.7%);
}

.news-card:first-child .news-preview {
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.news-card:first-child .news-date-box {
    z-index: 3;
}

.news-card-content {
    position: relative;
    z-index: 3;
}

.news-card:first-child .news-card-title,
.news-card:first-child .news-card-excerpt {
    color: #fff;
}

.news-card:first-child .news-more {
    position: relative;
    z-index: 3;
}

.pagination {
    display: flex;
    align-items: center;
    margin: 60px auto 0;
    width: fit-content;
    width: 100%;
}

.pagination ul {
    margin: 0 auto;
    gap: 15px;
}

.pagination a.page-numbers,.pagination a.page-numbers:visited {
    display: flex;
    align-items: center;
    color: #393939;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    letter-spacing: -0.416px;
    width: 15px;
    transition: color .5s ease;
}
.pagination a.page-numbers:hover{
    color: #FCDA00;
}
.pagination span.page-numbers {
    display: flex;
    align-items: center;
    color: #393939;
    font-family: "DM Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.416px;
    position: relative;
    width: 15px;
    justify-content: center;
}

.pagination span.page-numbers::after {
    content: '';
    display: block;
    width: 16px;
    bottom: 0;
    background: #FCDA00;
    height: 2px;
    position: absolute;
    left: 0;
}

.pagination .next.page-numbers {
    width: 30px;
}

.pagination .prev.page-numbers {
    width: 30px;

}
.pagination .next.page-numbers,.pagination .prev.page-numbers{
    opacity: 1;
    transition: opacity .5s ease;
}
.pagination .next.page-numbers:hover,.pagination .prev.page-numbers:hover{
    opacity: .7;
}
.prev.page-numbers img {
    rotate: 180deg;
}

.page-number {
    margin: auto;
}

@media screen and (max-width: 900px) {
    .news-card {
        max-width: calc(33% - 23px);
    }

    .news-card:first-child {
        max-width: calc(66% - 14px);
    }
}

@media screen and (max-width: 600px) {
    .news-card {
        max-width: calc(50% - 23px);
    }

    .news-card:first-child {
        max-width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .top {
        padding: 130px 0 50px;
    }

    .arhive {
        padding: 50px 0;
    }

    .news-card {
        max-width: calc(50% - 8px);
    }

    .news-card-excerpt {
        font-size: 14px;
    }

    .news-card-title {
        font-size: 16px;
    }

    .news-wrap {
        gap: 30px 15px;
    }

    .pagination {
        margin: 20px auto 0;
    }

    .news-preview {
        height: 180px;
    }

    .news-date-box {
        top: -100px;
    }

    .news-card {
        height: 430px;
    }
}

@media screen and (max-width: 450px) {
    .news-card {
        max-width: 100%;
    }

    .news-preview {
        width: 100%;
    }
}