.news-page,
.news-page .header,
.news-section {
    background: #1e1e1e;
}

.news-page .header {
    position: sticky;
    border-bottom: 1px solid rgba(255, 255, 255, .025);
}

.news-page {
    padding-top: 0;
}

.news-page .modal__cookie_confirm {
    max-width: calc(100% - 32px);
    left: 16px;
}

.news-section {
    padding: 140px 0 150px;
    scroll-margin-top: 90px;
}

.news-section__heading {
    margin-bottom: 48px;
}

.news-section__title,
.news-article__title {
    margin: 0;
    color: #fff;
    font-size: 62px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.news-breadcrumbs a:hover {
    color: var(--main-color);
}

.news-grid,
.news-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 20px;
}

.news-card {
    min-width: 0;
}

.news-card__link {
    display: block;
}

.news-card__cover {
    position: relative;
    aspect-ratio: 1.68;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #373737;
    border-radius: 16px;
    background: #252525;
    transition: border-color .2s;
}

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

.news-card__cover img {
    object-fit: contain;
}

.news-category {
    display: inline-block;
    max-width: 100%;
    padding: 7px 10px;
    border-radius: 5px;
    background: var(--main-color);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.news-card__cover .news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
}

.news-card__date {
    display: block;
    color: #969696;
    font-size: 16px;
    line-height: 1.5;
}

.news-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 12px 0;
    color: #fff;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
    transition: color .2s;
}

.news-card__summary {
    overflow: hidden;
    margin: 0;
    color: #a6a6a6;
    font-size: 16px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-section .news-card__date {
    color: rgba(255, 255, 255, 0.7);
}

.news-section .news-card__title {
    font-size: 24px;
}

.news-section .news-card__summary {
    color: rgba(255, 255, 255, 0.8);
}

.news-card__link:hover .news-card__cover {
    border-color: #626262;
}

.news-card__link:hover .news-card__title {
    color: var(--main-color);
}

.news-card__link:focus-visible,
.news-gallery__item:focus-visible,
.news-button:focus-visible,
.news-lightbox button:focus-visible,
.news-home-link:focus-visible,
.news-breadcrumbs a:focus-visible,
.news-pagination a:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 5px;
    border-radius: 5px;
}

.news-listing,
.news-detail {
    padding: 48px 0 170px;
}

.news-listing {
    min-height: 65vh;
}

.news-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #282828;
    color: #d5d5d5;
    font-size: 16px;
    line-height: 24px;
}

.news-home-link svg {
    flex-shrink: 0;
}

.news-home-link:hover {
    background: #333;
    color: #fff;
}

.news-breadcrumbs {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    color: #c7c7c7;
    font-size: 16px;
    line-height: 1.5;
}

.news-breadcrumbs__current {
    overflow: hidden;
    max-width: 320px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-listing .news-section__title {
    margin: 32px 0 48px;
}

.news-article__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 12px;
}

.news-article__date {
    flex-shrink: 0;
    color: #ddd;
    font-size: 20px;
    line-height: 1.5;
}

.news-article__title {
    margin-top: 26px;
}

.news-article__lead {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 22px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.news-article__cover {
    overflow: hidden;
    margin-top: 44px;
    border-radius: 20px;
    background: #252525;
}

.news-article__cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 760px;
    object-fit: contain;
}

