/* Страница /новости — макет «8 крупных плиток слева + 9 мини-новостей справа».
   Сетка main:sidebar = 65%/35% по макету; на узких экранах сайдбар уезжает вниз. */

.news-page__head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
    margin-bottom: 30px;
}

.news-page__sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-page__sort label {
    font-family: 'GolosText-Regular';
    font-size: 14px;
    color: #5F5A53;
}

.news-page__select {
    width: 220px;
}

/* <input> переопределяет унаследованный cursor: pointer своим cursor: text;
   padding-right: 52px — чтобы текст не залезал под стрелку (right: 24px + 24px иконка + отступ) */
.news-page__select .custom-select_input {
    cursor: pointer;
    padding: 6px 50px 6px 16px;
    border: 1px solid #8A522C;
    background: transparent;
    font-size: 18px;
    line-height: 24px;
}
.news-page__select .custom_input_arrow {
    opacity: 1;
}

.news-page__layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    width: 100%;
}

/* Левая колонка: сетка плиток 2×4 (8 штук). На средних экранах сжимается
   до 2 колонок, потом 1 — стандартный grid auto-fit. */
.news-page__main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
    width: 70%;
    max-width: 780px;
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 68px 32px 32px;

}
.news-card_bg {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}
.news-card_bg img {
    width: 100%;
    height: 100%;
}
.news-card__image {
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #efe3d0, #e7d5b6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 16px;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card__placeholder {
    font-size: 56px;
    color: #c79b5e;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-card__title {
    font-family: 'Lora-Bold';
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: .8s;
}
.news-card:hover .news-card__title {
    color: #516A46;
}
.news-card__excerpt {
    margin: 0;
    font-family: 'GolosText-Regular';
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #555555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__date {
    margin-top: auto;
    font-family: 'GolosText-Regular';
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: #777777;
}
/* Правая колонка: мини-новости текстом. Высота ограничена, всё что не влезло —
   прокручивается внутри колонки. Sticky-top держит сайдбар в видимой области
   при скролле основной страницы. */
.news-page__sidebar {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 8px;
    position: sticky;
    top: 96px;
    scrollbar-width: thin;
}

.news-mini {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #3d563223;
}

.news-mini__title {
    font-family: 'Lora-SemiBold';
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    transition: .8s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-mini:hover .news-mini__title {
    color: #516A46;
}

.news-mini__date {
    font-family: 'GolosText-Regular';
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: #333333CC;
}

.news-page__pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
@media screen and (max-width: 1279.98px) {
    .news-page__layout {
        gap: 34px;
    }
    .news-card__image {
        height: 154px;
    }
}
@media screen and (max-width: 1023.98px) {
    .news-page__main {
        width: 52%;
        grid-template-columns: 1fr;
    }
    .news-page__sidebar {
        width: 48%;
    }
    .news-card__image {
        height: 240px;
    }
}
@media screen and (max-width: 767.98px) {
    .news-page__layout {
        flex-direction: column;
    }
    .news-page__main, .news-page__sidebar {
        width: 100%;
    }
    /* На мобиле sticky/scroll-сайдбар не нужны — он идёт вниз обычным потоком. */
    .news-page__sidebar {
        max-height: none;
        overflow: visible;
        position: static;
        padding-right: 0;
    }
    .page-title {
        margin-bottom: 16px;
    }
    .news-page__head {
        justify-content: flex-start;
        margin-bottom: 16px;
    }
}
