html,
body {
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at 8% 8%, rgba(123, 47, 247, 0.12), transparent 28%),
        radial-gradient(circle at 92% 86%, rgba(255, 106, 0, 0.14), transparent 30%),
        #fbf8fc;
    background-attachment: fixed;
}

.news-page {
    width: min(1500px, calc(100vw - 40px));
    min-height: calc(100vh - 55px);
    margin: 0 auto;
    padding: 42px 0 72px;
    box-sizing: border-box;
}

.news-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 0 4px;
}

.news-page__eyebrow {
    margin-bottom: 7px;
    color: #e54c24;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.news-page__title {
    margin: 0;
    color: #17151b;
    font-size: clamp(38px, 4.2vw, 66px);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.news-page__subtitle {
    max-width: 720px;
    margin: 14px 0 0;
    color: #6e6876;
    font-size: 16px;
    line-height: 1.55;
}

.news-page__counter {
    min-width: 54px;
    height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(255, 106, 0, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 34px rgba(39, 25, 52, 0.07);
    color: #db552b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 850;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-card {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 218px;
    border: 1px solid transparent;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    color: inherit;
    text-decoration: none;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #e9e4ed, #f1edf3) border-box;
    box-shadow: 0 15px 38px rgba(37, 24, 47, 0.075);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
    transform-origin: center;
    box-sizing: border-box;
}

.news-card--unread {
    border-width: 2px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(125deg, #ff7a00 0%, #ef3f67 52%, #8d41f4 100%) border-box;
    box-shadow:
        0 17px 42px rgba(42, 25, 54, 0.09),
        0 0 0 4px rgba(245, 76, 89, 0.045);
}

.news-card:hover,
.news-card:focus-visible {
    z-index: 3;
    transform: translateY(-3px) scale(1.012);
    box-shadow: 0 24px 55px rgba(38, 23, 50, 0.15);
    outline: none;
}

.news-card__media {
    width: clamp(300px, 34vw, 510px);
    min-height: 216px;
    margin: 0;
    flex: 0 0 clamp(300px, 34vw, 510px);
    overflow: hidden;
    background: #ece8ef;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.42s ease;
}

.news-card:hover .news-card__media img,
.news-card:focus-visible .news-card__media img {
    transform: scale(1.035);
}

.news-card__content {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
    padding: 23px 30px 21px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.news-card__meta {
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #8a8490;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.035em;
}

.news-card__unread-label {
    padding: 4px 9px;
    border-radius: 999px;
    color: #d53b45;
    background: #fff0f2;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.news-card__unread-label[hidden] {
    display: none !important;
}

.news-card__title {
    margin: 8px 0 0;
    color: #1c1920;
    font-size: clamp(21px, 2vw, 30px);
    font-weight: 820;
    line-height: 1.13;
    letter-spacing: -0.025em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card__excerpt-wrap {
    position: relative;
    max-width: 960px;
    height: 58px;
    margin-top: 10px;
    overflow: hidden;
}

.news-card__excerpt-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 31px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 93%);
}

.news-card__excerpt {
    margin: 0;
    color: #6d6872;
    font-size: 14px;
    line-height: 1.55;
}

.news-card__open {
    margin-top: auto;
    padding-top: 7px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    color: #d84e2b;
    font-size: 12px;
    font-weight: 850;
}

.news-card__open span {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.news-card:hover .news-card__open span,
.news-card:focus-visible .news-card__open span {
    transform: translateX(4px);
}

.news-pagination {
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.news-pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.news-pagination__page,
.news-pagination__arrow {
    width: 42px;
    height: 42px;
    border: 1px solid #e9e3ec;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3b3740;
    background: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(43, 27, 55, 0.055);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-pagination__page:hover,
.news-pagination__arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(43, 27, 55, 0.11);
}

.news-pagination__page--active {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, #f24558, #ff7900);
}

.news-pagination__arrow--disabled {
    opacity: 0.35;
}

.news-pagination__ellipsis {
    width: 28px;
    color: #8f8895;
    text-align: center;
    font-weight: 800;
}

.news-empty {
    min-height: 360px;
    border: 1px solid rgba(230, 222, 234, 0.95);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 18px 45px rgba(37, 24, 47, 0.07);
}

.news-empty__icon {
    width: 62px;
    height: 62px;
    border-radius: 21px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f03c60, #ff7900);
    font-size: 28px;
    font-weight: 900;
}

.news-empty h2 {
    margin: 18px 0 0;
    color: #211e24;
    font-size: 24px;
}

.news-empty p {
    margin: 9px 18px 0;
    color: #746e78;
    font-size: 14px;
}

@media (max-width: 820px) {
    .news-page {
        width: calc(100vw - 24px);
        padding: 28px 0 54px;
    }

    .news-page__header {
        align-items: center;
        margin-bottom: 20px;
    }

    .news-page__title {
        font-size: 39px;
    }

    .news-page__subtitle {
        margin-top: 10px;
        font-size: 14px;
    }

    .news-page__counter {
        min-width: 46px;
        height: 46px;
        border-radius: 15px;
        font-size: 15px;
    }

    .news-list {
        gap: 16px;
    }

    .news-card {
        min-height: 0;
        border-radius: 22px;
        flex-direction: column;
    }

    .news-card:hover,
    .news-card:focus-visible {
        transform: translateY(-2px) scale(1.008);
    }

    .news-card__media {
        width: 100%;
        height: clamp(190px, 54vw, 270px);
        min-height: 0;
        flex: none;
    }

    .news-card__content {
        min-height: 218px;
        padding: 19px 19px 18px;
    }

    .news-card__title {
        margin-top: 8px;
        font-size: 23px;
        line-height: 1.16;
    }

    .news-card__excerpt-wrap {
        height: 72px;
        margin-top: 10px;
    }

    .news-card__excerpt {
        font-size: 13.5px;
        line-height: 1.55;
    }

    .news-card__open {
        padding-top: 10px;
    }
}

@media (max-width: 520px) {
    .news-page__counter {
        display: none;
    }

    .news-page__eyebrow {
        font-size: 10px;
    }

    .news-page__title {
        font-size: 36px;
    }

    .news-card__unread-label {
        font-size: 9px;
    }

    .news-pagination {
        gap: 7px;
    }

    .news-pagination__pages {
        gap: 5px;
    }

    .news-pagination__page,
    .news-pagination__arrow {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card__media img,
    .news-card__open span,
    .news-pagination__page,
    .news-pagination__arrow {
        transition: none;
    }
}
