/* ============================================
   CATEGORY: SPECTACLES
   Theme: Restauration / Loisirs / Sortie
   Couleurs: #713f12, #fbbf24, #fecdd3
   Version: 5.1 - 2026
   ============================================ */

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

html, body {
    overflow-x: hidden;
}

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

/* ============================================
   HERO CATEGORIE
   ============================================ */
.cat-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #3d1a00;
}

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

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

.cat-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(61, 26, 0, 0.74);
    z-index: 1;
}

.cat-hero__content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
    color: #fff;
}

.cat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: #fbbf24;
    color: #3d1a00;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.cat-hero__title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.22rem);
    color: #fecdd3;
    margin: 0 auto 28px;
    line-height: 1.6;
    max-width: 600px;
}

.cat-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cat-hero__count,
.cat-hero__theme {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ============================================
   INTRO EDITORIALE
   ============================================ */
.cat-intro {
    background-color: #fffbf5;
    padding: 36px 0;
    border-bottom: 2px solid #fecdd3;
}

.cat-intro__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cat-intro__text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #3d1a00;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-intro__disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #fef9ec;
    border: 1px solid #fbbf24;
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
    padding: 14px 18px;
    color: #713f12;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cat-intro__disclaimer svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   LISTE DES ARTICLES
   ============================================ */
.cat-articles {
    background-color: #fafafa;
    padding: 60px 0 70px;
}

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

.cat-articles__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fecdd3;
}

.cat-articles__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.7rem;
    font-weight: 800;
    color: #713f12;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-articles__title svg {
    stroke: #fbbf24;
    flex-shrink: 0;
}

.cat-articles__count-badge {
    background-color: #713f12;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
}

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

/* ============================================
   CARDS ARTICLES
   ============================================ */
.art-card {
    background-color: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #f0e4d7;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.art-card:hover {
    box-shadow: 0 12px 36px rgba(113, 63, 18, 0.14);
    transform: translateY(-4px);
}

.art-card__img-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
    background-color: #fecdd3;
}

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

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

.art-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #713f12;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
}

.art-card__body {
    padding: 22px 24px 26px;
}

.art-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #9a6a4a;
    margin-bottom: 10px;
}

.art-card__date svg {
    stroke: #fbbf24;
    flex-shrink: 0;
}

.art-card__title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #3d1a00;
    margin: 0 0 10px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.art-card__title a {
    color: #3d1a00;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.art-card__title a:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
    border-radius: 3px;
}

.art-card__desc {
    font-size: 0.9rem;
    color: #6b4c37;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ETAT VIDE */
.cat-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 14px;
    border: 2px dashed #fecdd3;
}

.cat-empty__icon {
    margin-bottom: 20px;
}

.cat-empty__text {
    color: #713f12;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   SECTION DONNEES - TABLEAU
   ============================================ */
.cat-data {
    background-color: #fff;
    padding: 70px 0;
}

.cat-data__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.cat-data__header {
    text-align: center;
    margin-bottom: 40px;
}

.cat-data__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #713f12;
    margin: 0 0 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-data__subtitle {
    font-size: 1rem;
    color: #6b4c37;
    margin: 0 0 14px;
    line-height: 1.6;
}

.cat-data__disclaimer {
    font-size: 0.82rem;
    color: #9a7a68;
    margin: 0;
    font-style: italic;
}

/* TABLEAU */
.cat-data__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #f0e4d7;
    margin-bottom: 48px;
}

.cat-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-table__caption {
    font-size: 0.85rem;
    color: #9a7a68;
    text-align: left;
    padding: 12px 20px;
    caption-side: bottom;
}

.cat-table thead tr {
    background-color: #713f12;
}

