main {
    gap: 3em;
}
main .posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2em 1em;
}
main .posts-item {
    position: relative;
    transition: all 0.2s ease-in;
}
main .posts-title__content {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
main .posts-title__content-title {
    font-size: 24px;
    font-weight: 400;
}
main .posts-title__content-excerpt p {
    color: #58595b;
    font-size: 14px;
    font-weight: 400;
}
main .posts-title__content-date a {
    color: #938686b3;
    font-size: 16px;
    font-weight: 400;
}
main .posts-title__cat {
    position: absolute;
    font-size: 16px;
    font-weight: 400;
    left: 0;
    top: 2em;

    padding: 0.4em 1em 0.3em 2em;
    border-radius: 0px 10px 10px 0px;
    background-color: #111;
    color: #fff;
}
main .posts-title__cat[data-slug="статьи"] {
    background-color: #498460;
}
main .posts-title__cat[data-slug="события"] {
    background-color: #7bb058;
}
main .posts-title__cat[data-slug="новости"] {
    background-color: #68776e;
}
main .posts-item img {
    width: 100%;
    height: 275px;
    object-fit: cover;

    transition: all 0.2s ease-in;
    border-radius: 20px;
}
main .posts-item:hover {
    transform: translateY(-5px) scale(1.01);
}
main .posts-item:hover img {
    box-shadow: 0 0 10px 1px #0005;
}


@media (min-width: 1441px) {
}
@media (max-width: 1024px) {
}
@media (max-width: 800px) {
}
@media (max-width: 600px) {
}
@media (max-width: 450px) {
}
@media (max-width: 380px) {
}