:root {
    --color-brand: #2c1810;
    --color-cta: #00B894;
}

.cat-hero {
    background-color: #2c1810;
    color: #fff;
    padding: 80px 24px 72px;
    text-align: center;
}

.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 dt,
.cat-hero dd,
.cat-hero span,
.cat-hero label,
.cat-hero strong,
.cat-hero em,
.cat-hero blockquote,
.cat-hero a {
    color: #fff;
}

.cat-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cat-hero-icon {
    display: block;
    margin: 0 auto 24px;
}

.cat-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 20px;
}

.cat-hero-sub {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 36px;
    color: #ccc;
}

.cat-hero-cta {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    background-color: #00B894;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.cat-hero-cta:hover {
    background-color: #009B7D;
}

.cat-hero-cta:focus {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.cat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cat-articles {
    background-color: #f8f6f3;
    padding: 64px 0;
}

.cat-articles > .cat-container > h2,
.cat-timeline > .cat-container > h2,
.cat-calculator > .cat-container > h2,
.cat-data > .cat-container > h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c1810;
    line-height: 1.6;
    margin: 0 0 16px;
}

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

.cat-article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.cat-article-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.14);
}

.cat-article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cat-article-body {
    padding: 20px;
}

.cat-article-body h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 8px;
}

.cat-article-body h3 a {
    color: #2c1810;
    text-decoration: none;
    transition: color 0.2s;
}

.cat-article-body h3 a:hover {
    text-decoration: underline;
}

.cat-article-desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 12px;
}

.cat-article-date {
    font-size: 0.8125rem;
    color: #888;
    line-height: 1.6;
}

.cat-no-articles {
    text-align: center;
    padding: 48px 24px;
    color: #666;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.cat-editorial {
    background-color: #fff;
    padding: 64px 0;
}

.cat-editorial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.cat-editorial-main h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c1810;
    line-height: 1.6;
    margin: 0 0 24px;
}

.cat-editorial-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #222;
    margin: 0 0 16px;
}

.cat-editorial-lead::first-letter {
    font-size: 3.25rem;
    font-weight: 700;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 6px;
    color: #2c1810;
}

.cat-editorial-main > p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 16px;
}

.cat-editorial-main > p:last-child {
    margin-bottom: 0;
}

.cat-editorial-aside {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid #2c1810;
}

.cat-aside-block {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.cat-aside-block:last-child {
    border-bottom: none;
}

.cat-aside-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c1810;
    line-height: 1.6;
}

.cat-aside-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
}

.cat-timeline {
    background-color: #f8f6f3;
    padding: 64px 0;
}

.cat-timeline-intro {
    font-size: 1.0625rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 8px;
    max-width: 700px;
}

.cat-timeline-list {
    position: relative;
    padding-left: 48px;
    max-width: 800px;
    margin: 32px 0 0;
}

.cat-timeline-list::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #2c1810;
}

.cat-timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.cat-timeline-item:last-child {
    margin-bottom: 0;
}

.cat-timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 24px;
    width: 14px;
    height: 14px;
    background-color: #2c1810;
    border-radius: 50%;
    border: 3px solid #f8f6f3;
    z-index: 1;
}

.cat-timeline-content {
    background-color: #fff;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.cat-timeline-content:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.cat-timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c1810;
    line-height: 1.6;
    margin: 0 0 12px;
}

.cat-timeline-content ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.cat-timeline-content li {
    font-size: 0.9375rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 6px;
}

.cat-timeline-content li:last-child {
    margin-bottom: 0;
}

.cat-calculator {
    background-color: #fff;
    padding: 64px 0;
}

.cat-calc-intro {
    font-size: 1.0625rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 700px;
}

.cat-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.cat-calc-form {
    background-color: #f8f6f3;
    padding: 28px;
    border-radius: 8px;
}

.cat-calc-field {
    margin-bottom: 20px;
}

.cat-calc-field:last-of-type {
    margin-bottom: 24px;
}