.news-article__body {
    max-width: 920px;
    margin: 48px auto 0;
    color: #c7c7c7;
    font-size: 18px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.news-article__body p,
.news-article__body ul,
.news-article__body ol,
.news-article__body blockquote {
    margin: 0 0 24px;
}

.news-article__body h2,
.news-article__body h3,
.news-subtitle {
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
}

.news-article__body h2,
.news-article__body h3 {
    margin: 26px 0;
}

.news-article__body h3 {
    font-size: 26px;
}

.news-article__body blockquote {
    padding-left: 24px;
    border-left: 3px solid var(--main-color);
}

.news-article__body li + li {
    margin-top: 8px;
}

.news-article__body a {
    color: #4dabff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-article__body > :last-child {
    margin-bottom: 0;
}

.news-gallery {
    margin-top: 48px;
}

.news-subtitle {
    margin: 0 0 28px;
}

.news-gallery__grid {
    gap: 20px;
}

.news-gallery__item {
    display: block;
    aspect-ratio: 1.68;
    overflow: hidden;
    border-radius: 16px;
    background: #252525;
    cursor: zoom-in;
}

.news-gallery [hidden],
.news-lightbox [hidden] {
    display: none !important;
}

.news-button {
    padding: 17px 30px;
    border: 0;
    border-radius: 8px;
    background: var(--main-color);
    color: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    transition: background .2s;
}

.news-button:hover {
    background: #0074d8;
}

.news-gallery__more {
    display: block;
    margin: 48px auto 0;
}

.news-related {
    margin-top: 110px;
}

.news-empty {
    margin: 0;
    color: #a6a6a6;
    font-size: 18px;
    line-height: 1.6;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 60px 0 0;
    padding: 0;
    list-style: none;
}

.news-pagination a,
.news-pagination span {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #282828;
}

.news-pagination .active a,
.news-pagination a:hover {
    background: var(--main-color);
}

.news-pagination .disabled {
    opacity: .4;
}

.news-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 70px;
    border: 0;
    background: rgba(15, 15, 15, .97);
    color: #fff;
}

.news-lightbox:not([open]) {
    display: none;
}

.news-lightbox[open] {
    display: grid;
    place-items: center;
}

.news-lightbox::backdrop {
    background: rgba(0, 0, 0, .8);
}

html.news-lightbox-open {
    overflow: hidden;
}

.news-lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    margin: 0;
    pointer-events: none;
}

.news-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 180px);
    object-fit: contain;
    pointer-events: auto;
}

.news-lightbox__caption {
    margin-top: 16px;
    color: #c7c7c7;
    font-size: 16px;
}

.news-lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.news-lightbox__close {
    top: 16px;
    right: 16px;
}

.news-lightbox__previous,
.news-lightbox__next {
    top: calc(50% - 24px);
}

.news-lightbox__previous {
    left: 12px;
}

.news-lightbox__next {
    right: 12px;
}

@media (max-width: 991px) {
    .news-section {
        padding: 90px 0;
    }

    .news-section__title,
    .news-article__title {
        font-size: 46px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-article__meta {
        flex-wrap: wrap;
    }

    .news-article__date {
        font-size: 16px;
    }

    .news-article__body {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .news-section {
        padding: 64px 0 72px;
    }

    .news-section__heading {
        margin-bottom: 28px;
    }

    .news-section__title,
    .news-article__title {
        font-size: 34px;
    }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .news-card__title {
        font-size: 23px;
    }

    .news-listing,
    .news-detail {
        padding: 30px 0 80px;
    }

    .news-breadcrumbs {
        font-size: 13px;
    }

    .news-breadcrumbs__current {
        max-width: 180px;
    }

    .news-article__meta {
        gap: 12px;
        margin-bottom: 20px;
    }

    .news-article__title {
        margin-top: 20px;
    }

    .news-article__lead {
        margin-top: 18px;
        font-size: 18px;
    }

    .news-article__cover {
        margin-top: 30px;
        border-radius: 14px;
    }

    .news-article__body {
        margin-top: 30px;
        font-size: 16px;
        line-height: 1.6;
    }

    .news-article__body h2,
    .news-subtitle {
        font-size: 27px;
    }

    .news-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .news-gallery__item {
        border-radius: 12px;
    }

    .news-gallery__more {
        margin-top: 30px;
    }

    .news-related {
        margin-top: 72px;
    }

    .news-lightbox {
        padding: 70px 12px 110px;
    }

    .news-lightbox__previous,
    .news-lightbox__next {
        top: auto;
        bottom: 24px;
    }

    .news-lightbox__previous {
        left: calc(50% - 60px);
    }

    .news-lightbox__next {
        right: calc(50% - 60px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-card__cover,
    .news-card__title,
    .news-button {
        transition: none;
    }
}
