.lnp-category-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #fff;
    color: var(--lnp-text, #101624);
    font-family: var(--lnp-font, Montserrat, Inter, Arial, sans-serif);
}

.lnp-category-page *,
.lnp-category-page *::before,
.lnp-category-page *::after {
    box-sizing: border-box;
}

.lnp-category-main {
    width: min(var(--lnp-container, 1280px), calc(100% - 40px));
    margin: 0 auto 56px;
    display: grid;
    gap: 28px;
}

.lnp-category-title {
    display: grid;
    gap: 14px;
}

.lnp-category-title h1 {
    margin: 0;
    color: var(--lnp-primary-dark);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 950;
    line-height: 1;
}

.lnp-category-title div {
    max-width: 760px;
    color: var(--lnp-muted);
    font-size: 19px;
    line-height: 1.55;
}

.lnp-category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
    gap: 16px;
}

.lnp-category-hero a {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #101624;
    color: #fff;
    text-decoration: none;
    box-shadow: var(--lnp-shadow-md);
}

.lnp-category-hero .lnp-home-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .22s ease;
}

.lnp-category-page .lnp-home-img--fallback {
    background:
        radial-gradient(circle at 16% 16%, rgba(64, 78, 175, .55), transparent 30%),
        radial-gradient(circle at 84% 22%, rgba(237, 52, 40, .42), transparent 28%),
        linear-gradient(135deg, #202b5d, #07111f);
}

.lnp-category-hero a > span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 22, .04), rgba(5, 10, 22, .82));
}

.lnp-category-hero strong,
.lnp-category-hero em {
    position: absolute;
    right: 24px;
    left: 24px;
    z-index: 2;
}

.lnp-category-hero strong {
    bottom: 66px;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 950;
    line-height: 1.04;
}

.lnp-category-hero em {
    bottom: 24px;
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    font-style: normal;
    line-height: 1.45;
}

.lnp-category-hero__main {
    min-height: 480px;
}

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

.lnp-category-hero__side a {
    min-height: 232px;
}

.lnp-category-hero__side strong {
    bottom: 18px;
    font-size: 20px;
}

.lnp-category-hero__side em {
    display: none;
}

.lnp-category-hero a:hover .lnp-home-img {
    transform: scale(1.05);
}

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

.lnp-category-list {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.lnp-category-list h2,
.lnp-category-sidebar h2 {
    margin: 0;
    color: var(--lnp-primary-dark);
    font-size: 16px;
    font-weight: 950;
    text-transform: uppercase;
}

.lnp-category-item {
    border-bottom: 1px solid var(--lnp-border);
    padding-bottom: 18px;
}

.lnp-category-item a {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    color: inherit;
    text-decoration: none;
}

.lnp-category-item .lnp-home-img {
    width: 260px;
    height: 170px;
    border-radius: 12px;
    object-fit: cover;
}

.lnp-category-item a > span {
    display: grid;
    align-content: center;
    gap: 10px;
    min-width: 0;
}

.lnp-category-item__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lnp-category-item strong {
    color: var(--lnp-text);
    font-size: 26px;
    font-weight: 920;
    line-height: 1.12;
}

.lnp-category-item em {
    color: var(--lnp-muted);
    font-size: 16px;
    font-style: normal;
    line-height: 1.45;
}

.lnp-category-item small {
    color: var(--lnp-muted);
    font-size: 13px;
    font-weight: 800;
}

.lnp-category-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 18px;
}

.lnp-category-side-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.lnp-category-side-item .lnp-home-img {
    width: 96px;
    height: 70px;
    border-radius: 9px;
    object-fit: cover;
}

.lnp-category-side-item strong {
    color: var(--lnp-text);
    font-size: 15px;
    font-weight: 880;
    line-height: 1.2;
}

.lnp-category-item a,
.lnp-category-item a:hover,
.lnp-category-item a:focus,
.lnp-category-item a:active,
.lnp-category-item a:visited,
.lnp-category-side-item,
.lnp-category-side-item:hover,
.lnp-category-side-item:focus,
.lnp-category-side-item:active,
.lnp-category-side-item:visited {
    color: var(--lnp-text);
    text-decoration: none;
}

.lnp-category-item a:hover strong,
.lnp-category-item a:focus strong,
.lnp-category-item a:active strong,
.lnp-category-side-item:hover strong,
.lnp-category-side-item:focus strong,
.lnp-category-side-item:active strong {
    color: var(--lnp-primary);
}

.lnp-category-item a:hover em,
.lnp-category-item a:focus em,
.lnp-category-item a:active em,
.lnp-category-item a:hover small,
.lnp-category-item a:focus small,
.lnp-category-item a:active small,
.lnp-category-side-item:hover em,
.lnp-category-side-item:focus em,
.lnp-category-side-item:active em {
    color: var(--lnp-muted);
    text-decoration: none;
}

.lnp-category-item a:focus-visible,
.lnp-category-side-item:focus-visible,
.lnp-category-hero a:focus-visible {
    outline: 3px solid rgba(64, 78, 175, .45);
    outline-offset: 4px;
}

