.category-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #eee;
    padding: 28px 0 55px;
}

.category-shell {
    max-width: 1520px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    gap: 22px;
    padding: 0 16px;
}

.category-side-ad {
    min-height: 600px;
}

.category-ad-box {
    width: 160px;
    min-height: 600px;
    background: #fff;
    border: 1px solid #cfcfcf;
    color: #bcbcbc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 38px 0;
    position: sticky;
    top: 90px;
}

.category-ad-box .ad-name {
    font-size: 18px;
    color: #d1d1d1;
}

.category-ad-box .ad-size {
    font-size: 42px;
    line-height: 1.25;
    font-weight: 900;
    color: #777;
    text-align: center;
}

.category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 22px;
    align-items: start;
}

.category-main {
    min-width: 0;
}

.category-header {
    background: #fff;
    padding: 28px 32px;
    margin-bottom: 22px;
    border-left: 5px solid #d71920;
}

.category-header h1 {
    margin: 0 0 8px;
    font-size: 38px;
    font-weight: 900;
    color: #111;
    letter-spacing: .4px;
}

.category-header p {
    margin: 0;
    color: #666;
    font-size: 17px;
}

.category-headline {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    background: #111;
    color: #fff;
    text-decoration: none;
    margin-bottom: 22px;
    overflow: hidden;
}

.category-headline-image {
    min-height: 360px;
    background-size: cover;
    background-position: center;
}

.category-headline-content {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #151515, #2a2a2a);
}

.category-label {
    display: inline-flex;
    width: fit-content;
    background: #d71920;
    color: #fff;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.category-headline h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 34px;
    line-height: 1.16;
    font-weight: 900;
}

.category-headline p {
    margin: 0;
    color: #ddd;
    font-size: 18px;
    line-height: 1.45;
}

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

.category-news-card {
    background: #fff;
    color: #111;
    text-decoration: none;
    border: 1px solid #e3e3e3;
    transition: .2s ease;
    overflow: hidden;
}

.category-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(0,0,0,.08);
}

.category-news-card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
}

.category-news-card-body {
    padding: 17px;
    min-height: 190px;
    border-bottom: 4px solid #d71920;
}

.category-news-card span {
    display: block;
    color: #d71920;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.category-news-card h3 {
    margin: 0 0 10px;
    color: #111;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 900;
}

.category-news-card p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.45;
}

.category-empty {
    background: #fff;
    padding: 30px;
    color: #666;
}

.category-pagination {
    margin-top: 26px;
    background: #fff;
    padding: 18px;
}

/* Sidebar */
.category-sidebar-block {
    background: #fff;
    margin-bottom: 22px;
    border: 1px solid #d8d8d8;
}

.category-sidebar-head {
    height: 56px;
    background: #d5d5d5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-left: 4px solid #d71920;
}

.category-sidebar-head h3 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 900;
}

.category-sidebar-head a {
    background: #666;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
}

.category-sidebar-person {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 15px 16px;
    border-bottom: 1px solid #eee;
    color: #111;
    text-decoration: none;
}

.category-sidebar-person img,
.category-avatar-placeholder {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #eee;
}

.category-avatar-placeholder {
    background: #d71920;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.category-sidebar-person strong {
    display: block;
    color: #d71920;
    margin-bottom: 5px;
    font-size: 15px;
}

.category-sidebar-person span {
    display: block;
    color: #111;
    font-size: 14px;
    line-height: 1.35;
}

.category-sidebar-list {
    padding: 12px 18px 16px;
}

.category-sidebar-item {
    display: block;
    color: #111;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    line-height: 1.35;
}

.category-sidebar-item::before {
    content: "›";
    color: #d71920;
    font-size: 28px;
    line-height: 0;
    margin-right: 6px;
    vertical-align: -3px;
}

.category-sidebar-item:hover {
    color: #d71920;
}

@media (max-width: 1350px) {
    .category-shell {
        grid-template-columns: minmax(0, 1fr);
        max-width: 1180px;
    }

    .category-side-ad {
        display: none;
    }

    .category-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
    }
}

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

    .category-headline {
        grid-template-columns: 1fr;
    }

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

    .category-headline-image {
        min-height: 260px;
    }
}

@media (max-width: 700px) {
    .category-header {
        padding: 22px;
    }

    .category-header h1 {
        font-size: 30px;
    }

    .category-headline-content {
        padding: 24px;
    }

    .category-headline h2 {
        font-size: 26px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}