/*стили карточки*/
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 24px;
    max-width: calc(85.825vw + 8px);
    margin: 0 auto 60px;
}

.cards__button {
    display: block;
    margin: 0 auto 80px;
    max-width: 154px;
}

.card {
    display: flex;
    flex-direction: column;
    max-width: 304px;
    width: 100%;
    position: relative;
    border: none;
    gap: 12px;
}

.card__corporate-plate {
    position: absolute;
    top: 8px;
    right: 8px;
    font: 400 12px/1.4 var(--font-family-onest);
    width: fit-content;
    padding: 6px 8px;
    z-index: 1;
    border-radius: 3px;
    background: var(--button-color-red);
    color: var(--color-white);
}

.card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card__picture-block {
    position: relative;
    border-radius: 4px;
}

.card__image {
    max-height: 171px;
    min-height: 170px;
    border-radius: 4px;
    height: auto;
    width: 100%;
}

.card__title {
    position: absolute;
    font: 400 18px/1.4 var(--font-family-onest);
    bottom: 0;
    margin-bottom: 16px;
    left: 16px;
    right: 9px;
}

.card__text {
    font: 400 12px/1.4 var(--font-family-onest);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -moz-box;
    -moz-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    color: var(--text-color);
}

.card__author-block {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.card__author-image {
    display: block;
    /*background-color: #D9D9D9;*/
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.card__author-name {
    font: 400 12px/1.4 var(--font-family-onest);
    color: var(--text-color);
    margin-bottom: 0;
}


.card__author-position {
    font: 400 10px/1.2 var(--font-family-onest);
    color: var(--text-color-pale);
    margin-bottom: 0;
}

.card__price {
    font: 500 20px/1.4 var(--font-family-onest);
    color: var(--text-color);
}

@media screen and (min-width: 768px) {
    .cards {
        max-width: 635px;
        justify-content: space-between;
        gap: 24px;
    }

    .card__text {
        min-height: 49px;
    }

}

@media screen and (min-width: 1024px) {
    .cards {
        max-width: 960px;
        justify-content: unset;
        gap: 56px 24px;
    }
}

@media screen and (min-width: 1366px) {
    .cards {
        max-width: 1300px;
        justify-content: unset;
    }
}

@media screen and (min-width: 1671px) {
    .cards {
        justify-content: unset;
    }
}

@media screen and (min-width: 1872px) {
    .cards {
        max-width: 1620px;
    }
}

/*стили карточки --- */