.cat-table thead th {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    padding: 16px 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cat-table tbody tr {
    background-color: #fff;
    border-bottom: 1px solid #f0e4d7;
    transition: background-color 0.18s ease;
}

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

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

.cat-table tbody td {
    padding: 15px 20px;
    color: #3d1a00;
    font-size: 0.93rem;
    line-height: 1.5;
}

/* ============================================
   COMPARATEUR DE SPECTACLES
   ============================================ */
.cat-comparator {
    margin-top: 10px;
}

.cat-comparator__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #713f12;
    margin: 0 0 28px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

.cat-comp-card {
    background-color: #fffbf5;
    border: 1px solid #f0e4d7;
    border-top: 4px solid #fbbf24;
    border-radius: 12px;
    padding: 24px 22px;
    transition: border-top-color 0.22s ease, box-shadow 0.22s ease;
}

.cat-comp-card:hover {
    border-top-color: #713f12;
    box-shadow: 0 8px 24px rgba(113, 63, 18, 0.1);
}

.cat-comp-card__icon {
    margin-bottom: 14px;
}

.cat-comp-card__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #3d1a00;
    margin-bottom: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-comp-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.cat-comp-card__list li {
    font-size: 0.88rem;
    color: #6b4c37;
    padding: 5px 0;
    border-bottom: 1px solid #f0e4d7;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.cat-comp-card__list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fbbf24;
    flex-shrink: 0;
}

.cat-comp-card__list li:last-child {
    border-bottom: none;
}

.cat-comp-card__tag {
    display: block;
    font-size: 0.75rem;
    color: #713f12;
    font-weight: 600;
    background-color: #fecdd3;
    border-radius: 6px;
    padding: 5px 10px;
    line-height: 1.4;
}

/* ============================================
   ESTIMATEUR DE SOIREE
   ============================================ */
.cat-calc {
    background-color: #713f12;
    padding: 70px 0;
}

.cat-calc__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.cat-calc__intro {
    text-align: center;
    margin-bottom: 40px;
}

.cat-calc__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-calc__subtitle {
    font-size: 1rem;
    color: #fecdd3;
    margin: 0;
    line-height: 1.6;
}

.cat-calc__body {
    background-color: #fff;
    border-radius: 16px;
    padding: 36px;
    border: 2px solid #fbbf24;
}

.calc-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.calc-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-form__label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #3d1a00;
    letter-spacing: 0.03em;
}

.calc-form__select {
    font-size: 0.95rem;
    color: #3d1a00;
    background-color: #fffbf5;
    border: 2px solid #f0e4d7;
    border-radius: 8px;
    padding: 11px 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: border-color 0.2s ease;
    width: 100%;
    max-width: 100%;
    appearance: auto;
}

.calc-form__select:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
    border-color: #fbbf24;
}

.calc-form__hint {
    font-size: 0.78rem;
    color: #9a7a68;
}

.calc-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #713f12;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.calc-form__btn:hover {
    background-color: #5a3010;
    transform: translateY(-2px);
}

.calc-form__btn:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

.calc-result {
    margin-top: 24px;
}

