/* Статья. Не влияет на главную. */
.article-page {
    padding-top: 30px;
    padding-bottom: 110px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    color: #c8bbbd;
    font-size: 14px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 900px) minmax(220px, 300px);
    gap: 50px;
    align-items: start;
}

.article-content {
    min-width: 0;
}

.article-kicker {
    margin: 0 0 16px;
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.article-content h1 {
    margin: 0 0 24px;
    font: 400 clamp(22px, 3vw, 33px)/1.5 "Press Start 2P", monospace;
}

.article-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    color: #d4c7c9;
    font-size: 13px;
}

.article-meta img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.article-hero {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 13px;
    margin-bottom: 28px;
}

.article-content p,
.article-content li {
    font-size: 18px;
    line-height: 1.75;
}

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

.article-content .article-lead {
    font-size: 21px;
    line-height: 1.55;
}

.article-content h2 {
    margin: 48px 0 18px;
    font-size: 25px;
    line-height: 1.35;
}

.article-content ul {
    padding-left: 24px;
    margin-bottom: 30px;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 18px 24px;
    border-left: 4px solid var(--red);
    background: var(--card);
    border-radius: 0 10px 10px 0;
    font-size: 19px;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    margin-top: 28px;
    color: var(--red);
    font-weight: 700;
}

.article-sidebar {
    position: sticky;
    top: 20px;
}

.article-sidebar img {
    width: 100%;
    border-radius: 11px;
}

.article-sidebar small {
    display: block;
    margin-top: 8px;
    color: #bbb;
}

@media (max-width: 850px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        max-width: 300px;
    }
}

@media (max-width: 560px) {
    .article-page {
        padding-bottom: 70px;
    }

    .article-content h1 {
        font-size: 20px;
    }

    .article-content p,
    .article-content li {
        font-size: 16px;
    }

    .article-content .article-lead {
        font-size: 18px;
    }
}

/* Таблицы внутри статей */

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

article th,
article td {
    border: 1px solid #555;
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}

article th {
    background: #383335;
    font-weight: 700;
}

article tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 600px) {
    article th,
    article td {
        padding: 10px;
        font-size: 13px;
    }
}


/* Обложка и текстовый блок статьи */

.article-content > .article-hero {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    margin-bottom: 0;
}

/* Текстовая подложка */
.article-text-panel {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 78%;
    margin: 0 auto;
    padding: 22px 24px 28px;
    background: #302a2d;
    border-radius: 10px;
}

/* Наложение подложки на нижнюю часть обложки */
.article-content > .article-hero + .article-text-panel {
    margin-top: -70px;
}

/* Заголовок внутри подложки */
.article-text-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.35;
}

/* Изображения в тексте */
.article-text-panel .article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Планшеты и телефоны */
@media (max-width: 850px) {
    .article-text-panel {
        width: calc(100% - 16px);
        padding: 16px;
    }

    .article-content > .article-hero + .article-text-panel {
        margin-top: -36px;
    }
}

@media (max-width: 560px) {
    .article-content > .article-hero {
        aspect-ratio: 3 / 2;
    }

    .article-text-panel {
        padding: 12px;
    }

    .article-text-panel h1 {
        font-size: 16px;
        line-height: 1.35;
    }
}

/* Обновления оформления статьи */

/* Подложка с непрозрачностью 90% */
.article-text-panel {
    background: rgba(48, 42, 45, 0.9);
}

/* Закругление обложки и картинок внутри статьи */
.article-content .article-hero,
.article-content .article-body img {
    border-radius: 8px;
}

/* Подпись под рекламным баннером */
.article-sidebar small {
    text-align: center;
}

/* Горизонтальная прокрутка только таблиц */
@media (max-width: 600px) {
    .article-body {
        min-width: 0;
        overflow-x: visible;
    }

    .article-body table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-body th,
    .article-body td {
        min-width: 120px;
    }
}

/* Центрирование рекламного баннера на мобильных */
@media (max-width: 850px) {
    .article-sidebar {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 300px;
    }
}