/* =============================================
   CATEGORY BRICOLAGE - CSS V5.1
   Niche: Maison / Travaux / Energie
   Couleurs: #1d4ed8 (bleu), #fff7ed (creme), #9a3412 (brique)
   ZERO degrades - couleurs plates uniquement
   ============================================= */

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

html, body {
    overflow-x: hidden;
}

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

/* =============================================
   HERO SECTION
   ============================================= */

.cat-hero {
    background-color: #1d4ed8;
    color: #ffffff;
    padding: 64px 24px 48px;
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 380px;
}

.cat-hero__inner {
    flex: 1 1 0;
    min-width: 0;
}

.cat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.cat-hero__title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 18px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #bfdbfe;
    margin: 0 0 32px 0;
    max-width: 560px;
    overflow-wrap: break-word;
}

.cat-hero__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    min-width: 90px;
}

.cat-hero__stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.cat-hero__stat-label {
    font-size: 11px;
    color: #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.cat-hero__stat-sep {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
    display: none;
}

.cat-hero__visual {
    flex: 0 0 auto;
    width: 360px;
    max-width: 100%;
}

.cat-hero__visual img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* =============================================
   ARTICLES SECTION
   ============================================= */

.cat-articles {
    background-color: #fff7ed;
    padding: 56px 24px;
}

.cat-articles__container {
    max-width: 1200px;
    margin: 0 auto;
}

.cat-articles__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 2px solid #fed7aa;
}

.cat-articles__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cat-articles__heading svg {
    color: #1d4ed8;
    flex-shrink: 0;
}

.cat-articles__count {
    background-color: #1d4ed8;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.cat-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* =============================================
   ARTICLE CARD
   ============================================= */

.art-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.art-card:hover {
    box-shadow: 0 8px 32px rgba(29, 78, 216, 0.12);
    transform: translateY(-3px);
}

.art-card__img-wrap {
    overflow: hidden;
    flex-shrink: 0;
}

.art-card__img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.art-card:hover .art-card__img-wrap img {
    transform: scale(1.03);
}

.art-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.art-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.art-card__meta svg {
    flex-shrink: 0;
    color: #9a3412;
}

.art-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.art-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.art-card__title a:hover,
.art-card__title a:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.art-card__title a:focus {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
    border-radius: 2px;
}

.art-card__desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   EMPTY STATE
   ============================================= */

.cat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 64px 24px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 16px;
    border: 2px dashed #bfdbfe;
}

.cat-empty__icon {
    background-color: #eff6ff;
    border-radius: 50%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-empty__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cat-empty__text {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    max-width: 420px;
    line-height: 1.6;
}

/* =============================================
   MINI DASHBOARD KPIs
   ============================================= */

.cat-dashboard {
    background-color: #ffffff;
    padding: 56px 24px;
}

.cat-dashboard__container {
    max-width: 1200px;
    margin: 0 auto;
}

.cat-dashboard__header {
    margin-bottom: 36px;
}

.cat-dashboard__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.cat-dashboard__note {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

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

.cat-dashboard__kpi {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border-top: 4px solid #1d4ed8;
    transition: border-top-color 0.2s ease;
}

.cat-dashboard__kpi:nth-child(2),
.cat-dashboard__kpi:nth-child(4) {
    border-top-color: #9a3412;
}

.cat-dashboard__kpi:hover {
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.08);
}

.cat-dashboard__kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.cat-dashboard__kpi:nth-child(2) .cat-dashboard__kpi-icon,
.cat-dashboard__kpi:nth-child(4) .cat-dashboard__kpi-icon {
    background-color: #fff7ed;
}

.cat-dashboard__kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1;
}

.cat-dashboard__kpi:nth-child(2) .cat-dashboard__kpi-value,
.cat-dashboard__kpi:nth-child(4) .cat-dashboard__kpi-value {
    color: #9a3412;
}

