/* ===== Список новостей ===== */
.newsList {
    margin-top: 8px;
}
.newsList__item {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #F0F1F6;
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.newsList__item::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0182E0, #EC3539);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    content: "";
}
.newsList__item:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(50, 53, 72, 0.12);
}
.newsList__item:hover::before {
    opacity: 1;
}
.newsList__item:hover .newsList__media img {
    transform: scale(1.04);
}
.newsList__item:hover .newsList__more {
    color: #EC3539;
}
.newsList__item:hover .newsList__more::after {
    transform: translateX(3px) rotate(45deg);
}
.newsList__item:focus-within {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(1, 130, 224, 0.25);
}
.newsList__media {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #F0F1F6;
}
.newsList__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.newsList__date {
    display: inline-block;
    color: rgba(50, 53, 72, 0.7);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.02em;
}
.newsList__media .newsList__date {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #323548;
    font-weight: 500;
}
.newsList__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px 22px 22px;
}
.newsList__body > .newsList__date {
    margin-bottom: 8px;
}
.newsList__title {
    margin: 0 0 10px;
    font-family: "Craftwork Grotesk";
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
}
.newsList__title a {
    color: #323548;
    text-decoration: none;
}
.newsList__title a:hover {
    color: #EC3539;
}
.newsList__text {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: rgba(50, 53, 72, 0.72);
    font-size: 15px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.newsList__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #0182E0;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.newsList__more::after {
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    content: "";
}

/* ===== Пагинация ===== */
.newsPagination {
    margin-top: 36px;
}
.newsPagination .pagination {
    gap: 6px;
}
.newsPagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #F0F1F6;
    color: #323548;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.newsPagination .page-link:hover {
    background: #E0E5EE;
    color: #323548;
}
.newsPagination .page-link:focus {
    box-shadow: none;
}
.newsPagination .page-item.active .page-link {
    background: #EC3539;
    color: #fff;
}
.newsPagination .page-item.disabled .page-link {
    background: transparent;
    color: rgba(50, 53, 72, 0.35);
}

@media (max-width: 991.98px) {
    .newsList__title {
        font-size: 20px;
    }
    .newsList__body {
        padding: 18px 18px 20px;
    }
}

@media (max-width: 575.98px) {
    .newsList__media {
        aspect-ratio: 16/9;
    }
    .newsPagination {
        margin-top: 24px;
    }
    .newsPagination .page-link {
        min-width: 36px;
        padding: 8px 10px;
        font-size: 14px;
    }
}

/* ===== Страница новости ===== */
.newsItem__article {
    max-width: 1080px;
    margin: 0 auto;
}

.newsItem__header {
    max-width: 900px;
    margin: 0 auto;
}

.newsItem__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.newsItem__category {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(1, 130, 224, 0.1);
    color: #0182E0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.newsItem__category:hover {
    background: #EC3539;
    color: #fff;
}

.newsItem__date {
    color: rgba(50, 53, 72, 0.65);
    font-size: 14px;
    line-height: 1;
}

.newsItem__title {
    max-width: 900px;
    margin-bottom: 30px;
    font-size: 44px;
    line-height: 1.15;
}

.newsItem__hero {
    margin: 0 0 38px;
}

.newsItem__hero-link {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #F0F1F6;
    cursor: zoom-in;
}
.newsItem__hero-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}
.newsItem__hero-link:hover img {
    transform: scale(1.015);
}

.newsItem__hero figcaption {
    margin-top: 12px;
    color: rgba(50, 53, 72, 0.6);
    font-size: 14px;
    line-height: 1.45;
}

.newsItem__text {
    max-width: 900px;
    margin: 0 auto 44px;
    color: #323548;
    font-size: 18px;
    line-height: 1.65;
}
.newsItem__text p {
    margin-bottom: 18px;
    line-height: inherit;
}
.newsItem__text h2,
.newsItem__text h3,
.newsItem__text h4 {
    margin-top: 38px;
    margin-bottom: 14px;
    font-family: "Craftwork Grotesk";
    font-weight: 500;
    line-height: 1.2;
}
.newsItem__text h2 {
    font-size: 32px;
}
.newsItem__text h3 {
    font-size: 26px;
}
.newsItem__text h4 {
    font-size: 21px;
}
.newsItem__text ul,
.newsItem__text ol {
    margin: 0 0 20px;
    padding-left: 24px;
}
.newsItem__text li {
    margin-bottom: 8px;
}
.newsItem__text a {
    color: #0182E0;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.newsItem__text a:hover {
    color: #EC3539;
}
.newsItem__text strong,
.newsItem__text b {
    font-weight: 600;
}
.newsItem__text blockquote {
    margin: 30px 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid #EC3539;
    color: rgba(50, 53, 72, 0.75);
    font-size: 20px;
    line-height: 1.5;
}
.newsItem__text img {
    max-width: 100%;
    height: auto;
    margin: 26px 0;
    border-radius: 16px;
}
.newsItem__text figure {
    margin: 26px 0;
}
.newsItem__text figure img {
    margin: 0;
}
.newsItem__text figure figcaption {
    margin-top: 10px;
    color: rgba(50, 53, 72, 0.6);
    font-size: 14px;
}
.newsItem__text table {
    width: 100%;
    margin-bottom: 24px;
}

.newsItem__gallery {
    margin-top: 52px;
}

.newsItem__subtitle {
    margin-bottom: 22px;
    font-size: 28px;
}

.newsItem__gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.newsItem__gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 14px;
    background: #F0F1F6;
    cursor: zoom-in;
}
.newsItem__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.newsItem__gallery-item::after {
    position: absolute;
    inset: 0;
    background: rgba(50, 53, 72, 0.18);
    opacity: 0;
    transition: opacity 0.25s ease;
    content: "";
}
.newsItem__gallery-item:hover img {
    transform: scale(1.05);
}
.newsItem__gallery-item:hover::after {
    opacity: 1;
}

.newsItem__footer {
    max-width: 900px;
    margin: 48px auto 0;
    padding-top: 28px;
    border-top: 1px solid #F0F1F6;
}

.newsItem__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #F0F1F6;
    color: #323548;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.newsItem__back::before {
    width: 8px;
    height: 8px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
    content: "";
}
.newsItem__back:hover {
    background: #323548;
    color: #fff;
}

@media (max-width: 991.98px) {
    .newsItem__title {
        font-size: 34px;
        margin-bottom: 24px;
    }
    .newsItem__text {
        font-size: 17px;
    }
    .newsItem__gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .newsItem__title {
        font-size: 28px;
    }
    .newsItem__hero-link {
        border-radius: 16px;
    }
    .newsItem__text {
        font-size: 16px;
        line-height: 1.6;
    }
    .newsItem__text h2 {
        font-size: 26px;
    }
    .newsItem__text h3 {
        font-size: 22px;
    }
    .newsItem__gallery-grid {
        gap: 8px;
    }
    .newsItem__gallery-item {
        border-radius: 10px;
    }
    .newsItem__subtitle {
        font-size: 24px;
    }
    .newsItem__footer {
        margin-top: 36px;
    }
}
