/* =========================================================
   EVOUPAK — список статей
   ========================================================= */

.news-page {
    padding: 28px 0 72px;
    background:
            radial-gradient(circle at 7% 4%, rgba(196, 126, 67, .08), transparent 26%),
            linear-gradient(180deg, #fffdf9 0%, #fff 32%, #fffaf5 100%);
}

.news-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: clamp(28px, 5vw, 54px);
    background:
            radial-gradient(circle at 92% 20%, rgba(201, 137, 79, .22), transparent 28%),
            linear-gradient(135deg, #fff7ed 0%, #f8e8d6 100%);
    border: 1px solid #ead7c3;
    border-radius: 28px;
}

.news-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -95px;
    width: 250px;
    height: 250px;
    border: 46px solid rgba(118, 51, 21, .06);
    border-radius: 50%;
}

.news-hero__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    color: #7b3515;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(123,53,21,.15);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news-hero__title {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 0 12px;
    color: #342219;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.02;
}

.news-hero__text {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0;
    color: #78665b;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.65;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.newit-card {
    min-width: 0;
}

.newit-card__link {
    display: flex;
    overflow: hidden;
    height: 100%;
    flex-direction: column;
    color: #2e221c;
    background: #fff;
    border: 1px solid #eadbcf;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(86, 47, 25, .08);
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.newit-card__link:hover {
    color: #2e221c;
    border-color: #d8b89d;
    box-shadow: 0 20px 48px rgba(86, 47, 25, .15);
    transform: translateY(-6px);
}

.newit-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f7efe7;
}

.newit-card__picture {
    display: block;
    width: 100%;
    height: 100%;
}

.newit-card__picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.newit-card__link:hover .newit-card__picture img {
    transform: scale(1.055);
}

.newit-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 11px;
    color: #fff;
    background: rgba(92, 37, 13, .88);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.newit-card__body {
    display: flex;
    min-height: 250px;
    padding: 22px;
    flex: 1;
    flex-direction: column;
}

.newit-card__date {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-bottom: 12px;
    color: #927c6f;
    font-size: 12px;
    font-weight: 600;
}

.newit-card__date svg {
    width: 16px;
    height: 16px;
    fill: #a85c2a;
}

.newit-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: #35231a;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.newit-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 22px;
    color: #7a685d;
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.newit-card__excerpt p {
    margin: 0;
}

.newit-card__more {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin-top: auto;
    color: #7b3515;
    font-size: 14px;
    font-weight: 800;
}

.newit-card__more svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    transition: transform .2s ease;
}

.newit-card__link:hover .newit-card__more svg {
    transform: translateX(5px);
}

.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

/* Совместимость с существующей пагинацией */
.news-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0;
}

.news-pagination .page-link,
.news-pagination a {
    display: grid;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    place-items: center;
    color: #6e3a21;
    background: #fff;
    border: 1px solid #dfc8b4;
    border-radius: 12px;
    text-decoration: none;
}

.news-pagination .active .page-link,
.news-pagination .page-link.active,
.news-pagination .active > a {
    color: #fff;
    background: #713014;
    border-color: #713014;
}

.news-empty {
    padding: 56px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid #eadbcf;
    border-radius: 24px;
}

.news-empty__icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #b8662f, #713014);
    border-radius: 20px;
}

.news-empty__icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.news-empty h2 {
    margin: 0 0 8px;
    color: #342219;
    font-size: 24px;
}

.news-empty p {
    margin: 0;
    color: #806f64;
}

@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .news-page {
        padding: 16px 0 48px;
    }

    .news-hero {
        margin-bottom: 22px;
        padding: 26px 20px;
        border-radius: 22px;
    }

    .news-hero__title {
        font-size: 34px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .newit-card__body {
        min-height: 220px;
        padding: 18px;
    }

    .newit-card__title {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .newit-card__link,
    .newit-card__picture img,
    .newit-card__more svg {
        transition: none;
    }
}