.cat-dashboard__kpi-label {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =============================================
   TABLEAU COMPARATIF
   ============================================= */

.cat-compare {
    background-color: #fff7ed;
    padding: 56px 24px;
}

.cat-compare__container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.cat-compare__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.cat-compare__intro {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    max-width: 680px;
}

.cat-compare__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    margin-bottom: 14px;
}

.cat-compare__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 640px;
}

.cat-compare__table thead {
    background-color: #1d4ed8;
    color: #ffffff;
}

.cat-compare__table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #ffffff;
}

.cat-compare__table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.cat-compare__table tbody tr:hover {
    background-color: #eff6ff;
}

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

.cat-compare__table tbody td {
    padding: 14px 16px;
    color: #334155;
    vertical-align: top;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-compare__disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

.cat-compare__disclaimer svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* =============================================
   BADGES
   ============================================= */

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge--green {
    background-color: #d1fae5;
    color: #065f46;
}

.badge--yellow {
    background-color: #fef9c3;
    color: #854d0e;
}

.badge--red {
    background-color: #fee2e2;
    color: #991b1b;
}

/* =============================================
   CALCULATEUR
   ============================================= */

.cat-calc {
    background-color: #1e293b;
    padding: 56px 24px;
    color: #ffffff;
}

.cat-calc__container {
    max-width: 1100px;
    margin: 0 auto;
}

.cat-calc__header {
    margin-bottom: 36px;
}

.cat-calc__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.cat-calc__intro {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    max-width: 640px;
}

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

.cat-calc__form-block {
    background-color: #0f172a;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #334155;
}

.cat-calc__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.cat-calc__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}

.cat-calc__input,
.cat-calc__select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #475569;
    background-color: #1e293b;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    appearance: none;
    transition: border-color 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.cat-calc__input:focus,
.cat-calc__select:focus {
    outline: 2px solid #1d4ed8;
    outline-offset: 1px;
    border-color: #1d4ed8;
}

.cat-calc__hint {
    font-size: 0.75rem;
    color: #64748b;
}

.cat-calc__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #1d4ed8;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
}

.cat-calc__btn:hover {
    background-color: #1e40af;
}

.cat-calc__btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.cat-calc__result-block {
    background-color: #0f172a;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #334155;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-calc__result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.cat-calc__result-content {
    width: 100%;
}

.cat-calc__result-label {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

.cat-calc__result-main {
    font-size: 2rem;
    font-weight: 800;
    color: #1d4ed8;
    margin-top: 4px;
    line-height: 1.1;
}

.cat-calc__result-sub {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 4px;
}

.cat-calc__result-aide {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4ade80;
    margin-top: 4px;
}

.cat-calc__result-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 20px;
    line-height: 1.5;
    border-top: 1px solid #334155;
    padding-top: 14px;
    font-style: italic;
}

/* =============================================
   TABLEAU OUTILLAGE
   ============================================= */

.cat-aides {
    background-color: #ffffff;
    padding: 56px 24px;
}

.cat-aides__container {
    max-width: 1200px;
    margin: 0 auto;
}

.cat-aides__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.cat-aides__intro {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 28px 0;
    max-width: 680px;
}

.cat-aides__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 14px;
}

.cat-aides__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 520px;
}

.cat-aides__table thead {
    background-color: #9a3412;
    color: #ffffff;
}

.cat-aides__table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #ffffff;
}

.cat-aides__table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.cat-aides__table tbody tr:hover {
    background-color: #fff7ed;
}

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

.cat-aides__table tbody td {
    padding: 14px 16px;
    color: #334155;
    vertical-align: top;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cat-aides__disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

.cat-aides__disclaimer svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* =============================================
   THEMATIQUES
   ============================================= */

.cat-themes {
    background-color: #fff7ed;
    padding: 56px 24px;
}

.cat-themes__container {
    max-width: 1200px;
    margin: 0 auto;
}

.cat-themes__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 32px 0;
}

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

.cat-themes__item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-themes__item:hover {
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.1);
    border-color: #bfdbfe;
}

