:root {
    --color-brand: #3e084c;
    --color-cta: #f0c414;
    --text-muted: #777;
    --border: #ddd;
    --font-main: Tahoma, Geneva, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #222;
    background-color: #fafafa;
    margin: 0;
    padding: 0;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

.cat-main {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-hero {
    background-color: var(--color-brand);
    color: #fff;
    padding: 64px 0 52px;
}

.cat-hero h1,
.cat-hero h2,
.cat-hero h3,
.cat-hero h4,
.cat-hero h5,
.cat-hero h6,
.cat-hero p,
.cat-hero li,
.cat-hero span,
.cat-hero strong {
    color: #fff;
}

.cat-hero__inner {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 48px;
    flex-wrap: wrap;
}

.cat-hero__content {
    flex: 1 1 400px;
    min-width: 0;
}

.cat-hero__title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    margin: 0 0 20px;
}

.cat-hero__sub {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: #e8d5f0;
    margin: 0;
    max-width: 580px;
}

.cat-hero__stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 8px;
}

.cat-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
}

.cat-hero__stat-num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-cta);
}

.cat-hero__stat-label {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #cbaad6;
    text-align: center;
}

.cat-articles {
    background-color: #fff;
    padding: 56px 0 48px;
}

.cat-articles__inner {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.cat-articles__header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.cat-articles__title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-brand);
    margin: 0;
}

.cat-articles__count {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cat-card {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.cat-card:hover {
    box-shadow: 0 4px 16px rgba(62, 8, 76, 0.12);
}

.cat-card__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #ede0f2;
}

.cat-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-card__body {
    padding: 20px;
}

.cat-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 10px;
    color: #222;
}

.cat-card__title a {
    color: var(--color-brand);
    text-decoration: none;
    transition: color 0.2s;
}

.cat-card__title a:hover {
    color: #6b1280;
}

.cat-card__desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #555;
    margin: 0 0 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.cat-card__date {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.cat-empty {
    padding: 80px 0;
    background-color: #fff;
}

.cat-empty__inner {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
}

.cat-empty__inner svg {
    display: block;
    margin: 0 auto 20px;
}

.cat-empty__inner p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

.cat-slider {
    background-color: #f5eefa;
    padding: 56px 0;
}

.cat-slider__inner {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.cat-slider__title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-brand);
    margin: 0 0 28px;
}

.cat-slider__track-wrap {
    overflow: hidden;
    width: 100%;
}

.cat-slider__track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s;
}

.cat-slide {
    flex: 0 0 calc(33.333% - 14px);
    background-color: #fff;
    border: 1px solid #e0ccea;
    border-radius: 8px;
    padding: 28px 24px;
    min-width: 0;
}

.cat-slide__icon {
    margin-bottom: 14px;
}

.cat-slide__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-brand);
    margin-bottom: 8px;
}

.cat-slide__text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.cat-slider__controls {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.cat-slider__btn {
    background-color: var(--color-brand);
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cat-slider__btn:hover {
    background-color: #6b1280;
}

.cat-slider__btn:focus {
    outline: 2px solid var(--color-cta);
    outline-offset: 2px;
}

.cat-compare {
    background-color: #fff;
    padding: 56px 0;
}

.cat-compare__inner {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.cat-compare__title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-brand);
    margin: 0 0 14px;
}

.cat-compare__intro {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 24px;
    max-width: 720px;
}

.cat-compare__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.cat-table thead tr {
    background-color: var(--color-brand);
}

.cat-table thead th {
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    line-height: 1.6;
    white-space: nowrap;
}

.cat-table tbody tr {
    border-bottom: 1px solid #ede0f2;
    transition: background-color 0.2s;
}

.cat-table tbody tr:last-child {
    border-bottom: none;
}

.cat-table tbody tr:hover {
    background-color: #f9f1fc;
}

.cat-table td {
    padding: 12px 16px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    vertical-align: top;
}

.cat-table td strong {
    color: var(--color-brand);
    font-weight: 700;
}

.cat-macro {
    background-color: #f5eefa;
    padding: 56px 0;
}

.cat-macro__inner {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.cat-macro__title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--color-brand);
    margin: 0 0 14px;
}

.cat-macro__intro {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 24px;
    max-width: 720px;
}

.cat-macro__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cat-disclaimer {
    background-color: #fff8e6;
    border-top: 3px solid var(--color-cta);
    padding: 28px 0;
}

.cat-disclaimer__inner {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #555;
}

.cat-disclaimer__inner svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #c08a00;
}

.cat-disclaimer__inner p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .cat-hero {
        padding: 40px 0 36px;
    }

    .cat-hero__inner {
        flex-direction: column;
        gap: 28px;
        width: 92%;
    }

    .cat-hero__title {
        font-size: 2rem;
    }

    .cat-hero__sub {
        font-size: 15px;
    }

    .cat-hero__stats {
        gap: 20px;
    }

    .cat-hero__stat-num {
        font-size: 1.6rem;
    }

    .cat-articles {
        padding: 36px 0 32px;
    }

    .cat-articles__inner {
        width: 92%;
    }

    .cat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cat-slider {
        padding: 36px 0;
    }

    .cat-slider__inner {
        width: 92%;
    }

    .cat-slider__title {
        font-size: 1.2rem;
    }

    .cat-slide {
        flex: 0 0 calc(80% - 10px);
    }

    .cat-compare {
        padding: 36px 0;
    }

    .cat-compare__inner {
        width: 92%;
    }

    .cat-compare__title {
        font-size: 1.2rem;
    }

    .cat-macro {
        padding: 36px 0;
    }

    .cat-macro__inner {
        width: 92%;
    }

    .cat-macro__title {
        font-size: 1.2rem;
    }

    .cat-disclaimer__inner {
        width: 92%;
        flex-direction: column;
        gap: 10px;
    }

    .cat-articles__header {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .cat-hero__title {
        font-size: 1.6rem;
    }

    .cat-hero__sub {
        font-size: 14px;
    }

    .cat-card__body {
        padding: 16px;
    }

    .cat-slide {
        flex: 0 0 calc(92% - 10px);
        padding: 20px 18px;
    }

    .cat-table {
        font-size: 13px;
    }

    .cat-table th,
    .cat-table td {
        padding: 10px 12px;
    }

    .cat-slider__btn {
        width: 36px;
        height: 36px;
    }
}