/* ==== Layout ==== */
.news-page {
    display: grid;
    grid-template-columns: 257px 1fr;
    gap: 28px;
    margin: 24px 0 64px;
}

.news-page__title {
    margin: 16px 0 24px;
    font-size: 32px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .news-page {
        grid-template-columns: 1fr;
    }
}

/* ==== Левое меню (Frame 2 + Frame 1 из фигмы) ==== */
.news-sidebar {
    width: 257px;
    padding: 30px;
    background: #F0F4F8;
    border-radius: 30px;
    align-self: start;
    box-sizing: border-box;
}

.news-sidebar .left-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 197px;
}

.news-sidebar .left-menu li {
    padding: 0 0 8px 0;
    margin: 0;
    background: none;
    border-bottom: 1px solid #CEE1F3;
}

.news-sidebar .left-menu li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.news-sidebar .left-menu a,
.news-sidebar .left-menu a:visited {
    display: block;
    color: #485867;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 19px;
    font-weight: 600;
    transition: color .15s;
}

.news-sidebar .left-menu a:hover {
    color: #2C3E50;
}

.news-sidebar .left-menu a.selected,
.news-sidebar .left-menu a.selected:visited,
.news-sidebar .left-menu a.selected:hover {
    color: #E67E22;
    font-weight: 700;
}

/* ==== Деталка ==== */
.news-detail__date {
    font-size: 14px;
    color: #90a7bc;
    margin-bottom: 8px;
}

.news-detail__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
}

.news-detail__image {
    margin: 0 0 24px;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail__image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail__text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.news-detail__back {
    display: inline-block;
    margin-top: 32px;
    color: #e67e22;
    text-decoration: none;
    font-weight: 500;
}

.news-detail__back:hover {
    text-decoration: underline;
}

.news-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-pager {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.news-empty {
    padding: 32px;
    text-align: center;
    color: #90a7bc;
}


@media (max-width: 1024px) {
    .news-grid-page {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .news-page {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .news-grid-page {
        display: flex;
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
    }

    .news-card__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}