.cat-themes__item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    border-radius: 10px;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.cat-themes__item:nth-child(2) .cat-themes__item-icon,
.cat-themes__item:nth-child(4) .cat-themes__item-icon,
.cat-themes__item:nth-child(6) .cat-themes__item-icon {
    background-color: #fff7ed;
}

.cat-themes__item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.cat-themes__item-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ===== RESPONSIVE (auto-repair) ===== */
@media (max-width: 1024px) {
    .cat-hero {
        gap: 32px;
        padding: 48px 24px 36px;
        min-height: 320px;
    }

    .cat-hero__visual {
        width: 280px;
    }

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

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

    .cat-articles__grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

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

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

    .cat-themes__grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

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

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

    .cat-dashboard__title {
        font-size: 1.4rem;
    }

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

    .cat-calc__title {
        font-size: 1.4rem;
    }

    .cat-aides__title {
        font-size: 1.4rem;
    }

    .cat-themes__title {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .cat-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 36px 16px 28px;
        min-height: unset;
    }

    .cat-hero__inner {
        width: 100%;
    }

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

    .cat-hero__subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .cat-hero__badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .cat-hero__stats {
        gap: 8px;
    }

    .cat-hero__stat {
        padding: 10px 14px;
        min-width: 80px;
    }

    .cat-hero__stat-value {
        font-size: 1.3rem;
    }

    .cat-hero__stat-sep {
        display: none;
    }

    .cat-hero__visual {
        width: 100%;
    }

    .cat-hero__visual img {
        height: 200px;
        border-radius: 10px;
    }

    .cat-articles {
        padding: 36px 16px;
    }

    .cat-articles__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 24px;
    }

    .cat-articles__heading {
        font-size: 1.25rem;
    }

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

    .art-card__img-wrap img {
        height: 180px;
    }

    .art-card__body {
        padding: 16px;
    }

    .art-card__title {
        font-size: 1rem;
    }

    .cat-empty {
        padding: 40px 16px;
    }

    .cat-empty__title {
        font-size: 1.1rem;
    }

    .cat-empty__text {
        font-size: 0.9rem;
    }

    .cat-dashboard {
        padding: 36px 16px;
    }

    .cat-dashboard__title {
        font-size: 1.25rem;
    }

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

    .cat-dashboard__kpi {
        padding: 18px 14px;
    }

    .cat-dashboard__kpi-value {
        font-size: 1.6rem;
    }

    .cat-dashboard__kpi-icon {
        width: 40px;
        height: 40px;
    }

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

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

    .cat-compare__intro {
        font-size: 0.9rem;
    }

    .cat-compare__table-wrap {
        border-radius: 8px;
    }

    .cat-compare__table {
        font-size: 0.82rem;
    }

    .cat-compare__table thead th {
        padding: 12px 12px;
        font-size: 0.75rem;
    }

    .cat-compare__table tbody td {
        padding: 12px 12px;
    }

    .cat-calc {
        padding: 36px 16px;
    }

    .cat-calc__title {
        font-size: 1.25rem;
    }

    .cat-calc__intro {
        font-size: 0.9rem;
    }

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

    .cat-calc__form-block {
        padding: 20px 16px;
    }

    .cat-calc__result-block {
        padding: 20px 16px;
        min-height: 160px;
    }

    .cat-calc__result-main {
        font-size: 1.6rem;
    }

    .cat-calc__result-sub {
        font-size: 1.1rem;
    }

    .cat-calc__result-aide {
        font-size: 1rem;
    }

    .cat-aides {
        padding: 36px 16px;
    }

    .cat-aides__title {
        font-size: 1.25rem;
    }

    .cat-aides__intro {
        font-size: 0.9rem;
    }

    .cat-aides__table-wrap {
        border-radius: 8px;
    }

    .cat-aides__table {
        font-size: 0.82rem;
    }

    .cat-aides__table thead th {
        padding: 12px 12px;
        font-size: 0.75rem;
    }

    .cat-aides__table tbody td {
        padding: 12px 12px;
    }

    .cat-themes {
        padding: 36px 16px;
    }

    .cat-themes__title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

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

    .cat-themes__item {
        padding: 18px;
    }

    .cat-themes__item-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .cat-hero {
        padding: 24px 12px 20px;
        gap: 18px;
    }

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

    .cat-hero__subtitle {
        font-size: 0.88rem;
        margin-bottom: 18px;
    }

    .cat-hero__badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .cat-hero__stat {
        padding: 8px 10px;
        min-width: 70px;
    }

    .cat-hero__stat-value {
        font-size: 1.1rem;
    }

    .cat-hero__stat-label {
        font-size: 10px;
    }

    .cat-hero__visual img {
        height: 160px;
        border-radius: 8px;
    }

    .cat-articles {
        padding: 24px 12px;
    }

    .cat-articles__heading {
        font-size: 1.1rem;
    }

    .cat-articles__grid {
        gap: 12px;
    }

    .art-card__img-wrap img {
        height: 160px;
    }

    .art-card__body {
        padding: 14px 12px;
        gap: 8px;
    }

    .art-card__title {
        font-size: 0.95rem;
    }

    .art-card__desc {
        font-size: 0.82rem;
    }

    .art-card__meta {
        font-size: 11px;
    }

    .cat-empty {
        padding: 28px 12px;
        border-radius: 10px;
    }

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

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

    .cat-dashboard {
        padding: 24px 12px;
    }

    .cat-dashboard__title {
        font-size: 1.1rem;
    }

    .cat-dashboard__note {
        font-size: 0.78rem;
    }

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

    .cat-dashboard__kpi {
        padding: 14px 12px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .cat-dashboard__kpi-value {
        font-size: 1.4rem;
    }

    .cat-dashboard__kpi-label {
        font-size: 0.78rem;
    }

    .cat-dashboard__kpi-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .cat-compare {
        padding: 24px 12px;
    }

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

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

    .cat-compare__table {
        font-size: 0.78rem;
    }

    .cat-compare__table thead th {
        padding: 10px 10px;
        font-size: 0.72rem;
    }

    .cat-compare__table tbody td {
        padding: 10px 10px;
    }

    .cat-compare__disclaimer {
        font-size: 0.72rem;
    }

    .cat-calc {
        padding: 24px 12px;
    }

    .cat-calc__title {
        font-size: 1.1rem;
    }

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

    .cat-calc__form-block {
        padding: 16px 12px;
        border-radius: 10px;
    }

    .cat-calc__label {
        font-size: 0.82rem;
    }

    .cat-calc__input,
    .cat-calc__select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .cat-calc__hint {
        font-size: 0.72rem;
    }

    .cat-calc__btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .cat-calc__result-block {
        padding: 16px 12px;
        border-radius: 10px;
        min-height: 130px;
    }

    .cat-calc__result-main {
        font-size: 1.4rem;
    }

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

    .cat-calc__result-aide {
        font-size: 0.95rem;
    }

    .cat-calc__result-label {
        font-size: 0.72rem;
    }

    .cat-calc__result-note {
        font-size: 0.72rem;
    }

    .cat-aides {
        padding: 24px 12px;
    }

    .cat-aides__title {
        font-size: 1.1rem;
    }

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

    .cat-aides__table {
        font-size: 0.78rem;
    }

    .cat-aides__table thead th {
        padding: 10px 10px;
        font-size: 0.72rem;
    }

    .cat-aides__table tbody td {
        padding: 10px 10px;
    }

    .cat-aides__disclaimer {
        font-size: 0.72rem;
    }

    .cat-themes {
        padding: 24px 12px;
    }

    .cat-themes__title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .cat-themes__grid {
        gap: 10px;
    }

    .cat-themes__item {
        padding: 14px 12px;
        border-radius: 10px;
    }

    .cat-themes__item-icon {
        width: 42px;
        height: 42px;
        border-radius: 8px;
    }

    .cat-themes__item-title {
        font-size: 0.95rem;
    }

    .cat-themes__item-desc {
        font-size: 0.8rem;
    }

    .badge {
        font-size: 0.72rem;
        padding: 2px 6px;
    }
}