.lnp-category-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lnp-category-areas h2 {
    flex: 0 0 100%;
}

.lnp-category-areas a {
    border-radius: 999px;
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.lnp-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.lnp-pagination a,
.lnp-pagination span {
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid var(--lnp-border);
    border-radius: 10px;
    color: var(--lnp-primary);
    padding: 0 12px;
    font-weight: 900;
    text-decoration: none;
}

.lnp-pagination .current {
    background: var(--lnp-primary);
    color: #fff;
}

.lnp-category-empty {
    border-radius: 14px;
    background: var(--lnp-surface-soft);
    padding: 28px;
}

.lnp-category-empty p {
    margin-top: 0;
    color: var(--lnp-muted);
    font-size: 18px;
}

.lnp-category-empty a {
    color: var(--lnp-primary);
    font-weight: 900;
}

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

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

@media (max-width: 720px) {
    .lnp-category-main {
        width: min(100% - 28px, var(--lnp-container, 1280px));
    }

    .lnp-category-hero__main {
        min-height: 390px;
    }

    .lnp-category-hero__side,
    .lnp-category-sidebar {
        grid-template-columns: 1fr;
    }

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

    .lnp-category-item .lnp-home-img {
        width: 100%;
        height: 220px;
    }

    .lnp-category-item strong {
        font-size: 24px;
    }
}

/* 0.6.1 visual unification */
.lnp-category-page {
    background: #fff;
}

.lnp-category-main {
    width: min(var(--lnp-container, 1240px), calc(100% - var(--lnp-gutter, 40px)));
    gap: 42px;
    margin: 0 auto 72px;
}

.lnp-category-main > .lnp-ad-slot.is-placeholder {
    display: none;
}

.lnp-category-title {
    gap: 16px;
}

.lnp-category-title h1 {
    font-size: clamp(38px, 4vw, 52px);
    line-height: 1.05;
}

.lnp-category-title div {
    max-width: 780px;
    font-size: 18px;
}

.lnp-category-hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr);
    gap: 22px;
}

.lnp-category-hero a {
    display: block;
    border-radius: var(--lnp-radius-lg, 16px);
    box-shadow: var(--lnp-shadow-md, 0 10px 30px rgba(20, 30, 60, .10));
}

.lnp-category-hero a > .lnp-home-img {
    position: absolute;
    inset: 0;
    height: 100%;
}

.lnp-category-hero a > span {
    background: linear-gradient(180deg, rgba(5, 10, 22, .04) 12%, rgba(5, 10, 22, .22) 46%, rgba(5, 10, 22, .88) 100%);
}

.lnp-category-hero__main {
    height: clamp(500px, 38vw, 560px);
    min-height: 0;
}

.lnp-category-hero strong {
    font-size: clamp(34px, 3.2vw, 44px);
}

.lnp-category-hero__side {
    gap: 22px;
}

.lnp-category-hero__side a {
    height: clamp(250px, 20vw, 280px);
    min-height: 0;
}

.lnp-category-hero__side strong {
    font-size: clamp(18px, 1.55vw, 22px);
}

.lnp-category-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 48px;
}

.lnp-category-list {
    gap: 22px;
}

.lnp-category-list h2,
.lnp-category-sidebar h2 {
    font-size: 20px;
}

.lnp-category-item {
    border-bottom-color: rgba(64, 78, 175, .12);
    padding-bottom: 24px;
}

.lnp-category-item a {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
}

.lnp-category-item .lnp-home-img {
    width: 300px;
    height: 190px;
    border-radius: var(--lnp-radius-md, 10px);
}

.lnp-category-item strong {
    font-size: clamp(24px, 2vw, 29px);
}

.lnp-category-sidebar {
    top: 88px;
    gap: 22px;
}

.lnp-side-box {
    border: 1px solid rgba(64, 78, 175, .10);
    border-radius: var(--lnp-radius-lg, 16px);
    background: #fff;
    padding: 18px;
    box-shadow: 0 8px 26px rgba(20, 30, 60, .07);
}

.lnp-category-side-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    padding: 10px 0;
}

.lnp-category-side-item + .lnp-category-side-item {
    border-top: 1px solid rgba(64, 78, 175, .10);
}

.lnp-category-side-item .lnp-home-img {
    width: 112px;
    height: 78px;
}

.lnp-category-side-item strong {
    font-size: 16px;
}

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

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

    .lnp-category-hero__main {
        height: 480px;
    }
}

@media (max-width: 720px) {
    .lnp-category-main {
        width: min(100% - 28px, var(--lnp-container, 1240px));
        gap: 34px;
    }

    .lnp-category-hero__main {
        height: 430px;
        min-height: 0;
    }

    .lnp-category-hero__side,
    .lnp-category-sidebar {
        grid-template-columns: 1fr;
    }

    .lnp-category-hero__side a {
        height: 260px;
    }

    .lnp-category-hero strong {
        bottom: 28px;
        font-size: clamp(28px, 8vw, 34px);
    }

    .lnp-category-hero em {
        display: none;
    }

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

    .lnp-category-item .lnp-home-img {
        width: 100%;
        height: 220px;
    }
}