.cat-calc-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    margin-bottom: 6px;
}

.cat-calc-field select,
.cat-calc-field input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

.cat-calc-field select:focus,
.cat-calc-field input:focus {
    outline: 2px solid #2c1810;
    outline-offset: 1px;
    border-color: #2c1810;
}

.cat-calc-btn {
    display: block;
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    background-color: #00B894;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 1.6;
}

.cat-calc-btn:hover {
    background-color: #009B7D;
}

.cat-calc-btn:focus {
    outline: 2px solid #2c1810;
    outline-offset: 2px;
}

.cat-calc-result {
    background-color: #f8f6f3;
    padding: 28px;
    border-radius: 8px;
}

.cat-calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}

.cat-calc-result-item:last-of-type {
    border-bottom: none;
}

.cat-calc-result-label {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.6;
}

.cat-calc-result-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #2c1810;
    line-height: 1.6;
}

.cat-calc-disclaimer {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.6;
    margin: 20px 0 0;
}

.cat-data {
    background-color: #f8f6f3;
    padding: 64px 0;
}

.cat-data-intro {
    font-size: 1.0625rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 8px;
    max-width: 700px;
}

.cat-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

.cat-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.cat-data-table thead {
    background-color: #2c1810;
}

.cat-data-table thead th {
    color: #fff;
    font-weight: 700;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cat-data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    font-size: 0.9375rem;
    color: #333;
    line-height: 1.6;
}

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

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

.cat-data-note {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.6;
    margin: 8px 0 0;
}

@media (max-width: 768px) {
    .cat-hero {
        padding: 56px 20px 48px;
    }

    .cat-hero h1 {
        font-size: 1.75rem;
    }

    .cat-hero-sub {
        font-size: 1rem;
    }

    .cat-articles,
    .cat-editorial,
    .cat-timeline,
    .cat-calculator,
    .cat-data {
        padding: 48px 0;
    }

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

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

    .cat-editorial-aside {
        flex-direction: row;
        gap: 0;
    }

    .cat-aside-block {
        flex: 1;
        padding: 16px 12px 16px 0;
    }

    .cat-aside-block:last-child {
        padding-right: 0;
    }

    .cat-timeline-list {
        padding-left: 36px;
    }

    .cat-timeline-list::before {
        left: 10px;
    }

    .cat-timeline-item::before {
        left: -32px;
        width: 12px;
        height: 12px;
        top: 20px;
    }

    .cat-timeline-content {
        padding: 20px;
    }

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

    .cat-editorial-lead::first-letter {
        font-size: 2.5rem;
    }
}

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

    .cat-hero h1 {
        font-size: 1.5rem;
    }

    .cat-hero-sub {
        font-size: 0.9375rem;
    }

    .cat-hero-cta {
        padding: 12px 28px;
    }

    .cat-container {
        padding: 0 16px;
    }

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

    .cat-article-card img {
        height: 180px;
    }

    .cat-editorial-aside {
        flex-direction: column;
    }

    .cat-aside-block {
        padding: 16px 0;
    }

    .cat-aside-number {
        font-size: 2rem;
    }

    .cat-timeline-list {
        padding-left: 32px;
    }

    .cat-timeline-list::before {
        left: 8px;
    }

    .cat-timeline-item::before {
        left: -28px;
        width: 10px;
        height: 10px;
        top: 18px;
    }

    .cat-timeline-content {
        padding: 16px;
    }

    .cat-timeline-content h3 {
        font-size: 1.125rem;
    }

    .cat-calc-result-item {
        flex-direction: column;
        gap: 4px;
    }

    .cat-calc-result-value {
        font-size: 1.25rem;
    }

    .cat-articles > .cat-container > h2,
    .cat-timeline > .cat-container > h2,
    .cat-calculator > .cat-container > h2,
    .cat-data > .cat-container > h2,
    .cat-editorial-main h2 {
        font-size: 1.5rem;
    }
}