:root {
    --color-brand: #92400e;
    --color-cta: #16a34a;
    --font-main: Bahnschrift, 'Arial Black', 'Helvetica Neue', sans-serif;
    --text-muted: #777;
    --border: #ccc;
    --text-dark: #222;
    --bg-light: #faf7f4;
    --bg-card: #fff;
}

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

html, body {
    overflow-x: hidden;
}

* {
    font-family: var(--font-main);
    line-height: 1.6;
    font-weight: 400;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

body {
    font-size: 16px;
    color: var(--text-dark);
    background: var(--bg-light);
}

.cat-main {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 0 60px;
}

.cat-hero {
    position: relative;
    background: var(--color-brand);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 48px;
}

.cat-hero__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cat-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
}

.cat-hero__content {
    position: relative;
    z-index: 1;
    padding: 64px 48px;
    max-width: 760px;
}

.cat-hero__title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.cat-hero__title,
.cat-hero__sub,
.cat-hero__count {
    color: #fff;
}

.cat-hero__sub {
    font-size: 1.1rem;
    margin: 0 0 20px;
    color: #fff;
}

.cat-hero__count {
    font-size: 0.95rem;
    color: #e5d5c5;
}

.cat-articles {
    margin-bottom: 56px;
}

.cat-articles__container {
    width: 100%;
}

.cat-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cat-empty svg {
    margin: 0 auto 20px;
}

.cat-empty p {
    font-size: 1rem;
    color: var(--text-muted);
}

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

.cat-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cat-card__img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e0d5ca;
}

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

.cat-card__body {
    padding: 20px;
}

.cat-card__date {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.cat-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-dark);
}

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

.cat-card__title a:hover {
    text-decoration: underline;
}

.cat-card__desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.cat-highlight {
    background: var(--color-brand);
    border-radius: 8px;
    margin-bottom: 56px;
    overflow: hidden;
}

.cat-highlight__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.cat-highlight__text {
    padding: 48px 40px;
    color: #fff;
}

.cat-highlight__text h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

.cat-highlight__text p {
    color: #f0e6da;
    margin: 0 0 14px;
    font-size: 1rem;
}

.cat-highlight__text p:last-child {
    margin-bottom: 0;
}

.cat-highlight__visual {
    overflow: hidden;
}

.cat-highlight__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-metrics {
    margin-bottom: 56px;
}

.cat-metrics__container {
    width: 100%;
}

.cat-metrics__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 8px;
}

.cat-metrics__disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 32px;
    font-style: italic;
}

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

.cat-circle {
    background: var(--bg-card);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cat-circle svg {
    margin: 0 auto 16px;
}

.cat-circle p {
    font-size: 0.88rem;
    color: #555;
    margin: 0;
}

.cat-table-section {
    margin-bottom: 56px;
}

.cat-table-section__container {
    width: 100%;
}

.cat-table-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 8px;
}

.cat-table-section__note {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin: 0 0 20px;
}

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

.cat-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 0.95rem;
}

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

.cat-table thead th {
    color: #fff;
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    white-space: nowrap;
}

.cat-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

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

.cat-table tbody tr:nth-child(even) {
    background: #fdf9f5;
}

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

.cat-table td {
    padding: 12px 18px;
    color: var(--text-dark);
    vertical-align: top;
}

.cat-calculator {
    background: var(--bg-card);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    overflow: hidden;
}

.cat-calculator__container {
    padding: 40px;
}

.cat-calculator__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 8px;
}

.cat-calculator__sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 28px;
}

.cat-calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
}

.cat-calc-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-calc-row label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cat-calc-row input,
.cat-calc-row select {
    font-size: 16px;
    padding: 10px 14px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #faf7f4;
    color: var(--text-dark);
    width: 100%;
    transition: border-color 0.2s;
}

.cat-calc-row input:focus,
.cat-calc-row select:focus {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    border-color: var(--color-brand);
}

.cat-calc-btn {
    background: var(--color-cta);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.cat-calc-btn:hover {
    background: #15803d;
}

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

.cat-calc-result {
    background: #faf7f4;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    min-height: 60px;
}

.cat-calc-result__placeholder {
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.cat-calc-result__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cat-calc-result__table th {
    text-align: left;
    font-weight: 700;
    color: var(--color-brand);
    padding: 6px 12px 6px 0;
    border-bottom: 1px solid #ddd;
}

.cat-calc-result__table td {
    padding: 8px 12px 8px 0;
    color: var(--text-dark);
    border-bottom: 1px solid #e8e8e8;
}

.cat-calc-result__table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 900px) {
    .cat-highlight__inner {
        grid-template-columns: 1fr;
    }
    .cat-highlight__visual {
        height: 260px;
    }
    .cat-highlight__visual img {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .cat-main {
        width: 95%;
        padding: 20px 0 40px;
    }

    .cat-hero {
        margin-bottom: 32px;
    }

    .cat-hero__content {
        padding: 40px 24px;
    }

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

    .cat-hero__sub {
        font-size: 1rem;
    }

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

    .cat-metrics__circles {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cat-calc-form {
        grid-template-columns: 1fr;
    }

    .cat-calc-btn {
        width: 100%;
    }

    .cat-calculator__container {
        padding: 24px 20px;
    }

    .cat-highlight__text {
        padding: 32px 24px;
    }

    .cat-highlight__text h2 {
        font-size: 1.4rem;
    }

    .cat-table {
        font-size: 0.85rem;
    }

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

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

    .cat-metrics__circles {
        grid-template-columns: 1fr;
    }

    .cat-circle {
        padding: 20px 16px;
    }

    .cat-table-section h2,
    .cat-metrics__title,
    .cat-calculator__title {
        font-size: 1.3rem;
    }
}