.articles-page,
.article-page {
    min-height: 60vh;
    color: #fff;
    background: #131313;
}

.articles-page,
.articles-page *,
.article-page,
.article-page * {
    box-sizing: border-box;
}

.articles-hero {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px 40px 48px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 86% 24%, rgba(249, 89, 17, 0.16), transparent 28%),
        linear-gradient(136deg, #1b1d1c 0%, #131313 72%);
}

.articles-hero__breadcrumbs .bx-breadcrumb,
.article-hero__breadcrumbs .bx-breadcrumb {
    margin: 0;
}

.articles-hero__body {
    display: flex;
    max-width: 920px;
    flex-direction: column;
    gap: 12px;
}

.articles-hero__eyebrow {
    color: #f95911;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    text-transform: uppercase;
}

.articles-hero__title,
.article-hero__title {
    margin: 0;
    color: #fff;
    font-family: "Oddval", sans-serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 56px;
    letter-spacing: -2px;
}

.articles-hero__title span {
    color: #f95911;
}

.articles-hero__text {
    max-width: 560px;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 24px;
}

.articles-catalog {
    padding: 48px 40px 64px;
}

.articles-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.articles-section-title {
    margin: 0;
    color: #fff;
    font-family: "Oddval", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -2px;
}

.articles-section-count {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    line-height: 20px;
}

.articles-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
}

.articles-filter {
    padding: 8px 12px;
    border: 0;
    border-radius: 2px;
    color: #171717;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.articles-filter:hover,
.articles-filter:focus-visible {
    color: #fff;
    background: #12473d;
    outline: none;
}

.articles-filter.is-active {
    color: #fff;
    background: #f95911;
}

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

.article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    background: rgba(34, 34, 34, 0.82);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    border-color: rgba(249, 89, 17, 0.48);
    transform: translateY(-4px);
}

.article-card[hidden] {
    display: none;
}

.article-card_featured {
    grid-column: span 2;
}

.article-card__media {
    position: relative;
    display: flex;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(136deg, #12473d, #1b1d1c);
}

.article-card_featured .article-card__media {
    aspect-ratio: 16 / 7;
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card__media img {
    transform: scale(1.02);
}

.article-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 56%, rgba(19, 19, 19, 0.52));
    pointer-events: none;
}

.article-card__media-placeholder {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.36);
    font-family: "Oddval", sans-serif;
    font-size: 48px;
    line-height: 48px;
}

.article-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.article-card__meta,
.article-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    line-height: 16px;
}

.article-card__meta > *:not(:last-child)::after,
.article-hero__meta > *:not(:last-child)::after {
    content: "/";
    margin-left: 12px;
    color: rgba(255, 255, 255, 0.2);
}

.article-card__category,
.article-hero__category {
    color: #f95911;
    font-weight: 500;
}

.article-card__title {
    margin: 0;
    color: #fff;
    font-family: "Oddval", sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -2px;
}

.article-card_featured .article-card__title {
    max-width: 760px;
    font-size: 32px;
    line-height: 40px;
}

.article-card__title a {
    color: inherit;
}

.article-card__title a:hover,
.article-card__title a:focus-visible {
    color: #f95911;
    outline: none;
}

.article-card__preview {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 20px;
}

.article-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.06);
}

.article-card__author {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.article-card__author-photo,
.article-card__author-initial {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
}

.article-card__author-photo {
    object-fit: cover;
}

.article-card__author-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #12473d;
    font-family: "Oddval", sans-serif;
    font-size: 20px;
    line-height: 24px;
}

.article-card__author-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.article-card__author strong {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-card__author small {
    color: rgba(255, 255, 255, 0.36);
    font-size: 12px;
    line-height: 16px;
}

.article-card__link,
.article-back,
.article-external-media,
.article-author__link {
    color: #f95911;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transition: color 0.2s ease;
}

.article-card__link:hover,
.article-card__link:focus-visible,
.article-back:hover,
.article-back:focus-visible,
.article-external-media:hover,
.article-external-media:focus-visible,
.article-author__link:hover,
.article-author__link:focus-visible {
    color: #fff;
    outline: none;
}

.articles-empty {
    padding: 48px 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 18px;
    line-height: 24px;
}

.articles-empty_filter {
    text-align: center;
}

.articles-empty[hidden] {
    display: none;
}

.articles-pagination {
    margin-top: 40px;
}

.article-hero {
    padding: 32px 40px 0;
}

.article-hero__breadcrumbs {
    margin-bottom: 32px;
}

.article-hero__meta {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 20px;
}

.article-hero__title {
    max-width: 1180px;
    line-height: 60px;
}

.article-hero__lead {
    max-width: 840px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 18px;
    line-height: 28px;
}

.article-author {
    display: flex;
    align-items: center;
}

.article-author_compact {
    gap: 12px;
    margin-top: 24px;
}

.article-author__photo,
.article-author__initial {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
}

.article-author__photo {
    object-fit: cover;
}

.article-author__initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #12473d;
    font-family: "Oddval", sans-serif;
    font-size: 22px;
    line-height: 24px;
}

.article-author__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.article-author__copy strong {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
}

.article-author__copy small,
.article-author__copy span {
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    line-height: 16px;
}

.article-cover {
    margin: 32px 0 0;
}

.article-cover img {
    display: block;
    width: 100%;
    max-height: 640px;
    aspect-ratio: 16 / 7;
    border-radius: 4px;
    object-fit: cover;
}

.article-cover figcaption,
.article-gallery figcaption,
.article-content figcaption {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    line-height: 20px;
}

.article-layout {
    padding: 48px 40px 64px;
}

.article-main {
    width: 100%;
    max-width: 880px;
    min-width: 0;
    margin: 0 auto;
}

