/* ===== Новости ===== */
.news {
    position: relative;
    padding-top: 50px;
}

.news__box {
    position: relative;
}

.news__title {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-green);
    margin: 0 0 30px;
}

/* ===== Сетка ===== */
.newsItems {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 25px 0;
}

/* ===== Карточка (общая) ===== */
.newsItem {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--color-dark);
    text-decoration: none;
    min-height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsItem:hover {
    transform: translateY(-4px);
}

/* ===== Большая карточка (фон + градиент) ===== */
.newsItem--large {
    justify-content: flex-end;
    min-height: 320px;
    padding: 26px;
    border-radius: 20px;
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--color-white);
    overflow: hidden;
    box-shadow: none;
}

.newsItem--large::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #0615100d, #061510e6);
    pointer-events: none;
}

.newsItem--large > * {
    position: relative;
    z-index: 1;
}

/* ===== Картинка у обычной карточки ===== */
.newsItem__img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

/* ===== Текст карточки ===== */
.newsItem__date {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-green);
}

.newsItem__title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.newsItem__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-gray);
}

.newsItem__text p {
    margin: 0;
}

/* Внутри большой — всё белое */
.newsItem--large .newsItem__date,
.newsItem--large .newsItem__title,
.newsItem--large .newsItem__text {
    color: var(--color-white);
}

.newsItem--large .newsItem__date {
    margin-top: auto;
}

.newsItem--large .newsItem__text {
    max-width: 480px;
    color: #ffffffd9;
}

/* ===== Кнопка ===== */
.news__btn {
   font-size: 21px;
    flex: 1;
	 font-weight: 400;
    display: inline-flex;
    padding: 23px 36px;
    cursor: pointer;
    transition: all 0.32s;
    white-space: nowrap;
    color: #fff;
    border: 0;
    border-radius: 38px;
    background-color: #ea7d1bb3;
    justify-content: center;
    align-items: center;
	transition: all .3s;
}

.news__btn:hover{
background-color: #fff;
color: #ea7d1bb3;
}

/* ===== Планшет (от 880px) ===== */
@media (min-width: 880px) {
    .newsItems {
        /* 4 колонки, большая занимает 2 из них */
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        padding: 25px 0;
    }

    .newsItem--large {
        grid-column: span 2;
        padding: 50px;
        min-height: 380px;
    }

    .newsItem__date {
        font-size: 14px;
    }

    .newsItem__title {
        font-size: 24px;
        line-height: 1.28;
    }

    .newsItem__text {
        font-size: 16px;
        line-height: 1.625;
    }

    .news__btn {
        font-size: 22px;
    }
}

/* ===== Десктоп (от 1080px) ===== */
@media (min-width: 1080px) {
    .news__title {
        font-size: 50px;
    }

    .newsItem--large,
    .newsItems > *:first-child {
        border-radius: 20px;
    }

    .newsItem__img {
        border-radius: 20px;
    }
}

/* ===== Баннер новости ===== */
.banner {
    position: relative;
    padding-top: 30px;
}

.banner__wrap {
    position: relative;
    overflow: hidden;
    max-width: 1780px;
    min-height: 40px;
    padding: 28px 20px 14px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
}

.banner__wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0003;
}

.banner__wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, #000000bf, #0000 60%);
}

.banner__date,
.banner__title {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.banner__title {
    font-size: 32px;
    padding-top: 66px;
    line-height: 1;
}

.banner__date {
    font-size: 12px;
}

/* ===== Статья ===== */
.article {
    padding-bottom: 30px;
    padding-top: 52px;
}

.article__box {
    font-size: 20px;
    line-height: 1.6;
    max-width: 1220px;
    color: var(--color-gray);
}

.article__box p {
    margin: 0 0 16px;
}

.article__box p:last-child {
    margin-bottom: 0;
}

/* ===== Читайте также ===== */
.siblings {
    position: relative;
    padding-top: 50px;
}

.siblings__title {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-green);
    margin: 0 0 20px;
}

.siblings__title strong {
    font-weight: 700;
}

@media (min-width: 1080px) {
    .siblings__title { font-size: 50px; }
    .banner__title  { font-size: 80px; padding-top: 120px; }
    .banner__wrap   { padding: 30px 50px 20px; border-radius: 20px; }
}

/* ===== Внутренняя страница новости ===== */
.siblings {
    position: relative;
    padding-top: 50px;
}

.siblings__title {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-green);
    margin: 0 0 20px;
}

.siblings__title strong {
    font-weight: 700;
}

@media (min-width: 1080px) {
    .siblings__title {
        font-size: 50px;
    }
}