.news__content{
    border-radius: 10px;
    padding: 20px;
    background: var(--color-light);
}

.news-items{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
    justify-content: start;
    place-content: center;
    gap: 30px;
}

/*Single*/

.news__wrap {
    display: grid;
    grid-template-columns: 1fr minmax(270px, 30%);
    gap: 40px;
    align-items: start;
}

.news__content {
    width: 100%;
    max-width: 100%;
}

.right-col-news{
    position: sticky;
    padding: 10px;
    top:20px

}

.form-news{
    margin: 30px 0;
    background: var(--color-light);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news__last {
    position: sticky;
    top: 30px;
    background: var(--color-light);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .news__wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news__last {
        max-width: 100%;
        position: static;
        order: -1; /* Можно поменять порядок при необходимости */
    }
}

/* Адаптация для мобильных */
@media (max-width: 576px) {
    .news__wrap {
        gap: 20px;
    }

    .news__last {
        padding: 15px;
    }
}

/*Блок последние новости*/

.news__last-items{
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.date-news{
    font-size: var(--gap-md);
    font-weight: bold;
    color: #9a9a9a;
}

.news__last-item{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-primary);
}


.news__last-item h2{
    font-size: var(--gap-md);
}

.news__last-item:hover h2{

    color: var(--color-primary-dark);
}


.news__last-items:last-child .news__last-item{
    border-bottom: none
}