.article-content {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 28px;
    overflow-wrap: anywhere;
}

.article-content > :first-child {
    margin-top: 0;
}

.article-content > :last-child {
    margin-bottom: 0;
}

.article-content p {
    margin: 0 0 20px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #fff;
    font-family: "Oddval", sans-serif;
    font-weight: 400;
    letter-spacing: -2px;
    scroll-margin-top: 96px;
}

.article-content h2 {
    margin: 48px 0 20px;
    font-size: 32px;
    line-height: 40px;
}

.article-content h3 {
    margin: 40px 0 16px;
    font-size: 24px;
    line-height: 32px;
}

.article-content h4 {
    margin: 32px 0 12px;
    font-size: 20px;
    line-height: 24px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.article-content li + li {
    margin-top: 8px;
}

.article-content a {
    color: #f95911;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content a:hover,
.article-content a:focus-visible {
    color: #fff;
    outline: none;
}

.article-content strong {
    color: #fff;
    font-weight: 500;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px;
    border-left: 4px solid #f95911;
    border-radius: 0 4px 4px 0;
    color: rgba(255, 255, 255, 0.86);
    background: #1b1d1c;
    font-family: "Oddval", sans-serif;
    font-size: 20px;
    line-height: 32px;
}

.article-content figure {
    margin: 32px 0;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-content video,
.article-content iframe,
.article-media-block video,
.article-media-block iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 4px;
    background: #0d0d0d;
}

.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 32px 0;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.article-content th {
    color: #fff;
    background: #222;
}

.article-content pre {
    margin: 32px 0;
    padding: 20px;
    overflow-x: auto;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.82);
    background: #0d0d0d;
    font-size: 14px;
    line-height: 20px;
}

.article-content code {
    padding: 2px 4px;
    border-radius: 2px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.article-content pre code {
    padding: 0;
    background: transparent;
}

.article-content hr {
    margin: 40px 0;
    border: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
}

.article-media-block,
.article-external-media,
.article-gallery,
.article-tags,
.article-author_panel,
.article-cta {
    margin-top: 48px;
}

.article-external-media {
    display: inline-flex;
}

.article-gallery h2 {
    margin: 0 0 20px;
    color: #fff;
    font-family: "Oddval", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -2px;
}

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

.article-gallery figure {
    margin: 0;
}

.article-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    object-fit: cover;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    list-style: none;
}

.article-tags li {
    padding: 6px 8px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 16px;
}

.article-author_panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 24px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    background: #1b1d1c;
}

.article-author__photo_large,
.article-author__initial_large {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
}

.article-author_panel .article-author__copy strong {
    font-size: 18px;
    line-height: 24px;
}

.article-author_panel .article-author__copy span {
    font-size: 14px;
    line-height: 20px;
}

.article-author_panel .article-author__copy b {
    color: rgba(255, 255, 255, 0.64);
    font-weight: 500;
}

.article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px;
    border-radius: 8px;
    background: linear-gradient(136deg, #12473d, #132824);
}

.article-cta__copy {
    display: flex;
    max-width: 520px;
    flex-direction: column;
    gap: 8px;
}

.article-cta h2 {
    margin: 0;
    color: #fff;
    font-family: "Oddval", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -2px;
}

.article-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 20px;
}

.article-cta__button {
    min-height: 48px;
    flex: 0 0 auto;
    padding: 16px 24px;
    border: 0;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 16px;
}

.article-back {
    display: inline-flex;
    margin-top: 32px;
}

@media (max-width: 1120px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card_featured {
        grid-column: auto;
    }

    .article-card_featured .article-card__media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .articles-hero {
        gap: 24px;
        padding: 20px 20px 32px;
    }

    .articles-hero__title,
    .article-hero__title {
        font-size: 40px;
        line-height: 44px;
    }

    .articles-hero__text {
        font-size: 14px;
        line-height: 20px;
    }

    .articles-catalog {
        padding: 40px 20px 48px;
    }

    .articles-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .articles-filters {
        width: calc(100% + 20px);
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-right: 20px;
        scrollbar-width: none;
    }

    .articles-filters::-webkit-scrollbar {
        display: none;
    }

    .articles-filter {
        flex: 0 0 auto;
    }

    .article-card__body {
        padding: 16px;
    }

    .article-card_featured .article-card__title,
    .article-card__title {
        font-size: 24px;
        line-height: 28px;
    }

    .article-hero {
        padding: 20px 20px 0;
    }

    .article-hero__breadcrumbs {
        margin-bottom: 24px;
    }

    .article-hero__meta {
        gap: 8px;
        margin-bottom: 12px;
    }

    .article-hero__meta > *:not(:last-child)::after {
        margin-left: 8px;
    }

    .article-hero__lead {
        margin-top: 16px;
        font-size: 16px;
        line-height: 24px;
    }

    .article-author_compact {
        margin-top: 20px;
    }

    .article-cover {
        margin-top: 24px;
    }

    .article-cover img {
        aspect-ratio: 4 / 3;
    }

    .article-layout {
        padding: 24px 20px 48px;
    }

    .article-content {
        font-size: 16px;
        line-height: 24px;
    }

    .article-content h2 {
        margin-top: 40px;
        font-size: 28px;
        line-height: 32px;
    }

    .article-content h3 {
        margin-top: 32px;
        font-size: 22px;
        line-height: 28px;
    }

    .article-content blockquote {
        padding: 20px;
        font-size: 18px;
        line-height: 28px;
    }

    .article-gallery__grid {
        grid-template-columns: 1fr;
    }

    .article-author_panel {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 20px;
    }

    .article-author__link {
        grid-column: 1 / -1;
    }

    .article-cta {
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
        padding: 24px 20px;
    }

    .article-cta__button {
        width: 100%;
    }
}