.calc-result__inner {
    background-color: #fffbf5;
    border: 2px solid #fecdd3;
    border-radius: 10px;
    padding: 20px 24px;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.calc-result__placeholder {
    color: #9a7a68;
    font-size: 0.92rem;
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

.calc-result__content {
    width: 100%;
}

.calc-result__label {
    font-size: 0.85rem;
    color: #713f12;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}

.calc-result__amount {
    font-size: 2rem;
    font-weight: 800;
    color: #3d1a00;
    margin: 0 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.calc-result__amount span {
    color: #fbbf24;
}

.calc-result__note {
    font-size: 0.82rem;
    color: #9a7a68;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
}

/* ============================================
   HEATMAP POPULARITE
   ============================================ */
.cat-heatmap {
    background-color: #fffbf5;
    padding: 70px 0;
}

.cat-heatmap__container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.cat-heatmap__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #713f12;
    text-align: center;
    margin: 0 0 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-heatmap__subtitle {
    text-align: center;
    font-size: 1rem;
    color: #6b4c37;
    margin: 0 0 36px;
    line-height: 1.6;
}

.heatmap-grid {
    background-color: #fff;
    border-radius: 14px;
    border: 1px solid #f0e4d7;
    overflow: hidden;
    margin-bottom: 16px;
}

.heatmap-header-row,
.heatmap-data-row {
    display: grid;
    grid-template-columns: 140px repeat(4, 1fr);
    border-bottom: 1px solid #f0e4d7;
}

.heatmap-data-row:last-child {
    border-bottom: none;
}

.heatmap-cell {
    padding: 14px 10px;
    text-align: center;
    font-size: 0.85rem;
    border-right: 1px solid #f0e4d7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heatmap-cell:last-child {
    border-right: none;
}

.heatmap-cell--label {
    text-align: left;
    justify-content: flex-start;
    font-weight: 700;
    color: #3d1a00;
    padding-left: 18px;
    background-color: #fffbf5;
}

.heatmap-cell--header {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-color: #713f12;
    color: #fff;
}

.heatmap-cell--data {
    font-size: 0.82rem;
    font-weight: 600;
    cursor: default;
}

.heatmap-cell--none {
    background-color: #f5f5f5;
    color: #bbb;
}

.heatmap-cell--low {
    background-color: #fef9ec;
    color: #9a6a4a;
}

.heatmap-cell--medium {
    background-color: #fecdd3;
    color: #713f12;
}

.heatmap-cell--high {
    background-color: #fbbf24;
    color: #3d1a00;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid #f0e4d7;
    flex-wrap: wrap;
}

.heatmap-legend__item {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
}

.heatmap-legend__item--none {
    background-color: #f5f5f5;
    color: #bbb;
}

.heatmap-legend__item--low {
    background-color: #fef9ec;
    color: #9a6a4a;
}

.heatmap-legend__item--medium {
    background-color: #fecdd3;
    color: #713f12;
}

.heatmap-legend__item--high {
    background-color: #fbbf24;
    color: #3d1a00;
}

.cat-heatmap__note {
    text-align: center;
    font-size: 0.82rem;
    color: #9a7a68;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   RESPONSIVE - 1024px
   ============================================ */
@media (max-width: 1024px) {
    .cat-hero {
        min-height: 420px;
    }

    .cat-hero__content {
        padding: 50px 30px;
    }

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

    .cat-articles__container {
        padding: 0 24px;
    }

    .cat-data__container {
        padding: 0 24px;
    }

    .cat-calc__container {
        padding: 0 24px;
    }

    .cat-calc__body {
        padding: 30px 28px;
    }

    .cat-heatmap__container {
        padding: 0 24px;
    }

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

    .calc-form__row {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .heatmap-header-row,
    .heatmap-data-row {
        grid-template-columns: 120px repeat(4, 1fr);
    }

    .cat-data__title,
    .cat-heatmap__title,
    .cat-calc__title {
        font-size: 1.6rem;
    }

    .cat-articles__title {
        font-size: 1.5rem;
    }

    .cat-intro__inner {
        padding: 0 24px;
    }
}

/* ============================================
   RESPONSIVE - TABLETTE 900px
   ============================================ */
@media (max-width: 900px) {
    .cat-hero {
        min-height: 380px;
    }

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

    .cat-comparator__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .heatmap-header-row,
    .heatmap-data-row {
        grid-template-columns: 110px repeat(4, 1fr);
    }

    .heatmap-cell--label {
        padding-left: 12px;
        font-size: 0.8rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE 768px
   ============================================ */
@media (max-width: 768px) {
    .cat-hero {
        min-height: 320px;
    }

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

    .cat-hero__meta {
        flex-direction: column;
        gap: 10px;
    }

    .cat-intro {
        padding: 24px 0;
    }

    .cat-intro__inner {
        padding: 0 20px;
        gap: 12px;
    }

    .cat-intro__disclaimer {
        padding: 12px 14px;
        font-size: 0.85rem;
        gap: 10px;
    }

    .cat-articles {
        padding: 40px 0 50px;
    }

    .cat-articles__container {
        padding: 0 20px;
    }

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

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

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

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

    .art-card__body {
        padding: 18px 18px 22px;
    }

    .cat-data {
        padding: 44px 0;
    }

    .cat-data__container {
        padding: 0 20px;
    }

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

    .cat-table {
        min-width: unset;
    }

    .cat-table thead {
        display: none;
    }

    .cat-table tbody tr {
        display: block;
        border: 1px solid #f0e4d7;
        border-radius: 10px;
        margin-bottom: 14px;
        padding: 6px 0;
    }

    .cat-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        border-bottom: 1px solid #f0e4d7;
        font-size: 0.88rem;
    }

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

    .cat-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #713f12;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        flex-shrink: 0;
        margin-right: 12px;
    }

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

    .cat-comparator__title {
        font-size: 1.15rem;
    }

    .cat-calc {
        padding: 44px 0;
    }

    .cat-calc__container {
        padding: 0 20px;
    }

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

    .calc-form__row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 18px;
    }

    .calc-form__btn {
        width: 100%;
        justify-content: center;
    }

    .calc-result__amount {
        font-size: 1.6rem;
    }

    .calc-result__inner {
        padding: 16px 18px;
    }

    .cat-heatmap {
        padding: 44px 0;
    }

    .cat-heatmap__container {
        padding: 0 20px;
    }

    .heatmap-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .heatmap-header-row,
    .heatmap-data-row {
        grid-template-columns: 110px repeat(4, 1fr);
        min-width: 520px;
    }

    .heatmap-cell {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .heatmap-cell--label {
        padding-left: 12px;
        font-size: 0.78rem;
    }

    .heatmap-legend {
        gap: 10px;
        padding: 12px 14px;
    }

    .heatmap-legend__item {
        font-size: 0.74rem;
    }

    .cat-heatmap__subtitle {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }

    .cat-comp-card {
        padding: 20px 18px;
    }

    .cat-data__header {
        margin-bottom: 28px;
    }
}

/* ===== RESPONSIVE (auto-repair) ===== */
@media (max-width: 1024px) {
    .cat-hero {
        min-height: 420px;
    }

    .cat-hero__content {
        padding: 50px 30px;
    }

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

    .cat-articles__container {
        padding: 0 24px;
    }

    .cat-data__container {
        padding: 0 24px;
    }

    .cat-calc__container {
        padding: 0 24px;
    }

    .cat-calc__body {
        padding: 30px 28px;
    }

    .cat-heatmap__container {
        padding: 0 24px;
    }

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

    .calc-form__row {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .heatmap-header-row,
    .heatmap-data-row {
        grid-template-columns: 120px repeat(4, 1fr);
    }

    .cat-data__title,
    .cat-heatmap__title,
    .cat-calc__title {
        font-size: 1.6rem;
    }

    .cat-articles__title {
        font-size: 1.5rem;
    }

    .cat-intro__inner {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .cat-hero {
        min-height: 320px;
    }

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

    .cat-hero__meta {
        flex-direction: column;
        gap: 10px;
    }

    .cat-intro {
        padding: 24px 0;
    }

    .cat-intro__inner {
        padding: 0 20px;
        gap: 12px;
    }

    .cat-intro__disclaimer {
        padding: 12px 14px;
        font-size: 0.85rem;
        gap: 10px;
    }

    .cat-articles {
        padding: 40px 0 50px;
    }

    .cat-articles__container {
        padding: 0 20px;
    }

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

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

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

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

    .art-card__body {
        padding: 18px 18px 22px;
    }

    .cat-data {
        padding: 44px 0;
    }

    .cat-data__container {
        padding: 0 20px;
    }

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

    .cat-table {
        min-width: unset;
    }

    .cat-table thead {
        display: none;
    }

    .cat-table tbody tr {
        display: block;
        border: 1px solid #f0e4d7;
        border-radius: 10px;
        margin-bottom: 14px;
        padding: 6px 0;
    }

    .cat-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        border-bottom: 1px solid #f0e4d7;
        font-size: 0.88rem;
    }

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

    .cat-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #713f12;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        flex-shrink: 0;
        margin-right: 12px;
    }

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

    .cat-comparator__title {
        font-size: 1.15rem;
    }

    .cat-calc {
        padding: 44px 0;
    }

    .cat-calc__container {
        padding: 0 20px;
    }

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

    .calc-form__row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 18px;
    }

    .calc-form__btn {
        width: 100%;
        justify-content: center;
    }

    .calc-result__amount {
        font-size: 1.6rem;
    }

    .calc-result__inner {
        padding: 16px 18px;
    }

    .cat-heatmap {
        padding: 44px 0;
    }

    .cat-heatmap__container {
        padding: 0 20px;
    }

    .heatmap-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .heatmap-header-row,
    .heatmap-data-row {
        grid-template-columns: 110px repeat(4, 1fr);
        min-width: 520px;
    }

    .heatmap-cell {
        padding: 10px 8px;
        font-size: 0.8rem;
    }

    .heatmap-cell--label {
        padding-left: 12px;
        font-size: 0.78rem;
    }

    .heatmap-legend {
        gap: 10px;
        padding: 12px 14px;
    }

    .heatmap-legend__item {
        font-size: 0.74rem;
    }

    .cat-heatmap__subtitle {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }

    .cat-comp-card {
        padding: 20px 18px;
    }

    .cat-data__header {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .cat-hero {
        min-height: 260px;
    }

    .cat-hero__content {
        padding: 30px 16px;
    }

    .cat-hero__badge {
        font-size: 0.7rem;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    .cat-hero__meta {
        gap: 8px;
    }

    .cat-hero__count,
    .cat-hero__theme {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .cat-intro {
        padding: 18px 0;
    }

    .cat-intro__inner {
        padding: 0 16px;
        gap: 10px;
    }

    .cat-intro__text p {
        font-size: 0.95rem;
    }

    .cat-intro__disclaimer {
        padding: 10px 12px;
        font-size: 0.8rem;
        gap: 8px;
    }

    .cat-articles {
        padding: 30px 0 40px;
    }

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

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

    .cat-articles__count-badge {
        font-size: 0.76rem;
        padding: 5px 12px;
    }

    .cat-articles__header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

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

    .art-card__body {
        padding: 14px 14px 18px;
    }

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

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

    .cat-data {
        padding: 32px 0;
    }

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

    .cat-data__title,
    .cat-heatmap__title,
    .cat-calc__title {
        font-size: 1.2rem;
    }

    .cat-data__subtitle,
    .cat-heatmap__subtitle,
    .cat-calc__subtitle {
        font-size: 0.9rem;
    }

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

    .cat-table tbody td {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .cat-table tbody td::before {
        font-size: 0.72rem;
    }

    .cat-comparator__grid {
        gap: 12px;
    }

    .cat-comparator__title {
        font-size: 1.05rem;
        margin-bottom: 20px;
    }

    .cat-comp-card {
        padding: 16px 14px;
    }

    .cat-comp-card__name {
        font-size: 0.95rem;
    }

    .cat-comp-card__list li {
        font-size: 0.82rem;
    }

    .cat-comp-card__tag {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    .cat-calc {
        padding: 32px 0;
    }

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

    .cat-calc__body {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .calc-form__label {
        font-size: 0.82rem;
    }

    .calc-form__select {
        font-size: 0.88rem;
        padding: 9px 12px;
    }

    .calc-form__btn {
        font-size: 0.92rem;
        padding: 12px 20px;
    }

    .calc-result__inner {
        padding: 14px 14px;
    }

    .calc-result__amount {
        font-size: 1.4rem;
    }

    .calc-result__label {
        font-size: 0.78rem;
    }

    .calc-result__note {
        font-size: 0.76rem;
    }

    .calc-result__placeholder {
        font-size: 0.85rem;
    }

    .cat-heatmap {
        padding: 32px 0;
    }

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

    .heatmap-cell {
        padding: 8px 6px;
        font-size: 0.74rem;
    }

    .heatmap-cell--label {
        font-size: 0.72rem;
        padding-left: 8px;
    }

    .heatmap-legend {
        gap: 8px;
        padding: 10px 12px;
    }

    .heatmap-legend__item {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .cat-heatmap__note {
        font-size: 0.76rem;
    }

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

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