.blog-page {
    margin: 30px 0 0;
}

.blog-page__container {
    width: 100%;
    max-width: 1340px;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

.blog-page__title {
    font-weight: 500;
    font-size: 40px;
    line-height: 40px;
    margin: 0 0 15px;
    padding: 0 0 15px;
    color: #142757;
    border-bottom: 1px solid #D3D9E9;
}

.blog-page__seo-text {
    margin: 30px 0;
}

.blog-category {
    display: flex;
    align-items: center;
    margin: 0 0 30px;
    max-width: 100%;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.blog-category.is-dragging {
    cursor: grabbing;
}

.blog-category::-webkit-scrollbar {
    display: none;
}

.blog-category__link {
    position: relative;
    display: block;
    white-space: nowrap;
    font-weight: 500;
    font-size: 22px;
    line-height: 15px;
    padding: 15px 0;
    text-decoration: none;
    margin: 0 30px 0 0;
}

.blog-category__link:last-child {
    margin: 0;
}

.blog-category__link::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: background .2s ease-in-out;
}

.blog-category__link:hover::after,
.blog-category__link:focus-visible::after {
    background: #2F4680;
}

.blog-category__link,
.blog-category__link:link,
.blog-category__link:active {
    color: #2F4680;
}

.blog-category__link.is-active {
    color: #D1057E;
    pointer-events: none;
    order: -1;
    margin: 0 30px 0 0;
}

.blog-category__link.is-all {
    order: -2;
}

.blog-category__link.is-active::after {
    background: #D1057E;
}

.blog-article-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.blog-page__pagination {
    max-width: 760px;
    margin: 50px auto;
}

.article-card,
.article-card:link,
.article-card:visited,
.article-card:hover,
.article-card:focus,
.article-card:active {
    color: inherit;
    text-decoration: none;
}

.article-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: box-shadow .2s ease-in-out;
}

.article-card:hover,
.article-card:focus-visible {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-card:hover .article-card__image-wrap::after,
.article-card:focus-visible .article-card__image-wrap::after {
    opacity: 0;
}

.article-card__image-wrap {
    position: relative;
    height: 280px;
}

.article-card__image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: opacity .2s ease-in-out;
}

.article-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__category {
    display: inline-block;
    max-width: calc(100% - 30px);
    border: 2px solid #D1057E;
    background: #FFF;
    color: #D1057E;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    line-height: 23px;
    text-transform: uppercase;
    padding: 0 8px;
    z-index: 1;
}

.article-card__body {
    display: flex;
    flex-direction: column;
    background: #FFF;
    padding: 25px 20px;
    flex: 1 1 auto;
}

.article-card__head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 0 20px;
}

.article-card__views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card__views-icon {
    width: 20px;
    height: 20px;
    background: #898FA1;
    -webkit-mask: url('../images/icons/show.svg') center / contain no-repeat;
    mask: url('../images/icons/show.svg') center / contain no-repeat;
}

.article-card__views-text {
    font-size: 16px;
    line-height: 20px;
    color: #898FA1;
}

.article-card__text-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    margin: 0 0 15px;
}

.article-card__title {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 600;
    font-size: 22px;
    line-height: 30px;
    margin: 0;
    color: #101010;
}

.article-card__text {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 16px;
    line-height: 25px;
    color: #898FA1;
    margin: 0;
}

.article-rating,
.article-rating__info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-rating__list {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.article-rating__info,
.article-card__date {
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #898FA1;
    margin: 0;
}

.article-rating__info.is-empty {
    color: #2F4680;
}

.article-rating__info.is-empty::before {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    background: #2F4680;
    -webkit-mask: url('../images/icons/star.svg') center / contain no-repeat;
    mask: url('../images/icons/star.svg') center / contain no-repeat;
}

.article-rating__item {
    --fill: 0%;
    width: 25px;
    height: 25px;
    background: linear-gradient(90deg, #FBBB00 var(--fill), #E7ECFB var(--fill));
    -webkit-mask: url('../images/icons/starNew.svg') center / contain no-repeat;
    mask: url('../images/icons/starNew.svg') center / contain no-repeat;
}

.article-card__date {
    margin: 20px 0 0;
}

@media (max-width: 1340px) {
    .blog-category {
        display: flex;
        align-items: center;
        margin: 0 -20px 30px;
        padding: 0 20px;
        max-width: 100%;
        overflow: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
        user-select: none;
    }

    .blog-category::after {
        content: "";
        display: block;
        flex-shrink: 0;
        width: 20px;
        height: 1px;
    }
}

@media (max-width: 1024px) {
    .blog-article-wrap {
       grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    }
}

@media (max-width: 580px) {
    .blog-page__title {
        font-size: 30px;
    }

    .blog-article-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-page__container {
        padding: 0 15px;
    }

    .blog-category {
        margin: 0 -15px 30px;
        padding: 0 15px;
    }

    .blog-category::after {
        width: 15px;
    }
}